1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libfontenc 1.1.8. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/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/libfontenc/-/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='libfontenc' 617 PACKAGE_TARNAME='libfontenc' 618 PACKAGE_VERSION='1.1.8' 619 PACKAGE_STRING='libfontenc 1.1.8' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/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 enable_year2038=no 657 ac_subst_vars='am__EXEEXT_FALSE 658 am__EXEEXT_TRUE 659 LTLIBOBJS 660 LINT_FALSE 661 LINT_TRUE 662 LINT_FLAGS 663 LINT 664 LIBOBJS 665 FONTENC_LIBS 666 FONTENC_CFLAGS 667 ENCODINGSDIR 668 FONTROOTDIR 669 MAN_SUBSTS 670 XORG_MAN_PAGE 671 ADMIN_MAN_DIR 672 DRIVER_MAN_DIR 673 MISC_MAN_DIR 674 FILE_MAN_DIR 675 LIB_MAN_DIR 676 APP_MAN_DIR 677 ADMIN_MAN_SUFFIX 678 DRIVER_MAN_SUFFIX 679 MISC_MAN_SUFFIX 680 FILE_MAN_SUFFIX 681 LIB_MAN_SUFFIX 682 APP_MAN_SUFFIX 683 INSTALL_CMD 684 PKG_CONFIG_LIBDIR 685 PKG_CONFIG_PATH 686 PKG_CONFIG 687 CHANGELOG_CMD 688 STRICT_CFLAGS 689 CWARNFLAGS 690 BASE_CFLAGS 691 LT_SYS_LIBRARY_PATH 692 OTOOL64 693 OTOOL 694 LIPO 695 NMEDIT 696 DSYMUTIL 697 MANIFEST_TOOL 698 RANLIB 699 ac_ct_AR 700 AR 701 DLLTOOL 702 OBJDUMP 703 FILECMD 704 LN_S 705 NM 706 ac_ct_DUMPBIN 707 DUMPBIN 708 LD 709 FGREP 710 EGREP 711 GREP 712 SED 713 host_os 714 host_vendor 715 host_cpu 716 host 717 build_os 718 build_vendor 719 build_cpu 720 build 721 LIBTOOL 722 AM_BACKSLASH 723 AM_DEFAULT_VERBOSITY 724 AM_DEFAULT_V 725 AM_V 726 CSCOPE 727 ETAGS 728 CTAGS 729 am__fastdepCC_FALSE 730 am__fastdepCC_TRUE 731 CCDEPMODE 732 am__nodep 733 AMDEPBACKSLASH 734 AMDEP_FALSE 735 AMDEP_TRUE 736 am__include 737 DEPDIR 738 am__untar 739 am__tar 740 AMTAR 741 am__leading_dot 742 SET_MAKE 743 AWK 744 mkdir_p 745 MKDIR_P 746 INSTALL_STRIP_PROGRAM 747 STRIP 748 install_sh 749 MAKEINFO 750 AUTOHEADER 751 AUTOMAKE 752 AUTOCONF 753 ACLOCAL 754 VERSION 755 PACKAGE 756 CYGPATH_W 757 am__isrc 758 INSTALL_DATA 759 INSTALL_SCRIPT 760 INSTALL_PROGRAM 761 OBJEXT 762 EXEEXT 763 ac_ct_CC 764 CPPFLAGS 765 LDFLAGS 766 CFLAGS 767 CC 768 target_alias 769 host_alias 770 build_alias 771 LIBS 772 ECHO_T 773 ECHO_N 774 ECHO_C 775 DEFS 776 mandir 777 localedir 778 libdir 779 psdir 780 pdfdir 781 dvidir 782 htmldir 783 infodir 784 docdir 785 oldincludedir 786 includedir 787 runstatedir 788 localstatedir 789 sharedstatedir 790 sysconfdir 791 datadir 792 datarootdir 793 libexecdir 794 sbindir 795 bindir 796 program_transform_name 797 prefix 798 exec_prefix 799 PACKAGE_URL 800 PACKAGE_BUGREPORT 801 PACKAGE_STRING 802 PACKAGE_VERSION 803 PACKAGE_TARNAME 804 PACKAGE_NAME 805 PATH_SEPARATOR 806 SHELL 807 am__quote' 808 ac_subst_files='' 809 ac_user_opts=' 810 enable_option_checking 811 enable_dependency_tracking 812 enable_silent_rules 813 enable_shared 814 enable_static 815 with_pic 816 enable_fast_install 817 with_aix_soname 818 with_gnu_ld 819 with_sysroot 820 enable_libtool_lock 821 enable_selective_werror 822 enable_strict_compilation 823 with_fontrootdir 824 with_encodingsdir 825 enable_largefile 826 with_lint 827 enable_year2038 828 ' 829 ac_precious_vars='build_alias 830 host_alias 831 target_alias 832 CC 833 CFLAGS 834 LDFLAGS 835 LIBS 836 CPPFLAGS 837 LT_SYS_LIBRARY_PATH 838 PKG_CONFIG 839 PKG_CONFIG_PATH 840 PKG_CONFIG_LIBDIR 841 FONTENC_CFLAGS 842 FONTENC_LIBS 843 LINT 844 LINT_FLAGS' 845 846 847 # Initialize some variables set by options. 848 ac_init_help= 849 ac_init_version=false 850 ac_unrecognized_opts= 851 ac_unrecognized_sep= 852 # The variables have the same names as the options, with 853 # dashes changed to underlines. 854 cache_file=/dev/null 855 exec_prefix=NONE 856 no_create= 857 no_recursion= 858 prefix=NONE 859 program_prefix=NONE 860 program_suffix=NONE 861 program_transform_name=s,x,x, 862 silent= 863 site= 864 srcdir= 865 verbose= 866 x_includes=NONE 867 x_libraries=NONE 868 869 # Installation directory options. 870 # These are left unexpanded so users can "make install exec_prefix=/foo" 871 # and all the variables that are supposed to be based on exec_prefix 872 # by default will actually change. 873 # Use braces instead of parens because sh, perl, etc. also accept them. 874 # (The list follows the same order as the GNU Coding Standards.) 875 bindir='${exec_prefix}/bin' 876 sbindir='${exec_prefix}/sbin' 877 libexecdir='${exec_prefix}/libexec' 878 datarootdir='${prefix}/share' 879 datadir='${datarootdir}' 880 sysconfdir='${prefix}/etc' 881 sharedstatedir='${prefix}/com' 882 localstatedir='${prefix}/var' 883 runstatedir='${localstatedir}/run' 884 includedir='${prefix}/include' 885 oldincludedir='/usr/include' 886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 887 infodir='${datarootdir}/info' 888 htmldir='${docdir}' 889 dvidir='${docdir}' 890 pdfdir='${docdir}' 891 psdir='${docdir}' 892 libdir='${exec_prefix}/lib' 893 localedir='${datarootdir}/locale' 894 mandir='${datarootdir}/man' 895 896 ac_prev= 897 ac_dashdash= 898 for ac_option 899 do 900 # If the previous option needs an argument, assign it. 901 if test -n "$ac_prev"; then 902 eval $ac_prev=\$ac_option 903 ac_prev= 904 continue 905 fi 906 907 case $ac_option in 908 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 909 *=) ac_optarg= ;; 910 *) ac_optarg=yes ;; 911 esac 912 913 case $ac_dashdash$ac_option in 914 --) 915 ac_dashdash=yes ;; 916 917 -bindir | --bindir | --bindi | --bind | --bin | --bi) 918 ac_prev=bindir ;; 919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 920 bindir=$ac_optarg ;; 921 922 -build | --build | --buil | --bui | --bu) 923 ac_prev=build_alias ;; 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 925 build_alias=$ac_optarg ;; 926 927 -cache-file | --cache-file | --cache-fil | --cache-fi \ 928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 929 ac_prev=cache_file ;; 930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 932 cache_file=$ac_optarg ;; 933 934 --config-cache | -C) 935 cache_file=config.cache ;; 936 937 -datadir | --datadir | --datadi | --datad) 938 ac_prev=datadir ;; 939 -datadir=* | --datadir=* | --datadi=* | --datad=*) 940 datadir=$ac_optarg ;; 941 942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 943 | --dataroo | --dataro | --datar) 944 ac_prev=datarootdir ;; 945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 947 datarootdir=$ac_optarg ;; 948 949 -disable-* | --disable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: '$ac_useropt'" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958 "enable_$ac_useropt" 959 "*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=no ;; 964 965 -docdir | --docdir | --docdi | --doc | --do) 966 ac_prev=docdir ;; 967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 968 docdir=$ac_optarg ;; 969 970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 971 ac_prev=dvidir ;; 972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 973 dvidir=$ac_optarg ;; 974 975 -enable-* | --enable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: '$ac_useropt'" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984 "enable_$ac_useropt" 985 "*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=\$ac_optarg ;; 990 991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 993 | --exec | --exe | --ex) 994 ac_prev=exec_prefix ;; 995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 997 | --exec=* | --exe=* | --ex=*) 998 exec_prefix=$ac_optarg ;; 999 1000 -gas | --gas | --ga | --g) 1001 # Obsolete; use --with-gas. 1002 with_gas=yes ;; 1003 1004 -help | --help | --hel | --he | -h) 1005 ac_init_help=long ;; 1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1007 ac_init_help=recursive ;; 1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1009 ac_init_help=short ;; 1010 1011 -host | --host | --hos | --ho) 1012 ac_prev=host_alias ;; 1013 -host=* | --host=* | --hos=* | --ho=*) 1014 host_alias=$ac_optarg ;; 1015 1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1017 ac_prev=htmldir ;; 1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1019 | --ht=*) 1020 htmldir=$ac_optarg ;; 1021 1022 -includedir | --includedir | --includedi | --included | --include \ 1023 | --includ | --inclu | --incl | --inc) 1024 ac_prev=includedir ;; 1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1026 | --includ=* | --inclu=* | --incl=* | --inc=*) 1027 includedir=$ac_optarg ;; 1028 1029 -infodir | --infodir | --infodi | --infod | --info | --inf) 1030 ac_prev=infodir ;; 1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1032 infodir=$ac_optarg ;; 1033 1034 -libdir | --libdir | --libdi | --libd) 1035 ac_prev=libdir ;; 1036 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1037 libdir=$ac_optarg ;; 1038 1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1040 | --libexe | --libex | --libe) 1041 ac_prev=libexecdir ;; 1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1043 | --libexe=* | --libex=* | --libe=*) 1044 libexecdir=$ac_optarg ;; 1045 1046 -localedir | --localedir | --localedi | --localed | --locale) 1047 ac_prev=localedir ;; 1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1049 localedir=$ac_optarg ;; 1050 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1052 | --localstate | --localstat | --localsta | --localst | --locals) 1053 ac_prev=localstatedir ;; 1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1056 localstatedir=$ac_optarg ;; 1057 1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1059 ac_prev=mandir ;; 1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1061 mandir=$ac_optarg ;; 1062 1063 -nfp | --nfp | --nf) 1064 # Obsolete; use --without-fp. 1065 with_fp=no ;; 1066 1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1068 | --no-cr | --no-c | -n) 1069 no_create=yes ;; 1070 1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1073 no_recursion=yes ;; 1074 1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1077 | --oldin | --oldi | --old | --ol | --o) 1078 ac_prev=oldincludedir ;; 1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1082 oldincludedir=$ac_optarg ;; 1083 1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1085 ac_prev=prefix ;; 1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1087 prefix=$ac_optarg ;; 1088 1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1090 | --program-pre | --program-pr | --program-p) 1091 ac_prev=program_prefix ;; 1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1094 program_prefix=$ac_optarg ;; 1095 1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1097 | --program-suf | --program-su | --program-s) 1098 ac_prev=program_suffix ;; 1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1101 program_suffix=$ac_optarg ;; 1102 1103 -program-transform-name | --program-transform-name \ 1104 | --program-transform-nam | --program-transform-na \ 1105 | --program-transform-n | --program-transform- \ 1106 | --program-transform | --program-transfor \ 1107 | --program-transfo | --program-transf \ 1108 | --program-trans | --program-tran \ 1109 | --progr-tra | --program-tr | --program-t) 1110 ac_prev=program_transform_name ;; 1111 -program-transform-name=* | --program-transform-name=* \ 1112 | --program-transform-nam=* | --program-transform-na=* \ 1113 | --program-transform-n=* | --program-transform-=* \ 1114 | --program-transform=* | --program-transfor=* \ 1115 | --program-transfo=* | --program-transf=* \ 1116 | --program-trans=* | --program-tran=* \ 1117 | --progr-tra=* | --program-tr=* | --program-t=*) 1118 program_transform_name=$ac_optarg ;; 1119 1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1121 ac_prev=pdfdir ;; 1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1123 pdfdir=$ac_optarg ;; 1124 1125 -psdir | --psdir | --psdi | --psd | --ps) 1126 ac_prev=psdir ;; 1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1128 psdir=$ac_optarg ;; 1129 1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1131 | -silent | --silent | --silen | --sile | --sil) 1132 silent=yes ;; 1133 1134 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1135 | --runstate | --runstat | --runsta | --runst | --runs \ 1136 | --run | --ru | --r) 1137 ac_prev=runstatedir ;; 1138 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1139 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1140 | --run=* | --ru=* | --r=*) 1141 runstatedir=$ac_optarg ;; 1142 1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1144 ac_prev=sbindir ;; 1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1146 | --sbi=* | --sb=*) 1147 sbindir=$ac_optarg ;; 1148 1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1151 | --sharedst | --shareds | --shared | --share | --shar \ 1152 | --sha | --sh) 1153 ac_prev=sharedstatedir ;; 1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1157 | --sha=* | --sh=*) 1158 sharedstatedir=$ac_optarg ;; 1159 1160 -site | --site | --sit) 1161 ac_prev=site ;; 1162 -site=* | --site=* | --sit=*) 1163 site=$ac_optarg ;; 1164 1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1166 ac_prev=srcdir ;; 1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1168 srcdir=$ac_optarg ;; 1169 1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1171 | --syscon | --sysco | --sysc | --sys | --sy) 1172 ac_prev=sysconfdir ;; 1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1175 sysconfdir=$ac_optarg ;; 1176 1177 -target | --target | --targe | --targ | --tar | --ta | --t) 1178 ac_prev=target_alias ;; 1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1180 target_alias=$ac_optarg ;; 1181 1182 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1183 verbose=yes ;; 1184 1185 -version | --version | --versio | --versi | --vers | -V) 1186 ac_init_version=: ;; 1187 1188 -with-* | --with-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: '$ac_useropt'" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197 "with_$ac_useropt" 1198 "*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=\$ac_optarg ;; 1203 1204 -without-* | --without-*) 1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 as_fn_error $? "invalid package name: '$ac_useropt'" 1209 ac_useropt_orig=$ac_useropt 1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1211 case $ac_user_opts in 1212 *" 1213 "with_$ac_useropt" 1214 "*) ;; 1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1216 ac_unrecognized_sep=', ';; 1217 esac 1218 eval with_$ac_useropt=no ;; 1219 1220 --x) 1221 # Obsolete; use --with-x. 1222 with_x=yes ;; 1223 1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1225 | --x-incl | --x-inc | --x-in | --x-i) 1226 ac_prev=x_includes ;; 1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1229 x_includes=$ac_optarg ;; 1230 1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1233 ac_prev=x_libraries ;; 1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1236 x_libraries=$ac_optarg ;; 1237 1238 -*) as_fn_error $? "unrecognized option: '$ac_option' 1239 Try '$0 --help' for more information" 1240 ;; 1241 1242 *=*) 1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1244 # Reject names that are not valid shell variable names. 1245 case $ac_envvar in #( 1246 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1247 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1248 esac 1249 eval $ac_envvar=\$ac_optarg 1250 export $ac_envvar ;; 1251 1252 *) 1253 # FIXME: should be removed in autoconf 3.0. 1254 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1256 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1258 ;; 1259 1260 esac 1261 done 1262 1263 if test -n "$ac_prev"; then 1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1265 as_fn_error $? "missing argument to $ac_option" 1266 fi 1267 1268 if test -n "$ac_unrecognized_opts"; then 1269 case $enable_option_checking in 1270 no) ;; 1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1272 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1273 esac 1274 fi 1275 1276 # Check all directory arguments for consistency. 1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1278 datadir sysconfdir sharedstatedir localstatedir includedir \ 1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1280 libdir localedir mandir runstatedir 1281 do 1282 eval ac_val=\$$ac_var 1283 # Remove trailing slashes. 1284 case $ac_val in 1285 */ ) 1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1287 eval $ac_var=\$ac_val;; 1288 esac 1289 # Be sure to have absolute directory names. 1290 case $ac_val in 1291 [\\/$]* | ?:[\\/]* ) continue;; 1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1293 esac 1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1295 done 1296 1297 # There might be people who depend on the old broken behavior: '$host' 1298 # used to hold the argument of --host etc. 1299 # FIXME: To remove some day. 1300 build=$build_alias 1301 host=$host_alias 1302 target=$target_alias 1303 1304 # FIXME: To remove some day. 1305 if test "x$host_alias" != x; then 1306 if test "x$build_alias" = x; then 1307 cross_compiling=maybe 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311 fi 1312 1313 ac_tool_prefix= 1314 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316 test "$silent" = yes && exec 6>/dev/null 1317 1318 1319 ac_pwd=`pwd` && test -n "$ac_pwd" && 1320 ac_ls_di=`ls -di .` && 1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 as_fn_error $? "working directory cannot be determined" 1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1324 as_fn_error $? "pwd does not report name of working directory" 1325 1326 1327 # Find the source files, if location was not specified. 1328 if test -z "$srcdir"; then 1329 ac_srcdir_defaulted=yes 1330 # Try the directory containing this script, then the parent directory. 1331 ac_confdir=`$as_dirname -- "$as_myself" || 1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1333 X"$as_myself" : 'X\(//\)[^/]' \| \ 1334 X"$as_myself" : 'X\(//\)$' \| \ 1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1336 printf "%s\n" X"$as_myself" | 1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)[^/].*/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\).*/{ 1350 s//\1/ 1351 q 1352 } 1353 s/.*/./; q'` 1354 srcdir=$ac_confdir 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 srcdir=.. 1357 fi 1358 else 1359 ac_srcdir_defaulted=no 1360 fi 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1364 fi 1365 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1366 ac_abs_confdir=`( 1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1368 pwd)` 1369 # When building in place, set srcdir=. 1370 if test "$ac_abs_confdir" = "$ac_pwd"; then 1371 srcdir=. 1372 fi 1373 # Remove unnecessary trailing slashes from srcdir. 1374 # Double slashes in file names in object file debugging info 1375 # mess up M-x gdb in Emacs. 1376 case $srcdir in 1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1378 esac 1379 for ac_var in $ac_precious_vars; do 1380 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_env_${ac_var}_value=\$${ac_var} 1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1384 done 1385 1386 # 1387 # Report the --help message. 1388 # 1389 if test "$ac_init_help" = "long"; then 1390 # Omit some internal or obsolete options to make the list less imposing. 1391 # This message is too long to be a string in the A/UX 3.1 sh. 1392 cat <<_ACEOF 1393 'configure' configures libfontenc 1.1.8 to adapt to many kinds of systems. 1394 1395 Usage: $0 [OPTION]... [VAR=VALUE]... 1396 1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1398 VAR=VALUE. See below for descriptions of some of the useful variables. 1399 1400 Defaults for the options are specified in brackets. 1401 1402 Configuration: 1403 -h, --help display this help and exit 1404 --help=short display options specific to this package 1405 --help=recursive display the short help of all the included packages 1406 -V, --version display version information and exit 1407 -q, --quiet, --silent do not print 'checking ...' messages 1408 --cache-file=FILE cache test results in FILE [disabled] 1409 -C, --config-cache alias for '--cache-file=config.cache' 1410 -n, --no-create do not create output files 1411 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1412 1413 Installation directories: 1414 --prefix=PREFIX install architecture-independent files in PREFIX 1415 [$ac_default_prefix] 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1417 [PREFIX] 1418 1419 By default, 'make install' will install all the files in 1420 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1421 an installation prefix other than '$ac_default_prefix' using '--prefix', 1422 for instance '--prefix=\$HOME'. 1423 1424 For better control, use the options below. 1425 1426 Fine tuning of the installation directories: 1427 --bindir=DIR user executables [EPREFIX/bin] 1428 --sbindir=DIR system admin executables [EPREFIX/sbin] 1429 --libexecdir=DIR program executables [EPREFIX/libexec] 1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1433 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1434 --libdir=DIR object code libraries [EPREFIX/lib] 1435 --includedir=DIR C header files [PREFIX/include] 1436 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1439 --infodir=DIR info documentation [DATAROOTDIR/info] 1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1441 --mandir=DIR man documentation [DATAROOTDIR/man] 1442 --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc] 1443 --htmldir=DIR html documentation [DOCDIR] 1444 --dvidir=DIR dvi documentation [DOCDIR] 1445 --pdfdir=DIR pdf documentation [DOCDIR] 1446 --psdir=DIR ps documentation [DOCDIR] 1447 _ACEOF 1448 1449 cat <<\_ACEOF 1450 1451 Program names: 1452 --program-prefix=PREFIX prepend PREFIX to installed program names 1453 --program-suffix=SUFFIX append SUFFIX to installed program names 1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1455 1456 System types: 1457 --build=BUILD configure for building on BUILD [guessed] 1458 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1459 _ACEOF 1460 fi 1461 1462 if test -n "$ac_init_help"; then 1463 case $ac_init_help in 1464 short | recursive ) echo "Configuration of libfontenc 1.1.8:";; 1465 esac 1466 cat <<\_ACEOF 1467 1468 Optional Features: 1469 --disable-option-checking ignore unrecognized --enable/--with options 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1472 --enable-dependency-tracking 1473 do not reject slow dependency extractors 1474 --disable-dependency-tracking 1475 speeds up one-time build 1476 --enable-silent-rules less verbose build output (undo: "make V=1") 1477 --disable-silent-rules verbose build output (undo: "make V=0") 1478 --enable-shared[=PKGS] build shared libraries [default=yes] 1479 --enable-static[=PKGS] build static libraries [default=yes] 1480 --enable-fast-install[=PKGS] 1481 optimize for fast installation [default=yes] 1482 --disable-libtool-lock avoid locking (might break parallel builds) 1483 --disable-selective-werror 1484 Turn off selective compiler errors. (default: 1485 enabled) 1486 --enable-strict-compilation 1487 Enable all warnings from compiler and make them 1488 errors (default: disabled) 1489 --disable-largefile omit support for large files 1490 --enable-year2038 support timestamps after 2038 1491 1492 Optional Packages: 1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1495 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1496 both] 1497 --with-aix-soname=aix|svr4|both 1498 shared library versioning (aka "SONAME") variant to 1499 provide on AIX, [default=aix]. 1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1501 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1502 compiler's sysroot if not specified). 1503 --with-fontrootdir=DIR Path to root directory for font files 1504 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings] 1505 --with-lint Use a lint-style source code checker (default: 1506 disabled) 1507 1508 Some influential environment variables: 1509 CC C compiler command 1510 CFLAGS C compiler flags 1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1512 nonstandard directory <lib dir> 1513 LIBS libraries to pass to the linker, e.g. -l<library> 1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1515 you have headers in a nonstandard directory <include dir> 1516 LT_SYS_LIBRARY_PATH 1517 User-defined run-time library search path. 1518 PKG_CONFIG path to pkg-config utility 1519 PKG_CONFIG_PATH 1520 directories to add to pkg-config's search path 1521 PKG_CONFIG_LIBDIR 1522 path overriding pkg-config's built-in search path 1523 FONTENC_CFLAGS 1524 C compiler flags for FONTENC, overriding pkg-config 1525 FONTENC_LIBS 1526 linker flags for FONTENC, overriding pkg-config 1527 LINT Path to a lint-style command 1528 LINT_FLAGS Flags for the lint-style command 1529 1530 Use these variables to override the choices made by 'configure' or to help 1531 it to find libraries and programs with nonstandard names/locations. 1532 1533 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>. 1534 _ACEOF 1535 ac_status=$? 1536 fi 1537 1538 if test "$ac_init_help" = "recursive"; then 1539 # If there are subdirs, report their specific --help. 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1541 test -d "$ac_dir" || 1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1543 continue 1544 ac_builddir=. 1545 1546 case "$ac_dir" in 1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548 *) 1549 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1550 # A ".." for each directory in $ac_dir_suffix. 1551 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1552 case $ac_top_builddir_sub in 1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1555 esac ;; 1556 esac 1557 ac_abs_top_builddir=$ac_pwd 1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559 # for backward compatibility: 1560 ac_top_builddir=$ac_top_build_prefix 1561 1562 case $srcdir in 1563 .) # We are building in place. 1564 ac_srcdir=. 1565 ac_top_srcdir=$ac_top_builddir_sub 1566 ac_abs_top_srcdir=$ac_pwd ;; 1567 [\\/]* | ?:[\\/]* ) # Absolute name. 1568 ac_srcdir=$srcdir$ac_dir_suffix; 1569 ac_top_srcdir=$srcdir 1570 ac_abs_top_srcdir=$srcdir ;; 1571 *) # Relative name. 1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1573 ac_top_srcdir=$ac_top_build_prefix$srcdir 1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1575 esac 1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1577 1578 cd "$ac_dir" || { ac_status=$?; continue; } 1579 # Check for configure.gnu first; this name is used for a wrapper for 1580 # Metaconfig's "Configure" on case-insensitive file systems. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592 fi 1593 1594 test -n "$ac_init_help" && exit $ac_status 1595 if $ac_init_version; then 1596 cat <<\_ACEOF 1597 libfontenc configure 1.1.8 1598 generated by GNU Autoconf 2.72 1599 1600 Copyright (C) 2023 Free Software Foundation, Inc. 1601 This configure script is free software; the Free Software Foundation 1602 gives unlimited permission to copy, distribute and modify it. 1603 _ACEOF 1604 exit 1605 fi 1606 1607 ## ------------------------ ## 1608 ## Autoconf initialization. ## 1609 ## ------------------------ ## 1610 1611 # ac_fn_c_try_compile LINENO 1612 # -------------------------- 1613 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1614 ac_fn_c_try_compile () 1615 { 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext conftest.beam 1618 if { { ac_try="$ac_compile" 1619 case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622 esac 1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624 printf "%s\n" "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext 1637 then : 1638 ac_retval=0 1639 else case e in #( 1640 e) printf "%s\n" "$as_me: failed program was:" >&5 1641 sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 ;; 1644 esac 1645 fi 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 as_fn_set_status $ac_retval 1648 1649 } # ac_fn_c_try_compile 1650 1651 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1652 # ------------------------------------------------------- 1653 # Tests whether HEADER exists and can be compiled using the include files in 1654 # INCLUDES, setting the cache variable VAR accordingly. 1655 ac_fn_c_check_header_compile () 1656 { 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1659 printf %s "checking for $2... " >&6; } 1660 if eval test \${$3+y} 1661 then : 1662 printf %s "(cached) " >&6 1663 else case e in #( 1664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665 /* end confdefs.h. */ 1666 $4 1667 #include <$2> 1668 _ACEOF 1669 if ac_fn_c_try_compile "$LINENO" 1670 then : 1671 eval "$3=yes" 1672 else case e in #( 1673 e) eval "$3=no" ;; 1674 esac 1675 fi 1676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1677 esac 1678 fi 1679 eval ac_res=\$$3 1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1681 printf "%s\n" "$ac_res" >&6; } 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 1684 } # ac_fn_c_check_header_compile 1685 1686 # ac_fn_c_try_link LINENO 1687 # ----------------------- 1688 # Try to link conftest.$ac_ext, and return whether this succeeded. 1689 ac_fn_c_try_link () 1690 { 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1693 if { { ac_try="$ac_link" 1694 case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697 esac 1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699 printf "%s\n" "$ac_try_echo"; } >&5 1700 (eval "$ac_link") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } && { 1709 test -z "$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 } && test -s conftest$ac_exeext && { 1712 test "$cross_compiling" = yes || 1713 test -x conftest$ac_exeext 1714 } 1715 then : 1716 ac_retval=0 1717 else case e in #( 1718 e) printf "%s\n" "$as_me: failed program was:" >&5 1719 sed 's/^/| /' conftest.$ac_ext >&5 1720 1721 ac_retval=1 ;; 1722 esac 1723 fi 1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1726 # interfere with the next link command; also delete a directory that is 1727 # left behind by Apple's compiler. We do this before executing the actions. 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732 } # ac_fn_c_try_link 1733 1734 # ac_fn_c_check_func LINENO FUNC VAR 1735 # ---------------------------------- 1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1737 ac_fn_c_check_func () 1738 { 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1741 printf %s "checking for $2... " >&6; } 1742 if eval test \${$3+y} 1743 then : 1744 printf %s "(cached) " >&6 1745 else case e in #( 1746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747 /* end confdefs.h. */ 1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750 #define $2 innocuous_$2 1751 1752 /* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (void); below. */ 1754 1755 #include <limits.h> 1756 #undef $2 1757 1758 /* Override any GCC internal prototype to avoid an error. 1759 Use char because int might match the return type of a GCC 1760 builtin and then its argument prototype would still apply. */ 1761 #ifdef __cplusplus 1762 extern "C" 1763 #endif 1764 char $2 (void); 1765 /* The GNU C library defines this for functions which it implements 1766 to always fail with ENOSYS. Some functions are actually named 1767 something starting with __ and the normal name is an alias. */ 1768 #if defined __stub_$2 || defined __stub___$2 1769 choke me 1770 #endif 1771 1772 int 1773 main (void) 1774 { 1775 return $2 (); 1776 ; 1777 return 0; 1778 } 1779 _ACEOF 1780 if ac_fn_c_try_link "$LINENO" 1781 then : 1782 eval "$3=yes" 1783 else case e in #( 1784 e) eval "$3=no" ;; 1785 esac 1786 fi 1787 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1788 conftest$ac_exeext conftest.$ac_ext ;; 1789 esac 1790 fi 1791 eval ac_res=\$$3 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793 printf "%s\n" "$ac_res" >&6; } 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 1796 } # ac_fn_c_check_func 1797 1798 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1799 # ------------------------------------------------------------------ 1800 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1801 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1802 ac_fn_check_decl () 1803 { 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 as_decl_name=`echo $2|sed 's/ *(.*//'` 1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1807 printf %s "checking whether $as_decl_name is declared... " >&6; } 1808 if eval test \${$3+y} 1809 then : 1810 printf %s "(cached) " >&6 1811 else case e in #( 1812 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1813 eval ac_save_FLAGS=\$$6 1814 as_fn_append $6 " $5" 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816 /* end confdefs.h. */ 1817 $4 1818 int 1819 main (void) 1820 { 1821 #ifndef $as_decl_name 1822 #ifdef __cplusplus 1823 (void) $as_decl_use; 1824 #else 1825 (void) $as_decl_name; 1826 #endif 1827 #endif 1828 1829 ; 1830 return 0; 1831 } 1832 _ACEOF 1833 if ac_fn_c_try_compile "$LINENO" 1834 then : 1835 eval "$3=yes" 1836 else case e in #( 1837 e) eval "$3=no" ;; 1838 esac 1839 fi 1840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1841 eval $6=\$ac_save_FLAGS 1842 ;; 1843 esac 1844 fi 1845 eval ac_res=\$$3 1846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847 printf "%s\n" "$ac_res" >&6; } 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 1850 } # ac_fn_check_decl 1851 ac_configure_args_raw= 1852 for ac_arg 1853 do 1854 case $ac_arg in 1855 *\'*) 1856 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1857 esac 1858 as_fn_append ac_configure_args_raw " '$ac_arg'" 1859 done 1860 1861 case $ac_configure_args_raw in 1862 *$as_nl*) 1863 ac_safe_unquote= ;; 1864 *) 1865 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1866 ac_unsafe_a="$ac_unsafe_z#~" 1867 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1868 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1869 esac 1870 1871 cat >config.log <<_ACEOF 1872 This file contains any messages produced by compilers while 1873 running configure, to aid debugging if configure makes a mistake. 1874 1875 It was created by libfontenc $as_me 1.1.8, which was 1876 generated by GNU Autoconf 2.72. Invocation command line was 1877 1878 $ $0$ac_configure_args_raw 1879 1880 _ACEOF 1881 exec 5>>config.log 1882 { 1883 cat <<_ASUNAME 1884 ## --------- ## 1885 ## Platform. ## 1886 ## --------- ## 1887 1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1889 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1890 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1891 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1892 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1893 1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1896 1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1904 1905 _ASUNAME 1906 1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1908 for as_dir in $PATH 1909 do 1910 IFS=$as_save_IFS 1911 case $as_dir in #((( 1912 '') as_dir=./ ;; 1913 */) ;; 1914 *) as_dir=$as_dir/ ;; 1915 esac 1916 printf "%s\n" "PATH: $as_dir" 1917 done 1918 IFS=$as_save_IFS 1919 1920 } >&5 1921 1922 cat >&5 <<_ACEOF 1923 1924 1925 ## ----------- ## 1926 ## Core tests. ## 1927 ## ----------- ## 1928 1929 _ACEOF 1930 1931 1932 # Keep a trace of the command line. 1933 # Strip out --no-create and --no-recursion so they do not pile up. 1934 # Strip out --silent because we don't want to record it for future runs. 1935 # Also quote any args containing shell meta-characters. 1936 # Make two passes to allow for proper duplicate-argument suppression. 1937 ac_configure_args= 1938 ac_configure_args0= 1939 ac_configure_args1= 1940 ac_must_keep_next=false 1941 for ac_pass in 1 2 1942 do 1943 for ac_arg 1944 do 1945 case $ac_arg in 1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1948 | -silent | --silent | --silen | --sile | --sil) 1949 continue ;; 1950 *\'*) 1951 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1952 esac 1953 case $ac_pass in 1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1955 2) 1956 as_fn_append ac_configure_args1 " '$ac_arg'" 1957 if test $ac_must_keep_next = true; then 1958 ac_must_keep_next=false # Got value, back to normal. 1959 else 1960 case $ac_arg in 1961 *=* | --config-cache | -C | -disable-* | --disable-* \ 1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1964 | -with-* | --with-* | -without-* | --without-* | --x) 1965 case "$ac_configure_args0 " in 1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1967 esac 1968 ;; 1969 -* ) ac_must_keep_next=true ;; 1970 esac 1971 fi 1972 as_fn_append ac_configure_args " '$ac_arg'" 1973 ;; 1974 esac 1975 done 1976 done 1977 { ac_configure_args0=; unset ac_configure_args0;} 1978 { ac_configure_args1=; unset ac_configure_args1;} 1979 1980 # When interrupted or exit'd, cleanup temporary files, and complete 1981 # config.log. We remove comments because anyway the quotes in there 1982 # would cause problems or look ugly. 1983 # WARNING: Use '\'' to represent an apostrophe within the trap. 1984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1985 trap 'exit_status=$? 1986 # Sanitize IFS. 1987 IFS=" "" $as_nl" 1988 # Save into config.log some information that might help in debugging. 1989 { 1990 echo 1991 1992 printf "%s\n" "## ---------------- ## 1993 ## Cache variables. ## 1994 ## ---------------- ##" 1995 echo 1996 # The following way of writing the cache mishandles newlines in values, 1997 ( 1998 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1999 eval ac_val=\$$ac_var 2000 case $ac_val in #( 2001 *${as_nl}*) 2002 case $ac_var in #( 2003 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2004 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2005 esac 2006 case $ac_var in #( 2007 _ | IFS | as_nl) ;; #( 2008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2009 *) { eval $ac_var=; unset $ac_var;} ;; 2010 esac ;; 2011 esac 2012 done 2013 (set) 2>&1 | 2014 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2015 *${as_nl}ac_space=\ *) 2016 sed -n \ 2017 "s/'\''/'\''\\\\'\'''\''/g; 2018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2019 ;; #( 2020 *) 2021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2022 ;; 2023 esac | 2024 sort 2025 ) 2026 echo 2027 2028 printf "%s\n" "## ----------------- ## 2029 ## Output variables. ## 2030 ## ----------------- ##" 2031 echo 2032 for ac_var in $ac_subst_vars 2033 do 2034 eval ac_val=\$$ac_var 2035 case $ac_val in 2036 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2037 esac 2038 printf "%s\n" "$ac_var='\''$ac_val'\''" 2039 done | sort 2040 echo 2041 2042 if test -n "$ac_subst_files"; then 2043 printf "%s\n" "## ------------------- ## 2044 ## File substitutions. ## 2045 ## ------------------- ##" 2046 echo 2047 for ac_var in $ac_subst_files 2048 do 2049 eval ac_val=\$$ac_var 2050 case $ac_val in 2051 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2052 esac 2053 printf "%s\n" "$ac_var='\''$ac_val'\''" 2054 done | sort 2055 echo 2056 fi 2057 2058 if test -s confdefs.h; then 2059 printf "%s\n" "## ----------- ## 2060 ## confdefs.h. ## 2061 ## ----------- ##" 2062 echo 2063 cat confdefs.h 2064 echo 2065 fi 2066 test "$ac_signal" != 0 && 2067 printf "%s\n" "$as_me: caught signal $ac_signal" 2068 printf "%s\n" "$as_me: exit $exit_status" 2069 } >&5 2070 rm -f core *.core core.conftest.* && 2071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2072 exit $exit_status 2073 ' 0 2074 for ac_signal in 1 2 13 15; do 2075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2076 done 2077 ac_signal=0 2078 2079 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2080 rm -f -r conftest* confdefs.h 2081 2082 printf "%s\n" "/* confdefs.h */" > confdefs.h 2083 2084 # Predefined preprocessor variables. 2085 2086 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2087 2088 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2089 2090 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2091 2092 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2093 2094 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2095 2096 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2097 2098 2099 # Let the site file select an alternate cache file if it wants to. 2100 # Prefer an explicitly selected file to automatically selected ones. 2101 if test -n "$CONFIG_SITE"; then 2102 ac_site_files="$CONFIG_SITE" 2103 elif test "x$prefix" != xNONE; then 2104 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2105 else 2106 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2107 fi 2108 2109 for ac_site_file in $ac_site_files 2110 do 2111 case $ac_site_file in #( 2112 */*) : 2113 ;; #( 2114 *) : 2115 ac_site_file=./$ac_site_file ;; 2116 esac 2117 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2119 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2120 sed 's/^/| /' "$ac_site_file" >&5 2121 . "$ac_site_file" \ 2122 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2123 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2124 as_fn_error $? "failed to load site script $ac_site_file 2125 See 'config.log' for more details" "$LINENO" 5; } 2126 fi 2127 done 2128 2129 if test -r "$cache_file"; then 2130 # Some versions of bash will fail to source /dev/null (special files 2131 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2132 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2134 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2135 case $cache_file in 2136 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2137 *) . "./$cache_file";; 2138 esac 2139 fi 2140 else 2141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2142 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2143 >$cache_file 2144 fi 2145 2146 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2147 # Test code for whether the C compiler supports C89 (global declarations) 2148 ac_c_conftest_c89_globals=' 2149 /* Does the compiler advertise C89 conformance? 2150 Do not test the value of __STDC__, because some compilers set it to 0 2151 while being otherwise adequately conformant. */ 2152 #if !defined __STDC__ 2153 # error "Compiler does not advertise C89 conformance" 2154 #endif 2155 2156 #include <stddef.h> 2157 #include <stdarg.h> 2158 struct stat; 2159 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2160 struct buf { int x; }; 2161 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2162 static char *e (char **p, int i) 2163 { 2164 return p[i]; 2165 } 2166 static char *f (char * (*g) (char **, int), char **p, ...) 2167 { 2168 char *s; 2169 va_list v; 2170 va_start (v,p); 2171 s = g (p, va_arg (v,int)); 2172 va_end (v); 2173 return s; 2174 } 2175 2176 /* C89 style stringification. */ 2177 #define noexpand_stringify(a) #a 2178 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2179 2180 /* C89 style token pasting. Exercises some of the corner cases that 2181 e.g. old MSVC gets wrong, but not very hard. */ 2182 #define noexpand_concat(a,b) a##b 2183 #define expand_concat(a,b) noexpand_concat(a,b) 2184 extern int vA; 2185 extern int vbee; 2186 #define aye A 2187 #define bee B 2188 int *pvA = &expand_concat(v,aye); 2189 int *pvbee = &noexpand_concat(v,bee); 2190 2191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2192 function prototypes and stuff, but not \xHH hex character constants. 2193 These do not provoke an error unfortunately, instead are silently treated 2194 as an "x". The following induces an error, until -std is added to get 2195 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2196 array size at least. It is necessary to write \x00 == 0 to get something 2197 that is true only with -std. */ 2198 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2199 2200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2201 inside strings and character constants. */ 2202 #define FOO(x) '\''x'\'' 2203 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2204 2205 int test (int i, double x); 2206 struct s1 {int (*f) (int a);}; 2207 struct s2 {int (*f) (double a);}; 2208 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2209 int, int);' 2210 2211 # Test code for whether the C compiler supports C89 (body of main). 2212 ac_c_conftest_c89_main=' 2213 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2214 ' 2215 2216 # Test code for whether the C compiler supports C99 (global declarations) 2217 ac_c_conftest_c99_globals=' 2218 /* Does the compiler advertise C99 conformance? */ 2219 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2220 # error "Compiler does not advertise C99 conformance" 2221 #endif 2222 2223 // See if C++-style comments work. 2224 2225 #include <stdbool.h> 2226 extern int puts (const char *); 2227 extern int printf (const char *, ...); 2228 extern int dprintf (int, const char *, ...); 2229 extern void *malloc (size_t); 2230 extern void free (void *); 2231 2232 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2233 // dprintf is used instead of fprintf to avoid needing to declare 2234 // FILE and stderr. 2235 #define debug(...) dprintf (2, __VA_ARGS__) 2236 #define showlist(...) puts (#__VA_ARGS__) 2237 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2238 static void 2239 test_varargs_macros (void) 2240 { 2241 int x = 1234; 2242 int y = 5678; 2243 debug ("Flag"); 2244 debug ("X = %d\n", x); 2245 showlist (The first, second, and third items.); 2246 report (x>y, "x is %d but y is %d", x, y); 2247 } 2248 2249 // Check long long types. 2250 #define BIG64 18446744073709551615ull 2251 #define BIG32 4294967295ul 2252 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2253 #if !BIG_OK 2254 #error "your preprocessor is broken" 2255 #endif 2256 #if BIG_OK 2257 #else 2258 #error "your preprocessor is broken" 2259 #endif 2260 static long long int bignum = -9223372036854775807LL; 2261 static unsigned long long int ubignum = BIG64; 2262 2263 struct incomplete_array 2264 { 2265 int datasize; 2266 double data[]; 2267 }; 2268 2269 struct named_init { 2270 int number; 2271 const wchar_t *name; 2272 double average; 2273 }; 2274 2275 typedef const char *ccp; 2276 2277 static inline int 2278 test_restrict (ccp restrict text) 2279 { 2280 // Iterate through items via the restricted pointer. 2281 // Also check for declarations in for loops. 2282 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2283 continue; 2284 return 0; 2285 } 2286 2287 // Check varargs and va_copy. 2288 static bool 2289 test_varargs (const char *format, ...) 2290 { 2291 va_list args; 2292 va_start (args, format); 2293 va_list args_copy; 2294 va_copy (args_copy, args); 2295 2296 const char *str = ""; 2297 int number = 0; 2298 float fnumber = 0; 2299 2300 while (*format) 2301 { 2302 switch (*format++) 2303 { 2304 case '\''s'\'': // string 2305 str = va_arg (args_copy, const char *); 2306 break; 2307 case '\''d'\'': // int 2308 number = va_arg (args_copy, int); 2309 break; 2310 case '\''f'\'': // float 2311 fnumber = va_arg (args_copy, double); 2312 break; 2313 default: 2314 break; 2315 } 2316 } 2317 va_end (args_copy); 2318 va_end (args); 2319 2320 return *str && number && fnumber; 2321 } 2322 ' 2323 2324 # Test code for whether the C compiler supports C99 (body of main). 2325 ac_c_conftest_c99_main=' 2326 // Check bool. 2327 _Bool success = false; 2328 success |= (argc != 0); 2329 2330 // Check restrict. 2331 if (test_restrict ("String literal") == 0) 2332 success = true; 2333 char *restrict newvar = "Another string"; 2334 2335 // Check varargs. 2336 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2337 test_varargs_macros (); 2338 2339 // Check flexible array members. 2340 struct incomplete_array *ia = 2341 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2342 ia->datasize = 10; 2343 for (int i = 0; i < ia->datasize; ++i) 2344 ia->data[i] = i * 1.234; 2345 // Work around memory leak warnings. 2346 free (ia); 2347 2348 // Check named initializers. 2349 struct named_init ni = { 2350 .number = 34, 2351 .name = L"Test wide string", 2352 .average = 543.34343, 2353 }; 2354 2355 ni.number = 58; 2356 2357 int dynamic_array[ni.number]; 2358 dynamic_array[0] = argv[0][0]; 2359 dynamic_array[ni.number - 1] = 543; 2360 2361 // work around unused variable warnings 2362 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2363 || dynamic_array[ni.number - 1] != 543); 2364 ' 2365 2366 # Test code for whether the C compiler supports C11 (global declarations) 2367 ac_c_conftest_c11_globals=' 2368 /* Does the compiler advertise C11 conformance? */ 2369 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2370 # error "Compiler does not advertise C11 conformance" 2371 #endif 2372 2373 // Check _Alignas. 2374 char _Alignas (double) aligned_as_double; 2375 char _Alignas (0) no_special_alignment; 2376 extern char aligned_as_int; 2377 char _Alignas (0) _Alignas (int) aligned_as_int; 2378 2379 // Check _Alignof. 2380 enum 2381 { 2382 int_alignment = _Alignof (int), 2383 int_array_alignment = _Alignof (int[100]), 2384 char_alignment = _Alignof (char) 2385 }; 2386 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2387 2388 // Check _Noreturn. 2389 int _Noreturn does_not_return (void) { for (;;) continue; } 2390 2391 // Check _Static_assert. 2392 struct test_static_assert 2393 { 2394 int x; 2395 _Static_assert (sizeof (int) <= sizeof (long int), 2396 "_Static_assert does not work in struct"); 2397 long int y; 2398 }; 2399 2400 // Check UTF-8 literals. 2401 #define u8 syntax error! 2402 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2403 2404 // Check duplicate typedefs. 2405 typedef long *long_ptr; 2406 typedef long int *long_ptr; 2407 typedef long_ptr long_ptr; 2408 2409 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2410 struct anonymous 2411 { 2412 union { 2413 struct { int i; int j; }; 2414 struct { int k; long int l; } w; 2415 }; 2416 int m; 2417 } v1; 2418 ' 2419 2420 # Test code for whether the C compiler supports C11 (body of main). 2421 ac_c_conftest_c11_main=' 2422 _Static_assert ((offsetof (struct anonymous, i) 2423 == offsetof (struct anonymous, w.k)), 2424 "Anonymous union alignment botch"); 2425 v1.i = 2; 2426 v1.w.k = 5; 2427 ok |= v1.i != 5; 2428 ' 2429 2430 # Test code for whether the C compiler supports C11 (complete). 2431 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2432 ${ac_c_conftest_c99_globals} 2433 ${ac_c_conftest_c11_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 ${ac_c_conftest_c11_main} 2442 return ok; 2443 } 2444 " 2445 2446 # Test code for whether the C compiler supports C99 (complete). 2447 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2448 ${ac_c_conftest_c99_globals} 2449 2450 int 2451 main (int argc, char **argv) 2452 { 2453 int ok = 0; 2454 ${ac_c_conftest_c89_main} 2455 ${ac_c_conftest_c99_main} 2456 return ok; 2457 } 2458 " 2459 2460 # Test code for whether the C compiler supports C89 (complete). 2461 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2462 2463 int 2464 main (int argc, char **argv) 2465 { 2466 int ok = 0; 2467 ${ac_c_conftest_c89_main} 2468 return ok; 2469 } 2470 " 2471 2472 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2473 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2474 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2475 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2476 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2477 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2478 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2479 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2480 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2481 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2482 2483 # Auxiliary files required by this configure script. 2484 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2485 2486 # Locations in which to look for auxiliary files. 2487 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2488 2489 # Search for a directory containing all of the required auxiliary files, 2490 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2491 # If we don't find one directory that contains all the files we need, 2492 # we report the set of missing files from the *first* directory in 2493 # $ac_aux_dir_candidates and give up. 2494 ac_missing_aux_files="" 2495 ac_first_candidate=: 2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2498 as_found=false 2499 for as_dir in $ac_aux_dir_candidates 2500 do 2501 IFS=$as_save_IFS 2502 case $as_dir in #((( 2503 '') as_dir=./ ;; 2504 */) ;; 2505 *) as_dir=$as_dir/ ;; 2506 esac 2507 as_found=: 2508 2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2510 ac_aux_dir_found=yes 2511 ac_install_sh= 2512 for ac_aux in $ac_aux_files 2513 do 2514 # As a special case, if "install-sh" is required, that requirement 2515 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2516 # and $ac_install_sh is set appropriately for whichever one is found. 2517 if test x"$ac_aux" = x"install-sh" 2518 then 2519 if test -f "${as_dir}install-sh"; then 2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2521 ac_install_sh="${as_dir}install-sh -c" 2522 elif test -f "${as_dir}install.sh"; then 2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2524 ac_install_sh="${as_dir}install.sh -c" 2525 elif test -f "${as_dir}shtool"; then 2526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2527 ac_install_sh="${as_dir}shtool install -c" 2528 else 2529 ac_aux_dir_found=no 2530 if $ac_first_candidate; then 2531 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2532 else 2533 break 2534 fi 2535 fi 2536 else 2537 if test -f "${as_dir}${ac_aux}"; then 2538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2539 else 2540 ac_aux_dir_found=no 2541 if $ac_first_candidate; then 2542 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2543 else 2544 break 2545 fi 2546 fi 2547 fi 2548 done 2549 if test "$ac_aux_dir_found" = yes; then 2550 ac_aux_dir="$as_dir" 2551 break 2552 fi 2553 ac_first_candidate=false 2554 2555 as_found=false 2556 done 2557 IFS=$as_save_IFS 2558 if $as_found 2559 then : 2560 2561 else case e in #( 2562 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2563 esac 2564 fi 2565 2566 2567 # These three variables are undocumented and unsupported, 2568 # and are intended to be withdrawn in a future Autoconf release. 2569 # They can cause serious problems if a builder's source tree is in a directory 2570 # whose full name contains unusual characters. 2571 if test -f "${ac_aux_dir}config.guess"; then 2572 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2573 fi 2574 if test -f "${ac_aux_dir}config.sub"; then 2575 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2576 fi 2577 if test -f "$ac_aux_dir/configure"; then 2578 ac_configure="$SHELL ${ac_aux_dir}configure" 2579 fi 2580 2581 # Check that the precious variables saved in the cache have kept the same 2582 # value. 2583 ac_cache_corrupted=false 2584 for ac_var in $ac_precious_vars; do 2585 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2586 eval ac_new_set=\$ac_env_${ac_var}_set 2587 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2588 eval ac_new_val=\$ac_env_${ac_var}_value 2589 case $ac_old_set,$ac_new_set in 2590 set,) 2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2592 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2593 ac_cache_corrupted=: ;; 2594 ,set) 2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2596 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2597 ac_cache_corrupted=: ;; 2598 ,);; 2599 *) 2600 if test "x$ac_old_val" != "x$ac_new_val"; then 2601 # differences in whitespace do not lead to failure. 2602 ac_old_val_w=`echo x $ac_old_val` 2603 ac_new_val_w=`echo x $ac_new_val` 2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2606 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2607 ac_cache_corrupted=: 2608 else 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2610 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2611 eval $ac_var=\$ac_old_val 2612 fi 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2614 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2616 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2617 fi;; 2618 esac 2619 # Pass precious variables to config.status. 2620 if test "$ac_new_set" = set; then 2621 case $ac_new_val in 2622 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2623 *) ac_arg=$ac_var=$ac_new_val ;; 2624 esac 2625 case " $ac_configure_args " in 2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2627 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2628 esac 2629 fi 2630 done 2631 if $ac_cache_corrupted; then 2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2633 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2635 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2636 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2637 and start over" "$LINENO" 5 2638 fi 2639 ## -------------------- ## 2640 ## Main body of script. ## 2641 ## -------------------- ## 2642 2643 ac_ext=c 2644 ac_cpp='$CPP $CPPFLAGS' 2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2648 2649 2650 2651 ac_config_headers="$ac_config_headers config.h" 2652 2653 2654 2655 # Set common system defines for POSIX extensions, such as _GNU_SOURCE 2656 # Must be called before any macros that run the compiler (like LT_INIT) 2657 # to avoid autoconf errors. 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 # Expand $ac_aux_dir to an absolute path. 2670 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2671 2672 ac_ext=c 2673 ac_cpp='$CPP $CPPFLAGS' 2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2677 if test -n "$ac_tool_prefix"; then 2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2679 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2681 printf %s "checking for $ac_word... " >&6; } 2682 if test ${ac_cv_prog_CC+y} 2683 then : 2684 printf %s "(cached) " >&6 2685 else case e in #( 2686 e) if test -n "$CC"; then 2687 ac_cv_prog_CC="$CC" # Let the user override the test. 2688 else 2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690 for as_dir in $PATH 2691 do 2692 IFS=$as_save_IFS 2693 case $as_dir in #((( 2694 '') as_dir=./ ;; 2695 */) ;; 2696 *) as_dir=$as_dir/ ;; 2697 esac 2698 for ac_exec_ext in '' $ac_executable_extensions; do 2699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2700 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2702 break 2 2703 fi 2704 done 2705 done 2706 IFS=$as_save_IFS 2707 2708 fi ;; 2709 esac 2710 fi 2711 CC=$ac_cv_prog_CC 2712 if test -n "$CC"; then 2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2714 printf "%s\n" "$CC" >&6; } 2715 else 2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2717 printf "%s\n" "no" >&6; } 2718 fi 2719 2720 2721 fi 2722 if test -z "$ac_cv_prog_CC"; then 2723 ac_ct_CC=$CC 2724 # Extract the first word of "gcc", so it can be a program name with args. 2725 set dummy gcc; ac_word=$2 2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2727 printf %s "checking for $ac_word... " >&6; } 2728 if test ${ac_cv_prog_ac_ct_CC+y} 2729 then : 2730 printf %s "(cached) " >&6 2731 else case e in #( 2732 e) if test -n "$ac_ct_CC"; then 2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2734 else 2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2736 for as_dir in $PATH 2737 do 2738 IFS=$as_save_IFS 2739 case $as_dir in #((( 2740 '') as_dir=./ ;; 2741 */) ;; 2742 *) as_dir=$as_dir/ ;; 2743 esac 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2746 ac_cv_prog_ac_ct_CC="gcc" 2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750 done 2751 done 2752 IFS=$as_save_IFS 2753 2754 fi ;; 2755 esac 2756 fi 2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2758 if test -n "$ac_ct_CC"; then 2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2760 printf "%s\n" "$ac_ct_CC" >&6; } 2761 else 2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2763 printf "%s\n" "no" >&6; } 2764 fi 2765 2766 if test "x$ac_ct_CC" = x; then 2767 CC="" 2768 else 2769 case $cross_compiling:$ac_tool_warned in 2770 yes:) 2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2773 ac_tool_warned=yes ;; 2774 esac 2775 CC=$ac_ct_CC 2776 fi 2777 else 2778 CC="$ac_cv_prog_CC" 2779 fi 2780 2781 if test -z "$CC"; then 2782 if test -n "$ac_tool_prefix"; then 2783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2784 set dummy ${ac_tool_prefix}cc; ac_word=$2 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2786 printf %s "checking for $ac_word... " >&6; } 2787 if test ${ac_cv_prog_CC+y} 2788 then : 2789 printf %s "(cached) " >&6 2790 else case e in #( 2791 e) if test -n "$CC"; then 2792 ac_cv_prog_CC="$CC" # Let the user override the test. 2793 else 2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795 for as_dir in $PATH 2796 do 2797 IFS=$as_save_IFS 2798 case $as_dir in #((( 2799 '') as_dir=./ ;; 2800 */) ;; 2801 *) as_dir=$as_dir/ ;; 2802 esac 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2805 ac_cv_prog_CC="${ac_tool_prefix}cc" 2806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809 done 2810 done 2811 IFS=$as_save_IFS 2812 2813 fi ;; 2814 esac 2815 fi 2816 CC=$ac_cv_prog_CC 2817 if test -n "$CC"; then 2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2819 printf "%s\n" "$CC" >&6; } 2820 else 2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2822 printf "%s\n" "no" >&6; } 2823 fi 2824 2825 2826 fi 2827 fi 2828 if test -z "$CC"; then 2829 # Extract the first word of "cc", so it can be a program name with args. 2830 set dummy cc; ac_word=$2 2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2832 printf %s "checking for $ac_word... " >&6; } 2833 if test ${ac_cv_prog_CC+y} 2834 then : 2835 printf %s "(cached) " >&6 2836 else case e in #( 2837 e) if test -n "$CC"; then 2838 ac_cv_prog_CC="$CC" # Let the user override the test. 2839 else 2840 ac_prog_rejected=no 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842 for as_dir in $PATH 2843 do 2844 IFS=$as_save_IFS 2845 case $as_dir in #((( 2846 '') as_dir=./ ;; 2847 */) ;; 2848 *) as_dir=$as_dir/ ;; 2849 esac 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2852 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2853 ac_prog_rejected=yes 2854 continue 2855 fi 2856 ac_cv_prog_CC="cc" 2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860 done 2861 done 2862 IFS=$as_save_IFS 2863 2864 if test $ac_prog_rejected = yes; then 2865 # We found a bogon in the path, so make sure we never use it. 2866 set dummy $ac_cv_prog_CC 2867 shift 2868 if test $# != 0; then 2869 # We chose a different compiler from the bogus one. 2870 # However, it has the same basename, so the bogon will be chosen 2871 # first if we set CC to just the basename; use the full file name. 2872 shift 2873 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2874 fi 2875 fi 2876 fi ;; 2877 esac 2878 fi 2879 CC=$ac_cv_prog_CC 2880 if test -n "$CC"; then 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2882 printf "%s\n" "$CC" >&6; } 2883 else 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885 printf "%s\n" "no" >&6; } 2886 fi 2887 2888 2889 fi 2890 if test -z "$CC"; then 2891 if test -n "$ac_tool_prefix"; then 2892 for ac_prog in cl.exe 2893 do 2894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897 printf %s "checking for $ac_word... " >&6; } 2898 if test ${ac_cv_prog_CC+y} 2899 then : 2900 printf %s "(cached) " >&6 2901 else case e in #( 2902 e) if test -n "$CC"; then 2903 ac_cv_prog_CC="$CC" # Let the user override the test. 2904 else 2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906 for as_dir in $PATH 2907 do 2908 IFS=$as_save_IFS 2909 case $as_dir in #((( 2910 '') as_dir=./ ;; 2911 */) ;; 2912 *) as_dir=$as_dir/ ;; 2913 esac 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920 done 2921 done 2922 IFS=$as_save_IFS 2923 2924 fi ;; 2925 esac 2926 fi 2927 CC=$ac_cv_prog_CC 2928 if test -n "$CC"; then 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2930 printf "%s\n" "$CC" >&6; } 2931 else 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933 printf "%s\n" "no" >&6; } 2934 fi 2935 2936 2937 test -n "$CC" && break 2938 done 2939 fi 2940 if test -z "$CC"; then 2941 ac_ct_CC=$CC 2942 for ac_prog in cl.exe 2943 do 2944 # Extract the first word of "$ac_prog", so it can be a program name with args. 2945 set dummy $ac_prog; ac_word=$2 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2947 printf %s "checking for $ac_word... " >&6; } 2948 if test ${ac_cv_prog_ac_ct_CC+y} 2949 then : 2950 printf %s "(cached) " >&6 2951 else case e in #( 2952 e) if test -n "$ac_ct_CC"; then 2953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2954 else 2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956 for as_dir in $PATH 2957 do 2958 IFS=$as_save_IFS 2959 case $as_dir in #((( 2960 '') as_dir=./ ;; 2961 */) ;; 2962 *) as_dir=$as_dir/ ;; 2963 esac 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2966 ac_cv_prog_ac_ct_CC="$ac_prog" 2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2968 break 2 2969 fi 2970 done 2971 done 2972 IFS=$as_save_IFS 2973 2974 fi ;; 2975 esac 2976 fi 2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2978 if test -n "$ac_ct_CC"; then 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2980 printf "%s\n" "$ac_ct_CC" >&6; } 2981 else 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983 printf "%s\n" "no" >&6; } 2984 fi 2985 2986 2987 test -n "$ac_ct_CC" && break 2988 done 2989 2990 if test "x$ac_ct_CC" = x; then 2991 CC="" 2992 else 2993 case $cross_compiling:$ac_tool_warned in 2994 yes:) 2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2997 ac_tool_warned=yes ;; 2998 esac 2999 CC=$ac_ct_CC 3000 fi 3001 fi 3002 3003 fi 3004 if test -z "$CC"; then 3005 if test -n "$ac_tool_prefix"; then 3006 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3007 set dummy ${ac_tool_prefix}clang; ac_word=$2 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3009 printf %s "checking for $ac_word... " >&6; } 3010 if test ${ac_cv_prog_CC+y} 3011 then : 3012 printf %s "(cached) " >&6 3013 else case e in #( 3014 e) if test -n "$CC"; then 3015 ac_cv_prog_CC="$CC" # Let the user override the test. 3016 else 3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3018 for as_dir in $PATH 3019 do 3020 IFS=$as_save_IFS 3021 case $as_dir in #((( 3022 '') as_dir=./ ;; 3023 */) ;; 3024 *) as_dir=$as_dir/ ;; 3025 esac 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3028 ac_cv_prog_CC="${ac_tool_prefix}clang" 3029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032 done 3033 done 3034 IFS=$as_save_IFS 3035 3036 fi ;; 3037 esac 3038 fi 3039 CC=$ac_cv_prog_CC 3040 if test -n "$CC"; then 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3042 printf "%s\n" "$CC" >&6; } 3043 else 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3045 printf "%s\n" "no" >&6; } 3046 fi 3047 3048 3049 fi 3050 if test -z "$ac_cv_prog_CC"; then 3051 ac_ct_CC=$CC 3052 # Extract the first word of "clang", so it can be a program name with args. 3053 set dummy clang; ac_word=$2 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055 printf %s "checking for $ac_word... " >&6; } 3056 if test ${ac_cv_prog_ac_ct_CC+y} 3057 then : 3058 printf %s "(cached) " >&6 3059 else case e in #( 3060 e) if test -n "$ac_ct_CC"; then 3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3062 else 3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064 for as_dir in $PATH 3065 do 3066 IFS=$as_save_IFS 3067 case $as_dir in #((( 3068 '') as_dir=./ ;; 3069 */) ;; 3070 *) as_dir=$as_dir/ ;; 3071 esac 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3074 ac_cv_prog_ac_ct_CC="clang" 3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078 done 3079 done 3080 IFS=$as_save_IFS 3081 3082 fi ;; 3083 esac 3084 fi 3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3086 if test -n "$ac_ct_CC"; then 3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3088 printf "%s\n" "$ac_ct_CC" >&6; } 3089 else 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3091 printf "%s\n" "no" >&6; } 3092 fi 3093 3094 if test "x$ac_ct_CC" = x; then 3095 CC="" 3096 else 3097 case $cross_compiling:$ac_tool_warned in 3098 yes:) 3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3100 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3101 ac_tool_warned=yes ;; 3102 esac 3103 CC=$ac_ct_CC 3104 fi 3105 else 3106 CC="$ac_cv_prog_CC" 3107 fi 3108 3109 fi 3110 3111 3112 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3113 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3114 as_fn_error $? "no acceptable C compiler found in \$PATH 3115 See 'config.log' for more details" "$LINENO" 5; } 3116 3117 # Provide some information about the compiler. 3118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3119 set X $ac_compile 3120 ac_compiler=$2 3121 for ac_option in --version -v -V -qversion -version; do 3122 { { ac_try="$ac_compiler $ac_option >&5" 3123 case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126 esac 3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3128 printf "%s\n" "$ac_try_echo"; } >&5 3129 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3130 ac_status=$? 3131 if test -s conftest.err; then 3132 sed '10a\ 3133 ... rest of stderr output deleted ... 3134 10q' conftest.err >conftest.er1 3135 cat conftest.er1 >&5 3136 fi 3137 rm -f conftest.er1 conftest.err 3138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3139 test $ac_status = 0; } 3140 done 3141 3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3143 /* end confdefs.h. */ 3144 3145 int 3146 main (void) 3147 { 3148 3149 ; 3150 return 0; 3151 } 3152 _ACEOF 3153 ac_clean_files_save=$ac_clean_files 3154 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3155 # Try to create an executable without -o first, disregard a.out. 3156 # It will help us diagnose broken compilers, and finding out an intuition 3157 # of exeext. 3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3159 printf %s "checking whether the C compiler works... " >&6; } 3160 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3161 3162 # The possible output files: 3163 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3164 3165 ac_rmfiles= 3166 for ac_file in $ac_files 3167 do 3168 case $ac_file in 3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3170 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3171 esac 3172 done 3173 rm -f $ac_rmfiles 3174 3175 if { { ac_try="$ac_link_default" 3176 case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179 esac 3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3181 printf "%s\n" "$ac_try_echo"; } >&5 3182 (eval "$ac_link_default") 2>&5 3183 ac_status=$? 3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3185 test $ac_status = 0; } 3186 then : 3187 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3188 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3189 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3190 # so that the user can short-circuit this test for compilers unknown to 3191 # Autoconf. 3192 for ac_file in $ac_files '' 3193 do 3194 test -f "$ac_file" || continue 3195 case $ac_file in 3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3197 ;; 3198 [ab].out ) 3199 # We found the default executable, but exeext='' is most 3200 # certainly right. 3201 break;; 3202 *.* ) 3203 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3204 then :; else 3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3206 fi 3207 # We set ac_cv_exeext here because the later test for it is not 3208 # safe: cross compilers may not add the suffix if given an '-o' 3209 # argument, so we may need to know it at that point already. 3210 # Even if this section looks crufty: it has the advantage of 3211 # actually working. 3212 break;; 3213 * ) 3214 break;; 3215 esac 3216 done 3217 test "$ac_cv_exeext" = no && ac_cv_exeext= 3218 3219 else case e in #( 3220 e) ac_file='' ;; 3221 esac 3222 fi 3223 if test -z "$ac_file" 3224 then : 3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226 printf "%s\n" "no" >&6; } 3227 printf "%s\n" "$as_me: failed program was:" >&5 3228 sed 's/^/| /' conftest.$ac_ext >&5 3229 3230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3231 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3232 as_fn_error 77 "C compiler cannot create executables 3233 See 'config.log' for more details" "$LINENO" 5; } 3234 else case e in #( 3235 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3236 printf "%s\n" "yes" >&6; } ;; 3237 esac 3238 fi 3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3240 printf %s "checking for C compiler default output file name... " >&6; } 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3242 printf "%s\n" "$ac_file" >&6; } 3243 ac_exeext=$ac_cv_exeext 3244 3245 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3246 ac_clean_files=$ac_clean_files_save 3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3248 printf %s "checking for suffix of executables... " >&6; } 3249 if { { ac_try="$ac_link" 3250 case "(($ac_try" in 3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3252 *) ac_try_echo=$ac_try;; 3253 esac 3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3255 printf "%s\n" "$ac_try_echo"; } >&5 3256 (eval "$ac_link") 2>&5 3257 ac_status=$? 3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3259 test $ac_status = 0; } 3260 then : 3261 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3262 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3263 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3264 # 'rm'. 3265 for ac_file in conftest.exe conftest conftest.*; do 3266 test -f "$ac_file" || continue 3267 case $ac_file in 3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3270 break;; 3271 * ) break;; 3272 esac 3273 done 3274 else case e in #( 3275 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3276 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3277 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3278 See 'config.log' for more details" "$LINENO" 5; } ;; 3279 esac 3280 fi 3281 rm -f conftest conftest$ac_cv_exeext 3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3283 printf "%s\n" "$ac_cv_exeext" >&6; } 3284 3285 rm -f conftest.$ac_ext 3286 EXEEXT=$ac_cv_exeext 3287 ac_exeext=$EXEEXT 3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289 /* end confdefs.h. */ 3290 #include <stdio.h> 3291 int 3292 main (void) 3293 { 3294 FILE *f = fopen ("conftest.out", "w"); 3295 if (!f) 3296 return 1; 3297 return ferror (f) || fclose (f) != 0; 3298 3299 ; 3300 return 0; 3301 } 3302 _ACEOF 3303 ac_clean_files="$ac_clean_files conftest.out" 3304 # Check that the compiler produces executables we can run. If not, either 3305 # the compiler is broken, or we cross compile. 3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3307 printf %s "checking whether we are cross compiling... " >&6; } 3308 if test "$cross_compiling" != yes; then 3309 { { ac_try="$ac_link" 3310 case "(($ac_try" in 3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3312 *) ac_try_echo=$ac_try;; 3313 esac 3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3315 printf "%s\n" "$ac_try_echo"; } >&5 3316 (eval "$ac_link") 2>&5 3317 ac_status=$? 3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3319 test $ac_status = 0; } 3320 if { ac_try='./conftest$ac_cv_exeext' 3321 { { case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324 esac 3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3326 printf "%s\n" "$ac_try_echo"; } >&5 3327 (eval "$ac_try") 2>&5 3328 ac_status=$? 3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3330 test $ac_status = 0; }; }; then 3331 cross_compiling=no 3332 else 3333 if test "$cross_compiling" = maybe; then 3334 cross_compiling=yes 3335 else 3336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3337 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3338 as_fn_error 77 "cannot run C compiled programs. 3339 If you meant to cross compile, use '--host'. 3340 See 'config.log' for more details" "$LINENO" 5; } 3341 fi 3342 fi 3343 fi 3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3345 printf "%s\n" "$cross_compiling" >&6; } 3346 3347 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3348 conftest.o conftest.obj conftest.out 3349 ac_clean_files=$ac_clean_files_save 3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3351 printf %s "checking for suffix of object files... " >&6; } 3352 if test ${ac_cv_objext+y} 3353 then : 3354 printf %s "(cached) " >&6 3355 else case e in #( 3356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357 /* end confdefs.h. */ 3358 3359 int 3360 main (void) 3361 { 3362 3363 ; 3364 return 0; 3365 } 3366 _ACEOF 3367 rm -f conftest.o conftest.obj 3368 if { { ac_try="$ac_compile" 3369 case "(($ac_try" in 3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3371 *) ac_try_echo=$ac_try;; 3372 esac 3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3374 printf "%s\n" "$ac_try_echo"; } >&5 3375 (eval "$ac_compile") 2>&5 3376 ac_status=$? 3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3378 test $ac_status = 0; } 3379 then : 3380 for ac_file in conftest.o conftest.obj conftest.*; do 3381 test -f "$ac_file" || continue; 3382 case $ac_file in 3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3385 break;; 3386 esac 3387 done 3388 else case e in #( 3389 e) printf "%s\n" "$as_me: failed program was:" >&5 3390 sed 's/^/| /' conftest.$ac_ext >&5 3391 3392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3393 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3394 as_fn_error $? "cannot compute suffix of object files: cannot compile 3395 See 'config.log' for more details" "$LINENO" 5; } ;; 3396 esac 3397 fi 3398 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3399 esac 3400 fi 3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3402 printf "%s\n" "$ac_cv_objext" >&6; } 3403 OBJEXT=$ac_cv_objext 3404 ac_objext=$OBJEXT 3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3406 printf %s "checking whether the compiler supports GNU C... " >&6; } 3407 if test ${ac_cv_c_compiler_gnu+y} 3408 then : 3409 printf %s "(cached) " >&6 3410 else case e in #( 3411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412 /* end confdefs.h. */ 3413 3414 int 3415 main (void) 3416 { 3417 #ifndef __GNUC__ 3418 choke me 3419 #endif 3420 3421 ; 3422 return 0; 3423 } 3424 _ACEOF 3425 if ac_fn_c_try_compile "$LINENO" 3426 then : 3427 ac_compiler_gnu=yes 3428 else case e in #( 3429 e) ac_compiler_gnu=no ;; 3430 esac 3431 fi 3432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3434 ;; 3435 esac 3436 fi 3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3438 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3440 3441 if test $ac_compiler_gnu = yes; then 3442 GCC=yes 3443 else 3444 GCC= 3445 fi 3446 ac_test_CFLAGS=${CFLAGS+y} 3447 ac_save_CFLAGS=$CFLAGS 3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3449 printf %s "checking whether $CC accepts -g... " >&6; } 3450 if test ${ac_cv_prog_cc_g+y} 3451 then : 3452 printf %s "(cached) " >&6 3453 else case e in #( 3454 e) ac_save_c_werror_flag=$ac_c_werror_flag 3455 ac_c_werror_flag=yes 3456 ac_cv_prog_cc_g=no 3457 CFLAGS="-g" 3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3459 /* end confdefs.h. */ 3460 3461 int 3462 main (void) 3463 { 3464 3465 ; 3466 return 0; 3467 } 3468 _ACEOF 3469 if ac_fn_c_try_compile "$LINENO" 3470 then : 3471 ac_cv_prog_cc_g=yes 3472 else case e in #( 3473 e) CFLAGS="" 3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3475 /* end confdefs.h. */ 3476 3477 int 3478 main (void) 3479 { 3480 3481 ; 3482 return 0; 3483 } 3484 _ACEOF 3485 if ac_fn_c_try_compile "$LINENO" 3486 then : 3487 3488 else case e in #( 3489 e) ac_c_werror_flag=$ac_save_c_werror_flag 3490 CFLAGS="-g" 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492 /* end confdefs.h. */ 3493 3494 int 3495 main (void) 3496 { 3497 3498 ; 3499 return 0; 3500 } 3501 _ACEOF 3502 if ac_fn_c_try_compile "$LINENO" 3503 then : 3504 ac_cv_prog_cc_g=yes 3505 fi 3506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3507 esac 3508 fi 3509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3510 esac 3511 fi 3512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3513 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3514 esac 3515 fi 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3517 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3518 if test $ac_test_CFLAGS; then 3519 CFLAGS=$ac_save_CFLAGS 3520 elif test $ac_cv_prog_cc_g = yes; then 3521 if test "$GCC" = yes; then 3522 CFLAGS="-g -O2" 3523 else 3524 CFLAGS="-g" 3525 fi 3526 else 3527 if test "$GCC" = yes; then 3528 CFLAGS="-O2" 3529 else 3530 CFLAGS= 3531 fi 3532 fi 3533 ac_prog_cc_stdc=no 3534 if test x$ac_prog_cc_stdc = xno 3535 then : 3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3537 printf %s "checking for $CC option to enable C11 features... " >&6; } 3538 if test ${ac_cv_prog_cc_c11+y} 3539 then : 3540 printf %s "(cached) " >&6 3541 else case e in #( 3542 e) ac_cv_prog_cc_c11=no 3543 ac_save_CC=$CC 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545 /* end confdefs.h. */ 3546 $ac_c_conftest_c11_program 3547 _ACEOF 3548 for ac_arg in '' -std=gnu11 3549 do 3550 CC="$ac_save_CC $ac_arg" 3551 if ac_fn_c_try_compile "$LINENO" 3552 then : 3553 ac_cv_prog_cc_c11=$ac_arg 3554 fi 3555 rm -f core conftest.err conftest.$ac_objext conftest.beam 3556 test "x$ac_cv_prog_cc_c11" != "xno" && break 3557 done 3558 rm -f conftest.$ac_ext 3559 CC=$ac_save_CC ;; 3560 esac 3561 fi 3562 3563 if test "x$ac_cv_prog_cc_c11" = xno 3564 then : 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3566 printf "%s\n" "unsupported" >&6; } 3567 else case e in #( 3568 e) if test "x$ac_cv_prog_cc_c11" = x 3569 then : 3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3571 printf "%s\n" "none needed" >&6; } 3572 else case e in #( 3573 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3574 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3575 CC="$CC $ac_cv_prog_cc_c11" ;; 3576 esac 3577 fi 3578 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3579 ac_prog_cc_stdc=c11 ;; 3580 esac 3581 fi 3582 fi 3583 if test x$ac_prog_cc_stdc = xno 3584 then : 3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3586 printf %s "checking for $CC option to enable C99 features... " >&6; } 3587 if test ${ac_cv_prog_cc_c99+y} 3588 then : 3589 printf %s "(cached) " >&6 3590 else case e in #( 3591 e) ac_cv_prog_cc_c99=no 3592 ac_save_CC=$CC 3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594 /* end confdefs.h. */ 3595 $ac_c_conftest_c99_program 3596 _ACEOF 3597 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3598 do 3599 CC="$ac_save_CC $ac_arg" 3600 if ac_fn_c_try_compile "$LINENO" 3601 then : 3602 ac_cv_prog_cc_c99=$ac_arg 3603 fi 3604 rm -f core conftest.err conftest.$ac_objext conftest.beam 3605 test "x$ac_cv_prog_cc_c99" != "xno" && break 3606 done 3607 rm -f conftest.$ac_ext 3608 CC=$ac_save_CC ;; 3609 esac 3610 fi 3611 3612 if test "x$ac_cv_prog_cc_c99" = xno 3613 then : 3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3615 printf "%s\n" "unsupported" >&6; } 3616 else case e in #( 3617 e) if test "x$ac_cv_prog_cc_c99" = x 3618 then : 3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3620 printf "%s\n" "none needed" >&6; } 3621 else case e in #( 3622 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3623 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3624 CC="$CC $ac_cv_prog_cc_c99" ;; 3625 esac 3626 fi 3627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3628 ac_prog_cc_stdc=c99 ;; 3629 esac 3630 fi 3631 fi 3632 if test x$ac_prog_cc_stdc = xno 3633 then : 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3635 printf %s "checking for $CC option to enable C89 features... " >&6; } 3636 if test ${ac_cv_prog_cc_c89+y} 3637 then : 3638 printf %s "(cached) " >&6 3639 else case e in #( 3640 e) ac_cv_prog_cc_c89=no 3641 ac_save_CC=$CC 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643 /* end confdefs.h. */ 3644 $ac_c_conftest_c89_program 3645 _ACEOF 3646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3647 do 3648 CC="$ac_save_CC $ac_arg" 3649 if ac_fn_c_try_compile "$LINENO" 3650 then : 3651 ac_cv_prog_cc_c89=$ac_arg 3652 fi 3653 rm -f core conftest.err conftest.$ac_objext conftest.beam 3654 test "x$ac_cv_prog_cc_c89" != "xno" && break 3655 done 3656 rm -f conftest.$ac_ext 3657 CC=$ac_save_CC ;; 3658 esac 3659 fi 3660 3661 if test "x$ac_cv_prog_cc_c89" = xno 3662 then : 3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3664 printf "%s\n" "unsupported" >&6; } 3665 else case e in #( 3666 e) if test "x$ac_cv_prog_cc_c89" = x 3667 then : 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3669 printf "%s\n" "none needed" >&6; } 3670 else case e in #( 3671 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3672 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3673 CC="$CC $ac_cv_prog_cc_c89" ;; 3674 esac 3675 fi 3676 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3677 ac_prog_cc_stdc=c89 ;; 3678 esac 3679 fi 3680 fi 3681 3682 ac_ext=c 3683 ac_cpp='$CPP $CPPFLAGS' 3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3687 3688 3689 ac_ext=c 3690 ac_cpp='$CPP $CPPFLAGS' 3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3695 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3696 if test ${am_cv_prog_cc_c_o+y} 3697 then : 3698 printf %s "(cached) " >&6 3699 else case e in #( 3700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3701 /* end confdefs.h. */ 3702 3703 int 3704 main (void) 3705 { 3706 3707 ; 3708 return 0; 3709 } 3710 _ACEOF 3711 # Make sure it works both with $CC and with simple cc. 3712 # Following AC_PROG_CC_C_O, we do the test twice because some 3713 # compilers refuse to overwrite an existing .o file with -o, 3714 # though they will create one. 3715 am_cv_prog_cc_c_o=yes 3716 for am_i in 1 2; do 3717 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3718 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3719 ac_status=$? 3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); } \ 3722 && test -f conftest2.$ac_objext; then 3723 : OK 3724 else 3725 am_cv_prog_cc_c_o=no 3726 break 3727 fi 3728 done 3729 rm -f core conftest* 3730 unset am_i ;; 3731 esac 3732 fi 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3734 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3735 if test "$am_cv_prog_cc_c_o" != yes; then 3736 # Losing compiler, so override with the script. 3737 # FIXME: It is wrong to rewrite CC. 3738 # But if we don't then we get into trouble of one sort or another. 3739 # A longer-term fix would be to have automake use am__CC in this case, 3740 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3741 CC="$am_aux_dir/compile $CC" 3742 fi 3743 ac_ext=c 3744 ac_cpp='$CPP $CPPFLAGS' 3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3748 3749 3750 3751 ac_header= ac_cache= 3752 for ac_item in $ac_header_c_list 3753 do 3754 if test $ac_cache; then 3755 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3756 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3757 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3758 fi 3759 ac_header= ac_cache= 3760 elif test $ac_header; then 3761 ac_cache=$ac_item 3762 else 3763 ac_header=$ac_item 3764 fi 3765 done 3766 3767 3768 3769 3770 3771 3772 3773 3774 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3775 then : 3776 3777 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3778 3779 fi 3780 3781 3782 3783 3784 3785 3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3787 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3788 if test ${ac_cv_safe_to_define___extensions__+y} 3789 then : 3790 printf %s "(cached) " >&6 3791 else case e in #( 3792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3793 /* end confdefs.h. */ 3794 3795 # define __EXTENSIONS__ 1 3796 $ac_includes_default 3797 int 3798 main (void) 3799 { 3800 3801 ; 3802 return 0; 3803 } 3804 _ACEOF 3805 if ac_fn_c_try_compile "$LINENO" 3806 then : 3807 ac_cv_safe_to_define___extensions__=yes 3808 else case e in #( 3809 e) ac_cv_safe_to_define___extensions__=no ;; 3810 esac 3811 fi 3812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3813 esac 3814 fi 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3816 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3817 3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3819 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3820 if test ${ac_cv_should_define__xopen_source+y} 3821 then : 3822 printf %s "(cached) " >&6 3823 else case e in #( 3824 e) ac_cv_should_define__xopen_source=no 3825 if test $ac_cv_header_wchar_h = yes 3826 then : 3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3828 /* end confdefs.h. */ 3829 3830 #include <wchar.h> 3831 mbstate_t x; 3832 int 3833 main (void) 3834 { 3835 3836 ; 3837 return 0; 3838 } 3839 _ACEOF 3840 if ac_fn_c_try_compile "$LINENO" 3841 then : 3842 3843 else case e in #( 3844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845 /* end confdefs.h. */ 3846 3847 #define _XOPEN_SOURCE 500 3848 #include <wchar.h> 3849 mbstate_t x; 3850 int 3851 main (void) 3852 { 3853 3854 ; 3855 return 0; 3856 } 3857 _ACEOF 3858 if ac_fn_c_try_compile "$LINENO" 3859 then : 3860 ac_cv_should_define__xopen_source=yes 3861 fi 3862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3863 esac 3864 fi 3865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3866 fi ;; 3867 esac 3868 fi 3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3870 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3871 3872 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3873 3874 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3875 3876 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3877 3878 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3879 3880 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3881 3882 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3883 3884 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3885 3886 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3887 3888 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3889 3890 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3891 3892 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3893 3894 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3895 3896 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3897 3898 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3899 3900 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3901 3902 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3903 3904 if test $ac_cv_header_minix_config_h = yes 3905 then : 3906 MINIX=yes 3907 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3908 3909 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3910 3911 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3912 3913 else case e in #( 3914 e) MINIX= ;; 3915 esac 3916 fi 3917 if test $ac_cv_safe_to_define___extensions__ = yes 3918 then : 3919 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3920 3921 fi 3922 if test $ac_cv_should_define__xopen_source = yes 3923 then : 3924 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3925 3926 fi 3927 3928 3929 # Initialize Automake 3930 am__api_version='1.16' 3931 3932 3933 # Find a good install program. We prefer a C program (faster), 3934 # so one script is as good as another. But avoid the broken or 3935 # incompatible versions: 3936 # SysV /etc/install, /usr/sbin/install 3937 # SunOS /usr/etc/install 3938 # IRIX /sbin/install 3939 # AIX /bin/install 3940 # AmigaOS /C/install, which installs bootblocks on floppy discs 3941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3944 # OS/2's system install, which has a completely different semantic 3945 # ./install, which can be erroneously created by make from ./install.sh. 3946 # Reject install programs that cannot install multiple files. 3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3948 printf %s "checking for a BSD-compatible install... " >&6; } 3949 if test -z "$INSTALL"; then 3950 if test ${ac_cv_path_install+y} 3951 then : 3952 printf %s "(cached) " >&6 3953 else case e in #( 3954 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3955 for as_dir in $PATH 3956 do 3957 IFS=$as_save_IFS 3958 case $as_dir in #((( 3959 '') as_dir=./ ;; 3960 */) ;; 3961 *) as_dir=$as_dir/ ;; 3962 esac 3963 # Account for fact that we put trailing slashes in our PATH walk. 3964 case $as_dir in #(( 3965 ./ | /[cC]/* | \ 3966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3968 /usr/ucb/* ) ;; 3969 *) 3970 # OSF1 and SCO ODT 3.0 have their own names for install. 3971 # Don't use installbsd from OSF since it installs stuff as root 3972 # by default. 3973 for ac_prog in ginstall scoinst install; do 3974 for ac_exec_ext in '' $ac_executable_extensions; do 3975 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3976 if test $ac_prog = install && 3977 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3978 # AIX install. It has an incompatible calling convention. 3979 : 3980 elif test $ac_prog = install && 3981 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3982 # program-specific install script used by HP pwplus--don't use. 3983 : 3984 else 3985 rm -rf conftest.one conftest.two conftest.dir 3986 echo one > conftest.one 3987 echo two > conftest.two 3988 mkdir conftest.dir 3989 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3990 test -s conftest.one && test -s conftest.two && 3991 test -s conftest.dir/conftest.one && 3992 test -s conftest.dir/conftest.two 3993 then 3994 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3995 break 3 3996 fi 3997 fi 3998 fi 3999 done 4000 done 4001 ;; 4002 esac 4003 4004 done 4005 IFS=$as_save_IFS 4006 4007 rm -rf conftest.one conftest.two conftest.dir 4008 ;; 4009 esac 4010 fi 4011 if test ${ac_cv_path_install+y}; then 4012 INSTALL=$ac_cv_path_install 4013 else 4014 # As a last resort, use the slow shell script. Don't cache a 4015 # value for INSTALL within a source directory, because that will 4016 # break other packages using the cache if that directory is 4017 # removed, or if the value is a relative name. 4018 INSTALL=$ac_install_sh 4019 fi 4020 fi 4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4022 printf "%s\n" "$INSTALL" >&6; } 4023 4024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4025 # It thinks the first close brace ends the variable substitution. 4026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4027 4028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4029 4030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4031 4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4033 printf %s "checking whether build environment is sane... " >&6; } 4034 # Reject unsafe characters in $srcdir or the absolute working directory 4035 # name. Accept space and tab only in the latter. 4036 am_lf=' 4037 ' 4038 case `pwd` in 4039 *[\\\"\#\$\&\'\`$am_lf]*) 4040 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4041 esac 4042 case $srcdir in 4043 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4044 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4045 esac 4046 4047 # Do 'set' in a subshell so we don't clobber the current shell's 4048 # arguments. Must try -L first in case configure is actually a 4049 # symlink; some systems play weird games with the mod time of symlinks 4050 # (eg FreeBSD returns the mod time of the symlink's containing 4051 # directory). 4052 if ( 4053 am_has_slept=no 4054 for am_try in 1 2; do 4055 echo "timestamp, slept: $am_has_slept" > conftest.file 4056 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4057 if test "$*" = "X"; then 4058 # -L didn't work. 4059 set X `ls -t "$srcdir/configure" conftest.file` 4060 fi 4061 if test "$*" != "X $srcdir/configure conftest.file" \ 4062 && test "$*" != "X conftest.file $srcdir/configure"; then 4063 4064 # If neither matched, then we have a broken ls. This can happen 4065 # if, for instance, CONFIG_SHELL is bash and it inherits a 4066 # broken ls alias from the environment. This has actually 4067 # happened. Such a system could not be considered "sane". 4068 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4069 alias in your environment" "$LINENO" 5 4070 fi 4071 if test "$2" = conftest.file || test $am_try -eq 2; then 4072 break 4073 fi 4074 # Just in case. 4075 sleep 1 4076 am_has_slept=yes 4077 done 4078 test "$2" = conftest.file 4079 ) 4080 then 4081 # Ok. 4082 : 4083 else 4084 as_fn_error $? "newly created file is older than distributed files! 4085 Check your system clock" "$LINENO" 5 4086 fi 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4088 printf "%s\n" "yes" >&6; } 4089 # If we didn't sleep, we still need to ensure time stamps of config.status and 4090 # generated files are strictly newer. 4091 am_sleep_pid= 4092 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4093 ( sleep 1 ) & 4094 am_sleep_pid=$! 4095 fi 4096 4097 rm -f conftest.file 4098 4099 test "$program_prefix" != NONE && 4100 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4101 # Use a double $ so make ignores it. 4102 test "$program_suffix" != NONE && 4103 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4104 # Double any \ or $. 4105 # By default was 's,x,x', remove it if useless. 4106 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4107 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4108 4109 4110 if test x"${MISSING+set}" != xset; then 4111 MISSING="\${SHELL} '$am_aux_dir/missing'" 4112 fi 4113 # Use eval to expand $SHELL 4114 if eval "$MISSING --is-lightweight"; then 4115 am_missing_run="$MISSING " 4116 else 4117 am_missing_run= 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4119 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4120 fi 4121 4122 if test x"${install_sh+set}" != xset; then 4123 case $am_aux_dir in 4124 *\ * | *\ *) 4125 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4126 *) 4127 install_sh="\${SHELL} $am_aux_dir/install-sh" 4128 esac 4129 fi 4130 4131 # Installed binaries are usually stripped using 'strip' when the user 4132 # run "make install-strip". However 'strip' might not be the right 4133 # tool to use in cross-compilation environments, therefore Automake 4134 # will honor the 'STRIP' environment variable to overrule this program. 4135 if test "$cross_compiling" != no; then 4136 if test -n "$ac_tool_prefix"; then 4137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4138 set dummy ${ac_tool_prefix}strip; ac_word=$2 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4140 printf %s "checking for $ac_word... " >&6; } 4141 if test ${ac_cv_prog_STRIP+y} 4142 then : 4143 printf %s "(cached) " >&6 4144 else case e in #( 4145 e) if test -n "$STRIP"; then 4146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4147 else 4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4149 for as_dir in $PATH 4150 do 4151 IFS=$as_save_IFS 4152 case $as_dir in #((( 4153 '') as_dir=./ ;; 4154 */) ;; 4155 *) as_dir=$as_dir/ ;; 4156 esac 4157 for ac_exec_ext in '' $ac_executable_extensions; do 4158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4159 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4161 break 2 4162 fi 4163 done 4164 done 4165 IFS=$as_save_IFS 4166 4167 fi ;; 4168 esac 4169 fi 4170 STRIP=$ac_cv_prog_STRIP 4171 if test -n "$STRIP"; then 4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4173 printf "%s\n" "$STRIP" >&6; } 4174 else 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4176 printf "%s\n" "no" >&6; } 4177 fi 4178 4179 4180 fi 4181 if test -z "$ac_cv_prog_STRIP"; then 4182 ac_ct_STRIP=$STRIP 4183 # Extract the first word of "strip", so it can be a program name with args. 4184 set dummy strip; ac_word=$2 4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4186 printf %s "checking for $ac_word... " >&6; } 4187 if test ${ac_cv_prog_ac_ct_STRIP+y} 4188 then : 4189 printf %s "(cached) " >&6 4190 else case e in #( 4191 e) if test -n "$ac_ct_STRIP"; then 4192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4193 else 4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195 for as_dir in $PATH 4196 do 4197 IFS=$as_save_IFS 4198 case $as_dir in #((( 4199 '') as_dir=./ ;; 4200 */) ;; 4201 *) as_dir=$as_dir/ ;; 4202 esac 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4205 ac_cv_prog_ac_ct_STRIP="strip" 4206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4207 break 2 4208 fi 4209 done 4210 done 4211 IFS=$as_save_IFS 4212 4213 fi ;; 4214 esac 4215 fi 4216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4217 if test -n "$ac_ct_STRIP"; then 4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4219 printf "%s\n" "$ac_ct_STRIP" >&6; } 4220 else 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4222 printf "%s\n" "no" >&6; } 4223 fi 4224 4225 if test "x$ac_ct_STRIP" = x; then 4226 STRIP=":" 4227 else 4228 case $cross_compiling:$ac_tool_warned in 4229 yes:) 4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4232 ac_tool_warned=yes ;; 4233 esac 4234 STRIP=$ac_ct_STRIP 4235 fi 4236 else 4237 STRIP="$ac_cv_prog_STRIP" 4238 fi 4239 4240 fi 4241 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4242 4243 4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4245 printf %s "checking for a race-free mkdir -p... " >&6; } 4246 if test -z "$MKDIR_P"; then 4247 if test ${ac_cv_path_mkdir+y} 4248 then : 4249 printf %s "(cached) " >&6 4250 else case e in #( 4251 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4252 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4253 do 4254 IFS=$as_save_IFS 4255 case $as_dir in #((( 4256 '') as_dir=./ ;; 4257 */) ;; 4258 *) as_dir=$as_dir/ ;; 4259 esac 4260 for ac_prog in mkdir gmkdir; do 4261 for ac_exec_ext in '' $ac_executable_extensions; do 4262 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4263 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4264 'mkdir ('*'coreutils) '* | \ 4265 *'BusyBox '* | \ 4266 'mkdir (fileutils) '4.1*) 4267 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4268 break 3;; 4269 esac 4270 done 4271 done 4272 done 4273 IFS=$as_save_IFS 4274 ;; 4275 esac 4276 fi 4277 4278 test -d ./--version && rmdir ./--version 4279 if test ${ac_cv_path_mkdir+y}; then 4280 MKDIR_P="$ac_cv_path_mkdir -p" 4281 else 4282 # As a last resort, use plain mkdir -p, 4283 # in the hope it doesn't have the bugs of ancient mkdir. 4284 MKDIR_P='mkdir -p' 4285 fi 4286 fi 4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4288 printf "%s\n" "$MKDIR_P" >&6; } 4289 4290 for ac_prog in gawk mawk nawk awk 4291 do 4292 # Extract the first word of "$ac_prog", so it can be a program name with args. 4293 set dummy $ac_prog; ac_word=$2 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4295 printf %s "checking for $ac_word... " >&6; } 4296 if test ${ac_cv_prog_AWK+y} 4297 then : 4298 printf %s "(cached) " >&6 4299 else case e in #( 4300 e) if test -n "$AWK"; then 4301 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4302 else 4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304 for as_dir in $PATH 4305 do 4306 IFS=$as_save_IFS 4307 case $as_dir in #((( 4308 '') as_dir=./ ;; 4309 */) ;; 4310 *) as_dir=$as_dir/ ;; 4311 esac 4312 for ac_exec_ext in '' $ac_executable_extensions; do 4313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4314 ac_cv_prog_AWK="$ac_prog" 4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4316 break 2 4317 fi 4318 done 4319 done 4320 IFS=$as_save_IFS 4321 4322 fi ;; 4323 esac 4324 fi 4325 AWK=$ac_cv_prog_AWK 4326 if test -n "$AWK"; then 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4328 printf "%s\n" "$AWK" >&6; } 4329 else 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4331 printf "%s\n" "no" >&6; } 4332 fi 4333 4334 4335 test -n "$AWK" && break 4336 done 4337 4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4339 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4340 set x ${MAKE-make} 4341 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4342 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4343 then : 4344 printf %s "(cached) " >&6 4345 else case e in #( 4346 e) cat >conftest.make <<\_ACEOF 4347 SHELL = /bin/sh 4348 all: 4349 @echo '@@@%%%=$(MAKE)=@@@%%%' 4350 _ACEOF 4351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4352 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4353 *@@@%%%=?*=@@@%%%*) 4354 eval ac_cv_prog_make_${ac_make}_set=yes;; 4355 *) 4356 eval ac_cv_prog_make_${ac_make}_set=no;; 4357 esac 4358 rm -f conftest.make ;; 4359 esac 4360 fi 4361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4363 printf "%s\n" "yes" >&6; } 4364 SET_MAKE= 4365 else 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4367 printf "%s\n" "no" >&6; } 4368 SET_MAKE="MAKE=${MAKE-make}" 4369 fi 4370 4371 rm -rf .tst 2>/dev/null 4372 mkdir .tst 2>/dev/null 4373 if test -d .tst; then 4374 am__leading_dot=. 4375 else 4376 am__leading_dot=_ 4377 fi 4378 rmdir .tst 2>/dev/null 4379 4380 DEPDIR="${am__leading_dot}deps" 4381 4382 ac_config_commands="$ac_config_commands depfiles" 4383 4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4385 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4386 cat > confinc.mk << 'END' 4387 am__doit: 4388 @echo this is the am__doit target >confinc.out 4389 .PHONY: am__doit 4390 END 4391 am__include="#" 4392 am__quote= 4393 # BSD make does it like this. 4394 echo '.include "confinc.mk" # ignored' > confmf.BSD 4395 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4396 echo 'include confinc.mk # ignored' > confmf.GNU 4397 _am_result=no 4398 for s in GNU BSD; do 4399 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4400 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4401 ac_status=$? 4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4403 (exit $ac_status); } 4404 case $?:`cat confinc.out 2>/dev/null` in #( 4405 '0:this is the am__doit target') : 4406 case $s in #( 4407 BSD) : 4408 am__include='.include' am__quote='"' ;; #( 4409 *) : 4410 am__include='include' am__quote='' ;; 4411 esac ;; #( 4412 *) : 4413 ;; 4414 esac 4415 if test "$am__include" != "#"; then 4416 _am_result="yes ($s style)" 4417 break 4418 fi 4419 done 4420 rm -f confinc.* confmf.* 4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4422 printf "%s\n" "${_am_result}" >&6; } 4423 4424 # Check whether --enable-dependency-tracking was given. 4425 if test ${enable_dependency_tracking+y} 4426 then : 4427 enableval=$enable_dependency_tracking; 4428 fi 4429 4430 if test "x$enable_dependency_tracking" != xno; then 4431 am_depcomp="$ac_aux_dir/depcomp" 4432 AMDEPBACKSLASH='\' 4433 am__nodep='_no' 4434 fi 4435 if test "x$enable_dependency_tracking" != xno; then 4436 AMDEP_TRUE= 4437 AMDEP_FALSE='#' 4438 else 4439 AMDEP_TRUE='#' 4440 AMDEP_FALSE= 4441 fi 4442 4443 4444 # Check whether --enable-silent-rules was given. 4445 if test ${enable_silent_rules+y} 4446 then : 4447 enableval=$enable_silent_rules; 4448 fi 4449 4450 case $enable_silent_rules in # ((( 4451 yes) AM_DEFAULT_VERBOSITY=0;; 4452 no) AM_DEFAULT_VERBOSITY=1;; 4453 *) AM_DEFAULT_VERBOSITY=1;; 4454 esac 4455 am_make=${MAKE-make} 4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4457 printf %s "checking whether $am_make supports nested variables... " >&6; } 4458 if test ${am_cv_make_support_nested_variables+y} 4459 then : 4460 printf %s "(cached) " >&6 4461 else case e in #( 4462 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4463 BAR0=false 4464 BAR1=true 4465 V=1 4466 am__doit: 4467 @$(TRUE) 4468 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4469 am_cv_make_support_nested_variables=yes 4470 else 4471 am_cv_make_support_nested_variables=no 4472 fi ;; 4473 esac 4474 fi 4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4476 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4477 if test $am_cv_make_support_nested_variables = yes; then 4478 AM_V='$(V)' 4479 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4480 else 4481 AM_V=$AM_DEFAULT_VERBOSITY 4482 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4483 fi 4484 AM_BACKSLASH='\' 4485 4486 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4487 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4488 # is not polluted with repeated "-I." 4489 am__isrc=' -I$(srcdir)' 4490 # test to see if srcdir already configured 4491 if test -f $srcdir/config.status; then 4492 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4493 fi 4494 fi 4495 4496 # test whether we have cygpath 4497 if test -z "$CYGPATH_W"; then 4498 if (cygpath --version) >/dev/null 2>/dev/null; then 4499 CYGPATH_W='cygpath -w' 4500 else 4501 CYGPATH_W=echo 4502 fi 4503 fi 4504 4505 4506 # Define the identity of the package. 4507 PACKAGE='libfontenc' 4508 VERSION='1.1.8' 4509 4510 4511 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4512 4513 4514 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4515 4516 # Some tools Automake needs. 4517 4518 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4519 4520 4521 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4522 4523 4524 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4525 4526 4527 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4528 4529 4530 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4531 4532 # For better backward compatibility. To be removed once Automake 1.9.x 4533 # dies out for good. For more background, see: 4534 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4535 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4536 mkdir_p='$(MKDIR_P)' 4537 4538 # We need awk for the "check" target (and possibly the TAP driver). The 4539 # system "awk" is bad on some platforms. 4540 # Always define AMTAR for backward compatibility. Yes, it's still used 4541 # in the wild :-( We should find a proper way to deprecate it ... 4542 AMTAR='$${TAR-tar}' 4543 4544 4545 # We'll loop over all known methods to create a tar archive until one works. 4546 _am_tools='gnutar pax cpio none' 4547 4548 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4549 4550 4551 4552 4553 4554 depcc="$CC" am_compiler_list= 4555 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4557 printf %s "checking dependency style of $depcc... " >&6; } 4558 if test ${am_cv_CC_dependencies_compiler_type+y} 4559 then : 4560 printf %s "(cached) " >&6 4561 else case e in #( 4562 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4563 # We make a subdir and do the tests there. Otherwise we can end up 4564 # making bogus files that we don't know about and never remove. For 4565 # instance it was reported that on HP-UX the gcc test will end up 4566 # making a dummy file named 'D' -- because '-MD' means "put the output 4567 # in D". 4568 rm -rf conftest.dir 4569 mkdir conftest.dir 4570 # Copy depcomp to subdir because otherwise we won't find it if we're 4571 # using a relative directory. 4572 cp "$am_depcomp" conftest.dir 4573 cd conftest.dir 4574 # We will build objects and dependencies in a subdirectory because 4575 # it helps to detect inapplicable dependency modes. For instance 4576 # both Tru64's cc and ICC support -MD to output dependencies as a 4577 # side effect of compilation, but ICC will put the dependencies in 4578 # the current directory while Tru64 will put them in the object 4579 # directory. 4580 mkdir sub 4581 4582 am_cv_CC_dependencies_compiler_type=none 4583 if test "$am_compiler_list" = ""; then 4584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4585 fi 4586 am__universal=false 4587 case " $depcc " in #( 4588 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4589 esac 4590 4591 for depmode in $am_compiler_list; do 4592 # Setup a source with many dependencies, because some compilers 4593 # like to wrap large dependency lists on column 80 (with \), and 4594 # we should not choose a depcomp mode which is confused by this. 4595 # 4596 # We need to recreate these files for each test, as the compiler may 4597 # overwrite some of them when testing with obscure command lines. 4598 # This happens at least with the AIX C compiler. 4599 : > sub/conftest.c 4600 for i in 1 2 3 4 5 6; do 4601 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4603 # Solaris 10 /bin/sh. 4604 echo '/* dummy */' > sub/conftst$i.h 4605 done 4606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4607 4608 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4609 # mode. It turns out that the SunPro C++ compiler does not properly 4610 # handle '-M -o', and we need to detect this. Also, some Intel 4611 # versions had trouble with output in subdirs. 4612 am__obj=sub/conftest.${OBJEXT-o} 4613 am__minus_obj="-o $am__obj" 4614 case $depmode in 4615 gcc) 4616 # This depmode causes a compiler race in universal mode. 4617 test "$am__universal" = false || continue 4618 ;; 4619 nosideeffect) 4620 # After this tag, mechanisms are not by side-effect, so they'll 4621 # only be used when explicitly requested. 4622 if test "x$enable_dependency_tracking" = xyes; then 4623 continue 4624 else 4625 break 4626 fi 4627 ;; 4628 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4629 # This compiler won't grok '-c -o', but also, the minuso test has 4630 # not run yet. These depmodes are late enough in the game, and 4631 # so weak that their functioning should not be impacted. 4632 am__obj=conftest.${OBJEXT-o} 4633 am__minus_obj= 4634 ;; 4635 none) break ;; 4636 esac 4637 if depmode=$depmode \ 4638 source=sub/conftest.c object=$am__obj \ 4639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4641 >/dev/null 2>conftest.err && 4642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4646 # icc doesn't choke on unknown options, it will just issue warnings 4647 # or remarks (even with -Werror). So we grep stderr for any message 4648 # that says an option was ignored or not supported. 4649 # When given -MP, icc 7.0 and 7.1 complain thusly: 4650 # icc: Command line warning: ignoring option '-M'; no argument required 4651 # The diagnosis changed in icc 8.0: 4652 # icc: Command line remark: option '-MP' not supported 4653 if (grep 'ignoring option' conftest.err || 4654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4655 am_cv_CC_dependencies_compiler_type=$depmode 4656 break 4657 fi 4658 fi 4659 done 4660 4661 cd .. 4662 rm -rf conftest.dir 4663 else 4664 am_cv_CC_dependencies_compiler_type=none 4665 fi 4666 ;; 4667 esac 4668 fi 4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4670 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4671 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4672 4673 if 4674 test "x$enable_dependency_tracking" != xno \ 4675 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4676 am__fastdepCC_TRUE= 4677 am__fastdepCC_FALSE='#' 4678 else 4679 am__fastdepCC_TRUE='#' 4680 am__fastdepCC_FALSE= 4681 fi 4682 4683 4684 # Variables for tags utilities; see am/tags.am 4685 if test -z "$CTAGS"; then 4686 CTAGS=ctags 4687 fi 4688 4689 if test -z "$ETAGS"; then 4690 ETAGS=etags 4691 fi 4692 4693 if test -z "$CSCOPE"; then 4694 CSCOPE=cscope 4695 fi 4696 4697 4698 4699 # POSIX will say in a future version that running "rm -f" with no argument 4700 # is OK; and we want to be able to make that assumption in our Makefile 4701 # recipes. So use an aggressive probe to check that the usage we want is 4702 # actually supported "in the wild" to an acceptable degree. 4703 # See automake bug#10828. 4704 # To make any issue more visible, cause the running configure to be aborted 4705 # by default if the 'rm' program in use doesn't match our expectations; the 4706 # user can still override this though. 4707 if rm -f && rm -fr && rm -rf; then : OK; else 4708 cat >&2 <<'END' 4709 Oops! 4710 4711 Your 'rm' program seems unable to run without file operands specified 4712 on the command line, even when the '-f' option is present. This is contrary 4713 to the behaviour of most rm programs out there, and not conforming with 4714 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4715 4716 Please tell bug-automake@gnu.org about your system, including the value 4717 of your $PATH and any error possibly output before this message. This 4718 can help us improve future automake versions. 4719 4720 END 4721 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4722 echo 'Configuration will proceed anyway, since you have set the' >&2 4723 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4724 echo >&2 4725 else 4726 cat >&2 <<'END' 4727 Aborting the configuration process, to ensure you take notice of the issue. 4728 4729 You can download and install GNU coreutils to get an 'rm' implementation 4730 that behaves properly: <https://www.gnu.org/software/coreutils/>. 4731 4732 If you want to complete the configuration process using your problematic 4733 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4734 to "yes", and re-run configure. 4735 4736 END 4737 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4738 fi 4739 fi 4740 4741 4742 # Initialize libtool 4743 case `pwd` in 4744 *\ * | *\ *) 4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4746 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4747 esac 4748 4749 4750 4751 macro_version='2.4.7' 4752 macro_revision='2.4.7' 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 ltmain=$ac_aux_dir/ltmain.sh 4768 4769 4770 4771 # Make sure we can run config.sub. 4772 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4773 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4774 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4776 printf %s "checking build system type... " >&6; } 4777 if test ${ac_cv_build+y} 4778 then : 4779 printf %s "(cached) " >&6 4780 else case e in #( 4781 e) ac_build_alias=$build_alias 4782 test "x$ac_build_alias" = x && 4783 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4784 test "x$ac_build_alias" = x && 4785 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4786 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4787 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4788 ;; 4789 esac 4790 fi 4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4792 printf "%s\n" "$ac_cv_build" >&6; } 4793 case $ac_cv_build in 4794 *-*-*) ;; 4795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4796 esac 4797 build=$ac_cv_build 4798 ac_save_IFS=$IFS; IFS='-' 4799 set x $ac_cv_build 4800 shift 4801 build_cpu=$1 4802 build_vendor=$2 4803 shift; shift 4804 # Remember, the first character of IFS is used to create $*, 4805 # except with old shells: 4806 build_os=$* 4807 IFS=$ac_save_IFS 4808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4809 4810 4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4812 printf %s "checking host system type... " >&6; } 4813 if test ${ac_cv_host+y} 4814 then : 4815 printf %s "(cached) " >&6 4816 else case e in #( 4817 e) if test "x$host_alias" = x; then 4818 ac_cv_host=$ac_cv_build 4819 else 4820 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4821 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4822 fi 4823 ;; 4824 esac 4825 fi 4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4827 printf "%s\n" "$ac_cv_host" >&6; } 4828 case $ac_cv_host in 4829 *-*-*) ;; 4830 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4831 esac 4832 host=$ac_cv_host 4833 ac_save_IFS=$IFS; IFS='-' 4834 set x $ac_cv_host 4835 shift 4836 host_cpu=$1 4837 host_vendor=$2 4838 shift; shift 4839 # Remember, the first character of IFS is used to create $*, 4840 # except with old shells: 4841 host_os=$* 4842 IFS=$ac_save_IFS 4843 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4844 4845 4846 # Backslashify metacharacters that are still active within 4847 # double-quoted strings. 4848 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4849 4850 # Same as above, but do not quote variable references. 4851 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4852 4853 # Sed substitution to delay expansion of an escaped shell variable in a 4854 # double_quote_subst'ed string. 4855 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4856 4857 # Sed substitution to delay expansion of an escaped single quote. 4858 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4859 4860 # Sed substitution to avoid accidental globbing in evaled expressions 4861 no_glob_subst='s/\*/\\\*/g' 4862 4863 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4864 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4865 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4866 4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4868 printf %s "checking how to print strings... " >&6; } 4869 # Test print first, because it will be a builtin if present. 4870 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4871 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4872 ECHO='print -r --' 4873 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4874 ECHO='printf %s\n' 4875 else 4876 # Use this function as a fallback that always works. 4877 func_fallback_echo () 4878 { 4879 eval 'cat <<_LTECHO_EOF 4880 $1 4881 _LTECHO_EOF' 4882 } 4883 ECHO='func_fallback_echo' 4884 fi 4885 4886 # func_echo_all arg... 4887 # Invoke $ECHO with all args, space-separated. 4888 func_echo_all () 4889 { 4890 $ECHO "" 4891 } 4892 4893 case $ECHO in 4894 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4895 printf "%s\n" "printf" >&6; } ;; 4896 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4897 printf "%s\n" "print -r" >&6; } ;; 4898 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4899 printf "%s\n" "cat" >&6; } ;; 4900 esac 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4916 printf %s "checking for a sed that does not truncate output... " >&6; } 4917 if test ${ac_cv_path_SED+y} 4918 then : 4919 printf %s "(cached) " >&6 4920 else case e in #( 4921 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4922 for ac_i in 1 2 3 4 5 6 7; do 4923 ac_script="$ac_script$as_nl$ac_script" 4924 done 4925 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4926 { ac_script=; unset ac_script;} 4927 if test -z "$SED"; then 4928 ac_path_SED_found=false 4929 # Loop through the user's path and test for each of PROGNAME-LIST 4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4931 for as_dir in $PATH 4932 do 4933 IFS=$as_save_IFS 4934 case $as_dir in #((( 4935 '') as_dir=./ ;; 4936 */) ;; 4937 *) as_dir=$as_dir/ ;; 4938 esac 4939 for ac_prog in sed gsed 4940 do 4941 for ac_exec_ext in '' $ac_executable_extensions; do 4942 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4943 as_fn_executable_p "$ac_path_SED" || continue 4944 # Check for GNU ac_path_SED and select it if it is found. 4945 # Check for GNU $ac_path_SED 4946 case `"$ac_path_SED" --version 2>&1` in #( 4947 *GNU*) 4948 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4949 #( 4950 *) 4951 ac_count=0 4952 printf %s 0123456789 >"conftest.in" 4953 while : 4954 do 4955 cat "conftest.in" "conftest.in" >"conftest.tmp" 4956 mv "conftest.tmp" "conftest.in" 4957 cp "conftest.in" "conftest.nl" 4958 printf "%s\n" '' >> "conftest.nl" 4959 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4961 as_fn_arith $ac_count + 1 && ac_count=$as_val 4962 if test $ac_count -gt ${ac_path_SED_max-0}; then 4963 # Best one so far, save it but keep looking for a better one 4964 ac_cv_path_SED="$ac_path_SED" 4965 ac_path_SED_max=$ac_count 4966 fi 4967 # 10*(2^10) chars as input seems more than enough 4968 test $ac_count -gt 10 && break 4969 done 4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4971 esac 4972 4973 $ac_path_SED_found && break 3 4974 done 4975 done 4976 done 4977 IFS=$as_save_IFS 4978 if test -z "$ac_cv_path_SED"; then 4979 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4980 fi 4981 else 4982 ac_cv_path_SED=$SED 4983 fi 4984 ;; 4985 esac 4986 fi 4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4988 printf "%s\n" "$ac_cv_path_SED" >&6; } 4989 SED="$ac_cv_path_SED" 4990 rm -f conftest.sed 4991 4992 test -z "$SED" && SED=sed 4993 Xsed="$SED -e 1s/^X//" 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5006 printf %s "checking for grep that handles long lines and -e... " >&6; } 5007 if test ${ac_cv_path_GREP+y} 5008 then : 5009 printf %s "(cached) " >&6 5010 else case e in #( 5011 e) if test -z "$GREP"; then 5012 ac_path_GREP_found=false 5013 # Loop through the user's path and test for each of PROGNAME-LIST 5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5015 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5016 do 5017 IFS=$as_save_IFS 5018 case $as_dir in #((( 5019 '') as_dir=./ ;; 5020 */) ;; 5021 *) as_dir=$as_dir/ ;; 5022 esac 5023 for ac_prog in grep ggrep 5024 do 5025 for ac_exec_ext in '' $ac_executable_extensions; do 5026 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5027 as_fn_executable_p "$ac_path_GREP" || continue 5028 # Check for GNU ac_path_GREP and select it if it is found. 5029 # Check for GNU $ac_path_GREP 5030 case `"$ac_path_GREP" --version 2>&1` in #( 5031 *GNU*) 5032 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5033 #( 5034 *) 5035 ac_count=0 5036 printf %s 0123456789 >"conftest.in" 5037 while : 5038 do 5039 cat "conftest.in" "conftest.in" >"conftest.tmp" 5040 mv "conftest.tmp" "conftest.in" 5041 cp "conftest.in" "conftest.nl" 5042 printf "%s\n" 'GREP' >> "conftest.nl" 5043 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5045 as_fn_arith $ac_count + 1 && ac_count=$as_val 5046 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5047 # Best one so far, save it but keep looking for a better one 5048 ac_cv_path_GREP="$ac_path_GREP" 5049 ac_path_GREP_max=$ac_count 5050 fi 5051 # 10*(2^10) chars as input seems more than enough 5052 test $ac_count -gt 10 && break 5053 done 5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5055 esac 5056 5057 $ac_path_GREP_found && break 3 5058 done 5059 done 5060 done 5061 IFS=$as_save_IFS 5062 if test -z "$ac_cv_path_GREP"; then 5063 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5064 fi 5065 else 5066 ac_cv_path_GREP=$GREP 5067 fi 5068 ;; 5069 esac 5070 fi 5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5072 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5073 GREP="$ac_cv_path_GREP" 5074 5075 5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5077 printf %s "checking for egrep... " >&6; } 5078 if test ${ac_cv_path_EGREP+y} 5079 then : 5080 printf %s "(cached) " >&6 5081 else case e in #( 5082 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5083 then ac_cv_path_EGREP="$GREP -E" 5084 else 5085 if test -z "$EGREP"; then 5086 ac_path_EGREP_found=false 5087 # Loop through the user's path and test for each of PROGNAME-LIST 5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5090 do 5091 IFS=$as_save_IFS 5092 case $as_dir in #((( 5093 '') as_dir=./ ;; 5094 */) ;; 5095 *) as_dir=$as_dir/ ;; 5096 esac 5097 for ac_prog in egrep 5098 do 5099 for ac_exec_ext in '' $ac_executable_extensions; do 5100 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5101 as_fn_executable_p "$ac_path_EGREP" || continue 5102 # Check for GNU ac_path_EGREP and select it if it is found. 5103 # Check for GNU $ac_path_EGREP 5104 case `"$ac_path_EGREP" --version 2>&1` in #( 5105 *GNU*) 5106 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5107 #( 5108 *) 5109 ac_count=0 5110 printf %s 0123456789 >"conftest.in" 5111 while : 5112 do 5113 cat "conftest.in" "conftest.in" >"conftest.tmp" 5114 mv "conftest.tmp" "conftest.in" 5115 cp "conftest.in" "conftest.nl" 5116 printf "%s\n" 'EGREP' >> "conftest.nl" 5117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5119 as_fn_arith $ac_count + 1 && ac_count=$as_val 5120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5121 # Best one so far, save it but keep looking for a better one 5122 ac_cv_path_EGREP="$ac_path_EGREP" 5123 ac_path_EGREP_max=$ac_count 5124 fi 5125 # 10*(2^10) chars as input seems more than enough 5126 test $ac_count -gt 10 && break 5127 done 5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5129 esac 5130 5131 $ac_path_EGREP_found && break 3 5132 done 5133 done 5134 done 5135 IFS=$as_save_IFS 5136 if test -z "$ac_cv_path_EGREP"; then 5137 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5138 fi 5139 else 5140 ac_cv_path_EGREP=$EGREP 5141 fi 5142 5143 fi ;; 5144 esac 5145 fi 5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5147 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5148 EGREP="$ac_cv_path_EGREP" 5149 5150 EGREP_TRADITIONAL=$EGREP 5151 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5152 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5154 printf %s "checking for fgrep... " >&6; } 5155 if test ${ac_cv_path_FGREP+y} 5156 then : 5157 printf %s "(cached) " >&6 5158 else case e in #( 5159 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5160 then ac_cv_path_FGREP="$GREP -F" 5161 else 5162 if test -z "$FGREP"; then 5163 ac_path_FGREP_found=false 5164 # Loop through the user's path and test for each of PROGNAME-LIST 5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5167 do 5168 IFS=$as_save_IFS 5169 case $as_dir in #((( 5170 '') as_dir=./ ;; 5171 */) ;; 5172 *) as_dir=$as_dir/ ;; 5173 esac 5174 for ac_prog in fgrep 5175 do 5176 for ac_exec_ext in '' $ac_executable_extensions; do 5177 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5178 as_fn_executable_p "$ac_path_FGREP" || continue 5179 # Check for GNU ac_path_FGREP and select it if it is found. 5180 # Check for GNU $ac_path_FGREP 5181 case `"$ac_path_FGREP" --version 2>&1` in #( 5182 *GNU*) 5183 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5184 #( 5185 *) 5186 ac_count=0 5187 printf %s 0123456789 >"conftest.in" 5188 while : 5189 do 5190 cat "conftest.in" "conftest.in" >"conftest.tmp" 5191 mv "conftest.tmp" "conftest.in" 5192 cp "conftest.in" "conftest.nl" 5193 printf "%s\n" 'FGREP' >> "conftest.nl" 5194 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5196 as_fn_arith $ac_count + 1 && ac_count=$as_val 5197 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5198 # Best one so far, save it but keep looking for a better one 5199 ac_cv_path_FGREP="$ac_path_FGREP" 5200 ac_path_FGREP_max=$ac_count 5201 fi 5202 # 10*(2^10) chars as input seems more than enough 5203 test $ac_count -gt 10 && break 5204 done 5205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5206 esac 5207 5208 $ac_path_FGREP_found && break 3 5209 done 5210 done 5211 done 5212 IFS=$as_save_IFS 5213 if test -z "$ac_cv_path_FGREP"; then 5214 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5215 fi 5216 else 5217 ac_cv_path_FGREP=$FGREP 5218 fi 5219 5220 fi ;; 5221 esac 5222 fi 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5224 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5225 FGREP="$ac_cv_path_FGREP" 5226 5227 5228 test -z "$GREP" && GREP=grep 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 # Check whether --with-gnu-ld was given. 5249 if test ${with_gnu_ld+y} 5250 then : 5251 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5252 else case e in #( 5253 e) with_gnu_ld=no ;; 5254 esac 5255 fi 5256 5257 ac_prog=ld 5258 if test yes = "$GCC"; then 5259 # Check if gcc -print-prog-name=ld gives a path. 5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5261 printf %s "checking for ld used by $CC... " >&6; } 5262 case $host in 5263 *-*-mingw*) 5264 # gcc leaves a trailing carriage return, which upsets mingw 5265 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5266 *) 5267 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5268 esac 5269 case $ac_prog in 5270 # Accept absolute paths. 5271 [\\/]* | ?:[\\/]*) 5272 re_direlt='/[^/][^/]*/\.\./' 5273 # Canonicalize the pathname of ld 5274 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5275 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5276 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5277 done 5278 test -z "$LD" && LD=$ac_prog 5279 ;; 5280 "") 5281 # If it fails, then pretend we aren't using GCC. 5282 ac_prog=ld 5283 ;; 5284 *) 5285 # If it is relative, then search for the first ld in PATH. 5286 with_gnu_ld=unknown 5287 ;; 5288 esac 5289 elif test yes = "$with_gnu_ld"; then 5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5291 printf %s "checking for GNU ld... " >&6; } 5292 else 5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5294 printf %s "checking for non-GNU ld... " >&6; } 5295 fi 5296 if test ${lt_cv_path_LD+y} 5297 then : 5298 printf %s "(cached) " >&6 5299 else case e in #( 5300 e) if test -z "$LD"; then 5301 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5302 for ac_dir in $PATH; do 5303 IFS=$lt_save_ifs 5304 test -z "$ac_dir" && ac_dir=. 5305 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5306 lt_cv_path_LD=$ac_dir/$ac_prog 5307 # Check to see if the program is GNU ld. I'd rather use --version, 5308 # but apparently some variants of GNU ld only accept -v. 5309 # Break only if it was the GNU/non-GNU ld that we prefer. 5310 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5311 *GNU* | *'with BFD'*) 5312 test no != "$with_gnu_ld" && break 5313 ;; 5314 *) 5315 test yes != "$with_gnu_ld" && break 5316 ;; 5317 esac 5318 fi 5319 done 5320 IFS=$lt_save_ifs 5321 else 5322 lt_cv_path_LD=$LD # Let the user override the test with a path. 5323 fi ;; 5324 esac 5325 fi 5326 5327 LD=$lt_cv_path_LD 5328 if test -n "$LD"; then 5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5330 printf "%s\n" "$LD" >&6; } 5331 else 5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5333 printf "%s\n" "no" >&6; } 5334 fi 5335 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5337 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5338 if test ${lt_cv_prog_gnu_ld+y} 5339 then : 5340 printf %s "(cached) " >&6 5341 else case e in #( 5342 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5343 case `$LD -v 2>&1 </dev/null` in 5344 *GNU* | *'with BFD'*) 5345 lt_cv_prog_gnu_ld=yes 5346 ;; 5347 *) 5348 lt_cv_prog_gnu_ld=no 5349 ;; 5350 esac ;; 5351 esac 5352 fi 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5354 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5355 with_gnu_ld=$lt_cv_prog_gnu_ld 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5366 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5367 if test ${lt_cv_path_NM+y} 5368 then : 5369 printf %s "(cached) " >&6 5370 else case e in #( 5371 e) if test -n "$NM"; then 5372 # Let the user override the test. 5373 lt_cv_path_NM=$NM 5374 else 5375 lt_nm_to_check=${ac_tool_prefix}nm 5376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5377 lt_nm_to_check="$lt_nm_to_check nm" 5378 fi 5379 for lt_tmp_nm in $lt_nm_to_check; do 5380 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5381 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5382 IFS=$lt_save_ifs 5383 test -z "$ac_dir" && ac_dir=. 5384 tmp_nm=$ac_dir/$lt_tmp_nm 5385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5386 # Check to see if the nm accepts a BSD-compat flag. 5387 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5388 # nm: unknown option "B" ignored 5389 # Tru64's nm complains that /dev/null is an invalid object file 5390 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5391 case $build_os in 5392 mingw*) lt_bad_file=conftest.nm/nofile ;; 5393 *) lt_bad_file=/dev/null ;; 5394 esac 5395 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5396 *$lt_bad_file* | *'Invalid file or object type'*) 5397 lt_cv_path_NM="$tmp_nm -B" 5398 break 2 5399 ;; 5400 *) 5401 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5402 */dev/null*) 5403 lt_cv_path_NM="$tmp_nm -p" 5404 break 2 5405 ;; 5406 *) 5407 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5408 continue # so that we can try to find one that supports BSD flags 5409 ;; 5410 esac 5411 ;; 5412 esac 5413 fi 5414 done 5415 IFS=$lt_save_ifs 5416 done 5417 : ${lt_cv_path_NM=no} 5418 fi ;; 5419 esac 5420 fi 5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5422 printf "%s\n" "$lt_cv_path_NM" >&6; } 5423 if test no != "$lt_cv_path_NM"; then 5424 NM=$lt_cv_path_NM 5425 else 5426 # Didn't find any BSD compatible name lister, look for dumpbin. 5427 if test -n "$DUMPBIN"; then : 5428 # Let the user override the test. 5429 else 5430 if test -n "$ac_tool_prefix"; then 5431 for ac_prog in dumpbin "link -dump" 5432 do 5433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5436 printf %s "checking for $ac_word... " >&6; } 5437 if test ${ac_cv_prog_DUMPBIN+y} 5438 then : 5439 printf %s "(cached) " >&6 5440 else case e in #( 5441 e) if test -n "$DUMPBIN"; then 5442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5443 else 5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5445 for as_dir in $PATH 5446 do 5447 IFS=$as_save_IFS 5448 case $as_dir in #((( 5449 '') as_dir=./ ;; 5450 */) ;; 5451 *) as_dir=$as_dir/ ;; 5452 esac 5453 for ac_exec_ext in '' $ac_executable_extensions; do 5454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5455 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5457 break 2 5458 fi 5459 done 5460 done 5461 IFS=$as_save_IFS 5462 5463 fi ;; 5464 esac 5465 fi 5466 DUMPBIN=$ac_cv_prog_DUMPBIN 5467 if test -n "$DUMPBIN"; then 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5469 printf "%s\n" "$DUMPBIN" >&6; } 5470 else 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5472 printf "%s\n" "no" >&6; } 5473 fi 5474 5475 5476 test -n "$DUMPBIN" && break 5477 done 5478 fi 5479 if test -z "$DUMPBIN"; then 5480 ac_ct_DUMPBIN=$DUMPBIN 5481 for ac_prog in dumpbin "link -dump" 5482 do 5483 # Extract the first word of "$ac_prog", so it can be a program name with args. 5484 set dummy $ac_prog; ac_word=$2 5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5486 printf %s "checking for $ac_word... " >&6; } 5487 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5488 then : 5489 printf %s "(cached) " >&6 5490 else case e in #( 5491 e) if test -n "$ac_ct_DUMPBIN"; then 5492 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5493 else 5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495 for as_dir in $PATH 5496 do 5497 IFS=$as_save_IFS 5498 case $as_dir in #((( 5499 '') as_dir=./ ;; 5500 */) ;; 5501 *) as_dir=$as_dir/ ;; 5502 esac 5503 for ac_exec_ext in '' $ac_executable_extensions; do 5504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5505 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5507 break 2 5508 fi 5509 done 5510 done 5511 IFS=$as_save_IFS 5512 5513 fi ;; 5514 esac 5515 fi 5516 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5517 if test -n "$ac_ct_DUMPBIN"; then 5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5519 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5520 else 5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522 printf "%s\n" "no" >&6; } 5523 fi 5524 5525 5526 test -n "$ac_ct_DUMPBIN" && break 5527 done 5528 5529 if test "x$ac_ct_DUMPBIN" = x; then 5530 DUMPBIN=":" 5531 else 5532 case $cross_compiling:$ac_tool_warned in 5533 yes:) 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5536 ac_tool_warned=yes ;; 5537 esac 5538 DUMPBIN=$ac_ct_DUMPBIN 5539 fi 5540 fi 5541 5542 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5543 *COFF*) 5544 DUMPBIN="$DUMPBIN -symbols -headers" 5545 ;; 5546 *) 5547 DUMPBIN=: 5548 ;; 5549 esac 5550 fi 5551 5552 if test : != "$DUMPBIN"; then 5553 NM=$DUMPBIN 5554 fi 5555 fi 5556 test -z "$NM" && NM=nm 5557 5558 5559 5560 5561 5562 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5564 printf %s "checking the name lister ($NM) interface... " >&6; } 5565 if test ${lt_cv_nm_interface+y} 5566 then : 5567 printf %s "(cached) " >&6 5568 else case e in #( 5569 e) lt_cv_nm_interface="BSD nm" 5570 echo "int some_variable = 0;" > conftest.$ac_ext 5571 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5572 (eval "$ac_compile" 2>conftest.err) 5573 cat conftest.err >&5 5574 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5576 cat conftest.err >&5 5577 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5578 cat conftest.out >&5 5579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5580 lt_cv_nm_interface="MS dumpbin" 5581 fi 5582 rm -f conftest* ;; 5583 esac 5584 fi 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5586 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5587 5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5589 printf %s "checking whether ln -s works... " >&6; } 5590 LN_S=$as_ln_s 5591 if test "$LN_S" = "ln -s"; then 5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5593 printf "%s\n" "yes" >&6; } 5594 else 5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5596 printf "%s\n" "no, using $LN_S" >&6; } 5597 fi 5598 5599 # find the maximum length of command line arguments 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5601 printf %s "checking the maximum length of command line arguments... " >&6; } 5602 if test ${lt_cv_sys_max_cmd_len+y} 5603 then : 5604 printf %s "(cached) " >&6 5605 else case e in #( 5606 e) i=0 5607 teststring=ABCD 5608 5609 case $build_os in 5610 msdosdjgpp*) 5611 # On DJGPP, this test can blow up pretty badly due to problems in libc 5612 # (any single argument exceeding 2000 bytes causes a buffer overrun 5613 # during glob expansion). Even if it were fixed, the result of this 5614 # check would be larger than it should be. 5615 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5616 ;; 5617 5618 gnu*) 5619 # Under GNU Hurd, this test is not required because there is 5620 # no limit to the length of command line arguments. 5621 # Libtool will interpret -1 as no limit whatsoever 5622 lt_cv_sys_max_cmd_len=-1; 5623 ;; 5624 5625 cygwin* | mingw* | cegcc*) 5626 # On Win9x/ME, this test blows up -- it succeeds, but takes 5627 # about 5 minutes as the teststring grows exponentially. 5628 # Worse, since 9x/ME are not pre-emptively multitasking, 5629 # you end up with a "frozen" computer, even though with patience 5630 # the test eventually succeeds (with a max line length of 256k). 5631 # Instead, let's just punt: use the minimum linelength reported by 5632 # all of the supported platforms: 8192 (on NT/2K/XP). 5633 lt_cv_sys_max_cmd_len=8192; 5634 ;; 5635 5636 mint*) 5637 # On MiNT this can take a long time and run out of memory. 5638 lt_cv_sys_max_cmd_len=8192; 5639 ;; 5640 5641 amigaos*) 5642 # On AmigaOS with pdksh, this test takes hours, literally. 5643 # So we just punt and use a minimum line length of 8192. 5644 lt_cv_sys_max_cmd_len=8192; 5645 ;; 5646 5647 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5648 # This has been around since 386BSD, at least. Likely further. 5649 if test -x /sbin/sysctl; then 5650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5651 elif test -x /usr/sbin/sysctl; then 5652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5653 else 5654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5655 fi 5656 # And add a safety zone 5657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5659 ;; 5660 5661 interix*) 5662 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5663 lt_cv_sys_max_cmd_len=196608 5664 ;; 5665 5666 os2*) 5667 # The test takes a long time on OS/2. 5668 lt_cv_sys_max_cmd_len=8192 5669 ;; 5670 5671 osf*) 5672 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5673 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5674 # nice to cause kernel panics so lets avoid the loop below. 5675 # First set a reasonable default. 5676 lt_cv_sys_max_cmd_len=16384 5677 # 5678 if test -x /sbin/sysconfig; then 5679 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5680 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5681 esac 5682 fi 5683 ;; 5684 sco3.2v5*) 5685 lt_cv_sys_max_cmd_len=102400 5686 ;; 5687 sysv5* | sco5v6* | sysv4.2uw2*) 5688 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5689 if test -n "$kargmax"; then 5690 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5691 else 5692 lt_cv_sys_max_cmd_len=32768 5693 fi 5694 ;; 5695 *) 5696 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5697 if test -n "$lt_cv_sys_max_cmd_len" && \ 5698 test undefined != "$lt_cv_sys_max_cmd_len"; then 5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5701 else 5702 # Make teststring a little bigger before we do anything with it. 5703 # a 1K string should be a reasonable start. 5704 for i in 1 2 3 4 5 6 7 8; do 5705 teststring=$teststring$teststring 5706 done 5707 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5708 # If test is not a shell built-in, we'll probably end up computing a 5709 # maximum length that is only half of the actual maximum length, but 5710 # we can't tell. 5711 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5712 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5713 test 17 != "$i" # 1/2 MB should be enough 5714 do 5715 i=`expr $i + 1` 5716 teststring=$teststring$teststring 5717 done 5718 # Only check the string length outside the loop. 5719 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5720 teststring= 5721 # Add a significant safety factor because C++ compilers can tack on 5722 # massive amounts of additional arguments before passing them to the 5723 # linker. It appears as though 1/2 is a usable value. 5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5725 fi 5726 ;; 5727 esac 5728 ;; 5729 esac 5730 fi 5731 5732 if test -n "$lt_cv_sys_max_cmd_len"; then 5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5734 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5735 else 5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5737 printf "%s\n" "none" >&6; } 5738 fi 5739 max_cmd_len=$lt_cv_sys_max_cmd_len 5740 5741 5742 5743 5744 5745 5746 : ${CP="cp -f"} 5747 : ${MV="mv -f"} 5748 : ${RM="rm -f"} 5749 5750 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5751 lt_unset=unset 5752 else 5753 lt_unset=false 5754 fi 5755 5756 5757 5758 5759 5760 # test EBCDIC or ASCII 5761 case `echo X|tr X '\101'` in 5762 A) # ASCII based system 5763 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5764 lt_SP2NL='tr \040 \012' 5765 lt_NL2SP='tr \015\012 \040\040' 5766 ;; 5767 *) # EBCDIC based system 5768 lt_SP2NL='tr \100 \n' 5769 lt_NL2SP='tr \r\n \100\100' 5770 ;; 5771 esac 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5782 printf %s "checking how to convert $build file names to $host format... " >&6; } 5783 if test ${lt_cv_to_host_file_cmd+y} 5784 then : 5785 printf %s "(cached) " >&6 5786 else case e in #( 5787 e) case $host in 5788 *-*-mingw* ) 5789 case $build in 5790 *-*-mingw* ) # actually msys 5791 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5792 ;; 5793 *-*-cygwin* ) 5794 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5795 ;; 5796 * ) # otherwise, assume *nix 5797 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5798 ;; 5799 esac 5800 ;; 5801 *-*-cygwin* ) 5802 case $build in 5803 *-*-mingw* ) # actually msys 5804 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5805 ;; 5806 *-*-cygwin* ) 5807 lt_cv_to_host_file_cmd=func_convert_file_noop 5808 ;; 5809 * ) # otherwise, assume *nix 5810 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5811 ;; 5812 esac 5813 ;; 5814 * ) # unhandled hosts (and "normal" native builds) 5815 lt_cv_to_host_file_cmd=func_convert_file_noop 5816 ;; 5817 esac 5818 ;; 5819 esac 5820 fi 5821 5822 to_host_file_cmd=$lt_cv_to_host_file_cmd 5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5824 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5825 5826 5827 5828 5829 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5831 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5832 if test ${lt_cv_to_tool_file_cmd+y} 5833 then : 5834 printf %s "(cached) " >&6 5835 else case e in #( 5836 e) #assume ordinary cross tools, or native build. 5837 lt_cv_to_tool_file_cmd=func_convert_file_noop 5838 case $host in 5839 *-*-mingw* ) 5840 case $build in 5841 *-*-mingw* ) # actually msys 5842 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5843 ;; 5844 esac 5845 ;; 5846 esac 5847 ;; 5848 esac 5849 fi 5850 5851 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5853 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5854 5855 5856 5857 5858 5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5860 printf %s "checking for $LD option to reload object files... " >&6; } 5861 if test ${lt_cv_ld_reload_flag+y} 5862 then : 5863 printf %s "(cached) " >&6 5864 else case e in #( 5865 e) lt_cv_ld_reload_flag='-r' ;; 5866 esac 5867 fi 5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5869 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5870 reload_flag=$lt_cv_ld_reload_flag 5871 case $reload_flag in 5872 "" | " "*) ;; 5873 *) reload_flag=" $reload_flag" ;; 5874 esac 5875 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5876 case $host_os in 5877 cygwin* | mingw* | pw32* | cegcc*) 5878 if test yes != "$GCC"; then 5879 reload_cmds=false 5880 fi 5881 ;; 5882 darwin*) 5883 if test yes = "$GCC"; then 5884 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5885 else 5886 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5887 fi 5888 ;; 5889 esac 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 if test -n "$ac_tool_prefix"; then 5900 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5901 set dummy ${ac_tool_prefix}file; ac_word=$2 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5903 printf %s "checking for $ac_word... " >&6; } 5904 if test ${ac_cv_prog_FILECMD+y} 5905 then : 5906 printf %s "(cached) " >&6 5907 else case e in #( 5908 e) if test -n "$FILECMD"; then 5909 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5910 else 5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5912 for as_dir in $PATH 5913 do 5914 IFS=$as_save_IFS 5915 case $as_dir in #((( 5916 '') as_dir=./ ;; 5917 */) ;; 5918 *) as_dir=$as_dir/ ;; 5919 esac 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5922 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926 done 5927 done 5928 IFS=$as_save_IFS 5929 5930 fi ;; 5931 esac 5932 fi 5933 FILECMD=$ac_cv_prog_FILECMD 5934 if test -n "$FILECMD"; then 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5936 printf "%s\n" "$FILECMD" >&6; } 5937 else 5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5939 printf "%s\n" "no" >&6; } 5940 fi 5941 5942 5943 fi 5944 if test -z "$ac_cv_prog_FILECMD"; then 5945 ac_ct_FILECMD=$FILECMD 5946 # Extract the first word of "file", so it can be a program name with args. 5947 set dummy file; ac_word=$2 5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5949 printf %s "checking for $ac_word... " >&6; } 5950 if test ${ac_cv_prog_ac_ct_FILECMD+y} 5951 then : 5952 printf %s "(cached) " >&6 5953 else case e in #( 5954 e) if test -n "$ac_ct_FILECMD"; then 5955 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5956 else 5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5958 for as_dir in $PATH 5959 do 5960 IFS=$as_save_IFS 5961 case $as_dir in #((( 5962 '') as_dir=./ ;; 5963 */) ;; 5964 *) as_dir=$as_dir/ ;; 5965 esac 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5968 ac_cv_prog_ac_ct_FILECMD="file" 5969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972 done 5973 done 5974 IFS=$as_save_IFS 5975 5976 fi ;; 5977 esac 5978 fi 5979 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5980 if test -n "$ac_ct_FILECMD"; then 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5982 printf "%s\n" "$ac_ct_FILECMD" >&6; } 5983 else 5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5985 printf "%s\n" "no" >&6; } 5986 fi 5987 5988 if test "x$ac_ct_FILECMD" = x; then 5989 FILECMD=":" 5990 else 5991 case $cross_compiling:$ac_tool_warned in 5992 yes:) 5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5994 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5995 ac_tool_warned=yes ;; 5996 esac 5997 FILECMD=$ac_ct_FILECMD 5998 fi 5999 else 6000 FILECMD="$ac_cv_prog_FILECMD" 6001 fi 6002 6003 6004 6005 6006 6007 6008 6009 if test -n "$ac_tool_prefix"; then 6010 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6011 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013 printf %s "checking for $ac_word... " >&6; } 6014 if test ${ac_cv_prog_OBJDUMP+y} 6015 then : 6016 printf %s "(cached) " >&6 6017 else case e in #( 6018 e) if test -n "$OBJDUMP"; then 6019 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6020 else 6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6022 for as_dir in $PATH 6023 do 6024 IFS=$as_save_IFS 6025 case $as_dir in #((( 6026 '') as_dir=./ ;; 6027 */) ;; 6028 *) as_dir=$as_dir/ ;; 6029 esac 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6032 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036 done 6037 done 6038 IFS=$as_save_IFS 6039 6040 fi ;; 6041 esac 6042 fi 6043 OBJDUMP=$ac_cv_prog_OBJDUMP 6044 if test -n "$OBJDUMP"; then 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6046 printf "%s\n" "$OBJDUMP" >&6; } 6047 else 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6049 printf "%s\n" "no" >&6; } 6050 fi 6051 6052 6053 fi 6054 if test -z "$ac_cv_prog_OBJDUMP"; then 6055 ac_ct_OBJDUMP=$OBJDUMP 6056 # Extract the first word of "objdump", so it can be a program name with args. 6057 set dummy objdump; ac_word=$2 6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6059 printf %s "checking for $ac_word... " >&6; } 6060 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6061 then : 6062 printf %s "(cached) " >&6 6063 else case e in #( 6064 e) if test -n "$ac_ct_OBJDUMP"; then 6065 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6066 else 6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6068 for as_dir in $PATH 6069 do 6070 IFS=$as_save_IFS 6071 case $as_dir in #((( 6072 '') as_dir=./ ;; 6073 */) ;; 6074 *) as_dir=$as_dir/ ;; 6075 esac 6076 for ac_exec_ext in '' $ac_executable_extensions; do 6077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6078 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6080 break 2 6081 fi 6082 done 6083 done 6084 IFS=$as_save_IFS 6085 6086 fi ;; 6087 esac 6088 fi 6089 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6090 if test -n "$ac_ct_OBJDUMP"; then 6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6092 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6093 else 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6095 printf "%s\n" "no" >&6; } 6096 fi 6097 6098 if test "x$ac_ct_OBJDUMP" = x; then 6099 OBJDUMP="false" 6100 else 6101 case $cross_compiling:$ac_tool_warned in 6102 yes:) 6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6105 ac_tool_warned=yes ;; 6106 esac 6107 OBJDUMP=$ac_ct_OBJDUMP 6108 fi 6109 else 6110 OBJDUMP="$ac_cv_prog_OBJDUMP" 6111 fi 6112 6113 test -z "$OBJDUMP" && OBJDUMP=objdump 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6124 printf %s "checking how to recognize dependent libraries... " >&6; } 6125 if test ${lt_cv_deplibs_check_method+y} 6126 then : 6127 printf %s "(cached) " >&6 6128 else case e in #( 6129 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6130 lt_cv_file_magic_test_file= 6131 lt_cv_deplibs_check_method='unknown' 6132 # Need to set the preceding variable on all platforms that support 6133 # interlibrary dependencies. 6134 # 'none' -- dependencies not supported. 6135 # 'unknown' -- same as none, but documents that we really don't know. 6136 # 'pass_all' -- all dependencies passed with no checks. 6137 # 'test_compile' -- check by making test program. 6138 # 'file_magic [[regex]]' -- check by looking for files in library path 6139 # that responds to the $file_magic_cmd with a given extended regex. 6140 # If you have 'file' or equivalent on your system and you're not sure 6141 # whether 'pass_all' will *always* work, you probably want this one. 6142 6143 case $host_os in 6144 aix[4-9]*) 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147 6148 beos*) 6149 lt_cv_deplibs_check_method=pass_all 6150 ;; 6151 6152 bsdi[45]*) 6153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6154 lt_cv_file_magic_cmd='$FILECMD -L' 6155 lt_cv_file_magic_test_file=/shlib/libc.so 6156 ;; 6157 6158 cygwin*) 6159 # func_win32_libid is a shell function defined in ltmain.sh 6160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6161 lt_cv_file_magic_cmd='func_win32_libid' 6162 ;; 6163 6164 mingw* | pw32*) 6165 # Base MSYS/MinGW do not provide the 'file' command needed by 6166 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6167 # unless we find 'file', for example because we are cross-compiling. 6168 if ( file / ) >/dev/null 2>&1; then 6169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6170 lt_cv_file_magic_cmd='func_win32_libid' 6171 else 6172 # Keep this pattern in sync with the one in func_win32_libid. 6173 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6174 lt_cv_file_magic_cmd='$OBJDUMP -f' 6175 fi 6176 ;; 6177 6178 cegcc*) 6179 # use the weaker test based on 'objdump'. See mingw*. 6180 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6181 lt_cv_file_magic_cmd='$OBJDUMP -f' 6182 ;; 6183 6184 darwin* | rhapsody*) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187 6188 freebsd* | dragonfly* | midnightbsd*) 6189 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6190 case $host_cpu in 6191 i*86 ) 6192 # Not sure whether the presence of OpenBSD here was a mistake. 6193 # Let's accept both of them until this is cleared up. 6194 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6195 lt_cv_file_magic_cmd=$FILECMD 6196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6197 ;; 6198 esac 6199 else 6200 lt_cv_deplibs_check_method=pass_all 6201 fi 6202 ;; 6203 6204 haiku*) 6205 lt_cv_deplibs_check_method=pass_all 6206 ;; 6207 6208 hpux10.20* | hpux11*) 6209 lt_cv_file_magic_cmd=$FILECMD 6210 case $host_cpu in 6211 ia64*) 6212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6213 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6214 ;; 6215 hppa*64*) 6216 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]' 6217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6218 ;; 6219 *) 6220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6221 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6222 ;; 6223 esac 6224 ;; 6225 6226 interix[3-9]*) 6227 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6229 ;; 6230 6231 irix5* | irix6* | nonstopux*) 6232 case $LD in 6233 *-32|*"-32 ") libmagic=32-bit;; 6234 *-n32|*"-n32 ") libmagic=N32;; 6235 *-64|*"-64 ") libmagic=64-bit;; 6236 *) libmagic=never-match;; 6237 esac 6238 lt_cv_deplibs_check_method=pass_all 6239 ;; 6240 6241 # This must be glibc/ELF. 6242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6243 lt_cv_deplibs_check_method=pass_all 6244 ;; 6245 6246 netbsd*) 6247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6249 else 6250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6251 fi 6252 ;; 6253 6254 newos6*) 6255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6256 lt_cv_file_magic_cmd=$FILECMD 6257 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6258 ;; 6259 6260 *nto* | *qnx*) 6261 lt_cv_deplibs_check_method=pass_all 6262 ;; 6263 6264 openbsd* | bitrig*) 6265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6267 else 6268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6269 fi 6270 ;; 6271 6272 osf3* | osf4* | osf5*) 6273 lt_cv_deplibs_check_method=pass_all 6274 ;; 6275 6276 rdos*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279 6280 solaris*) 6281 lt_cv_deplibs_check_method=pass_all 6282 ;; 6283 6284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6285 lt_cv_deplibs_check_method=pass_all 6286 ;; 6287 6288 sysv4 | sysv4.3*) 6289 case $host_vendor in 6290 motorola) 6291 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]' 6292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6293 ;; 6294 ncr) 6295 lt_cv_deplibs_check_method=pass_all 6296 ;; 6297 sequent) 6298 lt_cv_file_magic_cmd='/bin/file' 6299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6300 ;; 6301 sni) 6302 lt_cv_file_magic_cmd='/bin/file' 6303 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6304 lt_cv_file_magic_test_file=/lib/libc.so 6305 ;; 6306 siemens) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309 pc) 6310 lt_cv_deplibs_check_method=pass_all 6311 ;; 6312 esac 6313 ;; 6314 6315 tpf*) 6316 lt_cv_deplibs_check_method=pass_all 6317 ;; 6318 os2*) 6319 lt_cv_deplibs_check_method=pass_all 6320 ;; 6321 esac 6322 ;; 6323 esac 6324 fi 6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6326 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6327 6328 file_magic_glob= 6329 want_nocaseglob=no 6330 if test "$build" = "$host"; then 6331 case $host_os in 6332 mingw* | pw32*) 6333 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6334 want_nocaseglob=yes 6335 else 6336 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6337 fi 6338 ;; 6339 esac 6340 fi 6341 6342 file_magic_cmd=$lt_cv_file_magic_cmd 6343 deplibs_check_method=$lt_cv_deplibs_check_method 6344 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 if test -n "$ac_tool_prefix"; then 6368 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6369 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6371 printf %s "checking for $ac_word... " >&6; } 6372 if test ${ac_cv_prog_DLLTOOL+y} 6373 then : 6374 printf %s "(cached) " >&6 6375 else case e in #( 6376 e) if test -n "$DLLTOOL"; then 6377 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6378 else 6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6380 for as_dir in $PATH 6381 do 6382 IFS=$as_save_IFS 6383 case $as_dir in #((( 6384 '') as_dir=./ ;; 6385 */) ;; 6386 *) as_dir=$as_dir/ ;; 6387 esac 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6390 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394 done 6395 done 6396 IFS=$as_save_IFS 6397 6398 fi ;; 6399 esac 6400 fi 6401 DLLTOOL=$ac_cv_prog_DLLTOOL 6402 if test -n "$DLLTOOL"; then 6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6404 printf "%s\n" "$DLLTOOL" >&6; } 6405 else 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407 printf "%s\n" "no" >&6; } 6408 fi 6409 6410 6411 fi 6412 if test -z "$ac_cv_prog_DLLTOOL"; then 6413 ac_ct_DLLTOOL=$DLLTOOL 6414 # Extract the first word of "dlltool", so it can be a program name with args. 6415 set dummy dlltool; ac_word=$2 6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6417 printf %s "checking for $ac_word... " >&6; } 6418 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6419 then : 6420 printf %s "(cached) " >&6 6421 else case e in #( 6422 e) if test -n "$ac_ct_DLLTOOL"; then 6423 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6424 else 6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6426 for as_dir in $PATH 6427 do 6428 IFS=$as_save_IFS 6429 case $as_dir in #((( 6430 '') as_dir=./ ;; 6431 */) ;; 6432 *) as_dir=$as_dir/ ;; 6433 esac 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6436 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440 done 6441 done 6442 IFS=$as_save_IFS 6443 6444 fi ;; 6445 esac 6446 fi 6447 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6448 if test -n "$ac_ct_DLLTOOL"; then 6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6450 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6451 else 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6453 printf "%s\n" "no" >&6; } 6454 fi 6455 6456 if test "x$ac_ct_DLLTOOL" = x; then 6457 DLLTOOL="false" 6458 else 6459 case $cross_compiling:$ac_tool_warned in 6460 yes:) 6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6463 ac_tool_warned=yes ;; 6464 esac 6465 DLLTOOL=$ac_ct_DLLTOOL 6466 fi 6467 else 6468 DLLTOOL="$ac_cv_prog_DLLTOOL" 6469 fi 6470 6471 test -z "$DLLTOOL" && DLLTOOL=dlltool 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6483 printf %s "checking how to associate runtime and link libraries... " >&6; } 6484 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6485 then : 6486 printf %s "(cached) " >&6 6487 else case e in #( 6488 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6489 6490 case $host_os in 6491 cygwin* | mingw* | pw32* | cegcc*) 6492 # two different shell functions defined in ltmain.sh; 6493 # decide which one to use based on capabilities of $DLLTOOL 6494 case `$DLLTOOL --help 2>&1` in 6495 *--identify-strict*) 6496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6497 ;; 6498 *) 6499 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6500 ;; 6501 esac 6502 ;; 6503 *) 6504 # fallback: assume linklib IS sharedlib 6505 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6506 ;; 6507 esac 6508 ;; 6509 esac 6510 fi 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6512 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6513 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6514 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6515 6516 6517 6518 6519 6520 6521 6522 if test -n "$ac_tool_prefix"; then 6523 for ac_prog in ar 6524 do 6525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6528 printf %s "checking for $ac_word... " >&6; } 6529 if test ${ac_cv_prog_AR+y} 6530 then : 6531 printf %s "(cached) " >&6 6532 else case e in #( 6533 e) if test -n "$AR"; then 6534 ac_cv_prog_AR="$AR" # Let the user override the test. 6535 else 6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6537 for as_dir in $PATH 6538 do 6539 IFS=$as_save_IFS 6540 case $as_dir in #((( 6541 '') as_dir=./ ;; 6542 */) ;; 6543 *) as_dir=$as_dir/ ;; 6544 esac 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6547 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551 done 6552 done 6553 IFS=$as_save_IFS 6554 6555 fi ;; 6556 esac 6557 fi 6558 AR=$ac_cv_prog_AR 6559 if test -n "$AR"; then 6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6561 printf "%s\n" "$AR" >&6; } 6562 else 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6564 printf "%s\n" "no" >&6; } 6565 fi 6566 6567 6568 test -n "$AR" && break 6569 done 6570 fi 6571 if test -z "$AR"; then 6572 ac_ct_AR=$AR 6573 for ac_prog in ar 6574 do 6575 # Extract the first word of "$ac_prog", so it can be a program name with args. 6576 set dummy $ac_prog; ac_word=$2 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6578 printf %s "checking for $ac_word... " >&6; } 6579 if test ${ac_cv_prog_ac_ct_AR+y} 6580 then : 6581 printf %s "(cached) " >&6 6582 else case e in #( 6583 e) if test -n "$ac_ct_AR"; then 6584 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6585 else 6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6587 for as_dir in $PATH 6588 do 6589 IFS=$as_save_IFS 6590 case $as_dir in #((( 6591 '') as_dir=./ ;; 6592 */) ;; 6593 *) as_dir=$as_dir/ ;; 6594 esac 6595 for ac_exec_ext in '' $ac_executable_extensions; do 6596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6597 ac_cv_prog_ac_ct_AR="$ac_prog" 6598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6599 break 2 6600 fi 6601 done 6602 done 6603 IFS=$as_save_IFS 6604 6605 fi ;; 6606 esac 6607 fi 6608 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6609 if test -n "$ac_ct_AR"; then 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6611 printf "%s\n" "$ac_ct_AR" >&6; } 6612 else 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6614 printf "%s\n" "no" >&6; } 6615 fi 6616 6617 6618 test -n "$ac_ct_AR" && break 6619 done 6620 6621 if test "x$ac_ct_AR" = x; then 6622 AR="false" 6623 else 6624 case $cross_compiling:$ac_tool_warned in 6625 yes:) 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6628 ac_tool_warned=yes ;; 6629 esac 6630 AR=$ac_ct_AR 6631 fi 6632 fi 6633 6634 : ${AR=ar} 6635 6636 6637 6638 6639 6640 6641 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6642 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6643 # higher priority because thats what people were doing historically (setting 6644 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6645 # variable obsoleted/removed. 6646 6647 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6648 lt_ar_flags=$AR_FLAGS 6649 6650 6651 6652 6653 6654 6655 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6656 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6657 6658 6659 6660 6661 6662 6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6664 printf %s "checking for archiver @FILE support... " >&6; } 6665 if test ${lt_cv_ar_at_file+y} 6666 then : 6667 printf %s "(cached) " >&6 6668 else case e in #( 6669 e) lt_cv_ar_at_file=no 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671 /* end confdefs.h. */ 6672 6673 int 6674 main (void) 6675 { 6676 6677 ; 6678 return 0; 6679 } 6680 _ACEOF 6681 if ac_fn_c_try_compile "$LINENO" 6682 then : 6683 echo conftest.$ac_objext > conftest.lst 6684 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6686 (eval $lt_ar_try) 2>&5 6687 ac_status=$? 6688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6689 test $ac_status = 0; } 6690 if test 0 -eq "$ac_status"; then 6691 # Ensure the archiver fails upon bogus file names. 6692 rm -f conftest.$ac_objext libconftest.a 6693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6694 (eval $lt_ar_try) 2>&5 6695 ac_status=$? 6696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6697 test $ac_status = 0; } 6698 if test 0 -ne "$ac_status"; then 6699 lt_cv_ar_at_file=@ 6700 fi 6701 fi 6702 rm -f conftest.* libconftest.a 6703 6704 fi 6705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6706 ;; 6707 esac 6708 fi 6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6710 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6711 6712 if test no = "$lt_cv_ar_at_file"; then 6713 archiver_list_spec= 6714 else 6715 archiver_list_spec=$lt_cv_ar_at_file 6716 fi 6717 6718 6719 6720 6721 6722 6723 6724 if test -n "$ac_tool_prefix"; then 6725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6726 set dummy ${ac_tool_prefix}strip; ac_word=$2 6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6728 printf %s "checking for $ac_word... " >&6; } 6729 if test ${ac_cv_prog_STRIP+y} 6730 then : 6731 printf %s "(cached) " >&6 6732 else case e in #( 6733 e) if test -n "$STRIP"; then 6734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6735 else 6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6737 for as_dir in $PATH 6738 do 6739 IFS=$as_save_IFS 6740 case $as_dir in #((( 6741 '') as_dir=./ ;; 6742 */) ;; 6743 *) as_dir=$as_dir/ ;; 6744 esac 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6747 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751 done 6752 done 6753 IFS=$as_save_IFS 6754 6755 fi ;; 6756 esac 6757 fi 6758 STRIP=$ac_cv_prog_STRIP 6759 if test -n "$STRIP"; then 6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6761 printf "%s\n" "$STRIP" >&6; } 6762 else 6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6764 printf "%s\n" "no" >&6; } 6765 fi 6766 6767 6768 fi 6769 if test -z "$ac_cv_prog_STRIP"; then 6770 ac_ct_STRIP=$STRIP 6771 # Extract the first word of "strip", so it can be a program name with args. 6772 set dummy strip; ac_word=$2 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6774 printf %s "checking for $ac_word... " >&6; } 6775 if test ${ac_cv_prog_ac_ct_STRIP+y} 6776 then : 6777 printf %s "(cached) " >&6 6778 else case e in #( 6779 e) if test -n "$ac_ct_STRIP"; then 6780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6781 else 6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6783 for as_dir in $PATH 6784 do 6785 IFS=$as_save_IFS 6786 case $as_dir in #((( 6787 '') as_dir=./ ;; 6788 */) ;; 6789 *) as_dir=$as_dir/ ;; 6790 esac 6791 for ac_exec_ext in '' $ac_executable_extensions; do 6792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6793 ac_cv_prog_ac_ct_STRIP="strip" 6794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6795 break 2 6796 fi 6797 done 6798 done 6799 IFS=$as_save_IFS 6800 6801 fi ;; 6802 esac 6803 fi 6804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6805 if test -n "$ac_ct_STRIP"; then 6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6807 printf "%s\n" "$ac_ct_STRIP" >&6; } 6808 else 6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6810 printf "%s\n" "no" >&6; } 6811 fi 6812 6813 if test "x$ac_ct_STRIP" = x; then 6814 STRIP=":" 6815 else 6816 case $cross_compiling:$ac_tool_warned in 6817 yes:) 6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6820 ac_tool_warned=yes ;; 6821 esac 6822 STRIP=$ac_ct_STRIP 6823 fi 6824 else 6825 STRIP="$ac_cv_prog_STRIP" 6826 fi 6827 6828 test -z "$STRIP" && STRIP=: 6829 6830 6831 6832 6833 6834 6835 if test -n "$ac_tool_prefix"; then 6836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839 printf %s "checking for $ac_word... " >&6; } 6840 if test ${ac_cv_prog_RANLIB+y} 6841 then : 6842 printf %s "(cached) " >&6 6843 else case e in #( 6844 e) if test -n "$RANLIB"; then 6845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6846 else 6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6848 for as_dir in $PATH 6849 do 6850 IFS=$as_save_IFS 6851 case $as_dir in #((( 6852 '') as_dir=./ ;; 6853 */) ;; 6854 *) as_dir=$as_dir/ ;; 6855 esac 6856 for ac_exec_ext in '' $ac_executable_extensions; do 6857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6860 break 2 6861 fi 6862 done 6863 done 6864 IFS=$as_save_IFS 6865 6866 fi ;; 6867 esac 6868 fi 6869 RANLIB=$ac_cv_prog_RANLIB 6870 if test -n "$RANLIB"; then 6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6872 printf "%s\n" "$RANLIB" >&6; } 6873 else 6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875 printf "%s\n" "no" >&6; } 6876 fi 6877 6878 6879 fi 6880 if test -z "$ac_cv_prog_RANLIB"; then 6881 ac_ct_RANLIB=$RANLIB 6882 # Extract the first word of "ranlib", so it can be a program name with args. 6883 set dummy ranlib; ac_word=$2 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885 printf %s "checking for $ac_word... " >&6; } 6886 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6887 then : 6888 printf %s "(cached) " >&6 6889 else case e in #( 6890 e) if test -n "$ac_ct_RANLIB"; then 6891 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6892 else 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894 for as_dir in $PATH 6895 do 6896 IFS=$as_save_IFS 6897 case $as_dir in #((( 6898 '') as_dir=./ ;; 6899 */) ;; 6900 *) as_dir=$as_dir/ ;; 6901 esac 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_ac_ct_RANLIB="ranlib" 6905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908 done 6909 done 6910 IFS=$as_save_IFS 6911 6912 fi ;; 6913 esac 6914 fi 6915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6916 if test -n "$ac_ct_RANLIB"; then 6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6918 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6919 else 6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6921 printf "%s\n" "no" >&6; } 6922 fi 6923 6924 if test "x$ac_ct_RANLIB" = x; then 6925 RANLIB=":" 6926 else 6927 case $cross_compiling:$ac_tool_warned in 6928 yes:) 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6931 ac_tool_warned=yes ;; 6932 esac 6933 RANLIB=$ac_ct_RANLIB 6934 fi 6935 else 6936 RANLIB="$ac_cv_prog_RANLIB" 6937 fi 6938 6939 test -z "$RANLIB" && RANLIB=: 6940 6941 6942 6943 6944 6945 6946 # Determine commands to create old-style static archives. 6947 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6948 old_postinstall_cmds='chmod 644 $oldlib' 6949 old_postuninstall_cmds= 6950 6951 if test -n "$RANLIB"; then 6952 case $host_os in 6953 bitrig* | openbsd*) 6954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6955 ;; 6956 *) 6957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6958 ;; 6959 esac 6960 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6961 fi 6962 6963 case $host_os in 6964 darwin*) 6965 lock_old_archive_extraction=yes ;; 6966 *) 6967 lock_old_archive_extraction=no ;; 6968 esac 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 # If no C compiler was specified, use CC. 7009 LTCC=${LTCC-"$CC"} 7010 7011 # If no C compiler flags were specified, use CFLAGS. 7012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7013 7014 # Allow CC to be a program name with arguments. 7015 compiler=$CC 7016 7017 7018 # Check for command to grab the raw symbol name followed by C symbol from nm. 7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7020 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7021 if test ${lt_cv_sys_global_symbol_pipe+y} 7022 then : 7023 printf %s "(cached) " >&6 7024 else case e in #( 7025 e) 7026 # These are sane defaults that work on at least a few old systems. 7027 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7028 7029 # Character class describing NM global symbol codes. 7030 symcode='[BCDEGRST]' 7031 7032 # Regexp to match symbols that can be accessed directly from C. 7033 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7034 7035 # Define system-specific variables. 7036 case $host_os in 7037 aix*) 7038 symcode='[BCDT]' 7039 ;; 7040 cygwin* | mingw* | pw32* | cegcc*) 7041 symcode='[ABCDGISTW]' 7042 ;; 7043 hpux*) 7044 if test ia64 = "$host_cpu"; then 7045 symcode='[ABCDEGRST]' 7046 fi 7047 ;; 7048 irix* | nonstopux*) 7049 symcode='[BCDEGRST]' 7050 ;; 7051 osf*) 7052 symcode='[BCDEGQRST]' 7053 ;; 7054 solaris*) 7055 symcode='[BDRT]' 7056 ;; 7057 sco3.2v5*) 7058 symcode='[DT]' 7059 ;; 7060 sysv4.2uw2*) 7061 symcode='[DT]' 7062 ;; 7063 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7064 symcode='[ABDT]' 7065 ;; 7066 sysv4) 7067 symcode='[DFNSTU]' 7068 ;; 7069 esac 7070 7071 # If we're using GNU nm, then use its standard symbol codes. 7072 case `$NM -V 2>&1` in 7073 *GNU* | *'with BFD'*) 7074 symcode='[ABCDGIRSTW]' ;; 7075 esac 7076 7077 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7078 # Gets list of data symbols to import. 7079 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7080 # Adjust the below global symbol transforms to fixup imported variables. 7081 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7082 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7083 lt_c_name_lib_hook="\ 7084 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7085 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7086 else 7087 # Disable hooks by default. 7088 lt_cv_sys_global_symbol_to_import= 7089 lt_cdecl_hook= 7090 lt_c_name_hook= 7091 lt_c_name_lib_hook= 7092 fi 7093 7094 # Transform an extracted symbol line into a proper C declaration. 7095 # Some systems (esp. on ia64) link data and code symbols differently, 7096 # so use this general approach. 7097 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7098 $lt_cdecl_hook\ 7099 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7100 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7101 7102 # Transform an extracted symbol line into symbol name and symbol address 7103 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7104 $lt_c_name_hook\ 7105 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7106 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7107 7108 # Transform an extracted symbol line into symbol name with lib prefix and 7109 # symbol address. 7110 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7111 $lt_c_name_lib_hook\ 7112 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7113 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7114 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7115 7116 # Handle CRLF in mingw tool chain 7117 opt_cr= 7118 case $build_os in 7119 mingw*) 7120 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7121 ;; 7122 esac 7123 7124 # Try without a prefix underscore, then with it. 7125 for ac_symprfx in "" "_"; do 7126 7127 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7128 symxfrm="\\1 $ac_symprfx\\2 \\2" 7129 7130 # Write the raw and C identifiers. 7131 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7132 # Fake it for dumpbin and say T for any non-static function, 7133 # D for any global variable and I for any imported variable. 7134 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7135 # which start with @ or ?. 7136 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7137 " {last_section=section; section=\$ 3};"\ 7138 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7139 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7140 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7141 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7142 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7143 " \$ 0!~/External *\|/{next};"\ 7144 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7145 " {if(hide[section]) next};"\ 7146 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7147 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7148 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7149 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7150 " ' prfx=^$ac_symprfx" 7151 else 7152 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7153 fi 7154 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7155 7156 # Check to see that the pipe works correctly. 7157 pipe_works=no 7158 7159 rm -f conftest* 7160 cat > conftest.$ac_ext <<_LT_EOF 7161 #ifdef __cplusplus 7162 extern "C" { 7163 #endif 7164 char nm_test_var; 7165 void nm_test_func(void); 7166 void nm_test_func(void){} 7167 #ifdef __cplusplus 7168 } 7169 #endif 7170 int main(){nm_test_var='a';nm_test_func();return(0);} 7171 _LT_EOF 7172 7173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7174 (eval $ac_compile) 2>&5 7175 ac_status=$? 7176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7177 test $ac_status = 0; }; then 7178 # Now try to grab the symbols. 7179 nlist=conftest.nm 7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7181 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7182 ac_status=$? 7183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7184 test $ac_status = 0; } && test -s "$nlist"; then 7185 # Try sorting and uniquifying the output. 7186 if sort "$nlist" | uniq > "$nlist"T; then 7187 mv -f "$nlist"T "$nlist" 7188 else 7189 rm -f "$nlist"T 7190 fi 7191 7192 # Make sure that we snagged all the symbols we need. 7193 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7194 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7195 cat <<_LT_EOF > conftest.$ac_ext 7196 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7197 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7198 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7199 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7200 # define LT_DLSYM_CONST 7201 #elif defined __osf__ 7202 /* This system does not cope well with relocations in const data. */ 7203 # define LT_DLSYM_CONST 7204 #else 7205 # define LT_DLSYM_CONST const 7206 #endif 7207 7208 #ifdef __cplusplus 7209 extern "C" { 7210 #endif 7211 7212 _LT_EOF 7213 # Now generate the symbol file. 7214 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7215 7216 cat <<_LT_EOF >> conftest.$ac_ext 7217 7218 /* The mapping between symbol names and symbols. */ 7219 LT_DLSYM_CONST struct { 7220 const char *name; 7221 void *address; 7222 } 7223 lt__PROGRAM__LTX_preloaded_symbols[] = 7224 { 7225 { "@PROGRAM@", (void *) 0 }, 7226 _LT_EOF 7227 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7228 cat <<\_LT_EOF >> conftest.$ac_ext 7229 {0, (void *) 0} 7230 }; 7231 7232 /* This works around a problem in FreeBSD linker */ 7233 #ifdef FREEBSD_WORKAROUND 7234 static const void *lt_preloaded_setup() { 7235 return lt__PROGRAM__LTX_preloaded_symbols; 7236 } 7237 #endif 7238 7239 #ifdef __cplusplus 7240 } 7241 #endif 7242 _LT_EOF 7243 # Now try linking the two files. 7244 mv conftest.$ac_objext conftstm.$ac_objext 7245 lt_globsym_save_LIBS=$LIBS 7246 lt_globsym_save_CFLAGS=$CFLAGS 7247 LIBS=conftstm.$ac_objext 7248 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7250 (eval $ac_link) 2>&5 7251 ac_status=$? 7252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7253 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7254 pipe_works=yes 7255 fi 7256 LIBS=$lt_globsym_save_LIBS 7257 CFLAGS=$lt_globsym_save_CFLAGS 7258 else 7259 echo "cannot find nm_test_func in $nlist" >&5 7260 fi 7261 else 7262 echo "cannot find nm_test_var in $nlist" >&5 7263 fi 7264 else 7265 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7266 fi 7267 else 7268 echo "$progname: failed program was:" >&5 7269 cat conftest.$ac_ext >&5 7270 fi 7271 rm -rf conftest* conftst* 7272 7273 # Do not use the global_symbol_pipe unless it works. 7274 if test yes = "$pipe_works"; then 7275 break 7276 else 7277 lt_cv_sys_global_symbol_pipe= 7278 fi 7279 done 7280 ;; 7281 esac 7282 fi 7283 7284 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7285 lt_cv_sys_global_symbol_to_cdecl= 7286 fi 7287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7289 printf "%s\n" "failed" >&6; } 7290 else 7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7292 printf "%s\n" "ok" >&6; } 7293 fi 7294 7295 # Response file support. 7296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7297 nm_file_list_spec='@' 7298 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7299 nm_file_list_spec='@' 7300 fi 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7339 printf %s "checking for sysroot... " >&6; } 7340 7341 # Check whether --with-sysroot was given. 7342 if test ${with_sysroot+y} 7343 then : 7344 withval=$with_sysroot; 7345 else case e in #( 7346 e) with_sysroot=no ;; 7347 esac 7348 fi 7349 7350 7351 lt_sysroot= 7352 case $with_sysroot in #( 7353 yes) 7354 if test yes = "$GCC"; then 7355 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7356 fi 7357 ;; #( 7358 /*) 7359 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7360 ;; #( 7361 no|'') 7362 ;; #( 7363 *) 7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7365 printf "%s\n" "$with_sysroot" >&6; } 7366 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7367 ;; 7368 esac 7369 7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7371 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7372 7373 7374 7375 7376 7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7378 printf %s "checking for a working dd... " >&6; } 7379 if test ${ac_cv_path_lt_DD+y} 7380 then : 7381 printf %s "(cached) " >&6 7382 else case e in #( 7383 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7384 cat conftest.i conftest.i >conftest2.i 7385 : ${lt_DD:=$DD} 7386 if test -z "$lt_DD"; then 7387 ac_path_lt_DD_found=false 7388 # Loop through the user's path and test for each of PROGNAME-LIST 7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390 for as_dir in $PATH 7391 do 7392 IFS=$as_save_IFS 7393 case $as_dir in #((( 7394 '') as_dir=./ ;; 7395 */) ;; 7396 *) as_dir=$as_dir/ ;; 7397 esac 7398 for ac_prog in dd 7399 do 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7402 as_fn_executable_p "$ac_path_lt_DD" || continue 7403 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7404 cmp -s conftest.i conftest.out \ 7405 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7406 fi 7407 $ac_path_lt_DD_found && break 3 7408 done 7409 done 7410 done 7411 IFS=$as_save_IFS 7412 if test -z "$ac_cv_path_lt_DD"; then 7413 : 7414 fi 7415 else 7416 ac_cv_path_lt_DD=$lt_DD 7417 fi 7418 7419 rm -f conftest.i conftest2.i conftest.out ;; 7420 esac 7421 fi 7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7423 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7424 7425 7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7427 printf %s "checking how to truncate binary pipes... " >&6; } 7428 if test ${lt_cv_truncate_bin+y} 7429 then : 7430 printf %s "(cached) " >&6 7431 else case e in #( 7432 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7433 cat conftest.i conftest.i >conftest2.i 7434 lt_cv_truncate_bin= 7435 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7436 cmp -s conftest.i conftest.out \ 7437 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7438 fi 7439 rm -f conftest.i conftest2.i conftest.out 7440 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7441 esac 7442 fi 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7444 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7445 7446 7447 7448 7449 7450 7451 7452 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7453 func_cc_basename () 7454 { 7455 for cc_temp in $*""; do 7456 case $cc_temp in 7457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7459 \-*) ;; 7460 *) break;; 7461 esac 7462 done 7463 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7464 } 7465 7466 # Check whether --enable-libtool-lock was given. 7467 if test ${enable_libtool_lock+y} 7468 then : 7469 enableval=$enable_libtool_lock; 7470 fi 7471 7472 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7473 7474 # Some flags need to be propagated to the compiler or linker for good 7475 # libtool support. 7476 case $host in 7477 ia64-*-hpux*) 7478 # Find out what ABI is being produced by ac_compile, and set mode 7479 # options accordingly. 7480 echo 'int i;' > conftest.$ac_ext 7481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7482 (eval $ac_compile) 2>&5 7483 ac_status=$? 7484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7485 test $ac_status = 0; }; then 7486 case `$FILECMD conftest.$ac_objext` in 7487 *ELF-32*) 7488 HPUX_IA64_MODE=32 7489 ;; 7490 *ELF-64*) 7491 HPUX_IA64_MODE=64 7492 ;; 7493 esac 7494 fi 7495 rm -rf conftest* 7496 ;; 7497 *-*-irix6*) 7498 # Find out what ABI is being produced by ac_compile, and set linker 7499 # options accordingly. 7500 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7502 (eval $ac_compile) 2>&5 7503 ac_status=$? 7504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7505 test $ac_status = 0; }; then 7506 if test yes = "$lt_cv_prog_gnu_ld"; then 7507 case `$FILECMD conftest.$ac_objext` in 7508 *32-bit*) 7509 LD="${LD-ld} -melf32bsmip" 7510 ;; 7511 *N32*) 7512 LD="${LD-ld} -melf32bmipn32" 7513 ;; 7514 *64-bit*) 7515 LD="${LD-ld} -melf64bmip" 7516 ;; 7517 esac 7518 else 7519 case `$FILECMD conftest.$ac_objext` in 7520 *32-bit*) 7521 LD="${LD-ld} -32" 7522 ;; 7523 *N32*) 7524 LD="${LD-ld} -n32" 7525 ;; 7526 *64-bit*) 7527 LD="${LD-ld} -64" 7528 ;; 7529 esac 7530 fi 7531 fi 7532 rm -rf conftest* 7533 ;; 7534 7535 mips64*-*linux*) 7536 # Find out what ABI is being produced by ac_compile, and set linker 7537 # options accordingly. 7538 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7540 (eval $ac_compile) 2>&5 7541 ac_status=$? 7542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7543 test $ac_status = 0; }; then 7544 emul=elf 7545 case `$FILECMD conftest.$ac_objext` in 7546 *32-bit*) 7547 emul="${emul}32" 7548 ;; 7549 *64-bit*) 7550 emul="${emul}64" 7551 ;; 7552 esac 7553 case `$FILECMD conftest.$ac_objext` in 7554 *MSB*) 7555 emul="${emul}btsmip" 7556 ;; 7557 *LSB*) 7558 emul="${emul}ltsmip" 7559 ;; 7560 esac 7561 case `$FILECMD conftest.$ac_objext` in 7562 *N32*) 7563 emul="${emul}n32" 7564 ;; 7565 esac 7566 LD="${LD-ld} -m $emul" 7567 fi 7568 rm -rf conftest* 7569 ;; 7570 7571 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7572 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7573 # Find out what ABI is being produced by ac_compile, and set linker 7574 # options accordingly. Note that the listed cases only cover the 7575 # situations where additional linker options are needed (such as when 7576 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7577 # vice versa); the common cases where no linker options are needed do 7578 # not appear in the list. 7579 echo 'int i;' > conftest.$ac_ext 7580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7581 (eval $ac_compile) 2>&5 7582 ac_status=$? 7583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7584 test $ac_status = 0; }; then 7585 case `$FILECMD conftest.o` in 7586 *32-bit*) 7587 case $host in 7588 x86_64-*kfreebsd*-gnu) 7589 LD="${LD-ld} -m elf_i386_fbsd" 7590 ;; 7591 x86_64-*linux*) 7592 case `$FILECMD conftest.o` in 7593 *x86-64*) 7594 LD="${LD-ld} -m elf32_x86_64" 7595 ;; 7596 *) 7597 LD="${LD-ld} -m elf_i386" 7598 ;; 7599 esac 7600 ;; 7601 powerpc64le-*linux*) 7602 LD="${LD-ld} -m elf32lppclinux" 7603 ;; 7604 powerpc64-*linux*) 7605 LD="${LD-ld} -m elf32ppclinux" 7606 ;; 7607 s390x-*linux*) 7608 LD="${LD-ld} -m elf_s390" 7609 ;; 7610 sparc64-*linux*) 7611 LD="${LD-ld} -m elf32_sparc" 7612 ;; 7613 esac 7614 ;; 7615 *64-bit*) 7616 case $host in 7617 x86_64-*kfreebsd*-gnu) 7618 LD="${LD-ld} -m elf_x86_64_fbsd" 7619 ;; 7620 x86_64-*linux*) 7621 LD="${LD-ld} -m elf_x86_64" 7622 ;; 7623 powerpcle-*linux*) 7624 LD="${LD-ld} -m elf64lppc" 7625 ;; 7626 powerpc-*linux*) 7627 LD="${LD-ld} -m elf64ppc" 7628 ;; 7629 s390*-*linux*|s390*-*tpf*) 7630 LD="${LD-ld} -m elf64_s390" 7631 ;; 7632 sparc*-*linux*) 7633 LD="${LD-ld} -m elf64_sparc" 7634 ;; 7635 esac 7636 ;; 7637 esac 7638 fi 7639 rm -rf conftest* 7640 ;; 7641 7642 *-*-sco3.2v5*) 7643 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7644 SAVE_CFLAGS=$CFLAGS 7645 CFLAGS="$CFLAGS -belf" 7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7647 printf %s "checking whether the C compiler needs -belf... " >&6; } 7648 if test ${lt_cv_cc_needs_belf+y} 7649 then : 7650 printf %s "(cached) " >&6 7651 else case e in #( 7652 e) ac_ext=c 7653 ac_cpp='$CPP $CPPFLAGS' 7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7657 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659 /* end confdefs.h. */ 7660 7661 int 7662 main (void) 7663 { 7664 7665 ; 7666 return 0; 7667 } 7668 _ACEOF 7669 if ac_fn_c_try_link "$LINENO" 7670 then : 7671 lt_cv_cc_needs_belf=yes 7672 else case e in #( 7673 e) lt_cv_cc_needs_belf=no ;; 7674 esac 7675 fi 7676 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7677 conftest$ac_exeext conftest.$ac_ext 7678 ac_ext=c 7679 ac_cpp='$CPP $CPPFLAGS' 7680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7682 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7683 ;; 7684 esac 7685 fi 7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7687 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7688 if test yes != "$lt_cv_cc_needs_belf"; then 7689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7690 CFLAGS=$SAVE_CFLAGS 7691 fi 7692 ;; 7693 *-*solaris*) 7694 # Find out what ABI is being produced by ac_compile, and set linker 7695 # options accordingly. 7696 echo 'int i;' > conftest.$ac_ext 7697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7698 (eval $ac_compile) 2>&5 7699 ac_status=$? 7700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7701 test $ac_status = 0; }; then 7702 case `$FILECMD conftest.o` in 7703 *64-bit*) 7704 case $lt_cv_prog_gnu_ld in 7705 yes*) 7706 case $host in 7707 i?86-*-solaris*|x86_64-*-solaris*) 7708 LD="${LD-ld} -m elf_x86_64" 7709 ;; 7710 sparc*-*-solaris*) 7711 LD="${LD-ld} -m elf64_sparc" 7712 ;; 7713 esac 7714 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7715 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7716 LD=${LD-ld}_sol2 7717 fi 7718 ;; 7719 *) 7720 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7721 LD="${LD-ld} -64" 7722 fi 7723 ;; 7724 esac 7725 ;; 7726 esac 7727 fi 7728 rm -rf conftest* 7729 ;; 7730 esac 7731 7732 need_locks=$enable_libtool_lock 7733 7734 if test -n "$ac_tool_prefix"; then 7735 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7736 set dummy ${ac_tool_prefix}mt; ac_word=$2 7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7738 printf %s "checking for $ac_word... " >&6; } 7739 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7740 then : 7741 printf %s "(cached) " >&6 7742 else case e in #( 7743 e) if test -n "$MANIFEST_TOOL"; then 7744 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7745 else 7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7747 for as_dir in $PATH 7748 do 7749 IFS=$as_save_IFS 7750 case $as_dir in #((( 7751 '') as_dir=./ ;; 7752 */) ;; 7753 *) as_dir=$as_dir/ ;; 7754 esac 7755 for ac_exec_ext in '' $ac_executable_extensions; do 7756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7757 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7759 break 2 7760 fi 7761 done 7762 done 7763 IFS=$as_save_IFS 7764 7765 fi ;; 7766 esac 7767 fi 7768 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7769 if test -n "$MANIFEST_TOOL"; then 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7771 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7772 else 7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7774 printf "%s\n" "no" >&6; } 7775 fi 7776 7777 7778 fi 7779 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7780 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7781 # Extract the first word of "mt", so it can be a program name with args. 7782 set dummy mt; ac_word=$2 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7784 printf %s "checking for $ac_word... " >&6; } 7785 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7786 then : 7787 printf %s "(cached) " >&6 7788 else case e in #( 7789 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7790 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7791 else 7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7793 for as_dir in $PATH 7794 do 7795 IFS=$as_save_IFS 7796 case $as_dir in #((( 7797 '') as_dir=./ ;; 7798 */) ;; 7799 *) as_dir=$as_dir/ ;; 7800 esac 7801 for ac_exec_ext in '' $ac_executable_extensions; do 7802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7805 break 2 7806 fi 7807 done 7808 done 7809 IFS=$as_save_IFS 7810 7811 fi ;; 7812 esac 7813 fi 7814 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7815 if test -n "$ac_ct_MANIFEST_TOOL"; then 7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7817 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7818 else 7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7820 printf "%s\n" "no" >&6; } 7821 fi 7822 7823 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7824 MANIFEST_TOOL=":" 7825 else 7826 case $cross_compiling:$ac_tool_warned in 7827 yes:) 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7829 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7830 ac_tool_warned=yes ;; 7831 esac 7832 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7833 fi 7834 else 7835 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7836 fi 7837 7838 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7840 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7841 if test ${lt_cv_path_mainfest_tool+y} 7842 then : 7843 printf %s "(cached) " >&6 7844 else case e in #( 7845 e) lt_cv_path_mainfest_tool=no 7846 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7847 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7848 cat conftest.err >&5 7849 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7850 lt_cv_path_mainfest_tool=yes 7851 fi 7852 rm -f conftest* ;; 7853 esac 7854 fi 7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7856 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7857 if test yes != "$lt_cv_path_mainfest_tool"; then 7858 MANIFEST_TOOL=: 7859 fi 7860 7861 7862 7863 7864 7865 7866 case $host_os in 7867 rhapsody* | darwin*) 7868 if test -n "$ac_tool_prefix"; then 7869 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7870 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7872 printf %s "checking for $ac_word... " >&6; } 7873 if test ${ac_cv_prog_DSYMUTIL+y} 7874 then : 7875 printf %s "(cached) " >&6 7876 else case e in #( 7877 e) if test -n "$DSYMUTIL"; then 7878 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7879 else 7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7881 for as_dir in $PATH 7882 do 7883 IFS=$as_save_IFS 7884 case $as_dir in #((( 7885 '') as_dir=./ ;; 7886 */) ;; 7887 *) as_dir=$as_dir/ ;; 7888 esac 7889 for ac_exec_ext in '' $ac_executable_extensions; do 7890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7891 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7893 break 2 7894 fi 7895 done 7896 done 7897 IFS=$as_save_IFS 7898 7899 fi ;; 7900 esac 7901 fi 7902 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7903 if test -n "$DSYMUTIL"; then 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7905 printf "%s\n" "$DSYMUTIL" >&6; } 7906 else 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7908 printf "%s\n" "no" >&6; } 7909 fi 7910 7911 7912 fi 7913 if test -z "$ac_cv_prog_DSYMUTIL"; then 7914 ac_ct_DSYMUTIL=$DSYMUTIL 7915 # Extract the first word of "dsymutil", so it can be a program name with args. 7916 set dummy dsymutil; ac_word=$2 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7918 printf %s "checking for $ac_word... " >&6; } 7919 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7920 then : 7921 printf %s "(cached) " >&6 7922 else case e in #( 7923 e) if test -n "$ac_ct_DSYMUTIL"; then 7924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7925 else 7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7927 for as_dir in $PATH 7928 do 7929 IFS=$as_save_IFS 7930 case $as_dir in #((( 7931 '') as_dir=./ ;; 7932 */) ;; 7933 *) as_dir=$as_dir/ ;; 7934 esac 7935 for ac_exec_ext in '' $ac_executable_extensions; do 7936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7937 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7939 break 2 7940 fi 7941 done 7942 done 7943 IFS=$as_save_IFS 7944 7945 fi ;; 7946 esac 7947 fi 7948 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7949 if test -n "$ac_ct_DSYMUTIL"; then 7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7951 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7952 else 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7954 printf "%s\n" "no" >&6; } 7955 fi 7956 7957 if test "x$ac_ct_DSYMUTIL" = x; then 7958 DSYMUTIL=":" 7959 else 7960 case $cross_compiling:$ac_tool_warned in 7961 yes:) 7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7964 ac_tool_warned=yes ;; 7965 esac 7966 DSYMUTIL=$ac_ct_DSYMUTIL 7967 fi 7968 else 7969 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7970 fi 7971 7972 if test -n "$ac_tool_prefix"; then 7973 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7974 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7976 printf %s "checking for $ac_word... " >&6; } 7977 if test ${ac_cv_prog_NMEDIT+y} 7978 then : 7979 printf %s "(cached) " >&6 7980 else case e in #( 7981 e) if test -n "$NMEDIT"; then 7982 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7983 else 7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7985 for as_dir in $PATH 7986 do 7987 IFS=$as_save_IFS 7988 case $as_dir in #((( 7989 '') as_dir=./ ;; 7990 */) ;; 7991 *) as_dir=$as_dir/ ;; 7992 esac 7993 for ac_exec_ext in '' $ac_executable_extensions; do 7994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7995 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7997 break 2 7998 fi 7999 done 8000 done 8001 IFS=$as_save_IFS 8002 8003 fi ;; 8004 esac 8005 fi 8006 NMEDIT=$ac_cv_prog_NMEDIT 8007 if test -n "$NMEDIT"; then 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8009 printf "%s\n" "$NMEDIT" >&6; } 8010 else 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8012 printf "%s\n" "no" >&6; } 8013 fi 8014 8015 8016 fi 8017 if test -z "$ac_cv_prog_NMEDIT"; then 8018 ac_ct_NMEDIT=$NMEDIT 8019 # Extract the first word of "nmedit", so it can be a program name with args. 8020 set dummy nmedit; ac_word=$2 8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8022 printf %s "checking for $ac_word... " >&6; } 8023 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8024 then : 8025 printf %s "(cached) " >&6 8026 else case e in #( 8027 e) if test -n "$ac_ct_NMEDIT"; then 8028 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8029 else 8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8031 for as_dir in $PATH 8032 do 8033 IFS=$as_save_IFS 8034 case $as_dir in #((( 8035 '') as_dir=./ ;; 8036 */) ;; 8037 *) as_dir=$as_dir/ ;; 8038 esac 8039 for ac_exec_ext in '' $ac_executable_extensions; do 8040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8041 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8043 break 2 8044 fi 8045 done 8046 done 8047 IFS=$as_save_IFS 8048 8049 fi ;; 8050 esac 8051 fi 8052 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8053 if test -n "$ac_ct_NMEDIT"; then 8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8055 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8056 else 8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8058 printf "%s\n" "no" >&6; } 8059 fi 8060 8061 if test "x$ac_ct_NMEDIT" = x; then 8062 NMEDIT=":" 8063 else 8064 case $cross_compiling:$ac_tool_warned in 8065 yes:) 8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8068 ac_tool_warned=yes ;; 8069 esac 8070 NMEDIT=$ac_ct_NMEDIT 8071 fi 8072 else 8073 NMEDIT="$ac_cv_prog_NMEDIT" 8074 fi 8075 8076 if test -n "$ac_tool_prefix"; then 8077 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8078 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8080 printf %s "checking for $ac_word... " >&6; } 8081 if test ${ac_cv_prog_LIPO+y} 8082 then : 8083 printf %s "(cached) " >&6 8084 else case e in #( 8085 e) if test -n "$LIPO"; then 8086 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8087 else 8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8089 for as_dir in $PATH 8090 do 8091 IFS=$as_save_IFS 8092 case $as_dir in #((( 8093 '') as_dir=./ ;; 8094 */) ;; 8095 *) as_dir=$as_dir/ ;; 8096 esac 8097 for ac_exec_ext in '' $ac_executable_extensions; do 8098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8099 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8101 break 2 8102 fi 8103 done 8104 done 8105 IFS=$as_save_IFS 8106 8107 fi ;; 8108 esac 8109 fi 8110 LIPO=$ac_cv_prog_LIPO 8111 if test -n "$LIPO"; then 8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8113 printf "%s\n" "$LIPO" >&6; } 8114 else 8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8116 printf "%s\n" "no" >&6; } 8117 fi 8118 8119 8120 fi 8121 if test -z "$ac_cv_prog_LIPO"; then 8122 ac_ct_LIPO=$LIPO 8123 # Extract the first word of "lipo", so it can be a program name with args. 8124 set dummy lipo; ac_word=$2 8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8126 printf %s "checking for $ac_word... " >&6; } 8127 if test ${ac_cv_prog_ac_ct_LIPO+y} 8128 then : 8129 printf %s "(cached) " >&6 8130 else case e in #( 8131 e) if test -n "$ac_ct_LIPO"; then 8132 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8133 else 8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8135 for as_dir in $PATH 8136 do 8137 IFS=$as_save_IFS 8138 case $as_dir in #((( 8139 '') as_dir=./ ;; 8140 */) ;; 8141 *) as_dir=$as_dir/ ;; 8142 esac 8143 for ac_exec_ext in '' $ac_executable_extensions; do 8144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8145 ac_cv_prog_ac_ct_LIPO="lipo" 8146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8147 break 2 8148 fi 8149 done 8150 done 8151 IFS=$as_save_IFS 8152 8153 fi ;; 8154 esac 8155 fi 8156 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8157 if test -n "$ac_ct_LIPO"; then 8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8159 printf "%s\n" "$ac_ct_LIPO" >&6; } 8160 else 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8162 printf "%s\n" "no" >&6; } 8163 fi 8164 8165 if test "x$ac_ct_LIPO" = x; then 8166 LIPO=":" 8167 else 8168 case $cross_compiling:$ac_tool_warned in 8169 yes:) 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8172 ac_tool_warned=yes ;; 8173 esac 8174 LIPO=$ac_ct_LIPO 8175 fi 8176 else 8177 LIPO="$ac_cv_prog_LIPO" 8178 fi 8179 8180 if test -n "$ac_tool_prefix"; then 8181 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8182 set dummy ${ac_tool_prefix}otool; ac_word=$2 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8184 printf %s "checking for $ac_word... " >&6; } 8185 if test ${ac_cv_prog_OTOOL+y} 8186 then : 8187 printf %s "(cached) " >&6 8188 else case e in #( 8189 e) if test -n "$OTOOL"; then 8190 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8191 else 8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8193 for as_dir in $PATH 8194 do 8195 IFS=$as_save_IFS 8196 case $as_dir in #((( 8197 '') as_dir=./ ;; 8198 */) ;; 8199 *) as_dir=$as_dir/ ;; 8200 esac 8201 for ac_exec_ext in '' $ac_executable_extensions; do 8202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8203 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8205 break 2 8206 fi 8207 done 8208 done 8209 IFS=$as_save_IFS 8210 8211 fi ;; 8212 esac 8213 fi 8214 OTOOL=$ac_cv_prog_OTOOL 8215 if test -n "$OTOOL"; then 8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8217 printf "%s\n" "$OTOOL" >&6; } 8218 else 8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8220 printf "%s\n" "no" >&6; } 8221 fi 8222 8223 8224 fi 8225 if test -z "$ac_cv_prog_OTOOL"; then 8226 ac_ct_OTOOL=$OTOOL 8227 # Extract the first word of "otool", so it can be a program name with args. 8228 set dummy otool; ac_word=$2 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8230 printf %s "checking for $ac_word... " >&6; } 8231 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8232 then : 8233 printf %s "(cached) " >&6 8234 else case e in #( 8235 e) if test -n "$ac_ct_OTOOL"; then 8236 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8237 else 8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8239 for as_dir in $PATH 8240 do 8241 IFS=$as_save_IFS 8242 case $as_dir in #((( 8243 '') as_dir=./ ;; 8244 */) ;; 8245 *) as_dir=$as_dir/ ;; 8246 esac 8247 for ac_exec_ext in '' $ac_executable_extensions; do 8248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8249 ac_cv_prog_ac_ct_OTOOL="otool" 8250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8251 break 2 8252 fi 8253 done 8254 done 8255 IFS=$as_save_IFS 8256 8257 fi ;; 8258 esac 8259 fi 8260 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8261 if test -n "$ac_ct_OTOOL"; then 8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8263 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8264 else 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8266 printf "%s\n" "no" >&6; } 8267 fi 8268 8269 if test "x$ac_ct_OTOOL" = x; then 8270 OTOOL=":" 8271 else 8272 case $cross_compiling:$ac_tool_warned in 8273 yes:) 8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8275 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8276 ac_tool_warned=yes ;; 8277 esac 8278 OTOOL=$ac_ct_OTOOL 8279 fi 8280 else 8281 OTOOL="$ac_cv_prog_OTOOL" 8282 fi 8283 8284 if test -n "$ac_tool_prefix"; then 8285 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8286 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8288 printf %s "checking for $ac_word... " >&6; } 8289 if test ${ac_cv_prog_OTOOL64+y} 8290 then : 8291 printf %s "(cached) " >&6 8292 else case e in #( 8293 e) if test -n "$OTOOL64"; then 8294 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8295 else 8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297 for as_dir in $PATH 8298 do 8299 IFS=$as_save_IFS 8300 case $as_dir in #((( 8301 '') as_dir=./ ;; 8302 */) ;; 8303 *) as_dir=$as_dir/ ;; 8304 esac 8305 for ac_exec_ext in '' $ac_executable_extensions; do 8306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8309 break 2 8310 fi 8311 done 8312 done 8313 IFS=$as_save_IFS 8314 8315 fi ;; 8316 esac 8317 fi 8318 OTOOL64=$ac_cv_prog_OTOOL64 8319 if test -n "$OTOOL64"; then 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8321 printf "%s\n" "$OTOOL64" >&6; } 8322 else 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8324 printf "%s\n" "no" >&6; } 8325 fi 8326 8327 8328 fi 8329 if test -z "$ac_cv_prog_OTOOL64"; then 8330 ac_ct_OTOOL64=$OTOOL64 8331 # Extract the first word of "otool64", so it can be a program name with args. 8332 set dummy otool64; ac_word=$2 8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8334 printf %s "checking for $ac_word... " >&6; } 8335 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8336 then : 8337 printf %s "(cached) " >&6 8338 else case e in #( 8339 e) if test -n "$ac_ct_OTOOL64"; then 8340 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8341 else 8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8343 for as_dir in $PATH 8344 do 8345 IFS=$as_save_IFS 8346 case $as_dir in #((( 8347 '') as_dir=./ ;; 8348 */) ;; 8349 *) as_dir=$as_dir/ ;; 8350 esac 8351 for ac_exec_ext in '' $ac_executable_extensions; do 8352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8353 ac_cv_prog_ac_ct_OTOOL64="otool64" 8354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8355 break 2 8356 fi 8357 done 8358 done 8359 IFS=$as_save_IFS 8360 8361 fi ;; 8362 esac 8363 fi 8364 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8365 if test -n "$ac_ct_OTOOL64"; then 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8367 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8368 else 8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8370 printf "%s\n" "no" >&6; } 8371 fi 8372 8373 if test "x$ac_ct_OTOOL64" = x; then 8374 OTOOL64=":" 8375 else 8376 case $cross_compiling:$ac_tool_warned in 8377 yes:) 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8379 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8380 ac_tool_warned=yes ;; 8381 esac 8382 OTOOL64=$ac_ct_OTOOL64 8383 fi 8384 else 8385 OTOOL64="$ac_cv_prog_OTOOL64" 8386 fi 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8415 printf %s "checking for -single_module linker flag... " >&6; } 8416 if test ${lt_cv_apple_cc_single_mod+y} 8417 then : 8418 printf %s "(cached) " >&6 8419 else case e in #( 8420 e) lt_cv_apple_cc_single_mod=no 8421 if test -z "$LT_MULTI_MODULE"; then 8422 # By default we will add the -single_module flag. You can override 8423 # by either setting the environment variable LT_MULTI_MODULE 8424 # non-empty at configure time, or by adding -multi_module to the 8425 # link flags. 8426 rm -rf libconftest.dylib* 8427 echo "int foo(void){return 1;}" > conftest.c 8428 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8429 -dynamiclib -Wl,-single_module conftest.c" >&5 8430 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8431 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8432 _lt_result=$? 8433 # If there is a non-empty error log, and "single_module" 8434 # appears in it, assume the flag caused a linker warning 8435 if test -s conftest.err && $GREP single_module conftest.err; then 8436 cat conftest.err >&5 8437 # Otherwise, if the output was created with a 0 exit code from 8438 # the compiler, it worked. 8439 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8440 lt_cv_apple_cc_single_mod=yes 8441 else 8442 cat conftest.err >&5 8443 fi 8444 rm -rf libconftest.dylib* 8445 rm -f conftest.* 8446 fi ;; 8447 esac 8448 fi 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8450 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8451 8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8453 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8454 if test ${lt_cv_ld_exported_symbols_list+y} 8455 then : 8456 printf %s "(cached) " >&6 8457 else case e in #( 8458 e) lt_cv_ld_exported_symbols_list=no 8459 save_LDFLAGS=$LDFLAGS 8460 echo "_main" > conftest.sym 8461 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8463 /* end confdefs.h. */ 8464 8465 int 8466 main (void) 8467 { 8468 8469 ; 8470 return 0; 8471 } 8472 _ACEOF 8473 if ac_fn_c_try_link "$LINENO" 8474 then : 8475 lt_cv_ld_exported_symbols_list=yes 8476 else case e in #( 8477 e) lt_cv_ld_exported_symbols_list=no ;; 8478 esac 8479 fi 8480 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8481 conftest$ac_exeext conftest.$ac_ext 8482 LDFLAGS=$save_LDFLAGS 8483 ;; 8484 esac 8485 fi 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8487 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8488 8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8490 printf %s "checking for -force_load linker flag... " >&6; } 8491 if test ${lt_cv_ld_force_load+y} 8492 then : 8493 printf %s "(cached) " >&6 8494 else case e in #( 8495 e) lt_cv_ld_force_load=no 8496 cat > conftest.c << _LT_EOF 8497 int forced_loaded() { return 2;} 8498 _LT_EOF 8499 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8500 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8501 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8502 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8503 echo "$RANLIB libconftest.a" >&5 8504 $RANLIB libconftest.a 2>&5 8505 cat > conftest.c << _LT_EOF 8506 int main() { return 0;} 8507 _LT_EOF 8508 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8509 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8510 _lt_result=$? 8511 if test -s conftest.err && $GREP force_load conftest.err; then 8512 cat conftest.err >&5 8513 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8514 lt_cv_ld_force_load=yes 8515 else 8516 cat conftest.err >&5 8517 fi 8518 rm -f conftest.err libconftest.a conftest conftest.c 8519 rm -rf conftest.dSYM 8520 ;; 8521 esac 8522 fi 8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8524 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8525 case $host_os in 8526 rhapsody* | darwin1.[012]) 8527 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8528 darwin1.*) 8529 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8530 darwin*) 8531 case $MACOSX_DEPLOYMENT_TARGET,$host in 8532 10.[012],*|,*powerpc*-darwin[5-8]*) 8533 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8534 *) 8535 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8536 esac 8537 ;; 8538 esac 8539 if test yes = "$lt_cv_apple_cc_single_mod"; then 8540 _lt_dar_single_mod='$single_module' 8541 fi 8542 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8543 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8544 else 8545 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8546 fi 8547 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8548 _lt_dsymutil='~$DSYMUTIL $lib || :' 8549 else 8550 _lt_dsymutil= 8551 fi 8552 ;; 8553 esac 8554 8555 # func_munge_path_list VARIABLE PATH 8556 # ----------------------------------- 8557 # VARIABLE is name of variable containing _space_ separated list of 8558 # directories to be munged by the contents of PATH, which is string 8559 # having a format: 8560 # "DIR[:DIR]:" 8561 # string "DIR[ DIR]" will be prepended to VARIABLE 8562 # ":DIR[:DIR]" 8563 # string "DIR[ DIR]" will be appended to VARIABLE 8564 # "DIRP[:DIRP]::[DIRA:]DIRA" 8565 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8566 # "DIRA[ DIRA]" will be appended to VARIABLE 8567 # "DIR[:DIR]" 8568 # VARIABLE will be replaced by "DIR[ DIR]" 8569 func_munge_path_list () 8570 { 8571 case x$2 in 8572 x) 8573 ;; 8574 *:) 8575 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8576 ;; 8577 x:*) 8578 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8579 ;; 8580 *::*) 8581 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8582 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8583 ;; 8584 *) 8585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8586 ;; 8587 esac 8588 } 8589 8590 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8591 " 8592 if test "x$ac_cv_header_dlfcn_h" = xyes 8593 then : 8594 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8595 8596 fi 8597 8598 8599 8600 8601 8602 # Set options 8603 8604 8605 8606 enable_dlopen=no 8607 8608 8609 enable_win32_dll=no 8610 8611 8612 # Check whether --enable-shared was given. 8613 if test ${enable_shared+y} 8614 then : 8615 enableval=$enable_shared; p=${PACKAGE-default} 8616 case $enableval in 8617 yes) enable_shared=yes ;; 8618 no) enable_shared=no ;; 8619 *) 8620 enable_shared=no 8621 # Look at the argument we got. We use all the common list separators. 8622 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8623 for pkg in $enableval; do 8624 IFS=$lt_save_ifs 8625 if test "X$pkg" = "X$p"; then 8626 enable_shared=yes 8627 fi 8628 done 8629 IFS=$lt_save_ifs 8630 ;; 8631 esac 8632 else case e in #( 8633 e) enable_shared=yes ;; 8634 esac 8635 fi 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 # Check whether --enable-static was given. 8646 if test ${enable_static+y} 8647 then : 8648 enableval=$enable_static; p=${PACKAGE-default} 8649 case $enableval in 8650 yes) enable_static=yes ;; 8651 no) enable_static=no ;; 8652 *) 8653 enable_static=no 8654 # Look at the argument we got. We use all the common list separators. 8655 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8656 for pkg in $enableval; do 8657 IFS=$lt_save_ifs 8658 if test "X$pkg" = "X$p"; then 8659 enable_static=yes 8660 fi 8661 done 8662 IFS=$lt_save_ifs 8663 ;; 8664 esac 8665 else case e in #( 8666 e) enable_static=yes ;; 8667 esac 8668 fi 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 # Check whether --with-pic was given. 8680 if test ${with_pic+y} 8681 then : 8682 withval=$with_pic; lt_p=${PACKAGE-default} 8683 case $withval in 8684 yes|no) pic_mode=$withval ;; 8685 *) 8686 pic_mode=default 8687 # Look at the argument we got. We use all the common list separators. 8688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8689 for lt_pkg in $withval; do 8690 IFS=$lt_save_ifs 8691 if test "X$lt_pkg" = "X$lt_p"; then 8692 pic_mode=yes 8693 fi 8694 done 8695 IFS=$lt_save_ifs 8696 ;; 8697 esac 8698 else case e in #( 8699 e) pic_mode=default ;; 8700 esac 8701 fi 8702 8703 8704 8705 8706 8707 8708 8709 8710 # Check whether --enable-fast-install was given. 8711 if test ${enable_fast_install+y} 8712 then : 8713 enableval=$enable_fast_install; p=${PACKAGE-default} 8714 case $enableval in 8715 yes) enable_fast_install=yes ;; 8716 no) enable_fast_install=no ;; 8717 *) 8718 enable_fast_install=no 8719 # Look at the argument we got. We use all the common list separators. 8720 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8721 for pkg in $enableval; do 8722 IFS=$lt_save_ifs 8723 if test "X$pkg" = "X$p"; then 8724 enable_fast_install=yes 8725 fi 8726 done 8727 IFS=$lt_save_ifs 8728 ;; 8729 esac 8730 else case e in #( 8731 e) enable_fast_install=yes ;; 8732 esac 8733 fi 8734 8735 8736 8737 8738 8739 8740 8741 8742 shared_archive_member_spec= 8743 case $host,$enable_shared in 8744 power*-*-aix[5-9]*,yes) 8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8746 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8747 8748 # Check whether --with-aix-soname was given. 8749 if test ${with_aix_soname+y} 8750 then : 8751 withval=$with_aix_soname; case $withval in 8752 aix|svr4|both) 8753 ;; 8754 *) 8755 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8756 ;; 8757 esac 8758 lt_cv_with_aix_soname=$with_aix_soname 8759 else case e in #( 8760 e) if test ${lt_cv_with_aix_soname+y} 8761 then : 8762 printf %s "(cached) " >&6 8763 else case e in #( 8764 e) lt_cv_with_aix_soname=aix ;; 8765 esac 8766 fi 8767 8768 with_aix_soname=$lt_cv_with_aix_soname ;; 8769 esac 8770 fi 8771 8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8773 printf "%s\n" "$with_aix_soname" >&6; } 8774 if test aix != "$with_aix_soname"; then 8775 # For the AIX way of multilib, we name the shared archive member 8776 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8777 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8778 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8779 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8780 if test 64 = "${OBJECT_MODE-32}"; then 8781 shared_archive_member_spec=shr_64 8782 else 8783 shared_archive_member_spec=shr 8784 fi 8785 fi 8786 ;; 8787 *) 8788 with_aix_soname=aix 8789 ;; 8790 esac 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 # This can be used to rebuild libtool when needed 8802 LIBTOOL_DEPS=$ltmain 8803 8804 # Always use our own libtool. 8805 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 test -z "$LN_S" && LN_S="ln -s" 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 if test -n "${ZSH_VERSION+set}"; then 8852 setopt NO_GLOB_SUBST 8853 fi 8854 8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8856 printf %s "checking for objdir... " >&6; } 8857 if test ${lt_cv_objdir+y} 8858 then : 8859 printf %s "(cached) " >&6 8860 else case e in #( 8861 e) rm -f .libs 2>/dev/null 8862 mkdir .libs 2>/dev/null 8863 if test -d .libs; then 8864 lt_cv_objdir=.libs 8865 else 8866 # MS-DOS does not allow filenames that begin with a dot. 8867 lt_cv_objdir=_libs 8868 fi 8869 rmdir .libs 2>/dev/null ;; 8870 esac 8871 fi 8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8873 printf "%s\n" "$lt_cv_objdir" >&6; } 8874 objdir=$lt_cv_objdir 8875 8876 8877 8878 8879 8880 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8881 8882 8883 8884 8885 case $host_os in 8886 aix3*) 8887 # AIX sometimes has problems with the GCC collect2 program. For some 8888 # reason, if we set the COLLECT_NAMES environment variable, the problems 8889 # vanish in a puff of smoke. 8890 if test set != "${COLLECT_NAMES+set}"; then 8891 COLLECT_NAMES= 8892 export COLLECT_NAMES 8893 fi 8894 ;; 8895 esac 8896 8897 # Global variables: 8898 ofile=libtool 8899 can_build_shared=yes 8900 8901 # All known linkers require a '.a' archive for static linking (except MSVC and 8902 # ICC, which need '.lib'). 8903 libext=a 8904 8905 with_gnu_ld=$lt_cv_prog_gnu_ld 8906 8907 old_CC=$CC 8908 old_CFLAGS=$CFLAGS 8909 8910 # Set sane defaults for various variables 8911 test -z "$CC" && CC=cc 8912 test -z "$LTCC" && LTCC=$CC 8913 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8914 test -z "$LD" && LD=ld 8915 test -z "$ac_objext" && ac_objext=o 8916 8917 func_cc_basename $compiler 8918 cc_basename=$func_cc_basename_result 8919 8920 8921 # Only perform the check for file, if the check method requires it 8922 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8923 case $deplibs_check_method in 8924 file_magic*) 8925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8927 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8928 if test ${lt_cv_path_MAGIC_CMD+y} 8929 then : 8930 printf %s "(cached) " >&6 8931 else case e in #( 8932 e) case $MAGIC_CMD in 8933 [\\/*] | ?:[\\/]*) 8934 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8935 ;; 8936 *) 8937 lt_save_MAGIC_CMD=$MAGIC_CMD 8938 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8940 for ac_dir in $ac_dummy; do 8941 IFS=$lt_save_ifs 8942 test -z "$ac_dir" && ac_dir=. 8943 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8944 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8945 if test -n "$file_magic_test_file"; then 8946 case $deplibs_check_method in 8947 "file_magic "*) 8948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8949 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8951 $EGREP "$file_magic_regex" > /dev/null; then 8952 : 8953 else 8954 cat <<_LT_EOF 1>&2 8955 8956 *** Warning: the command libtool uses to detect shared libraries, 8957 *** $file_magic_cmd, produces output that libtool cannot recognize. 8958 *** The result is that libtool may fail to recognize shared libraries 8959 *** as such. This will affect the creation of libtool libraries that 8960 *** depend on shared libraries, but programs linked with such libtool 8961 *** libraries will work regardless of this problem. Nevertheless, you 8962 *** may want to report the problem to your system manager and/or to 8963 *** bug-libtool@gnu.org 8964 8965 _LT_EOF 8966 fi ;; 8967 esac 8968 fi 8969 break 8970 fi 8971 done 8972 IFS=$lt_save_ifs 8973 MAGIC_CMD=$lt_save_MAGIC_CMD 8974 ;; 8975 esac ;; 8976 esac 8977 fi 8978 8979 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8980 if test -n "$MAGIC_CMD"; then 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8982 printf "%s\n" "$MAGIC_CMD" >&6; } 8983 else 8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8985 printf "%s\n" "no" >&6; } 8986 fi 8987 8988 8989 8990 8991 8992 if test -z "$lt_cv_path_MAGIC_CMD"; then 8993 if test -n "$ac_tool_prefix"; then 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8995 printf %s "checking for file... " >&6; } 8996 if test ${lt_cv_path_MAGIC_CMD+y} 8997 then : 8998 printf %s "(cached) " >&6 8999 else case e in #( 9000 e) case $MAGIC_CMD in 9001 [\\/*] | ?:[\\/]*) 9002 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9003 ;; 9004 *) 9005 lt_save_MAGIC_CMD=$MAGIC_CMD 9006 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9008 for ac_dir in $ac_dummy; do 9009 IFS=$lt_save_ifs 9010 test -z "$ac_dir" && ac_dir=. 9011 if test -f "$ac_dir/file"; then 9012 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9013 if test -n "$file_magic_test_file"; then 9014 case $deplibs_check_method in 9015 "file_magic "*) 9016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9017 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9019 $EGREP "$file_magic_regex" > /dev/null; then 9020 : 9021 else 9022 cat <<_LT_EOF 1>&2 9023 9024 *** Warning: the command libtool uses to detect shared libraries, 9025 *** $file_magic_cmd, produces output that libtool cannot recognize. 9026 *** The result is that libtool may fail to recognize shared libraries 9027 *** as such. This will affect the creation of libtool libraries that 9028 *** depend on shared libraries, but programs linked with such libtool 9029 *** libraries will work regardless of this problem. Nevertheless, you 9030 *** may want to report the problem to your system manager and/or to 9031 *** bug-libtool@gnu.org 9032 9033 _LT_EOF 9034 fi ;; 9035 esac 9036 fi 9037 break 9038 fi 9039 done 9040 IFS=$lt_save_ifs 9041 MAGIC_CMD=$lt_save_MAGIC_CMD 9042 ;; 9043 esac ;; 9044 esac 9045 fi 9046 9047 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9048 if test -n "$MAGIC_CMD"; then 9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9050 printf "%s\n" "$MAGIC_CMD" >&6; } 9051 else 9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9053 printf "%s\n" "no" >&6; } 9054 fi 9055 9056 9057 else 9058 MAGIC_CMD=: 9059 fi 9060 fi 9061 9062 fi 9063 ;; 9064 esac 9065 9066 # Use C for the default configuration in the libtool script 9067 9068 lt_save_CC=$CC 9069 ac_ext=c 9070 ac_cpp='$CPP $CPPFLAGS' 9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9074 9075 9076 # Source file extension for C test sources. 9077 ac_ext=c 9078 9079 # Object file extension for compiled C test sources. 9080 objext=o 9081 objext=$objext 9082 9083 # Code to be used in simple compile tests 9084 lt_simple_compile_test_code="int some_variable = 0;" 9085 9086 # Code to be used in simple link tests 9087 lt_simple_link_test_code='int main(){return(0);}' 9088 9089 9090 9091 9092 9093 9094 9095 # If no C compiler was specified, use CC. 9096 LTCC=${LTCC-"$CC"} 9097 9098 # If no C compiler flags were specified, use CFLAGS. 9099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9100 9101 # Allow CC to be a program name with arguments. 9102 compiler=$CC 9103 9104 # Save the default compiler, since it gets overwritten when the other 9105 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9106 compiler_DEFAULT=$CC 9107 9108 # save warnings/boilerplate of simple test code 9109 ac_outfile=conftest.$ac_objext 9110 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9111 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9112 _lt_compiler_boilerplate=`cat conftest.err` 9113 $RM conftest* 9114 9115 ac_outfile=conftest.$ac_objext 9116 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9117 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9118 _lt_linker_boilerplate=`cat conftest.err` 9119 $RM -r conftest* 9120 9121 9122 ## CAVEAT EMPTOR: 9123 ## There is no encapsulation within the following macros, do not change 9124 ## the running order or otherwise move them around unless you know exactly 9125 ## what you are doing... 9126 if test -n "$compiler"; then 9127 9128 lt_prog_compiler_no_builtin_flag= 9129 9130 if test yes = "$GCC"; then 9131 case $cc_basename in 9132 nvcc*) 9133 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9134 *) 9135 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9136 esac 9137 9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9139 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9140 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9141 then : 9142 printf %s "(cached) " >&6 9143 else case e in #( 9144 e) lt_cv_prog_compiler_rtti_exceptions=no 9145 ac_outfile=conftest.$ac_objext 9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9147 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9148 # Insert the option either (1) after the last *FLAGS variable, or 9149 # (2) before a word containing "conftest.", or (3) at the end. 9150 # Note that $ac_compile itself does not contain backslashes and begins 9151 # with a dollar sign (not a hyphen), so the echo should work correctly. 9152 # The option is referenced via a variable to avoid confusing sed. 9153 lt_compile=`echo "$ac_compile" | $SED \ 9154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9156 -e 's:$: $lt_compiler_flag:'` 9157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9158 (eval "$lt_compile" 2>conftest.err) 9159 ac_status=$? 9160 cat conftest.err >&5 9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9162 if (exit $ac_status) && test -s "$ac_outfile"; then 9163 # The compiler can only warn and ignore the option if not recognized 9164 # So say no if there are warnings other than the usual output. 9165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9168 lt_cv_prog_compiler_rtti_exceptions=yes 9169 fi 9170 fi 9171 $RM conftest* 9172 ;; 9173 esac 9174 fi 9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9176 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9177 9178 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9179 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9180 else 9181 : 9182 fi 9183 9184 fi 9185 9186 9187 9188 9189 9190 9191 lt_prog_compiler_wl= 9192 lt_prog_compiler_pic= 9193 lt_prog_compiler_static= 9194 9195 9196 if test yes = "$GCC"; then 9197 lt_prog_compiler_wl='-Wl,' 9198 lt_prog_compiler_static='-static' 9199 9200 case $host_os in 9201 aix*) 9202 # All AIX code is PIC. 9203 if test ia64 = "$host_cpu"; then 9204 # AIX 5 now supports IA64 processor 9205 lt_prog_compiler_static='-Bstatic' 9206 fi 9207 lt_prog_compiler_pic='-fPIC' 9208 ;; 9209 9210 amigaos*) 9211 case $host_cpu in 9212 powerpc) 9213 # see comment about AmigaOS4 .so support 9214 lt_prog_compiler_pic='-fPIC' 9215 ;; 9216 m68k) 9217 # FIXME: we need at least 68020 code to build shared libraries, but 9218 # adding the '-m68020' flag to GCC prevents building anything better, 9219 # like '-m68040'. 9220 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9221 ;; 9222 esac 9223 ;; 9224 9225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9226 # PIC is the default for these OSes. 9227 ;; 9228 9229 mingw* | cygwin* | pw32* | os2* | cegcc*) 9230 # This hack is so that the source file can tell whether it is being 9231 # built for inclusion in a dll (and should export symbols for example). 9232 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9233 # (--disable-auto-import) libraries 9234 lt_prog_compiler_pic='-DDLL_EXPORT' 9235 case $host_os in 9236 os2*) 9237 lt_prog_compiler_static='$wl-static' 9238 ;; 9239 esac 9240 ;; 9241 9242 darwin* | rhapsody*) 9243 # PIC is the default on this platform 9244 # Common symbols not allowed in MH_DYLIB files 9245 lt_prog_compiler_pic='-fno-common' 9246 ;; 9247 9248 haiku*) 9249 # PIC is the default for Haiku. 9250 # The "-static" flag exists, but is broken. 9251 lt_prog_compiler_static= 9252 ;; 9253 9254 hpux*) 9255 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9256 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9257 # sets the default TLS model and affects inlining. 9258 case $host_cpu in 9259 hppa*64*) 9260 # +Z the default 9261 ;; 9262 *) 9263 lt_prog_compiler_pic='-fPIC' 9264 ;; 9265 esac 9266 ;; 9267 9268 interix[3-9]*) 9269 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9270 # Instead, we relocate shared libraries at runtime. 9271 ;; 9272 9273 msdosdjgpp*) 9274 # Just because we use GCC doesn't mean we suddenly get shared libraries 9275 # on systems that don't support them. 9276 lt_prog_compiler_can_build_shared=no 9277 enable_shared=no 9278 ;; 9279 9280 *nto* | *qnx*) 9281 # QNX uses GNU C++, but need to define -shared option too, otherwise 9282 # it will coredump. 9283 lt_prog_compiler_pic='-fPIC -shared' 9284 ;; 9285 9286 sysv4*MP*) 9287 if test -d /usr/nec; then 9288 lt_prog_compiler_pic=-Kconform_pic 9289 fi 9290 ;; 9291 9292 *) 9293 lt_prog_compiler_pic='-fPIC' 9294 ;; 9295 esac 9296 9297 case $cc_basename in 9298 nvcc*) # Cuda Compiler Driver 2.2 9299 lt_prog_compiler_wl='-Xlinker ' 9300 if test -n "$lt_prog_compiler_pic"; then 9301 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9302 fi 9303 ;; 9304 esac 9305 else 9306 # PORTME Check for flag to pass linker flags through the system compiler. 9307 case $host_os in 9308 aix*) 9309 lt_prog_compiler_wl='-Wl,' 9310 if test ia64 = "$host_cpu"; then 9311 # AIX 5 now supports IA64 processor 9312 lt_prog_compiler_static='-Bstatic' 9313 else 9314 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9315 fi 9316 ;; 9317 9318 darwin* | rhapsody*) 9319 # PIC is the default on this platform 9320 # Common symbols not allowed in MH_DYLIB files 9321 lt_prog_compiler_pic='-fno-common' 9322 case $cc_basename in 9323 nagfor*) 9324 # NAG Fortran compiler 9325 lt_prog_compiler_wl='-Wl,-Wl,,' 9326 lt_prog_compiler_pic='-PIC' 9327 lt_prog_compiler_static='-Bstatic' 9328 ;; 9329 esac 9330 ;; 9331 9332 mingw* | cygwin* | pw32* | os2* | cegcc*) 9333 # This hack is so that the source file can tell whether it is being 9334 # built for inclusion in a dll (and should export symbols for example). 9335 lt_prog_compiler_pic='-DDLL_EXPORT' 9336 case $host_os in 9337 os2*) 9338 lt_prog_compiler_static='$wl-static' 9339 ;; 9340 esac 9341 ;; 9342 9343 hpux9* | hpux10* | hpux11*) 9344 lt_prog_compiler_wl='-Wl,' 9345 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9346 # not for PA HP-UX. 9347 case $host_cpu in 9348 hppa*64*|ia64*) 9349 # +Z the default 9350 ;; 9351 *) 9352 lt_prog_compiler_pic='+Z' 9353 ;; 9354 esac 9355 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9356 lt_prog_compiler_static='$wl-a ${wl}archive' 9357 ;; 9358 9359 irix5* | irix6* | nonstopux*) 9360 lt_prog_compiler_wl='-Wl,' 9361 # PIC (with -KPIC) is the default. 9362 lt_prog_compiler_static='-non_shared' 9363 ;; 9364 9365 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9366 case $cc_basename in 9367 # old Intel for x86_64, which still supported -KPIC. 9368 ecc*) 9369 lt_prog_compiler_wl='-Wl,' 9370 lt_prog_compiler_pic='-KPIC' 9371 lt_prog_compiler_static='-static' 9372 ;; 9373 # icc used to be incompatible with GCC. 9374 # ICC 10 doesn't accept -KPIC any more. 9375 icc* | ifort*) 9376 lt_prog_compiler_wl='-Wl,' 9377 lt_prog_compiler_pic='-fPIC' 9378 lt_prog_compiler_static='-static' 9379 ;; 9380 # Lahey Fortran 8.1. 9381 lf95*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='--shared' 9384 lt_prog_compiler_static='--static' 9385 ;; 9386 nagfor*) 9387 # NAG Fortran compiler 9388 lt_prog_compiler_wl='-Wl,-Wl,,' 9389 lt_prog_compiler_pic='-PIC' 9390 lt_prog_compiler_static='-Bstatic' 9391 ;; 9392 tcc*) 9393 # Fabrice Bellard et al's Tiny C Compiler 9394 lt_prog_compiler_wl='-Wl,' 9395 lt_prog_compiler_pic='-fPIC' 9396 lt_prog_compiler_static='-static' 9397 ;; 9398 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9399 # Portland Group compilers (*not* the Pentium gcc compiler, 9400 # which looks to be a dead project) 9401 lt_prog_compiler_wl='-Wl,' 9402 lt_prog_compiler_pic='-fpic' 9403 lt_prog_compiler_static='-Bstatic' 9404 ;; 9405 ccc*) 9406 lt_prog_compiler_wl='-Wl,' 9407 # All Alpha code is PIC. 9408 lt_prog_compiler_static='-non_shared' 9409 ;; 9410 xl* | bgxl* | bgf* | mpixl*) 9411 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9412 lt_prog_compiler_wl='-Wl,' 9413 lt_prog_compiler_pic='-qpic' 9414 lt_prog_compiler_static='-qstaticlink' 9415 ;; 9416 *) 9417 case `$CC -V 2>&1 | $SED 5q` in 9418 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9419 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9420 lt_prog_compiler_pic='-KPIC' 9421 lt_prog_compiler_static='-Bstatic' 9422 lt_prog_compiler_wl='' 9423 ;; 9424 *Sun\ F* | *Sun*Fortran*) 9425 lt_prog_compiler_pic='-KPIC' 9426 lt_prog_compiler_static='-Bstatic' 9427 lt_prog_compiler_wl='-Qoption ld ' 9428 ;; 9429 *Sun\ C*) 9430 # Sun C 5.9 9431 lt_prog_compiler_pic='-KPIC' 9432 lt_prog_compiler_static='-Bstatic' 9433 lt_prog_compiler_wl='-Wl,' 9434 ;; 9435 *Intel*\ [CF]*Compiler*) 9436 lt_prog_compiler_wl='-Wl,' 9437 lt_prog_compiler_pic='-fPIC' 9438 lt_prog_compiler_static='-static' 9439 ;; 9440 *Portland\ Group*) 9441 lt_prog_compiler_wl='-Wl,' 9442 lt_prog_compiler_pic='-fpic' 9443 lt_prog_compiler_static='-Bstatic' 9444 ;; 9445 esac 9446 ;; 9447 esac 9448 ;; 9449 9450 newsos6) 9451 lt_prog_compiler_pic='-KPIC' 9452 lt_prog_compiler_static='-Bstatic' 9453 ;; 9454 9455 *nto* | *qnx*) 9456 # QNX uses GNU C++, but need to define -shared option too, otherwise 9457 # it will coredump. 9458 lt_prog_compiler_pic='-fPIC -shared' 9459 ;; 9460 9461 osf3* | osf4* | osf5*) 9462 lt_prog_compiler_wl='-Wl,' 9463 # All OSF/1 code is PIC. 9464 lt_prog_compiler_static='-non_shared' 9465 ;; 9466 9467 rdos*) 9468 lt_prog_compiler_static='-non_shared' 9469 ;; 9470 9471 solaris*) 9472 lt_prog_compiler_pic='-KPIC' 9473 lt_prog_compiler_static='-Bstatic' 9474 case $cc_basename in 9475 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9476 lt_prog_compiler_wl='-Qoption ld ';; 9477 *) 9478 lt_prog_compiler_wl='-Wl,';; 9479 esac 9480 ;; 9481 9482 sunos4*) 9483 lt_prog_compiler_wl='-Qoption ld ' 9484 lt_prog_compiler_pic='-PIC' 9485 lt_prog_compiler_static='-Bstatic' 9486 ;; 9487 9488 sysv4 | sysv4.2uw2* | sysv4.3*) 9489 lt_prog_compiler_wl='-Wl,' 9490 lt_prog_compiler_pic='-KPIC' 9491 lt_prog_compiler_static='-Bstatic' 9492 ;; 9493 9494 sysv4*MP*) 9495 if test -d /usr/nec; then 9496 lt_prog_compiler_pic='-Kconform_pic' 9497 lt_prog_compiler_static='-Bstatic' 9498 fi 9499 ;; 9500 9501 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9502 lt_prog_compiler_wl='-Wl,' 9503 lt_prog_compiler_pic='-KPIC' 9504 lt_prog_compiler_static='-Bstatic' 9505 ;; 9506 9507 unicos*) 9508 lt_prog_compiler_wl='-Wl,' 9509 lt_prog_compiler_can_build_shared=no 9510 ;; 9511 9512 uts4*) 9513 lt_prog_compiler_pic='-pic' 9514 lt_prog_compiler_static='-Bstatic' 9515 ;; 9516 9517 *) 9518 lt_prog_compiler_can_build_shared=no 9519 ;; 9520 esac 9521 fi 9522 9523 case $host_os in 9524 # For platforms that do not support PIC, -DPIC is meaningless: 9525 *djgpp*) 9526 lt_prog_compiler_pic= 9527 ;; 9528 *) 9529 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9530 ;; 9531 esac 9532 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9534 printf %s "checking for $compiler option to produce PIC... " >&6; } 9535 if test ${lt_cv_prog_compiler_pic+y} 9536 then : 9537 printf %s "(cached) " >&6 9538 else case e in #( 9539 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9540 esac 9541 fi 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9543 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9544 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9545 9546 # 9547 # Check to make sure the PIC flag actually works. 9548 # 9549 if test -n "$lt_prog_compiler_pic"; then 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9551 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9552 if test ${lt_cv_prog_compiler_pic_works+y} 9553 then : 9554 printf %s "(cached) " >&6 9555 else case e in #( 9556 e) lt_cv_prog_compiler_pic_works=no 9557 ac_outfile=conftest.$ac_objext 9558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9559 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9560 # Insert the option either (1) after the last *FLAGS variable, or 9561 # (2) before a word containing "conftest.", or (3) at the end. 9562 # Note that $ac_compile itself does not contain backslashes and begins 9563 # with a dollar sign (not a hyphen), so the echo should work correctly. 9564 # The option is referenced via a variable to avoid confusing sed. 9565 lt_compile=`echo "$ac_compile" | $SED \ 9566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9568 -e 's:$: $lt_compiler_flag:'` 9569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9570 (eval "$lt_compile" 2>conftest.err) 9571 ac_status=$? 9572 cat conftest.err >&5 9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9574 if (exit $ac_status) && test -s "$ac_outfile"; then 9575 # The compiler can only warn and ignore the option if not recognized 9576 # So say no if there are warnings other than the usual output. 9577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9580 lt_cv_prog_compiler_pic_works=yes 9581 fi 9582 fi 9583 $RM conftest* 9584 ;; 9585 esac 9586 fi 9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9588 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9589 9590 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9591 case $lt_prog_compiler_pic in 9592 "" | " "*) ;; 9593 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9594 esac 9595 else 9596 lt_prog_compiler_pic= 9597 lt_prog_compiler_can_build_shared=no 9598 fi 9599 9600 fi 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 # 9613 # Check to make sure the static flag actually works. 9614 # 9615 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9617 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9618 if test ${lt_cv_prog_compiler_static_works+y} 9619 then : 9620 printf %s "(cached) " >&6 9621 else case e in #( 9622 e) lt_cv_prog_compiler_static_works=no 9623 save_LDFLAGS=$LDFLAGS 9624 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9625 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9627 # The linker can only warn and ignore the option if not recognized 9628 # So say no if there are warnings 9629 if test -s conftest.err; then 9630 # Append any errors to the config.log. 9631 cat conftest.err 1>&5 9632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9634 if diff conftest.exp conftest.er2 >/dev/null; then 9635 lt_cv_prog_compiler_static_works=yes 9636 fi 9637 else 9638 lt_cv_prog_compiler_static_works=yes 9639 fi 9640 fi 9641 $RM -r conftest* 9642 LDFLAGS=$save_LDFLAGS 9643 ;; 9644 esac 9645 fi 9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9647 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9648 9649 if test yes = "$lt_cv_prog_compiler_static_works"; then 9650 : 9651 else 9652 lt_prog_compiler_static= 9653 fi 9654 9655 9656 9657 9658 9659 9660 9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9662 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9663 if test ${lt_cv_prog_compiler_c_o+y} 9664 then : 9665 printf %s "(cached) " >&6 9666 else case e in #( 9667 e) lt_cv_prog_compiler_c_o=no 9668 $RM -r conftest 2>/dev/null 9669 mkdir conftest 9670 cd conftest 9671 mkdir out 9672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9673 9674 lt_compiler_flag="-o out/conftest2.$ac_objext" 9675 # Insert the option either (1) after the last *FLAGS variable, or 9676 # (2) before a word containing "conftest.", or (3) at the end. 9677 # Note that $ac_compile itself does not contain backslashes and begins 9678 # with a dollar sign (not a hyphen), so the echo should work correctly. 9679 lt_compile=`echo "$ac_compile" | $SED \ 9680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9682 -e 's:$: $lt_compiler_flag:'` 9683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9684 (eval "$lt_compile" 2>out/conftest.err) 9685 ac_status=$? 9686 cat out/conftest.err >&5 9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9688 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9689 then 9690 # The compiler can only warn and ignore the option if not recognized 9691 # So say no if there are warnings 9692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9695 lt_cv_prog_compiler_c_o=yes 9696 fi 9697 fi 9698 chmod u+w . 2>&5 9699 $RM conftest* 9700 # SGI C++ compiler will create directory out/ii_files/ for 9701 # template instantiation 9702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9703 $RM out/* && rmdir out 9704 cd .. 9705 $RM -r conftest 9706 $RM conftest* 9707 ;; 9708 esac 9709 fi 9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9711 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9712 9713 9714 9715 9716 9717 9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9719 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9720 if test ${lt_cv_prog_compiler_c_o+y} 9721 then : 9722 printf %s "(cached) " >&6 9723 else case e in #( 9724 e) lt_cv_prog_compiler_c_o=no 9725 $RM -r conftest 2>/dev/null 9726 mkdir conftest 9727 cd conftest 9728 mkdir out 9729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9730 9731 lt_compiler_flag="-o out/conftest2.$ac_objext" 9732 # Insert the option either (1) after the last *FLAGS variable, or 9733 # (2) before a word containing "conftest.", or (3) at the end. 9734 # Note that $ac_compile itself does not contain backslashes and begins 9735 # with a dollar sign (not a hyphen), so the echo should work correctly. 9736 lt_compile=`echo "$ac_compile" | $SED \ 9737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9739 -e 's:$: $lt_compiler_flag:'` 9740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9741 (eval "$lt_compile" 2>out/conftest.err) 9742 ac_status=$? 9743 cat out/conftest.err >&5 9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9745 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9746 then 9747 # The compiler can only warn and ignore the option if not recognized 9748 # So say no if there are warnings 9749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9752 lt_cv_prog_compiler_c_o=yes 9753 fi 9754 fi 9755 chmod u+w . 2>&5 9756 $RM conftest* 9757 # SGI C++ compiler will create directory out/ii_files/ for 9758 # template instantiation 9759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9760 $RM out/* && rmdir out 9761 cd .. 9762 $RM -r conftest 9763 $RM conftest* 9764 ;; 9765 esac 9766 fi 9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9768 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9769 9770 9771 9772 9773 hard_links=nottested 9774 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9775 # do not overwrite the value of need_locks provided by the user 9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9777 printf %s "checking if we can lock with hard links... " >&6; } 9778 hard_links=yes 9779 $RM conftest* 9780 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9781 touch conftest.a 9782 ln conftest.a conftest.b 2>&5 || hard_links=no 9783 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9785 printf "%s\n" "$hard_links" >&6; } 9786 if test no = "$hard_links"; then 9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9788 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9789 need_locks=warn 9790 fi 9791 else 9792 need_locks=no 9793 fi 9794 9795 9796 9797 9798 9799 9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9801 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9802 9803 runpath_var= 9804 allow_undefined_flag= 9805 always_export_symbols=no 9806 archive_cmds= 9807 archive_expsym_cmds= 9808 compiler_needs_object=no 9809 enable_shared_with_static_runtimes=no 9810 export_dynamic_flag_spec= 9811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9812 hardcode_automatic=no 9813 hardcode_direct=no 9814 hardcode_direct_absolute=no 9815 hardcode_libdir_flag_spec= 9816 hardcode_libdir_separator= 9817 hardcode_minus_L=no 9818 hardcode_shlibpath_var=unsupported 9819 inherit_rpath=no 9820 link_all_deplibs=unknown 9821 module_cmds= 9822 module_expsym_cmds= 9823 old_archive_from_new_cmds= 9824 old_archive_from_expsyms_cmds= 9825 thread_safe_flag_spec= 9826 whole_archive_flag_spec= 9827 # include_expsyms should be a list of space-separated symbols to be *always* 9828 # included in the symbol list 9829 include_expsyms= 9830 # exclude_expsyms can be an extended regexp of symbols to exclude 9831 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9832 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9833 # as well as any symbol that contains 'd'. 9834 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9836 # platforms (ab)use it in PIC code, but their linkers get confused if 9837 # the symbol is explicitly referenced. Since portable code cannot 9838 # rely on this symbol name, it's probably fine to never include it in 9839 # preloaded symbol tables. 9840 # Exclude shared library initialization/finalization symbols. 9841 extract_expsyms_cmds= 9842 9843 case $host_os in 9844 cygwin* | mingw* | pw32* | cegcc*) 9845 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9846 # When not using gcc, we currently assume that we are using 9847 # Microsoft Visual C++ or Intel C++ Compiler. 9848 if test yes != "$GCC"; then 9849 with_gnu_ld=no 9850 fi 9851 ;; 9852 interix*) 9853 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9854 with_gnu_ld=yes 9855 ;; 9856 openbsd* | bitrig*) 9857 with_gnu_ld=no 9858 ;; 9859 esac 9860 9861 ld_shlibs=yes 9862 9863 # On some targets, GNU ld is compatible enough with the native linker 9864 # that we're better off using the native interface for both. 9865 lt_use_gnu_ld_interface=no 9866 if test yes = "$with_gnu_ld"; then 9867 case $host_os in 9868 aix*) 9869 # The AIX port of GNU ld has always aspired to compatibility 9870 # with the native linker. However, as the warning in the GNU ld 9871 # block says, versions before 2.19.5* couldn't really create working 9872 # shared libraries, regardless of the interface used. 9873 case `$LD -v 2>&1` in 9874 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9875 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9876 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9877 *) 9878 lt_use_gnu_ld_interface=yes 9879 ;; 9880 esac 9881 ;; 9882 *) 9883 lt_use_gnu_ld_interface=yes 9884 ;; 9885 esac 9886 fi 9887 9888 if test yes = "$lt_use_gnu_ld_interface"; then 9889 # If archive_cmds runs LD, not CC, wlarc should be empty 9890 wlarc='$wl' 9891 9892 # Set some defaults for GNU ld with shared library support. These 9893 # are reset later if shared libraries are not supported. Putting them 9894 # here allows them to be overridden if necessary. 9895 runpath_var=LD_RUN_PATH 9896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9897 export_dynamic_flag_spec='$wl--export-dynamic' 9898 # ancient GNU ld didn't support --whole-archive et. al. 9899 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9900 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9901 else 9902 whole_archive_flag_spec= 9903 fi 9904 supports_anon_versioning=no 9905 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9906 *GNU\ gold*) supports_anon_versioning=yes ;; 9907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9910 *\ 2.11.*) ;; # other 2.11 versions 9911 *) supports_anon_versioning=yes ;; 9912 esac 9913 9914 # See if GNU ld supports shared libraries. 9915 case $host_os in 9916 aix[3-9]*) 9917 # On AIX/PPC, the GNU linker is very broken 9918 if test ia64 != "$host_cpu"; then 9919 ld_shlibs=no 9920 cat <<_LT_EOF 1>&2 9921 9922 *** Warning: the GNU linker, at least up to release 2.19, is reported 9923 *** to be unable to reliably create shared libraries on AIX. 9924 *** Therefore, libtool is disabling shared libraries support. If you 9925 *** really care for shared libraries, you may want to install binutils 9926 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9927 *** You will then need to restart the configuration process. 9928 9929 _LT_EOF 9930 fi 9931 ;; 9932 9933 amigaos*) 9934 case $host_cpu in 9935 powerpc) 9936 # see comment about AmigaOS4 .so support 9937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9938 archive_expsym_cmds='' 9939 ;; 9940 m68k) 9941 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)' 9942 hardcode_libdir_flag_spec='-L$libdir' 9943 hardcode_minus_L=yes 9944 ;; 9945 esac 9946 ;; 9947 9948 beos*) 9949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9950 allow_undefined_flag=unsupported 9951 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9952 # support --undefined. This deserves some investigation. FIXME 9953 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9954 else 9955 ld_shlibs=no 9956 fi 9957 ;; 9958 9959 cygwin* | mingw* | pw32* | cegcc*) 9960 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9961 # as there is no search path for DLLs. 9962 hardcode_libdir_flag_spec='-L$libdir' 9963 export_dynamic_flag_spec='$wl--export-all-symbols' 9964 allow_undefined_flag=unsupported 9965 always_export_symbols=no 9966 enable_shared_with_static_runtimes=yes 9967 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' 9968 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9969 9970 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9972 # If the export-symbols file already is a .def file, use it as 9973 # is; otherwise, prepend EXPORTS... 9974 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9975 cp $export_symbols $output_objdir/$soname.def; 9976 else 9977 echo EXPORTS > $output_objdir/$soname.def; 9978 cat $export_symbols >> $output_objdir/$soname.def; 9979 fi~ 9980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9981 else 9982 ld_shlibs=no 9983 fi 9984 ;; 9985 9986 haiku*) 9987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9988 link_all_deplibs=yes 9989 ;; 9990 9991 os2*) 9992 hardcode_libdir_flag_spec='-L$libdir' 9993 hardcode_minus_L=yes 9994 allow_undefined_flag=unsupported 9995 shrext_cmds=.dll 9996 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9997 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9998 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9999 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10000 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10001 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10002 emximp -o $lib $output_objdir/$libname.def' 10003 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10006 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10007 prefix_cmds="$SED"~ 10008 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10009 prefix_cmds="$prefix_cmds -e 1d"; 10010 fi~ 10011 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10012 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10013 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10014 emximp -o $lib $output_objdir/$libname.def' 10015 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10016 enable_shared_with_static_runtimes=yes 10017 file_list_spec='@' 10018 ;; 10019 10020 interix[3-9]*) 10021 hardcode_direct=no 10022 hardcode_shlibpath_var=no 10023 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10024 export_dynamic_flag_spec='$wl-E' 10025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10026 # Instead, shared libraries are loaded at an image base (0x10000000 by 10027 # default) and relocated if they conflict, which is a slow very memory 10028 # consuming and fragmenting process. To avoid this, we pick a random, 10029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10030 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10032 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' 10033 ;; 10034 10035 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10036 tmp_diet=no 10037 if test linux-dietlibc = "$host_os"; then 10038 case $cc_basename in 10039 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10040 esac 10041 fi 10042 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10043 && test no = "$tmp_diet" 10044 then 10045 tmp_addflag=' $pic_flag' 10046 tmp_sharedflag='-shared' 10047 case $cc_basename,$host_cpu in 10048 pgcc*) # Portland Group C compiler 10049 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' 10050 tmp_addflag=' $pic_flag' 10051 ;; 10052 pgf77* | pgf90* | pgf95* | pgfortran*) 10053 # Portland Group f77 and f90 compilers 10054 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' 10055 tmp_addflag=' $pic_flag -Mnomain' ;; 10056 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10057 tmp_addflag=' -i_dynamic' ;; 10058 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10059 tmp_addflag=' -i_dynamic -nofor_main' ;; 10060 ifc* | ifort*) # Intel Fortran compiler 10061 tmp_addflag=' -nofor_main' ;; 10062 lf95*) # Lahey Fortran 8.1 10063 whole_archive_flag_spec= 10064 tmp_sharedflag='--shared' ;; 10065 nagfor*) # NAGFOR 5.3 10066 tmp_sharedflag='-Wl,-shared' ;; 10067 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10068 tmp_sharedflag='-qmkshrobj' 10069 tmp_addflag= ;; 10070 nvcc*) # Cuda Compiler Driver 2.2 10071 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' 10072 compiler_needs_object=yes 10073 ;; 10074 esac 10075 case `$CC -V 2>&1 | $SED 5q` in 10076 *Sun\ C*) # Sun C 5.9 10077 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' 10078 compiler_needs_object=yes 10079 tmp_sharedflag='-G' ;; 10080 *Sun\ F*) # Sun Fortran 8.3 10081 tmp_sharedflag='-G' ;; 10082 esac 10083 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10084 10085 if test yes = "$supports_anon_versioning"; then 10086 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10087 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10088 echo "local: *; };" >> $output_objdir/$libname.ver~ 10089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10090 fi 10091 10092 case $cc_basename in 10093 tcc*) 10094 export_dynamic_flag_spec='-rdynamic' 10095 ;; 10096 xlf* | bgf* | bgxlf* | mpixlf*) 10097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10098 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10099 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10100 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10101 if test yes = "$supports_anon_versioning"; then 10102 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10103 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10104 echo "local: *; };" >> $output_objdir/$libname.ver~ 10105 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10106 fi 10107 ;; 10108 esac 10109 else 10110 ld_shlibs=no 10111 fi 10112 ;; 10113 10114 netbsd*) 10115 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10116 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10117 wlarc= 10118 else 10119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10120 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10121 fi 10122 ;; 10123 10124 solaris*) 10125 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10126 ld_shlibs=no 10127 cat <<_LT_EOF 1>&2 10128 10129 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10130 *** create shared libraries on Solaris systems. Therefore, libtool 10131 *** is disabling shared libraries support. We urge you to upgrade GNU 10132 *** binutils to release 2.9.1 or newer. Another option is to modify 10133 *** your PATH or compiler configuration so that the native linker is 10134 *** used, and then restart. 10135 10136 _LT_EOF 10137 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10139 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10140 else 10141 ld_shlibs=no 10142 fi 10143 ;; 10144 10145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10146 case `$LD -v 2>&1` in 10147 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10148 ld_shlibs=no 10149 cat <<_LT_EOF 1>&2 10150 10151 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10152 *** reliably create shared libraries on SCO systems. Therefore, libtool 10153 *** is disabling shared libraries support. We urge you to upgrade GNU 10154 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10155 *** your PATH or compiler configuration so that the native linker is 10156 *** used, and then restart. 10157 10158 _LT_EOF 10159 ;; 10160 *) 10161 # For security reasons, it is highly recommended that you always 10162 # use absolute paths for naming shared libraries, and exclude the 10163 # DT_RUNPATH tag from executables and libraries. But doing so 10164 # requires that you compile everything twice, which is a pain. 10165 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10166 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10169 else 10170 ld_shlibs=no 10171 fi 10172 ;; 10173 esac 10174 ;; 10175 10176 sunos4*) 10177 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10178 wlarc= 10179 hardcode_direct=yes 10180 hardcode_shlibpath_var=no 10181 ;; 10182 10183 *) 10184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10186 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10187 else 10188 ld_shlibs=no 10189 fi 10190 ;; 10191 esac 10192 10193 if test no = "$ld_shlibs"; then 10194 runpath_var= 10195 hardcode_libdir_flag_spec= 10196 export_dynamic_flag_spec= 10197 whole_archive_flag_spec= 10198 fi 10199 else 10200 # PORTME fill in a description of your system's linker (not GNU ld) 10201 case $host_os in 10202 aix3*) 10203 allow_undefined_flag=unsupported 10204 always_export_symbols=yes 10205 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' 10206 # Note: this linker hardcodes the directories in LIBPATH if there 10207 # are no directories specified by -L. 10208 hardcode_minus_L=yes 10209 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10210 # Neither direct hardcoding nor static linking is supported with a 10211 # broken collect2. 10212 hardcode_direct=unsupported 10213 fi 10214 ;; 10215 10216 aix[4-9]*) 10217 if test ia64 = "$host_cpu"; then 10218 # On IA64, the linker does run time linking by default, so we don't 10219 # have to do anything special. 10220 aix_use_runtimelinking=no 10221 exp_sym_flag='-Bexport' 10222 no_entry_flag= 10223 else 10224 # If we're using GNU nm, then we don't want the "-C" option. 10225 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10226 # Without the "-l" option, or with the "-B" option, AIX nm treats 10227 # weak defined symbols like other global defined symbols, whereas 10228 # GNU nm marks them as "W". 10229 # While the 'weak' keyword is ignored in the Export File, we need 10230 # it in the Import File for the 'aix-soname' feature, so we have 10231 # to replace the "-B" option with "-P" for AIX nm. 10232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10233 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' 10234 else 10235 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' 10236 fi 10237 aix_use_runtimelinking=no 10238 10239 # Test if we are trying to use run time linking or normal 10240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10241 # have runtime linking enabled, and use it for executables. 10242 # For shared libraries, we enable/disable runtime linking 10243 # depending on the kind of the shared library created - 10244 # when "with_aix_soname,aix_use_runtimelinking" is: 10245 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10246 # "aix,yes" lib.so shared, rtl:yes, for executables 10247 # lib.a static archive 10248 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10249 # lib.a(lib.so.V) shared, rtl:no, for executables 10250 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10251 # lib.a(lib.so.V) shared, rtl:no 10252 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10253 # lib.a static archive 10254 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10255 for ld_flag in $LDFLAGS; do 10256 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10257 aix_use_runtimelinking=yes 10258 break 10259 fi 10260 done 10261 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10262 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10263 # so we don't have lib.a shared libs to link our executables. 10264 # We have to force runtime linking in this case. 10265 aix_use_runtimelinking=yes 10266 LDFLAGS="$LDFLAGS -Wl,-brtl" 10267 fi 10268 ;; 10269 esac 10270 10271 exp_sym_flag='-bexport' 10272 no_entry_flag='-bnoentry' 10273 fi 10274 10275 # When large executables or shared objects are built, AIX ld can 10276 # have problems creating the table of contents. If linking a library 10277 # or program results in "error TOC overflow" add -mminimal-toc to 10278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10280 10281 archive_cmds='' 10282 hardcode_direct=yes 10283 hardcode_direct_absolute=yes 10284 hardcode_libdir_separator=':' 10285 link_all_deplibs=yes 10286 file_list_spec='$wl-f,' 10287 case $with_aix_soname,$aix_use_runtimelinking in 10288 aix,*) ;; # traditional, no import file 10289 svr4,* | *,yes) # use import file 10290 # The Import File defines what to hardcode. 10291 hardcode_direct=no 10292 hardcode_direct_absolute=no 10293 ;; 10294 esac 10295 10296 if test yes = "$GCC"; then 10297 case $host_os in aix4.[012]|aix4.[012].*) 10298 # We only want to do this on AIX 4.2 and lower, the check 10299 # below for broken collect2 doesn't work under 4.3+ 10300 collect2name=`$CC -print-prog-name=collect2` 10301 if test -f "$collect2name" && 10302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10303 then 10304 # We have reworked collect2 10305 : 10306 else 10307 # We have old collect2 10308 hardcode_direct=unsupported 10309 # It fails to find uninstalled libraries when the uninstalled 10310 # path is not listed in the libpath. Setting hardcode_minus_L 10311 # to unsupported forces relinking 10312 hardcode_minus_L=yes 10313 hardcode_libdir_flag_spec='-L$libdir' 10314 hardcode_libdir_separator= 10315 fi 10316 ;; 10317 esac 10318 shared_flag='-shared' 10319 if test yes = "$aix_use_runtimelinking"; then 10320 shared_flag="$shared_flag "'$wl-G' 10321 fi 10322 # Need to ensure runtime linking is disabled for the traditional 10323 # shared library, or the linker may eventually find shared libraries 10324 # /with/ Import File - we do not want to mix them. 10325 shared_flag_aix='-shared' 10326 shared_flag_svr4='-shared $wl-G' 10327 else 10328 # not using gcc 10329 if test ia64 = "$host_cpu"; then 10330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10331 # chokes on -Wl,-G. The following line is correct: 10332 shared_flag='-G' 10333 else 10334 if test yes = "$aix_use_runtimelinking"; then 10335 shared_flag='$wl-G' 10336 else 10337 shared_flag='$wl-bM:SRE' 10338 fi 10339 shared_flag_aix='$wl-bM:SRE' 10340 shared_flag_svr4='$wl-G' 10341 fi 10342 fi 10343 10344 export_dynamic_flag_spec='$wl-bexpall' 10345 # It seems that -bexpall does not export symbols beginning with 10346 # underscore (_), so it is better to generate a list of symbols to export. 10347 always_export_symbols=yes 10348 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10349 # Warning - without using the other runtime loading flags (-brtl), 10350 # -berok will link without error, but may produce a broken library. 10351 allow_undefined_flag='-berok' 10352 # Determine the default libpath from the value encoded in an 10353 # empty executable. 10354 if test set = "${lt_cv_aix_libpath+set}"; then 10355 aix_libpath=$lt_cv_aix_libpath 10356 else 10357 if test ${lt_cv_aix_libpath_+y} 10358 then : 10359 printf %s "(cached) " >&6 10360 else case e in #( 10361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10362 /* end confdefs.h. */ 10363 10364 int 10365 main (void) 10366 { 10367 10368 ; 10369 return 0; 10370 } 10371 _ACEOF 10372 if ac_fn_c_try_link "$LINENO" 10373 then : 10374 10375 lt_aix_libpath_sed=' 10376 /Import File Strings/,/^$/ { 10377 /^0/ { 10378 s/^0 *\([^ ]*\) *$/\1/ 10379 p 10380 } 10381 }' 10382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10383 # Check for a 64-bit object if we didn't find anything. 10384 if test -z "$lt_cv_aix_libpath_"; then 10385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10386 fi 10387 fi 10388 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10389 conftest$ac_exeext conftest.$ac_ext 10390 if test -z "$lt_cv_aix_libpath_"; then 10391 lt_cv_aix_libpath_=/usr/lib:/lib 10392 fi 10393 ;; 10394 esac 10395 fi 10396 10397 aix_libpath=$lt_cv_aix_libpath_ 10398 fi 10399 10400 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10401 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 10402 else 10403 if test ia64 = "$host_cpu"; then 10404 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10405 allow_undefined_flag="-z nodefs" 10406 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" 10407 else 10408 # Determine the default libpath from the value encoded in an 10409 # empty executable. 10410 if test set = "${lt_cv_aix_libpath+set}"; then 10411 aix_libpath=$lt_cv_aix_libpath 10412 else 10413 if test ${lt_cv_aix_libpath_+y} 10414 then : 10415 printf %s "(cached) " >&6 10416 else case e in #( 10417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10418 /* end confdefs.h. */ 10419 10420 int 10421 main (void) 10422 { 10423 10424 ; 10425 return 0; 10426 } 10427 _ACEOF 10428 if ac_fn_c_try_link "$LINENO" 10429 then : 10430 10431 lt_aix_libpath_sed=' 10432 /Import File Strings/,/^$/ { 10433 /^0/ { 10434 s/^0 *\([^ ]*\) *$/\1/ 10435 p 10436 } 10437 }' 10438 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10439 # Check for a 64-bit object if we didn't find anything. 10440 if test -z "$lt_cv_aix_libpath_"; then 10441 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10442 fi 10443 fi 10444 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10445 conftest$ac_exeext conftest.$ac_ext 10446 if test -z "$lt_cv_aix_libpath_"; then 10447 lt_cv_aix_libpath_=/usr/lib:/lib 10448 fi 10449 ;; 10450 esac 10451 fi 10452 10453 aix_libpath=$lt_cv_aix_libpath_ 10454 fi 10455 10456 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10457 # Warning - without using the other run time loading flags, 10458 # -berok will link without error, but may produce a broken library. 10459 no_undefined_flag=' $wl-bernotok' 10460 allow_undefined_flag=' $wl-berok' 10461 if test yes = "$with_gnu_ld"; then 10462 # We only use this code for GNU lds that support --whole-archive. 10463 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10464 else 10465 # Exported symbols can be pulled into shared objects from archives 10466 whole_archive_flag_spec='$convenience' 10467 fi 10468 archive_cmds_need_lc=yes 10469 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10470 # -brtl affects multiple linker settings, -berok does not and is overridden later 10471 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10472 if test svr4 != "$with_aix_soname"; then 10473 # This is similar to how AIX traditionally builds its shared libraries. 10474 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' 10475 fi 10476 if test aix != "$with_aix_soname"; then 10477 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' 10478 else 10479 # used by -dlpreopen to get the symbols 10480 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10481 fi 10482 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10483 fi 10484 fi 10485 ;; 10486 10487 amigaos*) 10488 case $host_cpu in 10489 powerpc) 10490 # see comment about AmigaOS4 .so support 10491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10492 archive_expsym_cmds='' 10493 ;; 10494 m68k) 10495 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)' 10496 hardcode_libdir_flag_spec='-L$libdir' 10497 hardcode_minus_L=yes 10498 ;; 10499 esac 10500 ;; 10501 10502 bsdi[45]*) 10503 export_dynamic_flag_spec=-rdynamic 10504 ;; 10505 10506 cygwin* | mingw* | pw32* | cegcc*) 10507 # When not using gcc, we currently assume that we are using 10508 # Microsoft Visual C++ or Intel C++ Compiler. 10509 # hardcode_libdir_flag_spec is actually meaningless, as there is 10510 # no search path for DLLs. 10511 case $cc_basename in 10512 cl* | icl*) 10513 # Native MSVC or ICC 10514 hardcode_libdir_flag_spec=' ' 10515 allow_undefined_flag=unsupported 10516 always_export_symbols=yes 10517 file_list_spec='@' 10518 # Tell ltmain to make .lib files, not .a files. 10519 libext=lib 10520 # Tell ltmain to make .dll files, not .so files. 10521 shrext_cmds=.dll 10522 # FIXME: Setting linknames here is a bad hack. 10523 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10524 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10525 cp "$export_symbols" "$output_objdir/$soname.def"; 10526 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10527 else 10528 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10529 fi~ 10530 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10531 linknames=' 10532 # The linker will not automatically build a static lib if we build a DLL. 10533 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10534 enable_shared_with_static_runtimes=yes 10535 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10537 # Don't use ranlib 10538 old_postinstall_cmds='chmod 644 $oldlib' 10539 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10540 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10541 case $lt_outputfile in 10542 *.exe|*.EXE) ;; 10543 *) 10544 lt_outputfile=$lt_outputfile.exe 10545 lt_tool_outputfile=$lt_tool_outputfile.exe 10546 ;; 10547 esac~ 10548 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10549 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10550 $RM "$lt_outputfile.manifest"; 10551 fi' 10552 ;; 10553 *) 10554 # Assume MSVC and ICC wrapper 10555 hardcode_libdir_flag_spec=' ' 10556 allow_undefined_flag=unsupported 10557 # Tell ltmain to make .lib files, not .a files. 10558 libext=lib 10559 # Tell ltmain to make .dll files, not .so files. 10560 shrext_cmds=.dll 10561 # FIXME: Setting linknames here is a bad hack. 10562 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10563 # The linker will automatically build a .lib file if we build a DLL. 10564 old_archive_from_new_cmds='true' 10565 # FIXME: Should let the user specify the lib program. 10566 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10567 enable_shared_with_static_runtimes=yes 10568 ;; 10569 esac 10570 ;; 10571 10572 darwin* | rhapsody*) 10573 10574 10575 archive_cmds_need_lc=no 10576 hardcode_direct=no 10577 hardcode_automatic=yes 10578 hardcode_shlibpath_var=unsupported 10579 if test yes = "$lt_cv_ld_force_load"; then 10580 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\"`' 10581 10582 else 10583 whole_archive_flag_spec='' 10584 fi 10585 link_all_deplibs=yes 10586 allow_undefined_flag=$_lt_dar_allow_undefined 10587 case $cc_basename in 10588 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10589 *) _lt_dar_can_shared=$GCC ;; 10590 esac 10591 if test yes = "$_lt_dar_can_shared"; then 10592 output_verbose_link_cmd=func_echo_all 10593 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10594 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10595 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" 10596 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" 10597 10598 else 10599 ld_shlibs=no 10600 fi 10601 10602 ;; 10603 10604 dgux*) 10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10606 hardcode_libdir_flag_spec='-L$libdir' 10607 hardcode_shlibpath_var=no 10608 ;; 10609 10610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10611 # support. Future versions do this automatically, but an explicit c++rt0.o 10612 # does not break anything, and helps significantly (at the cost of a little 10613 # extra space). 10614 freebsd2.2*) 10615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10616 hardcode_libdir_flag_spec='-R$libdir' 10617 hardcode_direct=yes 10618 hardcode_shlibpath_var=no 10619 ;; 10620 10621 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10622 freebsd2.*) 10623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10624 hardcode_direct=yes 10625 hardcode_minus_L=yes 10626 hardcode_shlibpath_var=no 10627 ;; 10628 10629 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10630 freebsd* | dragonfly* | midnightbsd*) 10631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10632 hardcode_libdir_flag_spec='-R$libdir' 10633 hardcode_direct=yes 10634 hardcode_shlibpath_var=no 10635 ;; 10636 10637 hpux9*) 10638 if test yes = "$GCC"; then 10639 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' 10640 else 10641 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' 10642 fi 10643 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10644 hardcode_libdir_separator=: 10645 hardcode_direct=yes 10646 10647 # hardcode_minus_L: Not really in the search PATH, 10648 # but as the default location of the library. 10649 hardcode_minus_L=yes 10650 export_dynamic_flag_spec='$wl-E' 10651 ;; 10652 10653 hpux10*) 10654 if test yes,no = "$GCC,$with_gnu_ld"; then 10655 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10656 else 10657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10658 fi 10659 if test no = "$with_gnu_ld"; then 10660 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10661 hardcode_libdir_separator=: 10662 hardcode_direct=yes 10663 hardcode_direct_absolute=yes 10664 export_dynamic_flag_spec='$wl-E' 10665 # hardcode_minus_L: Not really in the search PATH, 10666 # but as the default location of the library. 10667 hardcode_minus_L=yes 10668 fi 10669 ;; 10670 10671 hpux11*) 10672 if test yes,no = "$GCC,$with_gnu_ld"; then 10673 case $host_cpu in 10674 hppa*64*) 10675 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10676 ;; 10677 ia64*) 10678 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10679 ;; 10680 *) 10681 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10682 ;; 10683 esac 10684 else 10685 case $host_cpu in 10686 hppa*64*) 10687 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10688 ;; 10689 ia64*) 10690 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10691 ;; 10692 *) 10693 10694 # Older versions of the 11.00 compiler do not understand -b yet 10695 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10697 printf %s "checking if $CC understands -b... " >&6; } 10698 if test ${lt_cv_prog_compiler__b+y} 10699 then : 10700 printf %s "(cached) " >&6 10701 else case e in #( 10702 e) lt_cv_prog_compiler__b=no 10703 save_LDFLAGS=$LDFLAGS 10704 LDFLAGS="$LDFLAGS -b" 10705 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10707 # The linker can only warn and ignore the option if not recognized 10708 # So say no if there are warnings 10709 if test -s conftest.err; then 10710 # Append any errors to the config.log. 10711 cat conftest.err 1>&5 10712 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10714 if diff conftest.exp conftest.er2 >/dev/null; then 10715 lt_cv_prog_compiler__b=yes 10716 fi 10717 else 10718 lt_cv_prog_compiler__b=yes 10719 fi 10720 fi 10721 $RM -r conftest* 10722 LDFLAGS=$save_LDFLAGS 10723 ;; 10724 esac 10725 fi 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10727 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10728 10729 if test yes = "$lt_cv_prog_compiler__b"; then 10730 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10731 else 10732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10733 fi 10734 10735 ;; 10736 esac 10737 fi 10738 if test no = "$with_gnu_ld"; then 10739 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10740 hardcode_libdir_separator=: 10741 10742 case $host_cpu in 10743 hppa*64*|ia64*) 10744 hardcode_direct=no 10745 hardcode_shlibpath_var=no 10746 ;; 10747 *) 10748 hardcode_direct=yes 10749 hardcode_direct_absolute=yes 10750 export_dynamic_flag_spec='$wl-E' 10751 10752 # hardcode_minus_L: Not really in the search PATH, 10753 # but as the default location of the library. 10754 hardcode_minus_L=yes 10755 ;; 10756 esac 10757 fi 10758 ;; 10759 10760 irix5* | irix6* | nonstopux*) 10761 if test yes = "$GCC"; then 10762 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' 10763 # Try to use the -exported_symbol ld option, if it does not 10764 # work, assume that -exports_file does not work either and 10765 # implicitly export all symbols. 10766 # This should be the same for all languages, so no per-tag cache variable. 10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10768 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10769 if test ${lt_cv_irix_exported_symbol+y} 10770 then : 10771 printf %s "(cached) " >&6 10772 else case e in #( 10773 e) save_LDFLAGS=$LDFLAGS 10774 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10776 /* end confdefs.h. */ 10777 int foo (void) { return 0; } 10778 _ACEOF 10779 if ac_fn_c_try_link "$LINENO" 10780 then : 10781 lt_cv_irix_exported_symbol=yes 10782 else case e in #( 10783 e) lt_cv_irix_exported_symbol=no ;; 10784 esac 10785 fi 10786 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10787 conftest$ac_exeext conftest.$ac_ext 10788 LDFLAGS=$save_LDFLAGS ;; 10789 esac 10790 fi 10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10792 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10793 if test yes = "$lt_cv_irix_exported_symbol"; then 10794 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' 10795 fi 10796 else 10797 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' 10798 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' 10799 fi 10800 archive_cmds_need_lc='no' 10801 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10802 hardcode_libdir_separator=: 10803 inherit_rpath=yes 10804 link_all_deplibs=yes 10805 ;; 10806 10807 linux*) 10808 case $cc_basename in 10809 tcc*) 10810 # Fabrice Bellard et al's Tiny C Compiler 10811 ld_shlibs=yes 10812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10813 ;; 10814 esac 10815 ;; 10816 10817 netbsd*) 10818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10820 else 10821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10822 fi 10823 hardcode_libdir_flag_spec='-R$libdir' 10824 hardcode_direct=yes 10825 hardcode_shlibpath_var=no 10826 ;; 10827 10828 newsos6) 10829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10830 hardcode_direct=yes 10831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10832 hardcode_libdir_separator=: 10833 hardcode_shlibpath_var=no 10834 ;; 10835 10836 *nto* | *qnx*) 10837 ;; 10838 10839 openbsd* | bitrig*) 10840 if test -f /usr/libexec/ld.so; then 10841 hardcode_direct=yes 10842 hardcode_shlibpath_var=no 10843 hardcode_direct_absolute=yes 10844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10846 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10847 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10848 export_dynamic_flag_spec='$wl-E' 10849 else 10850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10851 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10852 fi 10853 else 10854 ld_shlibs=no 10855 fi 10856 ;; 10857 10858 os2*) 10859 hardcode_libdir_flag_spec='-L$libdir' 10860 hardcode_minus_L=yes 10861 allow_undefined_flag=unsupported 10862 shrext_cmds=.dll 10863 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10864 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10865 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10866 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10867 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10868 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10869 emximp -o $lib $output_objdir/$libname.def' 10870 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10871 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10872 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10873 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10874 prefix_cmds="$SED"~ 10875 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10876 prefix_cmds="$prefix_cmds -e 1d"; 10877 fi~ 10878 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10879 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10881 emximp -o $lib $output_objdir/$libname.def' 10882 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10883 enable_shared_with_static_runtimes=yes 10884 file_list_spec='@' 10885 ;; 10886 10887 osf3*) 10888 if test yes = "$GCC"; then 10889 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10890 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' 10891 else 10892 allow_undefined_flag=' -expect_unresolved \*' 10893 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' 10894 fi 10895 archive_cmds_need_lc='no' 10896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10897 hardcode_libdir_separator=: 10898 ;; 10899 10900 osf4* | osf5*) # as osf3* with the addition of -msym flag 10901 if test yes = "$GCC"; then 10902 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10903 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' 10904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10905 else 10906 allow_undefined_flag=' -expect_unresolved \*' 10907 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' 10908 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~ 10909 $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' 10910 10911 # Both c and cxx compiler support -rpath directly 10912 hardcode_libdir_flag_spec='-rpath $libdir' 10913 fi 10914 archive_cmds_need_lc='no' 10915 hardcode_libdir_separator=: 10916 ;; 10917 10918 solaris*) 10919 no_undefined_flag=' -z defs' 10920 if test yes = "$GCC"; then 10921 wlarc='$wl' 10922 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10924 $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' 10925 else 10926 case `$CC -V 2>&1` in 10927 *"Compilers 5.0"*) 10928 wlarc='' 10929 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10931 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10932 ;; 10933 *) 10934 wlarc='$wl' 10935 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10937 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10938 ;; 10939 esac 10940 fi 10941 hardcode_libdir_flag_spec='-R$libdir' 10942 hardcode_shlibpath_var=no 10943 case $host_os in 10944 solaris2.[0-5] | solaris2.[0-5].*) ;; 10945 *) 10946 # The compiler driver will combine and reorder linker options, 10947 # but understands '-z linker_flag'. GCC discards it without '$wl', 10948 # but is careful enough not to reorder. 10949 # Supported since Solaris 2.6 (maybe 2.5.1?) 10950 if test yes = "$GCC"; then 10951 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10952 else 10953 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10954 fi 10955 ;; 10956 esac 10957 link_all_deplibs=yes 10958 ;; 10959 10960 sunos4*) 10961 if test sequent = "$host_vendor"; then 10962 # Use $CC to link under sequent, because it throws in some extra .o 10963 # files that make .init and .fini sections work. 10964 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10965 else 10966 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10967 fi 10968 hardcode_libdir_flag_spec='-L$libdir' 10969 hardcode_direct=yes 10970 hardcode_minus_L=yes 10971 hardcode_shlibpath_var=no 10972 ;; 10973 10974 sysv4) 10975 case $host_vendor in 10976 sni) 10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10978 hardcode_direct=yes # is this really true??? 10979 ;; 10980 siemens) 10981 ## LD is ld it makes a PLAMLIB 10982 ## CC just makes a GrossModule. 10983 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10984 reload_cmds='$CC -r -o $output$reload_objs' 10985 hardcode_direct=no 10986 ;; 10987 motorola) 10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10989 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10990 ;; 10991 esac 10992 runpath_var='LD_RUN_PATH' 10993 hardcode_shlibpath_var=no 10994 ;; 10995 10996 sysv4.3*) 10997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10998 hardcode_shlibpath_var=no 10999 export_dynamic_flag_spec='-Bexport' 11000 ;; 11001 11002 sysv4*MP*) 11003 if test -d /usr/nec; then 11004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11005 hardcode_shlibpath_var=no 11006 runpath_var=LD_RUN_PATH 11007 hardcode_runpath_var=yes 11008 ld_shlibs=yes 11009 fi 11010 ;; 11011 11012 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11013 no_undefined_flag='$wl-z,text' 11014 archive_cmds_need_lc=no 11015 hardcode_shlibpath_var=no 11016 runpath_var='LD_RUN_PATH' 11017 11018 if test yes = "$GCC"; then 11019 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11020 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11021 else 11022 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11023 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11024 fi 11025 ;; 11026 11027 sysv5* | sco3.2v5* | sco5v6*) 11028 # Note: We CANNOT use -z defs as we might desire, because we do not 11029 # link with -lc, and that would cause any symbols used from libc to 11030 # always be unresolved, which means just about no library would 11031 # ever link correctly. If we're not using GNU ld we use -z text 11032 # though, which does catch some bad symbols but isn't as heavy-handed 11033 # as -z defs. 11034 no_undefined_flag='$wl-z,text' 11035 allow_undefined_flag='$wl-z,nodefs' 11036 archive_cmds_need_lc=no 11037 hardcode_shlibpath_var=no 11038 hardcode_libdir_flag_spec='$wl-R,$libdir' 11039 hardcode_libdir_separator=':' 11040 link_all_deplibs=yes 11041 export_dynamic_flag_spec='$wl-Bexport' 11042 runpath_var='LD_RUN_PATH' 11043 11044 if test yes = "$GCC"; then 11045 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11046 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11047 else 11048 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11049 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11050 fi 11051 ;; 11052 11053 uts4*) 11054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11055 hardcode_libdir_flag_spec='-L$libdir' 11056 hardcode_shlibpath_var=no 11057 ;; 11058 11059 *) 11060 ld_shlibs=no 11061 ;; 11062 esac 11063 11064 if test sni = "$host_vendor"; then 11065 case $host in 11066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11067 export_dynamic_flag_spec='$wl-Blargedynsym' 11068 ;; 11069 esac 11070 fi 11071 fi 11072 11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11074 printf "%s\n" "$ld_shlibs" >&6; } 11075 test no = "$ld_shlibs" && can_build_shared=no 11076 11077 with_gnu_ld=$with_gnu_ld 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 # 11094 # Do we need to explicitly link libc? 11095 # 11096 case "x$archive_cmds_need_lc" in 11097 x|xyes) 11098 # Assume -lc should be added 11099 archive_cmds_need_lc=yes 11100 11101 if test yes,yes = "$GCC,$enable_shared"; then 11102 case $archive_cmds in 11103 *'~'*) 11104 # FIXME: we may have to deal with multi-command sequences. 11105 ;; 11106 '$CC '*) 11107 # Test whether the compiler implicitly links with -lc since on some 11108 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11109 # to ld, don't add -lc before -lgcc. 11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11111 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11112 if test ${lt_cv_archive_cmds_need_lc+y} 11113 then : 11114 printf %s "(cached) " >&6 11115 else case e in #( 11116 e) $RM conftest* 11117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11118 11119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11120 (eval $ac_compile) 2>&5 11121 ac_status=$? 11122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11123 test $ac_status = 0; } 2>conftest.err; then 11124 soname=conftest 11125 lib=conftest 11126 libobjs=conftest.$ac_objext 11127 deplibs= 11128 wl=$lt_prog_compiler_wl 11129 pic_flag=$lt_prog_compiler_pic 11130 compiler_flags=-v 11131 linker_flags=-v 11132 verstring= 11133 output_objdir=. 11134 libname=conftest 11135 lt_save_allow_undefined_flag=$allow_undefined_flag 11136 allow_undefined_flag= 11137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11138 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11139 ac_status=$? 11140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11141 test $ac_status = 0; } 11142 then 11143 lt_cv_archive_cmds_need_lc=no 11144 else 11145 lt_cv_archive_cmds_need_lc=yes 11146 fi 11147 allow_undefined_flag=$lt_save_allow_undefined_flag 11148 else 11149 cat conftest.err 1>&5 11150 fi 11151 $RM conftest* 11152 ;; 11153 esac 11154 fi 11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11156 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11157 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11158 ;; 11159 esac 11160 fi 11161 ;; 11162 esac 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11316 printf %s "checking dynamic linker characteristics... " >&6; } 11317 11318 if test yes = "$GCC"; then 11319 case $host_os in 11320 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11321 *) lt_awk_arg='/^libraries:/' ;; 11322 esac 11323 case $host_os in 11324 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11325 *) lt_sed_strip_eq='s|=/|/|g' ;; 11326 esac 11327 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11328 case $lt_search_path_spec in 11329 *\;*) 11330 # if the path contains ";" then we assume it to be the separator 11331 # otherwise default to the standard path separator (i.e. ":") - it is 11332 # assumed that no part of a normal pathname contains ";" but that should 11333 # okay in the real world where ";" in dirpaths is itself problematic. 11334 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11335 ;; 11336 *) 11337 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11338 ;; 11339 esac 11340 # Ok, now we have the path, separated by spaces, we can step through it 11341 # and add multilib dir if necessary... 11342 lt_tmp_lt_search_path_spec= 11343 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11344 # ...but if some path component already ends with the multilib dir we assume 11345 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11346 case "$lt_multi_os_dir; $lt_search_path_spec " in 11347 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11348 lt_multi_os_dir= 11349 ;; 11350 esac 11351 for lt_sys_path in $lt_search_path_spec; do 11352 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11354 elif test -n "$lt_multi_os_dir"; then 11355 test -d "$lt_sys_path" && \ 11356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11357 fi 11358 done 11359 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11360 BEGIN {RS = " "; FS = "/|\n";} { 11361 lt_foo = ""; 11362 lt_count = 0; 11363 for (lt_i = NF; lt_i > 0; lt_i--) { 11364 if ($lt_i != "" && $lt_i != ".") { 11365 if ($lt_i == "..") { 11366 lt_count++; 11367 } else { 11368 if (lt_count == 0) { 11369 lt_foo = "/" $lt_i lt_foo; 11370 } else { 11371 lt_count--; 11372 } 11373 } 11374 } 11375 } 11376 if (lt_foo != "") { lt_freq[lt_foo]++; } 11377 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11378 }'` 11379 # AWK program above erroneously prepends '/' to C:/dos/paths 11380 # for these hosts. 11381 case $host_os in 11382 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11383 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11384 esac 11385 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11386 else 11387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11388 fi 11389 library_names_spec= 11390 libname_spec='lib$name' 11391 soname_spec= 11392 shrext_cmds=.so 11393 postinstall_cmds= 11394 postuninstall_cmds= 11395 finish_cmds= 11396 finish_eval= 11397 shlibpath_var= 11398 shlibpath_overrides_runpath=unknown 11399 version_type=none 11400 dynamic_linker="$host_os ld.so" 11401 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11402 need_lib_prefix=unknown 11403 hardcode_into_libs=no 11404 11405 # when you set need_version to no, make sure it does not cause -set_version 11406 # flags to be left without arguments 11407 need_version=unknown 11408 11409 11410 11411 case $host_os in 11412 aix3*) 11413 version_type=linux # correct to gnu/linux during the next big refactor 11414 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11415 shlibpath_var=LIBPATH 11416 11417 # AIX 3 has no versioning support, so we append a major version to the name. 11418 soname_spec='$libname$release$shared_ext$major' 11419 ;; 11420 11421 aix[4-9]*) 11422 version_type=linux # correct to gnu/linux during the next big refactor 11423 need_lib_prefix=no 11424 need_version=no 11425 hardcode_into_libs=yes 11426 if test ia64 = "$host_cpu"; then 11427 # AIX 5 supports IA64 11428 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11429 shlibpath_var=LD_LIBRARY_PATH 11430 else 11431 # With GCC up to 2.95.x, collect2 would create an import file 11432 # for dependence libraries. The import file would start with 11433 # the line '#! .'. This would cause the generated library to 11434 # depend on '.', always an invalid library. This was fixed in 11435 # development snapshots of GCC prior to 3.0. 11436 case $host_os in 11437 aix4 | aix4.[01] | aix4.[01].*) 11438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11439 echo ' yes ' 11440 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11441 : 11442 else 11443 can_build_shared=no 11444 fi 11445 ;; 11446 esac 11447 # Using Import Files as archive members, it is possible to support 11448 # filename-based versioning of shared library archives on AIX. While 11449 # this would work for both with and without runtime linking, it will 11450 # prevent static linking of such archives. So we do filename-based 11451 # shared library versioning with .so extension only, which is used 11452 # when both runtime linking and shared linking is enabled. 11453 # Unfortunately, runtime linking may impact performance, so we do 11454 # not want this to be the default eventually. Also, we use the 11455 # versioned .so libs for executables only if there is the -brtl 11456 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11457 # To allow for filename-based versioning support, we need to create 11458 # libNAME.so.V as an archive file, containing: 11459 # *) an Import File, referring to the versioned filename of the 11460 # archive as well as the shared archive member, telling the 11461 # bitwidth (32 or 64) of that shared object, and providing the 11462 # list of exported symbols of that shared object, eventually 11463 # decorated with the 'weak' keyword 11464 # *) the shared object with the F_LOADONLY flag set, to really avoid 11465 # it being seen by the linker. 11466 # At run time we better use the real file rather than another symlink, 11467 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11468 11469 case $with_aix_soname,$aix_use_runtimelinking in 11470 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11471 # soname into executable. Probably we can add versioning support to 11472 # collect2, so additional links can be useful in future. 11473 aix,yes) # traditional libtool 11474 dynamic_linker='AIX unversionable lib.so' 11475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11476 # instead of lib<name>.a to let people know that these are not 11477 # typical AIX shared libraries. 11478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11479 ;; 11480 aix,no) # traditional AIX only 11481 dynamic_linker='AIX lib.a(lib.so.V)' 11482 # We preserve .a as extension for shared libraries through AIX4.2 11483 # and later when we are not doing run time linking. 11484 library_names_spec='$libname$release.a $libname.a' 11485 soname_spec='$libname$release$shared_ext$major' 11486 ;; 11487 svr4,*) # full svr4 only 11488 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11489 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11490 # We do not specify a path in Import Files, so LIBPATH fires. 11491 shlibpath_overrides_runpath=yes 11492 ;; 11493 *,yes) # both, prefer svr4 11494 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11495 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11496 # unpreferred sharedlib libNAME.a needs extra handling 11497 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"' 11498 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"' 11499 # We do not specify a path in Import Files, so LIBPATH fires. 11500 shlibpath_overrides_runpath=yes 11501 ;; 11502 *,no) # both, prefer aix 11503 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11504 library_names_spec='$libname$release.a $libname.a' 11505 soname_spec='$libname$release$shared_ext$major' 11506 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11507 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)' 11508 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"' 11509 ;; 11510 esac 11511 shlibpath_var=LIBPATH 11512 fi 11513 ;; 11514 11515 amigaos*) 11516 case $host_cpu in 11517 powerpc) 11518 # Since July 2007 AmigaOS4 officially supports .so libraries. 11519 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11521 ;; 11522 m68k) 11523 library_names_spec='$libname.ixlibrary $libname.a' 11524 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11525 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' 11526 ;; 11527 esac 11528 ;; 11529 11530 beos*) 11531 library_names_spec='$libname$shared_ext' 11532 dynamic_linker="$host_os ld.so" 11533 shlibpath_var=LIBRARY_PATH 11534 ;; 11535 11536 bsdi[45]*) 11537 version_type=linux # correct to gnu/linux during the next big refactor 11538 need_version=no 11539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11540 soname_spec='$libname$release$shared_ext$major' 11541 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11542 shlibpath_var=LD_LIBRARY_PATH 11543 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11544 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11545 # the default ld.so.conf also contains /usr/contrib/lib and 11546 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11547 # libtool to hard-code these into programs 11548 ;; 11549 11550 cygwin* | mingw* | pw32* | cegcc*) 11551 version_type=windows 11552 shrext_cmds=.dll 11553 need_version=no 11554 need_lib_prefix=no 11555 11556 case $GCC,$cc_basename in 11557 yes,*) 11558 # gcc 11559 library_names_spec='$libname.dll.a' 11560 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11561 postinstall_cmds='base_file=`basename \$file`~ 11562 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11563 dldir=$destdir/`dirname \$dlpath`~ 11564 test -d \$dldir || mkdir -p \$dldir~ 11565 $install_prog $dir/$dlname \$dldir/$dlname~ 11566 chmod a+x \$dldir/$dlname~ 11567 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11568 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11569 fi' 11570 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11571 dlpath=$dir/\$dldll~ 11572 $RM \$dlpath' 11573 shlibpath_overrides_runpath=yes 11574 11575 case $host_os in 11576 cygwin*) 11577 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11578 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11579 11580 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11581 ;; 11582 mingw* | cegcc*) 11583 # MinGW DLLs use traditional 'lib' prefix 11584 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11585 ;; 11586 pw32*) 11587 # pw32 DLLs use 'pw' prefix rather than 'lib' 11588 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11589 ;; 11590 esac 11591 dynamic_linker='Win32 ld.exe' 11592 ;; 11593 11594 *,cl* | *,icl*) 11595 # Native MSVC or ICC 11596 libname_spec='$name' 11597 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11598 library_names_spec='$libname.dll.lib' 11599 11600 case $build_os in 11601 mingw*) 11602 sys_lib_search_path_spec= 11603 lt_save_ifs=$IFS 11604 IFS=';' 11605 for lt_path in $LIB 11606 do 11607 IFS=$lt_save_ifs 11608 # Let DOS variable expansion print the short 8.3 style file name. 11609 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11610 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11611 done 11612 IFS=$lt_save_ifs 11613 # Convert to MSYS style. 11614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11615 ;; 11616 cygwin*) 11617 # Convert to unix form, then to dos form, then back to unix form 11618 # but this time dos style (no spaces!) so that the unix form looks 11619 # like /cygdrive/c/PROGRA~1:/cygdr... 11620 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11621 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11622 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11623 ;; 11624 *) 11625 sys_lib_search_path_spec=$LIB 11626 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11627 # It is most probably a Windows format PATH. 11628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11629 else 11630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11631 fi 11632 # FIXME: find the short name or the path components, as spaces are 11633 # common. (e.g. "Program Files" -> "PROGRA~1") 11634 ;; 11635 esac 11636 11637 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11638 postinstall_cmds='base_file=`basename \$file`~ 11639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11640 dldir=$destdir/`dirname \$dlpath`~ 11641 test -d \$dldir || mkdir -p \$dldir~ 11642 $install_prog $dir/$dlname \$dldir/$dlname' 11643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11644 dlpath=$dir/\$dldll~ 11645 $RM \$dlpath' 11646 shlibpath_overrides_runpath=yes 11647 dynamic_linker='Win32 link.exe' 11648 ;; 11649 11650 *) 11651 # Assume MSVC and ICC wrapper 11652 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11653 dynamic_linker='Win32 ld.exe' 11654 ;; 11655 esac 11656 # FIXME: first we should search . and the directory the executable is in 11657 shlibpath_var=PATH 11658 ;; 11659 11660 darwin* | rhapsody*) 11661 dynamic_linker="$host_os dyld" 11662 version_type=darwin 11663 need_lib_prefix=no 11664 need_version=no 11665 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11666 soname_spec='$libname$release$major$shared_ext' 11667 shlibpath_overrides_runpath=yes 11668 shlibpath_var=DYLD_LIBRARY_PATH 11669 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11670 11671 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11673 ;; 11674 11675 dgux*) 11676 version_type=linux # correct to gnu/linux during the next big refactor 11677 need_lib_prefix=no 11678 need_version=no 11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11680 soname_spec='$libname$release$shared_ext$major' 11681 shlibpath_var=LD_LIBRARY_PATH 11682 ;; 11683 11684 freebsd* | dragonfly* | midnightbsd*) 11685 # DragonFly does not have aout. When/if they implement a new 11686 # versioning mechanism, adjust this. 11687 if test -x /usr/bin/objformat; then 11688 objformat=`/usr/bin/objformat` 11689 else 11690 case $host_os in 11691 freebsd[23].*) objformat=aout ;; 11692 *) objformat=elf ;; 11693 esac 11694 fi 11695 version_type=freebsd-$objformat 11696 case $version_type in 11697 freebsd-elf*) 11698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11699 soname_spec='$libname$release$shared_ext$major' 11700 need_version=no 11701 need_lib_prefix=no 11702 ;; 11703 freebsd-*) 11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11705 need_version=yes 11706 ;; 11707 esac 11708 shlibpath_var=LD_LIBRARY_PATH 11709 case $host_os in 11710 freebsd2.*) 11711 shlibpath_overrides_runpath=yes 11712 ;; 11713 freebsd3.[01]* | freebsdelf3.[01]*) 11714 shlibpath_overrides_runpath=yes 11715 hardcode_into_libs=yes 11716 ;; 11717 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11718 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11719 shlibpath_overrides_runpath=no 11720 hardcode_into_libs=yes 11721 ;; 11722 *) # from 4.6 on, and DragonFly 11723 shlibpath_overrides_runpath=yes 11724 hardcode_into_libs=yes 11725 ;; 11726 esac 11727 ;; 11728 11729 haiku*) 11730 version_type=linux # correct to gnu/linux during the next big refactor 11731 need_lib_prefix=no 11732 need_version=no 11733 dynamic_linker="$host_os runtime_loader" 11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11735 soname_spec='$libname$release$shared_ext$major' 11736 shlibpath_var=LIBRARY_PATH 11737 shlibpath_overrides_runpath=no 11738 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11739 hardcode_into_libs=yes 11740 ;; 11741 11742 hpux9* | hpux10* | hpux11*) 11743 # Give a soname corresponding to the major version so that dld.sl refuses to 11744 # link against other versions. 11745 version_type=sunos 11746 need_lib_prefix=no 11747 need_version=no 11748 case $host_cpu in 11749 ia64*) 11750 shrext_cmds='.so' 11751 hardcode_into_libs=yes 11752 dynamic_linker="$host_os dld.so" 11753 shlibpath_var=LD_LIBRARY_PATH 11754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11756 soname_spec='$libname$release$shared_ext$major' 11757 if test 32 = "$HPUX_IA64_MODE"; then 11758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11759 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11760 else 11761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11762 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11763 fi 11764 ;; 11765 hppa*64*) 11766 shrext_cmds='.sl' 11767 hardcode_into_libs=yes 11768 dynamic_linker="$host_os dld.sl" 11769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11772 soname_spec='$libname$release$shared_ext$major' 11773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11775 ;; 11776 *) 11777 shrext_cmds='.sl' 11778 dynamic_linker="$host_os dld.sl" 11779 shlibpath_var=SHLIB_PATH 11780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11782 soname_spec='$libname$release$shared_ext$major' 11783 ;; 11784 esac 11785 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11786 postinstall_cmds='chmod 555 $lib' 11787 # or fails outright, so override atomically: 11788 install_override_mode=555 11789 ;; 11790 11791 interix[3-9]*) 11792 version_type=linux # correct to gnu/linux during the next big refactor 11793 need_lib_prefix=no 11794 need_version=no 11795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11796 soname_spec='$libname$release$shared_ext$major' 11797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11798 shlibpath_var=LD_LIBRARY_PATH 11799 shlibpath_overrides_runpath=no 11800 hardcode_into_libs=yes 11801 ;; 11802 11803 irix5* | irix6* | nonstopux*) 11804 case $host_os in 11805 nonstopux*) version_type=nonstopux ;; 11806 *) 11807 if test yes = "$lt_cv_prog_gnu_ld"; then 11808 version_type=linux # correct to gnu/linux during the next big refactor 11809 else 11810 version_type=irix 11811 fi ;; 11812 esac 11813 need_lib_prefix=no 11814 need_version=no 11815 soname_spec='$libname$release$shared_ext$major' 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11817 case $host_os in 11818 irix5* | nonstopux*) 11819 libsuff= shlibsuff= 11820 ;; 11821 *) 11822 case $LD in # libtool.m4 will add one of these switches to LD 11823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11824 libsuff= shlibsuff= libmagic=32-bit;; 11825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11826 libsuff=32 shlibsuff=N32 libmagic=N32;; 11827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11828 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11829 *) libsuff= shlibsuff= libmagic=never-match;; 11830 esac 11831 ;; 11832 esac 11833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11834 shlibpath_overrides_runpath=no 11835 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11836 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11837 hardcode_into_libs=yes 11838 ;; 11839 11840 # No shared lib support for Linux oldld, aout, or coff. 11841 linux*oldld* | linux*aout* | linux*coff*) 11842 dynamic_linker=no 11843 ;; 11844 11845 linux*android*) 11846 version_type=none # Android doesn't support versioned libraries. 11847 need_lib_prefix=no 11848 need_version=no 11849 library_names_spec='$libname$release$shared_ext' 11850 soname_spec='$libname$release$shared_ext' 11851 finish_cmds= 11852 shlibpath_var=LD_LIBRARY_PATH 11853 shlibpath_overrides_runpath=yes 11854 11855 # This implies no fast_install, which is unacceptable. 11856 # Some rework will be needed to allow for fast_install 11857 # before this can be enabled. 11858 hardcode_into_libs=yes 11859 11860 dynamic_linker='Android linker' 11861 # Don't embed -rpath directories since the linker doesn't support them. 11862 hardcode_libdir_flag_spec='-L$libdir' 11863 ;; 11864 11865 # This must be glibc/ELF. 11866 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11867 version_type=linux # correct to gnu/linux during the next big refactor 11868 need_lib_prefix=no 11869 need_version=no 11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11871 soname_spec='$libname$release$shared_ext$major' 11872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11873 shlibpath_var=LD_LIBRARY_PATH 11874 shlibpath_overrides_runpath=no 11875 11876 # Some binutils ld are patched to set DT_RUNPATH 11877 if test ${lt_cv_shlibpath_overrides_runpath+y} 11878 then : 11879 printf %s "(cached) " >&6 11880 else case e in #( 11881 e) lt_cv_shlibpath_overrides_runpath=no 11882 save_LDFLAGS=$LDFLAGS 11883 save_libdir=$libdir 11884 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11885 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11887 /* end confdefs.h. */ 11888 11889 int 11890 main (void) 11891 { 11892 11893 ; 11894 return 0; 11895 } 11896 _ACEOF 11897 if ac_fn_c_try_link "$LINENO" 11898 then : 11899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11900 then : 11901 lt_cv_shlibpath_overrides_runpath=yes 11902 fi 11903 fi 11904 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11905 conftest$ac_exeext conftest.$ac_ext 11906 LDFLAGS=$save_LDFLAGS 11907 libdir=$save_libdir 11908 ;; 11909 esac 11910 fi 11911 11912 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11913 11914 # This implies no fast_install, which is unacceptable. 11915 # Some rework will be needed to allow for fast_install 11916 # before this can be enabled. 11917 hardcode_into_libs=yes 11918 11919 # Ideally, we could use ldconfig to report *all* directores which are 11920 # searched for libraries, however this is still not possible. Aside from not 11921 # being certain /sbin/ldconfig is available, command 11922 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11923 # even though it is searched at run-time. Try to do the best guess by 11924 # appending ld.so.conf contents (and includes) to the search path. 11925 if test -f /etc/ld.so.conf; then 11926 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' ' '` 11927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11928 fi 11929 11930 # We used to test for /lib/ld.so.1 and disable shared libraries on 11931 # powerpc, because MkLinux only supported shared libraries with the 11932 # GNU dynamic linker. Since this was broken with cross compilers, 11933 # most powerpc-linux boxes support dynamic linking these days and 11934 # people can always --disable-shared, the test was removed, and we 11935 # assume the GNU/Linux dynamic linker is in use. 11936 dynamic_linker='GNU/Linux ld.so' 11937 ;; 11938 11939 netbsd*) 11940 version_type=sunos 11941 need_lib_prefix=no 11942 need_version=no 11943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11944 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11946 dynamic_linker='NetBSD (a.out) ld.so' 11947 else 11948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11949 soname_spec='$libname$release$shared_ext$major' 11950 dynamic_linker='NetBSD ld.elf_so' 11951 fi 11952 shlibpath_var=LD_LIBRARY_PATH 11953 shlibpath_overrides_runpath=yes 11954 hardcode_into_libs=yes 11955 ;; 11956 11957 newsos6) 11958 version_type=linux # correct to gnu/linux during the next big refactor 11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11960 shlibpath_var=LD_LIBRARY_PATH 11961 shlibpath_overrides_runpath=yes 11962 ;; 11963 11964 *nto* | *qnx*) 11965 version_type=qnx 11966 need_lib_prefix=no 11967 need_version=no 11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11969 soname_spec='$libname$release$shared_ext$major' 11970 shlibpath_var=LD_LIBRARY_PATH 11971 shlibpath_overrides_runpath=no 11972 hardcode_into_libs=yes 11973 dynamic_linker='ldqnx.so' 11974 ;; 11975 11976 openbsd* | bitrig*) 11977 version_type=sunos 11978 sys_lib_dlsearch_path_spec=/usr/lib 11979 need_lib_prefix=no 11980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11981 need_version=no 11982 else 11983 need_version=yes 11984 fi 11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11987 shlibpath_var=LD_LIBRARY_PATH 11988 shlibpath_overrides_runpath=yes 11989 ;; 11990 11991 os2*) 11992 libname_spec='$name' 11993 version_type=windows 11994 shrext_cmds=.dll 11995 need_version=no 11996 need_lib_prefix=no 11997 # OS/2 can only load a DLL with a base name of 8 characters or less. 11998 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11999 v=$($ECHO $release$versuffix | tr -d .-); 12000 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12001 $ECHO $n$v`$shared_ext' 12002 library_names_spec='${libname}_dll.$libext' 12003 dynamic_linker='OS/2 ld.exe' 12004 shlibpath_var=BEGINLIBPATH 12005 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12007 postinstall_cmds='base_file=`basename \$file`~ 12008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12009 dldir=$destdir/`dirname \$dlpath`~ 12010 test -d \$dldir || mkdir -p \$dldir~ 12011 $install_prog $dir/$dlname \$dldir/$dlname~ 12012 chmod a+x \$dldir/$dlname~ 12013 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12014 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12015 fi' 12016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12017 dlpath=$dir/\$dldll~ 12018 $RM \$dlpath' 12019 ;; 12020 12021 osf3* | osf4* | osf5*) 12022 version_type=osf 12023 need_lib_prefix=no 12024 need_version=no 12025 soname_spec='$libname$release$shared_ext$major' 12026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12027 shlibpath_var=LD_LIBRARY_PATH 12028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12030 ;; 12031 12032 rdos*) 12033 dynamic_linker=no 12034 ;; 12035 12036 solaris*) 12037 version_type=linux # correct to gnu/linux during the next big refactor 12038 need_lib_prefix=no 12039 need_version=no 12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12041 soname_spec='$libname$release$shared_ext$major' 12042 shlibpath_var=LD_LIBRARY_PATH 12043 shlibpath_overrides_runpath=yes 12044 hardcode_into_libs=yes 12045 # ldd complains unless libraries are executable 12046 postinstall_cmds='chmod +x $lib' 12047 ;; 12048 12049 sunos4*) 12050 version_type=sunos 12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12053 shlibpath_var=LD_LIBRARY_PATH 12054 shlibpath_overrides_runpath=yes 12055 if test yes = "$with_gnu_ld"; then 12056 need_lib_prefix=no 12057 fi 12058 need_version=yes 12059 ;; 12060 12061 sysv4 | sysv4.3*) 12062 version_type=linux # correct to gnu/linux during the next big refactor 12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12064 soname_spec='$libname$release$shared_ext$major' 12065 shlibpath_var=LD_LIBRARY_PATH 12066 case $host_vendor in 12067 sni) 12068 shlibpath_overrides_runpath=no 12069 need_lib_prefix=no 12070 runpath_var=LD_RUN_PATH 12071 ;; 12072 siemens) 12073 need_lib_prefix=no 12074 ;; 12075 motorola) 12076 need_lib_prefix=no 12077 need_version=no 12078 shlibpath_overrides_runpath=no 12079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12080 ;; 12081 esac 12082 ;; 12083 12084 sysv4*MP*) 12085 if test -d /usr/nec; then 12086 version_type=linux # correct to gnu/linux during the next big refactor 12087 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12088 soname_spec='$libname$shared_ext.$major' 12089 shlibpath_var=LD_LIBRARY_PATH 12090 fi 12091 ;; 12092 12093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12094 version_type=sco 12095 need_lib_prefix=no 12096 need_version=no 12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12098 soname_spec='$libname$release$shared_ext$major' 12099 shlibpath_var=LD_LIBRARY_PATH 12100 shlibpath_overrides_runpath=yes 12101 hardcode_into_libs=yes 12102 if test yes = "$with_gnu_ld"; then 12103 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12104 else 12105 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12106 case $host_os in 12107 sco3.2v5*) 12108 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12109 ;; 12110 esac 12111 fi 12112 sys_lib_dlsearch_path_spec='/usr/lib' 12113 ;; 12114 12115 tpf*) 12116 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12117 version_type=linux # correct to gnu/linux during the next big refactor 12118 need_lib_prefix=no 12119 need_version=no 12120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12121 shlibpath_var=LD_LIBRARY_PATH 12122 shlibpath_overrides_runpath=no 12123 hardcode_into_libs=yes 12124 ;; 12125 12126 uts4*) 12127 version_type=linux # correct to gnu/linux during the next big refactor 12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12129 soname_spec='$libname$release$shared_ext$major' 12130 shlibpath_var=LD_LIBRARY_PATH 12131 ;; 12132 12133 *) 12134 dynamic_linker=no 12135 ;; 12136 esac 12137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12138 printf "%s\n" "$dynamic_linker" >&6; } 12139 test no = "$dynamic_linker" && can_build_shared=no 12140 12141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12142 if test yes = "$GCC"; then 12143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12144 fi 12145 12146 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12147 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12148 fi 12149 12150 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12151 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12152 fi 12153 12154 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12155 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12156 12157 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12158 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12159 12160 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12161 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12260 printf %s "checking how to hardcode library paths into programs... " >&6; } 12261 hardcode_action= 12262 if test -n "$hardcode_libdir_flag_spec" || 12263 test -n "$runpath_var" || 12264 test yes = "$hardcode_automatic"; then 12265 12266 # We can hardcode non-existent directories. 12267 if test no != "$hardcode_direct" && 12268 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12269 # have to relink, otherwise we might link with an installed library 12270 # when we should be linking with a yet-to-be-installed one 12271 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12272 test no != "$hardcode_minus_L"; then 12273 # Linking always hardcodes the temporary library directory. 12274 hardcode_action=relink 12275 else 12276 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12277 hardcode_action=immediate 12278 fi 12279 else 12280 # We cannot hardcode anything, or else we can only hardcode existing 12281 # directories. 12282 hardcode_action=unsupported 12283 fi 12284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12285 printf "%s\n" "$hardcode_action" >&6; } 12286 12287 if test relink = "$hardcode_action" || 12288 test yes = "$inherit_rpath"; then 12289 # Fast installation is not supported 12290 enable_fast_install=no 12291 elif test yes = "$shlibpath_overrides_runpath" || 12292 test no = "$enable_shared"; then 12293 # Fast installation is not necessary 12294 enable_fast_install=needless 12295 fi 12296 12297 12298 12299 12300 12301 12302 if test yes != "$enable_dlopen"; then 12303 enable_dlopen=unknown 12304 enable_dlopen_self=unknown 12305 enable_dlopen_self_static=unknown 12306 else 12307 lt_cv_dlopen=no 12308 lt_cv_dlopen_libs= 12309 12310 case $host_os in 12311 beos*) 12312 lt_cv_dlopen=load_add_on 12313 lt_cv_dlopen_libs= 12314 lt_cv_dlopen_self=yes 12315 ;; 12316 12317 mingw* | pw32* | cegcc*) 12318 lt_cv_dlopen=LoadLibrary 12319 lt_cv_dlopen_libs= 12320 ;; 12321 12322 cygwin*) 12323 lt_cv_dlopen=dlopen 12324 lt_cv_dlopen_libs= 12325 ;; 12326 12327 darwin*) 12328 # if libdl is installed we need to link against it 12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12330 printf %s "checking for dlopen in -ldl... " >&6; } 12331 if test ${ac_cv_lib_dl_dlopen+y} 12332 then : 12333 printf %s "(cached) " >&6 12334 else case e in #( 12335 e) ac_check_lib_save_LIBS=$LIBS 12336 LIBS="-ldl $LIBS" 12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12338 /* end confdefs.h. */ 12339 12340 /* Override any GCC internal prototype to avoid an error. 12341 Use char because int might match the return type of a GCC 12342 builtin and then its argument prototype would still apply. 12343 The 'extern "C"' is for builds by C++ compilers; 12344 although this is not generally supported in C code supporting it here 12345 has little cost and some practical benefit (sr 110532). */ 12346 #ifdef __cplusplus 12347 extern "C" 12348 #endif 12349 char dlopen (void); 12350 int 12351 main (void) 12352 { 12353 return dlopen (); 12354 ; 12355 return 0; 12356 } 12357 _ACEOF 12358 if ac_fn_c_try_link "$LINENO" 12359 then : 12360 ac_cv_lib_dl_dlopen=yes 12361 else case e in #( 12362 e) ac_cv_lib_dl_dlopen=no ;; 12363 esac 12364 fi 12365 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12366 conftest$ac_exeext conftest.$ac_ext 12367 LIBS=$ac_check_lib_save_LIBS ;; 12368 esac 12369 fi 12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12371 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12372 if test "x$ac_cv_lib_dl_dlopen" = xyes 12373 then : 12374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12375 else case e in #( 12376 e) 12377 lt_cv_dlopen=dyld 12378 lt_cv_dlopen_libs= 12379 lt_cv_dlopen_self=yes 12380 ;; 12381 esac 12382 fi 12383 12384 ;; 12385 12386 tpf*) 12387 # Don't try to run any link tests for TPF. We know it's impossible 12388 # because TPF is a cross-compiler, and we know how we open DSOs. 12389 lt_cv_dlopen=dlopen 12390 lt_cv_dlopen_libs= 12391 lt_cv_dlopen_self=no 12392 ;; 12393 12394 *) 12395 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12396 if test "x$ac_cv_func_shl_load" = xyes 12397 then : 12398 lt_cv_dlopen=shl_load 12399 else case e in #( 12400 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12401 printf %s "checking for shl_load in -ldld... " >&6; } 12402 if test ${ac_cv_lib_dld_shl_load+y} 12403 then : 12404 printf %s "(cached) " >&6 12405 else case e in #( 12406 e) ac_check_lib_save_LIBS=$LIBS 12407 LIBS="-ldld $LIBS" 12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12409 /* end confdefs.h. */ 12410 12411 /* Override any GCC internal prototype to avoid an error. 12412 Use char because int might match the return type of a GCC 12413 builtin and then its argument prototype would still apply. 12414 The 'extern "C"' is for builds by C++ compilers; 12415 although this is not generally supported in C code supporting it here 12416 has little cost and some practical benefit (sr 110532). */ 12417 #ifdef __cplusplus 12418 extern "C" 12419 #endif 12420 char shl_load (void); 12421 int 12422 main (void) 12423 { 12424 return shl_load (); 12425 ; 12426 return 0; 12427 } 12428 _ACEOF 12429 if ac_fn_c_try_link "$LINENO" 12430 then : 12431 ac_cv_lib_dld_shl_load=yes 12432 else case e in #( 12433 e) ac_cv_lib_dld_shl_load=no ;; 12434 esac 12435 fi 12436 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12437 conftest$ac_exeext conftest.$ac_ext 12438 LIBS=$ac_check_lib_save_LIBS ;; 12439 esac 12440 fi 12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12442 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12443 if test "x$ac_cv_lib_dld_shl_load" = xyes 12444 then : 12445 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12446 else case e in #( 12447 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12448 if test "x$ac_cv_func_dlopen" = xyes 12449 then : 12450 lt_cv_dlopen=dlopen 12451 else case e in #( 12452 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12453 printf %s "checking for dlopen in -ldl... " >&6; } 12454 if test ${ac_cv_lib_dl_dlopen+y} 12455 then : 12456 printf %s "(cached) " >&6 12457 else case e in #( 12458 e) ac_check_lib_save_LIBS=$LIBS 12459 LIBS="-ldl $LIBS" 12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12461 /* end confdefs.h. */ 12462 12463 /* Override any GCC internal prototype to avoid an error. 12464 Use char because int might match the return type of a GCC 12465 builtin and then its argument prototype would still apply. 12466 The 'extern "C"' is for builds by C++ compilers; 12467 although this is not generally supported in C code supporting it here 12468 has little cost and some practical benefit (sr 110532). */ 12469 #ifdef __cplusplus 12470 extern "C" 12471 #endif 12472 char dlopen (void); 12473 int 12474 main (void) 12475 { 12476 return dlopen (); 12477 ; 12478 return 0; 12479 } 12480 _ACEOF 12481 if ac_fn_c_try_link "$LINENO" 12482 then : 12483 ac_cv_lib_dl_dlopen=yes 12484 else case e in #( 12485 e) ac_cv_lib_dl_dlopen=no ;; 12486 esac 12487 fi 12488 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12489 conftest$ac_exeext conftest.$ac_ext 12490 LIBS=$ac_check_lib_save_LIBS ;; 12491 esac 12492 fi 12493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12494 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12495 if test "x$ac_cv_lib_dl_dlopen" = xyes 12496 then : 12497 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12498 else case e in #( 12499 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12500 printf %s "checking for dlopen in -lsvld... " >&6; } 12501 if test ${ac_cv_lib_svld_dlopen+y} 12502 then : 12503 printf %s "(cached) " >&6 12504 else case e in #( 12505 e) ac_check_lib_save_LIBS=$LIBS 12506 LIBS="-lsvld $LIBS" 12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12508 /* end confdefs.h. */ 12509 12510 /* Override any GCC internal prototype to avoid an error. 12511 Use char because int might match the return type of a GCC 12512 builtin and then its argument prototype would still apply. 12513 The 'extern "C"' is for builds by C++ compilers; 12514 although this is not generally supported in C code supporting it here 12515 has little cost and some practical benefit (sr 110532). */ 12516 #ifdef __cplusplus 12517 extern "C" 12518 #endif 12519 char dlopen (void); 12520 int 12521 main (void) 12522 { 12523 return dlopen (); 12524 ; 12525 return 0; 12526 } 12527 _ACEOF 12528 if ac_fn_c_try_link "$LINENO" 12529 then : 12530 ac_cv_lib_svld_dlopen=yes 12531 else case e in #( 12532 e) ac_cv_lib_svld_dlopen=no ;; 12533 esac 12534 fi 12535 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12536 conftest$ac_exeext conftest.$ac_ext 12537 LIBS=$ac_check_lib_save_LIBS ;; 12538 esac 12539 fi 12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12541 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12542 if test "x$ac_cv_lib_svld_dlopen" = xyes 12543 then : 12544 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12545 else case e in #( 12546 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12547 printf %s "checking for dld_link in -ldld... " >&6; } 12548 if test ${ac_cv_lib_dld_dld_link+y} 12549 then : 12550 printf %s "(cached) " >&6 12551 else case e in #( 12552 e) ac_check_lib_save_LIBS=$LIBS 12553 LIBS="-ldld $LIBS" 12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12555 /* end confdefs.h. */ 12556 12557 /* Override any GCC internal prototype to avoid an error. 12558 Use char because int might match the return type of a GCC 12559 builtin and then its argument prototype would still apply. 12560 The 'extern "C"' is for builds by C++ compilers; 12561 although this is not generally supported in C code supporting it here 12562 has little cost and some practical benefit (sr 110532). */ 12563 #ifdef __cplusplus 12564 extern "C" 12565 #endif 12566 char dld_link (void); 12567 int 12568 main (void) 12569 { 12570 return dld_link (); 12571 ; 12572 return 0; 12573 } 12574 _ACEOF 12575 if ac_fn_c_try_link "$LINENO" 12576 then : 12577 ac_cv_lib_dld_dld_link=yes 12578 else case e in #( 12579 e) ac_cv_lib_dld_dld_link=no ;; 12580 esac 12581 fi 12582 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12583 conftest$ac_exeext conftest.$ac_ext 12584 LIBS=$ac_check_lib_save_LIBS ;; 12585 esac 12586 fi 12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12588 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12589 if test "x$ac_cv_lib_dld_dld_link" = xyes 12590 then : 12591 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12592 fi 12593 12594 ;; 12595 esac 12596 fi 12597 12598 ;; 12599 esac 12600 fi 12601 12602 ;; 12603 esac 12604 fi 12605 12606 ;; 12607 esac 12608 fi 12609 12610 ;; 12611 esac 12612 fi 12613 12614 ;; 12615 esac 12616 12617 if test no = "$lt_cv_dlopen"; then 12618 enable_dlopen=no 12619 else 12620 enable_dlopen=yes 12621 fi 12622 12623 case $lt_cv_dlopen in 12624 dlopen) 12625 save_CPPFLAGS=$CPPFLAGS 12626 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12627 12628 save_LDFLAGS=$LDFLAGS 12629 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12630 12631 save_LIBS=$LIBS 12632 LIBS="$lt_cv_dlopen_libs $LIBS" 12633 12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12635 printf %s "checking whether a program can dlopen itself... " >&6; } 12636 if test ${lt_cv_dlopen_self+y} 12637 then : 12638 printf %s "(cached) " >&6 12639 else case e in #( 12640 e) if test yes = "$cross_compiling"; then : 12641 lt_cv_dlopen_self=cross 12642 else 12643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12644 lt_status=$lt_dlunknown 12645 cat > conftest.$ac_ext <<_LT_EOF 12646 #line $LINENO "configure" 12647 #include "confdefs.h" 12648 12649 #if HAVE_DLFCN_H 12650 #include <dlfcn.h> 12651 #endif 12652 12653 #include <stdio.h> 12654 12655 #ifdef RTLD_GLOBAL 12656 # define LT_DLGLOBAL RTLD_GLOBAL 12657 #else 12658 # ifdef DL_GLOBAL 12659 # define LT_DLGLOBAL DL_GLOBAL 12660 # else 12661 # define LT_DLGLOBAL 0 12662 # endif 12663 #endif 12664 12665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12666 find out it does not work in some platform. */ 12667 #ifndef LT_DLLAZY_OR_NOW 12668 # ifdef RTLD_LAZY 12669 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12670 # else 12671 # ifdef DL_LAZY 12672 # define LT_DLLAZY_OR_NOW DL_LAZY 12673 # else 12674 # ifdef RTLD_NOW 12675 # define LT_DLLAZY_OR_NOW RTLD_NOW 12676 # else 12677 # ifdef DL_NOW 12678 # define LT_DLLAZY_OR_NOW DL_NOW 12679 # else 12680 # define LT_DLLAZY_OR_NOW 0 12681 # endif 12682 # endif 12683 # endif 12684 # endif 12685 #endif 12686 12687 /* When -fvisibility=hidden is used, assume the code has been annotated 12688 correspondingly for the symbols needed. */ 12689 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12690 int fnord () __attribute__((visibility("default"))); 12691 #endif 12692 12693 int fnord () { return 42; } 12694 int main () 12695 { 12696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12697 int status = $lt_dlunknown; 12698 12699 if (self) 12700 { 12701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12702 else 12703 { 12704 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12705 else puts (dlerror ()); 12706 } 12707 /* dlclose (self); */ 12708 } 12709 else 12710 puts (dlerror ()); 12711 12712 return status; 12713 } 12714 _LT_EOF 12715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12716 (eval $ac_link) 2>&5 12717 ac_status=$? 12718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12719 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12720 (./conftest; exit; ) >&5 2>/dev/null 12721 lt_status=$? 12722 case x$lt_status in 12723 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12724 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12725 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12726 esac 12727 else : 12728 # compilation failed 12729 lt_cv_dlopen_self=no 12730 fi 12731 fi 12732 rm -fr conftest* 12733 12734 ;; 12735 esac 12736 fi 12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12738 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12739 12740 if test yes = "$lt_cv_dlopen_self"; then 12741 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12743 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12744 if test ${lt_cv_dlopen_self_static+y} 12745 then : 12746 printf %s "(cached) " >&6 12747 else case e in #( 12748 e) if test yes = "$cross_compiling"; then : 12749 lt_cv_dlopen_self_static=cross 12750 else 12751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12752 lt_status=$lt_dlunknown 12753 cat > conftest.$ac_ext <<_LT_EOF 12754 #line $LINENO "configure" 12755 #include "confdefs.h" 12756 12757 #if HAVE_DLFCN_H 12758 #include <dlfcn.h> 12759 #endif 12760 12761 #include <stdio.h> 12762 12763 #ifdef RTLD_GLOBAL 12764 # define LT_DLGLOBAL RTLD_GLOBAL 12765 #else 12766 # ifdef DL_GLOBAL 12767 # define LT_DLGLOBAL DL_GLOBAL 12768 # else 12769 # define LT_DLGLOBAL 0 12770 # endif 12771 #endif 12772 12773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12774 find out it does not work in some platform. */ 12775 #ifndef LT_DLLAZY_OR_NOW 12776 # ifdef RTLD_LAZY 12777 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12778 # else 12779 # ifdef DL_LAZY 12780 # define LT_DLLAZY_OR_NOW DL_LAZY 12781 # else 12782 # ifdef RTLD_NOW 12783 # define LT_DLLAZY_OR_NOW RTLD_NOW 12784 # else 12785 # ifdef DL_NOW 12786 # define LT_DLLAZY_OR_NOW DL_NOW 12787 # else 12788 # define LT_DLLAZY_OR_NOW 0 12789 # endif 12790 # endif 12791 # endif 12792 # endif 12793 #endif 12794 12795 /* When -fvisibility=hidden is used, assume the code has been annotated 12796 correspondingly for the symbols needed. */ 12797 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12798 int fnord () __attribute__((visibility("default"))); 12799 #endif 12800 12801 int fnord () { return 42; } 12802 int main () 12803 { 12804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12805 int status = $lt_dlunknown; 12806 12807 if (self) 12808 { 12809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12810 else 12811 { 12812 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12813 else puts (dlerror ()); 12814 } 12815 /* dlclose (self); */ 12816 } 12817 else 12818 puts (dlerror ()); 12819 12820 return status; 12821 } 12822 _LT_EOF 12823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12824 (eval $ac_link) 2>&5 12825 ac_status=$? 12826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12827 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12828 (./conftest; exit; ) >&5 2>/dev/null 12829 lt_status=$? 12830 case x$lt_status in 12831 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12832 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12833 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12834 esac 12835 else : 12836 # compilation failed 12837 lt_cv_dlopen_self_static=no 12838 fi 12839 fi 12840 rm -fr conftest* 12841 12842 ;; 12843 esac 12844 fi 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12846 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12847 fi 12848 12849 CPPFLAGS=$save_CPPFLAGS 12850 LDFLAGS=$save_LDFLAGS 12851 LIBS=$save_LIBS 12852 ;; 12853 esac 12854 12855 case $lt_cv_dlopen_self in 12856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12857 *) enable_dlopen_self=unknown ;; 12858 esac 12859 12860 case $lt_cv_dlopen_self_static in 12861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12862 *) enable_dlopen_self_static=unknown ;; 12863 esac 12864 fi 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 striplib= 12883 old_striplib= 12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12885 printf %s "checking whether stripping libraries is possible... " >&6; } 12886 if test -z "$STRIP"; then 12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12888 printf "%s\n" "no" >&6; } 12889 else 12890 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12891 old_striplib="$STRIP --strip-debug" 12892 striplib="$STRIP --strip-unneeded" 12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12894 printf "%s\n" "yes" >&6; } 12895 else 12896 case $host_os in 12897 darwin*) 12898 # FIXME - insert some real tests, host_os isn't really good enough 12899 striplib="$STRIP -x" 12900 old_striplib="$STRIP -S" 12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12902 printf "%s\n" "yes" >&6; } 12903 ;; 12904 freebsd*) 12905 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12906 old_striplib="$STRIP --strip-debug" 12907 striplib="$STRIP --strip-unneeded" 12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12909 printf "%s\n" "yes" >&6; } 12910 else 12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12912 printf "%s\n" "no" >&6; } 12913 fi 12914 ;; 12915 *) 12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12917 printf "%s\n" "no" >&6; } 12918 ;; 12919 esac 12920 fi 12921 fi 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 # Report what library types will actually be built 12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12936 printf %s "checking if libtool supports shared libraries... " >&6; } 12937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12938 printf "%s\n" "$can_build_shared" >&6; } 12939 12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12941 printf %s "checking whether to build shared libraries... " >&6; } 12942 test no = "$can_build_shared" && enable_shared=no 12943 12944 # On AIX, shared libraries and static libraries use the same namespace, and 12945 # are all built from PIC. 12946 case $host_os in 12947 aix3*) 12948 test yes = "$enable_shared" && enable_static=no 12949 if test -n "$RANLIB"; then 12950 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12951 postinstall_cmds='$RANLIB $lib' 12952 fi 12953 ;; 12954 12955 aix[4-9]*) 12956 if test ia64 != "$host_cpu"; then 12957 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12958 yes,aix,yes) ;; # shared object as lib.so file only 12959 yes,svr4,*) ;; # shared object as lib.so archive member only 12960 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12961 esac 12962 fi 12963 ;; 12964 esac 12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12966 printf "%s\n" "$enable_shared" >&6; } 12967 12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12969 printf %s "checking whether to build static libraries... " >&6; } 12970 # Make sure either enable_shared or enable_static is yes. 12971 test yes = "$enable_shared" || enable_static=yes 12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12973 printf "%s\n" "$enable_static" >&6; } 12974 12975 12976 12977 12978 fi 12979 ac_ext=c 12980 ac_cpp='$CPP $CPPFLAGS' 12981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12983 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12984 12985 CC=$lt_save_CC 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 ac_config_commands="$ac_config_commands libtool" 13002 13003 13004 13005 13006 # Only expand once: 13007 13008 13009 13010 # Require X.Org macros 1.8 or later 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13023 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13024 if test ${ac_cv_c_undeclared_builtin_options+y} 13025 then : 13026 printf %s "(cached) " >&6 13027 else case e in #( 13028 e) ac_save_CFLAGS=$CFLAGS 13029 ac_cv_c_undeclared_builtin_options='cannot detect' 13030 for ac_arg in '' -fno-builtin; do 13031 CFLAGS="$ac_save_CFLAGS $ac_arg" 13032 # This test program should *not* compile successfully. 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034 /* end confdefs.h. */ 13035 13036 int 13037 main (void) 13038 { 13039 (void) strchr; 13040 ; 13041 return 0; 13042 } 13043 _ACEOF 13044 if ac_fn_c_try_compile "$LINENO" 13045 then : 13046 13047 else case e in #( 13048 e) # This test program should compile successfully. 13049 # No library function is consistently available on 13050 # freestanding implementations, so test against a dummy 13051 # declaration. Include always-available headers on the 13052 # off chance that they somehow elicit warnings. 13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13054 /* end confdefs.h. */ 13055 #include <float.h> 13056 #include <limits.h> 13057 #include <stdarg.h> 13058 #include <stddef.h> 13059 extern void ac_decl (int, char *); 13060 13061 int 13062 main (void) 13063 { 13064 (void) ac_decl (0, (char *) 0); 13065 (void) ac_decl; 13066 13067 ; 13068 return 0; 13069 } 13070 _ACEOF 13071 if ac_fn_c_try_compile "$LINENO" 13072 then : 13073 if test x"$ac_arg" = x 13074 then : 13075 ac_cv_c_undeclared_builtin_options='none needed' 13076 else case e in #( 13077 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13078 esac 13079 fi 13080 break 13081 fi 13082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13083 esac 13084 fi 13085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13086 done 13087 CFLAGS=$ac_save_CFLAGS 13088 ;; 13089 esac 13090 fi 13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13092 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13093 case $ac_cv_c_undeclared_builtin_options in #( 13094 'cannot detect') : 13095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13096 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13097 as_fn_error $? "cannot make $CC report undeclared builtins 13098 See 'config.log' for more details" "$LINENO" 5; } ;; #( 13099 'none needed') : 13100 ac_c_undeclared_builtin_options='' ;; #( 13101 *) : 13102 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13103 esac 13104 13105 13106 13107 13108 13109 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13110 if test "x$ac_cv_have_decl___clang__" = xyes 13111 then : 13112 CLANGCC="yes" 13113 else case e in #( 13114 e) CLANGCC="no" ;; 13115 esac 13116 fi 13117 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13118 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13119 then : 13120 INTELCC="yes" 13121 else case e in #( 13122 e) INTELCC="no" ;; 13123 esac 13124 fi 13125 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13126 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13127 then : 13128 SUNCC="yes" 13129 else case e in #( 13130 e) SUNCC="no" ;; 13131 esac 13132 fi 13133 13134 13135 13136 13137 13138 13139 13140 13141 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13142 if test -n "$ac_tool_prefix"; then 13143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13144 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13146 printf %s "checking for $ac_word... " >&6; } 13147 if test ${ac_cv_path_PKG_CONFIG+y} 13148 then : 13149 printf %s "(cached) " >&6 13150 else case e in #( 13151 e) case $PKG_CONFIG in 13152 [\\/]* | ?:[\\/]*) 13153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13154 ;; 13155 *) 13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13157 for as_dir in $PATH 13158 do 13159 IFS=$as_save_IFS 13160 case $as_dir in #((( 13161 '') as_dir=./ ;; 13162 */) ;; 13163 *) as_dir=$as_dir/ ;; 13164 esac 13165 for ac_exec_ext in '' $ac_executable_extensions; do 13166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13167 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13169 break 2 13170 fi 13171 done 13172 done 13173 IFS=$as_save_IFS 13174 13175 ;; 13176 esac ;; 13177 esac 13178 fi 13179 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13180 if test -n "$PKG_CONFIG"; then 13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13182 printf "%s\n" "$PKG_CONFIG" >&6; } 13183 else 13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13185 printf "%s\n" "no" >&6; } 13186 fi 13187 13188 13189 fi 13190 if test -z "$ac_cv_path_PKG_CONFIG"; then 13191 ac_pt_PKG_CONFIG=$PKG_CONFIG 13192 # Extract the first word of "pkg-config", so it can be a program name with args. 13193 set dummy pkg-config; ac_word=$2 13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13195 printf %s "checking for $ac_word... " >&6; } 13196 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13197 then : 13198 printf %s "(cached) " >&6 13199 else case e in #( 13200 e) case $ac_pt_PKG_CONFIG in 13201 [\\/]* | ?:[\\/]*) 13202 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13203 ;; 13204 *) 13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13206 for as_dir in $PATH 13207 do 13208 IFS=$as_save_IFS 13209 case $as_dir in #((( 13210 '') as_dir=./ ;; 13211 */) ;; 13212 *) as_dir=$as_dir/ ;; 13213 esac 13214 for ac_exec_ext in '' $ac_executable_extensions; do 13215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13216 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13218 break 2 13219 fi 13220 done 13221 done 13222 IFS=$as_save_IFS 13223 13224 ;; 13225 esac ;; 13226 esac 13227 fi 13228 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13229 if test -n "$ac_pt_PKG_CONFIG"; then 13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13231 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13232 else 13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13234 printf "%s\n" "no" >&6; } 13235 fi 13236 13237 if test "x$ac_pt_PKG_CONFIG" = x; then 13238 PKG_CONFIG="" 13239 else 13240 case $cross_compiling:$ac_tool_warned in 13241 yes:) 13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13244 ac_tool_warned=yes ;; 13245 esac 13246 PKG_CONFIG=$ac_pt_PKG_CONFIG 13247 fi 13248 else 13249 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13250 fi 13251 13252 fi 13253 if test -n "$PKG_CONFIG"; then 13254 _pkg_min_version=0.9.0 13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13256 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13257 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13259 printf "%s\n" "yes" >&6; } 13260 else 13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13262 printf "%s\n" "no" >&6; } 13263 PKG_CONFIG="" 13264 fi 13265 fi 13266 13267 13268 13269 13270 13271 # Check whether --enable-selective-werror was given. 13272 if test ${enable_selective_werror+y} 13273 then : 13274 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13275 else case e in #( 13276 e) SELECTIVE_WERROR=yes ;; 13277 esac 13278 fi 13279 13280 13281 13282 13283 13284 # -v is too short to test reliably with XORG_TESTSET_CFLAG 13285 if test "x$SUNCC" = "xyes"; then 13286 BASE_CFLAGS="-v" 13287 else 13288 BASE_CFLAGS="" 13289 fi 13290 13291 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 xorg_testset_save_CFLAGS="$CFLAGS" 13306 13307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13311 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13312 then : 13313 printf %s "(cached) " >&6 13314 else case e in #( 13315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316 /* end confdefs.h. */ 13317 int i; 13318 _ACEOF 13319 if ac_fn_c_try_compile "$LINENO" 13320 then : 13321 xorg_cv_cc_flag_unknown_warning_option=yes 13322 else case e in #( 13323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13324 esac 13325 fi 13326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13327 esac 13328 fi 13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13332 CFLAGS="$xorg_testset_save_CFLAGS" 13333 fi 13334 13335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13338 fi 13339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13343 then : 13344 printf %s "(cached) " >&6 13345 else case e in #( 13346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13347 /* end confdefs.h. */ 13348 int i; 13349 _ACEOF 13350 if ac_fn_c_try_compile "$LINENO" 13351 then : 13352 xorg_cv_cc_flag_unused_command_line_argument=yes 13353 else case e in #( 13354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13355 esac 13356 fi 13357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13358 esac 13359 fi 13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13363 CFLAGS="$xorg_testset_save_CFLAGS" 13364 fi 13365 13366 found="no" 13367 13368 if test $found = "no" ; then 13369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13371 fi 13372 13373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13375 fi 13376 13377 CFLAGS="$CFLAGS -Wall" 13378 13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13380 printf %s "checking if $CC supports -Wall... " >&6; } 13381 cacheid=xorg_cv_cc_flag__Wall 13382 if eval test \${$cacheid+y} 13383 then : 13384 printf %s "(cached) " >&6 13385 else case e in #( 13386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13387 /* end confdefs.h. */ 13388 int i; 13389 int 13390 main (void) 13391 { 13392 13393 ; 13394 return 0; 13395 } 13396 _ACEOF 13397 if ac_fn_c_try_link "$LINENO" 13398 then : 13399 eval $cacheid=yes 13400 else case e in #( 13401 e) eval $cacheid=no ;; 13402 esac 13403 fi 13404 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13405 conftest$ac_exeext conftest.$ac_ext ;; 13406 esac 13407 fi 13408 13409 13410 CFLAGS="$xorg_testset_save_CFLAGS" 13411 13412 eval supported=\$$cacheid 13413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13414 printf "%s\n" "$supported" >&6; } 13415 if test "$supported" = "yes" ; then 13416 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13417 found="yes" 13418 fi 13419 fi 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 xorg_testset_save_CFLAGS="$CFLAGS" 13436 13437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13441 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13442 then : 13443 printf %s "(cached) " >&6 13444 else case e in #( 13445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13446 /* end confdefs.h. */ 13447 int i; 13448 _ACEOF 13449 if ac_fn_c_try_compile "$LINENO" 13450 then : 13451 xorg_cv_cc_flag_unknown_warning_option=yes 13452 else case e in #( 13453 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13454 esac 13455 fi 13456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13457 esac 13458 fi 13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13460 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13462 CFLAGS="$xorg_testset_save_CFLAGS" 13463 fi 13464 13465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13468 fi 13469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13473 then : 13474 printf %s "(cached) " >&6 13475 else case e in #( 13476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13477 /* end confdefs.h. */ 13478 int i; 13479 _ACEOF 13480 if ac_fn_c_try_compile "$LINENO" 13481 then : 13482 xorg_cv_cc_flag_unused_command_line_argument=yes 13483 else case e in #( 13484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13485 esac 13486 fi 13487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13488 esac 13489 fi 13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13491 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13493 CFLAGS="$xorg_testset_save_CFLAGS" 13494 fi 13495 13496 found="no" 13497 13498 if test $found = "no" ; then 13499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13501 fi 13502 13503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13505 fi 13506 13507 CFLAGS="$CFLAGS -Wpointer-arith" 13508 13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13510 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13511 cacheid=xorg_cv_cc_flag__Wpointer_arith 13512 if eval test \${$cacheid+y} 13513 then : 13514 printf %s "(cached) " >&6 13515 else case e in #( 13516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13517 /* end confdefs.h. */ 13518 int i; 13519 int 13520 main (void) 13521 { 13522 13523 ; 13524 return 0; 13525 } 13526 _ACEOF 13527 if ac_fn_c_try_link "$LINENO" 13528 then : 13529 eval $cacheid=yes 13530 else case e in #( 13531 e) eval $cacheid=no ;; 13532 esac 13533 fi 13534 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13535 conftest$ac_exeext conftest.$ac_ext ;; 13536 esac 13537 fi 13538 13539 13540 CFLAGS="$xorg_testset_save_CFLAGS" 13541 13542 eval supported=\$$cacheid 13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13544 printf "%s\n" "$supported" >&6; } 13545 if test "$supported" = "yes" ; then 13546 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13547 found="yes" 13548 fi 13549 fi 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 xorg_testset_save_CFLAGS="$CFLAGS" 13566 13567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13570 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13571 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13572 then : 13573 printf %s "(cached) " >&6 13574 else case e in #( 13575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13576 /* end confdefs.h. */ 13577 int i; 13578 _ACEOF 13579 if ac_fn_c_try_compile "$LINENO" 13580 then : 13581 xorg_cv_cc_flag_unknown_warning_option=yes 13582 else case e in #( 13583 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13584 esac 13585 fi 13586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13587 esac 13588 fi 13589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13590 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593 fi 13594 13595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13598 fi 13599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13603 then : 13604 printf %s "(cached) " >&6 13605 else case e in #( 13606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13607 /* end confdefs.h. */ 13608 int i; 13609 _ACEOF 13610 if ac_fn_c_try_compile "$LINENO" 13611 then : 13612 xorg_cv_cc_flag_unused_command_line_argument=yes 13613 else case e in #( 13614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13615 esac 13616 fi 13617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13618 esac 13619 fi 13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13621 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13623 CFLAGS="$xorg_testset_save_CFLAGS" 13624 fi 13625 13626 found="no" 13627 13628 if test $found = "no" ; then 13629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13631 fi 13632 13633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13635 fi 13636 13637 CFLAGS="$CFLAGS -Wmissing-declarations" 13638 13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13640 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13641 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13642 if eval test \${$cacheid+y} 13643 then : 13644 printf %s "(cached) " >&6 13645 else case e in #( 13646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647 /* end confdefs.h. */ 13648 int i; 13649 int 13650 main (void) 13651 { 13652 13653 ; 13654 return 0; 13655 } 13656 _ACEOF 13657 if ac_fn_c_try_link "$LINENO" 13658 then : 13659 eval $cacheid=yes 13660 else case e in #( 13661 e) eval $cacheid=no ;; 13662 esac 13663 fi 13664 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13665 conftest$ac_exeext conftest.$ac_ext ;; 13666 esac 13667 fi 13668 13669 13670 CFLAGS="$xorg_testset_save_CFLAGS" 13671 13672 eval supported=\$$cacheid 13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13674 printf "%s\n" "$supported" >&6; } 13675 if test "$supported" = "yes" ; then 13676 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13677 found="yes" 13678 fi 13679 fi 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 xorg_testset_save_CFLAGS="$CFLAGS" 13696 13697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13700 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13701 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13702 then : 13703 printf %s "(cached) " >&6 13704 else case e in #( 13705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13706 /* end confdefs.h. */ 13707 int i; 13708 _ACEOF 13709 if ac_fn_c_try_compile "$LINENO" 13710 then : 13711 xorg_cv_cc_flag_unknown_warning_option=yes 13712 else case e in #( 13713 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13714 esac 13715 fi 13716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13717 esac 13718 fi 13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13722 CFLAGS="$xorg_testset_save_CFLAGS" 13723 fi 13724 13725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13728 fi 13729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13733 then : 13734 printf %s "(cached) " >&6 13735 else case e in #( 13736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13737 /* end confdefs.h. */ 13738 int i; 13739 _ACEOF 13740 if ac_fn_c_try_compile "$LINENO" 13741 then : 13742 xorg_cv_cc_flag_unused_command_line_argument=yes 13743 else case e in #( 13744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13745 esac 13746 fi 13747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13748 esac 13749 fi 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13753 CFLAGS="$xorg_testset_save_CFLAGS" 13754 fi 13755 13756 found="no" 13757 13758 if test $found = "no" ; then 13759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13761 fi 13762 13763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13765 fi 13766 13767 CFLAGS="$CFLAGS -Wformat=2" 13768 13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13770 printf %s "checking if $CC supports -Wformat=2... " >&6; } 13771 cacheid=xorg_cv_cc_flag__Wformat_2 13772 if eval test \${$cacheid+y} 13773 then : 13774 printf %s "(cached) " >&6 13775 else case e in #( 13776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13777 /* end confdefs.h. */ 13778 int i; 13779 int 13780 main (void) 13781 { 13782 13783 ; 13784 return 0; 13785 } 13786 _ACEOF 13787 if ac_fn_c_try_link "$LINENO" 13788 then : 13789 eval $cacheid=yes 13790 else case e in #( 13791 e) eval $cacheid=no ;; 13792 esac 13793 fi 13794 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13795 conftest$ac_exeext conftest.$ac_ext ;; 13796 esac 13797 fi 13798 13799 13800 CFLAGS="$xorg_testset_save_CFLAGS" 13801 13802 eval supported=\$$cacheid 13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13804 printf "%s\n" "$supported" >&6; } 13805 if test "$supported" = "yes" ; then 13806 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13807 found="yes" 13808 fi 13809 fi 13810 13811 if test $found = "no" ; then 13812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13814 fi 13815 13816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13818 fi 13819 13820 CFLAGS="$CFLAGS -Wformat" 13821 13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13823 printf %s "checking if $CC supports -Wformat... " >&6; } 13824 cacheid=xorg_cv_cc_flag__Wformat 13825 if eval test \${$cacheid+y} 13826 then : 13827 printf %s "(cached) " >&6 13828 else case e in #( 13829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13830 /* end confdefs.h. */ 13831 int i; 13832 int 13833 main (void) 13834 { 13835 13836 ; 13837 return 0; 13838 } 13839 _ACEOF 13840 if ac_fn_c_try_link "$LINENO" 13841 then : 13842 eval $cacheid=yes 13843 else case e in #( 13844 e) eval $cacheid=no ;; 13845 esac 13846 fi 13847 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13848 conftest$ac_exeext conftest.$ac_ext ;; 13849 esac 13850 fi 13851 13852 13853 CFLAGS="$xorg_testset_save_CFLAGS" 13854 13855 eval supported=\$$cacheid 13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13857 printf "%s\n" "$supported" >&6; } 13858 if test "$supported" = "yes" ; then 13859 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13860 found="yes" 13861 fi 13862 fi 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 xorg_testset_save_CFLAGS="$CFLAGS" 13881 13882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13885 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13886 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13887 then : 13888 printf %s "(cached) " >&6 13889 else case e in #( 13890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13891 /* end confdefs.h. */ 13892 int i; 13893 _ACEOF 13894 if ac_fn_c_try_compile "$LINENO" 13895 then : 13896 xorg_cv_cc_flag_unknown_warning_option=yes 13897 else case e in #( 13898 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13899 esac 13900 fi 13901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13902 esac 13903 fi 13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13907 CFLAGS="$xorg_testset_save_CFLAGS" 13908 fi 13909 13910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13913 fi 13914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13918 then : 13919 printf %s "(cached) " >&6 13920 else case e in #( 13921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13922 /* end confdefs.h. */ 13923 int i; 13924 _ACEOF 13925 if ac_fn_c_try_compile "$LINENO" 13926 then : 13927 xorg_cv_cc_flag_unused_command_line_argument=yes 13928 else case e in #( 13929 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13930 esac 13931 fi 13932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13933 esac 13934 fi 13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13936 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13938 CFLAGS="$xorg_testset_save_CFLAGS" 13939 fi 13940 13941 found="no" 13942 13943 if test $found = "no" ; then 13944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13946 fi 13947 13948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13950 fi 13951 13952 CFLAGS="$CFLAGS -Wstrict-prototypes" 13953 13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13955 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13956 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13957 if eval test \${$cacheid+y} 13958 then : 13959 printf %s "(cached) " >&6 13960 else case e in #( 13961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13962 /* end confdefs.h. */ 13963 int i; 13964 int 13965 main (void) 13966 { 13967 13968 ; 13969 return 0; 13970 } 13971 _ACEOF 13972 if ac_fn_c_try_link "$LINENO" 13973 then : 13974 eval $cacheid=yes 13975 else case e in #( 13976 e) eval $cacheid=no ;; 13977 esac 13978 fi 13979 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13980 conftest$ac_exeext conftest.$ac_ext ;; 13981 esac 13982 fi 13983 13984 13985 CFLAGS="$xorg_testset_save_CFLAGS" 13986 13987 eval supported=\$$cacheid 13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13989 printf "%s\n" "$supported" >&6; } 13990 if test "$supported" = "yes" ; then 13991 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13992 found="yes" 13993 fi 13994 fi 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 xorg_testset_save_CFLAGS="$CFLAGS" 14011 14012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14015 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14016 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14017 then : 14018 printf %s "(cached) " >&6 14019 else case e in #( 14020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021 /* end confdefs.h. */ 14022 int i; 14023 _ACEOF 14024 if ac_fn_c_try_compile "$LINENO" 14025 then : 14026 xorg_cv_cc_flag_unknown_warning_option=yes 14027 else case e in #( 14028 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14029 esac 14030 fi 14031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14032 esac 14033 fi 14034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14035 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14037 CFLAGS="$xorg_testset_save_CFLAGS" 14038 fi 14039 14040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14043 fi 14044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14046 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14047 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14048 then : 14049 printf %s "(cached) " >&6 14050 else case e in #( 14051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052 /* end confdefs.h. */ 14053 int i; 14054 _ACEOF 14055 if ac_fn_c_try_compile "$LINENO" 14056 then : 14057 xorg_cv_cc_flag_unused_command_line_argument=yes 14058 else case e in #( 14059 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14060 esac 14061 fi 14062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14063 esac 14064 fi 14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14066 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14068 CFLAGS="$xorg_testset_save_CFLAGS" 14069 fi 14070 14071 found="no" 14072 14073 if test $found = "no" ; then 14074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14076 fi 14077 14078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14080 fi 14081 14082 CFLAGS="$CFLAGS -Wmissing-prototypes" 14083 14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14085 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14086 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14087 if eval test \${$cacheid+y} 14088 then : 14089 printf %s "(cached) " >&6 14090 else case e in #( 14091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092 /* end confdefs.h. */ 14093 int i; 14094 int 14095 main (void) 14096 { 14097 14098 ; 14099 return 0; 14100 } 14101 _ACEOF 14102 if ac_fn_c_try_link "$LINENO" 14103 then : 14104 eval $cacheid=yes 14105 else case e in #( 14106 e) eval $cacheid=no ;; 14107 esac 14108 fi 14109 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14110 conftest$ac_exeext conftest.$ac_ext ;; 14111 esac 14112 fi 14113 14114 14115 CFLAGS="$xorg_testset_save_CFLAGS" 14116 14117 eval supported=\$$cacheid 14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14119 printf "%s\n" "$supported" >&6; } 14120 if test "$supported" = "yes" ; then 14121 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14122 found="yes" 14123 fi 14124 fi 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 xorg_testset_save_CFLAGS="$CFLAGS" 14141 14142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14145 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14146 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14147 then : 14148 printf %s "(cached) " >&6 14149 else case e in #( 14150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14151 /* end confdefs.h. */ 14152 int i; 14153 _ACEOF 14154 if ac_fn_c_try_compile "$LINENO" 14155 then : 14156 xorg_cv_cc_flag_unknown_warning_option=yes 14157 else case e in #( 14158 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14159 esac 14160 fi 14161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14162 esac 14163 fi 14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14165 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14167 CFLAGS="$xorg_testset_save_CFLAGS" 14168 fi 14169 14170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14173 fi 14174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14178 then : 14179 printf %s "(cached) " >&6 14180 else case e in #( 14181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14182 /* end confdefs.h. */ 14183 int i; 14184 _ACEOF 14185 if ac_fn_c_try_compile "$LINENO" 14186 then : 14187 xorg_cv_cc_flag_unused_command_line_argument=yes 14188 else case e in #( 14189 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14190 esac 14191 fi 14192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14193 esac 14194 fi 14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14196 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14198 CFLAGS="$xorg_testset_save_CFLAGS" 14199 fi 14200 14201 found="no" 14202 14203 if test $found = "no" ; then 14204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14206 fi 14207 14208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14210 fi 14211 14212 CFLAGS="$CFLAGS -Wnested-externs" 14213 14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14215 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14216 cacheid=xorg_cv_cc_flag__Wnested_externs 14217 if eval test \${$cacheid+y} 14218 then : 14219 printf %s "(cached) " >&6 14220 else case e in #( 14221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14222 /* end confdefs.h. */ 14223 int i; 14224 int 14225 main (void) 14226 { 14227 14228 ; 14229 return 0; 14230 } 14231 _ACEOF 14232 if ac_fn_c_try_link "$LINENO" 14233 then : 14234 eval $cacheid=yes 14235 else case e in #( 14236 e) eval $cacheid=no ;; 14237 esac 14238 fi 14239 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14240 conftest$ac_exeext conftest.$ac_ext ;; 14241 esac 14242 fi 14243 14244 14245 CFLAGS="$xorg_testset_save_CFLAGS" 14246 14247 eval supported=\$$cacheid 14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14249 printf "%s\n" "$supported" >&6; } 14250 if test "$supported" = "yes" ; then 14251 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14252 found="yes" 14253 fi 14254 fi 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 xorg_testset_save_CFLAGS="$CFLAGS" 14271 14272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14276 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14277 then : 14278 printf %s "(cached) " >&6 14279 else case e in #( 14280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14281 /* end confdefs.h. */ 14282 int i; 14283 _ACEOF 14284 if ac_fn_c_try_compile "$LINENO" 14285 then : 14286 xorg_cv_cc_flag_unknown_warning_option=yes 14287 else case e in #( 14288 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14289 esac 14290 fi 14291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14292 esac 14293 fi 14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14295 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14297 CFLAGS="$xorg_testset_save_CFLAGS" 14298 fi 14299 14300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14303 fi 14304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14306 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14307 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14308 then : 14309 printf %s "(cached) " >&6 14310 else case e in #( 14311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14312 /* end confdefs.h. */ 14313 int i; 14314 _ACEOF 14315 if ac_fn_c_try_compile "$LINENO" 14316 then : 14317 xorg_cv_cc_flag_unused_command_line_argument=yes 14318 else case e in #( 14319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14320 esac 14321 fi 14322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14323 esac 14324 fi 14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14326 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14328 CFLAGS="$xorg_testset_save_CFLAGS" 14329 fi 14330 14331 found="no" 14332 14333 if test $found = "no" ; then 14334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14336 fi 14337 14338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14340 fi 14341 14342 CFLAGS="$CFLAGS -Wbad-function-cast" 14343 14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14345 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14346 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14347 if eval test \${$cacheid+y} 14348 then : 14349 printf %s "(cached) " >&6 14350 else case e in #( 14351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352 /* end confdefs.h. */ 14353 int i; 14354 int 14355 main (void) 14356 { 14357 14358 ; 14359 return 0; 14360 } 14361 _ACEOF 14362 if ac_fn_c_try_link "$LINENO" 14363 then : 14364 eval $cacheid=yes 14365 else case e in #( 14366 e) eval $cacheid=no ;; 14367 esac 14368 fi 14369 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14370 conftest$ac_exeext conftest.$ac_ext ;; 14371 esac 14372 fi 14373 14374 14375 CFLAGS="$xorg_testset_save_CFLAGS" 14376 14377 eval supported=\$$cacheid 14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14379 printf "%s\n" "$supported" >&6; } 14380 if test "$supported" = "yes" ; then 14381 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14382 found="yes" 14383 fi 14384 fi 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 xorg_testset_save_CFLAGS="$CFLAGS" 14401 14402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14405 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14406 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14407 then : 14408 printf %s "(cached) " >&6 14409 else case e in #( 14410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14411 /* end confdefs.h. */ 14412 int i; 14413 _ACEOF 14414 if ac_fn_c_try_compile "$LINENO" 14415 then : 14416 xorg_cv_cc_flag_unknown_warning_option=yes 14417 else case e in #( 14418 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14419 esac 14420 fi 14421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14422 esac 14423 fi 14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14427 CFLAGS="$xorg_testset_save_CFLAGS" 14428 fi 14429 14430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14433 fi 14434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14438 then : 14439 printf %s "(cached) " >&6 14440 else case e in #( 14441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14442 /* end confdefs.h. */ 14443 int i; 14444 _ACEOF 14445 if ac_fn_c_try_compile "$LINENO" 14446 then : 14447 xorg_cv_cc_flag_unused_command_line_argument=yes 14448 else case e in #( 14449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14450 esac 14451 fi 14452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14453 esac 14454 fi 14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14458 CFLAGS="$xorg_testset_save_CFLAGS" 14459 fi 14460 14461 found="no" 14462 14463 if test $found = "no" ; then 14464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14466 fi 14467 14468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14470 fi 14471 14472 CFLAGS="$CFLAGS -Wold-style-definition" 14473 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14475 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14476 cacheid=xorg_cv_cc_flag__Wold_style_definition 14477 if eval test \${$cacheid+y} 14478 then : 14479 printf %s "(cached) " >&6 14480 else case e in #( 14481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482 /* end confdefs.h. */ 14483 int i; 14484 int 14485 main (void) 14486 { 14487 14488 ; 14489 return 0; 14490 } 14491 _ACEOF 14492 if ac_fn_c_try_link "$LINENO" 14493 then : 14494 eval $cacheid=yes 14495 else case e in #( 14496 e) eval $cacheid=no ;; 14497 esac 14498 fi 14499 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14500 conftest$ac_exeext conftest.$ac_ext ;; 14501 esac 14502 fi 14503 14504 14505 CFLAGS="$xorg_testset_save_CFLAGS" 14506 14507 eval supported=\$$cacheid 14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14509 printf "%s\n" "$supported" >&6; } 14510 if test "$supported" = "yes" ; then 14511 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14512 found="yes" 14513 fi 14514 fi 14515 14516 if test $found = "no" ; then 14517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14519 fi 14520 14521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14523 fi 14524 14525 CFLAGS="$CFLAGS -fd" 14526 14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14528 printf %s "checking if $CC supports -fd... " >&6; } 14529 cacheid=xorg_cv_cc_flag__fd 14530 if eval test \${$cacheid+y} 14531 then : 14532 printf %s "(cached) " >&6 14533 else case e in #( 14534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14535 /* end confdefs.h. */ 14536 int i; 14537 int 14538 main (void) 14539 { 14540 14541 ; 14542 return 0; 14543 } 14544 _ACEOF 14545 if ac_fn_c_try_link "$LINENO" 14546 then : 14547 eval $cacheid=yes 14548 else case e in #( 14549 e) eval $cacheid=no ;; 14550 esac 14551 fi 14552 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14553 conftest$ac_exeext conftest.$ac_ext ;; 14554 esac 14555 fi 14556 14557 14558 CFLAGS="$xorg_testset_save_CFLAGS" 14559 14560 eval supported=\$$cacheid 14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14562 printf "%s\n" "$supported" >&6; } 14563 if test "$supported" = "yes" ; then 14564 BASE_CFLAGS="$BASE_CFLAGS -fd" 14565 found="yes" 14566 fi 14567 fi 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 xorg_testset_save_CFLAGS="$CFLAGS" 14584 14585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14589 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14590 then : 14591 printf %s "(cached) " >&6 14592 else case e in #( 14593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14594 /* end confdefs.h. */ 14595 int i; 14596 _ACEOF 14597 if ac_fn_c_try_compile "$LINENO" 14598 then : 14599 xorg_cv_cc_flag_unknown_warning_option=yes 14600 else case e in #( 14601 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14602 esac 14603 fi 14604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14605 esac 14606 fi 14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14610 CFLAGS="$xorg_testset_save_CFLAGS" 14611 fi 14612 14613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14616 fi 14617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14621 then : 14622 printf %s "(cached) " >&6 14623 else case e in #( 14624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14625 /* end confdefs.h. */ 14626 int i; 14627 _ACEOF 14628 if ac_fn_c_try_compile "$LINENO" 14629 then : 14630 xorg_cv_cc_flag_unused_command_line_argument=yes 14631 else case e in #( 14632 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14633 esac 14634 fi 14635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14636 esac 14637 fi 14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14641 CFLAGS="$xorg_testset_save_CFLAGS" 14642 fi 14643 14644 found="no" 14645 14646 if test $found = "no" ; then 14647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14649 fi 14650 14651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14653 fi 14654 14655 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14656 14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14658 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14659 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14660 if eval test \${$cacheid+y} 14661 then : 14662 printf %s "(cached) " >&6 14663 else case e in #( 14664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14665 /* end confdefs.h. */ 14666 int i; 14667 int 14668 main (void) 14669 { 14670 14671 ; 14672 return 0; 14673 } 14674 _ACEOF 14675 if ac_fn_c_try_link "$LINENO" 14676 then : 14677 eval $cacheid=yes 14678 else case e in #( 14679 e) eval $cacheid=no ;; 14680 esac 14681 fi 14682 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14683 conftest$ac_exeext conftest.$ac_ext ;; 14684 esac 14685 fi 14686 14687 14688 CFLAGS="$xorg_testset_save_CFLAGS" 14689 14690 eval supported=\$$cacheid 14691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14692 printf "%s\n" "$supported" >&6; } 14693 if test "$supported" = "yes" ; then 14694 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14695 found="yes" 14696 fi 14697 fi 14698 14699 14700 14701 14702 14703 # This chunk adds additional warnings that could catch undesired effects. 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 xorg_testset_save_CFLAGS="$CFLAGS" 14718 14719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14722 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14723 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14724 then : 14725 printf %s "(cached) " >&6 14726 else case e in #( 14727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14728 /* end confdefs.h. */ 14729 int i; 14730 _ACEOF 14731 if ac_fn_c_try_compile "$LINENO" 14732 then : 14733 xorg_cv_cc_flag_unknown_warning_option=yes 14734 else case e in #( 14735 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14736 esac 14737 fi 14738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14739 esac 14740 fi 14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14742 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14744 CFLAGS="$xorg_testset_save_CFLAGS" 14745 fi 14746 14747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14750 fi 14751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14753 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14754 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14755 then : 14756 printf %s "(cached) " >&6 14757 else case e in #( 14758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14759 /* end confdefs.h. */ 14760 int i; 14761 _ACEOF 14762 if ac_fn_c_try_compile "$LINENO" 14763 then : 14764 xorg_cv_cc_flag_unused_command_line_argument=yes 14765 else case e in #( 14766 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14767 esac 14768 fi 14769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14770 esac 14771 fi 14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14773 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14775 CFLAGS="$xorg_testset_save_CFLAGS" 14776 fi 14777 14778 found="no" 14779 14780 if test $found = "no" ; then 14781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14783 fi 14784 14785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14787 fi 14788 14789 CFLAGS="$CFLAGS -Wunused" 14790 14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14792 printf %s "checking if $CC supports -Wunused... " >&6; } 14793 cacheid=xorg_cv_cc_flag__Wunused 14794 if eval test \${$cacheid+y} 14795 then : 14796 printf %s "(cached) " >&6 14797 else case e in #( 14798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14799 /* end confdefs.h. */ 14800 int i; 14801 int 14802 main (void) 14803 { 14804 14805 ; 14806 return 0; 14807 } 14808 _ACEOF 14809 if ac_fn_c_try_link "$LINENO" 14810 then : 14811 eval $cacheid=yes 14812 else case e in #( 14813 e) eval $cacheid=no ;; 14814 esac 14815 fi 14816 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14817 conftest$ac_exeext conftest.$ac_ext ;; 14818 esac 14819 fi 14820 14821 14822 CFLAGS="$xorg_testset_save_CFLAGS" 14823 14824 eval supported=\$$cacheid 14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14826 printf "%s\n" "$supported" >&6; } 14827 if test "$supported" = "yes" ; then 14828 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14829 found="yes" 14830 fi 14831 fi 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 xorg_testset_save_CFLAGS="$CFLAGS" 14848 14849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14852 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14853 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14854 then : 14855 printf %s "(cached) " >&6 14856 else case e in #( 14857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14858 /* end confdefs.h. */ 14859 int i; 14860 _ACEOF 14861 if ac_fn_c_try_compile "$LINENO" 14862 then : 14863 xorg_cv_cc_flag_unknown_warning_option=yes 14864 else case e in #( 14865 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14866 esac 14867 fi 14868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14869 esac 14870 fi 14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14872 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14874 CFLAGS="$xorg_testset_save_CFLAGS" 14875 fi 14876 14877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14880 fi 14881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14883 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14884 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14885 then : 14886 printf %s "(cached) " >&6 14887 else case e in #( 14888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889 /* end confdefs.h. */ 14890 int i; 14891 _ACEOF 14892 if ac_fn_c_try_compile "$LINENO" 14893 then : 14894 xorg_cv_cc_flag_unused_command_line_argument=yes 14895 else case e in #( 14896 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14897 esac 14898 fi 14899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14900 esac 14901 fi 14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14903 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14905 CFLAGS="$xorg_testset_save_CFLAGS" 14906 fi 14907 14908 found="no" 14909 14910 if test $found = "no" ; then 14911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14913 fi 14914 14915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14917 fi 14918 14919 CFLAGS="$CFLAGS -Wuninitialized" 14920 14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14922 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14923 cacheid=xorg_cv_cc_flag__Wuninitialized 14924 if eval test \${$cacheid+y} 14925 then : 14926 printf %s "(cached) " >&6 14927 else case e in #( 14928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14929 /* end confdefs.h. */ 14930 int i; 14931 int 14932 main (void) 14933 { 14934 14935 ; 14936 return 0; 14937 } 14938 _ACEOF 14939 if ac_fn_c_try_link "$LINENO" 14940 then : 14941 eval $cacheid=yes 14942 else case e in #( 14943 e) eval $cacheid=no ;; 14944 esac 14945 fi 14946 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14947 conftest$ac_exeext conftest.$ac_ext ;; 14948 esac 14949 fi 14950 14951 14952 CFLAGS="$xorg_testset_save_CFLAGS" 14953 14954 eval supported=\$$cacheid 14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14956 printf "%s\n" "$supported" >&6; } 14957 if test "$supported" = "yes" ; then 14958 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14959 found="yes" 14960 fi 14961 fi 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 xorg_testset_save_CFLAGS="$CFLAGS" 14978 14979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14982 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14983 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14984 then : 14985 printf %s "(cached) " >&6 14986 else case e in #( 14987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14988 /* end confdefs.h. */ 14989 int i; 14990 _ACEOF 14991 if ac_fn_c_try_compile "$LINENO" 14992 then : 14993 xorg_cv_cc_flag_unknown_warning_option=yes 14994 else case e in #( 14995 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14996 esac 14997 fi 14998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14999 esac 15000 fi 15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15002 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15004 CFLAGS="$xorg_testset_save_CFLAGS" 15005 fi 15006 15007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15010 fi 15011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15013 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15014 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15015 then : 15016 printf %s "(cached) " >&6 15017 else case e in #( 15018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15019 /* end confdefs.h. */ 15020 int i; 15021 _ACEOF 15022 if ac_fn_c_try_compile "$LINENO" 15023 then : 15024 xorg_cv_cc_flag_unused_command_line_argument=yes 15025 else case e in #( 15026 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15027 esac 15028 fi 15029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15030 esac 15031 fi 15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15033 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15035 CFLAGS="$xorg_testset_save_CFLAGS" 15036 fi 15037 15038 found="no" 15039 15040 if test $found = "no" ; then 15041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15043 fi 15044 15045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15047 fi 15048 15049 CFLAGS="$CFLAGS -Wshadow" 15050 15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15052 printf %s "checking if $CC supports -Wshadow... " >&6; } 15053 cacheid=xorg_cv_cc_flag__Wshadow 15054 if eval test \${$cacheid+y} 15055 then : 15056 printf %s "(cached) " >&6 15057 else case e in #( 15058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15059 /* end confdefs.h. */ 15060 int i; 15061 int 15062 main (void) 15063 { 15064 15065 ; 15066 return 0; 15067 } 15068 _ACEOF 15069 if ac_fn_c_try_link "$LINENO" 15070 then : 15071 eval $cacheid=yes 15072 else case e in #( 15073 e) eval $cacheid=no ;; 15074 esac 15075 fi 15076 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15077 conftest$ac_exeext conftest.$ac_ext ;; 15078 esac 15079 fi 15080 15081 15082 CFLAGS="$xorg_testset_save_CFLAGS" 15083 15084 eval supported=\$$cacheid 15085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15086 printf "%s\n" "$supported" >&6; } 15087 if test "$supported" = "yes" ; then 15088 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15089 found="yes" 15090 fi 15091 fi 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 xorg_testset_save_CFLAGS="$CFLAGS" 15108 15109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15112 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15113 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15114 then : 15115 printf %s "(cached) " >&6 15116 else case e in #( 15117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15118 /* end confdefs.h. */ 15119 int i; 15120 _ACEOF 15121 if ac_fn_c_try_compile "$LINENO" 15122 then : 15123 xorg_cv_cc_flag_unknown_warning_option=yes 15124 else case e in #( 15125 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15126 esac 15127 fi 15128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15129 esac 15130 fi 15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15132 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15134 CFLAGS="$xorg_testset_save_CFLAGS" 15135 fi 15136 15137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15140 fi 15141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15145 then : 15146 printf %s "(cached) " >&6 15147 else case e in #( 15148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15149 /* end confdefs.h. */ 15150 int i; 15151 _ACEOF 15152 if ac_fn_c_try_compile "$LINENO" 15153 then : 15154 xorg_cv_cc_flag_unused_command_line_argument=yes 15155 else case e in #( 15156 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15157 esac 15158 fi 15159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15160 esac 15161 fi 15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15163 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15165 CFLAGS="$xorg_testset_save_CFLAGS" 15166 fi 15167 15168 found="no" 15169 15170 if test $found = "no" ; then 15171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15173 fi 15174 15175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15177 fi 15178 15179 CFLAGS="$CFLAGS -Wmissing-noreturn" 15180 15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15182 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15183 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15184 if eval test \${$cacheid+y} 15185 then : 15186 printf %s "(cached) " >&6 15187 else case e in #( 15188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15189 /* end confdefs.h. */ 15190 int i; 15191 int 15192 main (void) 15193 { 15194 15195 ; 15196 return 0; 15197 } 15198 _ACEOF 15199 if ac_fn_c_try_link "$LINENO" 15200 then : 15201 eval $cacheid=yes 15202 else case e in #( 15203 e) eval $cacheid=no ;; 15204 esac 15205 fi 15206 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15207 conftest$ac_exeext conftest.$ac_ext ;; 15208 esac 15209 fi 15210 15211 15212 CFLAGS="$xorg_testset_save_CFLAGS" 15213 15214 eval supported=\$$cacheid 15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15216 printf "%s\n" "$supported" >&6; } 15217 if test "$supported" = "yes" ; then 15218 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15219 found="yes" 15220 fi 15221 fi 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 xorg_testset_save_CFLAGS="$CFLAGS" 15238 15239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15242 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15243 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15244 then : 15245 printf %s "(cached) " >&6 15246 else case e in #( 15247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15248 /* end confdefs.h. */ 15249 int i; 15250 _ACEOF 15251 if ac_fn_c_try_compile "$LINENO" 15252 then : 15253 xorg_cv_cc_flag_unknown_warning_option=yes 15254 else case e in #( 15255 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15256 esac 15257 fi 15258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15259 esac 15260 fi 15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15262 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15264 CFLAGS="$xorg_testset_save_CFLAGS" 15265 fi 15266 15267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15270 fi 15271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15273 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15274 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15275 then : 15276 printf %s "(cached) " >&6 15277 else case e in #( 15278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15279 /* end confdefs.h. */ 15280 int i; 15281 _ACEOF 15282 if ac_fn_c_try_compile "$LINENO" 15283 then : 15284 xorg_cv_cc_flag_unused_command_line_argument=yes 15285 else case e in #( 15286 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15287 esac 15288 fi 15289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15290 esac 15291 fi 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15293 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15295 CFLAGS="$xorg_testset_save_CFLAGS" 15296 fi 15297 15298 found="no" 15299 15300 if test $found = "no" ; then 15301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15303 fi 15304 15305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15307 fi 15308 15309 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15310 15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15312 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15313 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15314 if eval test \${$cacheid+y} 15315 then : 15316 printf %s "(cached) " >&6 15317 else case e in #( 15318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15319 /* end confdefs.h. */ 15320 int i; 15321 int 15322 main (void) 15323 { 15324 15325 ; 15326 return 0; 15327 } 15328 _ACEOF 15329 if ac_fn_c_try_link "$LINENO" 15330 then : 15331 eval $cacheid=yes 15332 else case e in #( 15333 e) eval $cacheid=no ;; 15334 esac 15335 fi 15336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15337 conftest$ac_exeext conftest.$ac_ext ;; 15338 esac 15339 fi 15340 15341 15342 CFLAGS="$xorg_testset_save_CFLAGS" 15343 15344 eval supported=\$$cacheid 15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15346 printf "%s\n" "$supported" >&6; } 15347 if test "$supported" = "yes" ; then 15348 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15349 found="yes" 15350 fi 15351 fi 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 xorg_testset_save_CFLAGS="$CFLAGS" 15368 15369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15372 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15373 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15374 then : 15375 printf %s "(cached) " >&6 15376 else case e in #( 15377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15378 /* end confdefs.h. */ 15379 int i; 15380 _ACEOF 15381 if ac_fn_c_try_compile "$LINENO" 15382 then : 15383 xorg_cv_cc_flag_unknown_warning_option=yes 15384 else case e in #( 15385 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15386 esac 15387 fi 15388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15389 esac 15390 fi 15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15392 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15394 CFLAGS="$xorg_testset_save_CFLAGS" 15395 fi 15396 15397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15400 fi 15401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15403 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15404 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15405 then : 15406 printf %s "(cached) " >&6 15407 else case e in #( 15408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15409 /* end confdefs.h. */ 15410 int i; 15411 _ACEOF 15412 if ac_fn_c_try_compile "$LINENO" 15413 then : 15414 xorg_cv_cc_flag_unused_command_line_argument=yes 15415 else case e in #( 15416 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15417 esac 15418 fi 15419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15420 esac 15421 fi 15422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15423 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15425 CFLAGS="$xorg_testset_save_CFLAGS" 15426 fi 15427 15428 found="no" 15429 15430 if test $found = "no" ; then 15431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15433 fi 15434 15435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15437 fi 15438 15439 CFLAGS="$CFLAGS -Wredundant-decls" 15440 15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15442 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15443 cacheid=xorg_cv_cc_flag__Wredundant_decls 15444 if eval test \${$cacheid+y} 15445 then : 15446 printf %s "(cached) " >&6 15447 else case e in #( 15448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15449 /* end confdefs.h. */ 15450 int i; 15451 int 15452 main (void) 15453 { 15454 15455 ; 15456 return 0; 15457 } 15458 _ACEOF 15459 if ac_fn_c_try_link "$LINENO" 15460 then : 15461 eval $cacheid=yes 15462 else case e in #( 15463 e) eval $cacheid=no ;; 15464 esac 15465 fi 15466 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15467 conftest$ac_exeext conftest.$ac_ext ;; 15468 esac 15469 fi 15470 15471 15472 CFLAGS="$xorg_testset_save_CFLAGS" 15473 15474 eval supported=\$$cacheid 15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15476 printf "%s\n" "$supported" >&6; } 15477 if test "$supported" = "yes" ; then 15478 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15479 found="yes" 15480 fi 15481 fi 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 xorg_testset_save_CFLAGS="$CFLAGS" 15498 15499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15502 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15503 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15504 then : 15505 printf %s "(cached) " >&6 15506 else case e in #( 15507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508 /* end confdefs.h. */ 15509 int i; 15510 _ACEOF 15511 if ac_fn_c_try_compile "$LINENO" 15512 then : 15513 xorg_cv_cc_flag_unknown_warning_option=yes 15514 else case e in #( 15515 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15516 esac 15517 fi 15518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15519 esac 15520 fi 15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15524 CFLAGS="$xorg_testset_save_CFLAGS" 15525 fi 15526 15527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15530 fi 15531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15535 then : 15536 printf %s "(cached) " >&6 15537 else case e in #( 15538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15539 /* end confdefs.h. */ 15540 int i; 15541 _ACEOF 15542 if ac_fn_c_try_compile "$LINENO" 15543 then : 15544 xorg_cv_cc_flag_unused_command_line_argument=yes 15545 else case e in #( 15546 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15547 esac 15548 fi 15549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15550 esac 15551 fi 15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15555 CFLAGS="$xorg_testset_save_CFLAGS" 15556 fi 15557 15558 found="no" 15559 15560 if test $found = "no" ; then 15561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15563 fi 15564 15565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15567 fi 15568 15569 CFLAGS="$CFLAGS -Wlogical-op" 15570 15571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15572 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15573 cacheid=xorg_cv_cc_flag__Wlogical_op 15574 if eval test \${$cacheid+y} 15575 then : 15576 printf %s "(cached) " >&6 15577 else case e in #( 15578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15579 /* end confdefs.h. */ 15580 int i; 15581 int 15582 main (void) 15583 { 15584 15585 ; 15586 return 0; 15587 } 15588 _ACEOF 15589 if ac_fn_c_try_link "$LINENO" 15590 then : 15591 eval $cacheid=yes 15592 else case e in #( 15593 e) eval $cacheid=no ;; 15594 esac 15595 fi 15596 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15597 conftest$ac_exeext conftest.$ac_ext ;; 15598 esac 15599 fi 15600 15601 15602 CFLAGS="$xorg_testset_save_CFLAGS" 15603 15604 eval supported=\$$cacheid 15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15606 printf "%s\n" "$supported" >&6; } 15607 if test "$supported" = "yes" ; then 15608 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15609 found="yes" 15610 fi 15611 fi 15612 15613 15614 15615 # These are currently disabled because they are noisy. They will be enabled 15616 # in the future once the codebase is sufficiently modernized to silence 15617 # them. For now, I don't want them to drown out the other warnings. 15618 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15619 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15620 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15621 15622 # Turn some warnings into errors, so we don't accidentally get successful builds 15623 # when there are problems that should be fixed. 15624 15625 if test "x$SELECTIVE_WERROR" = "xyes" ; then 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 xorg_testset_save_CFLAGS="$CFLAGS" 15640 15641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15645 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15646 then : 15647 printf %s "(cached) " >&6 15648 else case e in #( 15649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650 /* end confdefs.h. */ 15651 int i; 15652 _ACEOF 15653 if ac_fn_c_try_compile "$LINENO" 15654 then : 15655 xorg_cv_cc_flag_unknown_warning_option=yes 15656 else case e in #( 15657 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15658 esac 15659 fi 15660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15661 esac 15662 fi 15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15664 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15666 CFLAGS="$xorg_testset_save_CFLAGS" 15667 fi 15668 15669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15672 fi 15673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15675 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15676 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15677 then : 15678 printf %s "(cached) " >&6 15679 else case e in #( 15680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15681 /* end confdefs.h. */ 15682 int i; 15683 _ACEOF 15684 if ac_fn_c_try_compile "$LINENO" 15685 then : 15686 xorg_cv_cc_flag_unused_command_line_argument=yes 15687 else case e in #( 15688 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15689 esac 15690 fi 15691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15692 esac 15693 fi 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15695 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15697 CFLAGS="$xorg_testset_save_CFLAGS" 15698 fi 15699 15700 found="no" 15701 15702 if test $found = "no" ; then 15703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15705 fi 15706 15707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15709 fi 15710 15711 CFLAGS="$CFLAGS -Werror=implicit" 15712 15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15714 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15715 cacheid=xorg_cv_cc_flag__Werror_implicit 15716 if eval test \${$cacheid+y} 15717 then : 15718 printf %s "(cached) " >&6 15719 else case e in #( 15720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15721 /* end confdefs.h. */ 15722 int i; 15723 int 15724 main (void) 15725 { 15726 15727 ; 15728 return 0; 15729 } 15730 _ACEOF 15731 if ac_fn_c_try_link "$LINENO" 15732 then : 15733 eval $cacheid=yes 15734 else case e in #( 15735 e) eval $cacheid=no ;; 15736 esac 15737 fi 15738 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15739 conftest$ac_exeext conftest.$ac_ext ;; 15740 esac 15741 fi 15742 15743 15744 CFLAGS="$xorg_testset_save_CFLAGS" 15745 15746 eval supported=\$$cacheid 15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15748 printf "%s\n" "$supported" >&6; } 15749 if test "$supported" = "yes" ; then 15750 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15751 found="yes" 15752 fi 15753 fi 15754 15755 if test $found = "no" ; then 15756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15758 fi 15759 15760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15762 fi 15763 15764 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15765 15766 { 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 15767 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15768 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15769 if eval test \${$cacheid+y} 15770 then : 15771 printf %s "(cached) " >&6 15772 else case e in #( 15773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15774 /* end confdefs.h. */ 15775 int i; 15776 int 15777 main (void) 15778 { 15779 15780 ; 15781 return 0; 15782 } 15783 _ACEOF 15784 if ac_fn_c_try_link "$LINENO" 15785 then : 15786 eval $cacheid=yes 15787 else case e in #( 15788 e) eval $cacheid=no ;; 15789 esac 15790 fi 15791 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15792 conftest$ac_exeext conftest.$ac_ext ;; 15793 esac 15794 fi 15795 15796 15797 CFLAGS="$xorg_testset_save_CFLAGS" 15798 15799 eval supported=\$$cacheid 15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15801 printf "%s\n" "$supported" >&6; } 15802 if test "$supported" = "yes" ; then 15803 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15804 found="yes" 15805 fi 15806 fi 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 xorg_testset_save_CFLAGS="$CFLAGS" 15823 15824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15828 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15829 then : 15830 printf %s "(cached) " >&6 15831 else case e in #( 15832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15833 /* end confdefs.h. */ 15834 int i; 15835 _ACEOF 15836 if ac_fn_c_try_compile "$LINENO" 15837 then : 15838 xorg_cv_cc_flag_unknown_warning_option=yes 15839 else case e in #( 15840 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15841 esac 15842 fi 15843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15844 esac 15845 fi 15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15849 CFLAGS="$xorg_testset_save_CFLAGS" 15850 fi 15851 15852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15855 fi 15856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15860 then : 15861 printf %s "(cached) " >&6 15862 else case e in #( 15863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15864 /* end confdefs.h. */ 15865 int i; 15866 _ACEOF 15867 if ac_fn_c_try_compile "$LINENO" 15868 then : 15869 xorg_cv_cc_flag_unused_command_line_argument=yes 15870 else case e in #( 15871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15872 esac 15873 fi 15874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15875 esac 15876 fi 15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15880 CFLAGS="$xorg_testset_save_CFLAGS" 15881 fi 15882 15883 found="no" 15884 15885 if test $found = "no" ; then 15886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15888 fi 15889 15890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15892 fi 15893 15894 CFLAGS="$CFLAGS -Werror=nonnull" 15895 15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15897 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15898 cacheid=xorg_cv_cc_flag__Werror_nonnull 15899 if eval test \${$cacheid+y} 15900 then : 15901 printf %s "(cached) " >&6 15902 else case e in #( 15903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904 /* end confdefs.h. */ 15905 int i; 15906 int 15907 main (void) 15908 { 15909 15910 ; 15911 return 0; 15912 } 15913 _ACEOF 15914 if ac_fn_c_try_link "$LINENO" 15915 then : 15916 eval $cacheid=yes 15917 else case e in #( 15918 e) eval $cacheid=no ;; 15919 esac 15920 fi 15921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15922 conftest$ac_exeext conftest.$ac_ext ;; 15923 esac 15924 fi 15925 15926 15927 CFLAGS="$xorg_testset_save_CFLAGS" 15928 15929 eval supported=\$$cacheid 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15931 printf "%s\n" "$supported" >&6; } 15932 if test "$supported" = "yes" ; then 15933 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15934 found="yes" 15935 fi 15936 fi 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 xorg_testset_save_CFLAGS="$CFLAGS" 15953 15954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15958 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15959 then : 15960 printf %s "(cached) " >&6 15961 else case e in #( 15962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15963 /* end confdefs.h. */ 15964 int i; 15965 _ACEOF 15966 if ac_fn_c_try_compile "$LINENO" 15967 then : 15968 xorg_cv_cc_flag_unknown_warning_option=yes 15969 else case e in #( 15970 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15971 esac 15972 fi 15973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15974 esac 15975 fi 15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15979 CFLAGS="$xorg_testset_save_CFLAGS" 15980 fi 15981 15982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15985 fi 15986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15990 then : 15991 printf %s "(cached) " >&6 15992 else case e in #( 15993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15994 /* end confdefs.h. */ 15995 int i; 15996 _ACEOF 15997 if ac_fn_c_try_compile "$LINENO" 15998 then : 15999 xorg_cv_cc_flag_unused_command_line_argument=yes 16000 else case e in #( 16001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16002 esac 16003 fi 16004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16005 esac 16006 fi 16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16010 CFLAGS="$xorg_testset_save_CFLAGS" 16011 fi 16012 16013 found="no" 16014 16015 if test $found = "no" ; then 16016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16018 fi 16019 16020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16022 fi 16023 16024 CFLAGS="$CFLAGS -Werror=init-self" 16025 16026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16027 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16028 cacheid=xorg_cv_cc_flag__Werror_init_self 16029 if eval test \${$cacheid+y} 16030 then : 16031 printf %s "(cached) " >&6 16032 else case e in #( 16033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16034 /* end confdefs.h. */ 16035 int i; 16036 int 16037 main (void) 16038 { 16039 16040 ; 16041 return 0; 16042 } 16043 _ACEOF 16044 if ac_fn_c_try_link "$LINENO" 16045 then : 16046 eval $cacheid=yes 16047 else case e in #( 16048 e) eval $cacheid=no ;; 16049 esac 16050 fi 16051 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16052 conftest$ac_exeext conftest.$ac_ext ;; 16053 esac 16054 fi 16055 16056 16057 CFLAGS="$xorg_testset_save_CFLAGS" 16058 16059 eval supported=\$$cacheid 16060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16061 printf "%s\n" "$supported" >&6; } 16062 if test "$supported" = "yes" ; then 16063 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16064 found="yes" 16065 fi 16066 fi 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 xorg_testset_save_CFLAGS="$CFLAGS" 16083 16084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16088 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16089 then : 16090 printf %s "(cached) " >&6 16091 else case e in #( 16092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16093 /* end confdefs.h. */ 16094 int i; 16095 _ACEOF 16096 if ac_fn_c_try_compile "$LINENO" 16097 then : 16098 xorg_cv_cc_flag_unknown_warning_option=yes 16099 else case e in #( 16100 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16101 esac 16102 fi 16103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16104 esac 16105 fi 16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16107 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16109 CFLAGS="$xorg_testset_save_CFLAGS" 16110 fi 16111 16112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16115 fi 16116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16120 then : 16121 printf %s "(cached) " >&6 16122 else case e in #( 16123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124 /* end confdefs.h. */ 16125 int i; 16126 _ACEOF 16127 if ac_fn_c_try_compile "$LINENO" 16128 then : 16129 xorg_cv_cc_flag_unused_command_line_argument=yes 16130 else case e in #( 16131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16132 esac 16133 fi 16134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16135 esac 16136 fi 16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16140 CFLAGS="$xorg_testset_save_CFLAGS" 16141 fi 16142 16143 found="no" 16144 16145 if test $found = "no" ; then 16146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16148 fi 16149 16150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16152 fi 16153 16154 CFLAGS="$CFLAGS -Werror=main" 16155 16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16157 printf %s "checking if $CC supports -Werror=main... " >&6; } 16158 cacheid=xorg_cv_cc_flag__Werror_main 16159 if eval test \${$cacheid+y} 16160 then : 16161 printf %s "(cached) " >&6 16162 else case e in #( 16163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16164 /* end confdefs.h. */ 16165 int i; 16166 int 16167 main (void) 16168 { 16169 16170 ; 16171 return 0; 16172 } 16173 _ACEOF 16174 if ac_fn_c_try_link "$LINENO" 16175 then : 16176 eval $cacheid=yes 16177 else case e in #( 16178 e) eval $cacheid=no ;; 16179 esac 16180 fi 16181 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16182 conftest$ac_exeext conftest.$ac_ext ;; 16183 esac 16184 fi 16185 16186 16187 CFLAGS="$xorg_testset_save_CFLAGS" 16188 16189 eval supported=\$$cacheid 16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16191 printf "%s\n" "$supported" >&6; } 16192 if test "$supported" = "yes" ; then 16193 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16194 found="yes" 16195 fi 16196 fi 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 xorg_testset_save_CFLAGS="$CFLAGS" 16213 16214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16218 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16219 then : 16220 printf %s "(cached) " >&6 16221 else case e in #( 16222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16223 /* end confdefs.h. */ 16224 int i; 16225 _ACEOF 16226 if ac_fn_c_try_compile "$LINENO" 16227 then : 16228 xorg_cv_cc_flag_unknown_warning_option=yes 16229 else case e in #( 16230 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16231 esac 16232 fi 16233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16234 esac 16235 fi 16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16239 CFLAGS="$xorg_testset_save_CFLAGS" 16240 fi 16241 16242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16245 fi 16246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16250 then : 16251 printf %s "(cached) " >&6 16252 else case e in #( 16253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16254 /* end confdefs.h. */ 16255 int i; 16256 _ACEOF 16257 if ac_fn_c_try_compile "$LINENO" 16258 then : 16259 xorg_cv_cc_flag_unused_command_line_argument=yes 16260 else case e in #( 16261 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16262 esac 16263 fi 16264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16265 esac 16266 fi 16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16268 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16270 CFLAGS="$xorg_testset_save_CFLAGS" 16271 fi 16272 16273 found="no" 16274 16275 if test $found = "no" ; then 16276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16278 fi 16279 16280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16282 fi 16283 16284 CFLAGS="$CFLAGS -Werror=missing-braces" 16285 16286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16287 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16288 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16289 if eval test \${$cacheid+y} 16290 then : 16291 printf %s "(cached) " >&6 16292 else case e in #( 16293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294 /* end confdefs.h. */ 16295 int i; 16296 int 16297 main (void) 16298 { 16299 16300 ; 16301 return 0; 16302 } 16303 _ACEOF 16304 if ac_fn_c_try_link "$LINENO" 16305 then : 16306 eval $cacheid=yes 16307 else case e in #( 16308 e) eval $cacheid=no ;; 16309 esac 16310 fi 16311 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16312 conftest$ac_exeext conftest.$ac_ext ;; 16313 esac 16314 fi 16315 16316 16317 CFLAGS="$xorg_testset_save_CFLAGS" 16318 16319 eval supported=\$$cacheid 16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16321 printf "%s\n" "$supported" >&6; } 16322 if test "$supported" = "yes" ; then 16323 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16324 found="yes" 16325 fi 16326 fi 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 xorg_testset_save_CFLAGS="$CFLAGS" 16343 16344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16348 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16349 then : 16350 printf %s "(cached) " >&6 16351 else case e in #( 16352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16353 /* end confdefs.h. */ 16354 int i; 16355 _ACEOF 16356 if ac_fn_c_try_compile "$LINENO" 16357 then : 16358 xorg_cv_cc_flag_unknown_warning_option=yes 16359 else case e in #( 16360 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16361 esac 16362 fi 16363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16364 esac 16365 fi 16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16369 CFLAGS="$xorg_testset_save_CFLAGS" 16370 fi 16371 16372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16375 fi 16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16380 then : 16381 printf %s "(cached) " >&6 16382 else case e in #( 16383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16384 /* end confdefs.h. */ 16385 int i; 16386 _ACEOF 16387 if ac_fn_c_try_compile "$LINENO" 16388 then : 16389 xorg_cv_cc_flag_unused_command_line_argument=yes 16390 else case e in #( 16391 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16392 esac 16393 fi 16394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16395 esac 16396 fi 16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16400 CFLAGS="$xorg_testset_save_CFLAGS" 16401 fi 16402 16403 found="no" 16404 16405 if test $found = "no" ; then 16406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16408 fi 16409 16410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16412 fi 16413 16414 CFLAGS="$CFLAGS -Werror=sequence-point" 16415 16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16417 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16418 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16419 if eval test \${$cacheid+y} 16420 then : 16421 printf %s "(cached) " >&6 16422 else case e in #( 16423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16424 /* end confdefs.h. */ 16425 int i; 16426 int 16427 main (void) 16428 { 16429 16430 ; 16431 return 0; 16432 } 16433 _ACEOF 16434 if ac_fn_c_try_link "$LINENO" 16435 then : 16436 eval $cacheid=yes 16437 else case e in #( 16438 e) eval $cacheid=no ;; 16439 esac 16440 fi 16441 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16442 conftest$ac_exeext conftest.$ac_ext ;; 16443 esac 16444 fi 16445 16446 16447 CFLAGS="$xorg_testset_save_CFLAGS" 16448 16449 eval supported=\$$cacheid 16450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16451 printf "%s\n" "$supported" >&6; } 16452 if test "$supported" = "yes" ; then 16453 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16454 found="yes" 16455 fi 16456 fi 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 xorg_testset_save_CFLAGS="$CFLAGS" 16473 16474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16477 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16478 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16479 then : 16480 printf %s "(cached) " >&6 16481 else case e in #( 16482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483 /* end confdefs.h. */ 16484 int i; 16485 _ACEOF 16486 if ac_fn_c_try_compile "$LINENO" 16487 then : 16488 xorg_cv_cc_flag_unknown_warning_option=yes 16489 else case e in #( 16490 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16491 esac 16492 fi 16493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16494 esac 16495 fi 16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16497 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16499 CFLAGS="$xorg_testset_save_CFLAGS" 16500 fi 16501 16502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16505 fi 16506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16508 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16509 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16510 then : 16511 printf %s "(cached) " >&6 16512 else case e in #( 16513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16514 /* end confdefs.h. */ 16515 int i; 16516 _ACEOF 16517 if ac_fn_c_try_compile "$LINENO" 16518 then : 16519 xorg_cv_cc_flag_unused_command_line_argument=yes 16520 else case e in #( 16521 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16522 esac 16523 fi 16524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16525 esac 16526 fi 16527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16528 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16530 CFLAGS="$xorg_testset_save_CFLAGS" 16531 fi 16532 16533 found="no" 16534 16535 if test $found = "no" ; then 16536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16538 fi 16539 16540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16542 fi 16543 16544 CFLAGS="$CFLAGS -Werror=return-type" 16545 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16547 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16548 cacheid=xorg_cv_cc_flag__Werror_return_type 16549 if eval test \${$cacheid+y} 16550 then : 16551 printf %s "(cached) " >&6 16552 else case e in #( 16553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16554 /* end confdefs.h. */ 16555 int i; 16556 int 16557 main (void) 16558 { 16559 16560 ; 16561 return 0; 16562 } 16563 _ACEOF 16564 if ac_fn_c_try_link "$LINENO" 16565 then : 16566 eval $cacheid=yes 16567 else case e in #( 16568 e) eval $cacheid=no ;; 16569 esac 16570 fi 16571 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16572 conftest$ac_exeext conftest.$ac_ext ;; 16573 esac 16574 fi 16575 16576 16577 CFLAGS="$xorg_testset_save_CFLAGS" 16578 16579 eval supported=\$$cacheid 16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16581 printf "%s\n" "$supported" >&6; } 16582 if test "$supported" = "yes" ; then 16583 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16584 found="yes" 16585 fi 16586 fi 16587 16588 if test $found = "no" ; then 16589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16591 fi 16592 16593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16595 fi 16596 16597 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16598 16599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16600 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16601 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16602 if eval test \${$cacheid+y} 16603 then : 16604 printf %s "(cached) " >&6 16605 else case e in #( 16606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607 /* end confdefs.h. */ 16608 int i; 16609 int 16610 main (void) 16611 { 16612 16613 ; 16614 return 0; 16615 } 16616 _ACEOF 16617 if ac_fn_c_try_link "$LINENO" 16618 then : 16619 eval $cacheid=yes 16620 else case e in #( 16621 e) eval $cacheid=no ;; 16622 esac 16623 fi 16624 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16625 conftest$ac_exeext conftest.$ac_ext ;; 16626 esac 16627 fi 16628 16629 16630 CFLAGS="$xorg_testset_save_CFLAGS" 16631 16632 eval supported=\$$cacheid 16633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16634 printf "%s\n" "$supported" >&6; } 16635 if test "$supported" = "yes" ; then 16636 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16637 found="yes" 16638 fi 16639 fi 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 xorg_testset_save_CFLAGS="$CFLAGS" 16656 16657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16660 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16661 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16662 then : 16663 printf %s "(cached) " >&6 16664 else case e in #( 16665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16666 /* end confdefs.h. */ 16667 int i; 16668 _ACEOF 16669 if ac_fn_c_try_compile "$LINENO" 16670 then : 16671 xorg_cv_cc_flag_unknown_warning_option=yes 16672 else case e in #( 16673 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16674 esac 16675 fi 16676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16677 esac 16678 fi 16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16680 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16682 CFLAGS="$xorg_testset_save_CFLAGS" 16683 fi 16684 16685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16688 fi 16689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16693 then : 16694 printf %s "(cached) " >&6 16695 else case e in #( 16696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16697 /* end confdefs.h. */ 16698 int i; 16699 _ACEOF 16700 if ac_fn_c_try_compile "$LINENO" 16701 then : 16702 xorg_cv_cc_flag_unused_command_line_argument=yes 16703 else case e in #( 16704 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16705 esac 16706 fi 16707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16708 esac 16709 fi 16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16711 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16713 CFLAGS="$xorg_testset_save_CFLAGS" 16714 fi 16715 16716 found="no" 16717 16718 if test $found = "no" ; then 16719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16721 fi 16722 16723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16725 fi 16726 16727 CFLAGS="$CFLAGS -Werror=trigraphs" 16728 16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16730 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16731 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16732 if eval test \${$cacheid+y} 16733 then : 16734 printf %s "(cached) " >&6 16735 else case e in #( 16736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16737 /* end confdefs.h. */ 16738 int i; 16739 int 16740 main (void) 16741 { 16742 16743 ; 16744 return 0; 16745 } 16746 _ACEOF 16747 if ac_fn_c_try_link "$LINENO" 16748 then : 16749 eval $cacheid=yes 16750 else case e in #( 16751 e) eval $cacheid=no ;; 16752 esac 16753 fi 16754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16755 conftest$ac_exeext conftest.$ac_ext ;; 16756 esac 16757 fi 16758 16759 16760 CFLAGS="$xorg_testset_save_CFLAGS" 16761 16762 eval supported=\$$cacheid 16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16764 printf "%s\n" "$supported" >&6; } 16765 if test "$supported" = "yes" ; then 16766 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16767 found="yes" 16768 fi 16769 fi 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 xorg_testset_save_CFLAGS="$CFLAGS" 16786 16787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16791 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16792 then : 16793 printf %s "(cached) " >&6 16794 else case e in #( 16795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16796 /* end confdefs.h. */ 16797 int i; 16798 _ACEOF 16799 if ac_fn_c_try_compile "$LINENO" 16800 then : 16801 xorg_cv_cc_flag_unknown_warning_option=yes 16802 else case e in #( 16803 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16804 esac 16805 fi 16806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16807 esac 16808 fi 16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16810 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16812 CFLAGS="$xorg_testset_save_CFLAGS" 16813 fi 16814 16815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16818 fi 16819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16823 then : 16824 printf %s "(cached) " >&6 16825 else case e in #( 16826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16827 /* end confdefs.h. */ 16828 int i; 16829 _ACEOF 16830 if ac_fn_c_try_compile "$LINENO" 16831 then : 16832 xorg_cv_cc_flag_unused_command_line_argument=yes 16833 else case e in #( 16834 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16835 esac 16836 fi 16837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16838 esac 16839 fi 16840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16841 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16843 CFLAGS="$xorg_testset_save_CFLAGS" 16844 fi 16845 16846 found="no" 16847 16848 if test $found = "no" ; then 16849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 fi 16852 16853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16855 fi 16856 16857 CFLAGS="$CFLAGS -Werror=array-bounds" 16858 16859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16860 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16861 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16862 if eval test \${$cacheid+y} 16863 then : 16864 printf %s "(cached) " >&6 16865 else case e in #( 16866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16867 /* end confdefs.h. */ 16868 int i; 16869 int 16870 main (void) 16871 { 16872 16873 ; 16874 return 0; 16875 } 16876 _ACEOF 16877 if ac_fn_c_try_link "$LINENO" 16878 then : 16879 eval $cacheid=yes 16880 else case e in #( 16881 e) eval $cacheid=no ;; 16882 esac 16883 fi 16884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16885 conftest$ac_exeext conftest.$ac_ext ;; 16886 esac 16887 fi 16888 16889 16890 CFLAGS="$xorg_testset_save_CFLAGS" 16891 16892 eval supported=\$$cacheid 16893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16894 printf "%s\n" "$supported" >&6; } 16895 if test "$supported" = "yes" ; then 16896 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16897 found="yes" 16898 fi 16899 fi 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 xorg_testset_save_CFLAGS="$CFLAGS" 16916 16917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16921 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16922 then : 16923 printf %s "(cached) " >&6 16924 else case e in #( 16925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16926 /* end confdefs.h. */ 16927 int i; 16928 _ACEOF 16929 if ac_fn_c_try_compile "$LINENO" 16930 then : 16931 xorg_cv_cc_flag_unknown_warning_option=yes 16932 else case e in #( 16933 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16934 esac 16935 fi 16936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16937 esac 16938 fi 16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16940 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16942 CFLAGS="$xorg_testset_save_CFLAGS" 16943 fi 16944 16945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16948 fi 16949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16953 then : 16954 printf %s "(cached) " >&6 16955 else case e in #( 16956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16957 /* end confdefs.h. */ 16958 int i; 16959 _ACEOF 16960 if ac_fn_c_try_compile "$LINENO" 16961 then : 16962 xorg_cv_cc_flag_unused_command_line_argument=yes 16963 else case e in #( 16964 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16965 esac 16966 fi 16967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16968 esac 16969 fi 16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16971 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16973 CFLAGS="$xorg_testset_save_CFLAGS" 16974 fi 16975 16976 found="no" 16977 16978 if test $found = "no" ; then 16979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16981 fi 16982 16983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16985 fi 16986 16987 CFLAGS="$CFLAGS -Werror=write-strings" 16988 16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16990 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16991 cacheid=xorg_cv_cc_flag__Werror_write_strings 16992 if eval test \${$cacheid+y} 16993 then : 16994 printf %s "(cached) " >&6 16995 else case e in #( 16996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16997 /* end confdefs.h. */ 16998 int i; 16999 int 17000 main (void) 17001 { 17002 17003 ; 17004 return 0; 17005 } 17006 _ACEOF 17007 if ac_fn_c_try_link "$LINENO" 17008 then : 17009 eval $cacheid=yes 17010 else case e in #( 17011 e) eval $cacheid=no ;; 17012 esac 17013 fi 17014 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17015 conftest$ac_exeext conftest.$ac_ext ;; 17016 esac 17017 fi 17018 17019 17020 CFLAGS="$xorg_testset_save_CFLAGS" 17021 17022 eval supported=\$$cacheid 17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17024 printf "%s\n" "$supported" >&6; } 17025 if test "$supported" = "yes" ; then 17026 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17027 found="yes" 17028 fi 17029 fi 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 xorg_testset_save_CFLAGS="$CFLAGS" 17046 17047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17050 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17051 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17052 then : 17053 printf %s "(cached) " >&6 17054 else case e in #( 17055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17056 /* end confdefs.h. */ 17057 int i; 17058 _ACEOF 17059 if ac_fn_c_try_compile "$LINENO" 17060 then : 17061 xorg_cv_cc_flag_unknown_warning_option=yes 17062 else case e in #( 17063 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17064 esac 17065 fi 17066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17067 esac 17068 fi 17069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17070 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17072 CFLAGS="$xorg_testset_save_CFLAGS" 17073 fi 17074 17075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17078 fi 17079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17081 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17082 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17083 then : 17084 printf %s "(cached) " >&6 17085 else case e in #( 17086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17087 /* end confdefs.h. */ 17088 int i; 17089 _ACEOF 17090 if ac_fn_c_try_compile "$LINENO" 17091 then : 17092 xorg_cv_cc_flag_unused_command_line_argument=yes 17093 else case e in #( 17094 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17095 esac 17096 fi 17097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17098 esac 17099 fi 17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17101 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17103 CFLAGS="$xorg_testset_save_CFLAGS" 17104 fi 17105 17106 found="no" 17107 17108 if test $found = "no" ; then 17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17111 fi 17112 17113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17115 fi 17116 17117 CFLAGS="$CFLAGS -Werror=address" 17118 17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17120 printf %s "checking if $CC supports -Werror=address... " >&6; } 17121 cacheid=xorg_cv_cc_flag__Werror_address 17122 if eval test \${$cacheid+y} 17123 then : 17124 printf %s "(cached) " >&6 17125 else case e in #( 17126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17127 /* end confdefs.h. */ 17128 int i; 17129 int 17130 main (void) 17131 { 17132 17133 ; 17134 return 0; 17135 } 17136 _ACEOF 17137 if ac_fn_c_try_link "$LINENO" 17138 then : 17139 eval $cacheid=yes 17140 else case e in #( 17141 e) eval $cacheid=no ;; 17142 esac 17143 fi 17144 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17145 conftest$ac_exeext conftest.$ac_ext ;; 17146 esac 17147 fi 17148 17149 17150 CFLAGS="$xorg_testset_save_CFLAGS" 17151 17152 eval supported=\$$cacheid 17153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17154 printf "%s\n" "$supported" >&6; } 17155 if test "$supported" = "yes" ; then 17156 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17157 found="yes" 17158 fi 17159 fi 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 xorg_testset_save_CFLAGS="$CFLAGS" 17176 17177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17180 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17181 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17182 then : 17183 printf %s "(cached) " >&6 17184 else case e in #( 17185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17186 /* end confdefs.h. */ 17187 int i; 17188 _ACEOF 17189 if ac_fn_c_try_compile "$LINENO" 17190 then : 17191 xorg_cv_cc_flag_unknown_warning_option=yes 17192 else case e in #( 17193 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17194 esac 17195 fi 17196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17197 esac 17198 fi 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17200 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17202 CFLAGS="$xorg_testset_save_CFLAGS" 17203 fi 17204 17205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17208 fi 17209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17211 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17212 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17213 then : 17214 printf %s "(cached) " >&6 17215 else case e in #( 17216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17217 /* end confdefs.h. */ 17218 int i; 17219 _ACEOF 17220 if ac_fn_c_try_compile "$LINENO" 17221 then : 17222 xorg_cv_cc_flag_unused_command_line_argument=yes 17223 else case e in #( 17224 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17225 esac 17226 fi 17227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17228 esac 17229 fi 17230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17231 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17233 CFLAGS="$xorg_testset_save_CFLAGS" 17234 fi 17235 17236 found="no" 17237 17238 if test $found = "no" ; then 17239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17241 fi 17242 17243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17245 fi 17246 17247 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17248 17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17250 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17251 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17252 if eval test \${$cacheid+y} 17253 then : 17254 printf %s "(cached) " >&6 17255 else case e in #( 17256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17257 /* end confdefs.h. */ 17258 int i; 17259 int 17260 main (void) 17261 { 17262 17263 ; 17264 return 0; 17265 } 17266 _ACEOF 17267 if ac_fn_c_try_link "$LINENO" 17268 then : 17269 eval $cacheid=yes 17270 else case e in #( 17271 e) eval $cacheid=no ;; 17272 esac 17273 fi 17274 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17275 conftest$ac_exeext conftest.$ac_ext ;; 17276 esac 17277 fi 17278 17279 17280 CFLAGS="$xorg_testset_save_CFLAGS" 17281 17282 eval supported=\$$cacheid 17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17284 printf "%s\n" "$supported" >&6; } 17285 if test "$supported" = "yes" ; then 17286 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17287 found="yes" 17288 fi 17289 fi 17290 17291 if test $found = "no" ; then 17292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17294 fi 17295 17296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17298 fi 17299 17300 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17301 17302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17303 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17304 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17305 if eval test \${$cacheid+y} 17306 then : 17307 printf %s "(cached) " >&6 17308 else case e in #( 17309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17310 /* end confdefs.h. */ 17311 int i; 17312 int 17313 main (void) 17314 { 17315 17316 ; 17317 return 0; 17318 } 17319 _ACEOF 17320 if ac_fn_c_try_link "$LINENO" 17321 then : 17322 eval $cacheid=yes 17323 else case e in #( 17324 e) eval $cacheid=no ;; 17325 esac 17326 fi 17327 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17328 conftest$ac_exeext conftest.$ac_ext ;; 17329 esac 17330 fi 17331 17332 17333 CFLAGS="$xorg_testset_save_CFLAGS" 17334 17335 eval supported=\$$cacheid 17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17337 printf "%s\n" "$supported" >&6; } 17338 if test "$supported" = "yes" ; then 17339 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17340 found="yes" 17341 fi 17342 fi 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 xorg_testset_save_CFLAGS="$CFLAGS" 17359 17360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17364 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17365 then : 17366 printf %s "(cached) " >&6 17367 else case e in #( 17368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17369 /* end confdefs.h. */ 17370 int i; 17371 _ACEOF 17372 if ac_fn_c_try_compile "$LINENO" 17373 then : 17374 xorg_cv_cc_flag_unknown_warning_option=yes 17375 else case e in #( 17376 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17377 esac 17378 fi 17379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17380 esac 17381 fi 17382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17383 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17385 CFLAGS="$xorg_testset_save_CFLAGS" 17386 fi 17387 17388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17391 fi 17392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17394 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17395 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17396 then : 17397 printf %s "(cached) " >&6 17398 else case e in #( 17399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17400 /* end confdefs.h. */ 17401 int i; 17402 _ACEOF 17403 if ac_fn_c_try_compile "$LINENO" 17404 then : 17405 xorg_cv_cc_flag_unused_command_line_argument=yes 17406 else case e in #( 17407 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17408 esac 17409 fi 17410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17411 esac 17412 fi 17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17416 CFLAGS="$xorg_testset_save_CFLAGS" 17417 fi 17418 17419 found="no" 17420 17421 if test $found = "no" ; then 17422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17424 fi 17425 17426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17428 fi 17429 17430 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17431 17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17433 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17434 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17435 if eval test \${$cacheid+y} 17436 then : 17437 printf %s "(cached) " >&6 17438 else case e in #( 17439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17440 /* end confdefs.h. */ 17441 int i; 17442 int 17443 main (void) 17444 { 17445 17446 ; 17447 return 0; 17448 } 17449 _ACEOF 17450 if ac_fn_c_try_link "$LINENO" 17451 then : 17452 eval $cacheid=yes 17453 else case e in #( 17454 e) eval $cacheid=no ;; 17455 esac 17456 fi 17457 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17458 conftest$ac_exeext conftest.$ac_ext ;; 17459 esac 17460 fi 17461 17462 17463 CFLAGS="$xorg_testset_save_CFLAGS" 17464 17465 eval supported=\$$cacheid 17466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17467 printf "%s\n" "$supported" >&6; } 17468 if test "$supported" = "yes" ; then 17469 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17470 found="yes" 17471 fi 17472 fi 17473 17474 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17475 else 17476 { 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 17477 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;} 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 xorg_testset_save_CFLAGS="$CFLAGS" 17492 17493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17496 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17497 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17498 then : 17499 printf %s "(cached) " >&6 17500 else case e in #( 17501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17502 /* end confdefs.h. */ 17503 int i; 17504 _ACEOF 17505 if ac_fn_c_try_compile "$LINENO" 17506 then : 17507 xorg_cv_cc_flag_unknown_warning_option=yes 17508 else case e in #( 17509 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17510 esac 17511 fi 17512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17513 esac 17514 fi 17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17516 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17518 CFLAGS="$xorg_testset_save_CFLAGS" 17519 fi 17520 17521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17524 fi 17525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17527 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17528 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17529 then : 17530 printf %s "(cached) " >&6 17531 else case e in #( 17532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17533 /* end confdefs.h. */ 17534 int i; 17535 _ACEOF 17536 if ac_fn_c_try_compile "$LINENO" 17537 then : 17538 xorg_cv_cc_flag_unused_command_line_argument=yes 17539 else case e in #( 17540 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17541 esac 17542 fi 17543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17544 esac 17545 fi 17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17547 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17549 CFLAGS="$xorg_testset_save_CFLAGS" 17550 fi 17551 17552 found="no" 17553 17554 if test $found = "no" ; then 17555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17557 fi 17558 17559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17561 fi 17562 17563 CFLAGS="$CFLAGS -Wimplicit" 17564 17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17566 printf %s "checking if $CC supports -Wimplicit... " >&6; } 17567 cacheid=xorg_cv_cc_flag__Wimplicit 17568 if eval test \${$cacheid+y} 17569 then : 17570 printf %s "(cached) " >&6 17571 else case e in #( 17572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17573 /* end confdefs.h. */ 17574 int i; 17575 int 17576 main (void) 17577 { 17578 17579 ; 17580 return 0; 17581 } 17582 _ACEOF 17583 if ac_fn_c_try_link "$LINENO" 17584 then : 17585 eval $cacheid=yes 17586 else case e in #( 17587 e) eval $cacheid=no ;; 17588 esac 17589 fi 17590 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17591 conftest$ac_exeext conftest.$ac_ext ;; 17592 esac 17593 fi 17594 17595 17596 CFLAGS="$xorg_testset_save_CFLAGS" 17597 17598 eval supported=\$$cacheid 17599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17600 printf "%s\n" "$supported" >&6; } 17601 if test "$supported" = "yes" ; then 17602 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17603 found="yes" 17604 fi 17605 fi 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 xorg_testset_save_CFLAGS="$CFLAGS" 17622 17623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17627 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17628 then : 17629 printf %s "(cached) " >&6 17630 else case e in #( 17631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17632 /* end confdefs.h. */ 17633 int i; 17634 _ACEOF 17635 if ac_fn_c_try_compile "$LINENO" 17636 then : 17637 xorg_cv_cc_flag_unknown_warning_option=yes 17638 else case e in #( 17639 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17640 esac 17641 fi 17642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17643 esac 17644 fi 17645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17648 CFLAGS="$xorg_testset_save_CFLAGS" 17649 fi 17650 17651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17654 fi 17655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17659 then : 17660 printf %s "(cached) " >&6 17661 else case e in #( 17662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17663 /* end confdefs.h. */ 17664 int i; 17665 _ACEOF 17666 if ac_fn_c_try_compile "$LINENO" 17667 then : 17668 xorg_cv_cc_flag_unused_command_line_argument=yes 17669 else case e in #( 17670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17671 esac 17672 fi 17673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17674 esac 17675 fi 17676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17679 CFLAGS="$xorg_testset_save_CFLAGS" 17680 fi 17681 17682 found="no" 17683 17684 if test $found = "no" ; then 17685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17687 fi 17688 17689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17691 fi 17692 17693 CFLAGS="$CFLAGS -Wnonnull" 17694 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17696 printf %s "checking if $CC supports -Wnonnull... " >&6; } 17697 cacheid=xorg_cv_cc_flag__Wnonnull 17698 if eval test \${$cacheid+y} 17699 then : 17700 printf %s "(cached) " >&6 17701 else case e in #( 17702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17703 /* end confdefs.h. */ 17704 int i; 17705 int 17706 main (void) 17707 { 17708 17709 ; 17710 return 0; 17711 } 17712 _ACEOF 17713 if ac_fn_c_try_link "$LINENO" 17714 then : 17715 eval $cacheid=yes 17716 else case e in #( 17717 e) eval $cacheid=no ;; 17718 esac 17719 fi 17720 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17721 conftest$ac_exeext conftest.$ac_ext ;; 17722 esac 17723 fi 17724 17725 17726 CFLAGS="$xorg_testset_save_CFLAGS" 17727 17728 eval supported=\$$cacheid 17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17730 printf "%s\n" "$supported" >&6; } 17731 if test "$supported" = "yes" ; then 17732 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17733 found="yes" 17734 fi 17735 fi 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 xorg_testset_save_CFLAGS="$CFLAGS" 17752 17753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17756 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17757 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17758 then : 17759 printf %s "(cached) " >&6 17760 else case e in #( 17761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762 /* end confdefs.h. */ 17763 int i; 17764 _ACEOF 17765 if ac_fn_c_try_compile "$LINENO" 17766 then : 17767 xorg_cv_cc_flag_unknown_warning_option=yes 17768 else case e in #( 17769 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17770 esac 17771 fi 17772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17773 esac 17774 fi 17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17776 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17778 CFLAGS="$xorg_testset_save_CFLAGS" 17779 fi 17780 17781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17784 fi 17785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17787 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17788 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17789 then : 17790 printf %s "(cached) " >&6 17791 else case e in #( 17792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17793 /* end confdefs.h. */ 17794 int i; 17795 _ACEOF 17796 if ac_fn_c_try_compile "$LINENO" 17797 then : 17798 xorg_cv_cc_flag_unused_command_line_argument=yes 17799 else case e in #( 17800 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17801 esac 17802 fi 17803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17804 esac 17805 fi 17806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17807 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17809 CFLAGS="$xorg_testset_save_CFLAGS" 17810 fi 17811 17812 found="no" 17813 17814 if test $found = "no" ; then 17815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17817 fi 17818 17819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17821 fi 17822 17823 CFLAGS="$CFLAGS -Winit-self" 17824 17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17826 printf %s "checking if $CC supports -Winit-self... " >&6; } 17827 cacheid=xorg_cv_cc_flag__Winit_self 17828 if eval test \${$cacheid+y} 17829 then : 17830 printf %s "(cached) " >&6 17831 else case e in #( 17832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833 /* end confdefs.h. */ 17834 int i; 17835 int 17836 main (void) 17837 { 17838 17839 ; 17840 return 0; 17841 } 17842 _ACEOF 17843 if ac_fn_c_try_link "$LINENO" 17844 then : 17845 eval $cacheid=yes 17846 else case e in #( 17847 e) eval $cacheid=no ;; 17848 esac 17849 fi 17850 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17851 conftest$ac_exeext conftest.$ac_ext ;; 17852 esac 17853 fi 17854 17855 17856 CFLAGS="$xorg_testset_save_CFLAGS" 17857 17858 eval supported=\$$cacheid 17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17860 printf "%s\n" "$supported" >&6; } 17861 if test "$supported" = "yes" ; then 17862 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17863 found="yes" 17864 fi 17865 fi 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 xorg_testset_save_CFLAGS="$CFLAGS" 17882 17883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17887 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17888 then : 17889 printf %s "(cached) " >&6 17890 else case e in #( 17891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892 /* end confdefs.h. */ 17893 int i; 17894 _ACEOF 17895 if ac_fn_c_try_compile "$LINENO" 17896 then : 17897 xorg_cv_cc_flag_unknown_warning_option=yes 17898 else case e in #( 17899 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17900 esac 17901 fi 17902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17903 esac 17904 fi 17905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17906 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17908 CFLAGS="$xorg_testset_save_CFLAGS" 17909 fi 17910 17911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17914 fi 17915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17917 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17918 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17919 then : 17920 printf %s "(cached) " >&6 17921 else case e in #( 17922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17923 /* end confdefs.h. */ 17924 int i; 17925 _ACEOF 17926 if ac_fn_c_try_compile "$LINENO" 17927 then : 17928 xorg_cv_cc_flag_unused_command_line_argument=yes 17929 else case e in #( 17930 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17931 esac 17932 fi 17933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17934 esac 17935 fi 17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17937 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17939 CFLAGS="$xorg_testset_save_CFLAGS" 17940 fi 17941 17942 found="no" 17943 17944 if test $found = "no" ; then 17945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17947 fi 17948 17949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17951 fi 17952 17953 CFLAGS="$CFLAGS -Wmain" 17954 17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17956 printf %s "checking if $CC supports -Wmain... " >&6; } 17957 cacheid=xorg_cv_cc_flag__Wmain 17958 if eval test \${$cacheid+y} 17959 then : 17960 printf %s "(cached) " >&6 17961 else case e in #( 17962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17963 /* end confdefs.h. */ 17964 int i; 17965 int 17966 main (void) 17967 { 17968 17969 ; 17970 return 0; 17971 } 17972 _ACEOF 17973 if ac_fn_c_try_link "$LINENO" 17974 then : 17975 eval $cacheid=yes 17976 else case e in #( 17977 e) eval $cacheid=no ;; 17978 esac 17979 fi 17980 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17981 conftest$ac_exeext conftest.$ac_ext ;; 17982 esac 17983 fi 17984 17985 17986 CFLAGS="$xorg_testset_save_CFLAGS" 17987 17988 eval supported=\$$cacheid 17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17990 printf "%s\n" "$supported" >&6; } 17991 if test "$supported" = "yes" ; then 17992 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17993 found="yes" 17994 fi 17995 fi 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 xorg_testset_save_CFLAGS="$CFLAGS" 18012 18013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18017 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18018 then : 18019 printf %s "(cached) " >&6 18020 else case e in #( 18021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18022 /* end confdefs.h. */ 18023 int i; 18024 _ACEOF 18025 if ac_fn_c_try_compile "$LINENO" 18026 then : 18027 xorg_cv_cc_flag_unknown_warning_option=yes 18028 else case e in #( 18029 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18030 esac 18031 fi 18032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18033 esac 18034 fi 18035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18036 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18038 CFLAGS="$xorg_testset_save_CFLAGS" 18039 fi 18040 18041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18044 fi 18045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18047 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18048 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18049 then : 18050 printf %s "(cached) " >&6 18051 else case e in #( 18052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18053 /* end confdefs.h. */ 18054 int i; 18055 _ACEOF 18056 if ac_fn_c_try_compile "$LINENO" 18057 then : 18058 xorg_cv_cc_flag_unused_command_line_argument=yes 18059 else case e in #( 18060 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18061 esac 18062 fi 18063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18064 esac 18065 fi 18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18067 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18069 CFLAGS="$xorg_testset_save_CFLAGS" 18070 fi 18071 18072 found="no" 18073 18074 if test $found = "no" ; then 18075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18077 fi 18078 18079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18081 fi 18082 18083 CFLAGS="$CFLAGS -Wmissing-braces" 18084 18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18086 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18087 cacheid=xorg_cv_cc_flag__Wmissing_braces 18088 if eval test \${$cacheid+y} 18089 then : 18090 printf %s "(cached) " >&6 18091 else case e in #( 18092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18093 /* end confdefs.h. */ 18094 int i; 18095 int 18096 main (void) 18097 { 18098 18099 ; 18100 return 0; 18101 } 18102 _ACEOF 18103 if ac_fn_c_try_link "$LINENO" 18104 then : 18105 eval $cacheid=yes 18106 else case e in #( 18107 e) eval $cacheid=no ;; 18108 esac 18109 fi 18110 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18111 conftest$ac_exeext conftest.$ac_ext ;; 18112 esac 18113 fi 18114 18115 18116 CFLAGS="$xorg_testset_save_CFLAGS" 18117 18118 eval supported=\$$cacheid 18119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18120 printf "%s\n" "$supported" >&6; } 18121 if test "$supported" = "yes" ; then 18122 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18123 found="yes" 18124 fi 18125 fi 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 xorg_testset_save_CFLAGS="$CFLAGS" 18142 18143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18147 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18148 then : 18149 printf %s "(cached) " >&6 18150 else case e in #( 18151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18152 /* end confdefs.h. */ 18153 int i; 18154 _ACEOF 18155 if ac_fn_c_try_compile "$LINENO" 18156 then : 18157 xorg_cv_cc_flag_unknown_warning_option=yes 18158 else case e in #( 18159 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18160 esac 18161 fi 18162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18163 esac 18164 fi 18165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18166 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18168 CFLAGS="$xorg_testset_save_CFLAGS" 18169 fi 18170 18171 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18174 fi 18175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18177 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18178 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18179 then : 18180 printf %s "(cached) " >&6 18181 else case e in #( 18182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18183 /* end confdefs.h. */ 18184 int i; 18185 _ACEOF 18186 if ac_fn_c_try_compile "$LINENO" 18187 then : 18188 xorg_cv_cc_flag_unused_command_line_argument=yes 18189 else case e in #( 18190 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18191 esac 18192 fi 18193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18194 esac 18195 fi 18196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18199 CFLAGS="$xorg_testset_save_CFLAGS" 18200 fi 18201 18202 found="no" 18203 18204 if test $found = "no" ; then 18205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18207 fi 18208 18209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18211 fi 18212 18213 CFLAGS="$CFLAGS -Wsequence-point" 18214 18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18216 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18217 cacheid=xorg_cv_cc_flag__Wsequence_point 18218 if eval test \${$cacheid+y} 18219 then : 18220 printf %s "(cached) " >&6 18221 else case e in #( 18222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18223 /* end confdefs.h. */ 18224 int i; 18225 int 18226 main (void) 18227 { 18228 18229 ; 18230 return 0; 18231 } 18232 _ACEOF 18233 if ac_fn_c_try_link "$LINENO" 18234 then : 18235 eval $cacheid=yes 18236 else case e in #( 18237 e) eval $cacheid=no ;; 18238 esac 18239 fi 18240 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18241 conftest$ac_exeext conftest.$ac_ext ;; 18242 esac 18243 fi 18244 18245 18246 CFLAGS="$xorg_testset_save_CFLAGS" 18247 18248 eval supported=\$$cacheid 18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18250 printf "%s\n" "$supported" >&6; } 18251 if test "$supported" = "yes" ; then 18252 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18253 found="yes" 18254 fi 18255 fi 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 xorg_testset_save_CFLAGS="$CFLAGS" 18272 18273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18276 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18277 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18278 then : 18279 printf %s "(cached) " >&6 18280 else case e in #( 18281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18282 /* end confdefs.h. */ 18283 int i; 18284 _ACEOF 18285 if ac_fn_c_try_compile "$LINENO" 18286 then : 18287 xorg_cv_cc_flag_unknown_warning_option=yes 18288 else case e in #( 18289 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18290 esac 18291 fi 18292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18293 esac 18294 fi 18295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18296 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18298 CFLAGS="$xorg_testset_save_CFLAGS" 18299 fi 18300 18301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18304 fi 18305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18307 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18308 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18309 then : 18310 printf %s "(cached) " >&6 18311 else case e in #( 18312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18313 /* end confdefs.h. */ 18314 int i; 18315 _ACEOF 18316 if ac_fn_c_try_compile "$LINENO" 18317 then : 18318 xorg_cv_cc_flag_unused_command_line_argument=yes 18319 else case e in #( 18320 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18321 esac 18322 fi 18323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18324 esac 18325 fi 18326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18327 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18329 CFLAGS="$xorg_testset_save_CFLAGS" 18330 fi 18331 18332 found="no" 18333 18334 if test $found = "no" ; then 18335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18337 fi 18338 18339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18341 fi 18342 18343 CFLAGS="$CFLAGS -Wreturn-type" 18344 18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18346 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18347 cacheid=xorg_cv_cc_flag__Wreturn_type 18348 if eval test \${$cacheid+y} 18349 then : 18350 printf %s "(cached) " >&6 18351 else case e in #( 18352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18353 /* end confdefs.h. */ 18354 int i; 18355 int 18356 main (void) 18357 { 18358 18359 ; 18360 return 0; 18361 } 18362 _ACEOF 18363 if ac_fn_c_try_link "$LINENO" 18364 then : 18365 eval $cacheid=yes 18366 else case e in #( 18367 e) eval $cacheid=no ;; 18368 esac 18369 fi 18370 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18371 conftest$ac_exeext conftest.$ac_ext ;; 18372 esac 18373 fi 18374 18375 18376 CFLAGS="$xorg_testset_save_CFLAGS" 18377 18378 eval supported=\$$cacheid 18379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18380 printf "%s\n" "$supported" >&6; } 18381 if test "$supported" = "yes" ; then 18382 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18383 found="yes" 18384 fi 18385 fi 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 xorg_testset_save_CFLAGS="$CFLAGS" 18402 18403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18406 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18407 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18408 then : 18409 printf %s "(cached) " >&6 18410 else case e in #( 18411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18412 /* end confdefs.h. */ 18413 int i; 18414 _ACEOF 18415 if ac_fn_c_try_compile "$LINENO" 18416 then : 18417 xorg_cv_cc_flag_unknown_warning_option=yes 18418 else case e in #( 18419 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18420 esac 18421 fi 18422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18423 esac 18424 fi 18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18426 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18428 CFLAGS="$xorg_testset_save_CFLAGS" 18429 fi 18430 18431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18434 fi 18435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18437 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18438 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18439 then : 18440 printf %s "(cached) " >&6 18441 else case e in #( 18442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18443 /* end confdefs.h. */ 18444 int i; 18445 _ACEOF 18446 if ac_fn_c_try_compile "$LINENO" 18447 then : 18448 xorg_cv_cc_flag_unused_command_line_argument=yes 18449 else case e in #( 18450 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18451 esac 18452 fi 18453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18454 esac 18455 fi 18456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18457 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18459 CFLAGS="$xorg_testset_save_CFLAGS" 18460 fi 18461 18462 found="no" 18463 18464 if test $found = "no" ; then 18465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18467 fi 18468 18469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18471 fi 18472 18473 CFLAGS="$CFLAGS -Wtrigraphs" 18474 18475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18476 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18477 cacheid=xorg_cv_cc_flag__Wtrigraphs 18478 if eval test \${$cacheid+y} 18479 then : 18480 printf %s "(cached) " >&6 18481 else case e in #( 18482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18483 /* end confdefs.h. */ 18484 int i; 18485 int 18486 main (void) 18487 { 18488 18489 ; 18490 return 0; 18491 } 18492 _ACEOF 18493 if ac_fn_c_try_link "$LINENO" 18494 then : 18495 eval $cacheid=yes 18496 else case e in #( 18497 e) eval $cacheid=no ;; 18498 esac 18499 fi 18500 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18501 conftest$ac_exeext conftest.$ac_ext ;; 18502 esac 18503 fi 18504 18505 18506 CFLAGS="$xorg_testset_save_CFLAGS" 18507 18508 eval supported=\$$cacheid 18509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18510 printf "%s\n" "$supported" >&6; } 18511 if test "$supported" = "yes" ; then 18512 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18513 found="yes" 18514 fi 18515 fi 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 xorg_testset_save_CFLAGS="$CFLAGS" 18532 18533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18536 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18537 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18538 then : 18539 printf %s "(cached) " >&6 18540 else case e in #( 18541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18542 /* end confdefs.h. */ 18543 int i; 18544 _ACEOF 18545 if ac_fn_c_try_compile "$LINENO" 18546 then : 18547 xorg_cv_cc_flag_unknown_warning_option=yes 18548 else case e in #( 18549 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18550 esac 18551 fi 18552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18553 esac 18554 fi 18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18558 CFLAGS="$xorg_testset_save_CFLAGS" 18559 fi 18560 18561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18564 fi 18565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18569 then : 18570 printf %s "(cached) " >&6 18571 else case e in #( 18572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18573 /* end confdefs.h. */ 18574 int i; 18575 _ACEOF 18576 if ac_fn_c_try_compile "$LINENO" 18577 then : 18578 xorg_cv_cc_flag_unused_command_line_argument=yes 18579 else case e in #( 18580 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18581 esac 18582 fi 18583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18584 esac 18585 fi 18586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18587 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18589 CFLAGS="$xorg_testset_save_CFLAGS" 18590 fi 18591 18592 found="no" 18593 18594 if test $found = "no" ; then 18595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18597 fi 18598 18599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18601 fi 18602 18603 CFLAGS="$CFLAGS -Warray-bounds" 18604 18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18606 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18607 cacheid=xorg_cv_cc_flag__Warray_bounds 18608 if eval test \${$cacheid+y} 18609 then : 18610 printf %s "(cached) " >&6 18611 else case e in #( 18612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18613 /* end confdefs.h. */ 18614 int i; 18615 int 18616 main (void) 18617 { 18618 18619 ; 18620 return 0; 18621 } 18622 _ACEOF 18623 if ac_fn_c_try_link "$LINENO" 18624 then : 18625 eval $cacheid=yes 18626 else case e in #( 18627 e) eval $cacheid=no ;; 18628 esac 18629 fi 18630 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18631 conftest$ac_exeext conftest.$ac_ext ;; 18632 esac 18633 fi 18634 18635 18636 CFLAGS="$xorg_testset_save_CFLAGS" 18637 18638 eval supported=\$$cacheid 18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18640 printf "%s\n" "$supported" >&6; } 18641 if test "$supported" = "yes" ; then 18642 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18643 found="yes" 18644 fi 18645 fi 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 xorg_testset_save_CFLAGS="$CFLAGS" 18662 18663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18667 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18668 then : 18669 printf %s "(cached) " >&6 18670 else case e in #( 18671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18672 /* end confdefs.h. */ 18673 int i; 18674 _ACEOF 18675 if ac_fn_c_try_compile "$LINENO" 18676 then : 18677 xorg_cv_cc_flag_unknown_warning_option=yes 18678 else case e in #( 18679 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18680 esac 18681 fi 18682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18683 esac 18684 fi 18685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18686 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18688 CFLAGS="$xorg_testset_save_CFLAGS" 18689 fi 18690 18691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18694 fi 18695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18699 then : 18700 printf %s "(cached) " >&6 18701 else case e in #( 18702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18703 /* end confdefs.h. */ 18704 int i; 18705 _ACEOF 18706 if ac_fn_c_try_compile "$LINENO" 18707 then : 18708 xorg_cv_cc_flag_unused_command_line_argument=yes 18709 else case e in #( 18710 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18711 esac 18712 fi 18713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18714 esac 18715 fi 18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18717 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18719 CFLAGS="$xorg_testset_save_CFLAGS" 18720 fi 18721 18722 found="no" 18723 18724 if test $found = "no" ; then 18725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18727 fi 18728 18729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18731 fi 18732 18733 CFLAGS="$CFLAGS -Wwrite-strings" 18734 18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18736 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18737 cacheid=xorg_cv_cc_flag__Wwrite_strings 18738 if eval test \${$cacheid+y} 18739 then : 18740 printf %s "(cached) " >&6 18741 else case e in #( 18742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18743 /* end confdefs.h. */ 18744 int i; 18745 int 18746 main (void) 18747 { 18748 18749 ; 18750 return 0; 18751 } 18752 _ACEOF 18753 if ac_fn_c_try_link "$LINENO" 18754 then : 18755 eval $cacheid=yes 18756 else case e in #( 18757 e) eval $cacheid=no ;; 18758 esac 18759 fi 18760 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18761 conftest$ac_exeext conftest.$ac_ext ;; 18762 esac 18763 fi 18764 18765 18766 CFLAGS="$xorg_testset_save_CFLAGS" 18767 18768 eval supported=\$$cacheid 18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18770 printf "%s\n" "$supported" >&6; } 18771 if test "$supported" = "yes" ; then 18772 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18773 found="yes" 18774 fi 18775 fi 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 xorg_testset_save_CFLAGS="$CFLAGS" 18792 18793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18797 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18798 then : 18799 printf %s "(cached) " >&6 18800 else case e in #( 18801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18802 /* end confdefs.h. */ 18803 int i; 18804 _ACEOF 18805 if ac_fn_c_try_compile "$LINENO" 18806 then : 18807 xorg_cv_cc_flag_unknown_warning_option=yes 18808 else case e in #( 18809 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18810 esac 18811 fi 18812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18813 esac 18814 fi 18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18818 CFLAGS="$xorg_testset_save_CFLAGS" 18819 fi 18820 18821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18824 fi 18825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18829 then : 18830 printf %s "(cached) " >&6 18831 else case e in #( 18832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18833 /* end confdefs.h. */ 18834 int i; 18835 _ACEOF 18836 if ac_fn_c_try_compile "$LINENO" 18837 then : 18838 xorg_cv_cc_flag_unused_command_line_argument=yes 18839 else case e in #( 18840 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18841 esac 18842 fi 18843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18844 esac 18845 fi 18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18849 CFLAGS="$xorg_testset_save_CFLAGS" 18850 fi 18851 18852 found="no" 18853 18854 if test $found = "no" ; then 18855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18857 fi 18858 18859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18861 fi 18862 18863 CFLAGS="$CFLAGS -Waddress" 18864 18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18866 printf %s "checking if $CC supports -Waddress... " >&6; } 18867 cacheid=xorg_cv_cc_flag__Waddress 18868 if eval test \${$cacheid+y} 18869 then : 18870 printf %s "(cached) " >&6 18871 else case e in #( 18872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18873 /* end confdefs.h. */ 18874 int i; 18875 int 18876 main (void) 18877 { 18878 18879 ; 18880 return 0; 18881 } 18882 _ACEOF 18883 if ac_fn_c_try_link "$LINENO" 18884 then : 18885 eval $cacheid=yes 18886 else case e in #( 18887 e) eval $cacheid=no ;; 18888 esac 18889 fi 18890 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18891 conftest$ac_exeext conftest.$ac_ext ;; 18892 esac 18893 fi 18894 18895 18896 CFLAGS="$xorg_testset_save_CFLAGS" 18897 18898 eval supported=\$$cacheid 18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18900 printf "%s\n" "$supported" >&6; } 18901 if test "$supported" = "yes" ; then 18902 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18903 found="yes" 18904 fi 18905 fi 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 xorg_testset_save_CFLAGS="$CFLAGS" 18922 18923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18927 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18928 then : 18929 printf %s "(cached) " >&6 18930 else case e in #( 18931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18932 /* end confdefs.h. */ 18933 int i; 18934 _ACEOF 18935 if ac_fn_c_try_compile "$LINENO" 18936 then : 18937 xorg_cv_cc_flag_unknown_warning_option=yes 18938 else case e in #( 18939 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18940 esac 18941 fi 18942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18943 esac 18944 fi 18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18946 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18948 CFLAGS="$xorg_testset_save_CFLAGS" 18949 fi 18950 18951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18954 fi 18955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18957 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18958 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18959 then : 18960 printf %s "(cached) " >&6 18961 else case e in #( 18962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18963 /* end confdefs.h. */ 18964 int i; 18965 _ACEOF 18966 if ac_fn_c_try_compile "$LINENO" 18967 then : 18968 xorg_cv_cc_flag_unused_command_line_argument=yes 18969 else case e in #( 18970 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18971 esac 18972 fi 18973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18974 esac 18975 fi 18976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18979 CFLAGS="$xorg_testset_save_CFLAGS" 18980 fi 18981 18982 found="no" 18983 18984 if test $found = "no" ; then 18985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18987 fi 18988 18989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18991 fi 18992 18993 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18994 18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18996 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18997 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18998 if eval test \${$cacheid+y} 18999 then : 19000 printf %s "(cached) " >&6 19001 else case e in #( 19002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19003 /* end confdefs.h. */ 19004 int i; 19005 int 19006 main (void) 19007 { 19008 19009 ; 19010 return 0; 19011 } 19012 _ACEOF 19013 if ac_fn_c_try_link "$LINENO" 19014 then : 19015 eval $cacheid=yes 19016 else case e in #( 19017 e) eval $cacheid=no ;; 19018 esac 19019 fi 19020 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19021 conftest$ac_exeext conftest.$ac_ext ;; 19022 esac 19023 fi 19024 19025 19026 CFLAGS="$xorg_testset_save_CFLAGS" 19027 19028 eval supported=\$$cacheid 19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19030 printf "%s\n" "$supported" >&6; } 19031 if test "$supported" = "yes" ; then 19032 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19033 found="yes" 19034 fi 19035 fi 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 xorg_testset_save_CFLAGS="$CFLAGS" 19052 19053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19056 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19057 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19058 then : 19059 printf %s "(cached) " >&6 19060 else case e in #( 19061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19062 /* end confdefs.h. */ 19063 int i; 19064 _ACEOF 19065 if ac_fn_c_try_compile "$LINENO" 19066 then : 19067 xorg_cv_cc_flag_unknown_warning_option=yes 19068 else case e in #( 19069 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19070 esac 19071 fi 19072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19073 esac 19074 fi 19075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19078 CFLAGS="$xorg_testset_save_CFLAGS" 19079 fi 19080 19081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19084 fi 19085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19089 then : 19090 printf %s "(cached) " >&6 19091 else case e in #( 19092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19093 /* end confdefs.h. */ 19094 int i; 19095 _ACEOF 19096 if ac_fn_c_try_compile "$LINENO" 19097 then : 19098 xorg_cv_cc_flag_unused_command_line_argument=yes 19099 else case e in #( 19100 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19101 esac 19102 fi 19103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19104 esac 19105 fi 19106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19109 CFLAGS="$xorg_testset_save_CFLAGS" 19110 fi 19111 19112 found="no" 19113 19114 if test $found = "no" ; then 19115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19117 fi 19118 19119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19121 fi 19122 19123 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19124 19125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19126 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19127 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19128 if eval test \${$cacheid+y} 19129 then : 19130 printf %s "(cached) " >&6 19131 else case e in #( 19132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19133 /* end confdefs.h. */ 19134 int i; 19135 int 19136 main (void) 19137 { 19138 19139 ; 19140 return 0; 19141 } 19142 _ACEOF 19143 if ac_fn_c_try_link "$LINENO" 19144 then : 19145 eval $cacheid=yes 19146 else case e in #( 19147 e) eval $cacheid=no ;; 19148 esac 19149 fi 19150 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19151 conftest$ac_exeext conftest.$ac_ext ;; 19152 esac 19153 fi 19154 19155 19156 CFLAGS="$xorg_testset_save_CFLAGS" 19157 19158 eval supported=\$$cacheid 19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19160 printf "%s\n" "$supported" >&6; } 19161 if test "$supported" = "yes" ; then 19162 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19163 found="yes" 19164 fi 19165 fi 19166 19167 19168 fi 19169 19170 19171 19172 19173 19174 19175 19176 CWARNFLAGS="$BASE_CFLAGS" 19177 if test "x$GCC" = xyes ; then 19178 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19179 fi 19180 19181 19182 19183 19184 19185 19186 19187 19188 # Check whether --enable-strict-compilation was given. 19189 if test ${enable_strict_compilation+y} 19190 then : 19191 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19192 else case e in #( 19193 e) STRICT_COMPILE=no ;; 19194 esac 19195 fi 19196 19197 19198 19199 19200 19201 19202 STRICT_CFLAGS="" 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 xorg_testset_save_CFLAGS="$CFLAGS" 19217 19218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19222 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19223 then : 19224 printf %s "(cached) " >&6 19225 else case e in #( 19226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19227 /* end confdefs.h. */ 19228 int i; 19229 _ACEOF 19230 if ac_fn_c_try_compile "$LINENO" 19231 then : 19232 xorg_cv_cc_flag_unknown_warning_option=yes 19233 else case e in #( 19234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19235 esac 19236 fi 19237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19238 esac 19239 fi 19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19243 CFLAGS="$xorg_testset_save_CFLAGS" 19244 fi 19245 19246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19249 fi 19250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19254 then : 19255 printf %s "(cached) " >&6 19256 else case e in #( 19257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19258 /* end confdefs.h. */ 19259 int i; 19260 _ACEOF 19261 if ac_fn_c_try_compile "$LINENO" 19262 then : 19263 xorg_cv_cc_flag_unused_command_line_argument=yes 19264 else case e in #( 19265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19266 esac 19267 fi 19268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19269 esac 19270 fi 19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19274 CFLAGS="$xorg_testset_save_CFLAGS" 19275 fi 19276 19277 found="no" 19278 19279 if test $found = "no" ; then 19280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19282 fi 19283 19284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19286 fi 19287 19288 CFLAGS="$CFLAGS -pedantic" 19289 19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19291 printf %s "checking if $CC supports -pedantic... " >&6; } 19292 cacheid=xorg_cv_cc_flag__pedantic 19293 if eval test \${$cacheid+y} 19294 then : 19295 printf %s "(cached) " >&6 19296 else case e in #( 19297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19298 /* end confdefs.h. */ 19299 int i; 19300 int 19301 main (void) 19302 { 19303 19304 ; 19305 return 0; 19306 } 19307 _ACEOF 19308 if ac_fn_c_try_link "$LINENO" 19309 then : 19310 eval $cacheid=yes 19311 else case e in #( 19312 e) eval $cacheid=no ;; 19313 esac 19314 fi 19315 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19316 conftest$ac_exeext conftest.$ac_ext ;; 19317 esac 19318 fi 19319 19320 19321 CFLAGS="$xorg_testset_save_CFLAGS" 19322 19323 eval supported=\$$cacheid 19324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19325 printf "%s\n" "$supported" >&6; } 19326 if test "$supported" = "yes" ; then 19327 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19328 found="yes" 19329 fi 19330 fi 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 xorg_testset_save_CFLAGS="$CFLAGS" 19347 19348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19352 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19353 then : 19354 printf %s "(cached) " >&6 19355 else case e in #( 19356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19357 /* end confdefs.h. */ 19358 int i; 19359 _ACEOF 19360 if ac_fn_c_try_compile "$LINENO" 19361 then : 19362 xorg_cv_cc_flag_unknown_warning_option=yes 19363 else case e in #( 19364 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19365 esac 19366 fi 19367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19368 esac 19369 fi 19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19371 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19373 CFLAGS="$xorg_testset_save_CFLAGS" 19374 fi 19375 19376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19379 fi 19380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19382 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19383 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19384 then : 19385 printf %s "(cached) " >&6 19386 else case e in #( 19387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19388 /* end confdefs.h. */ 19389 int i; 19390 _ACEOF 19391 if ac_fn_c_try_compile "$LINENO" 19392 then : 19393 xorg_cv_cc_flag_unused_command_line_argument=yes 19394 else case e in #( 19395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19396 esac 19397 fi 19398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19399 esac 19400 fi 19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19402 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19404 CFLAGS="$xorg_testset_save_CFLAGS" 19405 fi 19406 19407 found="no" 19408 19409 if test $found = "no" ; then 19410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19412 fi 19413 19414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19416 fi 19417 19418 CFLAGS="$CFLAGS -Werror" 19419 19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19421 printf %s "checking if $CC supports -Werror... " >&6; } 19422 cacheid=xorg_cv_cc_flag__Werror 19423 if eval test \${$cacheid+y} 19424 then : 19425 printf %s "(cached) " >&6 19426 else case e in #( 19427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19428 /* end confdefs.h. */ 19429 int i; 19430 int 19431 main (void) 19432 { 19433 19434 ; 19435 return 0; 19436 } 19437 _ACEOF 19438 if ac_fn_c_try_link "$LINENO" 19439 then : 19440 eval $cacheid=yes 19441 else case e in #( 19442 e) eval $cacheid=no ;; 19443 esac 19444 fi 19445 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19446 conftest$ac_exeext conftest.$ac_ext ;; 19447 esac 19448 fi 19449 19450 19451 CFLAGS="$xorg_testset_save_CFLAGS" 19452 19453 eval supported=\$$cacheid 19454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19455 printf "%s\n" "$supported" >&6; } 19456 if test "$supported" = "yes" ; then 19457 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19458 found="yes" 19459 fi 19460 fi 19461 19462 if test $found = "no" ; then 19463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19465 fi 19466 19467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19469 fi 19470 19471 CFLAGS="$CFLAGS -errwarn" 19472 19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19474 printf %s "checking if $CC supports -errwarn... " >&6; } 19475 cacheid=xorg_cv_cc_flag__errwarn 19476 if eval test \${$cacheid+y} 19477 then : 19478 printf %s "(cached) " >&6 19479 else case e in #( 19480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19481 /* end confdefs.h. */ 19482 int i; 19483 int 19484 main (void) 19485 { 19486 19487 ; 19488 return 0; 19489 } 19490 _ACEOF 19491 if ac_fn_c_try_link "$LINENO" 19492 then : 19493 eval $cacheid=yes 19494 else case e in #( 19495 e) eval $cacheid=no ;; 19496 esac 19497 fi 19498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19499 conftest$ac_exeext conftest.$ac_ext ;; 19500 esac 19501 fi 19502 19503 19504 CFLAGS="$xorg_testset_save_CFLAGS" 19505 19506 eval supported=\$$cacheid 19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19508 printf "%s\n" "$supported" >&6; } 19509 if test "$supported" = "yes" ; then 19510 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19511 found="yes" 19512 fi 19513 fi 19514 19515 19516 19517 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19518 # activate it with -Werror, so we add it here explicitly. 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 xorg_testset_save_CFLAGS="$CFLAGS" 19533 19534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19538 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19539 then : 19540 printf %s "(cached) " >&6 19541 else case e in #( 19542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19543 /* end confdefs.h. */ 19544 int i; 19545 _ACEOF 19546 if ac_fn_c_try_compile "$LINENO" 19547 then : 19548 xorg_cv_cc_flag_unknown_warning_option=yes 19549 else case e in #( 19550 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19551 esac 19552 fi 19553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19554 esac 19555 fi 19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19557 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19559 CFLAGS="$xorg_testset_save_CFLAGS" 19560 fi 19561 19562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19565 fi 19566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19568 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19569 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19570 then : 19571 printf %s "(cached) " >&6 19572 else case e in #( 19573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19574 /* end confdefs.h. */ 19575 int i; 19576 _ACEOF 19577 if ac_fn_c_try_compile "$LINENO" 19578 then : 19579 xorg_cv_cc_flag_unused_command_line_argument=yes 19580 else case e in #( 19581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19582 esac 19583 fi 19584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19585 esac 19586 fi 19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19588 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19590 CFLAGS="$xorg_testset_save_CFLAGS" 19591 fi 19592 19593 found="no" 19594 19595 if test $found = "no" ; then 19596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19598 fi 19599 19600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19602 fi 19603 19604 CFLAGS="$CFLAGS -Werror=attributes" 19605 19606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19607 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19608 cacheid=xorg_cv_cc_flag__Werror_attributes 19609 if eval test \${$cacheid+y} 19610 then : 19611 printf %s "(cached) " >&6 19612 else case e in #( 19613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19614 /* end confdefs.h. */ 19615 int i; 19616 int 19617 main (void) 19618 { 19619 19620 ; 19621 return 0; 19622 } 19623 _ACEOF 19624 if ac_fn_c_try_link "$LINENO" 19625 then : 19626 eval $cacheid=yes 19627 else case e in #( 19628 e) eval $cacheid=no ;; 19629 esac 19630 fi 19631 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19632 conftest$ac_exeext conftest.$ac_ext ;; 19633 esac 19634 fi 19635 19636 19637 CFLAGS="$xorg_testset_save_CFLAGS" 19638 19639 eval supported=\$$cacheid 19640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19641 printf "%s\n" "$supported" >&6; } 19642 if test "$supported" = "yes" ; then 19643 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19644 found="yes" 19645 fi 19646 fi 19647 19648 19649 19650 if test "x$STRICT_COMPILE" = "xyes"; then 19651 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19652 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19653 fi 19654 19655 19656 19657 19658 19659 19660 19661 19662 cat >>confdefs.h <<_ACEOF 19663 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19664 _ACEOF 19665 19666 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19667 if test "x$PVM" = "x"; then 19668 PVM="0" 19669 fi 19670 19671 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19672 19673 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19674 if test "x$PVP" = "x"; then 19675 PVP="0" 19676 fi 19677 19678 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19679 19680 19681 19682 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19683 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19684 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19685 touch \$(top_srcdir)/ChangeLog; \ 19686 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19687 19688 19689 19690 19691 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19692 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19693 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19694 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19695 touch \$(top_srcdir)/INSTALL; \ 19696 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19697 19698 19699 19700 19701 19702 19703 case $host_os in 19704 solaris*) 19705 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19706 # check for a man page file found in later versions that use 19707 # traditional section numbers instead 19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19709 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19710 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19711 then : 19712 printf %s "(cached) " >&6 19713 else case e in #( 19714 e) test "$cross_compiling" = yes && 19715 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19716 if test -r "/usr/share/man/man7/attributes.7"; then 19717 ac_cv_file__usr_share_man_man7_attributes_7=yes 19718 else 19719 ac_cv_file__usr_share_man_man7_attributes_7=no 19720 fi ;; 19721 esac 19722 fi 19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19724 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19725 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19726 then : 19727 SYSV_MAN_SECTIONS=false 19728 else case e in #( 19729 e) SYSV_MAN_SECTIONS=true ;; 19730 esac 19731 fi 19732 19733 ;; 19734 *) SYSV_MAN_SECTIONS=false ;; 19735 esac 19736 19737 if test x$APP_MAN_SUFFIX = x ; then 19738 APP_MAN_SUFFIX=1 19739 fi 19740 if test x$APP_MAN_DIR = x ; then 19741 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19742 fi 19743 19744 if test x$LIB_MAN_SUFFIX = x ; then 19745 LIB_MAN_SUFFIX=3 19746 fi 19747 if test x$LIB_MAN_DIR = x ; then 19748 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19749 fi 19750 19751 if test x$FILE_MAN_SUFFIX = x ; then 19752 case $SYSV_MAN_SECTIONS in 19753 true) FILE_MAN_SUFFIX=4 ;; 19754 *) FILE_MAN_SUFFIX=5 ;; 19755 esac 19756 fi 19757 if test x$FILE_MAN_DIR = x ; then 19758 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19759 fi 19760 19761 if test x$MISC_MAN_SUFFIX = x ; then 19762 case $SYSV_MAN_SECTIONS in 19763 true) MISC_MAN_SUFFIX=5 ;; 19764 *) MISC_MAN_SUFFIX=7 ;; 19765 esac 19766 fi 19767 if test x$MISC_MAN_DIR = x ; then 19768 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19769 fi 19770 19771 if test x$DRIVER_MAN_SUFFIX = x ; then 19772 case $SYSV_MAN_SECTIONS in 19773 true) DRIVER_MAN_SUFFIX=7 ;; 19774 *) DRIVER_MAN_SUFFIX=4 ;; 19775 esac 19776 fi 19777 if test x$DRIVER_MAN_DIR = x ; then 19778 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19779 fi 19780 19781 if test x$ADMIN_MAN_SUFFIX = x ; then 19782 case $SYSV_MAN_SECTIONS in 19783 true) ADMIN_MAN_SUFFIX=1m ;; 19784 *) ADMIN_MAN_SUFFIX=8 ;; 19785 esac 19786 fi 19787 if test x$ADMIN_MAN_DIR = x ; then 19788 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19789 fi 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 XORG_MAN_PAGE="X Version 11" 19806 19807 MAN_SUBSTS="\ 19808 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19809 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19810 -e 's|__xservername__|Xorg|g' \ 19811 -e 's|__xconfigfile__|xorg.conf|g' \ 19812 -e 's|__projectroot__|\$(prefix)|g' \ 19813 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19814 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19815 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19816 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19817 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19818 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19819 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19820 19821 19822 19823 # Check whether --enable-silent-rules was given. 19824 if test ${enable_silent_rules+y} 19825 then : 19826 enableval=$enable_silent_rules; 19827 fi 19828 19829 case $enable_silent_rules in # ((( 19830 yes) AM_DEFAULT_VERBOSITY=0;; 19831 no) AM_DEFAULT_VERBOSITY=1;; 19832 *) AM_DEFAULT_VERBOSITY=0;; 19833 esac 19834 am_make=${MAKE-make} 19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19836 printf %s "checking whether $am_make supports nested variables... " >&6; } 19837 if test ${am_cv_make_support_nested_variables+y} 19838 then : 19839 printf %s "(cached) " >&6 19840 else case e in #( 19841 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 19842 BAR0=false 19843 BAR1=true 19844 V=1 19845 am__doit: 19846 @$(TRUE) 19847 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19848 am_cv_make_support_nested_variables=yes 19849 else 19850 am_cv_make_support_nested_variables=no 19851 fi ;; 19852 esac 19853 fi 19854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19855 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19856 if test $am_cv_make_support_nested_variables = yes; then 19857 AM_V='$(V)' 19858 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19859 else 19860 AM_V=$AM_DEFAULT_VERBOSITY 19861 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19862 fi 19863 AM_BACKSLASH='\' 19864 19865 19866 19867 19868 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 19884 printf %s "checking for root directory for font files... " >&6; } 19885 19886 # Check whether --with-fontrootdir was given. 19887 if test ${with_fontrootdir+y} 19888 then : 19889 withval=$with_fontrootdir; FONTROOTDIR="$withval" 19890 fi 19891 19892 # if --with-fontrootdir not specified... 19893 if test "x${FONTROOTDIR}" = "x"; then 19894 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 19895 fi 19896 # ...and if pkg-config didn't find fontdir in fontutil.pc... 19897 if test "x${FONTROOTDIR}" = "x"; then 19898 FONTROOTDIR="${datadir}/fonts/X11" 19899 fi 19900 19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 19902 printf "%s\n" "${FONTROOTDIR}" >&6; } 19903 19904 19905 19906 19907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5 19908 printf %s "checking for directory for encodings files... " >&6; } 19909 19910 # Check whether --with-encodingsdir was given. 19911 if test ${with_encodingsdir+y} 19912 then : 19913 withval=$with_encodingsdir; ENCODINGSDIR="${withval}" 19914 else case e in #( 19915 e) ENCODINGSDIR='${FONTROOTDIR}/encodings' ;; 19916 esac 19917 fi 19918 19919 19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5 19921 printf "%s\n" "${ENCODINGSDIR}" >&6; } 19922 19923 19924 # zlib 19925 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 19926 if test "x$ac_cv_header_zlib_h" = xyes 19927 then : 19928 19929 else case e in #( 19930 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 19931 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 19932 as_fn_error $? "zlib.h is required to compile libfontenc 19933 See 'config.log' for more details" "$LINENO" 5; } ;; 19934 esac 19935 fi 19936 19937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5 19938 printf %s "checking for gzclose in -lz... " >&6; } 19939 if test ${ac_cv_lib_z_gzclose+y} 19940 then : 19941 printf %s "(cached) " >&6 19942 else case e in #( 19943 e) ac_check_lib_save_LIBS=$LIBS 19944 LIBS="-lz $LIBS" 19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19946 /* end confdefs.h. */ 19947 19948 /* Override any GCC internal prototype to avoid an error. 19949 Use char because int might match the return type of a GCC 19950 builtin and then its argument prototype would still apply. 19951 The 'extern "C"' is for builds by C++ compilers; 19952 although this is not generally supported in C code supporting it here 19953 has little cost and some practical benefit (sr 110532). */ 19954 #ifdef __cplusplus 19955 extern "C" 19956 #endif 19957 char gzclose (void); 19958 int 19959 main (void) 19960 { 19961 return gzclose (); 19962 ; 19963 return 0; 19964 } 19965 _ACEOF 19966 if ac_fn_c_try_link "$LINENO" 19967 then : 19968 ac_cv_lib_z_gzclose=yes 19969 else case e in #( 19970 e) ac_cv_lib_z_gzclose=no ;; 19971 esac 19972 fi 19973 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19974 conftest$ac_exeext conftest.$ac_ext 19975 LIBS=$ac_check_lib_save_LIBS ;; 19976 esac 19977 fi 19978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5 19979 printf "%s\n" "$ac_cv_lib_z_gzclose" >&6; } 19980 if test "x$ac_cv_lib_z_gzclose" = xyes 19981 then : 19982 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 19983 19984 LIBS="-lz $LIBS" 19985 19986 else case e in #( 19987 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 19988 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 19989 as_fn_error $? "zlib is required to compile libfontenc 19990 See 'config.log' for more details" "$LINENO" 5; } ;; 19991 esac 19992 fi 19993 19994 19995 # Obtain compiler/linker options for dependencies 19996 19997 pkg_failed=no 19998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5 19999 printf %s "checking for FONTENC... " >&6; } 20000 20001 if test -n "$FONTENC_CFLAGS"; then 20002 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS" 20003 elif test -n "$PKG_CONFIG"; then 20004 if test -n "$PKG_CONFIG" && \ 20005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 20006 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 20007 ac_status=$? 20008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20009 test $ac_status = 0; }; then 20010 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 20011 test "x$?" != "x0" && pkg_failed=yes 20012 else 20013 pkg_failed=yes 20014 fi 20015 else 20016 pkg_failed=untried 20017 fi 20018 if test -n "$FONTENC_LIBS"; then 20019 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS" 20020 elif test -n "$PKG_CONFIG"; then 20021 if test -n "$PKG_CONFIG" && \ 20022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 20023 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 20024 ac_status=$? 20025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20026 test $ac_status = 0; }; then 20027 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 20028 test "x$?" != "x0" && pkg_failed=yes 20029 else 20030 pkg_failed=yes 20031 fi 20032 else 20033 pkg_failed=untried 20034 fi 20035 20036 20037 20038 if test $pkg_failed = yes; then 20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20040 printf "%s\n" "no" >&6; } 20041 20042 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20043 _pkg_short_errors_supported=yes 20044 else 20045 _pkg_short_errors_supported=no 20046 fi 20047 if test $_pkg_short_errors_supported = yes; then 20048 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 20049 else 20050 FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 20051 fi 20052 # Put the nasty error message in config.log where it belongs 20053 echo "$FONTENC_PKG_ERRORS" >&5 20054 20055 as_fn_error $? "Package requirements (xproto) were not met: 20056 20057 $FONTENC_PKG_ERRORS 20058 20059 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20060 installed software in a non-standard prefix. 20061 20062 Alternatively, you may set the environment variables FONTENC_CFLAGS 20063 and FONTENC_LIBS to avoid the need to call pkg-config. 20064 See the pkg-config man page for more details." "$LINENO" 5 20065 elif test $pkg_failed = untried; then 20066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20067 printf "%s\n" "no" >&6; } 20068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20069 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20070 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20071 is in your PATH or set the PKG_CONFIG environment variable to the full 20072 path to pkg-config. 20073 20074 Alternatively, you may set the environment variables FONTENC_CFLAGS 20075 and FONTENC_LIBS to avoid the need to call pkg-config. 20076 See the pkg-config man page for more details. 20077 20078 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20079 See 'config.log' for more details" "$LINENO" 5; } 20080 else 20081 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS 20082 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS 20083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20084 printf "%s\n" "yes" >&6; } 20085 20086 fi 20087 20088 # Checks for typedefs, structures, and compiler characteristics. 20089 # Check whether --enable-largefile was given. 20090 if test ${enable_largefile+y} 20091 then : 20092 enableval=$enable_largefile; 20093 fi 20094 if test "$enable_largefile,$enable_year2038" != no,no 20095 then : 20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 20097 printf %s "checking for $CC option to enable large file support... " >&6; } 20098 if test ${ac_cv_sys_largefile_opts+y} 20099 then : 20100 printf %s "(cached) " >&6 20101 else case e in #( 20102 e) ac_save_CC="$CC" 20103 ac_opt_found=no 20104 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 20105 if test x"$ac_opt" != x"none needed" 20106 then : 20107 CC="$ac_save_CC $ac_opt" 20108 fi 20109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20110 /* end confdefs.h. */ 20111 #include <sys/types.h> 20112 #ifndef FTYPE 20113 # define FTYPE off_t 20114 #endif 20115 /* Check that FTYPE can represent 2**63 - 1 correctly. 20116 We can't simply define LARGE_FTYPE to be 9223372036854775807, 20117 since some C++ compilers masquerading as C compilers 20118 incorrectly reject 9223372036854775807. */ 20119 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 20120 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 20121 && LARGE_FTYPE % 2147483647 == 1) 20122 ? 1 : -1]; 20123 int 20124 main (void) 20125 { 20126 20127 ; 20128 return 0; 20129 } 20130 _ACEOF 20131 if ac_fn_c_try_compile "$LINENO" 20132 then : 20133 if test x"$ac_opt" = x"none needed" 20134 then : 20135 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 20136 CC="$CC -DFTYPE=ino_t" 20137 if ac_fn_c_try_compile "$LINENO" 20138 then : 20139 20140 else case e in #( 20141 e) CC="$CC -D_FILE_OFFSET_BITS=64" 20142 if ac_fn_c_try_compile "$LINENO" 20143 then : 20144 ac_opt='-D_FILE_OFFSET_BITS=64' 20145 fi 20146 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 20147 esac 20148 fi 20149 rm -f core conftest.err conftest.$ac_objext conftest.beam 20150 fi 20151 ac_cv_sys_largefile_opts=$ac_opt 20152 ac_opt_found=yes 20153 fi 20154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20155 test $ac_opt_found = no || break 20156 done 20157 CC="$ac_save_CC" 20158 20159 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 20160 esac 20161 fi 20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 20163 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 20164 20165 ac_have_largefile=yes 20166 case $ac_cv_sys_largefile_opts in #( 20167 "none needed") : 20168 ;; #( 20169 "supported through gnulib") : 20170 ;; #( 20171 "support not detected") : 20172 ac_have_largefile=no ;; #( 20173 "-D_FILE_OFFSET_BITS=64") : 20174 20175 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 20176 ;; #( 20177 "-D_LARGE_FILES=1") : 20178 20179 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 20180 ;; #( 20181 "-n32") : 20182 CC="$CC -n32" ;; #( 20183 *) : 20184 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 20185 esac 20186 20187 if test "$enable_year2038" != no 20188 then : 20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 20190 printf %s "checking for $CC option for timestamps after 2038... " >&6; } 20191 if test ${ac_cv_sys_year2038_opts+y} 20192 then : 20193 printf %s "(cached) " >&6 20194 else case e in #( 20195 e) ac_save_CPPFLAGS="$CPPFLAGS" 20196 ac_opt_found=no 20197 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 20198 if test x"$ac_opt" != x"none needed" 20199 then : 20200 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 20201 fi 20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20203 /* end confdefs.h. */ 20204 20205 #include <time.h> 20206 /* Check that time_t can represent 2**32 - 1 correctly. */ 20207 #define LARGE_TIME_T \\ 20208 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 20209 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 20210 && LARGE_TIME_T % 65537 == 0) 20211 ? 1 : -1]; 20212 20213 int 20214 main (void) 20215 { 20216 20217 ; 20218 return 0; 20219 } 20220 _ACEOF 20221 if ac_fn_c_try_compile "$LINENO" 20222 then : 20223 ac_cv_sys_year2038_opts="$ac_opt" 20224 ac_opt_found=yes 20225 fi 20226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20227 test $ac_opt_found = no || break 20228 done 20229 CPPFLAGS="$ac_save_CPPFLAGS" 20230 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 20231 esac 20232 fi 20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 20234 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 20235 20236 ac_have_year2038=yes 20237 case $ac_cv_sys_year2038_opts in #( 20238 "none needed") : 20239 ;; #( 20240 "support not detected") : 20241 ac_have_year2038=no ;; #( 20242 "-D_TIME_BITS=64") : 20243 20244 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 20245 ;; #( 20246 "-D__MINGW_USE_VC2005_COMPAT") : 20247 20248 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 20249 ;; #( 20250 "-U_USE_32_BIT_TIME_T"*) : 20251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20252 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20253 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 20254 will stop working after mid-January 2038. Remove 20255 _USE_32BIT_TIME_T from the compiler flags. 20256 See 'config.log' for more details" "$LINENO" 5; } ;; #( 20257 *) : 20258 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 20259 esac 20260 20261 fi 20262 20263 fi 20264 20265 # Checks for library functions. 20266 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20267 if test "x$ac_cv_func_reallocarray" = xyes 20268 then : 20269 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20270 20271 else case e in #( 20272 e) case " $LIBOBJS " in 20273 *" reallocarray.$ac_objext "* ) ;; 20274 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20275 ;; 20276 esac 20277 ;; 20278 esac 20279 fi 20280 20281 20282 # Allow checking code with lint, sparse, etc. 20283 20284 20285 20286 20287 20288 # Check whether --with-lint was given. 20289 if test ${with_lint+y} 20290 then : 20291 withval=$with_lint; use_lint=$withval 20292 else case e in #( 20293 e) use_lint=no ;; 20294 esac 20295 fi 20296 20297 20298 # Obtain platform specific info like program name and options 20299 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 20300 case $host_os in 20301 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20302 lint_name=splint 20303 lint_options="-badflag" 20304 ;; 20305 *freebsd* | *netbsd*) 20306 lint_name=lint 20307 lint_options="-u -b" 20308 ;; 20309 *solaris*) 20310 lint_name=lint 20311 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20312 ;; 20313 esac 20314 20315 # Test for the presence of the program (either guessed by the code or spelled out by the user) 20316 if test "x$use_lint" = x"yes" ; then 20317 # Extract the first word of "$lint_name", so it can be a program name with args. 20318 set dummy $lint_name; ac_word=$2 20319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20320 printf %s "checking for $ac_word... " >&6; } 20321 if test ${ac_cv_path_LINT+y} 20322 then : 20323 printf %s "(cached) " >&6 20324 else case e in #( 20325 e) case $LINT in 20326 [\\/]* | ?:[\\/]*) 20327 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20328 ;; 20329 *) 20330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20331 for as_dir in $PATH 20332 do 20333 IFS=$as_save_IFS 20334 case $as_dir in #((( 20335 '') as_dir=./ ;; 20336 */) ;; 20337 *) as_dir=$as_dir/ ;; 20338 esac 20339 for ac_exec_ext in '' $ac_executable_extensions; do 20340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20341 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20343 break 2 20344 fi 20345 done 20346 done 20347 IFS=$as_save_IFS 20348 20349 ;; 20350 esac ;; 20351 esac 20352 fi 20353 LINT=$ac_cv_path_LINT 20354 if test -n "$LINT"; then 20355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20356 printf "%s\n" "$LINT" >&6; } 20357 else 20358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20359 printf "%s\n" "no" >&6; } 20360 fi 20361 20362 20363 if test "x$LINT" = "x"; then 20364 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20365 fi 20366 elif test "x$use_lint" = x"no" ; then 20367 if test "x$LINT" != "x"; then 20368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20369 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20370 fi 20371 else 20372 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20373 fi 20374 20375 # User supplied flags override default flags 20376 if test "x$LINT_FLAGS" != "x"; then 20377 lint_options=$LINT_FLAGS 20378 fi 20379 20380 LINT_FLAGS=$lint_options 20381 20382 if test "x$LINT" != x; then 20383 LINT_TRUE= 20384 LINT_FALSE='#' 20385 else 20386 LINT_TRUE='#' 20387 LINT_FALSE= 20388 fi 20389 20390 20391 20392 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 20393 20394 ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc" 20395 20396 cat >confcache <<\_ACEOF 20397 # This file is a shell script that caches the results of configure 20398 # tests run on this system so they can be shared between configure 20399 # scripts and configure runs, see configure's option --config-cache. 20400 # It is not useful on other systems. If it contains results you don't 20401 # want to keep, you may remove or edit it. 20402 # 20403 # config.status only pays attention to the cache file if you give it 20404 # the --recheck option to rerun configure. 20405 # 20406 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20407 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20408 # following values. 20409 20410 _ACEOF 20411 20412 # The following way of writing the cache mishandles newlines in values, 20413 # but we know of no workaround that is simple, portable, and efficient. 20414 # So, we kill variables containing newlines. 20415 # Ultrix sh set writes to stderr and can't be redirected directly, 20416 # and sets the high bit in the cache file unless we assign to the vars. 20417 ( 20418 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20419 eval ac_val=\$$ac_var 20420 case $ac_val in #( 20421 *${as_nl}*) 20422 case $ac_var in #( 20423 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20424 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20425 esac 20426 case $ac_var in #( 20427 _ | IFS | as_nl) ;; #( 20428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20429 *) { eval $ac_var=; unset $ac_var;} ;; 20430 esac ;; 20431 esac 20432 done 20433 20434 (set) 2>&1 | 20435 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20436 *${as_nl}ac_space=\ *) 20437 # 'set' does not quote correctly, so add quotes: double-quote 20438 # substitution turns \\\\ into \\, and sed turns \\ into \. 20439 sed -n \ 20440 "s/'/'\\\\''/g; 20441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20442 ;; #( 20443 *) 20444 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20446 ;; 20447 esac | 20448 sort 20449 ) | 20450 sed ' 20451 /^ac_cv_env_/b end 20452 t clear 20453 :clear 20454 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20455 t end 20456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20457 :end' >>confcache 20458 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20459 if test -w "$cache_file"; then 20460 if test "x$cache_file" != "x/dev/null"; then 20461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20462 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20463 if test ! -f "$cache_file" || test -h "$cache_file"; then 20464 cat confcache >"$cache_file" 20465 else 20466 case $cache_file in #( 20467 */* | ?:*) 20468 mv -f confcache "$cache_file"$$ && 20469 mv -f "$cache_file"$$ "$cache_file" ;; #( 20470 *) 20471 mv -f confcache "$cache_file" ;; 20472 esac 20473 fi 20474 fi 20475 else 20476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20477 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20478 fi 20479 fi 20480 rm -f confcache 20481 20482 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20483 # Let make expand exec_prefix. 20484 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20485 20486 DEFS=-DHAVE_CONFIG_H 20487 20488 ac_libobjs= 20489 ac_ltlibobjs= 20490 U= 20491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20492 # 1. Remove the extension, and $U if already installed. 20493 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20494 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20495 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20496 # will be set to the directory where LIBOBJS objects are built. 20497 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20498 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20499 done 20500 LIBOBJS=$ac_libobjs 20501 20502 LTLIBOBJS=$ac_ltlibobjs 20503 20504 20505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20506 printf %s "checking that generated files are newer than configure... " >&6; } 20507 if test -n "$am_sleep_pid"; then 20508 # Hide warnings about reused PIDs. 20509 wait $am_sleep_pid 2>/dev/null 20510 fi 20511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20512 printf "%s\n" "done" >&6; } 20513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20514 as_fn_error $? "conditional \"AMDEP\" was never defined. 20515 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20516 fi 20517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20518 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20519 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20520 fi 20521 if test -n "$EXEEXT"; then 20522 am__EXEEXT_TRUE= 20523 am__EXEEXT_FALSE='#' 20524 else 20525 am__EXEEXT_TRUE='#' 20526 am__EXEEXT_FALSE= 20527 fi 20528 20529 # Check whether --enable-year2038 was given. 20530 if test ${enable_year2038+y} 20531 then : 20532 enableval=$enable_year2038; 20533 fi 20534 20535 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20536 as_fn_error $? "conditional \"LINT\" was never defined. 20537 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20538 fi 20539 20540 : "${CONFIG_STATUS=./config.status}" 20541 ac_write_fail=0 20542 ac_clean_files_save=$ac_clean_files 20543 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20545 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20546 as_write_fail=0 20547 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20548 #! $SHELL 20549 # Generated by $as_me. 20550 # Run this file to recreate the current configuration. 20551 # Compiler output produced by configure, useful for debugging 20552 # configure, is in config.log if it exists. 20553 20554 debug=false 20555 ac_cs_recheck=false 20556 ac_cs_silent=false 20557 20558 SHELL=\${CONFIG_SHELL-$SHELL} 20559 export SHELL 20560 _ASEOF 20561 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20562 ## -------------------- ## 20563 ## M4sh Initialization. ## 20564 ## -------------------- ## 20565 20566 # Be more Bourne compatible 20567 DUALCASE=1; export DUALCASE # for MKS sh 20568 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20569 then : 20570 emulate sh 20571 NULLCMD=: 20572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20573 # is contrary to our usage. Disable this feature. 20574 alias -g '${1+"$@"}'='"$@"' 20575 setopt NO_GLOB_SUBST 20576 else case e in #( 20577 e) case `(set -o) 2>/dev/null` in #( 20578 *posix*) : 20579 set -o posix ;; #( 20580 *) : 20581 ;; 20582 esac ;; 20583 esac 20584 fi 20585 20586 20587 20588 # Reset variables that may have inherited troublesome values from 20589 # the environment. 20590 20591 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20592 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20593 # side effect of setting IFS to empty, thus disabling word splitting.) 20594 # Quoting is to prevent editors from complaining about space-tab. 20595 as_nl=' 20596 ' 20597 export as_nl 20598 IFS=" "" $as_nl" 20599 20600 PS1='$ ' 20601 PS2='> ' 20602 PS4='+ ' 20603 20604 # Ensure predictable behavior from utilities with locale-dependent output. 20605 LC_ALL=C 20606 export LC_ALL 20607 LANGUAGE=C 20608 export LANGUAGE 20609 20610 # We cannot yet rely on "unset" to work, but we need these variables 20611 # to be unset--not just set to an empty or harmless value--now, to 20612 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20613 # also avoids known problems related to "unset" and subshell syntax 20614 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20615 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20616 do eval test \${$as_var+y} \ 20617 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20618 done 20619 20620 # Ensure that fds 0, 1, and 2 are open. 20621 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20622 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20623 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20624 20625 # The user is always right. 20626 if ${PATH_SEPARATOR+false} :; then 20627 PATH_SEPARATOR=: 20628 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20629 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20630 PATH_SEPARATOR=';' 20631 } 20632 fi 20633 20634 20635 # Find who we are. Look in the path if we contain no directory separator. 20636 as_myself= 20637 case $0 in #(( 20638 *[\\/]* ) as_myself=$0 ;; 20639 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20640 for as_dir in $PATH 20641 do 20642 IFS=$as_save_IFS 20643 case $as_dir in #((( 20644 '') as_dir=./ ;; 20645 */) ;; 20646 *) as_dir=$as_dir/ ;; 20647 esac 20648 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20649 done 20650 IFS=$as_save_IFS 20651 20652 ;; 20653 esac 20654 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20655 # in which case we are not to be found in the path. 20656 if test "x$as_myself" = x; then 20657 as_myself=$0 20658 fi 20659 if test ! -f "$as_myself"; then 20660 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20661 exit 1 20662 fi 20663 20664 20665 20666 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20667 # ---------------------------------------- 20668 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20669 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20670 # script with STATUS, using 1 if that was 0. 20671 as_fn_error () 20672 { 20673 as_status=$1; test $as_status -eq 0 && as_status=1 20674 if test "$4"; then 20675 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20677 fi 20678 printf "%s\n" "$as_me: error: $2" >&2 20679 as_fn_exit $as_status 20680 } # as_fn_error 20681 20682 20683 # as_fn_set_status STATUS 20684 # ----------------------- 20685 # Set $? to STATUS, without forking. 20686 as_fn_set_status () 20687 { 20688 return $1 20689 } # as_fn_set_status 20690 20691 # as_fn_exit STATUS 20692 # ----------------- 20693 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20694 as_fn_exit () 20695 { 20696 set +e 20697 as_fn_set_status $1 20698 exit $1 20699 } # as_fn_exit 20700 20701 # as_fn_unset VAR 20702 # --------------- 20703 # Portably unset VAR. 20704 as_fn_unset () 20705 { 20706 { eval $1=; unset $1;} 20707 } 20708 as_unset=as_fn_unset 20709 20710 # as_fn_append VAR VALUE 20711 # ---------------------- 20712 # Append the text in VALUE to the end of the definition contained in VAR. Take 20713 # advantage of any shell optimizations that allow amortized linear growth over 20714 # repeated appends, instead of the typical quadratic growth present in naive 20715 # implementations. 20716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20717 then : 20718 eval 'as_fn_append () 20719 { 20720 eval $1+=\$2 20721 }' 20722 else case e in #( 20723 e) as_fn_append () 20724 { 20725 eval $1=\$$1\$2 20726 } ;; 20727 esac 20728 fi # as_fn_append 20729 20730 # as_fn_arith ARG... 20731 # ------------------ 20732 # Perform arithmetic evaluation on the ARGs, and store the result in the 20733 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20734 # must be portable across $(()) and expr. 20735 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20736 then : 20737 eval 'as_fn_arith () 20738 { 20739 as_val=$(( $* )) 20740 }' 20741 else case e in #( 20742 e) as_fn_arith () 20743 { 20744 as_val=`expr "$@" || test $? -eq 1` 20745 } ;; 20746 esac 20747 fi # as_fn_arith 20748 20749 20750 if expr a : '\(a\)' >/dev/null 2>&1 && 20751 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20752 as_expr=expr 20753 else 20754 as_expr=false 20755 fi 20756 20757 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20758 as_basename=basename 20759 else 20760 as_basename=false 20761 fi 20762 20763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20764 as_dirname=dirname 20765 else 20766 as_dirname=false 20767 fi 20768 20769 as_me=`$as_basename -- "$0" || 20770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20771 X"$0" : 'X\(//\)$' \| \ 20772 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20773 printf "%s\n" X/"$0" | 20774 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20775 s//\1/ 20776 q 20777 } 20778 /^X\/\(\/\/\)$/{ 20779 s//\1/ 20780 q 20781 } 20782 /^X\/\(\/\).*/{ 20783 s//\1/ 20784 q 20785 } 20786 s/.*/./; q'` 20787 20788 # Avoid depending upon Character Ranges. 20789 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20792 as_cr_digits='0123456789' 20793 as_cr_alnum=$as_cr_Letters$as_cr_digits 20794 20795 20796 # Determine whether it's possible to make 'echo' print without a newline. 20797 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20798 # for compatibility with existing Makefiles. 20799 ECHO_C= ECHO_N= ECHO_T= 20800 case `echo -n x` in #((((( 20801 -n*) 20802 case `echo 'xy\c'` in 20803 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20804 xy) ECHO_C='\c';; 20805 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20806 ECHO_T=' ';; 20807 esac;; 20808 *) 20809 ECHO_N='-n';; 20810 esac 20811 20812 # For backward compatibility with old third-party macros, we provide 20813 # the shell variables $as_echo and $as_echo_n. New code should use 20814 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20815 as_echo='printf %s\n' 20816 as_echo_n='printf %s' 20817 20818 rm -f conf$$ conf$$.exe conf$$.file 20819 if test -d conf$$.dir; then 20820 rm -f conf$$.dir/conf$$.file 20821 else 20822 rm -f conf$$.dir 20823 mkdir conf$$.dir 2>/dev/null 20824 fi 20825 if (echo >conf$$.file) 2>/dev/null; then 20826 if ln -s conf$$.file conf$$ 2>/dev/null; then 20827 as_ln_s='ln -s' 20828 # ... but there are two gotchas: 20829 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20830 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20831 # In both cases, we have to default to 'cp -pR'. 20832 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20833 as_ln_s='cp -pR' 20834 elif ln conf$$.file conf$$ 2>/dev/null; then 20835 as_ln_s=ln 20836 else 20837 as_ln_s='cp -pR' 20838 fi 20839 else 20840 as_ln_s='cp -pR' 20841 fi 20842 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20843 rmdir conf$$.dir 2>/dev/null 20844 20845 20846 # as_fn_mkdir_p 20847 # ------------- 20848 # Create "$as_dir" as a directory, including parents if necessary. 20849 as_fn_mkdir_p () 20850 { 20851 20852 case $as_dir in #( 20853 -*) as_dir=./$as_dir;; 20854 esac 20855 test -d "$as_dir" || eval $as_mkdir_p || { 20856 as_dirs= 20857 while :; do 20858 case $as_dir in #( 20859 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20860 *) as_qdir=$as_dir;; 20861 esac 20862 as_dirs="'$as_qdir' $as_dirs" 20863 as_dir=`$as_dirname -- "$as_dir" || 20864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20865 X"$as_dir" : 'X\(//\)[^/]' \| \ 20866 X"$as_dir" : 'X\(//\)$' \| \ 20867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20868 printf "%s\n" X"$as_dir" | 20869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20870 s//\1/ 20871 q 20872 } 20873 /^X\(\/\/\)[^/].*/{ 20874 s//\1/ 20875 q 20876 } 20877 /^X\(\/\/\)$/{ 20878 s//\1/ 20879 q 20880 } 20881 /^X\(\/\).*/{ 20882 s//\1/ 20883 q 20884 } 20885 s/.*/./; q'` 20886 test -d "$as_dir" && break 20887 done 20888 test -z "$as_dirs" || eval "mkdir $as_dirs" 20889 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20890 20891 20892 } # as_fn_mkdir_p 20893 if mkdir -p . 2>/dev/null; then 20894 as_mkdir_p='mkdir -p "$as_dir"' 20895 else 20896 test -d ./-p && rmdir ./-p 20897 as_mkdir_p=false 20898 fi 20899 20900 20901 # as_fn_executable_p FILE 20902 # ----------------------- 20903 # Test if FILE is an executable regular file. 20904 as_fn_executable_p () 20905 { 20906 test -f "$1" && test -x "$1" 20907 } # as_fn_executable_p 20908 as_test_x='test -x' 20909 as_executable_p=as_fn_executable_p 20910 20911 # Sed expression to map a string onto a valid CPP name. 20912 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20913 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 20914 20915 # Sed expression to map a string onto a valid variable name. 20916 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20917 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 20918 20919 20920 exec 6>&1 20921 ## ----------------------------------- ## 20922 ## Main body of $CONFIG_STATUS script. ## 20923 ## ----------------------------------- ## 20924 _ASEOF 20925 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20926 20927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20928 # Save the log message, to keep $0 and so on meaningful, and to 20929 # report actual input values of CONFIG_FILES etc. instead of their 20930 # values after options handling. 20931 ac_log=" 20932 This file was extended by libfontenc $as_me 1.1.8, which was 20933 generated by GNU Autoconf 2.72. Invocation command line was 20934 20935 CONFIG_FILES = $CONFIG_FILES 20936 CONFIG_HEADERS = $CONFIG_HEADERS 20937 CONFIG_LINKS = $CONFIG_LINKS 20938 CONFIG_COMMANDS = $CONFIG_COMMANDS 20939 $ $0 $@ 20940 20941 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20942 " 20943 20944 _ACEOF 20945 20946 case $ac_config_files in *" 20947 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20948 esac 20949 20950 case $ac_config_headers in *" 20951 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20952 esac 20953 20954 20955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20956 # Files that config.status was made for. 20957 config_files="$ac_config_files" 20958 config_headers="$ac_config_headers" 20959 config_commands="$ac_config_commands" 20960 20961 _ACEOF 20962 20963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20964 ac_cs_usage="\ 20965 '$as_me' instantiates files and other configuration actions 20966 from templates according to the current configuration. Unless the files 20967 and actions are specified as TAGs, all are instantiated by default. 20968 20969 Usage: $0 [OPTION]... [TAG]... 20970 20971 -h, --help print this help, then exit 20972 -V, --version print version number and configuration settings, then exit 20973 --config print configuration, then exit 20974 -q, --quiet, --silent 20975 do not print progress messages 20976 -d, --debug don't remove temporary files 20977 --recheck update $as_me by reconfiguring in the same conditions 20978 --file=FILE[:TEMPLATE] 20979 instantiate the configuration file FILE 20980 --header=FILE[:TEMPLATE] 20981 instantiate the configuration header FILE 20982 20983 Configuration files: 20984 $config_files 20985 20986 Configuration headers: 20987 $config_headers 20988 20989 Configuration commands: 20990 $config_commands 20991 20992 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>." 20993 20994 _ACEOF 20995 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20996 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20998 ac_cs_config='$ac_cs_config_escaped' 20999 ac_cs_version="\\ 21000 libfontenc config.status 1.1.8 21001 configured by $0, generated by GNU Autoconf 2.72, 21002 with options \\"\$ac_cs_config\\" 21003 21004 Copyright (C) 2023 Free Software Foundation, Inc. 21005 This config.status script is free software; the Free Software Foundation 21006 gives unlimited permission to copy, distribute and modify it." 21007 21008 ac_pwd='$ac_pwd' 21009 srcdir='$srcdir' 21010 INSTALL='$INSTALL' 21011 MKDIR_P='$MKDIR_P' 21012 AWK='$AWK' 21013 test -n "\$AWK" || AWK=awk 21014 _ACEOF 21015 21016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21017 # The default lists apply if the user does not specify any file. 21018 ac_need_defaults=: 21019 while test $# != 0 21020 do 21021 case $1 in 21022 --*=?*) 21023 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21024 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21025 ac_shift=: 21026 ;; 21027 --*=) 21028 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21029 ac_optarg= 21030 ac_shift=: 21031 ;; 21032 *) 21033 ac_option=$1 21034 ac_optarg=$2 21035 ac_shift=shift 21036 ;; 21037 esac 21038 21039 case $ac_option in 21040 # Handling of the options. 21041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21042 ac_cs_recheck=: ;; 21043 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21044 printf "%s\n" "$ac_cs_version"; exit ;; 21045 --config | --confi | --conf | --con | --co | --c ) 21046 printf "%s\n" "$ac_cs_config"; exit ;; 21047 --debug | --debu | --deb | --de | --d | -d ) 21048 debug=: ;; 21049 --file | --fil | --fi | --f ) 21050 $ac_shift 21051 case $ac_optarg in 21052 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21053 '') as_fn_error $? "missing file argument" ;; 21054 esac 21055 as_fn_append CONFIG_FILES " '$ac_optarg'" 21056 ac_need_defaults=false;; 21057 --header | --heade | --head | --hea ) 21058 $ac_shift 21059 case $ac_optarg in 21060 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21061 esac 21062 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21063 ac_need_defaults=false;; 21064 --he | --h) 21065 # Conflict between --help and --header 21066 as_fn_error $? "ambiguous option: '$1' 21067 Try '$0 --help' for more information.";; 21068 --help | --hel | -h ) 21069 printf "%s\n" "$ac_cs_usage"; exit ;; 21070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21071 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21072 ac_cs_silent=: ;; 21073 21074 # This is an error. 21075 -*) as_fn_error $? "unrecognized option: '$1' 21076 Try '$0 --help' for more information." ;; 21077 21078 *) as_fn_append ac_config_targets " $1" 21079 ac_need_defaults=false ;; 21080 21081 esac 21082 shift 21083 done 21084 21085 ac_configure_extra_args= 21086 21087 if $ac_cs_silent; then 21088 exec 6>/dev/null 21089 ac_configure_extra_args="$ac_configure_extra_args --silent" 21090 fi 21091 21092 _ACEOF 21093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21094 if \$ac_cs_recheck; then 21095 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21096 shift 21097 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21098 CONFIG_SHELL='$SHELL' 21099 export CONFIG_SHELL 21100 exec "\$@" 21101 fi 21102 21103 _ACEOF 21104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21105 exec 5>>config.log 21106 { 21107 echo 21108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21109 ## Running $as_me. ## 21110 _ASBOX 21111 printf "%s\n" "$ac_log" 21112 } >&5 21113 21114 _ACEOF 21115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21116 # 21117 # INIT-COMMANDS 21118 # 21119 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21120 21121 21122 # The HP-UX ksh and POSIX shell print the target directory to stdout 21123 # if CDPATH is set. 21124 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21125 21126 sed_quote_subst='$sed_quote_subst' 21127 double_quote_subst='$double_quote_subst' 21128 delay_variable_subst='$delay_variable_subst' 21129 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21130 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21131 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21132 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21133 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21134 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21135 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21136 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21137 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21138 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21139 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21140 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21141 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21142 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21143 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21144 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21145 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21146 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21147 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21148 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21149 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21150 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21151 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21152 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21153 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21154 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21155 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21156 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21157 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21158 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21159 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21160 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21161 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21162 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21163 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21164 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21165 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21166 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21167 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21168 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21169 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21170 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21171 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21172 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21173 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21174 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21175 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21176 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21177 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21178 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21179 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21180 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21181 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21182 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21183 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21184 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21185 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21186 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21187 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21189 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"`' 21190 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21191 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21192 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21193 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21194 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21195 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21196 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21197 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21198 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21199 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21200 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21201 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21202 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21203 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21204 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21205 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21206 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21207 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21208 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21209 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21210 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21211 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21212 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21213 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21214 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21215 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21216 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21217 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21218 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21219 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21220 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21221 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21222 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21223 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21224 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21225 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21226 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21227 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21228 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21229 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21230 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21231 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21232 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21233 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21234 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21235 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21236 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21237 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21238 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21239 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21240 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21241 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21242 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21243 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21244 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21245 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21246 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21247 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21248 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21249 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21250 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21251 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21252 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21253 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21254 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21255 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21256 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21257 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21258 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21259 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21260 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21261 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21262 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21263 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21264 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21265 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21266 21267 LTCC='$LTCC' 21268 LTCFLAGS='$LTCFLAGS' 21269 compiler='$compiler_DEFAULT' 21270 21271 # A function that is used when there is no print builtin or printf. 21272 func_fallback_echo () 21273 { 21274 eval 'cat <<_LTECHO_EOF 21275 \$1 21276 _LTECHO_EOF' 21277 } 21278 21279 # Quote evaled strings. 21280 for var in SHELL \ 21281 ECHO \ 21282 PATH_SEPARATOR \ 21283 SED \ 21284 GREP \ 21285 EGREP \ 21286 FGREP \ 21287 LD \ 21288 NM \ 21289 LN_S \ 21290 lt_SP2NL \ 21291 lt_NL2SP \ 21292 reload_flag \ 21293 FILECMD \ 21294 OBJDUMP \ 21295 deplibs_check_method \ 21296 file_magic_cmd \ 21297 file_magic_glob \ 21298 want_nocaseglob \ 21299 DLLTOOL \ 21300 sharedlib_from_linklib_cmd \ 21301 AR \ 21302 archiver_list_spec \ 21303 STRIP \ 21304 RANLIB \ 21305 CC \ 21306 CFLAGS \ 21307 compiler \ 21308 lt_cv_sys_global_symbol_pipe \ 21309 lt_cv_sys_global_symbol_to_cdecl \ 21310 lt_cv_sys_global_symbol_to_import \ 21311 lt_cv_sys_global_symbol_to_c_name_address \ 21312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21313 lt_cv_nm_interface \ 21314 nm_file_list_spec \ 21315 lt_cv_truncate_bin \ 21316 lt_prog_compiler_no_builtin_flag \ 21317 lt_prog_compiler_pic \ 21318 lt_prog_compiler_wl \ 21319 lt_prog_compiler_static \ 21320 lt_cv_prog_compiler_c_o \ 21321 need_locks \ 21322 MANIFEST_TOOL \ 21323 DSYMUTIL \ 21324 NMEDIT \ 21325 LIPO \ 21326 OTOOL \ 21327 OTOOL64 \ 21328 shrext_cmds \ 21329 export_dynamic_flag_spec \ 21330 whole_archive_flag_spec \ 21331 compiler_needs_object \ 21332 with_gnu_ld \ 21333 allow_undefined_flag \ 21334 no_undefined_flag \ 21335 hardcode_libdir_flag_spec \ 21336 hardcode_libdir_separator \ 21337 exclude_expsyms \ 21338 include_expsyms \ 21339 file_list_spec \ 21340 variables_saved_for_relink \ 21341 libname_spec \ 21342 library_names_spec \ 21343 soname_spec \ 21344 install_override_mode \ 21345 finish_eval \ 21346 old_striplib \ 21347 striplib; do 21348 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21349 *[\\\\\\\`\\"\\\$]*) 21350 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21351 ;; 21352 *) 21353 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21354 ;; 21355 esac 21356 done 21357 21358 # Double-quote double-evaled strings. 21359 for var in reload_cmds \ 21360 old_postinstall_cmds \ 21361 old_postuninstall_cmds \ 21362 old_archive_cmds \ 21363 extract_expsyms_cmds \ 21364 old_archive_from_new_cmds \ 21365 old_archive_from_expsyms_cmds \ 21366 archive_cmds \ 21367 archive_expsym_cmds \ 21368 module_cmds \ 21369 module_expsym_cmds \ 21370 export_symbols_cmds \ 21371 prelink_cmds \ 21372 postlink_cmds \ 21373 postinstall_cmds \ 21374 postuninstall_cmds \ 21375 finish_cmds \ 21376 sys_lib_search_path_spec \ 21377 configure_time_dlsearch_path \ 21378 configure_time_lt_sys_library_path; do 21379 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21380 *[\\\\\\\`\\"\\\$]*) 21381 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21382 ;; 21383 *) 21384 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21385 ;; 21386 esac 21387 done 21388 21389 ac_aux_dir='$ac_aux_dir' 21390 21391 # See if we are running on zsh, and set the options that allow our 21392 # commands through without removal of \ escapes INIT. 21393 if test -n "\${ZSH_VERSION+set}"; then 21394 setopt NO_GLOB_SUBST 21395 fi 21396 21397 21398 PACKAGE='$PACKAGE' 21399 VERSION='$VERSION' 21400 RM='$RM' 21401 ofile='$ofile' 21402 21403 21404 21405 21406 _ACEOF 21407 21408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21409 21410 # Handling of arguments. 21411 for ac_config_target in $ac_config_targets 21412 do 21413 case $ac_config_target in 21414 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21415 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21416 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21417 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21418 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21419 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;; 21420 21421 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21422 esac 21423 done 21424 21425 21426 # If the user did not use the arguments to specify the items to instantiate, 21427 # then the envvar interface is used. Set only those that are not. 21428 # We use the long form for the default assignment because of an extremely 21429 # bizarre bug on SunOS 4.1.3. 21430 if $ac_need_defaults; then 21431 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21432 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21433 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21434 fi 21435 21436 # Have a temporary directory for convenience. Make it in the build tree 21437 # simply because there is no reason against having it here, and in addition, 21438 # creating and moving files from /tmp can sometimes cause problems. 21439 # Hook for its removal unless debugging. 21440 # Note that there is a small window in which the directory will not be cleaned: 21441 # after its creation but before its name has been assigned to '$tmp'. 21442 $debug || 21443 { 21444 tmp= ac_tmp= 21445 trap 'exit_status=$? 21446 : "${ac_tmp:=$tmp}" 21447 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21448 ' 0 21449 trap 'as_fn_exit 1' 1 2 13 15 21450 } 21451 # Create a (secure) tmp directory for tmp files. 21452 21453 { 21454 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21455 test -d "$tmp" 21456 } || 21457 { 21458 tmp=./conf$$-$RANDOM 21459 (umask 077 && mkdir "$tmp") 21460 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21461 ac_tmp=$tmp 21462 21463 # Set up the scripts for CONFIG_FILES section. 21464 # No need to generate them if there are no CONFIG_FILES. 21465 # This happens for instance with './config.status config.h'. 21466 if test -n "$CONFIG_FILES"; then 21467 21468 21469 ac_cr=`echo X | tr X '\015'` 21470 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21471 # But we know of no other shell where ac_cr would be empty at this 21472 # point, so we can use a bashism as a fallback. 21473 if test "x$ac_cr" = x; then 21474 eval ac_cr=\$\'\\r\' 21475 fi 21476 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21477 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21478 ac_cs_awk_cr='\\r' 21479 else 21480 ac_cs_awk_cr=$ac_cr 21481 fi 21482 21483 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21484 _ACEOF 21485 21486 21487 { 21488 echo "cat >conf$$subs.awk <<_ACEOF" && 21489 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21490 echo "_ACEOF" 21491 } >conf$$subs.sh || 21492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21493 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21494 ac_delim='%!_!# ' 21495 for ac_last_try in false false false false false :; do 21496 . ./conf$$subs.sh || 21497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21498 21499 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21500 if test $ac_delim_n = $ac_delim_num; then 21501 break 21502 elif $ac_last_try; then 21503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21504 else 21505 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21506 fi 21507 done 21508 rm -f conf$$subs.sh 21509 21510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21511 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21512 _ACEOF 21513 sed -n ' 21514 h 21515 s/^/S["/; s/!.*/"]=/ 21516 p 21517 g 21518 s/^[^!]*!// 21519 :repl 21520 t repl 21521 s/'"$ac_delim"'$// 21522 t delim 21523 :nl 21524 h 21525 s/\(.\{148\}\)..*/\1/ 21526 t more1 21527 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21528 p 21529 n 21530 b repl 21531 :more1 21532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21533 p 21534 g 21535 s/.\{148\}// 21536 t nl 21537 :delim 21538 h 21539 s/\(.\{148\}\)..*/\1/ 21540 t more2 21541 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21542 p 21543 b 21544 :more2 21545 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21546 p 21547 g 21548 s/.\{148\}// 21549 t delim 21550 ' <conf$$subs.awk | sed ' 21551 /^[^""]/{ 21552 N 21553 s/\n// 21554 } 21555 ' >>$CONFIG_STATUS || ac_write_fail=1 21556 rm -f conf$$subs.awk 21557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21558 _ACAWK 21559 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21560 for (key in S) S_is_set[key] = 1 21561 FS = "" 21562 21563 } 21564 { 21565 line = $ 0 21566 nfields = split(line, field, "@") 21567 substed = 0 21568 len = length(field[1]) 21569 for (i = 2; i < nfields; i++) { 21570 key = field[i] 21571 keylen = length(key) 21572 if (S_is_set[key]) { 21573 value = S[key] 21574 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21575 len += length(value) + length(field[++i]) 21576 substed = 1 21577 } else 21578 len += 1 + keylen 21579 } 21580 21581 print line 21582 } 21583 21584 _ACAWK 21585 _ACEOF 21586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21587 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21588 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21589 else 21590 cat 21591 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21592 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21593 _ACEOF 21594 21595 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21596 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21597 # trailing colons and then remove the whole line if VPATH becomes empty 21598 # (actually we leave an empty line to preserve line numbers). 21599 if test "x$srcdir" = x.; then 21600 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21601 h 21602 s/// 21603 s/^/:/ 21604 s/[ ]*$/:/ 21605 s/:\$(srcdir):/:/g 21606 s/:\${srcdir}:/:/g 21607 s/:@srcdir@:/:/g 21608 s/^:*// 21609 s/:*$// 21610 x 21611 s/\(=[ ]*\).*/\1/ 21612 G 21613 s/\n// 21614 s/^[^=]*=[ ]*$// 21615 }' 21616 fi 21617 21618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21619 fi # test -n "$CONFIG_FILES" 21620 21621 # Set up the scripts for CONFIG_HEADERS section. 21622 # No need to generate them if there are no CONFIG_HEADERS. 21623 # This happens for instance with './config.status Makefile'. 21624 if test -n "$CONFIG_HEADERS"; then 21625 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21626 BEGIN { 21627 _ACEOF 21628 21629 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21630 # here-document in config.status, that substitutes the proper values into 21631 # config.h.in to produce config.h. 21632 21633 # Create a delimiter string that does not exist in confdefs.h, to ease 21634 # handling of long lines. 21635 ac_delim='%!_!# ' 21636 for ac_last_try in false false :; do 21637 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21638 if test -z "$ac_tt"; then 21639 break 21640 elif $ac_last_try; then 21641 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21642 else 21643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21644 fi 21645 done 21646 21647 # For the awk script, D is an array of macro values keyed by name, 21648 # likewise P contains macro parameters if any. Preserve backslash 21649 # newline sequences. 21650 21651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21652 sed -n ' 21653 s/.\{148\}/&'"$ac_delim"'/g 21654 t rset 21655 :rset 21656 s/^[ ]*#[ ]*define[ ][ ]*/ / 21657 t def 21658 d 21659 :def 21660 s/\\$// 21661 t bsnl 21662 s/["\\]/\\&/g 21663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21664 D["\1"]=" \3"/p 21665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21666 d 21667 :bsnl 21668 s/["\\]/\\&/g 21669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21670 D["\1"]=" \3\\\\\\n"\\/p 21671 t cont 21672 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21673 t cont 21674 d 21675 :cont 21676 n 21677 s/.\{148\}/&'"$ac_delim"'/g 21678 t clear 21679 :clear 21680 s/\\$// 21681 t bsnlc 21682 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21683 d 21684 :bsnlc 21685 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21686 b cont 21687 ' <confdefs.h | sed ' 21688 s/'"$ac_delim"'/"\\\ 21689 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21690 21691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21692 for (key in D) D_is_set[key] = 1 21693 FS = "" 21694 } 21695 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21696 line = \$ 0 21697 split(line, arg, " ") 21698 if (arg[1] == "#") { 21699 defundef = arg[2] 21700 mac1 = arg[3] 21701 } else { 21702 defundef = substr(arg[1], 2) 21703 mac1 = arg[2] 21704 } 21705 split(mac1, mac2, "(") #) 21706 macro = mac2[1] 21707 prefix = substr(line, 1, index(line, defundef) - 1) 21708 if (D_is_set[macro]) { 21709 # Preserve the white space surrounding the "#". 21710 print prefix "define", macro P[macro] D[macro] 21711 next 21712 } else { 21713 # Replace #undef with comments. This is necessary, for example, 21714 # in the case of _POSIX_SOURCE, which is predefined and required 21715 # on some systems where configure will not decide to define it. 21716 if (defundef == "undef") { 21717 print "/*", prefix defundef, macro, "*/" 21718 next 21719 } 21720 } 21721 } 21722 { print } 21723 _ACAWK 21724 _ACEOF 21725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21726 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21727 fi # test -n "$CONFIG_HEADERS" 21728 21729 21730 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21731 shift 21732 for ac_tag 21733 do 21734 case $ac_tag in 21735 :[FHLC]) ac_mode=$ac_tag; continue;; 21736 esac 21737 case $ac_mode$ac_tag in 21738 :[FHL]*:*);; 21739 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21740 :[FH]-) ac_tag=-:-;; 21741 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21742 esac 21743 ac_save_IFS=$IFS 21744 IFS=: 21745 set x $ac_tag 21746 IFS=$ac_save_IFS 21747 shift 21748 ac_file=$1 21749 shift 21750 21751 case $ac_mode in 21752 :L) ac_source=$1;; 21753 :[FH]) 21754 ac_file_inputs= 21755 for ac_f 21756 do 21757 case $ac_f in 21758 -) ac_f="$ac_tmp/stdin";; 21759 *) # Look for the file first in the build tree, then in the source tree 21760 # (if the path is not absolute). The absolute path cannot be DOS-style, 21761 # because $ac_f cannot contain ':'. 21762 test -f "$ac_f" || 21763 case $ac_f in 21764 [\\/$]*) false;; 21765 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21766 esac || 21767 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21768 esac 21769 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21770 as_fn_append ac_file_inputs " '$ac_f'" 21771 done 21772 21773 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21774 # use $as_me), people would be surprised to read: 21775 # /* config.h. Generated by config.status. */ 21776 configure_input='Generated from '` 21777 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21778 `' by configure.' 21779 if test x"$ac_file" != x-; then 21780 configure_input="$ac_file. $configure_input" 21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21782 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21783 fi 21784 # Neutralize special characters interpreted by sed in replacement strings. 21785 case $configure_input in #( 21786 *\&* | *\|* | *\\* ) 21787 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21788 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21789 *) ac_sed_conf_input=$configure_input;; 21790 esac 21791 21792 case $ac_tag in 21793 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21795 esac 21796 ;; 21797 esac 21798 21799 ac_dir=`$as_dirname -- "$ac_file" || 21800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21801 X"$ac_file" : 'X\(//\)[^/]' \| \ 21802 X"$ac_file" : 'X\(//\)$' \| \ 21803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21804 printf "%s\n" X"$ac_file" | 21805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21806 s//\1/ 21807 q 21808 } 21809 /^X\(\/\/\)[^/].*/{ 21810 s//\1/ 21811 q 21812 } 21813 /^X\(\/\/\)$/{ 21814 s//\1/ 21815 q 21816 } 21817 /^X\(\/\).*/{ 21818 s//\1/ 21819 q 21820 } 21821 s/.*/./; q'` 21822 as_dir="$ac_dir"; as_fn_mkdir_p 21823 ac_builddir=. 21824 21825 case "$ac_dir" in 21826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21827 *) 21828 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21829 # A ".." for each directory in $ac_dir_suffix. 21830 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21831 case $ac_top_builddir_sub in 21832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21834 esac ;; 21835 esac 21836 ac_abs_top_builddir=$ac_pwd 21837 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21838 # for backward compatibility: 21839 ac_top_builddir=$ac_top_build_prefix 21840 21841 case $srcdir in 21842 .) # We are building in place. 21843 ac_srcdir=. 21844 ac_top_srcdir=$ac_top_builddir_sub 21845 ac_abs_top_srcdir=$ac_pwd ;; 21846 [\\/]* | ?:[\\/]* ) # Absolute name. 21847 ac_srcdir=$srcdir$ac_dir_suffix; 21848 ac_top_srcdir=$srcdir 21849 ac_abs_top_srcdir=$srcdir ;; 21850 *) # Relative name. 21851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21852 ac_top_srcdir=$ac_top_build_prefix$srcdir 21853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21854 esac 21855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21856 21857 21858 case $ac_mode in 21859 :F) 21860 # 21861 # CONFIG_FILE 21862 # 21863 21864 case $INSTALL in 21865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21867 esac 21868 ac_MKDIR_P=$MKDIR_P 21869 case $MKDIR_P in 21870 [\\/$]* | ?:[\\/]* ) ;; 21871 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21872 esac 21873 _ACEOF 21874 21875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21876 # If the template does not know about datarootdir, expand it. 21877 # FIXME: This hack should be removed a few years after 2.60. 21878 ac_datarootdir_hack=; ac_datarootdir_seen= 21879 ac_sed_dataroot=' 21880 /datarootdir/ { 21881 p 21882 q 21883 } 21884 /@datadir@/p 21885 /@docdir@/p 21886 /@infodir@/p 21887 /@localedir@/p 21888 /@mandir@/p' 21889 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21890 *datarootdir*) ac_datarootdir_seen=yes;; 21891 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21893 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21894 _ACEOF 21895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21896 ac_datarootdir_hack=' 21897 s&@datadir@&$datadir&g 21898 s&@docdir@&$docdir&g 21899 s&@infodir@&$infodir&g 21900 s&@localedir@&$localedir&g 21901 s&@mandir@&$mandir&g 21902 s&\\\${datarootdir}&$datarootdir&g' ;; 21903 esac 21904 _ACEOF 21905 21906 # Neutralize VPATH when '$srcdir' = '.'. 21907 # Shell code in configure.ac might set extrasub. 21908 # FIXME: do we really want to maintain this feature? 21909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21910 ac_sed_extra="$ac_vpsub 21911 $extrasub 21912 _ACEOF 21913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21914 :t 21915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21916 s|@configure_input@|$ac_sed_conf_input|;t t 21917 s&@top_builddir@&$ac_top_builddir_sub&;t t 21918 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21919 s&@srcdir@&$ac_srcdir&;t t 21920 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21921 s&@top_srcdir@&$ac_top_srcdir&;t t 21922 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21923 s&@builddir@&$ac_builddir&;t t 21924 s&@abs_builddir@&$ac_abs_builddir&;t t 21925 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21926 s&@INSTALL@&$ac_INSTALL&;t t 21927 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21928 $ac_datarootdir_hack 21929 " 21930 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21931 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21932 21933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21934 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21936 "$ac_tmp/out"`; test -z "$ac_out"; } && 21937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21938 which seems to be undefined. Please make sure it is defined" >&5 21939 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21940 which seems to be undefined. Please make sure it is defined" >&2;} 21941 21942 rm -f "$ac_tmp/stdin" 21943 case $ac_file in 21944 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21945 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21946 esac \ 21947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21948 ;; 21949 :H) 21950 # 21951 # CONFIG_HEADER 21952 # 21953 if test x"$ac_file" != x-; then 21954 { 21955 printf "%s\n" "/* $configure_input */" >&1 \ 21956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21957 } >"$ac_tmp/config.h" \ 21958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21959 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21961 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21962 else 21963 rm -f "$ac_file" 21964 mv "$ac_tmp/config.h" "$ac_file" \ 21965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21966 fi 21967 else 21968 printf "%s\n" "/* $configure_input */" >&1 \ 21969 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21970 || as_fn_error $? "could not create -" "$LINENO" 5 21971 fi 21972 # Compute "$ac_file"'s index in $config_headers. 21973 _am_arg="$ac_file" 21974 _am_stamp_count=1 21975 for _am_header in $config_headers :; do 21976 case $_am_header in 21977 $_am_arg | $_am_arg:* ) 21978 break ;; 21979 * ) 21980 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21981 esac 21982 done 21983 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21984 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21985 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21986 X"$_am_arg" : 'X\(//\)$' \| \ 21987 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21988 printf "%s\n" X"$_am_arg" | 21989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21990 s//\1/ 21991 q 21992 } 21993 /^X\(\/\/\)[^/].*/{ 21994 s//\1/ 21995 q 21996 } 21997 /^X\(\/\/\)$/{ 21998 s//\1/ 21999 q 22000 } 22001 /^X\(\/\).*/{ 22002 s//\1/ 22003 q 22004 } 22005 s/.*/./; q'`/stamp-h$_am_stamp_count 22006 ;; 22007 22008 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22009 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22010 ;; 22011 esac 22012 22013 22014 case $ac_file$ac_mode in 22015 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22016 # Older Autoconf quotes --file arguments for eval, but not when files 22017 # are listed without --file. Let's play safe and only enable the eval 22018 # if we detect the quoting. 22019 # TODO: see whether this extra hack can be removed once we start 22020 # requiring Autoconf 2.70 or later. 22021 case $CONFIG_FILES in #( 22022 *\'*) : 22023 eval set x "$CONFIG_FILES" ;; #( 22024 *) : 22025 set x $CONFIG_FILES ;; #( 22026 *) : 22027 ;; 22028 esac 22029 shift 22030 # Used to flag and report bootstrapping failures. 22031 am_rc=0 22032 for am_mf 22033 do 22034 # Strip MF so we end up with the name of the file. 22035 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22036 # Check whether this is an Automake generated Makefile which includes 22037 # dependency-tracking related rules and includes. 22038 # Grep'ing the whole file directly is not great: AIX grep has a line 22039 # limit of 2048, but all sed's we know have understand at least 4000. 22040 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22041 || continue 22042 am_dirpart=`$as_dirname -- "$am_mf" || 22043 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22044 X"$am_mf" : 'X\(//\)[^/]' \| \ 22045 X"$am_mf" : 'X\(//\)$' \| \ 22046 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22047 printf "%s\n" X"$am_mf" | 22048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22049 s//\1/ 22050 q 22051 } 22052 /^X\(\/\/\)[^/].*/{ 22053 s//\1/ 22054 q 22055 } 22056 /^X\(\/\/\)$/{ 22057 s//\1/ 22058 q 22059 } 22060 /^X\(\/\).*/{ 22061 s//\1/ 22062 q 22063 } 22064 s/.*/./; q'` 22065 am_filepart=`$as_basename -- "$am_mf" || 22066 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22067 X"$am_mf" : 'X\(//\)$' \| \ 22068 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22069 printf "%s\n" X/"$am_mf" | 22070 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22071 s//\1/ 22072 q 22073 } 22074 /^X\/\(\/\/\)$/{ 22075 s//\1/ 22076 q 22077 } 22078 /^X\/\(\/\).*/{ 22079 s//\1/ 22080 q 22081 } 22082 s/.*/./; q'` 22083 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22084 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22085 | $MAKE -f - am--depfiles" >&5 22086 (cd "$am_dirpart" \ 22087 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22088 | $MAKE -f - am--depfiles) >&5 2>&5 22089 ac_status=$? 22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22091 (exit $ac_status); } || am_rc=$? 22092 done 22093 if test $am_rc -ne 0; then 22094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22095 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22096 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22097 for automatic dependency tracking. If GNU make was not used, consider 22098 re-running the configure script with MAKE=\"gmake\" (or whatever is 22099 necessary). You can also try re-running configure with the 22100 '--disable-dependency-tracking' option to at least be able to build 22101 the package (albeit without support for automatic dependency tracking). 22102 See 'config.log' for more details" "$LINENO" 5; } 22103 fi 22104 { am_dirpart=; unset am_dirpart;} 22105 { am_filepart=; unset am_filepart;} 22106 { am_mf=; unset am_mf;} 22107 { am_rc=; unset am_rc;} 22108 rm -f conftest-deps.mk 22109 } 22110 ;; 22111 "libtool":C) 22112 22113 # See if we are running on zsh, and set the options that allow our 22114 # commands through without removal of \ escapes. 22115 if test -n "${ZSH_VERSION+set}"; then 22116 setopt NO_GLOB_SUBST 22117 fi 22118 22119 cfgfile=${ofile}T 22120 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22121 $RM "$cfgfile" 22122 22123 cat <<_LT_EOF >> "$cfgfile" 22124 #! $SHELL 22125 # Generated automatically by $as_me ($PACKAGE) $VERSION 22126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22127 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22128 22129 # Provide generalized library-building support services. 22130 # Written by Gordon Matzigkeit, 1996 22131 22132 # Copyright (C) 2014 Free Software Foundation, Inc. 22133 # This is free software; see the source for copying conditions. There is NO 22134 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22135 22136 # GNU Libtool is free software; you can redistribute it and/or modify 22137 # it under the terms of the GNU General Public License as published by 22138 # the Free Software Foundation; either version 2 of of the License, or 22139 # (at your option) any later version. 22140 # 22141 # As a special exception to the GNU General Public License, if you 22142 # distribute this file as part of a program or library that is built 22143 # using GNU Libtool, you may include this file under the same 22144 # distribution terms that you use for the rest of that program. 22145 # 22146 # GNU Libtool is distributed in the hope that it will be useful, but 22147 # WITHOUT ANY WARRANTY; without even the implied warranty of 22148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22149 # GNU General Public License for more details. 22150 # 22151 # You should have received a copy of the GNU General Public License 22152 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22153 22154 22155 # The names of the tagged configurations supported by this script. 22156 available_tags='' 22157 22158 # Configured defaults for sys_lib_dlsearch_path munging. 22159 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22160 22161 # ### BEGIN LIBTOOL CONFIG 22162 22163 # Which release of libtool.m4 was used? 22164 macro_version=$macro_version 22165 macro_revision=$macro_revision 22166 22167 # Whether or not to build shared libraries. 22168 build_libtool_libs=$enable_shared 22169 22170 # Whether or not to build static libraries. 22171 build_old_libs=$enable_static 22172 22173 # What type of objects to build. 22174 pic_mode=$pic_mode 22175 22176 # Whether or not to optimize for fast installation. 22177 fast_install=$enable_fast_install 22178 22179 # Shared archive member basename,for filename based shared library versioning on AIX. 22180 shared_archive_member_spec=$shared_archive_member_spec 22181 22182 # Shell to use when invoking shell scripts. 22183 SHELL=$lt_SHELL 22184 22185 # An echo program that protects backslashes. 22186 ECHO=$lt_ECHO 22187 22188 # The PATH separator for the build system. 22189 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22190 22191 # The host system. 22192 host_alias=$host_alias 22193 host=$host 22194 host_os=$host_os 22195 22196 # The build system. 22197 build_alias=$build_alias 22198 build=$build 22199 build_os=$build_os 22200 22201 # A sed program that does not truncate output. 22202 SED=$lt_SED 22203 22204 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22205 Xsed="\$SED -e 1s/^X//" 22206 22207 # A grep program that handles long lines. 22208 GREP=$lt_GREP 22209 22210 # An ERE matcher. 22211 EGREP=$lt_EGREP 22212 22213 # A literal string matcher. 22214 FGREP=$lt_FGREP 22215 22216 # A BSD- or MS-compatible name lister. 22217 NM=$lt_NM 22218 22219 # Whether we need soft or hard links. 22220 LN_S=$lt_LN_S 22221 22222 # What is the maximum length of a command? 22223 max_cmd_len=$max_cmd_len 22224 22225 # Object file suffix (normally "o"). 22226 objext=$ac_objext 22227 22228 # Executable file suffix (normally ""). 22229 exeext=$exeext 22230 22231 # whether the shell understands "unset". 22232 lt_unset=$lt_unset 22233 22234 # turn spaces into newlines. 22235 SP2NL=$lt_lt_SP2NL 22236 22237 # turn newlines into spaces. 22238 NL2SP=$lt_lt_NL2SP 22239 22240 # convert \$build file names to \$host format. 22241 to_host_file_cmd=$lt_cv_to_host_file_cmd 22242 22243 # convert \$build files to toolchain format. 22244 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22245 22246 # A file(cmd) program that detects file types. 22247 FILECMD=$lt_FILECMD 22248 22249 # An object symbol dumper. 22250 OBJDUMP=$lt_OBJDUMP 22251 22252 # Method to check whether dependent libraries are shared objects. 22253 deplibs_check_method=$lt_deplibs_check_method 22254 22255 # Command to use when deplibs_check_method = "file_magic". 22256 file_magic_cmd=$lt_file_magic_cmd 22257 22258 # How to find potential files when deplibs_check_method = "file_magic". 22259 file_magic_glob=$lt_file_magic_glob 22260 22261 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22262 want_nocaseglob=$lt_want_nocaseglob 22263 22264 # DLL creation program. 22265 DLLTOOL=$lt_DLLTOOL 22266 22267 # Command to associate shared and link libraries. 22268 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22269 22270 # The archiver. 22271 AR=$lt_AR 22272 22273 # Flags to create an archive (by configure). 22274 lt_ar_flags=$lt_ar_flags 22275 22276 # Flags to create an archive. 22277 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22278 22279 # How to feed a file listing to the archiver. 22280 archiver_list_spec=$lt_archiver_list_spec 22281 22282 # A symbol stripping program. 22283 STRIP=$lt_STRIP 22284 22285 # Commands used to install an old-style archive. 22286 RANLIB=$lt_RANLIB 22287 old_postinstall_cmds=$lt_old_postinstall_cmds 22288 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22289 22290 # Whether to use a lock for old archive extraction. 22291 lock_old_archive_extraction=$lock_old_archive_extraction 22292 22293 # A C compiler. 22294 LTCC=$lt_CC 22295 22296 # LTCC compiler flags. 22297 LTCFLAGS=$lt_CFLAGS 22298 22299 # Take the output of nm and produce a listing of raw symbols and C names. 22300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22301 22302 # Transform the output of nm in a proper C declaration. 22303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22304 22305 # Transform the output of nm into a list of symbols to manually relocate. 22306 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22307 22308 # Transform the output of nm in a C name address pair. 22309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22310 22311 # Transform the output of nm in a C name address pair when lib prefix is needed. 22312 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22313 22314 # The name lister interface. 22315 nm_interface=$lt_lt_cv_nm_interface 22316 22317 # Specify filename containing input files for \$NM. 22318 nm_file_list_spec=$lt_nm_file_list_spec 22319 22320 # The root where to search for dependent libraries,and where our libraries should be installed. 22321 lt_sysroot=$lt_sysroot 22322 22323 # Command to truncate a binary pipe. 22324 lt_truncate_bin=$lt_lt_cv_truncate_bin 22325 22326 # The name of the directory that contains temporary libtool files. 22327 objdir=$objdir 22328 22329 # Used to examine libraries when file_magic_cmd begins with "file". 22330 MAGIC_CMD=$MAGIC_CMD 22331 22332 # Must we lock files when doing compilation? 22333 need_locks=$lt_need_locks 22334 22335 # Manifest tool. 22336 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22337 22338 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22339 DSYMUTIL=$lt_DSYMUTIL 22340 22341 # Tool to change global to local symbols on Mac OS X. 22342 NMEDIT=$lt_NMEDIT 22343 22344 # Tool to manipulate fat objects and archives on Mac OS X. 22345 LIPO=$lt_LIPO 22346 22347 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22348 OTOOL=$lt_OTOOL 22349 22350 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22351 OTOOL64=$lt_OTOOL64 22352 22353 # Old archive suffix (normally "a"). 22354 libext=$libext 22355 22356 # Shared library suffix (normally ".so"). 22357 shrext_cmds=$lt_shrext_cmds 22358 22359 # The commands to extract the exported symbol list from a shared archive. 22360 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22361 22362 # Variables whose values should be saved in libtool wrapper scripts and 22363 # restored at link time. 22364 variables_saved_for_relink=$lt_variables_saved_for_relink 22365 22366 # Do we need the "lib" prefix for modules? 22367 need_lib_prefix=$need_lib_prefix 22368 22369 # Do we need a version for libraries? 22370 need_version=$need_version 22371 22372 # Library versioning type. 22373 version_type=$version_type 22374 22375 # Shared library runtime path variable. 22376 runpath_var=$runpath_var 22377 22378 # Shared library path variable. 22379 shlibpath_var=$shlibpath_var 22380 22381 # Is shlibpath searched before the hard-coded library search path? 22382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22383 22384 # Format of library name prefix. 22385 libname_spec=$lt_libname_spec 22386 22387 # List of archive names. First name is the real one, the rest are links. 22388 # The last name is the one that the linker finds with -lNAME 22389 library_names_spec=$lt_library_names_spec 22390 22391 # The coded name of the library, if different from the real name. 22392 soname_spec=$lt_soname_spec 22393 22394 # Permission mode override for installation of shared libraries. 22395 install_override_mode=$lt_install_override_mode 22396 22397 # Command to use after installation of a shared archive. 22398 postinstall_cmds=$lt_postinstall_cmds 22399 22400 # Command to use after uninstallation of a shared archive. 22401 postuninstall_cmds=$lt_postuninstall_cmds 22402 22403 # Commands used to finish a libtool library installation in a directory. 22404 finish_cmds=$lt_finish_cmds 22405 22406 # As "finish_cmds", except a single script fragment to be evaled but 22407 # not shown. 22408 finish_eval=$lt_finish_eval 22409 22410 # Whether we should hardcode library paths into libraries. 22411 hardcode_into_libs=$hardcode_into_libs 22412 22413 # Compile-time system search path for libraries. 22414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22415 22416 # Detected run-time system search path for libraries. 22417 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22418 22419 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22420 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22421 22422 # Whether dlopen is supported. 22423 dlopen_support=$enable_dlopen 22424 22425 # Whether dlopen of programs is supported. 22426 dlopen_self=$enable_dlopen_self 22427 22428 # Whether dlopen of statically linked programs is supported. 22429 dlopen_self_static=$enable_dlopen_self_static 22430 22431 # Commands to strip libraries. 22432 old_striplib=$lt_old_striplib 22433 striplib=$lt_striplib 22434 22435 22436 # The linker used to build libraries. 22437 LD=$lt_LD 22438 22439 # How to create reloadable object files. 22440 reload_flag=$lt_reload_flag 22441 reload_cmds=$lt_reload_cmds 22442 22443 # Commands used to build an old-style archive. 22444 old_archive_cmds=$lt_old_archive_cmds 22445 22446 # A language specific compiler. 22447 CC=$lt_compiler 22448 22449 # Is the compiler the GNU compiler? 22450 with_gcc=$GCC 22451 22452 # Compiler flag to turn off builtin functions. 22453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22454 22455 # Additional compiler flags for building library objects. 22456 pic_flag=$lt_lt_prog_compiler_pic 22457 22458 # How to pass a linker flag through the compiler. 22459 wl=$lt_lt_prog_compiler_wl 22460 22461 # Compiler flag to prevent dynamic linking. 22462 link_static_flag=$lt_lt_prog_compiler_static 22463 22464 # Does compiler simultaneously support -c and -o options? 22465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22466 22467 # Whether or not to add -lc for building shared libraries. 22468 build_libtool_need_lc=$archive_cmds_need_lc 22469 22470 # Whether or not to disallow shared libs when runtime libs are static. 22471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22472 22473 # Compiler flag to allow reflexive dlopens. 22474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22475 22476 # Compiler flag to generate shared objects directly from archives. 22477 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22478 22479 # Whether the compiler copes with passing no objects directly. 22480 compiler_needs_object=$lt_compiler_needs_object 22481 22482 # Create an old-style archive from a shared archive. 22483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22484 22485 # Create a temporary old-style archive to link instead of a shared archive. 22486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22487 22488 # Commands used to build a shared archive. 22489 archive_cmds=$lt_archive_cmds 22490 archive_expsym_cmds=$lt_archive_expsym_cmds 22491 22492 # Commands used to build a loadable module if different from building 22493 # a shared archive. 22494 module_cmds=$lt_module_cmds 22495 module_expsym_cmds=$lt_module_expsym_cmds 22496 22497 # Whether we are building with GNU ld or not. 22498 with_gnu_ld=$lt_with_gnu_ld 22499 22500 # Flag that allows shared libraries with undefined symbols to be built. 22501 allow_undefined_flag=$lt_allow_undefined_flag 22502 22503 # Flag that enforces no undefined symbols. 22504 no_undefined_flag=$lt_no_undefined_flag 22505 22506 # Flag to hardcode \$libdir into a binary during linking. 22507 # This must work even if \$libdir does not exist 22508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22509 22510 # Whether we need a single "-rpath" flag with a separated argument. 22511 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22512 22513 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22514 # DIR into the resulting binary. 22515 hardcode_direct=$hardcode_direct 22516 22517 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22518 # DIR into the resulting binary and the resulting library dependency is 22519 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22520 # library is relocated. 22521 hardcode_direct_absolute=$hardcode_direct_absolute 22522 22523 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22524 # into the resulting binary. 22525 hardcode_minus_L=$hardcode_minus_L 22526 22527 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22528 # into the resulting binary. 22529 hardcode_shlibpath_var=$hardcode_shlibpath_var 22530 22531 # Set to "yes" if building a shared library automatically hardcodes DIR 22532 # into the library and all subsequent libraries and executables linked 22533 # against it. 22534 hardcode_automatic=$hardcode_automatic 22535 22536 # Set to yes if linker adds runtime paths of dependent libraries 22537 # to runtime path list. 22538 inherit_rpath=$inherit_rpath 22539 22540 # Whether libtool must link a program against all its dependency libraries. 22541 link_all_deplibs=$link_all_deplibs 22542 22543 # Set to "yes" if exported symbols are required. 22544 always_export_symbols=$always_export_symbols 22545 22546 # The commands to list exported symbols. 22547 export_symbols_cmds=$lt_export_symbols_cmds 22548 22549 # Symbols that should not be listed in the preloaded symbols. 22550 exclude_expsyms=$lt_exclude_expsyms 22551 22552 # Symbols that must always be exported. 22553 include_expsyms=$lt_include_expsyms 22554 22555 # Commands necessary for linking programs (against libraries) with templates. 22556 prelink_cmds=$lt_prelink_cmds 22557 22558 # Commands necessary for finishing linking programs. 22559 postlink_cmds=$lt_postlink_cmds 22560 22561 # Specify filename containing input files. 22562 file_list_spec=$lt_file_list_spec 22563 22564 # How to hardcode a shared library path into an executable. 22565 hardcode_action=$hardcode_action 22566 22567 # ### END LIBTOOL CONFIG 22568 22569 _LT_EOF 22570 22571 cat <<'_LT_EOF' >> "$cfgfile" 22572 22573 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22574 22575 # func_munge_path_list VARIABLE PATH 22576 # ----------------------------------- 22577 # VARIABLE is name of variable containing _space_ separated list of 22578 # directories to be munged by the contents of PATH, which is string 22579 # having a format: 22580 # "DIR[:DIR]:" 22581 # string "DIR[ DIR]" will be prepended to VARIABLE 22582 # ":DIR[:DIR]" 22583 # string "DIR[ DIR]" will be appended to VARIABLE 22584 # "DIRP[:DIRP]::[DIRA:]DIRA" 22585 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22586 # "DIRA[ DIRA]" will be appended to VARIABLE 22587 # "DIR[:DIR]" 22588 # VARIABLE will be replaced by "DIR[ DIR]" 22589 func_munge_path_list () 22590 { 22591 case x$2 in 22592 x) 22593 ;; 22594 *:) 22595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22596 ;; 22597 x:*) 22598 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22599 ;; 22600 *::*) 22601 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22602 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22603 ;; 22604 *) 22605 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22606 ;; 22607 esac 22608 } 22609 22610 22611 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22612 func_cc_basename () 22613 { 22614 for cc_temp in $*""; do 22615 case $cc_temp in 22616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22618 \-*) ;; 22619 *) break;; 22620 esac 22621 done 22622 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22623 } 22624 22625 22626 # ### END FUNCTIONS SHARED WITH CONFIGURE 22627 22628 _LT_EOF 22629 22630 case $host_os in 22631 aix3*) 22632 cat <<\_LT_EOF >> "$cfgfile" 22633 # AIX sometimes has problems with the GCC collect2 program. For some 22634 # reason, if we set the COLLECT_NAMES environment variable, the problems 22635 # vanish in a puff of smoke. 22636 if test set != "${COLLECT_NAMES+set}"; then 22637 COLLECT_NAMES= 22638 export COLLECT_NAMES 22639 fi 22640 _LT_EOF 22641 ;; 22642 esac 22643 22644 22645 22646 ltmain=$ac_aux_dir/ltmain.sh 22647 22648 22649 # We use sed instead of cat because bash on DJGPP gets confused if 22650 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22651 # text mode, it properly converts lines to CR/LF. This bash problem 22652 # is reportedly fixed, but why not run on old versions too? 22653 $SED '$q' "$ltmain" >> "$cfgfile" \ 22654 || (rm -f "$cfgfile"; exit 1) 22655 22656 mv -f "$cfgfile" "$ofile" || 22657 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22658 chmod +x "$ofile" 22659 22660 ;; 22661 22662 esac 22663 done # for ac_tag 22664 22665 22666 as_fn_exit 0 22667 _ACEOF 22668 ac_clean_files=$ac_clean_files_save 22669 22670 test $ac_write_fail = 0 || 22671 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22672 22673 22674 # configure is writing to config.log, and then calls config.status. 22675 # config.status does its own redirection, appending to config.log. 22676 # Unfortunately, on DOS this fails, as config.log is still kept open 22677 # by configure, so config.status won't be able to write to it; its 22678 # output is simply discarded. So we exec the FD to /dev/null, 22679 # effectively closing config.log, so it can be properly (re)opened and 22680 # appended to by config.status. When coming back to configure, we 22681 # need to make the FD available again. 22682 if test "$no_create" != yes; then 22683 ac_cs_success=: 22684 ac_config_status_args= 22685 test "$silent" = yes && 22686 ac_config_status_args="$ac_config_status_args --quiet" 22687 exec 5>/dev/null 22688 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22689 exec 5>>config.log 22690 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22691 # would make configure fail if this is the last instruction. 22692 $ac_cs_success || as_fn_exit 1 22693 fi 22694 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22696 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22697 fi 22698 22699 22700