configure revision fb5e8d76
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libICE 1.0.9. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550as_awk_strverscmp=' 551 # Use only awk features that work with 7th edition Unix awk (1978). 552 # My, what an old awk you have, Mr. Solaris! 553 END { 554 while (length(v1) && length(v2)) { 555 # Set d1 to be the next thing to compare from v1, and likewise for d2. 556 # Normally this is a single character, but if v1 and v2 contain digits, 557 # compare them as integers and fractions as strverscmp does. 558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 559 # Split v1 and v2 into their leading digit string components d1 and d2, 560 # and advance v1 and v2 past the leading digit strings. 561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 565 if (d1 ~ /^0/) { 566 if (d2 ~ /^0/) { 567 # Compare two fractions. 568 while (d1 ~ /^0/ && d2 ~ /^0/) { 569 d1 = substr(d1, 2); len1-- 570 d2 = substr(d2, 2); len2-- 571 } 572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 573 # The two components differ in length, and the common prefix 574 # contains only leading zeros. Consider the longer to be less. 575 d1 = -len1 576 d2 = -len2 577 } else { 578 # Otherwise, compare as strings. 579 d1 = "x" d1 580 d2 = "x" d2 581 } 582 } else { 583 # A fraction is less than an integer. 584 exit 1 585 } 586 } else { 587 if (d2 ~ /^0/) { 588 # An integer is greater than a fraction. 589 exit 2 590 } else { 591 # Compare two integers. 592 d1 += 0 593 d2 += 0 594 } 595 } 596 } else { 597 # The normal case, without worrying about digits. 598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 600 } 601 if (d1 < d2) exit 1 602 if (d1 > d2) exit 2 603 } 604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 605 # which mishandles some comparisons of empty strings to integers. 606 if (length(v2)) exit 1 607 if (length(v1)) exit 2 608 } 609' 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='libICE' 633PACKAGE_TARNAME='libICE' 634PACKAGE_VERSION='1.0.9' 635PACKAGE_STRING='libICE 1.0.9' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639ac_unique_file="Makefile.am" 640# Factoring default headers for most tests. 641ac_includes_default="\ 642#include <stdio.h> 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef STDC_HEADERS 650# include <stdlib.h> 651# include <stddef.h> 652#else 653# ifdef HAVE_STDLIB_H 654# include <stdlib.h> 655# endif 656#endif 657#ifdef HAVE_STRING_H 658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659# include <memory.h> 660# endif 661# include <string.h> 662#endif 663#ifdef HAVE_STRINGS_H 664# include <strings.h> 665#endif 666#ifdef HAVE_INTTYPES_H 667# include <inttypes.h> 668#endif 669#ifdef HAVE_STDINT_H 670# include <stdint.h> 671#endif 672#ifdef HAVE_UNISTD_H 673# include <unistd.h> 674#endif" 675 676ac_subst_vars='am__EXEEXT_FALSE 677am__EXEEXT_TRUE 678LTLIBOBJS 679LIBOBJS 680MAKE_LINT_LIB_FALSE 681MAKE_LINT_LIB_TRUE 682LINTLIB 683LINT_FALSE 684LINT_TRUE 685LINT_FLAGS 686LINT 687ICE_LIBS 688ICE_CFLAGS 689HAVE_STYLESHEETS_FALSE 690HAVE_STYLESHEETS_TRUE 691XSL_STYLESHEET 692STYLESHEET_SRCDIR 693XORG_SGML_PATH 694HAVE_XSLTPROC_FALSE 695HAVE_XSLTPROC_TRUE 696XSLTPROC 697HAVE_FOP_FALSE 698HAVE_FOP_TRUE 699FOP 700HAVE_XMLTO_FALSE 701HAVE_XMLTO_TRUE 702HAVE_XMLTO_TEXT_FALSE 703HAVE_XMLTO_TEXT_TRUE 704XMLTO 705ENABLE_SPECS_FALSE 706ENABLE_SPECS_TRUE 707ENABLE_DOCS_FALSE 708ENABLE_DOCS_TRUE 709MAN_SUBSTS 710XORG_MAN_PAGE 711ADMIN_MAN_DIR 712DRIVER_MAN_DIR 713MISC_MAN_DIR 714FILE_MAN_DIR 715LIB_MAN_DIR 716APP_MAN_DIR 717ADMIN_MAN_SUFFIX 718DRIVER_MAN_SUFFIX 719MISC_MAN_SUFFIX 720FILE_MAN_SUFFIX 721LIB_MAN_SUFFIX 722APP_MAN_SUFFIX 723INSTALL_CMD 724PKG_CONFIG 725CHANGELOG_CMD 726STRICT_CFLAGS 727CWARNFLAGS 728BASE_CFLAGS 729OTOOL64 730OTOOL 731LIPO 732NMEDIT 733DSYMUTIL 734MANIFEST_TOOL 735RANLIB 736ac_ct_AR 737AR 738DLLTOOL 739OBJDUMP 740LN_S 741NM 742ac_ct_DUMPBIN 743DUMPBIN 744LD 745FGREP 746SED 747host_os 748host_vendor 749host_cpu 750host 751build_os 752build_vendor 753build_cpu 754build 755LIBTOOL 756AM_BACKSLASH 757AM_DEFAULT_VERBOSITY 758AM_DEFAULT_V 759AM_V 760am__fastdepCC_FALSE 761am__fastdepCC_TRUE 762CCDEPMODE 763am__nodep 764AMDEPBACKSLASH 765AMDEP_FALSE 766AMDEP_TRUE 767am__quote 768am__include 769DEPDIR 770am__untar 771am__tar 772AMTAR 773am__leading_dot 774SET_MAKE 775AWK 776mkdir_p 777MKDIR_P 778INSTALL_STRIP_PROGRAM 779STRIP 780install_sh 781MAKEINFO 782AUTOHEADER 783AUTOMAKE 784AUTOCONF 785ACLOCAL 786VERSION 787PACKAGE 788CYGPATH_W 789am__isrc 790INSTALL_DATA 791INSTALL_SCRIPT 792INSTALL_PROGRAM 793EGREP 794GREP 795CPP 796OBJEXT 797EXEEXT 798ac_ct_CC 799CPPFLAGS 800LDFLAGS 801CFLAGS 802CC 803target_alias 804host_alias 805build_alias 806LIBS 807ECHO_T 808ECHO_N 809ECHO_C 810DEFS 811mandir 812localedir 813libdir 814psdir 815pdfdir 816dvidir 817htmldir 818infodir 819docdir 820oldincludedir 821includedir 822localstatedir 823sharedstatedir 824sysconfdir 825datadir 826datarootdir 827libexecdir 828sbindir 829bindir 830program_transform_name 831prefix 832exec_prefix 833PACKAGE_URL 834PACKAGE_BUGREPORT 835PACKAGE_STRING 836PACKAGE_VERSION 837PACKAGE_TARNAME 838PACKAGE_NAME 839PATH_SEPARATOR 840SHELL' 841ac_subst_files='' 842ac_user_opts=' 843enable_option_checking 844enable_dependency_tracking 845enable_silent_rules 846enable_shared 847enable_static 848with_pic 849enable_fast_install 850with_gnu_ld 851with_sysroot 852enable_libtool_lock 853enable_selective_werror 854enable_strict_compilation 855enable_docs 856enable_specs 857with_xmlto 858with_fop 859with_xsltproc 860enable_unix_transport 861enable_tcp_transport 862enable_ipv6 863enable_local_transport 864with_lint 865enable_lint_library 866' 867 ac_precious_vars='build_alias 868host_alias 869target_alias 870CC 871CFLAGS 872LDFLAGS 873LIBS 874CPPFLAGS 875CPP 876PKG_CONFIG 877XMLTO 878FOP 879XSLTPROC 880ICE_CFLAGS 881ICE_LIBS 882LINT 883LINT_FLAGS' 884 885 886# Initialize some variables set by options. 887ac_init_help= 888ac_init_version=false 889ac_unrecognized_opts= 890ac_unrecognized_sep= 891# The variables have the same names as the options, with 892# dashes changed to underlines. 893cache_file=/dev/null 894exec_prefix=NONE 895no_create= 896no_recursion= 897prefix=NONE 898program_prefix=NONE 899program_suffix=NONE 900program_transform_name=s,x,x, 901silent= 902site= 903srcdir= 904verbose= 905x_includes=NONE 906x_libraries=NONE 907 908# Installation directory options. 909# These are left unexpanded so users can "make install exec_prefix=/foo" 910# and all the variables that are supposed to be based on exec_prefix 911# by default will actually change. 912# Use braces instead of parens because sh, perl, etc. also accept them. 913# (The list follows the same order as the GNU Coding Standards.) 914bindir='${exec_prefix}/bin' 915sbindir='${exec_prefix}/sbin' 916libexecdir='${exec_prefix}/libexec' 917datarootdir='${prefix}/share' 918datadir='${datarootdir}' 919sysconfdir='${prefix}/etc' 920sharedstatedir='${prefix}/com' 921localstatedir='${prefix}/var' 922includedir='${prefix}/include' 923oldincludedir='/usr/include' 924docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 925infodir='${datarootdir}/info' 926htmldir='${docdir}' 927dvidir='${docdir}' 928pdfdir='${docdir}' 929psdir='${docdir}' 930libdir='${exec_prefix}/lib' 931localedir='${datarootdir}/locale' 932mandir='${datarootdir}/man' 933 934ac_prev= 935ac_dashdash= 936for ac_option 937do 938 # If the previous option needs an argument, assign it. 939 if test -n "$ac_prev"; then 940 eval $ac_prev=\$ac_option 941 ac_prev= 942 continue 943 fi 944 945 case $ac_option in 946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 947 *=) ac_optarg= ;; 948 *) ac_optarg=yes ;; 949 esac 950 951 # Accept the important Cygnus configure options, so we can diagnose typos. 952 953 case $ac_dashdash$ac_option in 954 --) 955 ac_dashdash=yes ;; 956 957 -bindir | --bindir | --bindi | --bind | --bin | --bi) 958 ac_prev=bindir ;; 959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 960 bindir=$ac_optarg ;; 961 962 -build | --build | --buil | --bui | --bu) 963 ac_prev=build_alias ;; 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 965 build_alias=$ac_optarg ;; 966 967 -cache-file | --cache-file | --cache-fil | --cache-fi \ 968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 969 ac_prev=cache_file ;; 970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 972 cache_file=$ac_optarg ;; 973 974 --config-cache | -C) 975 cache_file=config.cache ;; 976 977 -datadir | --datadir | --datadi | --datad) 978 ac_prev=datadir ;; 979 -datadir=* | --datadir=* | --datadi=* | --datad=*) 980 datadir=$ac_optarg ;; 981 982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 983 | --dataroo | --dataro | --datar) 984 ac_prev=datarootdir ;; 985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 987 datarootdir=$ac_optarg ;; 988 989 -disable-* | --disable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=no ;; 1004 1005 -docdir | --docdir | --docdi | --doc | --do) 1006 ac_prev=docdir ;; 1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1008 docdir=$ac_optarg ;; 1009 1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1011 ac_prev=dvidir ;; 1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1013 dvidir=$ac_optarg ;; 1014 1015 -enable-* | --enable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=\$ac_optarg ;; 1030 1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1033 | --exec | --exe | --ex) 1034 ac_prev=exec_prefix ;; 1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1037 | --exec=* | --exe=* | --ex=*) 1038 exec_prefix=$ac_optarg ;; 1039 1040 -gas | --gas | --ga | --g) 1041 # Obsolete; use --with-gas. 1042 with_gas=yes ;; 1043 1044 -help | --help | --hel | --he | -h) 1045 ac_init_help=long ;; 1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1047 ac_init_help=recursive ;; 1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1049 ac_init_help=short ;; 1050 1051 -host | --host | --hos | --ho) 1052 ac_prev=host_alias ;; 1053 -host=* | --host=* | --hos=* | --ho=*) 1054 host_alias=$ac_optarg ;; 1055 1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1057 ac_prev=htmldir ;; 1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1059 | --ht=*) 1060 htmldir=$ac_optarg ;; 1061 1062 -includedir | --includedir | --includedi | --included | --include \ 1063 | --includ | --inclu | --incl | --inc) 1064 ac_prev=includedir ;; 1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1066 | --includ=* | --inclu=* | --incl=* | --inc=*) 1067 includedir=$ac_optarg ;; 1068 1069 -infodir | --infodir | --infodi | --infod | --info | --inf) 1070 ac_prev=infodir ;; 1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1072 infodir=$ac_optarg ;; 1073 1074 -libdir | --libdir | --libdi | --libd) 1075 ac_prev=libdir ;; 1076 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1077 libdir=$ac_optarg ;; 1078 1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1080 | --libexe | --libex | --libe) 1081 ac_prev=libexecdir ;; 1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1083 | --libexe=* | --libex=* | --libe=*) 1084 libexecdir=$ac_optarg ;; 1085 1086 -localedir | --localedir | --localedi | --localed | --locale) 1087 ac_prev=localedir ;; 1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1089 localedir=$ac_optarg ;; 1090 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1092 | --localstate | --localstat | --localsta | --localst | --locals) 1093 ac_prev=localstatedir ;; 1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1096 localstatedir=$ac_optarg ;; 1097 1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1099 ac_prev=mandir ;; 1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1101 mandir=$ac_optarg ;; 1102 1103 -nfp | --nfp | --nf) 1104 # Obsolete; use --without-fp. 1105 with_fp=no ;; 1106 1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1108 | --no-cr | --no-c | -n) 1109 no_create=yes ;; 1110 1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1113 no_recursion=yes ;; 1114 1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1117 | --oldin | --oldi | --old | --ol | --o) 1118 ac_prev=oldincludedir ;; 1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1122 oldincludedir=$ac_optarg ;; 1123 1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1125 ac_prev=prefix ;; 1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1127 prefix=$ac_optarg ;; 1128 1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1130 | --program-pre | --program-pr | --program-p) 1131 ac_prev=program_prefix ;; 1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1134 program_prefix=$ac_optarg ;; 1135 1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1137 | --program-suf | --program-su | --program-s) 1138 ac_prev=program_suffix ;; 1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1141 program_suffix=$ac_optarg ;; 1142 1143 -program-transform-name | --program-transform-name \ 1144 | --program-transform-nam | --program-transform-na \ 1145 | --program-transform-n | --program-transform- \ 1146 | --program-transform | --program-transfor \ 1147 | --program-transfo | --program-transf \ 1148 | --program-trans | --program-tran \ 1149 | --progr-tra | --program-tr | --program-t) 1150 ac_prev=program_transform_name ;; 1151 -program-transform-name=* | --program-transform-name=* \ 1152 | --program-transform-nam=* | --program-transform-na=* \ 1153 | --program-transform-n=* | --program-transform-=* \ 1154 | --program-transform=* | --program-transfor=* \ 1155 | --program-transfo=* | --program-transf=* \ 1156 | --program-trans=* | --program-tran=* \ 1157 | --progr-tra=* | --program-tr=* | --program-t=*) 1158 program_transform_name=$ac_optarg ;; 1159 1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1161 ac_prev=pdfdir ;; 1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1163 pdfdir=$ac_optarg ;; 1164 1165 -psdir | --psdir | --psdi | --psd | --ps) 1166 ac_prev=psdir ;; 1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1168 psdir=$ac_optarg ;; 1169 1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1171 | -silent | --silent | --silen | --sile | --sil) 1172 silent=yes ;; 1173 1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1175 ac_prev=sbindir ;; 1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1177 | --sbi=* | --sb=*) 1178 sbindir=$ac_optarg ;; 1179 1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1182 | --sharedst | --shareds | --shared | --share | --shar \ 1183 | --sha | --sh) 1184 ac_prev=sharedstatedir ;; 1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1188 | --sha=* | --sh=*) 1189 sharedstatedir=$ac_optarg ;; 1190 1191 -site | --site | --sit) 1192 ac_prev=site ;; 1193 -site=* | --site=* | --sit=*) 1194 site=$ac_optarg ;; 1195 1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1197 ac_prev=srcdir ;; 1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1199 srcdir=$ac_optarg ;; 1200 1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1202 | --syscon | --sysco | --sysc | --sys | --sy) 1203 ac_prev=sysconfdir ;; 1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1206 sysconfdir=$ac_optarg ;; 1207 1208 -target | --target | --targe | --targ | --tar | --ta | --t) 1209 ac_prev=target_alias ;; 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1211 target_alias=$ac_optarg ;; 1212 1213 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1214 verbose=yes ;; 1215 1216 -version | --version | --versio | --versi | --vers | -V) 1217 ac_init_version=: ;; 1218 1219 -with-* | --with-*) 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1223 as_fn_error $? "invalid package name: $ac_useropt" 1224 ac_useropt_orig=$ac_useropt 1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1226 case $ac_user_opts in 1227 *" 1228"with_$ac_useropt" 1229"*) ;; 1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1231 ac_unrecognized_sep=', ';; 1232 esac 1233 eval with_$ac_useropt=\$ac_optarg ;; 1234 1235 -without-* | --without-*) 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1239 as_fn_error $? "invalid package name: $ac_useropt" 1240 ac_useropt_orig=$ac_useropt 1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1242 case $ac_user_opts in 1243 *" 1244"with_$ac_useropt" 1245"*) ;; 1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1247 ac_unrecognized_sep=', ';; 1248 esac 1249 eval with_$ac_useropt=no ;; 1250 1251 --x) 1252 # Obsolete; use --with-x. 1253 with_x=yes ;; 1254 1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1256 | --x-incl | --x-inc | --x-in | --x-i) 1257 ac_prev=x_includes ;; 1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1260 x_includes=$ac_optarg ;; 1261 1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1264 ac_prev=x_libraries ;; 1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1267 x_libraries=$ac_optarg ;; 1268 1269 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1270Try \`$0 --help' for more information" 1271 ;; 1272 1273 *=*) 1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1275 # Reject names that are not valid shell variable names. 1276 case $ac_envvar in #( 1277 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1279 esac 1280 eval $ac_envvar=\$ac_optarg 1281 export $ac_envvar ;; 1282 1283 *) 1284 # FIXME: should be removed in autoconf 3.0. 1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1289 ;; 1290 1291 esac 1292done 1293 1294if test -n "$ac_prev"; then 1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1296 as_fn_error $? "missing argument to $ac_option" 1297fi 1298 1299if test -n "$ac_unrecognized_opts"; then 1300 case $enable_option_checking in 1301 no) ;; 1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1304 esac 1305fi 1306 1307# Check all directory arguments for consistency. 1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1309 datadir sysconfdir sharedstatedir localstatedir includedir \ 1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1311 libdir localedir mandir 1312do 1313 eval ac_val=\$$ac_var 1314 # Remove trailing slashes. 1315 case $ac_val in 1316 */ ) 1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1318 eval $ac_var=\$ac_val;; 1319 esac 1320 # Be sure to have absolute directory names. 1321 case $ac_val in 1322 [\\/$]* | ?:[\\/]* ) continue;; 1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1324 esac 1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1326done 1327 1328# There might be people who depend on the old broken behavior: `$host' 1329# used to hold the argument of --host etc. 1330# FIXME: To remove some day. 1331build=$build_alias 1332host=$host_alias 1333target=$target_alias 1334 1335# FIXME: To remove some day. 1336if test "x$host_alias" != x; then 1337 if test "x$build_alias" = x; then 1338 cross_compiling=maybe 1339 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1340 If a cross compiler is detected then cross compile mode will be used" >&2 1341 elif test "x$build_alias" != "x$host_alias"; then 1342 cross_compiling=yes 1343 fi 1344fi 1345 1346ac_tool_prefix= 1347test -n "$host_alias" && ac_tool_prefix=$host_alias- 1348 1349test "$silent" = yes && exec 6>/dev/null 1350 1351 1352ac_pwd=`pwd` && test -n "$ac_pwd" && 1353ac_ls_di=`ls -di .` && 1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1355 as_fn_error $? "working directory cannot be determined" 1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1357 as_fn_error $? "pwd does not report name of working directory" 1358 1359 1360# Find the source files, if location was not specified. 1361if test -z "$srcdir"; then 1362 ac_srcdir_defaulted=yes 1363 # Try the directory containing this script, then the parent directory. 1364 ac_confdir=`$as_dirname -- "$as_myself" || 1365$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1366 X"$as_myself" : 'X\(//\)[^/]' \| \ 1367 X"$as_myself" : 'X\(//\)$' \| \ 1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1369$as_echo X"$as_myself" | 1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)[^/].*/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\/\)$/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\).*/{ 1383 s//\1/ 1384 q 1385 } 1386 s/.*/./; q'` 1387 srcdir=$ac_confdir 1388 if test ! -r "$srcdir/$ac_unique_file"; then 1389 srcdir=.. 1390 fi 1391else 1392 ac_srcdir_defaulted=no 1393fi 1394if test ! -r "$srcdir/$ac_unique_file"; then 1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1397fi 1398ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1399ac_abs_confdir=`( 1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1401 pwd)` 1402# When building in place, set srcdir=. 1403if test "$ac_abs_confdir" = "$ac_pwd"; then 1404 srcdir=. 1405fi 1406# Remove unnecessary trailing slashes from srcdir. 1407# Double slashes in file names in object file debugging info 1408# mess up M-x gdb in Emacs. 1409case $srcdir in 1410*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1411esac 1412for ac_var in $ac_precious_vars; do 1413 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1414 eval ac_env_${ac_var}_value=\$${ac_var} 1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1416 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1417done 1418 1419# 1420# Report the --help message. 1421# 1422if test "$ac_init_help" = "long"; then 1423 # Omit some internal or obsolete options to make the list less imposing. 1424 # This message is too long to be a string in the A/UX 3.1 sh. 1425 cat <<_ACEOF 1426\`configure' configures libICE 1.0.9 to adapt to many kinds of systems. 1427 1428Usage: $0 [OPTION]... [VAR=VALUE]... 1429 1430To assign environment variables (e.g., CC, CFLAGS...), specify them as 1431VAR=VALUE. See below for descriptions of some of the useful variables. 1432 1433Defaults for the options are specified in brackets. 1434 1435Configuration: 1436 -h, --help display this help and exit 1437 --help=short display options specific to this package 1438 --help=recursive display the short help of all the included packages 1439 -V, --version display version information and exit 1440 -q, --quiet, --silent do not print \`checking ...' messages 1441 --cache-file=FILE cache test results in FILE [disabled] 1442 -C, --config-cache alias for \`--cache-file=config.cache' 1443 -n, --no-create do not create output files 1444 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1445 1446Installation directories: 1447 --prefix=PREFIX install architecture-independent files in PREFIX 1448 [$ac_default_prefix] 1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1450 [PREFIX] 1451 1452By default, \`make install' will install all the files in 1453\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1454an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1455for instance \`--prefix=\$HOME'. 1456 1457For better control, use the options below. 1458 1459Fine tuning of the installation directories: 1460 --bindir=DIR user executables [EPREFIX/bin] 1461 --sbindir=DIR system admin executables [EPREFIX/sbin] 1462 --libexecdir=DIR program executables [EPREFIX/libexec] 1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1466 --libdir=DIR object code libraries [EPREFIX/lib] 1467 --includedir=DIR C header files [PREFIX/include] 1468 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1471 --infodir=DIR info documentation [DATAROOTDIR/info] 1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1473 --mandir=DIR man documentation [DATAROOTDIR/man] 1474 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE] 1475 --htmldir=DIR html documentation [DOCDIR] 1476 --dvidir=DIR dvi documentation [DOCDIR] 1477 --pdfdir=DIR pdf documentation [DOCDIR] 1478 --psdir=DIR ps documentation [DOCDIR] 1479_ACEOF 1480 1481 cat <<\_ACEOF 1482 1483Program names: 1484 --program-prefix=PREFIX prepend PREFIX to installed program names 1485 --program-suffix=SUFFIX append SUFFIX to installed program names 1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1487 1488System types: 1489 --build=BUILD configure for building on BUILD [guessed] 1490 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1491_ACEOF 1492fi 1493 1494if test -n "$ac_init_help"; then 1495 case $ac_init_help in 1496 short | recursive ) echo "Configuration of libICE 1.0.9:";; 1497 esac 1498 cat <<\_ACEOF 1499 1500Optional Features: 1501 --disable-option-checking ignore unrecognized --enable/--with options 1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1504 --enable-dependency-tracking 1505 do not reject slow dependency extractors 1506 --disable-dependency-tracking 1507 speeds up one-time build 1508 --enable-silent-rules less verbose build output (undo: "make V=1") 1509 --disable-silent-rules verbose build output (undo: "make V=0") 1510 --enable-shared[=PKGS] build shared libraries [default=yes] 1511 --enable-static[=PKGS] build static libraries [default=yes] 1512 --enable-fast-install[=PKGS] 1513 optimize for fast installation [default=yes] 1514 --disable-libtool-lock avoid locking (might break parallel builds) 1515 --disable-selective-werror 1516 Turn off selective compiler errors. (default: 1517 enabled) 1518 --enable-strict-compilation 1519 Enable all warnings from compiler and make them 1520 errors (default: disabled) 1521 --enable-docs Enable building the documentation (default: yes) 1522 --enable-specs Enable building the specs (default: yes) 1523 --enable-unix-transport Enable UNIX domain socket transport 1524 --enable-tcp-transport Enable TCP socket transport 1525 --enable-ipv6 Enable IPv6 support 1526 --enable-local-transport 1527 Enable os-specific local transport 1528 --enable-lint-library Create lint library (default: disabled) 1529 1530Optional Packages: 1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1533 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1534 both] 1535 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1536 --with-sysroot=DIR Search for dependent libraries within DIR 1537 (or the compiler's sysroot if not specified). 1538 --with-xmlto Use xmlto to regenerate documentation (default: 1539 auto) 1540 --with-fop Use fop to regenerate documentation (default: auto) 1541 --with-xsltproc Use xsltproc for the transformation of XML documents 1542 (default: auto) 1543 --with-lint Use a lint-style source code checker (default: 1544 disabled) 1545 1546Some influential environment variables: 1547 CC C compiler command 1548 CFLAGS C compiler flags 1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1550 nonstandard directory <lib dir> 1551 LIBS libraries to pass to the linker, e.g. -l<library> 1552 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1553 you have headers in a nonstandard directory <include dir> 1554 CPP C preprocessor 1555 PKG_CONFIG path to pkg-config utility 1556 XMLTO Path to xmlto command 1557 FOP Path to fop command 1558 XSLTPROC Path to xsltproc command 1559 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config 1560 ICE_LIBS linker flags for ICE, overriding pkg-config 1561 LINT Path to a lint-style command 1562 LINT_FLAGS Flags for the lint-style command 1563 1564Use these variables to override the choices made by `configure' or to help 1565it to find libraries and programs with nonstandard names/locations. 1566 1567Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1568_ACEOF 1569ac_status=$? 1570fi 1571 1572if test "$ac_init_help" = "recursive"; then 1573 # If there are subdirs, report their specific --help. 1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1575 test -d "$ac_dir" || 1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1577 continue 1578 ac_builddir=. 1579 1580case "$ac_dir" in 1581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1582*) 1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1584 # A ".." for each directory in $ac_dir_suffix. 1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1586 case $ac_top_builddir_sub in 1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1589 esac ;; 1590esac 1591ac_abs_top_builddir=$ac_pwd 1592ac_abs_builddir=$ac_pwd$ac_dir_suffix 1593# for backward compatibility: 1594ac_top_builddir=$ac_top_build_prefix 1595 1596case $srcdir in 1597 .) # We are building in place. 1598 ac_srcdir=. 1599 ac_top_srcdir=$ac_top_builddir_sub 1600 ac_abs_top_srcdir=$ac_pwd ;; 1601 [\\/]* | ?:[\\/]* ) # Absolute name. 1602 ac_srcdir=$srcdir$ac_dir_suffix; 1603 ac_top_srcdir=$srcdir 1604 ac_abs_top_srcdir=$srcdir ;; 1605 *) # Relative name. 1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1607 ac_top_srcdir=$ac_top_build_prefix$srcdir 1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1609esac 1610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1611 1612 cd "$ac_dir" || { ac_status=$?; continue; } 1613 # Check for guested configure. 1614 if test -f "$ac_srcdir/configure.gnu"; then 1615 echo && 1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1617 elif test -f "$ac_srcdir/configure"; then 1618 echo && 1619 $SHELL "$ac_srcdir/configure" --help=recursive 1620 else 1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1622 fi || ac_status=$? 1623 cd "$ac_pwd" || { ac_status=$?; break; } 1624 done 1625fi 1626 1627test -n "$ac_init_help" && exit $ac_status 1628if $ac_init_version; then 1629 cat <<\_ACEOF 1630libICE configure 1.0.9 1631generated by GNU Autoconf 2.68 1632 1633Copyright (C) 2010 Free Software Foundation, Inc. 1634This configure script is free software; the Free Software Foundation 1635gives unlimited permission to copy, distribute and modify it. 1636_ACEOF 1637 exit 1638fi 1639 1640## ------------------------ ## 1641## Autoconf initialization. ## 1642## ------------------------ ## 1643 1644# ac_fn_c_try_compile LINENO 1645# -------------------------- 1646# Try to compile conftest.$ac_ext, and return whether this succeeded. 1647ac_fn_c_try_compile () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 rm -f conftest.$ac_objext 1651 if { { ac_try="$ac_compile" 1652case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_compile") 2>conftest.err 1659 ac_status=$? 1660 if test -s conftest.err; then 1661 grep -v '^ *+' conftest.err >conftest.er1 1662 cat conftest.er1 >&5 1663 mv -f conftest.er1 conftest.err 1664 fi 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } && { 1667 test -z "$ac_c_werror_flag" || 1668 test ! -s conftest.err 1669 } && test -s conftest.$ac_objext; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 as_fn_set_status $ac_retval 1679 1680} # ac_fn_c_try_compile 1681 1682# ac_fn_c_try_cpp LINENO 1683# ---------------------- 1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1685ac_fn_c_try_cpp () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 if { { ac_try="$ac_cpp conftest.$ac_ext" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1696 ac_status=$? 1697 if test -s conftest.err; then 1698 grep -v '^ *+' conftest.err >conftest.er1 1699 cat conftest.er1 >&5 1700 mv -f conftest.er1 conftest.err 1701 fi 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } > conftest.i && { 1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1705 test ! -s conftest.err 1706 }; then : 1707 ac_retval=0 1708else 1709 $as_echo "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=1 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_cpp 1718 1719# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1720# ------------------------------------------------------- 1721# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1722# the include files in INCLUDES and setting the cache variable VAR 1723# accordingly. 1724ac_fn_c_check_header_mongrel () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if eval \${$3+:} false; then : 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729$as_echo_n "checking for $2... " >&6; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732fi 1733eval ac_res=\$$3 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1735$as_echo "$ac_res" >&6; } 1736else 1737 # Is the header compilable? 1738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1739$as_echo_n "checking $2 usability... " >&6; } 1740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742$4 1743#include <$2> 1744_ACEOF 1745if ac_fn_c_try_compile "$LINENO"; then : 1746 ac_header_compiler=yes 1747else 1748 ac_header_compiler=no 1749fi 1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1752$as_echo "$ac_header_compiler" >&6; } 1753 1754# Is the header present? 1755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1756$as_echo_n "checking $2 presence... " >&6; } 1757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_cpp "$LINENO"; then : 1762 ac_header_preproc=yes 1763else 1764 ac_header_preproc=no 1765fi 1766rm -f conftest.err conftest.i conftest.$ac_ext 1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1768$as_echo "$ac_header_preproc" >&6; } 1769 1770# So? What about this header? 1771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1772 yes:no: ) 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1774$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1777 ;; 1778 no:yes:* ) 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1780$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1782$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1784$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1786$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1788$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1789( $as_echo "## ---------------------------------------------------------------------- ## 1790## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1791## ---------------------------------------------------------------------- ##" 1792 ) | sed "s/^/$as_me: WARNING: /" >&2 1793 ;; 1794esac 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1796$as_echo_n "checking for $2... " >&6; } 1797if eval \${$3+:} false; then : 1798 $as_echo_n "(cached) " >&6 1799else 1800 eval "$3=\$ac_header_compiler" 1801fi 1802eval ac_res=\$$3 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1804$as_echo "$ac_res" >&6; } 1805fi 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 1808} # ac_fn_c_check_header_mongrel 1809 1810# ac_fn_c_try_run LINENO 1811# ---------------------- 1812# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1813# that executables *can* be run. 1814ac_fn_c_try_run () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 if { { ac_try="$ac_link" 1818case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823$as_echo "$ac_try_echo"; } >&5 1824 (eval "$ac_link") 2>&5 1825 ac_status=$? 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1828 { { case "(($ac_try" in 1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1830 *) ac_try_echo=$ac_try;; 1831esac 1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1833$as_echo "$ac_try_echo"; } >&5 1834 (eval "$ac_try") 2>&5 1835 ac_status=$? 1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1837 test $ac_status = 0; }; }; then : 1838 ac_retval=0 1839else 1840 $as_echo "$as_me: program exited with status $ac_status" >&5 1841 $as_echo "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=$ac_status 1845fi 1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 as_fn_set_status $ac_retval 1849 1850} # ac_fn_c_try_run 1851 1852# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1853# ------------------------------------------------------- 1854# Tests whether HEADER exists and can be compiled using the include files in 1855# INCLUDES, setting the cache variable VAR accordingly. 1856ac_fn_c_check_header_compile () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1865/* end confdefs.h. */ 1866$4 1867#include <$2> 1868_ACEOF 1869if ac_fn_c_try_compile "$LINENO"; then : 1870 eval "$3=yes" 1871else 1872 eval "$3=no" 1873fi 1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1875fi 1876eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878$as_echo "$ac_res" >&6; } 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 1881} # ac_fn_c_check_header_compile 1882 1883# ac_fn_c_try_link LINENO 1884# ----------------------- 1885# Try to link conftest.$ac_ext, and return whether this succeeded. 1886ac_fn_c_try_link () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 rm -f conftest.$ac_objext conftest$ac_exeext 1890 if { { ac_try="$ac_link" 1891case "(($ac_try" in 1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1893 *) ac_try_echo=$ac_try;; 1894esac 1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1896$as_echo "$ac_try_echo"; } >&5 1897 (eval "$ac_link") 2>conftest.err 1898 ac_status=$? 1899 if test -s conftest.err; then 1900 grep -v '^ *+' conftest.err >conftest.er1 1901 cat conftest.er1 >&5 1902 mv -f conftest.er1 conftest.err 1903 fi 1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1905 test $ac_status = 0; } && { 1906 test -z "$ac_c_werror_flag" || 1907 test ! -s conftest.err 1908 } && test -s conftest$ac_exeext && { 1909 test "$cross_compiling" = yes || 1910 $as_test_x conftest$ac_exeext 1911 }; then : 1912 ac_retval=0 1913else 1914 $as_echo "$as_me: failed program was:" >&5 1915sed 's/^/| /' conftest.$ac_ext >&5 1916 1917 ac_retval=1 1918fi 1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1921 # interfere with the next link command; also delete a directory that is 1922 # left behind by Apple's compiler. We do this before executing the actions. 1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 as_fn_set_status $ac_retval 1926 1927} # ac_fn_c_try_link 1928 1929# ac_fn_c_check_func LINENO FUNC VAR 1930# ---------------------------------- 1931# Tests whether FUNC exists, setting the cache variable VAR accordingly 1932ac_fn_c_check_func () 1933{ 1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1936$as_echo_n "checking for $2... " >&6; } 1937if eval \${$3+:} false; then : 1938 $as_echo_n "(cached) " >&6 1939else 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1944#define $2 innocuous_$2 1945 1946/* System header to define __stub macros and hopefully few prototypes, 1947 which can conflict with char $2 (); below. 1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1949 <limits.h> exists even on freestanding compilers. */ 1950 1951#ifdef __STDC__ 1952# include <limits.h> 1953#else 1954# include <assert.h> 1955#endif 1956 1957#undef $2 1958 1959/* Override any GCC internal prototype to avoid an error. 1960 Use char because int might match the return type of a GCC 1961 builtin and then its argument prototype would still apply. */ 1962#ifdef __cplusplus 1963extern "C" 1964#endif 1965char $2 (); 1966/* The GNU C library defines this for functions which it implements 1967 to always fail with ENOSYS. Some functions are actually named 1968 something starting with __ and the normal name is an alias. */ 1969#if defined __stub_$2 || defined __stub___$2 1970choke me 1971#endif 1972 1973int 1974main () 1975{ 1976return $2 (); 1977 ; 1978 return 0; 1979} 1980_ACEOF 1981if ac_fn_c_try_link "$LINENO"; then : 1982 eval "$3=yes" 1983else 1984 eval "$3=no" 1985fi 1986rm -f core conftest.err conftest.$ac_objext \ 1987 conftest$ac_exeext conftest.$ac_ext 1988fi 1989eval ac_res=\$$3 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1991$as_echo "$ac_res" >&6; } 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1993 1994} # ac_fn_c_check_func 1995 1996# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1997# --------------------------------------------- 1998# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1999# accordingly. 2000ac_fn_c_check_decl () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 as_decl_name=`echo $2|sed 's/ *(.*//'` 2004 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2006$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2007if eval \${$3+:} false; then : 2008 $as_echo_n "(cached) " >&6 2009else 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013int 2014main () 2015{ 2016#ifndef $as_decl_name 2017#ifdef __cplusplus 2018 (void) $as_decl_use; 2019#else 2020 (void) $as_decl_name; 2021#endif 2022#endif 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO"; then : 2029 eval "$3=yes" 2030else 2031 eval "$3=no" 2032fi 2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2034fi 2035eval ac_res=\$$3 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2037$as_echo "$ac_res" >&6; } 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2039 2040} # ac_fn_c_check_decl 2041 2042# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2043# ---------------------------------------------------- 2044# Tries to find if the field MEMBER exists in type AGGR, after including 2045# INCLUDES, setting cache variable VAR accordingly. 2046ac_fn_c_check_member () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2050$as_echo_n "checking for $2.$3... " >&6; } 2051if eval \${$4+:} false; then : 2052 $as_echo_n "(cached) " >&6 2053else 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$5 2057int 2058main () 2059{ 2060static $2 ac_aggr; 2061if (ac_aggr.$3) 2062return 0; 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 eval "$4=yes" 2069else 2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071/* end confdefs.h. */ 2072$5 2073int 2074main () 2075{ 2076static $2 ac_aggr; 2077if (sizeof ac_aggr.$3) 2078return 0; 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 eval "$4=yes" 2085else 2086 eval "$4=no" 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089fi 2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091fi 2092eval ac_res=\$$4 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2096 2097} # ac_fn_c_check_member 2098 2099# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2100# ------------------------------------------- 2101# Tests whether TYPE exists after having included INCLUDES, setting cache 2102# variable VAR accordingly. 2103ac_fn_c_check_type () 2104{ 2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2107$as_echo_n "checking for $2... " >&6; } 2108if eval \${$3+:} false; then : 2109 $as_echo_n "(cached) " >&6 2110else 2111 eval "$3=no" 2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114$4 2115int 2116main () 2117{ 2118if (sizeof ($2)) 2119 return 0; 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124if ac_fn_c_try_compile "$LINENO"; then : 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127$4 2128int 2129main () 2130{ 2131if (sizeof (($2))) 2132 return 0; 2133 ; 2134 return 0; 2135} 2136_ACEOF 2137if ac_fn_c_try_compile "$LINENO"; then : 2138 2139else 2140 eval "$3=yes" 2141fi 2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2143fi 2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2145fi 2146eval ac_res=\$$3 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2148$as_echo "$ac_res" >&6; } 2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2150 2151} # ac_fn_c_check_type 2152cat >config.log <<_ACEOF 2153This file contains any messages produced by compilers while 2154running configure, to aid debugging if configure makes a mistake. 2155 2156It was created by libICE $as_me 1.0.9, which was 2157generated by GNU Autoconf 2.68. Invocation command line was 2158 2159 $ $0 $@ 2160 2161_ACEOF 2162exec 5>>config.log 2163{ 2164cat <<_ASUNAME 2165## --------- ## 2166## Platform. ## 2167## --------- ## 2168 2169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2170uname -m = `(uname -m) 2>/dev/null || echo unknown` 2171uname -r = `(uname -r) 2>/dev/null || echo unknown` 2172uname -s = `(uname -s) 2>/dev/null || echo unknown` 2173uname -v = `(uname -v) 2>/dev/null || echo unknown` 2174 2175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2177 2178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2181/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2185 2186_ASUNAME 2187 2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2189for as_dir in $PATH 2190do 2191 IFS=$as_save_IFS 2192 test -z "$as_dir" && as_dir=. 2193 $as_echo "PATH: $as_dir" 2194 done 2195IFS=$as_save_IFS 2196 2197} >&5 2198 2199cat >&5 <<_ACEOF 2200 2201 2202## ----------- ## 2203## Core tests. ## 2204## ----------- ## 2205 2206_ACEOF 2207 2208 2209# Keep a trace of the command line. 2210# Strip out --no-create and --no-recursion so they do not pile up. 2211# Strip out --silent because we don't want to record it for future runs. 2212# Also quote any args containing shell meta-characters. 2213# Make two passes to allow for proper duplicate-argument suppression. 2214ac_configure_args= 2215ac_configure_args0= 2216ac_configure_args1= 2217ac_must_keep_next=false 2218for ac_pass in 1 2 2219do 2220 for ac_arg 2221 do 2222 case $ac_arg in 2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2225 | -silent | --silent | --silen | --sile | --sil) 2226 continue ;; 2227 *\'*) 2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2229 esac 2230 case $ac_pass in 2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2232 2) 2233 as_fn_append ac_configure_args1 " '$ac_arg'" 2234 if test $ac_must_keep_next = true; then 2235 ac_must_keep_next=false # Got value, back to normal. 2236 else 2237 case $ac_arg in 2238 *=* | --config-cache | -C | -disable-* | --disable-* \ 2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2241 | -with-* | --with-* | -without-* | --without-* | --x) 2242 case "$ac_configure_args0 " in 2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2244 esac 2245 ;; 2246 -* ) ac_must_keep_next=true ;; 2247 esac 2248 fi 2249 as_fn_append ac_configure_args " '$ac_arg'" 2250 ;; 2251 esac 2252 done 2253done 2254{ ac_configure_args0=; unset ac_configure_args0;} 2255{ ac_configure_args1=; unset ac_configure_args1;} 2256 2257# When interrupted or exit'd, cleanup temporary files, and complete 2258# config.log. We remove comments because anyway the quotes in there 2259# would cause problems or look ugly. 2260# WARNING: Use '\'' to represent an apostrophe within the trap. 2261# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2262trap 'exit_status=$? 2263 # Save into config.log some information that might help in debugging. 2264 { 2265 echo 2266 2267 $as_echo "## ---------------- ## 2268## Cache variables. ## 2269## ---------------- ##" 2270 echo 2271 # The following way of writing the cache mishandles newlines in values, 2272( 2273 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2274 eval ac_val=\$$ac_var 2275 case $ac_val in #( 2276 *${as_nl}*) 2277 case $ac_var in #( 2278 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2279$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2280 esac 2281 case $ac_var in #( 2282 _ | IFS | as_nl) ;; #( 2283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2284 *) { eval $ac_var=; unset $ac_var;} ;; 2285 esac ;; 2286 esac 2287 done 2288 (set) 2>&1 | 2289 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2290 *${as_nl}ac_space=\ *) 2291 sed -n \ 2292 "s/'\''/'\''\\\\'\'''\''/g; 2293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2294 ;; #( 2295 *) 2296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2297 ;; 2298 esac | 2299 sort 2300) 2301 echo 2302 2303 $as_echo "## ----------------- ## 2304## Output variables. ## 2305## ----------------- ##" 2306 echo 2307 for ac_var in $ac_subst_vars 2308 do 2309 eval ac_val=\$$ac_var 2310 case $ac_val in 2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2312 esac 2313 $as_echo "$ac_var='\''$ac_val'\''" 2314 done | sort 2315 echo 2316 2317 if test -n "$ac_subst_files"; then 2318 $as_echo "## ------------------- ## 2319## File substitutions. ## 2320## ------------------- ##" 2321 echo 2322 for ac_var in $ac_subst_files 2323 do 2324 eval ac_val=\$$ac_var 2325 case $ac_val in 2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2327 esac 2328 $as_echo "$ac_var='\''$ac_val'\''" 2329 done | sort 2330 echo 2331 fi 2332 2333 if test -s confdefs.h; then 2334 $as_echo "## ----------- ## 2335## confdefs.h. ## 2336## ----------- ##" 2337 echo 2338 cat confdefs.h 2339 echo 2340 fi 2341 test "$ac_signal" != 0 && 2342 $as_echo "$as_me: caught signal $ac_signal" 2343 $as_echo "$as_me: exit $exit_status" 2344 } >&5 2345 rm -f core *.core core.conftest.* && 2346 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2347 exit $exit_status 2348' 0 2349for ac_signal in 1 2 13 15; do 2350 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2351done 2352ac_signal=0 2353 2354# confdefs.h avoids OS command line length limits that DEFS can exceed. 2355rm -f -r conftest* confdefs.h 2356 2357$as_echo "/* confdefs.h */" > confdefs.h 2358 2359# Predefined preprocessor variables. 2360 2361cat >>confdefs.h <<_ACEOF 2362#define PACKAGE_NAME "$PACKAGE_NAME" 2363_ACEOF 2364 2365cat >>confdefs.h <<_ACEOF 2366#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2367_ACEOF 2368 2369cat >>confdefs.h <<_ACEOF 2370#define PACKAGE_VERSION "$PACKAGE_VERSION" 2371_ACEOF 2372 2373cat >>confdefs.h <<_ACEOF 2374#define PACKAGE_STRING "$PACKAGE_STRING" 2375_ACEOF 2376 2377cat >>confdefs.h <<_ACEOF 2378#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2379_ACEOF 2380 2381cat >>confdefs.h <<_ACEOF 2382#define PACKAGE_URL "$PACKAGE_URL" 2383_ACEOF 2384 2385 2386# Let the site file select an alternate cache file if it wants to. 2387# Prefer an explicitly selected file to automatically selected ones. 2388ac_site_file1=NONE 2389ac_site_file2=NONE 2390if test -n "$CONFIG_SITE"; then 2391 # We do not want a PATH search for config.site. 2392 case $CONFIG_SITE in #(( 2393 -*) ac_site_file1=./$CONFIG_SITE;; 2394 */*) ac_site_file1=$CONFIG_SITE;; 2395 *) ac_site_file1=./$CONFIG_SITE;; 2396 esac 2397elif test "x$prefix" != xNONE; then 2398 ac_site_file1=$prefix/share/config.site 2399 ac_site_file2=$prefix/etc/config.site 2400else 2401 ac_site_file1=$ac_default_prefix/share/config.site 2402 ac_site_file2=$ac_default_prefix/etc/config.site 2403fi 2404for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2405do 2406 test "x$ac_site_file" = xNONE && continue 2407 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2409$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2410 sed 's/^/| /' "$ac_site_file" >&5 2411 . "$ac_site_file" \ 2412 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2414as_fn_error $? "failed to load site script $ac_site_file 2415See \`config.log' for more details" "$LINENO" 5; } 2416 fi 2417done 2418 2419if test -r "$cache_file"; then 2420 # Some versions of bash will fail to source /dev/null (special files 2421 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2422 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2424$as_echo "$as_me: loading cache $cache_file" >&6;} 2425 case $cache_file in 2426 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2427 *) . "./$cache_file";; 2428 esac 2429 fi 2430else 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2432$as_echo "$as_me: creating cache $cache_file" >&6;} 2433 >$cache_file 2434fi 2435 2436# Check that the precious variables saved in the cache have kept the same 2437# value. 2438ac_cache_corrupted=false 2439for ac_var in $ac_precious_vars; do 2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2441 eval ac_new_set=\$ac_env_${ac_var}_set 2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2443 eval ac_new_val=\$ac_env_${ac_var}_value 2444 case $ac_old_set,$ac_new_set in 2445 set,) 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2447$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2448 ac_cache_corrupted=: ;; 2449 ,set) 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2451$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2452 ac_cache_corrupted=: ;; 2453 ,);; 2454 *) 2455 if test "x$ac_old_val" != "x$ac_new_val"; then 2456 # differences in whitespace do not lead to failure. 2457 ac_old_val_w=`echo x $ac_old_val` 2458 ac_new_val_w=`echo x $ac_new_val` 2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2461$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2462 ac_cache_corrupted=: 2463 else 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2465$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2466 eval $ac_var=\$ac_old_val 2467 fi 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2469$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2471$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2472 fi;; 2473 esac 2474 # Pass precious variables to config.status. 2475 if test "$ac_new_set" = set; then 2476 case $ac_new_val in 2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2478 *) ac_arg=$ac_var=$ac_new_val ;; 2479 esac 2480 case " $ac_configure_args " in 2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2483 esac 2484 fi 2485done 2486if $ac_cache_corrupted; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2490$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2491 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2492fi 2493## -------------------- ## 2494## Main body of script. ## 2495## -------------------- ## 2496 2497ac_ext=c 2498ac_cpp='$CPP $CPPFLAGS' 2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2501ac_compiler_gnu=$ac_cv_c_compiler_gnu 2502 2503 2504 2505ac_config_headers="$ac_config_headers config.h" 2506 2507 2508# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2509# Must be called before any macros that run the compiler (like 2510# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 2511# expand $ac_aux_dir to an absolute path 2512am_aux_dir=`cd $ac_aux_dir && pwd` 2513 2514ac_ext=c 2515ac_cpp='$CPP $CPPFLAGS' 2516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2518ac_compiler_gnu=$ac_cv_c_compiler_gnu 2519if test -n "$ac_tool_prefix"; then 2520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2521set dummy ${ac_tool_prefix}gcc; ac_word=$2 2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2523$as_echo_n "checking for $ac_word... " >&6; } 2524if ${ac_cv_prog_CC+:} false; then : 2525 $as_echo_n "(cached) " >&6 2526else 2527 if test -n "$CC"; then 2528 ac_cv_prog_CC="$CC" # Let the user override the test. 2529else 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2537 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2539 break 2 2540 fi 2541done 2542 done 2543IFS=$as_save_IFS 2544 2545fi 2546fi 2547CC=$ac_cv_prog_CC 2548if test -n "$CC"; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2550$as_echo "$CC" >&6; } 2551else 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2553$as_echo "no" >&6; } 2554fi 2555 2556 2557fi 2558if test -z "$ac_cv_prog_CC"; then 2559 ac_ct_CC=$CC 2560 # Extract the first word of "gcc", so it can be a program name with args. 2561set dummy gcc; ac_word=$2 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2563$as_echo_n "checking for $ac_word... " >&6; } 2564if ${ac_cv_prog_ac_ct_CC+:} false; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 if test -n "$ac_ct_CC"; then 2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2569else 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2577 ac_cv_prog_ac_ct_CC="gcc" 2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2579 break 2 2580 fi 2581done 2582 done 2583IFS=$as_save_IFS 2584 2585fi 2586fi 2587ac_ct_CC=$ac_cv_prog_ac_ct_CC 2588if test -n "$ac_ct_CC"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2590$as_echo "$ac_ct_CC" >&6; } 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594fi 2595 2596 if test "x$ac_ct_CC" = x; then 2597 CC="" 2598 else 2599 case $cross_compiling:$ac_tool_warned in 2600yes:) 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2603ac_tool_warned=yes ;; 2604esac 2605 CC=$ac_ct_CC 2606 fi 2607else 2608 CC="$ac_cv_prog_CC" 2609fi 2610 2611if test -z "$CC"; then 2612 if test -n "$ac_tool_prefix"; then 2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2614set dummy ${ac_tool_prefix}cc; ac_word=$2 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2616$as_echo_n "checking for $ac_word... " >&6; } 2617if ${ac_cv_prog_CC+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619else 2620 if test -n "$CC"; then 2621 ac_cv_prog_CC="$CC" # Let the user override the test. 2622else 2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_exec_ext in '' $ac_executable_extensions; do 2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2630 ac_cv_prog_CC="${ac_tool_prefix}cc" 2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2632 break 2 2633 fi 2634done 2635 done 2636IFS=$as_save_IFS 2637 2638fi 2639fi 2640CC=$ac_cv_prog_CC 2641if test -n "$CC"; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2643$as_echo "$CC" >&6; } 2644else 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2646$as_echo "no" >&6; } 2647fi 2648 2649 2650 fi 2651fi 2652if test -z "$CC"; then 2653 # Extract the first word of "cc", so it can be a program name with args. 2654set dummy cc; ac_word=$2 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2656$as_echo_n "checking for $ac_word... " >&6; } 2657if ${ac_cv_prog_CC+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 if test -n "$CC"; then 2661 ac_cv_prog_CC="$CC" # Let the user override the test. 2662else 2663 ac_prog_rejected=no 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2672 ac_prog_rejected=yes 2673 continue 2674 fi 2675 ac_cv_prog_CC="cc" 2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2677 break 2 2678 fi 2679done 2680 done 2681IFS=$as_save_IFS 2682 2683if test $ac_prog_rejected = yes; then 2684 # We found a bogon in the path, so make sure we never use it. 2685 set dummy $ac_cv_prog_CC 2686 shift 2687 if test $# != 0; then 2688 # We chose a different compiler from the bogus one. 2689 # However, it has the same basename, so the bogon will be chosen 2690 # first if we set CC to just the basename; use the full file name. 2691 shift 2692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2693 fi 2694fi 2695fi 2696fi 2697CC=$ac_cv_prog_CC 2698if test -n "$CC"; then 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2700$as_echo "$CC" >&6; } 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704fi 2705 2706 2707fi 2708if test -z "$CC"; then 2709 if test -n "$ac_tool_prefix"; then 2710 for ac_prog in cl.exe 2711 do 2712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2713set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2715$as_echo_n "checking for $ac_word... " >&6; } 2716if ${ac_cv_prog_CC+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718else 2719 if test -n "$CC"; then 2720 ac_cv_prog_CC="$CC" # Let the user override the test. 2721else 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733done 2734 done 2735IFS=$as_save_IFS 2736 2737fi 2738fi 2739CC=$ac_cv_prog_CC 2740if test -n "$CC"; then 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2742$as_echo "$CC" >&6; } 2743else 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2745$as_echo "no" >&6; } 2746fi 2747 2748 2749 test -n "$CC" && break 2750 done 2751fi 2752if test -z "$CC"; then 2753 ac_ct_CC=$CC 2754 for ac_prog in cl.exe 2755do 2756 # Extract the first word of "$ac_prog", so it can be a program name with args. 2757set dummy $ac_prog; ac_word=$2 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2759$as_echo_n "checking for $ac_word... " >&6; } 2760if ${ac_cv_prog_ac_ct_CC+:} false; then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 if test -n "$ac_ct_CC"; then 2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2765else 2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767for as_dir in $PATH 2768do 2769 IFS=$as_save_IFS 2770 test -z "$as_dir" && as_dir=. 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2773 ac_cv_prog_ac_ct_CC="$ac_prog" 2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777done 2778 done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783ac_ct_CC=$ac_cv_prog_ac_ct_CC 2784if test -n "$ac_ct_CC"; then 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2786$as_echo "$ac_ct_CC" >&6; } 2787else 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789$as_echo "no" >&6; } 2790fi 2791 2792 2793 test -n "$ac_ct_CC" && break 2794done 2795 2796 if test "x$ac_ct_CC" = x; then 2797 CC="" 2798 else 2799 case $cross_compiling:$ac_tool_warned in 2800yes:) 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2803ac_tool_warned=yes ;; 2804esac 2805 CC=$ac_ct_CC 2806 fi 2807fi 2808 2809fi 2810 2811 2812test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2814as_fn_error $? "no acceptable C compiler found in \$PATH 2815See \`config.log' for more details" "$LINENO" 5; } 2816 2817# Provide some information about the compiler. 2818$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2819set X $ac_compile 2820ac_compiler=$2 2821for ac_option in --version -v -V -qversion; do 2822 { { ac_try="$ac_compiler $ac_option >&5" 2823case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826esac 2827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2828$as_echo "$ac_try_echo"; } >&5 2829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2830 ac_status=$? 2831 if test -s conftest.err; then 2832 sed '10a\ 2833... rest of stderr output deleted ... 2834 10q' conftest.err >conftest.er1 2835 cat conftest.er1 >&5 2836 fi 2837 rm -f conftest.er1 conftest.err 2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2839 test $ac_status = 0; } 2840done 2841 2842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2843/* end confdefs.h. */ 2844 2845int 2846main () 2847{ 2848 2849 ; 2850 return 0; 2851} 2852_ACEOF 2853ac_clean_files_save=$ac_clean_files 2854ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2855# Try to create an executable without -o first, disregard a.out. 2856# It will help us diagnose broken compilers, and finding out an intuition 2857# of exeext. 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2859$as_echo_n "checking whether the C compiler works... " >&6; } 2860ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2861 2862# The possible output files: 2863ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2864 2865ac_rmfiles= 2866for ac_file in $ac_files 2867do 2868 case $ac_file in 2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2870 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2871 esac 2872done 2873rm -f $ac_rmfiles 2874 2875if { { ac_try="$ac_link_default" 2876case "(($ac_try" in 2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2878 *) ac_try_echo=$ac_try;; 2879esac 2880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2881$as_echo "$ac_try_echo"; } >&5 2882 (eval "$ac_link_default") 2>&5 2883 ac_status=$? 2884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2885 test $ac_status = 0; }; then : 2886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2887# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2888# in a Makefile. We should not override ac_cv_exeext if it was cached, 2889# so that the user can short-circuit this test for compilers unknown to 2890# Autoconf. 2891for ac_file in $ac_files '' 2892do 2893 test -f "$ac_file" || continue 2894 case $ac_file in 2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2896 ;; 2897 [ab].out ) 2898 # We found the default executable, but exeext='' is most 2899 # certainly right. 2900 break;; 2901 *.* ) 2902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2903 then :; else 2904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2905 fi 2906 # We set ac_cv_exeext here because the later test for it is not 2907 # safe: cross compilers may not add the suffix if given an `-o' 2908 # argument, so we may need to know it at that point already. 2909 # Even if this section looks crufty: it has the advantage of 2910 # actually working. 2911 break;; 2912 * ) 2913 break;; 2914 esac 2915done 2916test "$ac_cv_exeext" = no && ac_cv_exeext= 2917 2918else 2919 ac_file='' 2920fi 2921if test -z "$ac_file"; then : 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2923$as_echo "no" >&6; } 2924$as_echo "$as_me: failed program was:" >&5 2925sed 's/^/| /' conftest.$ac_ext >&5 2926 2927{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2929as_fn_error 77 "C compiler cannot create executables 2930See \`config.log' for more details" "$LINENO" 5; } 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2933$as_echo "yes" >&6; } 2934fi 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2936$as_echo_n "checking for C compiler default output file name... " >&6; } 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2938$as_echo "$ac_file" >&6; } 2939ac_exeext=$ac_cv_exeext 2940 2941rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2942ac_clean_files=$ac_clean_files_save 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2944$as_echo_n "checking for suffix of executables... " >&6; } 2945if { { ac_try="$ac_link" 2946case "(($ac_try" in 2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2948 *) ac_try_echo=$ac_try;; 2949esac 2950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2951$as_echo "$ac_try_echo"; } >&5 2952 (eval "$ac_link") 2>&5 2953 ac_status=$? 2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2955 test $ac_status = 0; }; then : 2956 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2957# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2958# work properly (i.e., refer to `conftest.exe'), while it won't with 2959# `rm'. 2960for ac_file in conftest.exe conftest conftest.*; do 2961 test -f "$ac_file" || continue 2962 case $ac_file in 2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2965 break;; 2966 * ) break;; 2967 esac 2968done 2969else 2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2972as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2973See \`config.log' for more details" "$LINENO" 5; } 2974fi 2975rm -f conftest conftest$ac_cv_exeext 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2977$as_echo "$ac_cv_exeext" >&6; } 2978 2979rm -f conftest.$ac_ext 2980EXEEXT=$ac_cv_exeext 2981ac_exeext=$EXEEXT 2982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2983/* end confdefs.h. */ 2984#include <stdio.h> 2985int 2986main () 2987{ 2988FILE *f = fopen ("conftest.out", "w"); 2989 return ferror (f) || fclose (f) != 0; 2990 2991 ; 2992 return 0; 2993} 2994_ACEOF 2995ac_clean_files="$ac_clean_files conftest.out" 2996# Check that the compiler produces executables we can run. If not, either 2997# the compiler is broken, or we cross compile. 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2999$as_echo_n "checking whether we are cross compiling... " >&6; } 3000if test "$cross_compiling" != yes; then 3001 { { ac_try="$ac_link" 3002case "(($ac_try" in 3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3004 *) ac_try_echo=$ac_try;; 3005esac 3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3007$as_echo "$ac_try_echo"; } >&5 3008 (eval "$ac_link") 2>&5 3009 ac_status=$? 3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3011 test $ac_status = 0; } 3012 if { ac_try='./conftest$ac_cv_exeext' 3013 { { case "(($ac_try" in 3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3015 *) ac_try_echo=$ac_try;; 3016esac 3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3018$as_echo "$ac_try_echo"; } >&5 3019 (eval "$ac_try") 2>&5 3020 ac_status=$? 3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3022 test $ac_status = 0; }; }; then 3023 cross_compiling=no 3024 else 3025 if test "$cross_compiling" = maybe; then 3026 cross_compiling=yes 3027 else 3028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3030as_fn_error $? "cannot run C compiled programs. 3031If you meant to cross compile, use \`--host'. 3032See \`config.log' for more details" "$LINENO" 5; } 3033 fi 3034 fi 3035fi 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3037$as_echo "$cross_compiling" >&6; } 3038 3039rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3040ac_clean_files=$ac_clean_files_save 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3042$as_echo_n "checking for suffix of object files... " >&6; } 3043if ${ac_cv_objext+:} false; then : 3044 $as_echo_n "(cached) " >&6 3045else 3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3047/* end confdefs.h. */ 3048 3049int 3050main () 3051{ 3052 3053 ; 3054 return 0; 3055} 3056_ACEOF 3057rm -f conftest.o conftest.obj 3058if { { ac_try="$ac_compile" 3059case "(($ac_try" in 3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3061 *) ac_try_echo=$ac_try;; 3062esac 3063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3064$as_echo "$ac_try_echo"; } >&5 3065 (eval "$ac_compile") 2>&5 3066 ac_status=$? 3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3068 test $ac_status = 0; }; then : 3069 for ac_file in conftest.o conftest.obj conftest.*; do 3070 test -f "$ac_file" || continue; 3071 case $ac_file in 3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3073 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3074 break;; 3075 esac 3076done 3077else 3078 $as_echo "$as_me: failed program was:" >&5 3079sed 's/^/| /' conftest.$ac_ext >&5 3080 3081{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3083as_fn_error $? "cannot compute suffix of object files: cannot compile 3084See \`config.log' for more details" "$LINENO" 5; } 3085fi 3086rm -f conftest.$ac_cv_objext conftest.$ac_ext 3087fi 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3089$as_echo "$ac_cv_objext" >&6; } 3090OBJEXT=$ac_cv_objext 3091ac_objext=$OBJEXT 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3093$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3094if ${ac_cv_c_compiler_gnu+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3098/* end confdefs.h. */ 3099 3100int 3101main () 3102{ 3103#ifndef __GNUC__ 3104 choke me 3105#endif 3106 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111if ac_fn_c_try_compile "$LINENO"; then : 3112 ac_compiler_gnu=yes 3113else 3114 ac_compiler_gnu=no 3115fi 3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3117ac_cv_c_compiler_gnu=$ac_compiler_gnu 3118 3119fi 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3121$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3122if test $ac_compiler_gnu = yes; then 3123 GCC=yes 3124else 3125 GCC= 3126fi 3127ac_test_CFLAGS=${CFLAGS+set} 3128ac_save_CFLAGS=$CFLAGS 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3130$as_echo_n "checking whether $CC accepts -g... " >&6; } 3131if ${ac_cv_prog_cc_g+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 ac_save_c_werror_flag=$ac_c_werror_flag 3135 ac_c_werror_flag=yes 3136 ac_cv_prog_cc_g=no 3137 CFLAGS="-g" 3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3139/* end confdefs.h. */ 3140 3141int 3142main () 3143{ 3144 3145 ; 3146 return 0; 3147} 3148_ACEOF 3149if ac_fn_c_try_compile "$LINENO"; then : 3150 ac_cv_prog_cc_g=yes 3151else 3152 CFLAGS="" 3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3154/* end confdefs.h. */ 3155 3156int 3157main () 3158{ 3159 3160 ; 3161 return 0; 3162} 3163_ACEOF 3164if ac_fn_c_try_compile "$LINENO"; then : 3165 3166else 3167 ac_c_werror_flag=$ac_save_c_werror_flag 3168 CFLAGS="-g" 3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3170/* end confdefs.h. */ 3171 3172int 3173main () 3174{ 3175 3176 ; 3177 return 0; 3178} 3179_ACEOF 3180if ac_fn_c_try_compile "$LINENO"; then : 3181 ac_cv_prog_cc_g=yes 3182fi 3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3184fi 3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3186fi 3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3188 ac_c_werror_flag=$ac_save_c_werror_flag 3189fi 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3191$as_echo "$ac_cv_prog_cc_g" >&6; } 3192if test "$ac_test_CFLAGS" = set; then 3193 CFLAGS=$ac_save_CFLAGS 3194elif test $ac_cv_prog_cc_g = yes; then 3195 if test "$GCC" = yes; then 3196 CFLAGS="-g -O2" 3197 else 3198 CFLAGS="-g" 3199 fi 3200else 3201 if test "$GCC" = yes; then 3202 CFLAGS="-O2" 3203 else 3204 CFLAGS= 3205 fi 3206fi 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3208$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3209if ${ac_cv_prog_cc_c89+:} false; then : 3210 $as_echo_n "(cached) " >&6 3211else 3212 ac_cv_prog_cc_c89=no 3213ac_save_CC=$CC 3214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3215/* end confdefs.h. */ 3216#include <stdarg.h> 3217#include <stdio.h> 3218#include <sys/types.h> 3219#include <sys/stat.h> 3220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3221struct buf { int x; }; 3222FILE * (*rcsopen) (struct buf *, struct stat *, int); 3223static char *e (p, i) 3224 char **p; 3225 int i; 3226{ 3227 return p[i]; 3228} 3229static char *f (char * (*g) (char **, int), char **p, ...) 3230{ 3231 char *s; 3232 va_list v; 3233 va_start (v,p); 3234 s = g (p, va_arg (v,int)); 3235 va_end (v); 3236 return s; 3237} 3238 3239/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3240 function prototypes and stuff, but not '\xHH' hex character constants. 3241 These don't provoke an error unfortunately, instead are silently treated 3242 as 'x'. The following induces an error, until -std is added to get 3243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3244 array size at least. It's necessary to write '\x00'==0 to get something 3245 that's true only with -std. */ 3246int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3247 3248/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3249 inside strings and character constants. */ 3250#define FOO(x) 'x' 3251int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3252 3253int test (int i, double x); 3254struct s1 {int (*f) (int a);}; 3255struct s2 {int (*f) (double a);}; 3256int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3257int argc; 3258char **argv; 3259int 3260main () 3261{ 3262return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3269do 3270 CC="$ac_save_CC $ac_arg" 3271 if ac_fn_c_try_compile "$LINENO"; then : 3272 ac_cv_prog_cc_c89=$ac_arg 3273fi 3274rm -f core conftest.err conftest.$ac_objext 3275 test "x$ac_cv_prog_cc_c89" != "xno" && break 3276done 3277rm -f conftest.$ac_ext 3278CC=$ac_save_CC 3279 3280fi 3281# AC_CACHE_VAL 3282case "x$ac_cv_prog_cc_c89" in 3283 x) 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3285$as_echo "none needed" >&6; } ;; 3286 xno) 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3288$as_echo "unsupported" >&6; } ;; 3289 *) 3290 CC="$CC $ac_cv_prog_cc_c89" 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3292$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3293esac 3294if test "x$ac_cv_prog_cc_c89" != xno; then : 3295 3296fi 3297 3298ac_ext=c 3299ac_cpp='$CPP $CPPFLAGS' 3300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3302ac_compiler_gnu=$ac_cv_c_compiler_gnu 3303 3304ac_ext=c 3305ac_cpp='$CPP $CPPFLAGS' 3306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3308ac_compiler_gnu=$ac_cv_c_compiler_gnu 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3310$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3311if ${am_cv_prog_cc_c_o+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316 3317int 3318main () 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325 # Make sure it works both with $CC and with simple cc. 3326 # Following AC_PROG_CC_C_O, we do the test twice because some 3327 # compilers refuse to overwrite an existing .o file with -o, 3328 # though they will create one. 3329 am_cv_prog_cc_c_o=yes 3330 for am_i in 1 2; do 3331 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3332 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3333 ac_status=$? 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } \ 3336 && test -f conftest2.$ac_objext; then 3337 : OK 3338 else 3339 am_cv_prog_cc_c_o=no 3340 break 3341 fi 3342 done 3343 rm -f core conftest* 3344 unset am_i 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3347$as_echo "$am_cv_prog_cc_c_o" >&6; } 3348if test "$am_cv_prog_cc_c_o" != yes; then 3349 # Losing compiler, so override with the script. 3350 # FIXME: It is wrong to rewrite CC. 3351 # But if we don't then we get into trouble of one sort or another. 3352 # A longer-term fix would be to have automake use am__CC in this case, 3353 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3354 CC="$am_aux_dir/compile $CC" 3355fi 3356ac_ext=c 3357ac_cpp='$CPP $CPPFLAGS' 3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3360ac_compiler_gnu=$ac_cv_c_compiler_gnu 3361 3362 3363 3364ac_ext=c 3365ac_cpp='$CPP $CPPFLAGS' 3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3368ac_compiler_gnu=$ac_cv_c_compiler_gnu 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3370$as_echo_n "checking how to run the C preprocessor... " >&6; } 3371# On Suns, sometimes $CPP names a directory. 3372if test -n "$CPP" && test -d "$CPP"; then 3373 CPP= 3374fi 3375if test -z "$CPP"; then 3376 if ${ac_cv_prog_CPP+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 # Double quotes because CPP needs to be expanded 3380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3381 do 3382 ac_preproc_ok=false 3383for ac_c_preproc_warn_flag in '' yes 3384do 3385 # Use a header file that comes with gcc, so configuring glibc 3386 # with a fresh cross-compiler works. 3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3388 # <limits.h> exists even on freestanding compilers. 3389 # On the NeXT, cc -E runs the code through the compiler's parser, 3390 # not just through cpp. "Syntax error" is here to catch this case. 3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392/* end confdefs.h. */ 3393#ifdef __STDC__ 3394# include <limits.h> 3395#else 3396# include <assert.h> 3397#endif 3398 Syntax error 3399_ACEOF 3400if ac_fn_c_try_cpp "$LINENO"; then : 3401 3402else 3403 # Broken: fails on valid input. 3404continue 3405fi 3406rm -f conftest.err conftest.i conftest.$ac_ext 3407 3408 # OK, works on sane cases. Now check whether nonexistent headers 3409 # can be detected and how. 3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3411/* end confdefs.h. */ 3412#include <ac_nonexistent.h> 3413_ACEOF 3414if ac_fn_c_try_cpp "$LINENO"; then : 3415 # Broken: success on invalid input. 3416continue 3417else 3418 # Passes both tests. 3419ac_preproc_ok=: 3420break 3421fi 3422rm -f conftest.err conftest.i conftest.$ac_ext 3423 3424done 3425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3426rm -f conftest.i conftest.err conftest.$ac_ext 3427if $ac_preproc_ok; then : 3428 break 3429fi 3430 3431 done 3432 ac_cv_prog_CPP=$CPP 3433 3434fi 3435 CPP=$ac_cv_prog_CPP 3436else 3437 ac_cv_prog_CPP=$CPP 3438fi 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3440$as_echo "$CPP" >&6; } 3441ac_preproc_ok=false 3442for ac_c_preproc_warn_flag in '' yes 3443do 3444 # Use a header file that comes with gcc, so configuring glibc 3445 # with a fresh cross-compiler works. 3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3447 # <limits.h> exists even on freestanding compilers. 3448 # On the NeXT, cc -E runs the code through the compiler's parser, 3449 # not just through cpp. "Syntax error" is here to catch this case. 3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451/* end confdefs.h. */ 3452#ifdef __STDC__ 3453# include <limits.h> 3454#else 3455# include <assert.h> 3456#endif 3457 Syntax error 3458_ACEOF 3459if ac_fn_c_try_cpp "$LINENO"; then : 3460 3461else 3462 # Broken: fails on valid input. 3463continue 3464fi 3465rm -f conftest.err conftest.i conftest.$ac_ext 3466 3467 # OK, works on sane cases. Now check whether nonexistent headers 3468 # can be detected and how. 3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3470/* end confdefs.h. */ 3471#include <ac_nonexistent.h> 3472_ACEOF 3473if ac_fn_c_try_cpp "$LINENO"; then : 3474 # Broken: success on invalid input. 3475continue 3476else 3477 # Passes both tests. 3478ac_preproc_ok=: 3479break 3480fi 3481rm -f conftest.err conftest.i conftest.$ac_ext 3482 3483done 3484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3485rm -f conftest.i conftest.err conftest.$ac_ext 3486if $ac_preproc_ok; then : 3487 3488else 3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3491as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3492See \`config.log' for more details" "$LINENO" 5; } 3493fi 3494 3495ac_ext=c 3496ac_cpp='$CPP $CPPFLAGS' 3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3499ac_compiler_gnu=$ac_cv_c_compiler_gnu 3500 3501 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3503$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3504if ${ac_cv_path_GREP+:} false; then : 3505 $as_echo_n "(cached) " >&6 3506else 3507 if test -z "$GREP"; then 3508 ac_path_GREP_found=false 3509 # Loop through the user's path and test for each of PROGNAME-LIST 3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3512do 3513 IFS=$as_save_IFS 3514 test -z "$as_dir" && as_dir=. 3515 for ac_prog in grep ggrep; do 3516 for ac_exec_ext in '' $ac_executable_extensions; do 3517 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3518 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3519# Check for GNU ac_path_GREP and select it if it is found. 3520 # Check for GNU $ac_path_GREP 3521case `"$ac_path_GREP" --version 2>&1` in 3522*GNU*) 3523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3524*) 3525 ac_count=0 3526 $as_echo_n 0123456789 >"conftest.in" 3527 while : 3528 do 3529 cat "conftest.in" "conftest.in" >"conftest.tmp" 3530 mv "conftest.tmp" "conftest.in" 3531 cp "conftest.in" "conftest.nl" 3532 $as_echo 'GREP' >> "conftest.nl" 3533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3535 as_fn_arith $ac_count + 1 && ac_count=$as_val 3536 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3537 # Best one so far, save it but keep looking for a better one 3538 ac_cv_path_GREP="$ac_path_GREP" 3539 ac_path_GREP_max=$ac_count 3540 fi 3541 # 10*(2^10) chars as input seems more than enough 3542 test $ac_count -gt 10 && break 3543 done 3544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3545esac 3546 3547 $ac_path_GREP_found && break 3 3548 done 3549 done 3550 done 3551IFS=$as_save_IFS 3552 if test -z "$ac_cv_path_GREP"; then 3553 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3554 fi 3555else 3556 ac_cv_path_GREP=$GREP 3557fi 3558 3559fi 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3561$as_echo "$ac_cv_path_GREP" >&6; } 3562 GREP="$ac_cv_path_GREP" 3563 3564 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3566$as_echo_n "checking for egrep... " >&6; } 3567if ${ac_cv_path_EGREP+:} false; then : 3568 $as_echo_n "(cached) " >&6 3569else 3570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3571 then ac_cv_path_EGREP="$GREP -E" 3572 else 3573 if test -z "$EGREP"; then 3574 ac_path_EGREP_found=false 3575 # Loop through the user's path and test for each of PROGNAME-LIST 3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3578do 3579 IFS=$as_save_IFS 3580 test -z "$as_dir" && as_dir=. 3581 for ac_prog in egrep; do 3582 for ac_exec_ext in '' $ac_executable_extensions; do 3583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3584 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3585# Check for GNU ac_path_EGREP and select it if it is found. 3586 # Check for GNU $ac_path_EGREP 3587case `"$ac_path_EGREP" --version 2>&1` in 3588*GNU*) 3589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3590*) 3591 ac_count=0 3592 $as_echo_n 0123456789 >"conftest.in" 3593 while : 3594 do 3595 cat "conftest.in" "conftest.in" >"conftest.tmp" 3596 mv "conftest.tmp" "conftest.in" 3597 cp "conftest.in" "conftest.nl" 3598 $as_echo 'EGREP' >> "conftest.nl" 3599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3601 as_fn_arith $ac_count + 1 && ac_count=$as_val 3602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3603 # Best one so far, save it but keep looking for a better one 3604 ac_cv_path_EGREP="$ac_path_EGREP" 3605 ac_path_EGREP_max=$ac_count 3606 fi 3607 # 10*(2^10) chars as input seems more than enough 3608 test $ac_count -gt 10 && break 3609 done 3610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3611esac 3612 3613 $ac_path_EGREP_found && break 3 3614 done 3615 done 3616 done 3617IFS=$as_save_IFS 3618 if test -z "$ac_cv_path_EGREP"; then 3619 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3620 fi 3621else 3622 ac_cv_path_EGREP=$EGREP 3623fi 3624 3625 fi 3626fi 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3628$as_echo "$ac_cv_path_EGREP" >&6; } 3629 EGREP="$ac_cv_path_EGREP" 3630 3631 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3633$as_echo_n "checking for ANSI C header files... " >&6; } 3634if ${ac_cv_header_stdc+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639#include <stdlib.h> 3640#include <stdarg.h> 3641#include <string.h> 3642#include <float.h> 3643 3644int 3645main () 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_cv_header_stdc=yes 3654else 3655 ac_cv_header_stdc=no 3656fi 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658 3659if test $ac_cv_header_stdc = yes; then 3660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663#include <string.h> 3664 3665_ACEOF 3666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3667 $EGREP "memchr" >/dev/null 2>&1; then : 3668 3669else 3670 ac_cv_header_stdc=no 3671fi 3672rm -f conftest* 3673 3674fi 3675 3676if test $ac_cv_header_stdc = yes; then 3677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680#include <stdlib.h> 3681 3682_ACEOF 3683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3684 $EGREP "free" >/dev/null 2>&1; then : 3685 3686else 3687 ac_cv_header_stdc=no 3688fi 3689rm -f conftest* 3690 3691fi 3692 3693if test $ac_cv_header_stdc = yes; then 3694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3695 if test "$cross_compiling" = yes; then : 3696 : 3697else 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700#include <ctype.h> 3701#include <stdlib.h> 3702#if ((' ' & 0x0FF) == 0x020) 3703# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3704# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3705#else 3706# define ISLOWER(c) \ 3707 (('a' <= (c) && (c) <= 'i') \ 3708 || ('j' <= (c) && (c) <= 'r') \ 3709 || ('s' <= (c) && (c) <= 'z')) 3710# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3711#endif 3712 3713#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3714int 3715main () 3716{ 3717 int i; 3718 for (i = 0; i < 256; i++) 3719 if (XOR (islower (i), ISLOWER (i)) 3720 || toupper (i) != TOUPPER (i)) 3721 return 2; 3722 return 0; 3723} 3724_ACEOF 3725if ac_fn_c_try_run "$LINENO"; then : 3726 3727else 3728 ac_cv_header_stdc=no 3729fi 3730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3731 conftest.$ac_objext conftest.beam conftest.$ac_ext 3732fi 3733 3734fi 3735fi 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3737$as_echo "$ac_cv_header_stdc" >&6; } 3738if test $ac_cv_header_stdc = yes; then 3739 3740$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3741 3742fi 3743 3744# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3745for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3746 inttypes.h stdint.h unistd.h 3747do : 3748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3749ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3750" 3751if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3752 cat >>confdefs.h <<_ACEOF 3753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3754_ACEOF 3755 3756fi 3757 3758done 3759 3760 3761 3762 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3763if test "x$ac_cv_header_minix_config_h" = xyes; then : 3764 MINIX=yes 3765else 3766 MINIX= 3767fi 3768 3769 3770 if test "$MINIX" = yes; then 3771 3772$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3773 3774 3775$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3776 3777 3778$as_echo "#define _MINIX 1" >>confdefs.h 3779 3780 fi 3781 3782 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3784$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3785if ${ac_cv_safe_to_define___extensions__+:} false; then : 3786 $as_echo_n "(cached) " >&6 3787else 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790 3791# define __EXTENSIONS__ 1 3792 $ac_includes_default 3793int 3794main () 3795{ 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801if ac_fn_c_try_compile "$LINENO"; then : 3802 ac_cv_safe_to_define___extensions__=yes 3803else 3804 ac_cv_safe_to_define___extensions__=no 3805fi 3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3807fi 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3809$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3810 test $ac_cv_safe_to_define___extensions__ = yes && 3811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3812 3813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3814 3815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3816 3817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3818 3819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3820 3821 3822 3823# Initialize Automake 3824am__api_version='1.14' 3825 3826ac_aux_dir= 3827for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3828 if test -f "$ac_dir/install-sh"; then 3829 ac_aux_dir=$ac_dir 3830 ac_install_sh="$ac_aux_dir/install-sh -c" 3831 break 3832 elif test -f "$ac_dir/install.sh"; then 3833 ac_aux_dir=$ac_dir 3834 ac_install_sh="$ac_aux_dir/install.sh -c" 3835 break 3836 elif test -f "$ac_dir/shtool"; then 3837 ac_aux_dir=$ac_dir 3838 ac_install_sh="$ac_aux_dir/shtool install -c" 3839 break 3840 fi 3841done 3842if test -z "$ac_aux_dir"; then 3843 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3844fi 3845 3846# These three variables are undocumented and unsupported, 3847# and are intended to be withdrawn in a future Autoconf release. 3848# They can cause serious problems if a builder's source tree is in a directory 3849# whose full name contains unusual characters. 3850ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3851ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3852ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3853 3854 3855# Find a good install program. We prefer a C program (faster), 3856# so one script is as good as another. But avoid the broken or 3857# incompatible versions: 3858# SysV /etc/install, /usr/sbin/install 3859# SunOS /usr/etc/install 3860# IRIX /sbin/install 3861# AIX /bin/install 3862# AmigaOS /C/install, which installs bootblocks on floppy discs 3863# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3864# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3865# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3866# OS/2's system install, which has a completely different semantic 3867# ./install, which can be erroneously created by make from ./install.sh. 3868# Reject install programs that cannot install multiple files. 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3870$as_echo_n "checking for a BSD-compatible install... " >&6; } 3871if test -z "$INSTALL"; then 3872if ${ac_cv_path_install+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3876for as_dir in $PATH 3877do 3878 IFS=$as_save_IFS 3879 test -z "$as_dir" && as_dir=. 3880 # Account for people who put trailing slashes in PATH elements. 3881case $as_dir/ in #(( 3882 ./ | .// | /[cC]/* | \ 3883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3885 /usr/ucb/* ) ;; 3886 *) 3887 # OSF1 and SCO ODT 3.0 have their own names for install. 3888 # Don't use installbsd from OSF since it installs stuff as root 3889 # by default. 3890 for ac_prog in ginstall scoinst install; do 3891 for ac_exec_ext in '' $ac_executable_extensions; do 3892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3893 if test $ac_prog = install && 3894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3895 # AIX install. It has an incompatible calling convention. 3896 : 3897 elif test $ac_prog = install && 3898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3899 # program-specific install script used by HP pwplus--don't use. 3900 : 3901 else 3902 rm -rf conftest.one conftest.two conftest.dir 3903 echo one > conftest.one 3904 echo two > conftest.two 3905 mkdir conftest.dir 3906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3907 test -s conftest.one && test -s conftest.two && 3908 test -s conftest.dir/conftest.one && 3909 test -s conftest.dir/conftest.two 3910 then 3911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3912 break 3 3913 fi 3914 fi 3915 fi 3916 done 3917 done 3918 ;; 3919esac 3920 3921 done 3922IFS=$as_save_IFS 3923 3924rm -rf conftest.one conftest.two conftest.dir 3925 3926fi 3927 if test "${ac_cv_path_install+set}" = set; then 3928 INSTALL=$ac_cv_path_install 3929 else 3930 # As a last resort, use the slow shell script. Don't cache a 3931 # value for INSTALL within a source directory, because that will 3932 # break other packages using the cache if that directory is 3933 # removed, or if the value is a relative name. 3934 INSTALL=$ac_install_sh 3935 fi 3936fi 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3938$as_echo "$INSTALL" >&6; } 3939 3940# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3941# It thinks the first close brace ends the variable substitution. 3942test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3943 3944test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3945 3946test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3947 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3949$as_echo_n "checking whether build environment is sane... " >&6; } 3950# Reject unsafe characters in $srcdir or the absolute working directory 3951# name. Accept space and tab only in the latter. 3952am_lf=' 3953' 3954case `pwd` in 3955 *[\\\"\#\$\&\'\`$am_lf]*) 3956 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3957esac 3958case $srcdir in 3959 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3960 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3961esac 3962 3963# Do 'set' in a subshell so we don't clobber the current shell's 3964# arguments. Must try -L first in case configure is actually a 3965# symlink; some systems play weird games with the mod time of symlinks 3966# (eg FreeBSD returns the mod time of the symlink's containing 3967# directory). 3968if ( 3969 am_has_slept=no 3970 for am_try in 1 2; do 3971 echo "timestamp, slept: $am_has_slept" > conftest.file 3972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3973 if test "$*" = "X"; then 3974 # -L didn't work. 3975 set X `ls -t "$srcdir/configure" conftest.file` 3976 fi 3977 if test "$*" != "X $srcdir/configure conftest.file" \ 3978 && test "$*" != "X conftest.file $srcdir/configure"; then 3979 3980 # If neither matched, then we have a broken ls. This can happen 3981 # if, for instance, CONFIG_SHELL is bash and it inherits a 3982 # broken ls alias from the environment. This has actually 3983 # happened. Such a system could not be considered "sane". 3984 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3985 alias in your environment" "$LINENO" 5 3986 fi 3987 if test "$2" = conftest.file || test $am_try -eq 2; then 3988 break 3989 fi 3990 # Just in case. 3991 sleep 1 3992 am_has_slept=yes 3993 done 3994 test "$2" = conftest.file 3995 ) 3996then 3997 # Ok. 3998 : 3999else 4000 as_fn_error $? "newly created file is older than distributed files! 4001Check your system clock" "$LINENO" 5 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4004$as_echo "yes" >&6; } 4005# If we didn't sleep, we still need to ensure time stamps of config.status and 4006# generated files are strictly newer. 4007am_sleep_pid= 4008if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4009 ( sleep 1 ) & 4010 am_sleep_pid=$! 4011fi 4012 4013rm -f conftest.file 4014 4015test "$program_prefix" != NONE && 4016 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4017# Use a double $ so make ignores it. 4018test "$program_suffix" != NONE && 4019 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4020# Double any \ or $. 4021# By default was `s,x,x', remove it if useless. 4022ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4023program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4024 4025if test x"${MISSING+set}" != xset; then 4026 case $am_aux_dir in 4027 *\ * | *\ *) 4028 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4029 *) 4030 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4031 esac 4032fi 4033# Use eval to expand $SHELL 4034if eval "$MISSING --is-lightweight"; then 4035 am_missing_run="$MISSING " 4036else 4037 am_missing_run= 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4039$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4040fi 4041 4042if test x"${install_sh}" != xset; then 4043 case $am_aux_dir in 4044 *\ * | *\ *) 4045 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4046 *) 4047 install_sh="\${SHELL} $am_aux_dir/install-sh" 4048 esac 4049fi 4050 4051# Installed binaries are usually stripped using 'strip' when the user 4052# run "make install-strip". However 'strip' might not be the right 4053# tool to use in cross-compilation environments, therefore Automake 4054# will honor the 'STRIP' environment variable to overrule this program. 4055if test "$cross_compiling" != no; then 4056 if test -n "$ac_tool_prefix"; then 4057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4058set dummy ${ac_tool_prefix}strip; ac_word=$2 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4060$as_echo_n "checking for $ac_word... " >&6; } 4061if ${ac_cv_prog_STRIP+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 if test -n "$STRIP"; then 4065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4066else 4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4068for as_dir in $PATH 4069do 4070 IFS=$as_save_IFS 4071 test -z "$as_dir" && as_dir=. 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4074 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4076 break 2 4077 fi 4078done 4079 done 4080IFS=$as_save_IFS 4081 4082fi 4083fi 4084STRIP=$ac_cv_prog_STRIP 4085if test -n "$STRIP"; then 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4087$as_echo "$STRIP" >&6; } 4088else 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4090$as_echo "no" >&6; } 4091fi 4092 4093 4094fi 4095if test -z "$ac_cv_prog_STRIP"; then 4096 ac_ct_STRIP=$STRIP 4097 # Extract the first word of "strip", so it can be a program name with args. 4098set dummy strip; ac_word=$2 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4100$as_echo_n "checking for $ac_word... " >&6; } 4101if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if test -n "$ac_ct_STRIP"; then 4105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4106else 4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH 4109do 4110 IFS=$as_save_IFS 4111 test -z "$as_dir" && as_dir=. 4112 for ac_exec_ext in '' $ac_executable_extensions; do 4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4114 ac_cv_prog_ac_ct_STRIP="strip" 4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4116 break 2 4117 fi 4118done 4119 done 4120IFS=$as_save_IFS 4121 4122fi 4123fi 4124ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4125if test -n "$ac_ct_STRIP"; then 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4127$as_echo "$ac_ct_STRIP" >&6; } 4128else 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4130$as_echo "no" >&6; } 4131fi 4132 4133 if test "x$ac_ct_STRIP" = x; then 4134 STRIP=":" 4135 else 4136 case $cross_compiling:$ac_tool_warned in 4137yes:) 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4140ac_tool_warned=yes ;; 4141esac 4142 STRIP=$ac_ct_STRIP 4143 fi 4144else 4145 STRIP="$ac_cv_prog_STRIP" 4146fi 4147 4148fi 4149INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4150 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4152$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4153if test -z "$MKDIR_P"; then 4154 if ${ac_cv_path_mkdir+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4159do 4160 IFS=$as_save_IFS 4161 test -z "$as_dir" && as_dir=. 4162 for ac_prog in mkdir gmkdir; do 4163 for ac_exec_ext in '' $ac_executable_extensions; do 4164 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4165 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4166 'mkdir (GNU coreutils) '* | \ 4167 'mkdir (coreutils) '* | \ 4168 'mkdir (fileutils) '4.1*) 4169 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4170 break 3;; 4171 esac 4172 done 4173 done 4174 done 4175IFS=$as_save_IFS 4176 4177fi 4178 4179 test -d ./--version && rmdir ./--version 4180 if test "${ac_cv_path_mkdir+set}" = set; then 4181 MKDIR_P="$ac_cv_path_mkdir -p" 4182 else 4183 # As a last resort, use the slow shell script. Don't cache a 4184 # value for MKDIR_P within a source directory, because that will 4185 # break other packages using the cache if that directory is 4186 # removed, or if the value is a relative name. 4187 MKDIR_P="$ac_install_sh -d" 4188 fi 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4191$as_echo "$MKDIR_P" >&6; } 4192 4193for ac_prog in gawk mawk nawk awk 4194do 4195 # Extract the first word of "$ac_prog", so it can be a program name with args. 4196set dummy $ac_prog; ac_word=$2 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4198$as_echo_n "checking for $ac_word... " >&6; } 4199if ${ac_cv_prog_AWK+:} false; then : 4200 $as_echo_n "(cached) " >&6 4201else 4202 if test -n "$AWK"; then 4203 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4204else 4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4206for as_dir in $PATH 4207do 4208 IFS=$as_save_IFS 4209 test -z "$as_dir" && as_dir=. 4210 for ac_exec_ext in '' $ac_executable_extensions; do 4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4212 ac_cv_prog_AWK="$ac_prog" 4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4214 break 2 4215 fi 4216done 4217 done 4218IFS=$as_save_IFS 4219 4220fi 4221fi 4222AWK=$ac_cv_prog_AWK 4223if test -n "$AWK"; then 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4225$as_echo "$AWK" >&6; } 4226else 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4228$as_echo "no" >&6; } 4229fi 4230 4231 4232 test -n "$AWK" && break 4233done 4234 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4236$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4237set x ${MAKE-make} 4238ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4239if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4240 $as_echo_n "(cached) " >&6 4241else 4242 cat >conftest.make <<\_ACEOF 4243SHELL = /bin/sh 4244all: 4245 @echo '@@@%%%=$(MAKE)=@@@%%%' 4246_ACEOF 4247# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4248case `${MAKE-make} -f conftest.make 2>/dev/null` in 4249 *@@@%%%=?*=@@@%%%*) 4250 eval ac_cv_prog_make_${ac_make}_set=yes;; 4251 *) 4252 eval ac_cv_prog_make_${ac_make}_set=no;; 4253esac 4254rm -f conftest.make 4255fi 4256if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4258$as_echo "yes" >&6; } 4259 SET_MAKE= 4260else 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4262$as_echo "no" >&6; } 4263 SET_MAKE="MAKE=${MAKE-make}" 4264fi 4265 4266rm -rf .tst 2>/dev/null 4267mkdir .tst 2>/dev/null 4268if test -d .tst; then 4269 am__leading_dot=. 4270else 4271 am__leading_dot=_ 4272fi 4273rmdir .tst 2>/dev/null 4274 4275DEPDIR="${am__leading_dot}deps" 4276 4277ac_config_commands="$ac_config_commands depfiles" 4278 4279 4280am_make=${MAKE-make} 4281cat > confinc << 'END' 4282am__doit: 4283 @echo this is the am__doit target 4284.PHONY: am__doit 4285END 4286# If we don't find an include directive, just comment out the code. 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4288$as_echo_n "checking for style of include used by $am_make... " >&6; } 4289am__include="#" 4290am__quote= 4291_am_result=none 4292# First try GNU make style include. 4293echo "include confinc" > confmf 4294# Ignore all kinds of additional output from 'make'. 4295case `$am_make -s -f confmf 2> /dev/null` in #( 4296*the\ am__doit\ target*) 4297 am__include=include 4298 am__quote= 4299 _am_result=GNU 4300 ;; 4301esac 4302# Now try BSD make style include. 4303if test "$am__include" = "#"; then 4304 echo '.include "confinc"' > confmf 4305 case `$am_make -s -f confmf 2> /dev/null` in #( 4306 *the\ am__doit\ target*) 4307 am__include=.include 4308 am__quote="\"" 4309 _am_result=BSD 4310 ;; 4311 esac 4312fi 4313 4314 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4316$as_echo "$_am_result" >&6; } 4317rm -f confinc confmf 4318 4319# Check whether --enable-dependency-tracking was given. 4320if test "${enable_dependency_tracking+set}" = set; then : 4321 enableval=$enable_dependency_tracking; 4322fi 4323 4324if test "x$enable_dependency_tracking" != xno; then 4325 am_depcomp="$ac_aux_dir/depcomp" 4326 AMDEPBACKSLASH='\' 4327 am__nodep='_no' 4328fi 4329 if test "x$enable_dependency_tracking" != xno; then 4330 AMDEP_TRUE= 4331 AMDEP_FALSE='#' 4332else 4333 AMDEP_TRUE='#' 4334 AMDEP_FALSE= 4335fi 4336 4337 4338# Check whether --enable-silent-rules was given. 4339if test "${enable_silent_rules+set}" = set; then : 4340 enableval=$enable_silent_rules; 4341fi 4342 4343case $enable_silent_rules in # ((( 4344 yes) AM_DEFAULT_VERBOSITY=0;; 4345 no) AM_DEFAULT_VERBOSITY=1;; 4346 *) AM_DEFAULT_VERBOSITY=1;; 4347esac 4348am_make=${MAKE-make} 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4350$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4351if ${am_cv_make_support_nested_variables+:} false; then : 4352 $as_echo_n "(cached) " >&6 4353else 4354 if $as_echo 'TRUE=$(BAR$(V)) 4355BAR0=false 4356BAR1=true 4357V=1 4358am__doit: 4359 @$(TRUE) 4360.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4361 am_cv_make_support_nested_variables=yes 4362else 4363 am_cv_make_support_nested_variables=no 4364fi 4365fi 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4367$as_echo "$am_cv_make_support_nested_variables" >&6; } 4368if test $am_cv_make_support_nested_variables = yes; then 4369 AM_V='$(V)' 4370 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4371else 4372 AM_V=$AM_DEFAULT_VERBOSITY 4373 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4374fi 4375AM_BACKSLASH='\' 4376 4377if test "`cd $srcdir && pwd`" != "`pwd`"; then 4378 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4379 # is not polluted with repeated "-I." 4380 am__isrc=' -I$(srcdir)' 4381 # test to see if srcdir already configured 4382 if test -f $srcdir/config.status; then 4383 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4384 fi 4385fi 4386 4387# test whether we have cygpath 4388if test -z "$CYGPATH_W"; then 4389 if (cygpath --version) >/dev/null 2>/dev/null; then 4390 CYGPATH_W='cygpath -w' 4391 else 4392 CYGPATH_W=echo 4393 fi 4394fi 4395 4396 4397# Define the identity of the package. 4398 PACKAGE='libICE' 4399 VERSION='1.0.9' 4400 4401 4402cat >>confdefs.h <<_ACEOF 4403#define PACKAGE "$PACKAGE" 4404_ACEOF 4405 4406 4407cat >>confdefs.h <<_ACEOF 4408#define VERSION "$VERSION" 4409_ACEOF 4410 4411# Some tools Automake needs. 4412 4413ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4414 4415 4416AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4417 4418 4419AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4420 4421 4422AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4423 4424 4425MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4426 4427# For better backward compatibility. To be removed once Automake 1.9.x 4428# dies out for good. For more background, see: 4429# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4430# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4431mkdir_p='$(MKDIR_P)' 4432 4433# We need awk for the "check" target. The system "awk" is bad on 4434# some platforms. 4435# Always define AMTAR for backward compatibility. Yes, it's still used 4436# in the wild :-( We should find a proper way to deprecate it ... 4437AMTAR='$${TAR-tar}' 4438 4439 4440# We'll loop over all known methods to create a tar archive until one works. 4441_am_tools='gnutar pax cpio none' 4442 4443am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4444 4445 4446 4447 4448 4449depcc="$CC" am_compiler_list= 4450 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4452$as_echo_n "checking dependency style of $depcc... " >&6; } 4453if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4457 # We make a subdir and do the tests there. Otherwise we can end up 4458 # making bogus files that we don't know about and never remove. For 4459 # instance it was reported that on HP-UX the gcc test will end up 4460 # making a dummy file named 'D' -- because '-MD' means "put the output 4461 # in D". 4462 rm -rf conftest.dir 4463 mkdir conftest.dir 4464 # Copy depcomp to subdir because otherwise we won't find it if we're 4465 # using a relative directory. 4466 cp "$am_depcomp" conftest.dir 4467 cd conftest.dir 4468 # We will build objects and dependencies in a subdirectory because 4469 # it helps to detect inapplicable dependency modes. For instance 4470 # both Tru64's cc and ICC support -MD to output dependencies as a 4471 # side effect of compilation, but ICC will put the dependencies in 4472 # the current directory while Tru64 will put them in the object 4473 # directory. 4474 mkdir sub 4475 4476 am_cv_CC_dependencies_compiler_type=none 4477 if test "$am_compiler_list" = ""; then 4478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4479 fi 4480 am__universal=false 4481 case " $depcc " in #( 4482 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4483 esac 4484 4485 for depmode in $am_compiler_list; do 4486 # Setup a source with many dependencies, because some compilers 4487 # like to wrap large dependency lists on column 80 (with \), and 4488 # we should not choose a depcomp mode which is confused by this. 4489 # 4490 # We need to recreate these files for each test, as the compiler may 4491 # overwrite some of them when testing with obscure command lines. 4492 # This happens at least with the AIX C compiler. 4493 : > sub/conftest.c 4494 for i in 1 2 3 4 5 6; do 4495 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4496 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4497 # Solaris 10 /bin/sh. 4498 echo '/* dummy */' > sub/conftst$i.h 4499 done 4500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4501 4502 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4503 # mode. It turns out that the SunPro C++ compiler does not properly 4504 # handle '-M -o', and we need to detect this. Also, some Intel 4505 # versions had trouble with output in subdirs. 4506 am__obj=sub/conftest.${OBJEXT-o} 4507 am__minus_obj="-o $am__obj" 4508 case $depmode in 4509 gcc) 4510 # This depmode causes a compiler race in universal mode. 4511 test "$am__universal" = false || continue 4512 ;; 4513 nosideeffect) 4514 # After this tag, mechanisms are not by side-effect, so they'll 4515 # only be used when explicitly requested. 4516 if test "x$enable_dependency_tracking" = xyes; then 4517 continue 4518 else 4519 break 4520 fi 4521 ;; 4522 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4523 # This compiler won't grok '-c -o', but also, the minuso test has 4524 # not run yet. These depmodes are late enough in the game, and 4525 # so weak that their functioning should not be impacted. 4526 am__obj=conftest.${OBJEXT-o} 4527 am__minus_obj= 4528 ;; 4529 none) break ;; 4530 esac 4531 if depmode=$depmode \ 4532 source=sub/conftest.c object=$am__obj \ 4533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4535 >/dev/null 2>conftest.err && 4536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4540 # icc doesn't choke on unknown options, it will just issue warnings 4541 # or remarks (even with -Werror). So we grep stderr for any message 4542 # that says an option was ignored or not supported. 4543 # When given -MP, icc 7.0 and 7.1 complain thusly: 4544 # icc: Command line warning: ignoring option '-M'; no argument required 4545 # The diagnosis changed in icc 8.0: 4546 # icc: Command line remark: option '-MP' not supported 4547 if (grep 'ignoring option' conftest.err || 4548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4549 am_cv_CC_dependencies_compiler_type=$depmode 4550 break 4551 fi 4552 fi 4553 done 4554 4555 cd .. 4556 rm -rf conftest.dir 4557else 4558 am_cv_CC_dependencies_compiler_type=none 4559fi 4560 4561fi 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4563$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4564CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4565 4566 if 4567 test "x$enable_dependency_tracking" != xno \ 4568 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4569 am__fastdepCC_TRUE= 4570 am__fastdepCC_FALSE='#' 4571else 4572 am__fastdepCC_TRUE='#' 4573 am__fastdepCC_FALSE= 4574fi 4575 4576 4577 4578# POSIX will say in a future version that running "rm -f" with no argument 4579# is OK; and we want to be able to make that assumption in our Makefile 4580# recipes. So use an aggressive probe to check that the usage we want is 4581# actually supported "in the wild" to an acceptable degree. 4582# See automake bug#10828. 4583# To make any issue more visible, cause the running configure to be aborted 4584# by default if the 'rm' program in use doesn't match our expectations; the 4585# user can still override this though. 4586if rm -f && rm -fr && rm -rf; then : OK; else 4587 cat >&2 <<'END' 4588Oops! 4589 4590Your 'rm' program seems unable to run without file operands specified 4591on the command line, even when the '-f' option is present. This is contrary 4592to the behaviour of most rm programs out there, and not conforming with 4593the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4594 4595Please tell bug-automake@gnu.org about your system, including the value 4596of your $PATH and any error possibly output before this message. This 4597can help us improve future automake versions. 4598 4599END 4600 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4601 echo 'Configuration will proceed anyway, since you have set the' >&2 4602 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4603 echo >&2 4604 else 4605 cat >&2 <<'END' 4606Aborting the configuration process, to ensure you take notice of the issue. 4607 4608You can download and install GNU coreutils to get an 'rm' implementation 4609that behaves properly: <http://www.gnu.org/software/coreutils/>. 4610 4611If you want to complete the configuration process using your problematic 4612'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4613to "yes", and re-run configure. 4614 4615END 4616 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4617 fi 4618fi 4619 4620# Initialize libtool 4621case `pwd` in 4622 *\ * | *\ *) 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4624$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4625esac 4626 4627 4628 4629macro_version='2.4.2' 4630macro_revision='1.3337' 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644ltmain="$ac_aux_dir/ltmain.sh" 4645 4646# Make sure we can run config.sub. 4647$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4648 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4649 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4651$as_echo_n "checking build system type... " >&6; } 4652if ${ac_cv_build+:} false; then : 4653 $as_echo_n "(cached) " >&6 4654else 4655 ac_build_alias=$build_alias 4656test "x$ac_build_alias" = x && 4657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4658test "x$ac_build_alias" = x && 4659 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4660ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4662 4663fi 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4665$as_echo "$ac_cv_build" >&6; } 4666case $ac_cv_build in 4667*-*-*) ;; 4668*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4669esac 4670build=$ac_cv_build 4671ac_save_IFS=$IFS; IFS='-' 4672set x $ac_cv_build 4673shift 4674build_cpu=$1 4675build_vendor=$2 4676shift; shift 4677# Remember, the first character of IFS is used to create $*, 4678# except with old shells: 4679build_os=$* 4680IFS=$ac_save_IFS 4681case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4682 4683 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4685$as_echo_n "checking host system type... " >&6; } 4686if ${ac_cv_host+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 if test "x$host_alias" = x; then 4690 ac_cv_host=$ac_cv_build 4691else 4692 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4694fi 4695 4696fi 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4698$as_echo "$ac_cv_host" >&6; } 4699case $ac_cv_host in 4700*-*-*) ;; 4701*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4702esac 4703host=$ac_cv_host 4704ac_save_IFS=$IFS; IFS='-' 4705set x $ac_cv_host 4706shift 4707host_cpu=$1 4708host_vendor=$2 4709shift; shift 4710# Remember, the first character of IFS is used to create $*, 4711# except with old shells: 4712host_os=$* 4713IFS=$ac_save_IFS 4714case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4715 4716 4717# Backslashify metacharacters that are still active within 4718# double-quoted strings. 4719sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4720 4721# Same as above, but do not quote variable references. 4722double_quote_subst='s/\(["`\\]\)/\\\1/g' 4723 4724# Sed substitution to delay expansion of an escaped shell variable in a 4725# double_quote_subst'ed string. 4726delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4727 4728# Sed substitution to delay expansion of an escaped single quote. 4729delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4730 4731# Sed substitution to avoid accidental globbing in evaled expressions 4732no_glob_subst='s/\*/\\\*/g' 4733 4734ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4735ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4736ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4737 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4739$as_echo_n "checking how to print strings... " >&6; } 4740# Test print first, because it will be a builtin if present. 4741if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4742 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4743 ECHO='print -r --' 4744elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4745 ECHO='printf %s\n' 4746else 4747 # Use this function as a fallback that always works. 4748 func_fallback_echo () 4749 { 4750 eval 'cat <<_LTECHO_EOF 4751$1 4752_LTECHO_EOF' 4753 } 4754 ECHO='func_fallback_echo' 4755fi 4756 4757# func_echo_all arg... 4758# Invoke $ECHO with all args, space-separated. 4759func_echo_all () 4760{ 4761 $ECHO "" 4762} 4763 4764case "$ECHO" in 4765 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4766$as_echo "printf" >&6; } ;; 4767 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4768$as_echo "print -r" >&6; } ;; 4769 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4770$as_echo "cat" >&6; } ;; 4771esac 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4787$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4788if ${ac_cv_path_SED+:} false; then : 4789 $as_echo_n "(cached) " >&6 4790else 4791 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4792 for ac_i in 1 2 3 4 5 6 7; do 4793 ac_script="$ac_script$as_nl$ac_script" 4794 done 4795 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4796 { ac_script=; unset ac_script;} 4797 if test -z "$SED"; then 4798 ac_path_SED_found=false 4799 # Loop through the user's path and test for each of PROGNAME-LIST 4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4801for as_dir in $PATH 4802do 4803 IFS=$as_save_IFS 4804 test -z "$as_dir" && as_dir=. 4805 for ac_prog in sed gsed; do 4806 for ac_exec_ext in '' $ac_executable_extensions; do 4807 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4808 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4809# Check for GNU ac_path_SED and select it if it is found. 4810 # Check for GNU $ac_path_SED 4811case `"$ac_path_SED" --version 2>&1` in 4812*GNU*) 4813 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4814*) 4815 ac_count=0 4816 $as_echo_n 0123456789 >"conftest.in" 4817 while : 4818 do 4819 cat "conftest.in" "conftest.in" >"conftest.tmp" 4820 mv "conftest.tmp" "conftest.in" 4821 cp "conftest.in" "conftest.nl" 4822 $as_echo '' >> "conftest.nl" 4823 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4825 as_fn_arith $ac_count + 1 && ac_count=$as_val 4826 if test $ac_count -gt ${ac_path_SED_max-0}; then 4827 # Best one so far, save it but keep looking for a better one 4828 ac_cv_path_SED="$ac_path_SED" 4829 ac_path_SED_max=$ac_count 4830 fi 4831 # 10*(2^10) chars as input seems more than enough 4832 test $ac_count -gt 10 && break 4833 done 4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4835esac 4836 4837 $ac_path_SED_found && break 3 4838 done 4839 done 4840 done 4841IFS=$as_save_IFS 4842 if test -z "$ac_cv_path_SED"; then 4843 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4844 fi 4845else 4846 ac_cv_path_SED=$SED 4847fi 4848 4849fi 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4851$as_echo "$ac_cv_path_SED" >&6; } 4852 SED="$ac_cv_path_SED" 4853 rm -f conftest.sed 4854 4855test -z "$SED" && SED=sed 4856Xsed="$SED -e 1s/^X//" 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4869$as_echo_n "checking for fgrep... " >&6; } 4870if ${ac_cv_path_FGREP+:} false; then : 4871 $as_echo_n "(cached) " >&6 4872else 4873 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4874 then ac_cv_path_FGREP="$GREP -F" 4875 else 4876 if test -z "$FGREP"; then 4877 ac_path_FGREP_found=false 4878 # Loop through the user's path and test for each of PROGNAME-LIST 4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4881do 4882 IFS=$as_save_IFS 4883 test -z "$as_dir" && as_dir=. 4884 for ac_prog in fgrep; do 4885 for ac_exec_ext in '' $ac_executable_extensions; do 4886 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4887 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4888# Check for GNU ac_path_FGREP and select it if it is found. 4889 # Check for GNU $ac_path_FGREP 4890case `"$ac_path_FGREP" --version 2>&1` in 4891*GNU*) 4892 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4893*) 4894 ac_count=0 4895 $as_echo_n 0123456789 >"conftest.in" 4896 while : 4897 do 4898 cat "conftest.in" "conftest.in" >"conftest.tmp" 4899 mv "conftest.tmp" "conftest.in" 4900 cp "conftest.in" "conftest.nl" 4901 $as_echo 'FGREP' >> "conftest.nl" 4902 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4904 as_fn_arith $ac_count + 1 && ac_count=$as_val 4905 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4906 # Best one so far, save it but keep looking for a better one 4907 ac_cv_path_FGREP="$ac_path_FGREP" 4908 ac_path_FGREP_max=$ac_count 4909 fi 4910 # 10*(2^10) chars as input seems more than enough 4911 test $ac_count -gt 10 && break 4912 done 4913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4914esac 4915 4916 $ac_path_FGREP_found && break 3 4917 done 4918 done 4919 done 4920IFS=$as_save_IFS 4921 if test -z "$ac_cv_path_FGREP"; then 4922 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4923 fi 4924else 4925 ac_cv_path_FGREP=$FGREP 4926fi 4927 4928 fi 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4931$as_echo "$ac_cv_path_FGREP" >&6; } 4932 FGREP="$ac_cv_path_FGREP" 4933 4934 4935test -z "$GREP" && GREP=grep 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955# Check whether --with-gnu-ld was given. 4956if test "${with_gnu_ld+set}" = set; then : 4957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4958else 4959 with_gnu_ld=no 4960fi 4961 4962ac_prog=ld 4963if test "$GCC" = yes; then 4964 # Check if gcc -print-prog-name=ld gives a path. 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4966$as_echo_n "checking for ld used by $CC... " >&6; } 4967 case $host in 4968 *-*-mingw*) 4969 # gcc leaves a trailing carriage return which upsets mingw 4970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4971 *) 4972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4973 esac 4974 case $ac_prog in 4975 # Accept absolute paths. 4976 [\\/]* | ?:[\\/]*) 4977 re_direlt='/[^/][^/]*/\.\./' 4978 # Canonicalize the pathname of ld 4979 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4980 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4981 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4982 done 4983 test -z "$LD" && LD="$ac_prog" 4984 ;; 4985 "") 4986 # If it fails, then pretend we aren't using GCC. 4987 ac_prog=ld 4988 ;; 4989 *) 4990 # If it is relative, then search for the first ld in PATH. 4991 with_gnu_ld=unknown 4992 ;; 4993 esac 4994elif test "$with_gnu_ld" = yes; then 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4996$as_echo_n "checking for GNU ld... " >&6; } 4997else 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4999$as_echo_n "checking for non-GNU ld... " >&6; } 5000fi 5001if ${lt_cv_path_LD+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test -z "$LD"; then 5005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5006 for ac_dir in $PATH; do 5007 IFS="$lt_save_ifs" 5008 test -z "$ac_dir" && ac_dir=. 5009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5010 lt_cv_path_LD="$ac_dir/$ac_prog" 5011 # Check to see if the program is GNU ld. I'd rather use --version, 5012 # but apparently some variants of GNU ld only accept -v. 5013 # Break only if it was the GNU/non-GNU ld that we prefer. 5014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5015 *GNU* | *'with BFD'*) 5016 test "$with_gnu_ld" != no && break 5017 ;; 5018 *) 5019 test "$with_gnu_ld" != yes && break 5020 ;; 5021 esac 5022 fi 5023 done 5024 IFS="$lt_save_ifs" 5025else 5026 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5027fi 5028fi 5029 5030LD="$lt_cv_path_LD" 5031if test -n "$LD"; then 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5033$as_echo "$LD" >&6; } 5034else 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5036$as_echo "no" >&6; } 5037fi 5038test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5040$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5041if ${lt_cv_prog_gnu_ld+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5045case `$LD -v 2>&1 </dev/null` in 5046*GNU* | *'with BFD'*) 5047 lt_cv_prog_gnu_ld=yes 5048 ;; 5049*) 5050 lt_cv_prog_gnu_ld=no 5051 ;; 5052esac 5053fi 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5055$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5056with_gnu_ld=$lt_cv_prog_gnu_ld 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5067$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5068if ${lt_cv_path_NM+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 if test -n "$NM"; then 5072 # Let the user override the test. 5073 lt_cv_path_NM="$NM" 5074else 5075 lt_nm_to_check="${ac_tool_prefix}nm" 5076 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5077 lt_nm_to_check="$lt_nm_to_check nm" 5078 fi 5079 for lt_tmp_nm in $lt_nm_to_check; do 5080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5081 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5082 IFS="$lt_save_ifs" 5083 test -z "$ac_dir" && ac_dir=. 5084 tmp_nm="$ac_dir/$lt_tmp_nm" 5085 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5086 # Check to see if the nm accepts a BSD-compat flag. 5087 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5088 # nm: unknown option "B" ignored 5089 # Tru64's nm complains that /dev/null is an invalid object file 5090 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5091 */dev/null* | *'Invalid file or object type'*) 5092 lt_cv_path_NM="$tmp_nm -B" 5093 break 5094 ;; 5095 *) 5096 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5097 */dev/null*) 5098 lt_cv_path_NM="$tmp_nm -p" 5099 break 5100 ;; 5101 *) 5102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5103 continue # so that we can try to find one that supports BSD flags 5104 ;; 5105 esac 5106 ;; 5107 esac 5108 fi 5109 done 5110 IFS="$lt_save_ifs" 5111 done 5112 : ${lt_cv_path_NM=no} 5113fi 5114fi 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5116$as_echo "$lt_cv_path_NM" >&6; } 5117if test "$lt_cv_path_NM" != "no"; then 5118 NM="$lt_cv_path_NM" 5119else 5120 # Didn't find any BSD compatible name lister, look for dumpbin. 5121 if test -n "$DUMPBIN"; then : 5122 # Let the user override the test. 5123 else 5124 if test -n "$ac_tool_prefix"; then 5125 for ac_prog in dumpbin "link -dump" 5126 do 5127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5130$as_echo_n "checking for $ac_word... " >&6; } 5131if ${ac_cv_prog_DUMPBIN+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 if test -n "$DUMPBIN"; then 5135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5136else 5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5138for as_dir in $PATH 5139do 5140 IFS=$as_save_IFS 5141 test -z "$as_dir" && as_dir=. 5142 for ac_exec_ext in '' $ac_executable_extensions; do 5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5146 break 2 5147 fi 5148done 5149 done 5150IFS=$as_save_IFS 5151 5152fi 5153fi 5154DUMPBIN=$ac_cv_prog_DUMPBIN 5155if test -n "$DUMPBIN"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5157$as_echo "$DUMPBIN" >&6; } 5158else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5160$as_echo "no" >&6; } 5161fi 5162 5163 5164 test -n "$DUMPBIN" && break 5165 done 5166fi 5167if test -z "$DUMPBIN"; then 5168 ac_ct_DUMPBIN=$DUMPBIN 5169 for ac_prog in dumpbin "link -dump" 5170do 5171 # Extract the first word of "$ac_prog", so it can be a program name with args. 5172set dummy $ac_prog; ac_word=$2 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5174$as_echo_n "checking for $ac_word... " >&6; } 5175if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5176 $as_echo_n "(cached) " >&6 5177else 5178 if test -n "$ac_ct_DUMPBIN"; then 5179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5180else 5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5190 break 2 5191 fi 5192done 5193 done 5194IFS=$as_save_IFS 5195 5196fi 5197fi 5198ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5199if test -n "$ac_ct_DUMPBIN"; then 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5201$as_echo "$ac_ct_DUMPBIN" >&6; } 5202else 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5204$as_echo "no" >&6; } 5205fi 5206 5207 5208 test -n "$ac_ct_DUMPBIN" && break 5209done 5210 5211 if test "x$ac_ct_DUMPBIN" = x; then 5212 DUMPBIN=":" 5213 else 5214 case $cross_compiling:$ac_tool_warned in 5215yes:) 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5218ac_tool_warned=yes ;; 5219esac 5220 DUMPBIN=$ac_ct_DUMPBIN 5221 fi 5222fi 5223 5224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5225 *COFF*) 5226 DUMPBIN="$DUMPBIN -symbols" 5227 ;; 5228 *) 5229 DUMPBIN=: 5230 ;; 5231 esac 5232 fi 5233 5234 if test "$DUMPBIN" != ":"; then 5235 NM="$DUMPBIN" 5236 fi 5237fi 5238test -z "$NM" && NM=nm 5239 5240 5241 5242 5243 5244 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5246$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5247if ${lt_cv_nm_interface+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249else 5250 lt_cv_nm_interface="BSD nm" 5251 echo "int some_variable = 0;" > conftest.$ac_ext 5252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5253 (eval "$ac_compile" 2>conftest.err) 5254 cat conftest.err >&5 5255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5257 cat conftest.err >&5 5258 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5259 cat conftest.out >&5 5260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5261 lt_cv_nm_interface="MS dumpbin" 5262 fi 5263 rm -f conftest* 5264fi 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5266$as_echo "$lt_cv_nm_interface" >&6; } 5267 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5269$as_echo_n "checking whether ln -s works... " >&6; } 5270LN_S=$as_ln_s 5271if test "$LN_S" = "ln -s"; then 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5273$as_echo "yes" >&6; } 5274else 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5276$as_echo "no, using $LN_S" >&6; } 5277fi 5278 5279# find the maximum length of command line arguments 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5281$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5282if ${lt_cv_sys_max_cmd_len+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 i=0 5286 teststring="ABCD" 5287 5288 case $build_os in 5289 msdosdjgpp*) 5290 # On DJGPP, this test can blow up pretty badly due to problems in libc 5291 # (any single argument exceeding 2000 bytes causes a buffer overrun 5292 # during glob expansion). Even if it were fixed, the result of this 5293 # check would be larger than it should be. 5294 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5295 ;; 5296 5297 gnu*) 5298 # Under GNU Hurd, this test is not required because there is 5299 # no limit to the length of command line arguments. 5300 # Libtool will interpret -1 as no limit whatsoever 5301 lt_cv_sys_max_cmd_len=-1; 5302 ;; 5303 5304 cygwin* | mingw* | cegcc*) 5305 # On Win9x/ME, this test blows up -- it succeeds, but takes 5306 # about 5 minutes as the teststring grows exponentially. 5307 # Worse, since 9x/ME are not pre-emptively multitasking, 5308 # you end up with a "frozen" computer, even though with patience 5309 # the test eventually succeeds (with a max line length of 256k). 5310 # Instead, let's just punt: use the minimum linelength reported by 5311 # all of the supported platforms: 8192 (on NT/2K/XP). 5312 lt_cv_sys_max_cmd_len=8192; 5313 ;; 5314 5315 mint*) 5316 # On MiNT this can take a long time and run out of memory. 5317 lt_cv_sys_max_cmd_len=8192; 5318 ;; 5319 5320 amigaos*) 5321 # On AmigaOS with pdksh, this test takes hours, literally. 5322 # So we just punt and use a minimum line length of 8192. 5323 lt_cv_sys_max_cmd_len=8192; 5324 ;; 5325 5326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5327 # This has been around since 386BSD, at least. Likely further. 5328 if test -x /sbin/sysctl; then 5329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5330 elif test -x /usr/sbin/sysctl; then 5331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5332 else 5333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5334 fi 5335 # And add a safety zone 5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5338 ;; 5339 5340 interix*) 5341 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5342 lt_cv_sys_max_cmd_len=196608 5343 ;; 5344 5345 os2*) 5346 # The test takes a long time on OS/2. 5347 lt_cv_sys_max_cmd_len=8192 5348 ;; 5349 5350 osf*) 5351 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5352 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5353 # nice to cause kernel panics so lets avoid the loop below. 5354 # First set a reasonable default. 5355 lt_cv_sys_max_cmd_len=16384 5356 # 5357 if test -x /sbin/sysconfig; then 5358 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5359 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5360 esac 5361 fi 5362 ;; 5363 sco3.2v5*) 5364 lt_cv_sys_max_cmd_len=102400 5365 ;; 5366 sysv5* | sco5v6* | sysv4.2uw2*) 5367 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5368 if test -n "$kargmax"; then 5369 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5370 else 5371 lt_cv_sys_max_cmd_len=32768 5372 fi 5373 ;; 5374 *) 5375 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5376 if test -n "$lt_cv_sys_max_cmd_len"; then 5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5379 else 5380 # Make teststring a little bigger before we do anything with it. 5381 # a 1K string should be a reasonable start. 5382 for i in 1 2 3 4 5 6 7 8 ; do 5383 teststring=$teststring$teststring 5384 done 5385 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5386 # If test is not a shell built-in, we'll probably end up computing a 5387 # maximum length that is only half of the actual maximum length, but 5388 # we can't tell. 5389 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5390 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5391 test $i != 17 # 1/2 MB should be enough 5392 do 5393 i=`expr $i + 1` 5394 teststring=$teststring$teststring 5395 done 5396 # Only check the string length outside the loop. 5397 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5398 teststring= 5399 # Add a significant safety factor because C++ compilers can tack on 5400 # massive amounts of additional arguments before passing them to the 5401 # linker. It appears as though 1/2 is a usable value. 5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5403 fi 5404 ;; 5405 esac 5406 5407fi 5408 5409if test -n $lt_cv_sys_max_cmd_len ; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5411$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5412else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5414$as_echo "none" >&6; } 5415fi 5416max_cmd_len=$lt_cv_sys_max_cmd_len 5417 5418 5419 5420 5421 5422 5423: ${CP="cp -f"} 5424: ${MV="mv -f"} 5425: ${RM="rm -f"} 5426 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5428$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5429# Try some XSI features 5430xsi_shell=no 5431( _lt_dummy="a/b/c" 5432 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5433 = c,a/b,b/c, \ 5434 && eval 'test $(( 1 + 1 )) -eq 2 \ 5435 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5436 && xsi_shell=yes 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5438$as_echo "$xsi_shell" >&6; } 5439 5440 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5442$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5443lt_shell_append=no 5444( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5445 >/dev/null 2>&1 \ 5446 && lt_shell_append=yes 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5448$as_echo "$lt_shell_append" >&6; } 5449 5450 5451if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5452 lt_unset=unset 5453else 5454 lt_unset=false 5455fi 5456 5457 5458 5459 5460 5461# test EBCDIC or ASCII 5462case `echo X|tr X '\101'` in 5463 A) # ASCII based system 5464 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5465 lt_SP2NL='tr \040 \012' 5466 lt_NL2SP='tr \015\012 \040\040' 5467 ;; 5468 *) # EBCDIC based system 5469 lt_SP2NL='tr \100 \n' 5470 lt_NL2SP='tr \r\n \100\100' 5471 ;; 5472esac 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5483$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5484if ${lt_cv_to_host_file_cmd+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486else 5487 case $host in 5488 *-*-mingw* ) 5489 case $build in 5490 *-*-mingw* ) # actually msys 5491 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5492 ;; 5493 *-*-cygwin* ) 5494 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5495 ;; 5496 * ) # otherwise, assume *nix 5497 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5498 ;; 5499 esac 5500 ;; 5501 *-*-cygwin* ) 5502 case $build in 5503 *-*-mingw* ) # actually msys 5504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5505 ;; 5506 *-*-cygwin* ) 5507 lt_cv_to_host_file_cmd=func_convert_file_noop 5508 ;; 5509 * ) # otherwise, assume *nix 5510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5511 ;; 5512 esac 5513 ;; 5514 * ) # unhandled hosts (and "normal" native builds) 5515 lt_cv_to_host_file_cmd=func_convert_file_noop 5516 ;; 5517esac 5518 5519fi 5520 5521to_host_file_cmd=$lt_cv_to_host_file_cmd 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5523$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5524 5525 5526 5527 5528 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5530$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5531if ${lt_cv_to_tool_file_cmd+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 #assume ordinary cross tools, or native build. 5535lt_cv_to_tool_file_cmd=func_convert_file_noop 5536case $host in 5537 *-*-mingw* ) 5538 case $build in 5539 *-*-mingw* ) # actually msys 5540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5541 ;; 5542 esac 5543 ;; 5544esac 5545 5546fi 5547 5548to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5550$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5551 5552 5553 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5557$as_echo_n "checking for $LD option to reload object files... " >&6; } 5558if ${lt_cv_ld_reload_flag+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 lt_cv_ld_reload_flag='-r' 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5564$as_echo "$lt_cv_ld_reload_flag" >&6; } 5565reload_flag=$lt_cv_ld_reload_flag 5566case $reload_flag in 5567"" | " "*) ;; 5568*) reload_flag=" $reload_flag" ;; 5569esac 5570reload_cmds='$LD$reload_flag -o $output$reload_objs' 5571case $host_os in 5572 cygwin* | mingw* | pw32* | cegcc*) 5573 if test "$GCC" != yes; then 5574 reload_cmds=false 5575 fi 5576 ;; 5577 darwin*) 5578 if test "$GCC" = yes; then 5579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5580 else 5581 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5582 fi 5583 ;; 5584esac 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594if test -n "$ac_tool_prefix"; then 5595 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5596set dummy ${ac_tool_prefix}objdump; ac_word=$2 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5598$as_echo_n "checking for $ac_word... " >&6; } 5599if ${ac_cv_prog_OBJDUMP+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 if test -n "$OBJDUMP"; then 5603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5604else 5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5606for as_dir in $PATH 5607do 5608 IFS=$as_save_IFS 5609 test -z "$as_dir" && as_dir=. 5610 for ac_exec_ext in '' $ac_executable_extensions; do 5611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5612 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5614 break 2 5615 fi 5616done 5617 done 5618IFS=$as_save_IFS 5619 5620fi 5621fi 5622OBJDUMP=$ac_cv_prog_OBJDUMP 5623if test -n "$OBJDUMP"; then 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5625$as_echo "$OBJDUMP" >&6; } 5626else 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5628$as_echo "no" >&6; } 5629fi 5630 5631 5632fi 5633if test -z "$ac_cv_prog_OBJDUMP"; then 5634 ac_ct_OBJDUMP=$OBJDUMP 5635 # Extract the first word of "objdump", so it can be a program name with args. 5636set dummy objdump; ac_word=$2 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5638$as_echo_n "checking for $ac_word... " >&6; } 5639if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 if test -n "$ac_ct_OBJDUMP"; then 5643 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5644else 5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5646for as_dir in $PATH 5647do 5648 IFS=$as_save_IFS 5649 test -z "$as_dir" && as_dir=. 5650 for ac_exec_ext in '' $ac_executable_extensions; do 5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5652 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5654 break 2 5655 fi 5656done 5657 done 5658IFS=$as_save_IFS 5659 5660fi 5661fi 5662ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5663if test -n "$ac_ct_OBJDUMP"; then 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5665$as_echo "$ac_ct_OBJDUMP" >&6; } 5666else 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5668$as_echo "no" >&6; } 5669fi 5670 5671 if test "x$ac_ct_OBJDUMP" = x; then 5672 OBJDUMP="false" 5673 else 5674 case $cross_compiling:$ac_tool_warned in 5675yes:) 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5678ac_tool_warned=yes ;; 5679esac 5680 OBJDUMP=$ac_ct_OBJDUMP 5681 fi 5682else 5683 OBJDUMP="$ac_cv_prog_OBJDUMP" 5684fi 5685 5686test -z "$OBJDUMP" && OBJDUMP=objdump 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5697$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5698if ${lt_cv_deplibs_check_method+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 lt_cv_file_magic_cmd='$MAGIC_CMD' 5702lt_cv_file_magic_test_file= 5703lt_cv_deplibs_check_method='unknown' 5704# Need to set the preceding variable on all platforms that support 5705# interlibrary dependencies. 5706# 'none' -- dependencies not supported. 5707# `unknown' -- same as none, but documents that we really don't know. 5708# 'pass_all' -- all dependencies passed with no checks. 5709# 'test_compile' -- check by making test program. 5710# 'file_magic [[regex]]' -- check by looking for files in library path 5711# which responds to the $file_magic_cmd with a given extended regex. 5712# If you have `file' or equivalent on your system and you're not sure 5713# whether `pass_all' will *always* work, you probably want this one. 5714 5715case $host_os in 5716aix[4-9]*) 5717 lt_cv_deplibs_check_method=pass_all 5718 ;; 5719 5720beos*) 5721 lt_cv_deplibs_check_method=pass_all 5722 ;; 5723 5724bsdi[45]*) 5725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5726 lt_cv_file_magic_cmd='/usr/bin/file -L' 5727 lt_cv_file_magic_test_file=/shlib/libc.so 5728 ;; 5729 5730cygwin*) 5731 # func_win32_libid is a shell function defined in ltmain.sh 5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5733 lt_cv_file_magic_cmd='func_win32_libid' 5734 ;; 5735 5736mingw* | pw32*) 5737 # Base MSYS/MinGW do not provide the 'file' command needed by 5738 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5739 # unless we find 'file', for example because we are cross-compiling. 5740 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5741 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5743 lt_cv_file_magic_cmd='func_win32_libid' 5744 else 5745 # Keep this pattern in sync with the one in func_win32_libid. 5746 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5747 lt_cv_file_magic_cmd='$OBJDUMP -f' 5748 fi 5749 ;; 5750 5751cegcc*) 5752 # use the weaker test based on 'objdump'. See mingw*. 5753 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5754 lt_cv_file_magic_cmd='$OBJDUMP -f' 5755 ;; 5756 5757darwin* | rhapsody*) 5758 lt_cv_deplibs_check_method=pass_all 5759 ;; 5760 5761freebsd* | dragonfly*) 5762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5763 case $host_cpu in 5764 i*86 ) 5765 # Not sure whether the presence of OpenBSD here was a mistake. 5766 # Let's accept both of them until this is cleared up. 5767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5768 lt_cv_file_magic_cmd=/usr/bin/file 5769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5770 ;; 5771 esac 5772 else 5773 lt_cv_deplibs_check_method=pass_all 5774 fi 5775 ;; 5776 5777gnu*) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 5781haiku*) 5782 lt_cv_deplibs_check_method=pass_all 5783 ;; 5784 5785hpux10.20* | hpux11*) 5786 lt_cv_file_magic_cmd=/usr/bin/file 5787 case $host_cpu in 5788 ia64*) 5789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5790 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5791 ;; 5792 hppa*64*) 5793 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]' 5794 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5795 ;; 5796 *) 5797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5798 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5799 ;; 5800 esac 5801 ;; 5802 5803interix[3-9]*) 5804 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5806 ;; 5807 5808irix5* | irix6* | nonstopux*) 5809 case $LD in 5810 *-32|*"-32 ") libmagic=32-bit;; 5811 *-n32|*"-n32 ") libmagic=N32;; 5812 *-64|*"-64 ") libmagic=64-bit;; 5813 *) libmagic=never-match;; 5814 esac 5815 lt_cv_deplibs_check_method=pass_all 5816 ;; 5817 5818# This must be glibc/ELF. 5819linux* | k*bsd*-gnu | kopensolaris*-gnu) 5820 lt_cv_deplibs_check_method=pass_all 5821 ;; 5822 5823netbsd*) 5824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5826 else 5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5828 fi 5829 ;; 5830 5831newos6*) 5832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5833 lt_cv_file_magic_cmd=/usr/bin/file 5834 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5835 ;; 5836 5837*nto* | *qnx*) 5838 lt_cv_deplibs_check_method=pass_all 5839 ;; 5840 5841openbsd*) 5842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5844 else 5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5846 fi 5847 ;; 5848 5849osf3* | osf4* | osf5*) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 5853rdos*) 5854 lt_cv_deplibs_check_method=pass_all 5855 ;; 5856 5857solaris*) 5858 lt_cv_deplibs_check_method=pass_all 5859 ;; 5860 5861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5862 lt_cv_deplibs_check_method=pass_all 5863 ;; 5864 5865sysv4 | sysv4.3*) 5866 case $host_vendor in 5867 motorola) 5868 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]' 5869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5870 ;; 5871 ncr) 5872 lt_cv_deplibs_check_method=pass_all 5873 ;; 5874 sequent) 5875 lt_cv_file_magic_cmd='/bin/file' 5876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5877 ;; 5878 sni) 5879 lt_cv_file_magic_cmd='/bin/file' 5880 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5881 lt_cv_file_magic_test_file=/lib/libc.so 5882 ;; 5883 siemens) 5884 lt_cv_deplibs_check_method=pass_all 5885 ;; 5886 pc) 5887 lt_cv_deplibs_check_method=pass_all 5888 ;; 5889 esac 5890 ;; 5891 5892tpf*) 5893 lt_cv_deplibs_check_method=pass_all 5894 ;; 5895esac 5896 5897fi 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5899$as_echo "$lt_cv_deplibs_check_method" >&6; } 5900 5901file_magic_glob= 5902want_nocaseglob=no 5903if test "$build" = "$host"; then 5904 case $host_os in 5905 mingw* | pw32*) 5906 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5907 want_nocaseglob=yes 5908 else 5909 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5910 fi 5911 ;; 5912 esac 5913fi 5914 5915file_magic_cmd=$lt_cv_file_magic_cmd 5916deplibs_check_method=$lt_cv_deplibs_check_method 5917test -z "$deplibs_check_method" && deplibs_check_method=unknown 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940if test -n "$ac_tool_prefix"; then 5941 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5942set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5944$as_echo_n "checking for $ac_word... " >&6; } 5945if ${ac_cv_prog_DLLTOOL+:} false; then : 5946 $as_echo_n "(cached) " >&6 5947else 5948 if test -n "$DLLTOOL"; then 5949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5950else 5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5952for as_dir in $PATH 5953do 5954 IFS=$as_save_IFS 5955 test -z "$as_dir" && as_dir=. 5956 for ac_exec_ext in '' $ac_executable_extensions; do 5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5958 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5960 break 2 5961 fi 5962done 5963 done 5964IFS=$as_save_IFS 5965 5966fi 5967fi 5968DLLTOOL=$ac_cv_prog_DLLTOOL 5969if test -n "$DLLTOOL"; then 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5971$as_echo "$DLLTOOL" >&6; } 5972else 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5974$as_echo "no" >&6; } 5975fi 5976 5977 5978fi 5979if test -z "$ac_cv_prog_DLLTOOL"; then 5980 ac_ct_DLLTOOL=$DLLTOOL 5981 # Extract the first word of "dlltool", so it can be a program name with args. 5982set dummy dlltool; ac_word=$2 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5984$as_echo_n "checking for $ac_word... " >&6; } 5985if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 if test -n "$ac_ct_DLLTOOL"; then 5989 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 test -z "$as_dir" && as_dir=. 5996 for ac_exec_ext in '' $ac_executable_extensions; do 5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5998 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6000 break 2 6001 fi 6002done 6003 done 6004IFS=$as_save_IFS 6005 6006fi 6007fi 6008ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6009if test -n "$ac_ct_DLLTOOL"; then 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6011$as_echo "$ac_ct_DLLTOOL" >&6; } 6012else 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6014$as_echo "no" >&6; } 6015fi 6016 6017 if test "x$ac_ct_DLLTOOL" = x; then 6018 DLLTOOL="false" 6019 else 6020 case $cross_compiling:$ac_tool_warned in 6021yes:) 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6024ac_tool_warned=yes ;; 6025esac 6026 DLLTOOL=$ac_ct_DLLTOOL 6027 fi 6028else 6029 DLLTOOL="$ac_cv_prog_DLLTOOL" 6030fi 6031 6032test -z "$DLLTOOL" && DLLTOOL=dlltool 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6044$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6045if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 lt_cv_sharedlib_from_linklib_cmd='unknown' 6049 6050case $host_os in 6051cygwin* | mingw* | pw32* | cegcc*) 6052 # two different shell functions defined in ltmain.sh 6053 # decide which to use based on capabilities of $DLLTOOL 6054 case `$DLLTOOL --help 2>&1` in 6055 *--identify-strict*) 6056 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6057 ;; 6058 *) 6059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6060 ;; 6061 esac 6062 ;; 6063*) 6064 # fallback: assume linklib IS sharedlib 6065 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6066 ;; 6067esac 6068 6069fi 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6071$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6072sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6073test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6074 6075 6076 6077 6078 6079 6080 6081if test -n "$ac_tool_prefix"; then 6082 for ac_prog in ar 6083 do 6084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6085set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6087$as_echo_n "checking for $ac_word... " >&6; } 6088if ${ac_cv_prog_AR+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 if test -n "$AR"; then 6092 ac_cv_prog_AR="$AR" # Let the user override the test. 6093else 6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095for as_dir in $PATH 6096do 6097 IFS=$as_save_IFS 6098 test -z "$as_dir" && as_dir=. 6099 for ac_exec_ext in '' $ac_executable_extensions; do 6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6101 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6103 break 2 6104 fi 6105done 6106 done 6107IFS=$as_save_IFS 6108 6109fi 6110fi 6111AR=$ac_cv_prog_AR 6112if test -n "$AR"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6114$as_echo "$AR" >&6; } 6115else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117$as_echo "no" >&6; } 6118fi 6119 6120 6121 test -n "$AR" && break 6122 done 6123fi 6124if test -z "$AR"; then 6125 ac_ct_AR=$AR 6126 for ac_prog in ar 6127do 6128 # Extract the first word of "$ac_prog", so it can be a program name with args. 6129set dummy $ac_prog; ac_word=$2 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131$as_echo_n "checking for $ac_word... " >&6; } 6132if ${ac_cv_prog_ac_ct_AR+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 if test -n "$ac_ct_AR"; then 6136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6137else 6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139for as_dir in $PATH 6140do 6141 IFS=$as_save_IFS 6142 test -z "$as_dir" && as_dir=. 6143 for ac_exec_ext in '' $ac_executable_extensions; do 6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6145 ac_cv_prog_ac_ct_AR="$ac_prog" 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6147 break 2 6148 fi 6149done 6150 done 6151IFS=$as_save_IFS 6152 6153fi 6154fi 6155ac_ct_AR=$ac_cv_prog_ac_ct_AR 6156if test -n "$ac_ct_AR"; then 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6158$as_echo "$ac_ct_AR" >&6; } 6159else 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6161$as_echo "no" >&6; } 6162fi 6163 6164 6165 test -n "$ac_ct_AR" && break 6166done 6167 6168 if test "x$ac_ct_AR" = x; then 6169 AR="false" 6170 else 6171 case $cross_compiling:$ac_tool_warned in 6172yes:) 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6175ac_tool_warned=yes ;; 6176esac 6177 AR=$ac_ct_AR 6178 fi 6179fi 6180 6181: ${AR=ar} 6182: ${AR_FLAGS=cru} 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6195$as_echo_n "checking for archiver @FILE support... " >&6; } 6196if ${lt_cv_ar_at_file+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 lt_cv_ar_at_file=no 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202 6203int 6204main () 6205{ 6206 6207 ; 6208 return 0; 6209} 6210_ACEOF 6211if ac_fn_c_try_compile "$LINENO"; then : 6212 echo conftest.$ac_objext > conftest.lst 6213 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6215 (eval $lt_ar_try) 2>&5 6216 ac_status=$? 6217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6218 test $ac_status = 0; } 6219 if test "$ac_status" -eq 0; then 6220 # Ensure the archiver fails upon bogus file names. 6221 rm -f conftest.$ac_objext libconftest.a 6222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6223 (eval $lt_ar_try) 2>&5 6224 ac_status=$? 6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6226 test $ac_status = 0; } 6227 if test "$ac_status" -ne 0; then 6228 lt_cv_ar_at_file=@ 6229 fi 6230 fi 6231 rm -f conftest.* libconftest.a 6232 6233fi 6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6235 6236fi 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6238$as_echo "$lt_cv_ar_at_file" >&6; } 6239 6240if test "x$lt_cv_ar_at_file" = xno; then 6241 archiver_list_spec= 6242else 6243 archiver_list_spec=$lt_cv_ar_at_file 6244fi 6245 6246 6247 6248 6249 6250 6251 6252if test -n "$ac_tool_prefix"; then 6253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6254set dummy ${ac_tool_prefix}strip; ac_word=$2 6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6256$as_echo_n "checking for $ac_word... " >&6; } 6257if ${ac_cv_prog_STRIP+:} false; then : 6258 $as_echo_n "(cached) " >&6 6259else 6260 if test -n "$STRIP"; then 6261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6262else 6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6264for as_dir in $PATH 6265do 6266 IFS=$as_save_IFS 6267 test -z "$as_dir" && as_dir=. 6268 for ac_exec_ext in '' $ac_executable_extensions; do 6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6270 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6272 break 2 6273 fi 6274done 6275 done 6276IFS=$as_save_IFS 6277 6278fi 6279fi 6280STRIP=$ac_cv_prog_STRIP 6281if test -n "$STRIP"; then 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6283$as_echo "$STRIP" >&6; } 6284else 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6286$as_echo "no" >&6; } 6287fi 6288 6289 6290fi 6291if test -z "$ac_cv_prog_STRIP"; then 6292 ac_ct_STRIP=$STRIP 6293 # Extract the first word of "strip", so it can be a program name with args. 6294set dummy strip; ac_word=$2 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6296$as_echo_n "checking for $ac_word... " >&6; } 6297if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 if test -n "$ac_ct_STRIP"; then 6301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6302else 6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304for as_dir in $PATH 6305do 6306 IFS=$as_save_IFS 6307 test -z "$as_dir" && as_dir=. 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6310 ac_cv_prog_ac_ct_STRIP="strip" 6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6312 break 2 6313 fi 6314done 6315 done 6316IFS=$as_save_IFS 6317 6318fi 6319fi 6320ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6321if test -n "$ac_ct_STRIP"; then 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6323$as_echo "$ac_ct_STRIP" >&6; } 6324else 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6326$as_echo "no" >&6; } 6327fi 6328 6329 if test "x$ac_ct_STRIP" = x; then 6330 STRIP=":" 6331 else 6332 case $cross_compiling:$ac_tool_warned in 6333yes:) 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6336ac_tool_warned=yes ;; 6337esac 6338 STRIP=$ac_ct_STRIP 6339 fi 6340else 6341 STRIP="$ac_cv_prog_STRIP" 6342fi 6343 6344test -z "$STRIP" && STRIP=: 6345 6346 6347 6348 6349 6350 6351if test -n "$ac_tool_prefix"; then 6352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6353set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6355$as_echo_n "checking for $ac_word... " >&6; } 6356if ${ac_cv_prog_RANLIB+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 if test -n "$RANLIB"; then 6360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6361else 6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6363for as_dir in $PATH 6364do 6365 IFS=$as_save_IFS 6366 test -z "$as_dir" && as_dir=. 6367 for ac_exec_ext in '' $ac_executable_extensions; do 6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6371 break 2 6372 fi 6373done 6374 done 6375IFS=$as_save_IFS 6376 6377fi 6378fi 6379RANLIB=$ac_cv_prog_RANLIB 6380if test -n "$RANLIB"; then 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6382$as_echo "$RANLIB" >&6; } 6383else 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6385$as_echo "no" >&6; } 6386fi 6387 6388 6389fi 6390if test -z "$ac_cv_prog_RANLIB"; then 6391 ac_ct_RANLIB=$RANLIB 6392 # Extract the first word of "ranlib", so it can be a program name with args. 6393set dummy ranlib; ac_word=$2 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6395$as_echo_n "checking for $ac_word... " >&6; } 6396if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 if test -n "$ac_ct_RANLIB"; then 6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6401else 6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403for as_dir in $PATH 6404do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6409 ac_cv_prog_ac_ct_RANLIB="ranlib" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413done 6414 done 6415IFS=$as_save_IFS 6416 6417fi 6418fi 6419ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6420if test -n "$ac_ct_RANLIB"; then 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6422$as_echo "$ac_ct_RANLIB" >&6; } 6423else 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6425$as_echo "no" >&6; } 6426fi 6427 6428 if test "x$ac_ct_RANLIB" = x; then 6429 RANLIB=":" 6430 else 6431 case $cross_compiling:$ac_tool_warned in 6432yes:) 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6435ac_tool_warned=yes ;; 6436esac 6437 RANLIB=$ac_ct_RANLIB 6438 fi 6439else 6440 RANLIB="$ac_cv_prog_RANLIB" 6441fi 6442 6443test -z "$RANLIB" && RANLIB=: 6444 6445 6446 6447 6448 6449 6450# Determine commands to create old-style static archives. 6451old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6452old_postinstall_cmds='chmod 644 $oldlib' 6453old_postuninstall_cmds= 6454 6455if test -n "$RANLIB"; then 6456 case $host_os in 6457 openbsd*) 6458 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6459 ;; 6460 *) 6461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6462 ;; 6463 esac 6464 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6465fi 6466 6467case $host_os in 6468 darwin*) 6469 lock_old_archive_extraction=yes ;; 6470 *) 6471 lock_old_archive_extraction=no ;; 6472esac 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512# If no C compiler was specified, use CC. 6513LTCC=${LTCC-"$CC"} 6514 6515# If no C compiler flags were specified, use CFLAGS. 6516LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6517 6518# Allow CC to be a program name with arguments. 6519compiler=$CC 6520 6521 6522# Check for command to grab the raw symbol name followed by C symbol from nm. 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6524$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6525if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 6529# These are sane defaults that work on at least a few old systems. 6530# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6531 6532# Character class describing NM global symbol codes. 6533symcode='[BCDEGRST]' 6534 6535# Regexp to match symbols that can be accessed directly from C. 6536sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6537 6538# Define system-specific variables. 6539case $host_os in 6540aix*) 6541 symcode='[BCDT]' 6542 ;; 6543cygwin* | mingw* | pw32* | cegcc*) 6544 symcode='[ABCDGISTW]' 6545 ;; 6546hpux*) 6547 if test "$host_cpu" = ia64; then 6548 symcode='[ABCDEGRST]' 6549 fi 6550 ;; 6551irix* | nonstopux*) 6552 symcode='[BCDEGRST]' 6553 ;; 6554osf*) 6555 symcode='[BCDEGQRST]' 6556 ;; 6557solaris*) 6558 symcode='[BDRT]' 6559 ;; 6560sco3.2v5*) 6561 symcode='[DT]' 6562 ;; 6563sysv4.2uw2*) 6564 symcode='[DT]' 6565 ;; 6566sysv5* | sco5v6* | unixware* | OpenUNIX*) 6567 symcode='[ABDT]' 6568 ;; 6569sysv4) 6570 symcode='[DFNSTU]' 6571 ;; 6572esac 6573 6574# If we're using GNU nm, then use its standard symbol codes. 6575case `$NM -V 2>&1` in 6576*GNU* | *'with BFD'*) 6577 symcode='[ABCDGIRSTW]' ;; 6578esac 6579 6580# Transform an extracted symbol line into a proper C declaration. 6581# Some systems (esp. on ia64) link data and code symbols differently, 6582# so use this general approach. 6583lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6584 6585# Transform an extracted symbol line into symbol name and symbol address 6586lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6587lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6588 6589# Handle CRLF in mingw tool chain 6590opt_cr= 6591case $build_os in 6592mingw*) 6593 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6594 ;; 6595esac 6596 6597# Try without a prefix underscore, then with it. 6598for ac_symprfx in "" "_"; do 6599 6600 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6601 symxfrm="\\1 $ac_symprfx\\2 \\2" 6602 6603 # Write the raw and C identifiers. 6604 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6605 # Fake it for dumpbin and say T for any non-static function 6606 # and D for any global variable. 6607 # Also find C++ and __fastcall symbols from MSVC++, 6608 # which start with @ or ?. 6609 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6610" {last_section=section; section=\$ 3};"\ 6611" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6612" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6613" \$ 0!~/External *\|/{next};"\ 6614" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6615" {if(hide[section]) next};"\ 6616" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6617" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6618" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6619" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6620" ' prfx=^$ac_symprfx" 6621 else 6622 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6623 fi 6624 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6625 6626 # Check to see that the pipe works correctly. 6627 pipe_works=no 6628 6629 rm -f conftest* 6630 cat > conftest.$ac_ext <<_LT_EOF 6631#ifdef __cplusplus 6632extern "C" { 6633#endif 6634char nm_test_var; 6635void nm_test_func(void); 6636void nm_test_func(void){} 6637#ifdef __cplusplus 6638} 6639#endif 6640int main(){nm_test_var='a';nm_test_func();return(0);} 6641_LT_EOF 6642 6643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6644 (eval $ac_compile) 2>&5 6645 ac_status=$? 6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6647 test $ac_status = 0; }; then 6648 # Now try to grab the symbols. 6649 nlist=conftest.nm 6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6651 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6652 ac_status=$? 6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6654 test $ac_status = 0; } && test -s "$nlist"; then 6655 # Try sorting and uniquifying the output. 6656 if sort "$nlist" | uniq > "$nlist"T; then 6657 mv -f "$nlist"T "$nlist" 6658 else 6659 rm -f "$nlist"T 6660 fi 6661 6662 # Make sure that we snagged all the symbols we need. 6663 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6664 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6665 cat <<_LT_EOF > conftest.$ac_ext 6666/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6667#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6668/* DATA imports from DLLs on WIN32 con't be const, because runtime 6669 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6670# define LT_DLSYM_CONST 6671#elif defined(__osf__) 6672/* This system does not cope well with relocations in const data. */ 6673# define LT_DLSYM_CONST 6674#else 6675# define LT_DLSYM_CONST const 6676#endif 6677 6678#ifdef __cplusplus 6679extern "C" { 6680#endif 6681 6682_LT_EOF 6683 # Now generate the symbol file. 6684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6685 6686 cat <<_LT_EOF >> conftest.$ac_ext 6687 6688/* The mapping between symbol names and symbols. */ 6689LT_DLSYM_CONST struct { 6690 const char *name; 6691 void *address; 6692} 6693lt__PROGRAM__LTX_preloaded_symbols[] = 6694{ 6695 { "@PROGRAM@", (void *) 0 }, 6696_LT_EOF 6697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6698 cat <<\_LT_EOF >> conftest.$ac_ext 6699 {0, (void *) 0} 6700}; 6701 6702/* This works around a problem in FreeBSD linker */ 6703#ifdef FREEBSD_WORKAROUND 6704static const void *lt_preloaded_setup() { 6705 return lt__PROGRAM__LTX_preloaded_symbols; 6706} 6707#endif 6708 6709#ifdef __cplusplus 6710} 6711#endif 6712_LT_EOF 6713 # Now try linking the two files. 6714 mv conftest.$ac_objext conftstm.$ac_objext 6715 lt_globsym_save_LIBS=$LIBS 6716 lt_globsym_save_CFLAGS=$CFLAGS 6717 LIBS="conftstm.$ac_objext" 6718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6720 (eval $ac_link) 2>&5 6721 ac_status=$? 6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6723 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6724 pipe_works=yes 6725 fi 6726 LIBS=$lt_globsym_save_LIBS 6727 CFLAGS=$lt_globsym_save_CFLAGS 6728 else 6729 echo "cannot find nm_test_func in $nlist" >&5 6730 fi 6731 else 6732 echo "cannot find nm_test_var in $nlist" >&5 6733 fi 6734 else 6735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6736 fi 6737 else 6738 echo "$progname: failed program was:" >&5 6739 cat conftest.$ac_ext >&5 6740 fi 6741 rm -rf conftest* conftst* 6742 6743 # Do not use the global_symbol_pipe unless it works. 6744 if test "$pipe_works" = yes; then 6745 break 6746 else 6747 lt_cv_sys_global_symbol_pipe= 6748 fi 6749done 6750 6751fi 6752 6753if test -z "$lt_cv_sys_global_symbol_pipe"; then 6754 lt_cv_sys_global_symbol_to_cdecl= 6755fi 6756if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6758$as_echo "failed" >&6; } 6759else 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6761$as_echo "ok" >&6; } 6762fi 6763 6764# Response file support. 6765if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6766 nm_file_list_spec='@' 6767elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6768 nm_file_list_spec='@' 6769fi 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6798$as_echo_n "checking for sysroot... " >&6; } 6799 6800# Check whether --with-sysroot was given. 6801if test "${with_sysroot+set}" = set; then : 6802 withval=$with_sysroot; 6803else 6804 with_sysroot=no 6805fi 6806 6807 6808lt_sysroot= 6809case ${with_sysroot} in #( 6810 yes) 6811 if test "$GCC" = yes; then 6812 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6813 fi 6814 ;; #( 6815 /*) 6816 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6817 ;; #( 6818 no|'') 6819 ;; #( 6820 *) 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6822$as_echo "${with_sysroot}" >&6; } 6823 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6824 ;; 6825esac 6826 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6828$as_echo "${lt_sysroot:-no}" >&6; } 6829 6830 6831 6832 6833 6834# Check whether --enable-libtool-lock was given. 6835if test "${enable_libtool_lock+set}" = set; then : 6836 enableval=$enable_libtool_lock; 6837fi 6838 6839test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6840 6841# Some flags need to be propagated to the compiler or linker for good 6842# libtool support. 6843case $host in 6844ia64-*-hpux*) 6845 # Find out which ABI we are using. 6846 echo 'int i;' > conftest.$ac_ext 6847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6848 (eval $ac_compile) 2>&5 6849 ac_status=$? 6850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6851 test $ac_status = 0; }; then 6852 case `/usr/bin/file conftest.$ac_objext` in 6853 *ELF-32*) 6854 HPUX_IA64_MODE="32" 6855 ;; 6856 *ELF-64*) 6857 HPUX_IA64_MODE="64" 6858 ;; 6859 esac 6860 fi 6861 rm -rf conftest* 6862 ;; 6863*-*-irix6*) 6864 # Find out which ABI we are using. 6865 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6867 (eval $ac_compile) 2>&5 6868 ac_status=$? 6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6870 test $ac_status = 0; }; then 6871 if test "$lt_cv_prog_gnu_ld" = yes; then 6872 case `/usr/bin/file conftest.$ac_objext` in 6873 *32-bit*) 6874 LD="${LD-ld} -melf32bsmip" 6875 ;; 6876 *N32*) 6877 LD="${LD-ld} -melf32bmipn32" 6878 ;; 6879 *64-bit*) 6880 LD="${LD-ld} -melf64bmip" 6881 ;; 6882 esac 6883 else 6884 case `/usr/bin/file conftest.$ac_objext` in 6885 *32-bit*) 6886 LD="${LD-ld} -32" 6887 ;; 6888 *N32*) 6889 LD="${LD-ld} -n32" 6890 ;; 6891 *64-bit*) 6892 LD="${LD-ld} -64" 6893 ;; 6894 esac 6895 fi 6896 fi 6897 rm -rf conftest* 6898 ;; 6899 6900x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6901s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6902 # Find out which ABI we are using. 6903 echo 'int i;' > conftest.$ac_ext 6904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6905 (eval $ac_compile) 2>&5 6906 ac_status=$? 6907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6908 test $ac_status = 0; }; then 6909 case `/usr/bin/file conftest.o` in 6910 *32-bit*) 6911 case $host in 6912 x86_64-*kfreebsd*-gnu) 6913 LD="${LD-ld} -m elf_i386_fbsd" 6914 ;; 6915 x86_64-*linux*) 6916 LD="${LD-ld} -m elf_i386" 6917 ;; 6918 ppc64-*linux*|powerpc64-*linux*) 6919 LD="${LD-ld} -m elf32ppclinux" 6920 ;; 6921 s390x-*linux*) 6922 LD="${LD-ld} -m elf_s390" 6923 ;; 6924 sparc64-*linux*) 6925 LD="${LD-ld} -m elf32_sparc" 6926 ;; 6927 esac 6928 ;; 6929 *64-bit*) 6930 case $host in 6931 x86_64-*kfreebsd*-gnu) 6932 LD="${LD-ld} -m elf_x86_64_fbsd" 6933 ;; 6934 x86_64-*linux*) 6935 LD="${LD-ld} -m elf_x86_64" 6936 ;; 6937 ppc*-*linux*|powerpc*-*linux*) 6938 LD="${LD-ld} -m elf64ppc" 6939 ;; 6940 s390*-*linux*|s390*-*tpf*) 6941 LD="${LD-ld} -m elf64_s390" 6942 ;; 6943 sparc*-*linux*) 6944 LD="${LD-ld} -m elf64_sparc" 6945 ;; 6946 esac 6947 ;; 6948 esac 6949 fi 6950 rm -rf conftest* 6951 ;; 6952 6953*-*-sco3.2v5*) 6954 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6955 SAVE_CFLAGS="$CFLAGS" 6956 CFLAGS="$CFLAGS -belf" 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6958$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6959if ${lt_cv_cc_needs_belf+:} false; then : 6960 $as_echo_n "(cached) " >&6 6961else 6962 ac_ext=c 6963ac_cpp='$CPP $CPPFLAGS' 6964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6966ac_compiler_gnu=$ac_cv_c_compiler_gnu 6967 6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6969/* end confdefs.h. */ 6970 6971int 6972main () 6973{ 6974 6975 ; 6976 return 0; 6977} 6978_ACEOF 6979if ac_fn_c_try_link "$LINENO"; then : 6980 lt_cv_cc_needs_belf=yes 6981else 6982 lt_cv_cc_needs_belf=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext \ 6985 conftest$ac_exeext conftest.$ac_ext 6986 ac_ext=c 6987ac_cpp='$CPP $CPPFLAGS' 6988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6990ac_compiler_gnu=$ac_cv_c_compiler_gnu 6991 6992fi 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6994$as_echo "$lt_cv_cc_needs_belf" >&6; } 6995 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6997 CFLAGS="$SAVE_CFLAGS" 6998 fi 6999 ;; 7000*-*solaris*) 7001 # Find out which ABI we are using. 7002 echo 'int i;' > conftest.$ac_ext 7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7004 (eval $ac_compile) 2>&5 7005 ac_status=$? 7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7007 test $ac_status = 0; }; then 7008 case `/usr/bin/file conftest.o` in 7009 *64-bit*) 7010 case $lt_cv_prog_gnu_ld in 7011 yes*) 7012 case $host in 7013 i?86-*-solaris*) 7014 LD="${LD-ld} -m elf_x86_64" 7015 ;; 7016 sparc*-*-solaris*) 7017 LD="${LD-ld} -m elf64_sparc" 7018 ;; 7019 esac 7020 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7021 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7022 LD="${LD-ld}_sol2" 7023 fi 7024 ;; 7025 *) 7026 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7027 LD="${LD-ld} -64" 7028 fi 7029 ;; 7030 esac 7031 ;; 7032 esac 7033 fi 7034 rm -rf conftest* 7035 ;; 7036esac 7037 7038need_locks="$enable_libtool_lock" 7039 7040if test -n "$ac_tool_prefix"; then 7041 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7042set dummy ${ac_tool_prefix}mt; ac_word=$2 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7044$as_echo_n "checking for $ac_word... " >&6; } 7045if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 if test -n "$MANIFEST_TOOL"; then 7049 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7050else 7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7052for as_dir in $PATH 7053do 7054 IFS=$as_save_IFS 7055 test -z "$as_dir" && as_dir=. 7056 for ac_exec_ext in '' $ac_executable_extensions; do 7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7058 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7060 break 2 7061 fi 7062done 7063 done 7064IFS=$as_save_IFS 7065 7066fi 7067fi 7068MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7069if test -n "$MANIFEST_TOOL"; then 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7071$as_echo "$MANIFEST_TOOL" >&6; } 7072else 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7074$as_echo "no" >&6; } 7075fi 7076 7077 7078fi 7079if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7080 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7081 # Extract the first word of "mt", so it can be a program name with args. 7082set dummy mt; ac_word=$2 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7084$as_echo_n "checking for $ac_word... " >&6; } 7085if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7086 $as_echo_n "(cached) " >&6 7087else 7088 if test -n "$ac_ct_MANIFEST_TOOL"; then 7089 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7090else 7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092for as_dir in $PATH 7093do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7098 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102done 7103 done 7104IFS=$as_save_IFS 7105 7106fi 7107fi 7108ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7109if test -n "$ac_ct_MANIFEST_TOOL"; then 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7111$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7112else 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7114$as_echo "no" >&6; } 7115fi 7116 7117 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7118 MANIFEST_TOOL=":" 7119 else 7120 case $cross_compiling:$ac_tool_warned in 7121yes:) 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7124ac_tool_warned=yes ;; 7125esac 7126 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7127 fi 7128else 7129 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7130fi 7131 7132test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7134$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7135if ${lt_cv_path_mainfest_tool+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 lt_cv_path_mainfest_tool=no 7139 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7140 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7141 cat conftest.err >&5 7142 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7143 lt_cv_path_mainfest_tool=yes 7144 fi 7145 rm -f conftest* 7146fi 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7148$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7149if test "x$lt_cv_path_mainfest_tool" != xyes; then 7150 MANIFEST_TOOL=: 7151fi 7152 7153 7154 7155 7156 7157 7158 case $host_os in 7159 rhapsody* | darwin*) 7160 if test -n "$ac_tool_prefix"; then 7161 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7162set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164$as_echo_n "checking for $ac_word... " >&6; } 7165if ${ac_cv_prog_DSYMUTIL+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 if test -n "$DSYMUTIL"; then 7169 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7170else 7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7178 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi 7187fi 7188DSYMUTIL=$ac_cv_prog_DSYMUTIL 7189if test -n "$DSYMUTIL"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7191$as_echo "$DSYMUTIL" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 7198fi 7199if test -z "$ac_cv_prog_DSYMUTIL"; then 7200 ac_ct_DSYMUTIL=$DSYMUTIL 7201 # Extract the first word of "dsymutil", so it can be a program name with args. 7202set dummy dsymutil; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$ac_ct_DSYMUTIL"; then 7209 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7218 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7229if test -n "$ac_ct_DSYMUTIL"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7231$as_echo "$ac_ct_DSYMUTIL" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 if test "x$ac_ct_DSYMUTIL" = x; then 7238 DSYMUTIL=":" 7239 else 7240 case $cross_compiling:$ac_tool_warned in 7241yes:) 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7244ac_tool_warned=yes ;; 7245esac 7246 DSYMUTIL=$ac_ct_DSYMUTIL 7247 fi 7248else 7249 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7250fi 7251 7252 if test -n "$ac_tool_prefix"; then 7253 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7254set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if ${ac_cv_prog_NMEDIT+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$NMEDIT"; then 7261 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7270 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275 done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280NMEDIT=$ac_cv_prog_NMEDIT 7281if test -n "$NMEDIT"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7283$as_echo "$NMEDIT" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 7290fi 7291if test -z "$ac_cv_prog_NMEDIT"; then 7292 ac_ct_NMEDIT=$NMEDIT 7293 # Extract the first word of "nmedit", so it can be a program name with args. 7294set dummy nmedit; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$ac_ct_NMEDIT"; then 7301 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7310 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7321if test -n "$ac_ct_NMEDIT"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7323$as_echo "$ac_ct_NMEDIT" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 if test "x$ac_ct_NMEDIT" = x; then 7330 NMEDIT=":" 7331 else 7332 case $cross_compiling:$ac_tool_warned in 7333yes:) 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7336ac_tool_warned=yes ;; 7337esac 7338 NMEDIT=$ac_ct_NMEDIT 7339 fi 7340else 7341 NMEDIT="$ac_cv_prog_NMEDIT" 7342fi 7343 7344 if test -n "$ac_tool_prefix"; then 7345 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7346set dummy ${ac_tool_prefix}lipo; ac_word=$2 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7348$as_echo_n "checking for $ac_word... " >&6; } 7349if ${ac_cv_prog_LIPO+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 if test -n "$LIPO"; then 7353 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7354else 7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356for as_dir in $PATH 7357do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7362 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366done 7367 done 7368IFS=$as_save_IFS 7369 7370fi 7371fi 7372LIPO=$ac_cv_prog_LIPO 7373if test -n "$LIPO"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7375$as_echo "$LIPO" >&6; } 7376else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378$as_echo "no" >&6; } 7379fi 7380 7381 7382fi 7383if test -z "$ac_cv_prog_LIPO"; then 7384 ac_ct_LIPO=$LIPO 7385 # Extract the first word of "lipo", so it can be a program name with args. 7386set dummy lipo; ac_word=$2 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7388$as_echo_n "checking for $ac_word... " >&6; } 7389if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 if test -n "$ac_ct_LIPO"; then 7393 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7394else 7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396for as_dir in $PATH 7397do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7402 ac_cv_prog_ac_ct_LIPO="lipo" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406done 7407 done 7408IFS=$as_save_IFS 7409 7410fi 7411fi 7412ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7413if test -n "$ac_ct_LIPO"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7415$as_echo "$ac_ct_LIPO" >&6; } 7416else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418$as_echo "no" >&6; } 7419fi 7420 7421 if test "x$ac_ct_LIPO" = x; then 7422 LIPO=":" 7423 else 7424 case $cross_compiling:$ac_tool_warned in 7425yes:) 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7428ac_tool_warned=yes ;; 7429esac 7430 LIPO=$ac_ct_LIPO 7431 fi 7432else 7433 LIPO="$ac_cv_prog_LIPO" 7434fi 7435 7436 if test -n "$ac_tool_prefix"; then 7437 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7438set dummy ${ac_tool_prefix}otool; ac_word=$2 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7440$as_echo_n "checking for $ac_word... " >&6; } 7441if ${ac_cv_prog_OTOOL+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 if test -n "$OTOOL"; then 7445 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7446else 7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7448for as_dir in $PATH 7449do 7450 IFS=$as_save_IFS 7451 test -z "$as_dir" && as_dir=. 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7454 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7456 break 2 7457 fi 7458done 7459 done 7460IFS=$as_save_IFS 7461 7462fi 7463fi 7464OTOOL=$ac_cv_prog_OTOOL 7465if test -n "$OTOOL"; then 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7467$as_echo "$OTOOL" >&6; } 7468else 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470$as_echo "no" >&6; } 7471fi 7472 7473 7474fi 7475if test -z "$ac_cv_prog_OTOOL"; then 7476 ac_ct_OTOOL=$OTOOL 7477 # Extract the first word of "otool", so it can be a program name with args. 7478set dummy otool; ac_word=$2 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480$as_echo_n "checking for $ac_word... " >&6; } 7481if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 if test -n "$ac_ct_OTOOL"; then 7485 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7486else 7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7488for as_dir in $PATH 7489do 7490 IFS=$as_save_IFS 7491 test -z "$as_dir" && as_dir=. 7492 for ac_exec_ext in '' $ac_executable_extensions; do 7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7494 ac_cv_prog_ac_ct_OTOOL="otool" 7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7496 break 2 7497 fi 7498done 7499 done 7500IFS=$as_save_IFS 7501 7502fi 7503fi 7504ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7505if test -n "$ac_ct_OTOOL"; then 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7507$as_echo "$ac_ct_OTOOL" >&6; } 7508else 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7510$as_echo "no" >&6; } 7511fi 7512 7513 if test "x$ac_ct_OTOOL" = x; then 7514 OTOOL=":" 7515 else 7516 case $cross_compiling:$ac_tool_warned in 7517yes:) 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7520ac_tool_warned=yes ;; 7521esac 7522 OTOOL=$ac_ct_OTOOL 7523 fi 7524else 7525 OTOOL="$ac_cv_prog_OTOOL" 7526fi 7527 7528 if test -n "$ac_tool_prefix"; then 7529 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7530set dummy ${ac_tool_prefix}otool64; ac_word=$2 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7532$as_echo_n "checking for $ac_word... " >&6; } 7533if ${ac_cv_prog_OTOOL64+:} false; then : 7534 $as_echo_n "(cached) " >&6 7535else 7536 if test -n "$OTOOL64"; then 7537 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7538else 7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7540for as_dir in $PATH 7541do 7542 IFS=$as_save_IFS 7543 test -z "$as_dir" && as_dir=. 7544 for ac_exec_ext in '' $ac_executable_extensions; do 7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7546 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7548 break 2 7549 fi 7550done 7551 done 7552IFS=$as_save_IFS 7553 7554fi 7555fi 7556OTOOL64=$ac_cv_prog_OTOOL64 7557if test -n "$OTOOL64"; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7559$as_echo "$OTOOL64" >&6; } 7560else 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7562$as_echo "no" >&6; } 7563fi 7564 7565 7566fi 7567if test -z "$ac_cv_prog_OTOOL64"; then 7568 ac_ct_OTOOL64=$OTOOL64 7569 # Extract the first word of "otool64", so it can be a program name with args. 7570set dummy otool64; ac_word=$2 7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7572$as_echo_n "checking for $ac_word... " >&6; } 7573if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7574 $as_echo_n "(cached) " >&6 7575else 7576 if test -n "$ac_ct_OTOOL64"; then 7577 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7578else 7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7580for as_dir in $PATH 7581do 7582 IFS=$as_save_IFS 7583 test -z "$as_dir" && as_dir=. 7584 for ac_exec_ext in '' $ac_executable_extensions; do 7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7586 ac_cv_prog_ac_ct_OTOOL64="otool64" 7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7588 break 2 7589 fi 7590done 7591 done 7592IFS=$as_save_IFS 7593 7594fi 7595fi 7596ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7597if test -n "$ac_ct_OTOOL64"; then 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7599$as_echo "$ac_ct_OTOOL64" >&6; } 7600else 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7602$as_echo "no" >&6; } 7603fi 7604 7605 if test "x$ac_ct_OTOOL64" = x; then 7606 OTOOL64=":" 7607 else 7608 case $cross_compiling:$ac_tool_warned in 7609yes:) 7610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7612ac_tool_warned=yes ;; 7613esac 7614 OTOOL64=$ac_ct_OTOOL64 7615 fi 7616else 7617 OTOOL64="$ac_cv_prog_OTOOL64" 7618fi 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7647$as_echo_n "checking for -single_module linker flag... " >&6; } 7648if ${lt_cv_apple_cc_single_mod+:} false; then : 7649 $as_echo_n "(cached) " >&6 7650else 7651 lt_cv_apple_cc_single_mod=no 7652 if test -z "${LT_MULTI_MODULE}"; then 7653 # By default we will add the -single_module flag. You can override 7654 # by either setting the environment variable LT_MULTI_MODULE 7655 # non-empty at configure time, or by adding -multi_module to the 7656 # link flags. 7657 rm -rf libconftest.dylib* 7658 echo "int foo(void){return 1;}" > conftest.c 7659 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7660-dynamiclib -Wl,-single_module conftest.c" >&5 7661 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7662 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7663 _lt_result=$? 7664 # If there is a non-empty error log, and "single_module" 7665 # appears in it, assume the flag caused a linker warning 7666 if test -s conftest.err && $GREP single_module conftest.err; then 7667 cat conftest.err >&5 7668 # Otherwise, if the output was created with a 0 exit code from 7669 # the compiler, it worked. 7670 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7671 lt_cv_apple_cc_single_mod=yes 7672 else 7673 cat conftest.err >&5 7674 fi 7675 rm -rf libconftest.dylib* 7676 rm -f conftest.* 7677 fi 7678fi 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7680$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7681 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7683$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7684if ${lt_cv_ld_exported_symbols_list+:} false; then : 7685 $as_echo_n "(cached) " >&6 7686else 7687 lt_cv_ld_exported_symbols_list=no 7688 save_LDFLAGS=$LDFLAGS 7689 echo "_main" > conftest.sym 7690 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693 7694int 7695main () 7696{ 7697 7698 ; 7699 return 0; 7700} 7701_ACEOF 7702if ac_fn_c_try_link "$LINENO"; then : 7703 lt_cv_ld_exported_symbols_list=yes 7704else 7705 lt_cv_ld_exported_symbols_list=no 7706fi 7707rm -f core conftest.err conftest.$ac_objext \ 7708 conftest$ac_exeext conftest.$ac_ext 7709 LDFLAGS="$save_LDFLAGS" 7710 7711fi 7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7713$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7714 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7716$as_echo_n "checking for -force_load linker flag... " >&6; } 7717if ${lt_cv_ld_force_load+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 lt_cv_ld_force_load=no 7721 cat > conftest.c << _LT_EOF 7722int forced_loaded() { return 2;} 7723_LT_EOF 7724 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7725 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7726 echo "$AR cru libconftest.a conftest.o" >&5 7727 $AR cru libconftest.a conftest.o 2>&5 7728 echo "$RANLIB libconftest.a" >&5 7729 $RANLIB libconftest.a 2>&5 7730 cat > conftest.c << _LT_EOF 7731int main() { return 0;} 7732_LT_EOF 7733 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7734 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7735 _lt_result=$? 7736 if test -s conftest.err && $GREP force_load conftest.err; then 7737 cat conftest.err >&5 7738 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7739 lt_cv_ld_force_load=yes 7740 else 7741 cat conftest.err >&5 7742 fi 7743 rm -f conftest.err libconftest.a conftest conftest.c 7744 rm -rf conftest.dSYM 7745 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7748$as_echo "$lt_cv_ld_force_load" >&6; } 7749 case $host_os in 7750 rhapsody* | darwin1.[012]) 7751 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7752 darwin1.*) 7753 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7754 darwin*) # darwin 5.x on 7755 # if running on 10.5 or later, the deployment target defaults 7756 # to the OS version, if on x86, and 10.4, the deployment 7757 # target defaults to 10.4. Don't you love it? 7758 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7759 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7761 10.[012]*) 7762 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7763 10.*) 7764 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7765 esac 7766 ;; 7767 esac 7768 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7769 _lt_dar_single_mod='$single_module' 7770 fi 7771 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7772 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7773 else 7774 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7775 fi 7776 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7777 _lt_dsymutil='~$DSYMUTIL $lib || :' 7778 else 7779 _lt_dsymutil= 7780 fi 7781 ;; 7782 esac 7783 7784for ac_header in dlfcn.h 7785do : 7786 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7787" 7788if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7789 cat >>confdefs.h <<_ACEOF 7790#define HAVE_DLFCN_H 1 7791_ACEOF 7792 7793fi 7794 7795done 7796 7797 7798 7799 7800 7801# Set options 7802 7803 7804 7805 enable_dlopen=no 7806 7807 7808 enable_win32_dll=no 7809 7810 7811 # Check whether --enable-shared was given. 7812if test "${enable_shared+set}" = set; then : 7813 enableval=$enable_shared; p=${PACKAGE-default} 7814 case $enableval in 7815 yes) enable_shared=yes ;; 7816 no) enable_shared=no ;; 7817 *) 7818 enable_shared=no 7819 # Look at the argument we got. We use all the common list separators. 7820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7821 for pkg in $enableval; do 7822 IFS="$lt_save_ifs" 7823 if test "X$pkg" = "X$p"; then 7824 enable_shared=yes 7825 fi 7826 done 7827 IFS="$lt_save_ifs" 7828 ;; 7829 esac 7830else 7831 enable_shared=yes 7832fi 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 # Check whether --enable-static was given. 7843if test "${enable_static+set}" = set; then : 7844 enableval=$enable_static; p=${PACKAGE-default} 7845 case $enableval in 7846 yes) enable_static=yes ;; 7847 no) enable_static=no ;; 7848 *) 7849 enable_static=no 7850 # Look at the argument we got. We use all the common list separators. 7851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7852 for pkg in $enableval; do 7853 IFS="$lt_save_ifs" 7854 if test "X$pkg" = "X$p"; then 7855 enable_static=yes 7856 fi 7857 done 7858 IFS="$lt_save_ifs" 7859 ;; 7860 esac 7861else 7862 enable_static=yes 7863fi 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874# Check whether --with-pic was given. 7875if test "${with_pic+set}" = set; then : 7876 withval=$with_pic; lt_p=${PACKAGE-default} 7877 case $withval in 7878 yes|no) pic_mode=$withval ;; 7879 *) 7880 pic_mode=default 7881 # Look at the argument we got. We use all the common list separators. 7882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7883 for lt_pkg in $withval; do 7884 IFS="$lt_save_ifs" 7885 if test "X$lt_pkg" = "X$lt_p"; then 7886 pic_mode=yes 7887 fi 7888 done 7889 IFS="$lt_save_ifs" 7890 ;; 7891 esac 7892else 7893 pic_mode=default 7894fi 7895 7896 7897test -z "$pic_mode" && pic_mode=default 7898 7899 7900 7901 7902 7903 7904 7905 # Check whether --enable-fast-install was given. 7906if test "${enable_fast_install+set}" = set; then : 7907 enableval=$enable_fast_install; p=${PACKAGE-default} 7908 case $enableval in 7909 yes) enable_fast_install=yes ;; 7910 no) enable_fast_install=no ;; 7911 *) 7912 enable_fast_install=no 7913 # Look at the argument we got. We use all the common list separators. 7914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7915 for pkg in $enableval; do 7916 IFS="$lt_save_ifs" 7917 if test "X$pkg" = "X$p"; then 7918 enable_fast_install=yes 7919 fi 7920 done 7921 IFS="$lt_save_ifs" 7922 ;; 7923 esac 7924else 7925 enable_fast_install=yes 7926fi 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938# This can be used to rebuild libtool when needed 7939LIBTOOL_DEPS="$ltmain" 7940 7941# Always use our own libtool. 7942LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973test -z "$LN_S" && LN_S="ln -s" 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988if test -n "${ZSH_VERSION+set}" ; then 7989 setopt NO_GLOB_SUBST 7990fi 7991 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7993$as_echo_n "checking for objdir... " >&6; } 7994if ${lt_cv_objdir+:} false; then : 7995 $as_echo_n "(cached) " >&6 7996else 7997 rm -f .libs 2>/dev/null 7998mkdir .libs 2>/dev/null 7999if test -d .libs; then 8000 lt_cv_objdir=.libs 8001else 8002 # MS-DOS does not allow filenames that begin with a dot. 8003 lt_cv_objdir=_libs 8004fi 8005rmdir .libs 2>/dev/null 8006fi 8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8008$as_echo "$lt_cv_objdir" >&6; } 8009objdir=$lt_cv_objdir 8010 8011 8012 8013 8014 8015cat >>confdefs.h <<_ACEOF 8016#define LT_OBJDIR "$lt_cv_objdir/" 8017_ACEOF 8018 8019 8020 8021 8022case $host_os in 8023aix3*) 8024 # AIX sometimes has problems with the GCC collect2 program. For some 8025 # reason, if we set the COLLECT_NAMES environment variable, the problems 8026 # vanish in a puff of smoke. 8027 if test "X${COLLECT_NAMES+set}" != Xset; then 8028 COLLECT_NAMES= 8029 export COLLECT_NAMES 8030 fi 8031 ;; 8032esac 8033 8034# Global variables: 8035ofile=libtool 8036can_build_shared=yes 8037 8038# All known linkers require a `.a' archive for static linking (except MSVC, 8039# which needs '.lib'). 8040libext=a 8041 8042with_gnu_ld="$lt_cv_prog_gnu_ld" 8043 8044old_CC="$CC" 8045old_CFLAGS="$CFLAGS" 8046 8047# Set sane defaults for various variables 8048test -z "$CC" && CC=cc 8049test -z "$LTCC" && LTCC=$CC 8050test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8051test -z "$LD" && LD=ld 8052test -z "$ac_objext" && ac_objext=o 8053 8054for cc_temp in $compiler""; do 8055 case $cc_temp in 8056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8058 \-*) ;; 8059 *) break;; 8060 esac 8061done 8062cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8063 8064 8065# Only perform the check for file, if the check method requires it 8066test -z "$MAGIC_CMD" && MAGIC_CMD=file 8067case $deplibs_check_method in 8068file_magic*) 8069 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8071$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8072if ${lt_cv_path_MAGIC_CMD+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 case $MAGIC_CMD in 8076[\\/*] | ?:[\\/]*) 8077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8078 ;; 8079*) 8080 lt_save_MAGIC_CMD="$MAGIC_CMD" 8081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8083 for ac_dir in $ac_dummy; do 8084 IFS="$lt_save_ifs" 8085 test -z "$ac_dir" && ac_dir=. 8086 if test -f $ac_dir/${ac_tool_prefix}file; then 8087 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8088 if test -n "$file_magic_test_file"; then 8089 case $deplibs_check_method in 8090 "file_magic "*) 8091 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8094 $EGREP "$file_magic_regex" > /dev/null; then 8095 : 8096 else 8097 cat <<_LT_EOF 1>&2 8098 8099*** Warning: the command libtool uses to detect shared libraries, 8100*** $file_magic_cmd, produces output that libtool cannot recognize. 8101*** The result is that libtool may fail to recognize shared libraries 8102*** as such. This will affect the creation of libtool libraries that 8103*** depend on shared libraries, but programs linked with such libtool 8104*** libraries will work regardless of this problem. Nevertheless, you 8105*** may want to report the problem to your system manager and/or to 8106*** bug-libtool@gnu.org 8107 8108_LT_EOF 8109 fi ;; 8110 esac 8111 fi 8112 break 8113 fi 8114 done 8115 IFS="$lt_save_ifs" 8116 MAGIC_CMD="$lt_save_MAGIC_CMD" 8117 ;; 8118esac 8119fi 8120 8121MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8122if test -n "$MAGIC_CMD"; then 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8124$as_echo "$MAGIC_CMD" >&6; } 8125else 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8127$as_echo "no" >&6; } 8128fi 8129 8130 8131 8132 8133 8134if test -z "$lt_cv_path_MAGIC_CMD"; then 8135 if test -n "$ac_tool_prefix"; then 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8137$as_echo_n "checking for file... " >&6; } 8138if ${lt_cv_path_MAGIC_CMD+:} false; then : 8139 $as_echo_n "(cached) " >&6 8140else 8141 case $MAGIC_CMD in 8142[\\/*] | ?:[\\/]*) 8143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8144 ;; 8145*) 8146 lt_save_MAGIC_CMD="$MAGIC_CMD" 8147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8148 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8149 for ac_dir in $ac_dummy; do 8150 IFS="$lt_save_ifs" 8151 test -z "$ac_dir" && ac_dir=. 8152 if test -f $ac_dir/file; then 8153 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8154 if test -n "$file_magic_test_file"; then 8155 case $deplibs_check_method in 8156 "file_magic "*) 8157 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8160 $EGREP "$file_magic_regex" > /dev/null; then 8161 : 8162 else 8163 cat <<_LT_EOF 1>&2 8164 8165*** Warning: the command libtool uses to detect shared libraries, 8166*** $file_magic_cmd, produces output that libtool cannot recognize. 8167*** The result is that libtool may fail to recognize shared libraries 8168*** as such. This will affect the creation of libtool libraries that 8169*** depend on shared libraries, but programs linked with such libtool 8170*** libraries will work regardless of this problem. Nevertheless, you 8171*** may want to report the problem to your system manager and/or to 8172*** bug-libtool@gnu.org 8173 8174_LT_EOF 8175 fi ;; 8176 esac 8177 fi 8178 break 8179 fi 8180 done 8181 IFS="$lt_save_ifs" 8182 MAGIC_CMD="$lt_save_MAGIC_CMD" 8183 ;; 8184esac 8185fi 8186 8187MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8188if test -n "$MAGIC_CMD"; then 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8190$as_echo "$MAGIC_CMD" >&6; } 8191else 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8193$as_echo "no" >&6; } 8194fi 8195 8196 8197 else 8198 MAGIC_CMD=: 8199 fi 8200fi 8201 8202 fi 8203 ;; 8204esac 8205 8206# Use C for the default configuration in the libtool script 8207 8208lt_save_CC="$CC" 8209ac_ext=c 8210ac_cpp='$CPP $CPPFLAGS' 8211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8213ac_compiler_gnu=$ac_cv_c_compiler_gnu 8214 8215 8216# Source file extension for C test sources. 8217ac_ext=c 8218 8219# Object file extension for compiled C test sources. 8220objext=o 8221objext=$objext 8222 8223# Code to be used in simple compile tests 8224lt_simple_compile_test_code="int some_variable = 0;" 8225 8226# Code to be used in simple link tests 8227lt_simple_link_test_code='int main(){return(0);}' 8228 8229 8230 8231 8232 8233 8234 8235# If no C compiler was specified, use CC. 8236LTCC=${LTCC-"$CC"} 8237 8238# If no C compiler flags were specified, use CFLAGS. 8239LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8240 8241# Allow CC to be a program name with arguments. 8242compiler=$CC 8243 8244# Save the default compiler, since it gets overwritten when the other 8245# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8246compiler_DEFAULT=$CC 8247 8248# save warnings/boilerplate of simple test code 8249ac_outfile=conftest.$ac_objext 8250echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8252_lt_compiler_boilerplate=`cat conftest.err` 8253$RM conftest* 8254 8255ac_outfile=conftest.$ac_objext 8256echo "$lt_simple_link_test_code" >conftest.$ac_ext 8257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8258_lt_linker_boilerplate=`cat conftest.err` 8259$RM -r conftest* 8260 8261 8262if test -n "$compiler"; then 8263 8264lt_prog_compiler_no_builtin_flag= 8265 8266if test "$GCC" = yes; then 8267 case $cc_basename in 8268 nvcc*) 8269 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8270 *) 8271 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8272 esac 8273 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8275$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8276if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 lt_cv_prog_compiler_rtti_exceptions=no 8280 ac_outfile=conftest.$ac_objext 8281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8282 lt_compiler_flag="-fno-rtti -fno-exceptions" 8283 # Insert the option either (1) after the last *FLAGS variable, or 8284 # (2) before a word containing "conftest.", or (3) at the end. 8285 # Note that $ac_compile itself does not contain backslashes and begins 8286 # with a dollar sign (not a hyphen), so the echo should work correctly. 8287 # The option is referenced via a variable to avoid confusing sed. 8288 lt_compile=`echo "$ac_compile" | $SED \ 8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8291 -e 's:$: $lt_compiler_flag:'` 8292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8293 (eval "$lt_compile" 2>conftest.err) 8294 ac_status=$? 8295 cat conftest.err >&5 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 if (exit $ac_status) && test -s "$ac_outfile"; then 8298 # The compiler can only warn and ignore the option if not recognized 8299 # So say no if there are warnings other than the usual output. 8300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8303 lt_cv_prog_compiler_rtti_exceptions=yes 8304 fi 8305 fi 8306 $RM conftest* 8307 8308fi 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8310$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8311 8312if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8313 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8314else 8315 : 8316fi 8317 8318fi 8319 8320 8321 8322 8323 8324 8325 lt_prog_compiler_wl= 8326lt_prog_compiler_pic= 8327lt_prog_compiler_static= 8328 8329 8330 if test "$GCC" = yes; then 8331 lt_prog_compiler_wl='-Wl,' 8332 lt_prog_compiler_static='-static' 8333 8334 case $host_os in 8335 aix*) 8336 # All AIX code is PIC. 8337 if test "$host_cpu" = ia64; then 8338 # AIX 5 now supports IA64 processor 8339 lt_prog_compiler_static='-Bstatic' 8340 fi 8341 ;; 8342 8343 amigaos*) 8344 case $host_cpu in 8345 powerpc) 8346 # see comment about AmigaOS4 .so support 8347 lt_prog_compiler_pic='-fPIC' 8348 ;; 8349 m68k) 8350 # FIXME: we need at least 68020 code to build shared libraries, but 8351 # adding the `-m68020' flag to GCC prevents building anything better, 8352 # like `-m68040'. 8353 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8354 ;; 8355 esac 8356 ;; 8357 8358 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8359 # PIC is the default for these OSes. 8360 ;; 8361 8362 mingw* | cygwin* | pw32* | os2* | cegcc*) 8363 # This hack is so that the source file can tell whether it is being 8364 # built for inclusion in a dll (and should export symbols for example). 8365 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8366 # (--disable-auto-import) libraries 8367 lt_prog_compiler_pic='-DDLL_EXPORT' 8368 ;; 8369 8370 darwin* | rhapsody*) 8371 # PIC is the default on this platform 8372 # Common symbols not allowed in MH_DYLIB files 8373 lt_prog_compiler_pic='-fno-common' 8374 ;; 8375 8376 haiku*) 8377 # PIC is the default for Haiku. 8378 # The "-static" flag exists, but is broken. 8379 lt_prog_compiler_static= 8380 ;; 8381 8382 hpux*) 8383 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8384 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8385 # sets the default TLS model and affects inlining. 8386 case $host_cpu in 8387 hppa*64*) 8388 # +Z the default 8389 ;; 8390 *) 8391 lt_prog_compiler_pic='-fPIC' 8392 ;; 8393 esac 8394 ;; 8395 8396 interix[3-9]*) 8397 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8398 # Instead, we relocate shared libraries at runtime. 8399 ;; 8400 8401 msdosdjgpp*) 8402 # Just because we use GCC doesn't mean we suddenly get shared libraries 8403 # on systems that don't support them. 8404 lt_prog_compiler_can_build_shared=no 8405 enable_shared=no 8406 ;; 8407 8408 *nto* | *qnx*) 8409 # QNX uses GNU C++, but need to define -shared option too, otherwise 8410 # it will coredump. 8411 lt_prog_compiler_pic='-fPIC -shared' 8412 ;; 8413 8414 sysv4*MP*) 8415 if test -d /usr/nec; then 8416 lt_prog_compiler_pic=-Kconform_pic 8417 fi 8418 ;; 8419 8420 *) 8421 lt_prog_compiler_pic='-fPIC' 8422 ;; 8423 esac 8424 8425 case $cc_basename in 8426 nvcc*) # Cuda Compiler Driver 2.2 8427 lt_prog_compiler_wl='-Xlinker ' 8428 if test -n "$lt_prog_compiler_pic"; then 8429 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8430 fi 8431 ;; 8432 esac 8433 else 8434 # PORTME Check for flag to pass linker flags through the system compiler. 8435 case $host_os in 8436 aix*) 8437 lt_prog_compiler_wl='-Wl,' 8438 if test "$host_cpu" = ia64; then 8439 # AIX 5 now supports IA64 processor 8440 lt_prog_compiler_static='-Bstatic' 8441 else 8442 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8443 fi 8444 ;; 8445 8446 mingw* | cygwin* | pw32* | os2* | cegcc*) 8447 # This hack is so that the source file can tell whether it is being 8448 # built for inclusion in a dll (and should export symbols for example). 8449 lt_prog_compiler_pic='-DDLL_EXPORT' 8450 ;; 8451 8452 hpux9* | hpux10* | hpux11*) 8453 lt_prog_compiler_wl='-Wl,' 8454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8455 # not for PA HP-UX. 8456 case $host_cpu in 8457 hppa*64*|ia64*) 8458 # +Z the default 8459 ;; 8460 *) 8461 lt_prog_compiler_pic='+Z' 8462 ;; 8463 esac 8464 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8465 lt_prog_compiler_static='${wl}-a ${wl}archive' 8466 ;; 8467 8468 irix5* | irix6* | nonstopux*) 8469 lt_prog_compiler_wl='-Wl,' 8470 # PIC (with -KPIC) is the default. 8471 lt_prog_compiler_static='-non_shared' 8472 ;; 8473 8474 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8475 case $cc_basename in 8476 # old Intel for x86_64 which still supported -KPIC. 8477 ecc*) 8478 lt_prog_compiler_wl='-Wl,' 8479 lt_prog_compiler_pic='-KPIC' 8480 lt_prog_compiler_static='-static' 8481 ;; 8482 # icc used to be incompatible with GCC. 8483 # ICC 10 doesn't accept -KPIC any more. 8484 icc* | ifort*) 8485 lt_prog_compiler_wl='-Wl,' 8486 lt_prog_compiler_pic='-fPIC' 8487 lt_prog_compiler_static='-static' 8488 ;; 8489 # Lahey Fortran 8.1. 8490 lf95*) 8491 lt_prog_compiler_wl='-Wl,' 8492 lt_prog_compiler_pic='--shared' 8493 lt_prog_compiler_static='--static' 8494 ;; 8495 nagfor*) 8496 # NAG Fortran compiler 8497 lt_prog_compiler_wl='-Wl,-Wl,,' 8498 lt_prog_compiler_pic='-PIC' 8499 lt_prog_compiler_static='-Bstatic' 8500 ;; 8501 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8502 # Portland Group compilers (*not* the Pentium gcc compiler, 8503 # which looks to be a dead project) 8504 lt_prog_compiler_wl='-Wl,' 8505 lt_prog_compiler_pic='-fpic' 8506 lt_prog_compiler_static='-Bstatic' 8507 ;; 8508 ccc*) 8509 lt_prog_compiler_wl='-Wl,' 8510 # All Alpha code is PIC. 8511 lt_prog_compiler_static='-non_shared' 8512 ;; 8513 xl* | bgxl* | bgf* | mpixl*) 8514 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8515 lt_prog_compiler_wl='-Wl,' 8516 lt_prog_compiler_pic='-qpic' 8517 lt_prog_compiler_static='-qstaticlink' 8518 ;; 8519 *) 8520 case `$CC -V 2>&1 | sed 5q` in 8521 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8522 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8523 lt_prog_compiler_pic='-KPIC' 8524 lt_prog_compiler_static='-Bstatic' 8525 lt_prog_compiler_wl='' 8526 ;; 8527 *Sun\ F* | *Sun*Fortran*) 8528 lt_prog_compiler_pic='-KPIC' 8529 lt_prog_compiler_static='-Bstatic' 8530 lt_prog_compiler_wl='-Qoption ld ' 8531 ;; 8532 *Sun\ C*) 8533 # Sun C 5.9 8534 lt_prog_compiler_pic='-KPIC' 8535 lt_prog_compiler_static='-Bstatic' 8536 lt_prog_compiler_wl='-Wl,' 8537 ;; 8538 *Intel*\ [CF]*Compiler*) 8539 lt_prog_compiler_wl='-Wl,' 8540 lt_prog_compiler_pic='-fPIC' 8541 lt_prog_compiler_static='-static' 8542 ;; 8543 *Portland\ Group*) 8544 lt_prog_compiler_wl='-Wl,' 8545 lt_prog_compiler_pic='-fpic' 8546 lt_prog_compiler_static='-Bstatic' 8547 ;; 8548 esac 8549 ;; 8550 esac 8551 ;; 8552 8553 newsos6) 8554 lt_prog_compiler_pic='-KPIC' 8555 lt_prog_compiler_static='-Bstatic' 8556 ;; 8557 8558 *nto* | *qnx*) 8559 # QNX uses GNU C++, but need to define -shared option too, otherwise 8560 # it will coredump. 8561 lt_prog_compiler_pic='-fPIC -shared' 8562 ;; 8563 8564 osf3* | osf4* | osf5*) 8565 lt_prog_compiler_wl='-Wl,' 8566 # All OSF/1 code is PIC. 8567 lt_prog_compiler_static='-non_shared' 8568 ;; 8569 8570 rdos*) 8571 lt_prog_compiler_static='-non_shared' 8572 ;; 8573 8574 solaris*) 8575 lt_prog_compiler_pic='-KPIC' 8576 lt_prog_compiler_static='-Bstatic' 8577 case $cc_basename in 8578 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8579 lt_prog_compiler_wl='-Qoption ld ';; 8580 *) 8581 lt_prog_compiler_wl='-Wl,';; 8582 esac 8583 ;; 8584 8585 sunos4*) 8586 lt_prog_compiler_wl='-Qoption ld ' 8587 lt_prog_compiler_pic='-PIC' 8588 lt_prog_compiler_static='-Bstatic' 8589 ;; 8590 8591 sysv4 | sysv4.2uw2* | sysv4.3*) 8592 lt_prog_compiler_wl='-Wl,' 8593 lt_prog_compiler_pic='-KPIC' 8594 lt_prog_compiler_static='-Bstatic' 8595 ;; 8596 8597 sysv4*MP*) 8598 if test -d /usr/nec ;then 8599 lt_prog_compiler_pic='-Kconform_pic' 8600 lt_prog_compiler_static='-Bstatic' 8601 fi 8602 ;; 8603 8604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8605 lt_prog_compiler_wl='-Wl,' 8606 lt_prog_compiler_pic='-KPIC' 8607 lt_prog_compiler_static='-Bstatic' 8608 ;; 8609 8610 unicos*) 8611 lt_prog_compiler_wl='-Wl,' 8612 lt_prog_compiler_can_build_shared=no 8613 ;; 8614 8615 uts4*) 8616 lt_prog_compiler_pic='-pic' 8617 lt_prog_compiler_static='-Bstatic' 8618 ;; 8619 8620 *) 8621 lt_prog_compiler_can_build_shared=no 8622 ;; 8623 esac 8624 fi 8625 8626case $host_os in 8627 # For platforms which do not support PIC, -DPIC is meaningless: 8628 *djgpp*) 8629 lt_prog_compiler_pic= 8630 ;; 8631 *) 8632 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8633 ;; 8634esac 8635 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8637$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8638if ${lt_cv_prog_compiler_pic+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640else 8641 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8642fi 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8644$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8645lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8646 8647# 8648# Check to make sure the PIC flag actually works. 8649# 8650if test -n "$lt_prog_compiler_pic"; then 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8652$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8653if ${lt_cv_prog_compiler_pic_works+:} false; then : 8654 $as_echo_n "(cached) " >&6 8655else 8656 lt_cv_prog_compiler_pic_works=no 8657 ac_outfile=conftest.$ac_objext 8658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8659 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8660 # Insert the option either (1) after the last *FLAGS variable, or 8661 # (2) before a word containing "conftest.", or (3) at the end. 8662 # Note that $ac_compile itself does not contain backslashes and begins 8663 # with a dollar sign (not a hyphen), so the echo should work correctly. 8664 # The option is referenced via a variable to avoid confusing sed. 8665 lt_compile=`echo "$ac_compile" | $SED \ 8666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8668 -e 's:$: $lt_compiler_flag:'` 8669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8670 (eval "$lt_compile" 2>conftest.err) 8671 ac_status=$? 8672 cat conftest.err >&5 8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8674 if (exit $ac_status) && test -s "$ac_outfile"; then 8675 # The compiler can only warn and ignore the option if not recognized 8676 # So say no if there are warnings other than the usual output. 8677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8680 lt_cv_prog_compiler_pic_works=yes 8681 fi 8682 fi 8683 $RM conftest* 8684 8685fi 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8687$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8688 8689if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8690 case $lt_prog_compiler_pic in 8691 "" | " "*) ;; 8692 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8693 esac 8694else 8695 lt_prog_compiler_pic= 8696 lt_prog_compiler_can_build_shared=no 8697fi 8698 8699fi 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711# 8712# Check to make sure the static flag actually works. 8713# 8714wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8716$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8717if ${lt_cv_prog_compiler_static_works+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 lt_cv_prog_compiler_static_works=no 8721 save_LDFLAGS="$LDFLAGS" 8722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8723 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8725 # The linker can only warn and ignore the option if not recognized 8726 # So say no if there are warnings 8727 if test -s conftest.err; then 8728 # Append any errors to the config.log. 8729 cat conftest.err 1>&5 8730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8732 if diff conftest.exp conftest.er2 >/dev/null; then 8733 lt_cv_prog_compiler_static_works=yes 8734 fi 8735 else 8736 lt_cv_prog_compiler_static_works=yes 8737 fi 8738 fi 8739 $RM -r conftest* 8740 LDFLAGS="$save_LDFLAGS" 8741 8742fi 8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8744$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8745 8746if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8747 : 8748else 8749 lt_prog_compiler_static= 8750fi 8751 8752 8753 8754 8755 8756 8757 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8759$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8760if ${lt_cv_prog_compiler_c_o+:} false; then : 8761 $as_echo_n "(cached) " >&6 8762else 8763 lt_cv_prog_compiler_c_o=no 8764 $RM -r conftest 2>/dev/null 8765 mkdir conftest 8766 cd conftest 8767 mkdir out 8768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8769 8770 lt_compiler_flag="-o out/conftest2.$ac_objext" 8771 # Insert the option either (1) after the last *FLAGS variable, or 8772 # (2) before a word containing "conftest.", or (3) at the end. 8773 # Note that $ac_compile itself does not contain backslashes and begins 8774 # with a dollar sign (not a hyphen), so the echo should work correctly. 8775 lt_compile=`echo "$ac_compile" | $SED \ 8776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8778 -e 's:$: $lt_compiler_flag:'` 8779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8780 (eval "$lt_compile" 2>out/conftest.err) 8781 ac_status=$? 8782 cat out/conftest.err >&5 8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8784 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8785 then 8786 # The compiler can only warn and ignore the option if not recognized 8787 # So say no if there are warnings 8788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8791 lt_cv_prog_compiler_c_o=yes 8792 fi 8793 fi 8794 chmod u+w . 2>&5 8795 $RM conftest* 8796 # SGI C++ compiler will create directory out/ii_files/ for 8797 # template instantiation 8798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8799 $RM out/* && rmdir out 8800 cd .. 8801 $RM -r conftest 8802 $RM conftest* 8803 8804fi 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8806$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8807 8808 8809 8810 8811 8812 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8814$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8815if ${lt_cv_prog_compiler_c_o+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 lt_cv_prog_compiler_c_o=no 8819 $RM -r conftest 2>/dev/null 8820 mkdir conftest 8821 cd conftest 8822 mkdir out 8823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8824 8825 lt_compiler_flag="-o out/conftest2.$ac_objext" 8826 # Insert the option either (1) after the last *FLAGS variable, or 8827 # (2) before a word containing "conftest.", or (3) at the end. 8828 # Note that $ac_compile itself does not contain backslashes and begins 8829 # with a dollar sign (not a hyphen), so the echo should work correctly. 8830 lt_compile=`echo "$ac_compile" | $SED \ 8831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8833 -e 's:$: $lt_compiler_flag:'` 8834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8835 (eval "$lt_compile" 2>out/conftest.err) 8836 ac_status=$? 8837 cat out/conftest.err >&5 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8840 then 8841 # The compiler can only warn and ignore the option if not recognized 8842 # So say no if there are warnings 8843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8846 lt_cv_prog_compiler_c_o=yes 8847 fi 8848 fi 8849 chmod u+w . 2>&5 8850 $RM conftest* 8851 # SGI C++ compiler will create directory out/ii_files/ for 8852 # template instantiation 8853 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8854 $RM out/* && rmdir out 8855 cd .. 8856 $RM -r conftest 8857 $RM conftest* 8858 8859fi 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8861$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8862 8863 8864 8865 8866hard_links="nottested" 8867if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8868 # do not overwrite the value of need_locks provided by the user 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8870$as_echo_n "checking if we can lock with hard links... " >&6; } 8871 hard_links=yes 8872 $RM conftest* 8873 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8874 touch conftest.a 8875 ln conftest.a conftest.b 2>&5 || hard_links=no 8876 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8878$as_echo "$hard_links" >&6; } 8879 if test "$hard_links" = no; then 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8881$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8882 need_locks=warn 8883 fi 8884else 8885 need_locks=no 8886fi 8887 8888 8889 8890 8891 8892 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8894$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8895 8896 runpath_var= 8897 allow_undefined_flag= 8898 always_export_symbols=no 8899 archive_cmds= 8900 archive_expsym_cmds= 8901 compiler_needs_object=no 8902 enable_shared_with_static_runtimes=no 8903 export_dynamic_flag_spec= 8904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8905 hardcode_automatic=no 8906 hardcode_direct=no 8907 hardcode_direct_absolute=no 8908 hardcode_libdir_flag_spec= 8909 hardcode_libdir_separator= 8910 hardcode_minus_L=no 8911 hardcode_shlibpath_var=unsupported 8912 inherit_rpath=no 8913 link_all_deplibs=unknown 8914 module_cmds= 8915 module_expsym_cmds= 8916 old_archive_from_new_cmds= 8917 old_archive_from_expsyms_cmds= 8918 thread_safe_flag_spec= 8919 whole_archive_flag_spec= 8920 # include_expsyms should be a list of space-separated symbols to be *always* 8921 # included in the symbol list 8922 include_expsyms= 8923 # exclude_expsyms can be an extended regexp of symbols to exclude 8924 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8925 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8926 # as well as any symbol that contains `d'. 8927 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8929 # platforms (ab)use it in PIC code, but their linkers get confused if 8930 # the symbol is explicitly referenced. Since portable code cannot 8931 # rely on this symbol name, it's probably fine to never include it in 8932 # preloaded symbol tables. 8933 # Exclude shared library initialization/finalization symbols. 8934 extract_expsyms_cmds= 8935 8936 case $host_os in 8937 cygwin* | mingw* | pw32* | cegcc*) 8938 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8939 # When not using gcc, we currently assume that we are using 8940 # Microsoft Visual C++. 8941 if test "$GCC" != yes; then 8942 with_gnu_ld=no 8943 fi 8944 ;; 8945 interix*) 8946 # we just hope/assume this is gcc and not c89 (= MSVC++) 8947 with_gnu_ld=yes 8948 ;; 8949 openbsd*) 8950 with_gnu_ld=no 8951 ;; 8952 esac 8953 8954 ld_shlibs=yes 8955 8956 # On some targets, GNU ld is compatible enough with the native linker 8957 # that we're better off using the native interface for both. 8958 lt_use_gnu_ld_interface=no 8959 if test "$with_gnu_ld" = yes; then 8960 case $host_os in 8961 aix*) 8962 # The AIX port of GNU ld has always aspired to compatibility 8963 # with the native linker. However, as the warning in the GNU ld 8964 # block says, versions before 2.19.5* couldn't really create working 8965 # shared libraries, regardless of the interface used. 8966 case `$LD -v 2>&1` in 8967 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8968 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8969 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8970 *) 8971 lt_use_gnu_ld_interface=yes 8972 ;; 8973 esac 8974 ;; 8975 *) 8976 lt_use_gnu_ld_interface=yes 8977 ;; 8978 esac 8979 fi 8980 8981 if test "$lt_use_gnu_ld_interface" = yes; then 8982 # If archive_cmds runs LD, not CC, wlarc should be empty 8983 wlarc='${wl}' 8984 8985 # Set some defaults for GNU ld with shared library support. These 8986 # are reset later if shared libraries are not supported. Putting them 8987 # here allows them to be overridden if necessary. 8988 runpath_var=LD_RUN_PATH 8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8990 export_dynamic_flag_spec='${wl}--export-dynamic' 8991 # ancient GNU ld didn't support --whole-archive et. al. 8992 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8993 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8994 else 8995 whole_archive_flag_spec= 8996 fi 8997 supports_anon_versioning=no 8998 case `$LD -v 2>&1` in 8999 *GNU\ gold*) supports_anon_versioning=yes ;; 9000 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9001 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9002 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9003 *\ 2.11.*) ;; # other 2.11 versions 9004 *) supports_anon_versioning=yes ;; 9005 esac 9006 9007 # See if GNU ld supports shared libraries. 9008 case $host_os in 9009 aix[3-9]*) 9010 # On AIX/PPC, the GNU linker is very broken 9011 if test "$host_cpu" != ia64; then 9012 ld_shlibs=no 9013 cat <<_LT_EOF 1>&2 9014 9015*** Warning: the GNU linker, at least up to release 2.19, is reported 9016*** to be unable to reliably create shared libraries on AIX. 9017*** Therefore, libtool is disabling shared libraries support. If you 9018*** really care for shared libraries, you may want to install binutils 9019*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9020*** You will then need to restart the configuration process. 9021 9022_LT_EOF 9023 fi 9024 ;; 9025 9026 amigaos*) 9027 case $host_cpu in 9028 powerpc) 9029 # see comment about AmigaOS4 .so support 9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9031 archive_expsym_cmds='' 9032 ;; 9033 m68k) 9034 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)' 9035 hardcode_libdir_flag_spec='-L$libdir' 9036 hardcode_minus_L=yes 9037 ;; 9038 esac 9039 ;; 9040 9041 beos*) 9042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9043 allow_undefined_flag=unsupported 9044 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9045 # support --undefined. This deserves some investigation. FIXME 9046 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9047 else 9048 ld_shlibs=no 9049 fi 9050 ;; 9051 9052 cygwin* | mingw* | pw32* | cegcc*) 9053 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9054 # as there is no search path for DLLs. 9055 hardcode_libdir_flag_spec='-L$libdir' 9056 export_dynamic_flag_spec='${wl}--export-all-symbols' 9057 allow_undefined_flag=unsupported 9058 always_export_symbols=no 9059 enable_shared_with_static_runtimes=yes 9060 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' 9061 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9062 9063 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9065 # If the export-symbols file already is a .def file (1st line 9066 # is EXPORTS), use it as is; otherwise, prepend... 9067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9068 cp $export_symbols $output_objdir/$soname.def; 9069 else 9070 echo EXPORTS > $output_objdir/$soname.def; 9071 cat $export_symbols >> $output_objdir/$soname.def; 9072 fi~ 9073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9074 else 9075 ld_shlibs=no 9076 fi 9077 ;; 9078 9079 haiku*) 9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9081 link_all_deplibs=yes 9082 ;; 9083 9084 interix[3-9]*) 9085 hardcode_direct=no 9086 hardcode_shlibpath_var=no 9087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9088 export_dynamic_flag_spec='${wl}-E' 9089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9090 # Instead, shared libraries are loaded at an image base (0x10000000 by 9091 # default) and relocated if they conflict, which is a slow very memory 9092 # consuming and fragmenting process. To avoid this, we pick a random, 9093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9094 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9096 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' 9097 ;; 9098 9099 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9100 tmp_diet=no 9101 if test "$host_os" = linux-dietlibc; then 9102 case $cc_basename in 9103 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9104 esac 9105 fi 9106 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9107 && test "$tmp_diet" = no 9108 then 9109 tmp_addflag=' $pic_flag' 9110 tmp_sharedflag='-shared' 9111 case $cc_basename,$host_cpu in 9112 pgcc*) # Portland Group C compiler 9113 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' 9114 tmp_addflag=' $pic_flag' 9115 ;; 9116 pgf77* | pgf90* | pgf95* | pgfortran*) 9117 # Portland Group f77 and f90 compilers 9118 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' 9119 tmp_addflag=' $pic_flag -Mnomain' ;; 9120 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9121 tmp_addflag=' -i_dynamic' ;; 9122 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9123 tmp_addflag=' -i_dynamic -nofor_main' ;; 9124 ifc* | ifort*) # Intel Fortran compiler 9125 tmp_addflag=' -nofor_main' ;; 9126 lf95*) # Lahey Fortran 8.1 9127 whole_archive_flag_spec= 9128 tmp_sharedflag='--shared' ;; 9129 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9130 tmp_sharedflag='-qmkshrobj' 9131 tmp_addflag= ;; 9132 nvcc*) # Cuda Compiler Driver 2.2 9133 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' 9134 compiler_needs_object=yes 9135 ;; 9136 esac 9137 case `$CC -V 2>&1 | sed 5q` in 9138 *Sun\ C*) # Sun C 5.9 9139 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' 9140 compiler_needs_object=yes 9141 tmp_sharedflag='-G' ;; 9142 *Sun\ F*) # Sun Fortran 8.3 9143 tmp_sharedflag='-G' ;; 9144 esac 9145 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9146 9147 if test "x$supports_anon_versioning" = xyes; then 9148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9150 echo "local: *; };" >> $output_objdir/$libname.ver~ 9151 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9152 fi 9153 9154 case $cc_basename in 9155 xlf* | bgf* | bgxlf* | mpixlf*) 9156 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9157 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9159 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9160 if test "x$supports_anon_versioning" = xyes; then 9161 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9163 echo "local: *; };" >> $output_objdir/$libname.ver~ 9164 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9165 fi 9166 ;; 9167 esac 9168 else 9169 ld_shlibs=no 9170 fi 9171 ;; 9172 9173 netbsd*) 9174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9175 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9176 wlarc= 9177 else 9178 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9179 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9180 fi 9181 ;; 9182 9183 solaris*) 9184 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9185 ld_shlibs=no 9186 cat <<_LT_EOF 1>&2 9187 9188*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9189*** create shared libraries on Solaris systems. Therefore, libtool 9190*** is disabling shared libraries support. We urge you to upgrade GNU 9191*** binutils to release 2.9.1 or newer. Another option is to modify 9192*** your PATH or compiler configuration so that the native linker is 9193*** used, and then restart. 9194 9195_LT_EOF 9196 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9198 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9199 else 9200 ld_shlibs=no 9201 fi 9202 ;; 9203 9204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9205 case `$LD -v 2>&1` in 9206 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9207 ld_shlibs=no 9208 cat <<_LT_EOF 1>&2 9209 9210*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9211*** reliably create shared libraries on SCO systems. Therefore, libtool 9212*** is disabling shared libraries support. We urge you to upgrade GNU 9213*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9214*** your PATH or compiler configuration so that the native linker is 9215*** used, and then restart. 9216 9217_LT_EOF 9218 ;; 9219 *) 9220 # For security reasons, it is highly recommended that you always 9221 # use absolute paths for naming shared libraries, and exclude the 9222 # DT_RUNPATH tag from executables and libraries. But doing so 9223 # requires that you compile everything twice, which is a pain. 9224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9228 else 9229 ld_shlibs=no 9230 fi 9231 ;; 9232 esac 9233 ;; 9234 9235 sunos4*) 9236 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9237 wlarc= 9238 hardcode_direct=yes 9239 hardcode_shlibpath_var=no 9240 ;; 9241 9242 *) 9243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9244 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9245 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9246 else 9247 ld_shlibs=no 9248 fi 9249 ;; 9250 esac 9251 9252 if test "$ld_shlibs" = no; then 9253 runpath_var= 9254 hardcode_libdir_flag_spec= 9255 export_dynamic_flag_spec= 9256 whole_archive_flag_spec= 9257 fi 9258 else 9259 # PORTME fill in a description of your system's linker (not GNU ld) 9260 case $host_os in 9261 aix3*) 9262 allow_undefined_flag=unsupported 9263 always_export_symbols=yes 9264 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' 9265 # Note: this linker hardcodes the directories in LIBPATH if there 9266 # are no directories specified by -L. 9267 hardcode_minus_L=yes 9268 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9269 # Neither direct hardcoding nor static linking is supported with a 9270 # broken collect2. 9271 hardcode_direct=unsupported 9272 fi 9273 ;; 9274 9275 aix[4-9]*) 9276 if test "$host_cpu" = ia64; then 9277 # On IA64, the linker does run time linking by default, so we don't 9278 # have to do anything special. 9279 aix_use_runtimelinking=no 9280 exp_sym_flag='-Bexport' 9281 no_entry_flag="" 9282 else 9283 # If we're using GNU nm, then we don't want the "-C" option. 9284 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9285 # Also, AIX nm treats weak defined symbols like other global 9286 # defined symbols, whereas GNU nm marks them as "W". 9287 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9288 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9289 else 9290 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9291 fi 9292 aix_use_runtimelinking=no 9293 9294 # Test if we are trying to use run time linking or normal 9295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9296 # need to do runtime linking. 9297 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9298 for ld_flag in $LDFLAGS; do 9299 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9300 aix_use_runtimelinking=yes 9301 break 9302 fi 9303 done 9304 ;; 9305 esac 9306 9307 exp_sym_flag='-bexport' 9308 no_entry_flag='-bnoentry' 9309 fi 9310 9311 # When large executables or shared objects are built, AIX ld can 9312 # have problems creating the table of contents. If linking a library 9313 # or program results in "error TOC overflow" add -mminimal-toc to 9314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9316 9317 archive_cmds='' 9318 hardcode_direct=yes 9319 hardcode_direct_absolute=yes 9320 hardcode_libdir_separator=':' 9321 link_all_deplibs=yes 9322 file_list_spec='${wl}-f,' 9323 9324 if test "$GCC" = yes; then 9325 case $host_os in aix4.[012]|aix4.[012].*) 9326 # We only want to do this on AIX 4.2 and lower, the check 9327 # below for broken collect2 doesn't work under 4.3+ 9328 collect2name=`${CC} -print-prog-name=collect2` 9329 if test -f "$collect2name" && 9330 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9331 then 9332 # We have reworked collect2 9333 : 9334 else 9335 # We have old collect2 9336 hardcode_direct=unsupported 9337 # It fails to find uninstalled libraries when the uninstalled 9338 # path is not listed in the libpath. Setting hardcode_minus_L 9339 # to unsupported forces relinking 9340 hardcode_minus_L=yes 9341 hardcode_libdir_flag_spec='-L$libdir' 9342 hardcode_libdir_separator= 9343 fi 9344 ;; 9345 esac 9346 shared_flag='-shared' 9347 if test "$aix_use_runtimelinking" = yes; then 9348 shared_flag="$shared_flag "'${wl}-G' 9349 fi 9350 else 9351 # not using gcc 9352 if test "$host_cpu" = ia64; then 9353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9354 # chokes on -Wl,-G. The following line is correct: 9355 shared_flag='-G' 9356 else 9357 if test "$aix_use_runtimelinking" = yes; then 9358 shared_flag='${wl}-G' 9359 else 9360 shared_flag='${wl}-bM:SRE' 9361 fi 9362 fi 9363 fi 9364 9365 export_dynamic_flag_spec='${wl}-bexpall' 9366 # It seems that -bexpall does not export symbols beginning with 9367 # underscore (_), so it is better to generate a list of symbols to export. 9368 always_export_symbols=yes 9369 if test "$aix_use_runtimelinking" = yes; then 9370 # Warning - without using the other runtime loading flags (-brtl), 9371 # -berok will link without error, but may produce a broken library. 9372 allow_undefined_flag='-berok' 9373 # Determine the default libpath from the value encoded in an 9374 # empty executable. 9375 if test "${lt_cv_aix_libpath+set}" = set; then 9376 aix_libpath=$lt_cv_aix_libpath 9377else 9378 if ${lt_cv_aix_libpath_+:} false; then : 9379 $as_echo_n "(cached) " >&6 9380else 9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382/* end confdefs.h. */ 9383 9384int 9385main () 9386{ 9387 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392if ac_fn_c_try_link "$LINENO"; then : 9393 9394 lt_aix_libpath_sed=' 9395 /Import File Strings/,/^$/ { 9396 /^0/ { 9397 s/^0 *\([^ ]*\) *$/\1/ 9398 p 9399 } 9400 }' 9401 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9402 # Check for a 64-bit object if we didn't find anything. 9403 if test -z "$lt_cv_aix_libpath_"; then 9404 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9405 fi 9406fi 9407rm -f core conftest.err conftest.$ac_objext \ 9408 conftest$ac_exeext conftest.$ac_ext 9409 if test -z "$lt_cv_aix_libpath_"; then 9410 lt_cv_aix_libpath_="/usr/lib:/lib" 9411 fi 9412 9413fi 9414 9415 aix_libpath=$lt_cv_aix_libpath_ 9416fi 9417 9418 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9419 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9420 else 9421 if test "$host_cpu" = ia64; then 9422 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9423 allow_undefined_flag="-z nodefs" 9424 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" 9425 else 9426 # Determine the default libpath from the value encoded in an 9427 # empty executable. 9428 if test "${lt_cv_aix_libpath+set}" = set; then 9429 aix_libpath=$lt_cv_aix_libpath 9430else 9431 if ${lt_cv_aix_libpath_+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9435/* end confdefs.h. */ 9436 9437int 9438main () 9439{ 9440 9441 ; 9442 return 0; 9443} 9444_ACEOF 9445if ac_fn_c_try_link "$LINENO"; then : 9446 9447 lt_aix_libpath_sed=' 9448 /Import File Strings/,/^$/ { 9449 /^0/ { 9450 s/^0 *\([^ ]*\) *$/\1/ 9451 p 9452 } 9453 }' 9454 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9455 # Check for a 64-bit object if we didn't find anything. 9456 if test -z "$lt_cv_aix_libpath_"; then 9457 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9458 fi 9459fi 9460rm -f core conftest.err conftest.$ac_objext \ 9461 conftest$ac_exeext conftest.$ac_ext 9462 if test -z "$lt_cv_aix_libpath_"; then 9463 lt_cv_aix_libpath_="/usr/lib:/lib" 9464 fi 9465 9466fi 9467 9468 aix_libpath=$lt_cv_aix_libpath_ 9469fi 9470 9471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9472 # Warning - without using the other run time loading flags, 9473 # -berok will link without error, but may produce a broken library. 9474 no_undefined_flag=' ${wl}-bernotok' 9475 allow_undefined_flag=' ${wl}-berok' 9476 if test "$with_gnu_ld" = yes; then 9477 # We only use this code for GNU lds that support --whole-archive. 9478 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9479 else 9480 # Exported symbols can be pulled into shared objects from archives 9481 whole_archive_flag_spec='$convenience' 9482 fi 9483 archive_cmds_need_lc=yes 9484 # This is similar to how AIX traditionally builds its shared libraries. 9485 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9486 fi 9487 fi 9488 ;; 9489 9490 amigaos*) 9491 case $host_cpu in 9492 powerpc) 9493 # see comment about AmigaOS4 .so support 9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9495 archive_expsym_cmds='' 9496 ;; 9497 m68k) 9498 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)' 9499 hardcode_libdir_flag_spec='-L$libdir' 9500 hardcode_minus_L=yes 9501 ;; 9502 esac 9503 ;; 9504 9505 bsdi[45]*) 9506 export_dynamic_flag_spec=-rdynamic 9507 ;; 9508 9509 cygwin* | mingw* | pw32* | cegcc*) 9510 # When not using gcc, we currently assume that we are using 9511 # Microsoft Visual C++. 9512 # hardcode_libdir_flag_spec is actually meaningless, as there is 9513 # no search path for DLLs. 9514 case $cc_basename in 9515 cl*) 9516 # Native MSVC 9517 hardcode_libdir_flag_spec=' ' 9518 allow_undefined_flag=unsupported 9519 always_export_symbols=yes 9520 file_list_spec='@' 9521 # Tell ltmain to make .lib files, not .a files. 9522 libext=lib 9523 # Tell ltmain to make .dll files, not .so files. 9524 shrext_cmds=".dll" 9525 # FIXME: Setting linknames here is a bad hack. 9526 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9527 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9528 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9529 else 9530 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9531 fi~ 9532 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9533 linknames=' 9534 # The linker will not automatically build a static lib if we build a DLL. 9535 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9536 enable_shared_with_static_runtimes=yes 9537 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9539 # Don't use ranlib 9540 old_postinstall_cmds='chmod 644 $oldlib' 9541 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9542 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9543 case $lt_outputfile in 9544 *.exe|*.EXE) ;; 9545 *) 9546 lt_outputfile="$lt_outputfile.exe" 9547 lt_tool_outputfile="$lt_tool_outputfile.exe" 9548 ;; 9549 esac~ 9550 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9551 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9552 $RM "$lt_outputfile.manifest"; 9553 fi' 9554 ;; 9555 *) 9556 # Assume MSVC wrapper 9557 hardcode_libdir_flag_spec=' ' 9558 allow_undefined_flag=unsupported 9559 # Tell ltmain to make .lib files, not .a files. 9560 libext=lib 9561 # Tell ltmain to make .dll files, not .so files. 9562 shrext_cmds=".dll" 9563 # FIXME: Setting linknames here is a bad hack. 9564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9565 # The linker will automatically build a .lib file if we build a DLL. 9566 old_archive_from_new_cmds='true' 9567 # FIXME: Should let the user specify the lib program. 9568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9569 enable_shared_with_static_runtimes=yes 9570 ;; 9571 esac 9572 ;; 9573 9574 darwin* | rhapsody*) 9575 9576 9577 archive_cmds_need_lc=no 9578 hardcode_direct=no 9579 hardcode_automatic=yes 9580 hardcode_shlibpath_var=unsupported 9581 if test "$lt_cv_ld_force_load" = "yes"; then 9582 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\"`' 9583 9584 else 9585 whole_archive_flag_spec='' 9586 fi 9587 link_all_deplibs=yes 9588 allow_undefined_flag="$_lt_dar_allow_undefined" 9589 case $cc_basename in 9590 ifort*) _lt_dar_can_shared=yes ;; 9591 *) _lt_dar_can_shared=$GCC ;; 9592 esac 9593 if test "$_lt_dar_can_shared" = "yes"; then 9594 output_verbose_link_cmd=func_echo_all 9595 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9596 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9597 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}" 9598 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}" 9599 9600 else 9601 ld_shlibs=no 9602 fi 9603 9604 ;; 9605 9606 dgux*) 9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9608 hardcode_libdir_flag_spec='-L$libdir' 9609 hardcode_shlibpath_var=no 9610 ;; 9611 9612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9613 # support. Future versions do this automatically, but an explicit c++rt0.o 9614 # does not break anything, and helps significantly (at the cost of a little 9615 # extra space). 9616 freebsd2.2*) 9617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9618 hardcode_libdir_flag_spec='-R$libdir' 9619 hardcode_direct=yes 9620 hardcode_shlibpath_var=no 9621 ;; 9622 9623 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9624 freebsd2.*) 9625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9626 hardcode_direct=yes 9627 hardcode_minus_L=yes 9628 hardcode_shlibpath_var=no 9629 ;; 9630 9631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9632 freebsd* | dragonfly*) 9633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9634 hardcode_libdir_flag_spec='-R$libdir' 9635 hardcode_direct=yes 9636 hardcode_shlibpath_var=no 9637 ;; 9638 9639 hpux9*) 9640 if test "$GCC" = yes; then 9641 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9642 else 9643 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9644 fi 9645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9646 hardcode_libdir_separator=: 9647 hardcode_direct=yes 9648 9649 # hardcode_minus_L: Not really in the search PATH, 9650 # but as the default location of the library. 9651 hardcode_minus_L=yes 9652 export_dynamic_flag_spec='${wl}-E' 9653 ;; 9654 9655 hpux10*) 9656 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9657 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9658 else 9659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9660 fi 9661 if test "$with_gnu_ld" = no; then 9662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9663 hardcode_libdir_separator=: 9664 hardcode_direct=yes 9665 hardcode_direct_absolute=yes 9666 export_dynamic_flag_spec='${wl}-E' 9667 # hardcode_minus_L: Not really in the search PATH, 9668 # but as the default location of the library. 9669 hardcode_minus_L=yes 9670 fi 9671 ;; 9672 9673 hpux11*) 9674 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9675 case $host_cpu in 9676 hppa*64*) 9677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9678 ;; 9679 ia64*) 9680 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9681 ;; 9682 *) 9683 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9684 ;; 9685 esac 9686 else 9687 case $host_cpu in 9688 hppa*64*) 9689 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9690 ;; 9691 ia64*) 9692 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9693 ;; 9694 *) 9695 9696 # Older versions of the 11.00 compiler do not understand -b yet 9697 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9699$as_echo_n "checking if $CC understands -b... " >&6; } 9700if ${lt_cv_prog_compiler__b+:} false; then : 9701 $as_echo_n "(cached) " >&6 9702else 9703 lt_cv_prog_compiler__b=no 9704 save_LDFLAGS="$LDFLAGS" 9705 LDFLAGS="$LDFLAGS -b" 9706 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9708 # The linker can only warn and ignore the option if not recognized 9709 # So say no if there are warnings 9710 if test -s conftest.err; then 9711 # Append any errors to the config.log. 9712 cat conftest.err 1>&5 9713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9715 if diff conftest.exp conftest.er2 >/dev/null; then 9716 lt_cv_prog_compiler__b=yes 9717 fi 9718 else 9719 lt_cv_prog_compiler__b=yes 9720 fi 9721 fi 9722 $RM -r conftest* 9723 LDFLAGS="$save_LDFLAGS" 9724 9725fi 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9727$as_echo "$lt_cv_prog_compiler__b" >&6; } 9728 9729if test x"$lt_cv_prog_compiler__b" = xyes; then 9730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9731else 9732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9733fi 9734 9735 ;; 9736 esac 9737 fi 9738 if test "$with_gnu_ld" = no; then 9739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9740 hardcode_libdir_separator=: 9741 9742 case $host_cpu in 9743 hppa*64*|ia64*) 9744 hardcode_direct=no 9745 hardcode_shlibpath_var=no 9746 ;; 9747 *) 9748 hardcode_direct=yes 9749 hardcode_direct_absolute=yes 9750 export_dynamic_flag_spec='${wl}-E' 9751 9752 # hardcode_minus_L: Not really in the search PATH, 9753 # but as the default location of the library. 9754 hardcode_minus_L=yes 9755 ;; 9756 esac 9757 fi 9758 ;; 9759 9760 irix5* | irix6* | nonstopux*) 9761 if test "$GCC" = yes; then 9762 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' 9763 # Try to use the -exported_symbol ld option, if it does not 9764 # work, assume that -exports_file does not work either and 9765 # implicitly export all symbols. 9766 # This should be the same for all languages, so no per-tag cache variable. 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9768$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9769if ${lt_cv_irix_exported_symbol+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771else 9772 save_LDFLAGS="$LDFLAGS" 9773 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776int foo (void) { return 0; } 9777_ACEOF 9778if ac_fn_c_try_link "$LINENO"; then : 9779 lt_cv_irix_exported_symbol=yes 9780else 9781 lt_cv_irix_exported_symbol=no 9782fi 9783rm -f core conftest.err conftest.$ac_objext \ 9784 conftest$ac_exeext conftest.$ac_ext 9785 LDFLAGS="$save_LDFLAGS" 9786fi 9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9788$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9789 if test "$lt_cv_irix_exported_symbol" = yes; then 9790 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' 9791 fi 9792 else 9793 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' 9794 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' 9795 fi 9796 archive_cmds_need_lc='no' 9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9798 hardcode_libdir_separator=: 9799 inherit_rpath=yes 9800 link_all_deplibs=yes 9801 ;; 9802 9803 netbsd*) 9804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9806 else 9807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9808 fi 9809 hardcode_libdir_flag_spec='-R$libdir' 9810 hardcode_direct=yes 9811 hardcode_shlibpath_var=no 9812 ;; 9813 9814 newsos6) 9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9816 hardcode_direct=yes 9817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9818 hardcode_libdir_separator=: 9819 hardcode_shlibpath_var=no 9820 ;; 9821 9822 *nto* | *qnx*) 9823 ;; 9824 9825 openbsd*) 9826 if test -f /usr/libexec/ld.so; then 9827 hardcode_direct=yes 9828 hardcode_shlibpath_var=no 9829 hardcode_direct_absolute=yes 9830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9832 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9834 export_dynamic_flag_spec='${wl}-E' 9835 else 9836 case $host_os in 9837 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9839 hardcode_libdir_flag_spec='-R$libdir' 9840 ;; 9841 *) 9842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9844 ;; 9845 esac 9846 fi 9847 else 9848 ld_shlibs=no 9849 fi 9850 ;; 9851 9852 os2*) 9853 hardcode_libdir_flag_spec='-L$libdir' 9854 hardcode_minus_L=yes 9855 allow_undefined_flag=unsupported 9856 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9857 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9858 ;; 9859 9860 osf3*) 9861 if test "$GCC" = yes; then 9862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9863 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' 9864 else 9865 allow_undefined_flag=' -expect_unresolved \*' 9866 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' 9867 fi 9868 archive_cmds_need_lc='no' 9869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9870 hardcode_libdir_separator=: 9871 ;; 9872 9873 osf4* | osf5*) # as osf3* with the addition of -msym flag 9874 if test "$GCC" = yes; then 9875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9876 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' 9877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9878 else 9879 allow_undefined_flag=' -expect_unresolved \*' 9880 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' 9881 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~ 9882 $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' 9883 9884 # Both c and cxx compiler support -rpath directly 9885 hardcode_libdir_flag_spec='-rpath $libdir' 9886 fi 9887 archive_cmds_need_lc='no' 9888 hardcode_libdir_separator=: 9889 ;; 9890 9891 solaris*) 9892 no_undefined_flag=' -z defs' 9893 if test "$GCC" = yes; then 9894 wlarc='${wl}' 9895 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9897 $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' 9898 else 9899 case `$CC -V 2>&1` in 9900 *"Compilers 5.0"*) 9901 wlarc='' 9902 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9905 ;; 9906 *) 9907 wlarc='${wl}' 9908 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9910 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9911 ;; 9912 esac 9913 fi 9914 hardcode_libdir_flag_spec='-R$libdir' 9915 hardcode_shlibpath_var=no 9916 case $host_os in 9917 solaris2.[0-5] | solaris2.[0-5].*) ;; 9918 *) 9919 # The compiler driver will combine and reorder linker options, 9920 # but understands `-z linker_flag'. GCC discards it without `$wl', 9921 # but is careful enough not to reorder. 9922 # Supported since Solaris 2.6 (maybe 2.5.1?) 9923 if test "$GCC" = yes; then 9924 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9925 else 9926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9927 fi 9928 ;; 9929 esac 9930 link_all_deplibs=yes 9931 ;; 9932 9933 sunos4*) 9934 if test "x$host_vendor" = xsequent; then 9935 # Use $CC to link under sequent, because it throws in some extra .o 9936 # files that make .init and .fini sections work. 9937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9938 else 9939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9940 fi 9941 hardcode_libdir_flag_spec='-L$libdir' 9942 hardcode_direct=yes 9943 hardcode_minus_L=yes 9944 hardcode_shlibpath_var=no 9945 ;; 9946 9947 sysv4) 9948 case $host_vendor in 9949 sni) 9950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9951 hardcode_direct=yes # is this really true??? 9952 ;; 9953 siemens) 9954 ## LD is ld it makes a PLAMLIB 9955 ## CC just makes a GrossModule. 9956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9957 reload_cmds='$CC -r -o $output$reload_objs' 9958 hardcode_direct=no 9959 ;; 9960 motorola) 9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9963 ;; 9964 esac 9965 runpath_var='LD_RUN_PATH' 9966 hardcode_shlibpath_var=no 9967 ;; 9968 9969 sysv4.3*) 9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9971 hardcode_shlibpath_var=no 9972 export_dynamic_flag_spec='-Bexport' 9973 ;; 9974 9975 sysv4*MP*) 9976 if test -d /usr/nec; then 9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9978 hardcode_shlibpath_var=no 9979 runpath_var=LD_RUN_PATH 9980 hardcode_runpath_var=yes 9981 ld_shlibs=yes 9982 fi 9983 ;; 9984 9985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9986 no_undefined_flag='${wl}-z,text' 9987 archive_cmds_need_lc=no 9988 hardcode_shlibpath_var=no 9989 runpath_var='LD_RUN_PATH' 9990 9991 if test "$GCC" = yes; then 9992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9994 else 9995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9997 fi 9998 ;; 9999 10000 sysv5* | sco3.2v5* | sco5v6*) 10001 # Note: We can NOT use -z defs as we might desire, because we do not 10002 # link with -lc, and that would cause any symbols used from libc to 10003 # always be unresolved, which means just about no library would 10004 # ever link correctly. If we're not using GNU ld we use -z text 10005 # though, which does catch some bad symbols but isn't as heavy-handed 10006 # as -z defs. 10007 no_undefined_flag='${wl}-z,text' 10008 allow_undefined_flag='${wl}-z,nodefs' 10009 archive_cmds_need_lc=no 10010 hardcode_shlibpath_var=no 10011 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10012 hardcode_libdir_separator=':' 10013 link_all_deplibs=yes 10014 export_dynamic_flag_spec='${wl}-Bexport' 10015 runpath_var='LD_RUN_PATH' 10016 10017 if test "$GCC" = yes; then 10018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10020 else 10021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10023 fi 10024 ;; 10025 10026 uts4*) 10027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10028 hardcode_libdir_flag_spec='-L$libdir' 10029 hardcode_shlibpath_var=no 10030 ;; 10031 10032 *) 10033 ld_shlibs=no 10034 ;; 10035 esac 10036 10037 if test x$host_vendor = xsni; then 10038 case $host in 10039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10040 export_dynamic_flag_spec='${wl}-Blargedynsym' 10041 ;; 10042 esac 10043 fi 10044 fi 10045 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10047$as_echo "$ld_shlibs" >&6; } 10048test "$ld_shlibs" = no && can_build_shared=no 10049 10050with_gnu_ld=$with_gnu_ld 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066# 10067# Do we need to explicitly link libc? 10068# 10069case "x$archive_cmds_need_lc" in 10070x|xyes) 10071 # Assume -lc should be added 10072 archive_cmds_need_lc=yes 10073 10074 if test "$enable_shared" = yes && test "$GCC" = yes; then 10075 case $archive_cmds in 10076 *'~'*) 10077 # FIXME: we may have to deal with multi-command sequences. 10078 ;; 10079 '$CC '*) 10080 # Test whether the compiler implicitly links with -lc since on some 10081 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10082 # to ld, don't add -lc before -lgcc. 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10084$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10085if ${lt_cv_archive_cmds_need_lc+:} false; then : 10086 $as_echo_n "(cached) " >&6 10087else 10088 $RM conftest* 10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10090 10091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10092 (eval $ac_compile) 2>&5 10093 ac_status=$? 10094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10095 test $ac_status = 0; } 2>conftest.err; then 10096 soname=conftest 10097 lib=conftest 10098 libobjs=conftest.$ac_objext 10099 deplibs= 10100 wl=$lt_prog_compiler_wl 10101 pic_flag=$lt_prog_compiler_pic 10102 compiler_flags=-v 10103 linker_flags=-v 10104 verstring= 10105 output_objdir=. 10106 libname=conftest 10107 lt_save_allow_undefined_flag=$allow_undefined_flag 10108 allow_undefined_flag= 10109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10110 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10111 ac_status=$? 10112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10113 test $ac_status = 0; } 10114 then 10115 lt_cv_archive_cmds_need_lc=no 10116 else 10117 lt_cv_archive_cmds_need_lc=yes 10118 fi 10119 allow_undefined_flag=$lt_save_allow_undefined_flag 10120 else 10121 cat conftest.err 1>&5 10122 fi 10123 $RM conftest* 10124 10125fi 10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10127$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10128 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10129 ;; 10130 esac 10131 fi 10132 ;; 10133esac 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10287$as_echo_n "checking dynamic linker characteristics... " >&6; } 10288 10289if test "$GCC" = yes; then 10290 case $host_os in 10291 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10292 *) lt_awk_arg="/^libraries:/" ;; 10293 esac 10294 case $host_os in 10295 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10296 *) lt_sed_strip_eq="s,=/,/,g" ;; 10297 esac 10298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10299 case $lt_search_path_spec in 10300 *\;*) 10301 # if the path contains ";" then we assume it to be the separator 10302 # otherwise default to the standard path separator (i.e. ":") - it is 10303 # assumed that no part of a normal pathname contains ";" but that should 10304 # okay in the real world where ";" in dirpaths is itself problematic. 10305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10306 ;; 10307 *) 10308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10309 ;; 10310 esac 10311 # Ok, now we have the path, separated by spaces, we can step through it 10312 # and add multilib dir if necessary. 10313 lt_tmp_lt_search_path_spec= 10314 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10315 for lt_sys_path in $lt_search_path_spec; do 10316 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10318 else 10319 test -d "$lt_sys_path" && \ 10320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10321 fi 10322 done 10323 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10324BEGIN {RS=" "; FS="/|\n";} { 10325 lt_foo=""; 10326 lt_count=0; 10327 for (lt_i = NF; lt_i > 0; lt_i--) { 10328 if ($lt_i != "" && $lt_i != ".") { 10329 if ($lt_i == "..") { 10330 lt_count++; 10331 } else { 10332 if (lt_count == 0) { 10333 lt_foo="/" $lt_i lt_foo; 10334 } else { 10335 lt_count--; 10336 } 10337 } 10338 } 10339 } 10340 if (lt_foo != "") { lt_freq[lt_foo]++; } 10341 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10342}'` 10343 # AWK program above erroneously prepends '/' to C:/dos/paths 10344 # for these hosts. 10345 case $host_os in 10346 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10347 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10348 esac 10349 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10350else 10351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10352fi 10353library_names_spec= 10354libname_spec='lib$name' 10355soname_spec= 10356shrext_cmds=".so" 10357postinstall_cmds= 10358postuninstall_cmds= 10359finish_cmds= 10360finish_eval= 10361shlibpath_var= 10362shlibpath_overrides_runpath=unknown 10363version_type=none 10364dynamic_linker="$host_os ld.so" 10365sys_lib_dlsearch_path_spec="/lib /usr/lib" 10366need_lib_prefix=unknown 10367hardcode_into_libs=no 10368 10369# when you set need_version to no, make sure it does not cause -set_version 10370# flags to be left without arguments 10371need_version=unknown 10372 10373case $host_os in 10374aix3*) 10375 version_type=linux # correct to gnu/linux during the next big refactor 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10377 shlibpath_var=LIBPATH 10378 10379 # AIX 3 has no versioning support, so we append a major version to the name. 10380 soname_spec='${libname}${release}${shared_ext}$major' 10381 ;; 10382 10383aix[4-9]*) 10384 version_type=linux # correct to gnu/linux during the next big refactor 10385 need_lib_prefix=no 10386 need_version=no 10387 hardcode_into_libs=yes 10388 if test "$host_cpu" = ia64; then 10389 # AIX 5 supports IA64 10390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10391 shlibpath_var=LD_LIBRARY_PATH 10392 else 10393 # With GCC up to 2.95.x, collect2 would create an import file 10394 # for dependence libraries. The import file would start with 10395 # the line `#! .'. This would cause the generated library to 10396 # depend on `.', always an invalid library. This was fixed in 10397 # development snapshots of GCC prior to 3.0. 10398 case $host_os in 10399 aix4 | aix4.[01] | aix4.[01].*) 10400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10401 echo ' yes ' 10402 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10403 : 10404 else 10405 can_build_shared=no 10406 fi 10407 ;; 10408 esac 10409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10410 # soname into executable. Probably we can add versioning support to 10411 # collect2, so additional links can be useful in future. 10412 if test "$aix_use_runtimelinking" = yes; then 10413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10414 # instead of lib<name>.a to let people know that these are not 10415 # typical AIX shared libraries. 10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10417 else 10418 # We preserve .a as extension for shared libraries through AIX4.2 10419 # and later when we are not doing run time linking. 10420 library_names_spec='${libname}${release}.a $libname.a' 10421 soname_spec='${libname}${release}${shared_ext}$major' 10422 fi 10423 shlibpath_var=LIBPATH 10424 fi 10425 ;; 10426 10427amigaos*) 10428 case $host_cpu in 10429 powerpc) 10430 # Since July 2007 AmigaOS4 officially supports .so libraries. 10431 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10433 ;; 10434 m68k) 10435 library_names_spec='$libname.ixlibrary $libname.a' 10436 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10437 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10438 ;; 10439 esac 10440 ;; 10441 10442beos*) 10443 library_names_spec='${libname}${shared_ext}' 10444 dynamic_linker="$host_os ld.so" 10445 shlibpath_var=LIBRARY_PATH 10446 ;; 10447 10448bsdi[45]*) 10449 version_type=linux # correct to gnu/linux during the next big refactor 10450 need_version=no 10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10452 soname_spec='${libname}${release}${shared_ext}$major' 10453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10454 shlibpath_var=LD_LIBRARY_PATH 10455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10457 # the default ld.so.conf also contains /usr/contrib/lib and 10458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10459 # libtool to hard-code these into programs 10460 ;; 10461 10462cygwin* | mingw* | pw32* | cegcc*) 10463 version_type=windows 10464 shrext_cmds=".dll" 10465 need_version=no 10466 need_lib_prefix=no 10467 10468 case $GCC,$cc_basename in 10469 yes,*) 10470 # gcc 10471 library_names_spec='$libname.dll.a' 10472 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10473 postinstall_cmds='base_file=`basename \${file}`~ 10474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10475 dldir=$destdir/`dirname \$dlpath`~ 10476 test -d \$dldir || mkdir -p \$dldir~ 10477 $install_prog $dir/$dlname \$dldir/$dlname~ 10478 chmod a+x \$dldir/$dlname~ 10479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10481 fi' 10482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10483 dlpath=$dir/\$dldll~ 10484 $RM \$dlpath' 10485 shlibpath_overrides_runpath=yes 10486 10487 case $host_os in 10488 cygwin*) 10489 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10491 10492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10493 ;; 10494 mingw* | cegcc*) 10495 # MinGW DLLs use traditional 'lib' prefix 10496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10497 ;; 10498 pw32*) 10499 # pw32 DLLs use 'pw' prefix rather than 'lib' 10500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10501 ;; 10502 esac 10503 dynamic_linker='Win32 ld.exe' 10504 ;; 10505 10506 *,cl*) 10507 # Native MSVC 10508 libname_spec='$name' 10509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10510 library_names_spec='${libname}.dll.lib' 10511 10512 case $build_os in 10513 mingw*) 10514 sys_lib_search_path_spec= 10515 lt_save_ifs=$IFS 10516 IFS=';' 10517 for lt_path in $LIB 10518 do 10519 IFS=$lt_save_ifs 10520 # Let DOS variable expansion print the short 8.3 style file name. 10521 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10522 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10523 done 10524 IFS=$lt_save_ifs 10525 # Convert to MSYS style. 10526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10527 ;; 10528 cygwin*) 10529 # Convert to unix form, then to dos form, then back to unix form 10530 # but this time dos style (no spaces!) so that the unix form looks 10531 # like /cygdrive/c/PROGRA~1:/cygdr... 10532 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10533 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10534 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10535 ;; 10536 *) 10537 sys_lib_search_path_spec="$LIB" 10538 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10539 # It is most probably a Windows format PATH. 10540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10541 else 10542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10543 fi 10544 # FIXME: find the short name or the path components, as spaces are 10545 # common. (e.g. "Program Files" -> "PROGRA~1") 10546 ;; 10547 esac 10548 10549 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10550 postinstall_cmds='base_file=`basename \${file}`~ 10551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10552 dldir=$destdir/`dirname \$dlpath`~ 10553 test -d \$dldir || mkdir -p \$dldir~ 10554 $install_prog $dir/$dlname \$dldir/$dlname' 10555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10556 dlpath=$dir/\$dldll~ 10557 $RM \$dlpath' 10558 shlibpath_overrides_runpath=yes 10559 dynamic_linker='Win32 link.exe' 10560 ;; 10561 10562 *) 10563 # Assume MSVC wrapper 10564 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10565 dynamic_linker='Win32 ld.exe' 10566 ;; 10567 esac 10568 # FIXME: first we should search . and the directory the executable is in 10569 shlibpath_var=PATH 10570 ;; 10571 10572darwin* | rhapsody*) 10573 dynamic_linker="$host_os dyld" 10574 version_type=darwin 10575 need_lib_prefix=no 10576 need_version=no 10577 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10578 soname_spec='${libname}${release}${major}$shared_ext' 10579 shlibpath_overrides_runpath=yes 10580 shlibpath_var=DYLD_LIBRARY_PATH 10581 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10582 10583 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10584 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10585 ;; 10586 10587dgux*) 10588 version_type=linux # correct to gnu/linux during the next big refactor 10589 need_lib_prefix=no 10590 need_version=no 10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10592 soname_spec='${libname}${release}${shared_ext}$major' 10593 shlibpath_var=LD_LIBRARY_PATH 10594 ;; 10595 10596freebsd* | dragonfly*) 10597 # DragonFly does not have aout. When/if they implement a new 10598 # versioning mechanism, adjust this. 10599 if test -x /usr/bin/objformat; then 10600 objformat=`/usr/bin/objformat` 10601 else 10602 case $host_os in 10603 freebsd[23].*) objformat=aout ;; 10604 *) objformat=elf ;; 10605 esac 10606 fi 10607 version_type=freebsd-$objformat 10608 case $version_type in 10609 freebsd-elf*) 10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10611 need_version=no 10612 need_lib_prefix=no 10613 ;; 10614 freebsd-*) 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10616 need_version=yes 10617 ;; 10618 esac 10619 shlibpath_var=LD_LIBRARY_PATH 10620 case $host_os in 10621 freebsd2.*) 10622 shlibpath_overrides_runpath=yes 10623 ;; 10624 freebsd3.[01]* | freebsdelf3.[01]*) 10625 shlibpath_overrides_runpath=yes 10626 hardcode_into_libs=yes 10627 ;; 10628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10630 shlibpath_overrides_runpath=no 10631 hardcode_into_libs=yes 10632 ;; 10633 *) # from 4.6 on, and DragonFly 10634 shlibpath_overrides_runpath=yes 10635 hardcode_into_libs=yes 10636 ;; 10637 esac 10638 ;; 10639 10640gnu*) 10641 version_type=linux # correct to gnu/linux during the next big refactor 10642 need_lib_prefix=no 10643 need_version=no 10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10645 soname_spec='${libname}${release}${shared_ext}$major' 10646 shlibpath_var=LD_LIBRARY_PATH 10647 shlibpath_overrides_runpath=no 10648 hardcode_into_libs=yes 10649 ;; 10650 10651haiku*) 10652 version_type=linux # correct to gnu/linux during the next big refactor 10653 need_lib_prefix=no 10654 need_version=no 10655 dynamic_linker="$host_os runtime_loader" 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10657 soname_spec='${libname}${release}${shared_ext}$major' 10658 shlibpath_var=LIBRARY_PATH 10659 shlibpath_overrides_runpath=yes 10660 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10661 hardcode_into_libs=yes 10662 ;; 10663 10664hpux9* | hpux10* | hpux11*) 10665 # Give a soname corresponding to the major version so that dld.sl refuses to 10666 # link against other versions. 10667 version_type=sunos 10668 need_lib_prefix=no 10669 need_version=no 10670 case $host_cpu in 10671 ia64*) 10672 shrext_cmds='.so' 10673 hardcode_into_libs=yes 10674 dynamic_linker="$host_os dld.so" 10675 shlibpath_var=LD_LIBRARY_PATH 10676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10678 soname_spec='${libname}${release}${shared_ext}$major' 10679 if test "X$HPUX_IA64_MODE" = X32; then 10680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10681 else 10682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10683 fi 10684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10685 ;; 10686 hppa*64*) 10687 shrext_cmds='.sl' 10688 hardcode_into_libs=yes 10689 dynamic_linker="$host_os dld.sl" 10690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10693 soname_spec='${libname}${release}${shared_ext}$major' 10694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10696 ;; 10697 *) 10698 shrext_cmds='.sl' 10699 dynamic_linker="$host_os dld.sl" 10700 shlibpath_var=SHLIB_PATH 10701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10703 soname_spec='${libname}${release}${shared_ext}$major' 10704 ;; 10705 esac 10706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10707 postinstall_cmds='chmod 555 $lib' 10708 # or fails outright, so override atomically: 10709 install_override_mode=555 10710 ;; 10711 10712interix[3-9]*) 10713 version_type=linux # correct to gnu/linux during the next big refactor 10714 need_lib_prefix=no 10715 need_version=no 10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10717 soname_spec='${libname}${release}${shared_ext}$major' 10718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10719 shlibpath_var=LD_LIBRARY_PATH 10720 shlibpath_overrides_runpath=no 10721 hardcode_into_libs=yes 10722 ;; 10723 10724irix5* | irix6* | nonstopux*) 10725 case $host_os in 10726 nonstopux*) version_type=nonstopux ;; 10727 *) 10728 if test "$lt_cv_prog_gnu_ld" = yes; then 10729 version_type=linux # correct to gnu/linux during the next big refactor 10730 else 10731 version_type=irix 10732 fi ;; 10733 esac 10734 need_lib_prefix=no 10735 need_version=no 10736 soname_spec='${libname}${release}${shared_ext}$major' 10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10738 case $host_os in 10739 irix5* | nonstopux*) 10740 libsuff= shlibsuff= 10741 ;; 10742 *) 10743 case $LD in # libtool.m4 will add one of these switches to LD 10744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10745 libsuff= shlibsuff= libmagic=32-bit;; 10746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10747 libsuff=32 shlibsuff=N32 libmagic=N32;; 10748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10749 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10750 *) libsuff= shlibsuff= libmagic=never-match;; 10751 esac 10752 ;; 10753 esac 10754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10755 shlibpath_overrides_runpath=no 10756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10758 hardcode_into_libs=yes 10759 ;; 10760 10761# No shared lib support for Linux oldld, aout, or coff. 10762linux*oldld* | linux*aout* | linux*coff*) 10763 dynamic_linker=no 10764 ;; 10765 10766# This must be glibc/ELF. 10767linux* | k*bsd*-gnu | kopensolaris*-gnu) 10768 version_type=linux # correct to gnu/linux during the next big refactor 10769 need_lib_prefix=no 10770 need_version=no 10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10772 soname_spec='${libname}${release}${shared_ext}$major' 10773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10774 shlibpath_var=LD_LIBRARY_PATH 10775 shlibpath_overrides_runpath=no 10776 10777 # Some binutils ld are patched to set DT_RUNPATH 10778 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10779 $as_echo_n "(cached) " >&6 10780else 10781 lt_cv_shlibpath_overrides_runpath=no 10782 save_LDFLAGS=$LDFLAGS 10783 save_libdir=$libdir 10784 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10785 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788 10789int 10790main () 10791{ 10792 10793 ; 10794 return 0; 10795} 10796_ACEOF 10797if ac_fn_c_try_link "$LINENO"; then : 10798 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10799 lt_cv_shlibpath_overrides_runpath=yes 10800fi 10801fi 10802rm -f core conftest.err conftest.$ac_objext \ 10803 conftest$ac_exeext conftest.$ac_ext 10804 LDFLAGS=$save_LDFLAGS 10805 libdir=$save_libdir 10806 10807fi 10808 10809 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10810 10811 # This implies no fast_install, which is unacceptable. 10812 # Some rework will be needed to allow for fast_install 10813 # before this can be enabled. 10814 hardcode_into_libs=yes 10815 10816 # Append ld.so.conf contents to the search path 10817 if test -f /etc/ld.so.conf; then 10818 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' ' '` 10819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10820 fi 10821 10822 # We used to test for /lib/ld.so.1 and disable shared libraries on 10823 # powerpc, because MkLinux only supported shared libraries with the 10824 # GNU dynamic linker. Since this was broken with cross compilers, 10825 # most powerpc-linux boxes support dynamic linking these days and 10826 # people can always --disable-shared, the test was removed, and we 10827 # assume the GNU/Linux dynamic linker is in use. 10828 dynamic_linker='GNU/Linux ld.so' 10829 ;; 10830 10831netbsd*) 10832 version_type=sunos 10833 need_lib_prefix=no 10834 need_version=no 10835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10838 dynamic_linker='NetBSD (a.out) ld.so' 10839 else 10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10841 soname_spec='${libname}${release}${shared_ext}$major' 10842 dynamic_linker='NetBSD ld.elf_so' 10843 fi 10844 shlibpath_var=LD_LIBRARY_PATH 10845 shlibpath_overrides_runpath=yes 10846 hardcode_into_libs=yes 10847 ;; 10848 10849newsos6) 10850 version_type=linux # correct to gnu/linux during the next big refactor 10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10852 shlibpath_var=LD_LIBRARY_PATH 10853 shlibpath_overrides_runpath=yes 10854 ;; 10855 10856*nto* | *qnx*) 10857 version_type=qnx 10858 need_lib_prefix=no 10859 need_version=no 10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10861 soname_spec='${libname}${release}${shared_ext}$major' 10862 shlibpath_var=LD_LIBRARY_PATH 10863 shlibpath_overrides_runpath=no 10864 hardcode_into_libs=yes 10865 dynamic_linker='ldqnx.so' 10866 ;; 10867 10868openbsd*) 10869 version_type=sunos 10870 sys_lib_dlsearch_path_spec="/usr/lib" 10871 need_lib_prefix=no 10872 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10873 case $host_os in 10874 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10875 *) need_version=no ;; 10876 esac 10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10879 shlibpath_var=LD_LIBRARY_PATH 10880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10881 case $host_os in 10882 openbsd2.[89] | openbsd2.[89].*) 10883 shlibpath_overrides_runpath=no 10884 ;; 10885 *) 10886 shlibpath_overrides_runpath=yes 10887 ;; 10888 esac 10889 else 10890 shlibpath_overrides_runpath=yes 10891 fi 10892 ;; 10893 10894os2*) 10895 libname_spec='$name' 10896 shrext_cmds=".dll" 10897 need_lib_prefix=no 10898 library_names_spec='$libname${shared_ext} $libname.a' 10899 dynamic_linker='OS/2 ld.exe' 10900 shlibpath_var=LIBPATH 10901 ;; 10902 10903osf3* | osf4* | osf5*) 10904 version_type=osf 10905 need_lib_prefix=no 10906 need_version=no 10907 soname_spec='${libname}${release}${shared_ext}$major' 10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10909 shlibpath_var=LD_LIBRARY_PATH 10910 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10911 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10912 ;; 10913 10914rdos*) 10915 dynamic_linker=no 10916 ;; 10917 10918solaris*) 10919 version_type=linux # correct to gnu/linux during the next big refactor 10920 need_lib_prefix=no 10921 need_version=no 10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10923 soname_spec='${libname}${release}${shared_ext}$major' 10924 shlibpath_var=LD_LIBRARY_PATH 10925 shlibpath_overrides_runpath=yes 10926 hardcode_into_libs=yes 10927 # ldd complains unless libraries are executable 10928 postinstall_cmds='chmod +x $lib' 10929 ;; 10930 10931sunos4*) 10932 version_type=sunos 10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10934 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10935 shlibpath_var=LD_LIBRARY_PATH 10936 shlibpath_overrides_runpath=yes 10937 if test "$with_gnu_ld" = yes; then 10938 need_lib_prefix=no 10939 fi 10940 need_version=yes 10941 ;; 10942 10943sysv4 | sysv4.3*) 10944 version_type=linux # correct to gnu/linux during the next big refactor 10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10946 soname_spec='${libname}${release}${shared_ext}$major' 10947 shlibpath_var=LD_LIBRARY_PATH 10948 case $host_vendor in 10949 sni) 10950 shlibpath_overrides_runpath=no 10951 need_lib_prefix=no 10952 runpath_var=LD_RUN_PATH 10953 ;; 10954 siemens) 10955 need_lib_prefix=no 10956 ;; 10957 motorola) 10958 need_lib_prefix=no 10959 need_version=no 10960 shlibpath_overrides_runpath=no 10961 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10962 ;; 10963 esac 10964 ;; 10965 10966sysv4*MP*) 10967 if test -d /usr/nec ;then 10968 version_type=linux # correct to gnu/linux during the next big refactor 10969 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10970 soname_spec='$libname${shared_ext}.$major' 10971 shlibpath_var=LD_LIBRARY_PATH 10972 fi 10973 ;; 10974 10975sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10976 version_type=freebsd-elf 10977 need_lib_prefix=no 10978 need_version=no 10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10980 soname_spec='${libname}${release}${shared_ext}$major' 10981 shlibpath_var=LD_LIBRARY_PATH 10982 shlibpath_overrides_runpath=yes 10983 hardcode_into_libs=yes 10984 if test "$with_gnu_ld" = yes; then 10985 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10986 else 10987 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10988 case $host_os in 10989 sco3.2v5*) 10990 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10991 ;; 10992 esac 10993 fi 10994 sys_lib_dlsearch_path_spec='/usr/lib' 10995 ;; 10996 10997tpf*) 10998 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10999 version_type=linux # correct to gnu/linux during the next big refactor 11000 need_lib_prefix=no 11001 need_version=no 11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11003 shlibpath_var=LD_LIBRARY_PATH 11004 shlibpath_overrides_runpath=no 11005 hardcode_into_libs=yes 11006 ;; 11007 11008uts4*) 11009 version_type=linux # correct to gnu/linux during the next big refactor 11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11011 soname_spec='${libname}${release}${shared_ext}$major' 11012 shlibpath_var=LD_LIBRARY_PATH 11013 ;; 11014 11015*) 11016 dynamic_linker=no 11017 ;; 11018esac 11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11020$as_echo "$dynamic_linker" >&6; } 11021test "$dynamic_linker" = no && can_build_shared=no 11022 11023variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11024if test "$GCC" = yes; then 11025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11026fi 11027 11028if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11029 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11030fi 11031if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11032 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11033fi 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11127$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11128hardcode_action= 11129if test -n "$hardcode_libdir_flag_spec" || 11130 test -n "$runpath_var" || 11131 test "X$hardcode_automatic" = "Xyes" ; then 11132 11133 # We can hardcode non-existent directories. 11134 if test "$hardcode_direct" != no && 11135 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11136 # have to relink, otherwise we might link with an installed library 11137 # when we should be linking with a yet-to-be-installed one 11138 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11139 test "$hardcode_minus_L" != no; then 11140 # Linking always hardcodes the temporary library directory. 11141 hardcode_action=relink 11142 else 11143 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11144 hardcode_action=immediate 11145 fi 11146else 11147 # We cannot hardcode anything, or else we can only hardcode existing 11148 # directories. 11149 hardcode_action=unsupported 11150fi 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11152$as_echo "$hardcode_action" >&6; } 11153 11154if test "$hardcode_action" = relink || 11155 test "$inherit_rpath" = yes; then 11156 # Fast installation is not supported 11157 enable_fast_install=no 11158elif test "$shlibpath_overrides_runpath" = yes || 11159 test "$enable_shared" = no; then 11160 # Fast installation is not necessary 11161 enable_fast_install=needless 11162fi 11163 11164 11165 11166 11167 11168 11169 if test "x$enable_dlopen" != xyes; then 11170 enable_dlopen=unknown 11171 enable_dlopen_self=unknown 11172 enable_dlopen_self_static=unknown 11173else 11174 lt_cv_dlopen=no 11175 lt_cv_dlopen_libs= 11176 11177 case $host_os in 11178 beos*) 11179 lt_cv_dlopen="load_add_on" 11180 lt_cv_dlopen_libs= 11181 lt_cv_dlopen_self=yes 11182 ;; 11183 11184 mingw* | pw32* | cegcc*) 11185 lt_cv_dlopen="LoadLibrary" 11186 lt_cv_dlopen_libs= 11187 ;; 11188 11189 cygwin*) 11190 lt_cv_dlopen="dlopen" 11191 lt_cv_dlopen_libs= 11192 ;; 11193 11194 darwin*) 11195 # if libdl is installed we need to link against it 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11197$as_echo_n "checking for dlopen in -ldl... " >&6; } 11198if ${ac_cv_lib_dl_dlopen+:} false; then : 11199 $as_echo_n "(cached) " >&6 11200else 11201 ac_check_lib_save_LIBS=$LIBS 11202LIBS="-ldl $LIBS" 11203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11204/* end confdefs.h. */ 11205 11206/* Override any GCC internal prototype to avoid an error. 11207 Use char because int might match the return type of a GCC 11208 builtin and then its argument prototype would still apply. */ 11209#ifdef __cplusplus 11210extern "C" 11211#endif 11212char dlopen (); 11213int 11214main () 11215{ 11216return dlopen (); 11217 ; 11218 return 0; 11219} 11220_ACEOF 11221if ac_fn_c_try_link "$LINENO"; then : 11222 ac_cv_lib_dl_dlopen=yes 11223else 11224 ac_cv_lib_dl_dlopen=no 11225fi 11226rm -f core conftest.err conftest.$ac_objext \ 11227 conftest$ac_exeext conftest.$ac_ext 11228LIBS=$ac_check_lib_save_LIBS 11229fi 11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11231$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11232if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11234else 11235 11236 lt_cv_dlopen="dyld" 11237 lt_cv_dlopen_libs= 11238 lt_cv_dlopen_self=yes 11239 11240fi 11241 11242 ;; 11243 11244 *) 11245 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11246if test "x$ac_cv_func_shl_load" = xyes; then : 11247 lt_cv_dlopen="shl_load" 11248else 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11250$as_echo_n "checking for shl_load in -ldld... " >&6; } 11251if ${ac_cv_lib_dld_shl_load+:} false; then : 11252 $as_echo_n "(cached) " >&6 11253else 11254 ac_check_lib_save_LIBS=$LIBS 11255LIBS="-ldld $LIBS" 11256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11257/* end confdefs.h. */ 11258 11259/* Override any GCC internal prototype to avoid an error. 11260 Use char because int might match the return type of a GCC 11261 builtin and then its argument prototype would still apply. */ 11262#ifdef __cplusplus 11263extern "C" 11264#endif 11265char shl_load (); 11266int 11267main () 11268{ 11269return shl_load (); 11270 ; 11271 return 0; 11272} 11273_ACEOF 11274if ac_fn_c_try_link "$LINENO"; then : 11275 ac_cv_lib_dld_shl_load=yes 11276else 11277 ac_cv_lib_dld_shl_load=no 11278fi 11279rm -f core conftest.err conftest.$ac_objext \ 11280 conftest$ac_exeext conftest.$ac_ext 11281LIBS=$ac_check_lib_save_LIBS 11282fi 11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11284$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11285if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11286 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11287else 11288 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11289if test "x$ac_cv_func_dlopen" = xyes; then : 11290 lt_cv_dlopen="dlopen" 11291else 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11293$as_echo_n "checking for dlopen in -ldl... " >&6; } 11294if ${ac_cv_lib_dl_dlopen+:} false; then : 11295 $as_echo_n "(cached) " >&6 11296else 11297 ac_check_lib_save_LIBS=$LIBS 11298LIBS="-ldl $LIBS" 11299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11300/* end confdefs.h. */ 11301 11302/* Override any GCC internal prototype to avoid an error. 11303 Use char because int might match the return type of a GCC 11304 builtin and then its argument prototype would still apply. */ 11305#ifdef __cplusplus 11306extern "C" 11307#endif 11308char dlopen (); 11309int 11310main () 11311{ 11312return dlopen (); 11313 ; 11314 return 0; 11315} 11316_ACEOF 11317if ac_fn_c_try_link "$LINENO"; then : 11318 ac_cv_lib_dl_dlopen=yes 11319else 11320 ac_cv_lib_dl_dlopen=no 11321fi 11322rm -f core conftest.err conftest.$ac_objext \ 11323 conftest$ac_exeext conftest.$ac_ext 11324LIBS=$ac_check_lib_save_LIBS 11325fi 11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11327$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11328if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11330else 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11332$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11333if ${ac_cv_lib_svld_dlopen+:} false; then : 11334 $as_echo_n "(cached) " >&6 11335else 11336 ac_check_lib_save_LIBS=$LIBS 11337LIBS="-lsvld $LIBS" 11338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11339/* end confdefs.h. */ 11340 11341/* Override any GCC internal prototype to avoid an error. 11342 Use char because int might match the return type of a GCC 11343 builtin and then its argument prototype would still apply. */ 11344#ifdef __cplusplus 11345extern "C" 11346#endif 11347char dlopen (); 11348int 11349main () 11350{ 11351return dlopen (); 11352 ; 11353 return 0; 11354} 11355_ACEOF 11356if ac_fn_c_try_link "$LINENO"; then : 11357 ac_cv_lib_svld_dlopen=yes 11358else 11359 ac_cv_lib_svld_dlopen=no 11360fi 11361rm -f core conftest.err conftest.$ac_objext \ 11362 conftest$ac_exeext conftest.$ac_ext 11363LIBS=$ac_check_lib_save_LIBS 11364fi 11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11366$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11367if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11369else 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11371$as_echo_n "checking for dld_link in -ldld... " >&6; } 11372if ${ac_cv_lib_dld_dld_link+:} false; then : 11373 $as_echo_n "(cached) " >&6 11374else 11375 ac_check_lib_save_LIBS=$LIBS 11376LIBS="-ldld $LIBS" 11377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378/* end confdefs.h. */ 11379 11380/* Override any GCC internal prototype to avoid an error. 11381 Use char because int might match the return type of a GCC 11382 builtin and then its argument prototype would still apply. */ 11383#ifdef __cplusplus 11384extern "C" 11385#endif 11386char dld_link (); 11387int 11388main () 11389{ 11390return dld_link (); 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395if ac_fn_c_try_link "$LINENO"; then : 11396 ac_cv_lib_dld_dld_link=yes 11397else 11398 ac_cv_lib_dld_dld_link=no 11399fi 11400rm -f core conftest.err conftest.$ac_objext \ 11401 conftest$ac_exeext conftest.$ac_ext 11402LIBS=$ac_check_lib_save_LIBS 11403fi 11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11405$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11406if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11407 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11408fi 11409 11410 11411fi 11412 11413 11414fi 11415 11416 11417fi 11418 11419 11420fi 11421 11422 11423fi 11424 11425 ;; 11426 esac 11427 11428 if test "x$lt_cv_dlopen" != xno; then 11429 enable_dlopen=yes 11430 else 11431 enable_dlopen=no 11432 fi 11433 11434 case $lt_cv_dlopen in 11435 dlopen) 11436 save_CPPFLAGS="$CPPFLAGS" 11437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11438 11439 save_LDFLAGS="$LDFLAGS" 11440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11441 11442 save_LIBS="$LIBS" 11443 LIBS="$lt_cv_dlopen_libs $LIBS" 11444 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11446$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11447if ${lt_cv_dlopen_self+:} false; then : 11448 $as_echo_n "(cached) " >&6 11449else 11450 if test "$cross_compiling" = yes; then : 11451 lt_cv_dlopen_self=cross 11452else 11453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11454 lt_status=$lt_dlunknown 11455 cat > conftest.$ac_ext <<_LT_EOF 11456#line $LINENO "configure" 11457#include "confdefs.h" 11458 11459#if HAVE_DLFCN_H 11460#include <dlfcn.h> 11461#endif 11462 11463#include <stdio.h> 11464 11465#ifdef RTLD_GLOBAL 11466# define LT_DLGLOBAL RTLD_GLOBAL 11467#else 11468# ifdef DL_GLOBAL 11469# define LT_DLGLOBAL DL_GLOBAL 11470# else 11471# define LT_DLGLOBAL 0 11472# endif 11473#endif 11474 11475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11476 find out it does not work in some platform. */ 11477#ifndef LT_DLLAZY_OR_NOW 11478# ifdef RTLD_LAZY 11479# define LT_DLLAZY_OR_NOW RTLD_LAZY 11480# else 11481# ifdef DL_LAZY 11482# define LT_DLLAZY_OR_NOW DL_LAZY 11483# else 11484# ifdef RTLD_NOW 11485# define LT_DLLAZY_OR_NOW RTLD_NOW 11486# else 11487# ifdef DL_NOW 11488# define LT_DLLAZY_OR_NOW DL_NOW 11489# else 11490# define LT_DLLAZY_OR_NOW 0 11491# endif 11492# endif 11493# endif 11494# endif 11495#endif 11496 11497/* When -fvisbility=hidden is used, assume the code has been annotated 11498 correspondingly for the symbols needed. */ 11499#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11500int fnord () __attribute__((visibility("default"))); 11501#endif 11502 11503int fnord () { return 42; } 11504int main () 11505{ 11506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11507 int status = $lt_dlunknown; 11508 11509 if (self) 11510 { 11511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11512 else 11513 { 11514 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11515 else puts (dlerror ()); 11516 } 11517 /* dlclose (self); */ 11518 } 11519 else 11520 puts (dlerror ()); 11521 11522 return status; 11523} 11524_LT_EOF 11525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11526 (eval $ac_link) 2>&5 11527 ac_status=$? 11528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11529 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11530 (./conftest; exit; ) >&5 2>/dev/null 11531 lt_status=$? 11532 case x$lt_status in 11533 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11534 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11535 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11536 esac 11537 else : 11538 # compilation failed 11539 lt_cv_dlopen_self=no 11540 fi 11541fi 11542rm -fr conftest* 11543 11544 11545fi 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11547$as_echo "$lt_cv_dlopen_self" >&6; } 11548 11549 if test "x$lt_cv_dlopen_self" = xyes; then 11550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11552$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11553if ${lt_cv_dlopen_self_static+:} false; then : 11554 $as_echo_n "(cached) " >&6 11555else 11556 if test "$cross_compiling" = yes; then : 11557 lt_cv_dlopen_self_static=cross 11558else 11559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11560 lt_status=$lt_dlunknown 11561 cat > conftest.$ac_ext <<_LT_EOF 11562#line $LINENO "configure" 11563#include "confdefs.h" 11564 11565#if HAVE_DLFCN_H 11566#include <dlfcn.h> 11567#endif 11568 11569#include <stdio.h> 11570 11571#ifdef RTLD_GLOBAL 11572# define LT_DLGLOBAL RTLD_GLOBAL 11573#else 11574# ifdef DL_GLOBAL 11575# define LT_DLGLOBAL DL_GLOBAL 11576# else 11577# define LT_DLGLOBAL 0 11578# endif 11579#endif 11580 11581/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11582 find out it does not work in some platform. */ 11583#ifndef LT_DLLAZY_OR_NOW 11584# ifdef RTLD_LAZY 11585# define LT_DLLAZY_OR_NOW RTLD_LAZY 11586# else 11587# ifdef DL_LAZY 11588# define LT_DLLAZY_OR_NOW DL_LAZY 11589# else 11590# ifdef RTLD_NOW 11591# define LT_DLLAZY_OR_NOW RTLD_NOW 11592# else 11593# ifdef DL_NOW 11594# define LT_DLLAZY_OR_NOW DL_NOW 11595# else 11596# define LT_DLLAZY_OR_NOW 0 11597# endif 11598# endif 11599# endif 11600# endif 11601#endif 11602 11603/* When -fvisbility=hidden is used, assume the code has been annotated 11604 correspondingly for the symbols needed. */ 11605#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11606int fnord () __attribute__((visibility("default"))); 11607#endif 11608 11609int fnord () { return 42; } 11610int main () 11611{ 11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11613 int status = $lt_dlunknown; 11614 11615 if (self) 11616 { 11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11618 else 11619 { 11620 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11621 else puts (dlerror ()); 11622 } 11623 /* dlclose (self); */ 11624 } 11625 else 11626 puts (dlerror ()); 11627 11628 return status; 11629} 11630_LT_EOF 11631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11632 (eval $ac_link) 2>&5 11633 ac_status=$? 11634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11635 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11636 (./conftest; exit; ) >&5 2>/dev/null 11637 lt_status=$? 11638 case x$lt_status in 11639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11641 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11642 esac 11643 else : 11644 # compilation failed 11645 lt_cv_dlopen_self_static=no 11646 fi 11647fi 11648rm -fr conftest* 11649 11650 11651fi 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11653$as_echo "$lt_cv_dlopen_self_static" >&6; } 11654 fi 11655 11656 CPPFLAGS="$save_CPPFLAGS" 11657 LDFLAGS="$save_LDFLAGS" 11658 LIBS="$save_LIBS" 11659 ;; 11660 esac 11661 11662 case $lt_cv_dlopen_self in 11663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11664 *) enable_dlopen_self=unknown ;; 11665 esac 11666 11667 case $lt_cv_dlopen_self_static in 11668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11669 *) enable_dlopen_self_static=unknown ;; 11670 esac 11671fi 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689striplib= 11690old_striplib= 11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11692$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11693if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11695 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11697$as_echo "yes" >&6; } 11698else 11699# FIXME - insert some real tests, host_os isn't really good enough 11700 case $host_os in 11701 darwin*) 11702 if test -n "$STRIP" ; then 11703 striplib="$STRIP -x" 11704 old_striplib="$STRIP -S" 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11706$as_echo "yes" >&6; } 11707 else 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11709$as_echo "no" >&6; } 11710 fi 11711 ;; 11712 *) 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11714$as_echo "no" >&6; } 11715 ;; 11716 esac 11717fi 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 # Report which library types will actually be built 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11732$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11734$as_echo "$can_build_shared" >&6; } 11735 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11737$as_echo_n "checking whether to build shared libraries... " >&6; } 11738 test "$can_build_shared" = "no" && enable_shared=no 11739 11740 # On AIX, shared libraries and static libraries use the same namespace, and 11741 # are all built from PIC. 11742 case $host_os in 11743 aix3*) 11744 test "$enable_shared" = yes && enable_static=no 11745 if test -n "$RANLIB"; then 11746 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11747 postinstall_cmds='$RANLIB $lib' 11748 fi 11749 ;; 11750 11751 aix[4-9]*) 11752 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11753 test "$enable_shared" = yes && enable_static=no 11754 fi 11755 ;; 11756 esac 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11758$as_echo "$enable_shared" >&6; } 11759 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11761$as_echo_n "checking whether to build static libraries... " >&6; } 11762 # Make sure either enable_shared or enable_static is yes. 11763 test "$enable_shared" = yes || enable_static=yes 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11765$as_echo "$enable_static" >&6; } 11766 11767 11768 11769 11770fi 11771ac_ext=c 11772ac_cpp='$CPP $CPPFLAGS' 11773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11775ac_compiler_gnu=$ac_cv_c_compiler_gnu 11776 11777CC="$lt_save_CC" 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 ac_config_commands="$ac_config_commands libtool" 11794 11795 11796 11797 11798# Only expand once: 11799 11800 11801 11802# Require xorg-macros minimum of 1.12 for DocBook external references 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11815$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11816if ${ac_cv_prog_cc_c99+:} false; then : 11817 $as_echo_n "(cached) " >&6 11818else 11819 ac_cv_prog_cc_c99=no 11820ac_save_CC=$CC 11821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11822/* end confdefs.h. */ 11823#include <stdarg.h> 11824#include <stdbool.h> 11825#include <stdlib.h> 11826#include <wchar.h> 11827#include <stdio.h> 11828 11829// Check varargs macros. These examples are taken from C99 6.10.3.5. 11830#define debug(...) fprintf (stderr, __VA_ARGS__) 11831#define showlist(...) puts (#__VA_ARGS__) 11832#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11833static void 11834test_varargs_macros (void) 11835{ 11836 int x = 1234; 11837 int y = 5678; 11838 debug ("Flag"); 11839 debug ("X = %d\n", x); 11840 showlist (The first, second, and third items.); 11841 report (x>y, "x is %d but y is %d", x, y); 11842} 11843 11844// Check long long types. 11845#define BIG64 18446744073709551615ull 11846#define BIG32 4294967295ul 11847#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11848#if !BIG_OK 11849 your preprocessor is broken; 11850#endif 11851#if BIG_OK 11852#else 11853 your preprocessor is broken; 11854#endif 11855static long long int bignum = -9223372036854775807LL; 11856static unsigned long long int ubignum = BIG64; 11857 11858struct incomplete_array 11859{ 11860 int datasize; 11861 double data[]; 11862}; 11863 11864struct named_init { 11865 int number; 11866 const wchar_t *name; 11867 double average; 11868}; 11869 11870typedef const char *ccp; 11871 11872static inline int 11873test_restrict (ccp restrict text) 11874{ 11875 // See if C++-style comments work. 11876 // Iterate through items via the restricted pointer. 11877 // Also check for declarations in for loops. 11878 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11879 continue; 11880 return 0; 11881} 11882 11883// Check varargs and va_copy. 11884static void 11885test_varargs (const char *format, ...) 11886{ 11887 va_list args; 11888 va_start (args, format); 11889 va_list args_copy; 11890 va_copy (args_copy, args); 11891 11892 const char *str; 11893 int number; 11894 float fnumber; 11895 11896 while (*format) 11897 { 11898 switch (*format++) 11899 { 11900 case 's': // string 11901 str = va_arg (args_copy, const char *); 11902 break; 11903 case 'd': // int 11904 number = va_arg (args_copy, int); 11905 break; 11906 case 'f': // float 11907 fnumber = va_arg (args_copy, double); 11908 break; 11909 default: 11910 break; 11911 } 11912 } 11913 va_end (args_copy); 11914 va_end (args); 11915} 11916 11917int 11918main () 11919{ 11920 11921 // Check bool. 11922 _Bool success = false; 11923 11924 // Check restrict. 11925 if (test_restrict ("String literal") == 0) 11926 success = true; 11927 char *restrict newvar = "Another string"; 11928 11929 // Check varargs. 11930 test_varargs ("s, d' f .", "string", 65, 34.234); 11931 test_varargs_macros (); 11932 11933 // Check flexible array members. 11934 struct incomplete_array *ia = 11935 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11936 ia->datasize = 10; 11937 for (int i = 0; i < ia->datasize; ++i) 11938 ia->data[i] = i * 1.234; 11939 11940 // Check named initializers. 11941 struct named_init ni = { 11942 .number = 34, 11943 .name = L"Test wide string", 11944 .average = 543.34343, 11945 }; 11946 11947 ni.number = 58; 11948 11949 int dynamic_array[ni.number]; 11950 dynamic_array[ni.number - 1] = 543; 11951 11952 // work around unused variable warnings 11953 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11954 || dynamic_array[ni.number - 1] != 543); 11955 11956 ; 11957 return 0; 11958} 11959_ACEOF 11960for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11961do 11962 CC="$ac_save_CC $ac_arg" 11963 if ac_fn_c_try_compile "$LINENO"; then : 11964 ac_cv_prog_cc_c99=$ac_arg 11965fi 11966rm -f core conftest.err conftest.$ac_objext 11967 test "x$ac_cv_prog_cc_c99" != "xno" && break 11968done 11969rm -f conftest.$ac_ext 11970CC=$ac_save_CC 11971 11972fi 11973# AC_CACHE_VAL 11974case "x$ac_cv_prog_cc_c99" in 11975 x) 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11977$as_echo "none needed" >&6; } ;; 11978 xno) 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11980$as_echo "unsupported" >&6; } ;; 11981 *) 11982 CC="$CC $ac_cv_prog_cc_c99" 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11984$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11985esac 11986if test "x$ac_cv_prog_cc_c99" != xno; then : 11987 11988fi 11989 11990 11991 11992 11993 11994 11995ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11996if test "x$ac_cv_have_decl___clang__" = xyes; then : 11997 CLANGCC="yes" 11998else 11999 CLANGCC="no" 12000fi 12001 12002ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12003if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12004 INTELCC="yes" 12005else 12006 INTELCC="no" 12007fi 12008 12009ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12010if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12011 SUNCC="yes" 12012else 12013 SUNCC="no" 12014fi 12015 12016 12017 12018 12019if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12020 if test -n "$ac_tool_prefix"; then 12021 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12022set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12024$as_echo_n "checking for $ac_word... " >&6; } 12025if ${ac_cv_path_PKG_CONFIG+:} false; then : 12026 $as_echo_n "(cached) " >&6 12027else 12028 case $PKG_CONFIG in 12029 [\\/]* | ?:[\\/]*) 12030 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12031 ;; 12032 *) 12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12034for as_dir in $PATH 12035do 12036 IFS=$as_save_IFS 12037 test -z "$as_dir" && as_dir=. 12038 for ac_exec_ext in '' $ac_executable_extensions; do 12039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12040 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12042 break 2 12043 fi 12044done 12045 done 12046IFS=$as_save_IFS 12047 12048 ;; 12049esac 12050fi 12051PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12052if test -n "$PKG_CONFIG"; then 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12054$as_echo "$PKG_CONFIG" >&6; } 12055else 12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12057$as_echo "no" >&6; } 12058fi 12059 12060 12061fi 12062if test -z "$ac_cv_path_PKG_CONFIG"; then 12063 ac_pt_PKG_CONFIG=$PKG_CONFIG 12064 # Extract the first word of "pkg-config", so it can be a program name with args. 12065set dummy pkg-config; ac_word=$2 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12067$as_echo_n "checking for $ac_word... " >&6; } 12068if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12069 $as_echo_n "(cached) " >&6 12070else 12071 case $ac_pt_PKG_CONFIG in 12072 [\\/]* | ?:[\\/]*) 12073 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12074 ;; 12075 *) 12076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12077for as_dir in $PATH 12078do 12079 IFS=$as_save_IFS 12080 test -z "$as_dir" && as_dir=. 12081 for ac_exec_ext in '' $ac_executable_extensions; do 12082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12083 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12085 break 2 12086 fi 12087done 12088 done 12089IFS=$as_save_IFS 12090 12091 ;; 12092esac 12093fi 12094ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12095if test -n "$ac_pt_PKG_CONFIG"; then 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12097$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12098else 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12100$as_echo "no" >&6; } 12101fi 12102 12103 if test "x$ac_pt_PKG_CONFIG" = x; then 12104 PKG_CONFIG="" 12105 else 12106 case $cross_compiling:$ac_tool_warned in 12107yes:) 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12110ac_tool_warned=yes ;; 12111esac 12112 PKG_CONFIG=$ac_pt_PKG_CONFIG 12113 fi 12114else 12115 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12116fi 12117 12118fi 12119if test -n "$PKG_CONFIG"; then 12120 _pkg_min_version=0.9.0 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12122$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12123 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12125$as_echo "yes" >&6; } 12126 else 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12128$as_echo "no" >&6; } 12129 PKG_CONFIG="" 12130 fi 12131 12132fi 12133 12134 12135 12136 12137 12138# Check whether --enable-selective-werror was given. 12139if test "${enable_selective_werror+set}" = set; then : 12140 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12141else 12142 SELECTIVE_WERROR=yes 12143fi 12144 12145 12146 12147 12148 12149# -v is too short to test reliably with XORG_TESTSET_CFLAG 12150if test "x$SUNCC" = "xyes"; then 12151 BASE_CFLAGS="-v" 12152else 12153 BASE_CFLAGS="" 12154fi 12155 12156# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170xorg_testset_save_CFLAGS="$CFLAGS" 12171 12172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12180/* end confdefs.h. */ 12181int i; 12182_ACEOF 12183if ac_fn_c_try_compile "$LINENO"; then : 12184 xorg_cv_cc_flag_unknown_warning_option=yes 12185else 12186 xorg_cv_cc_flag_unknown_warning_option=no 12187fi 12188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12189fi 12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12193 CFLAGS="$xorg_testset_save_CFLAGS" 12194fi 12195 12196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12199 fi 12200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12204 $as_echo_n "(cached) " >&6 12205else 12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12207/* end confdefs.h. */ 12208int i; 12209_ACEOF 12210if ac_fn_c_try_compile "$LINENO"; then : 12211 xorg_cv_cc_flag_unused_command_line_argument=yes 12212else 12213 xorg_cv_cc_flag_unused_command_line_argument=no 12214fi 12215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12216fi 12217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12220 CFLAGS="$xorg_testset_save_CFLAGS" 12221fi 12222 12223found="no" 12224 12225 if test $found = "no" ; then 12226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12228 fi 12229 12230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12232 fi 12233 12234 CFLAGS="$CFLAGS -Wall" 12235 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12237$as_echo_n "checking if $CC supports -Wall... " >&6; } 12238 cacheid=xorg_cv_cc_flag__Wall 12239 if eval \${$cacheid+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12243/* end confdefs.h. */ 12244int i; 12245int 12246main () 12247{ 12248 12249 ; 12250 return 0; 12251} 12252_ACEOF 12253if ac_fn_c_try_link "$LINENO"; then : 12254 eval $cacheid=yes 12255else 12256 eval $cacheid=no 12257fi 12258rm -f core conftest.err conftest.$ac_objext \ 12259 conftest$ac_exeext conftest.$ac_ext 12260fi 12261 12262 12263 CFLAGS="$xorg_testset_save_CFLAGS" 12264 12265 eval supported=\$$cacheid 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12267$as_echo "$supported" >&6; } 12268 if test "$supported" = "yes" ; then 12269 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12270 found="yes" 12271 fi 12272 fi 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288xorg_testset_save_CFLAGS="$CFLAGS" 12289 12290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299int i; 12300_ACEOF 12301if ac_fn_c_try_compile "$LINENO"; then : 12302 xorg_cv_cc_flag_unknown_warning_option=yes 12303else 12304 xorg_cv_cc_flag_unknown_warning_option=no 12305fi 12306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12307fi 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12311 CFLAGS="$xorg_testset_save_CFLAGS" 12312fi 12313 12314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12317 fi 12318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12322 $as_echo_n "(cached) " >&6 12323else 12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12325/* end confdefs.h. */ 12326int i; 12327_ACEOF 12328if ac_fn_c_try_compile "$LINENO"; then : 12329 xorg_cv_cc_flag_unused_command_line_argument=yes 12330else 12331 xorg_cv_cc_flag_unused_command_line_argument=no 12332fi 12333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12334fi 12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12338 CFLAGS="$xorg_testset_save_CFLAGS" 12339fi 12340 12341found="no" 12342 12343 if test $found = "no" ; then 12344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12346 fi 12347 12348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12350 fi 12351 12352 CFLAGS="$CFLAGS -Wpointer-arith" 12353 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12355$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12356 cacheid=xorg_cv_cc_flag__Wpointer_arith 12357 if eval \${$cacheid+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12361/* end confdefs.h. */ 12362int i; 12363int 12364main () 12365{ 12366 12367 ; 12368 return 0; 12369} 12370_ACEOF 12371if ac_fn_c_try_link "$LINENO"; then : 12372 eval $cacheid=yes 12373else 12374 eval $cacheid=no 12375fi 12376rm -f core conftest.err conftest.$ac_objext \ 12377 conftest$ac_exeext conftest.$ac_ext 12378fi 12379 12380 12381 CFLAGS="$xorg_testset_save_CFLAGS" 12382 12383 eval supported=\$$cacheid 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12385$as_echo "$supported" >&6; } 12386 if test "$supported" = "yes" ; then 12387 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12388 found="yes" 12389 fi 12390 fi 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406xorg_testset_save_CFLAGS="$CFLAGS" 12407 12408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417int i; 12418_ACEOF 12419if ac_fn_c_try_compile "$LINENO"; then : 12420 xorg_cv_cc_flag_unknown_warning_option=yes 12421else 12422 xorg_cv_cc_flag_unknown_warning_option=no 12423fi 12424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12425fi 12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12429 CFLAGS="$xorg_testset_save_CFLAGS" 12430fi 12431 12432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12435 fi 12436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443/* end confdefs.h. */ 12444int i; 12445_ACEOF 12446if ac_fn_c_try_compile "$LINENO"; then : 12447 xorg_cv_cc_flag_unused_command_line_argument=yes 12448else 12449 xorg_cv_cc_flag_unused_command_line_argument=no 12450fi 12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12452fi 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12456 CFLAGS="$xorg_testset_save_CFLAGS" 12457fi 12458 12459found="no" 12460 12461 if test $found = "no" ; then 12462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12464 fi 12465 12466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12468 fi 12469 12470 CFLAGS="$CFLAGS -Wmissing-declarations" 12471 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12473$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12474 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12475 if eval \${$cacheid+:} false; then : 12476 $as_echo_n "(cached) " >&6 12477else 12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12479/* end confdefs.h. */ 12480int i; 12481int 12482main () 12483{ 12484 12485 ; 12486 return 0; 12487} 12488_ACEOF 12489if ac_fn_c_try_link "$LINENO"; then : 12490 eval $cacheid=yes 12491else 12492 eval $cacheid=no 12493fi 12494rm -f core conftest.err conftest.$ac_objext \ 12495 conftest$ac_exeext conftest.$ac_ext 12496fi 12497 12498 12499 CFLAGS="$xorg_testset_save_CFLAGS" 12500 12501 eval supported=\$$cacheid 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12503$as_echo "$supported" >&6; } 12504 if test "$supported" = "yes" ; then 12505 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12506 found="yes" 12507 fi 12508 fi 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524xorg_testset_save_CFLAGS="$CFLAGS" 12525 12526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12534/* end confdefs.h. */ 12535int i; 12536_ACEOF 12537if ac_fn_c_try_compile "$LINENO"; then : 12538 xorg_cv_cc_flag_unknown_warning_option=yes 12539else 12540 xorg_cv_cc_flag_unknown_warning_option=no 12541fi 12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12543fi 12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12547 CFLAGS="$xorg_testset_save_CFLAGS" 12548fi 12549 12550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12553 fi 12554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12558 $as_echo_n "(cached) " >&6 12559else 12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562int i; 12563_ACEOF 12564if ac_fn_c_try_compile "$LINENO"; then : 12565 xorg_cv_cc_flag_unused_command_line_argument=yes 12566else 12567 xorg_cv_cc_flag_unused_command_line_argument=no 12568fi 12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12570fi 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12574 CFLAGS="$xorg_testset_save_CFLAGS" 12575fi 12576 12577found="no" 12578 12579 if test $found = "no" ; then 12580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12582 fi 12583 12584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12586 fi 12587 12588 CFLAGS="$CFLAGS -Wformat=2" 12589 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12591$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12592 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12593 if eval \${$cacheid+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595else 12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12597/* end confdefs.h. */ 12598int i; 12599int 12600main () 12601{ 12602 12603 ; 12604 return 0; 12605} 12606_ACEOF 12607if ac_fn_c_try_link "$LINENO"; then : 12608 eval $cacheid=yes 12609else 12610 eval $cacheid=no 12611fi 12612rm -f core conftest.err conftest.$ac_objext \ 12613 conftest$ac_exeext conftest.$ac_ext 12614fi 12615 12616 12617 CFLAGS="$xorg_testset_save_CFLAGS" 12618 12619 eval supported=\$$cacheid 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12621$as_echo "$supported" >&6; } 12622 if test "$supported" = "yes" ; then 12623 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12624 found="yes" 12625 fi 12626 fi 12627 12628 if test $found = "no" ; then 12629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12631 fi 12632 12633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12635 fi 12636 12637 CFLAGS="$CFLAGS -Wformat" 12638 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12640$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12641 cacheid=xorg_cv_cc_flag__Wformat 12642 if eval \${$cacheid+:} false; then : 12643 $as_echo_n "(cached) " >&6 12644else 12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647int i; 12648int 12649main () 12650{ 12651 12652 ; 12653 return 0; 12654} 12655_ACEOF 12656if ac_fn_c_try_link "$LINENO"; then : 12657 eval $cacheid=yes 12658else 12659 eval $cacheid=no 12660fi 12661rm -f core conftest.err conftest.$ac_objext \ 12662 conftest$ac_exeext conftest.$ac_ext 12663fi 12664 12665 12666 CFLAGS="$xorg_testset_save_CFLAGS" 12667 12668 eval supported=\$$cacheid 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12670$as_echo "$supported" >&6; } 12671 if test "$supported" = "yes" ; then 12672 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12673 found="yes" 12674 fi 12675 fi 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693xorg_testset_save_CFLAGS="$CFLAGS" 12694 12695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12700 $as_echo_n "(cached) " >&6 12701else 12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12703/* end confdefs.h. */ 12704int i; 12705_ACEOF 12706if ac_fn_c_try_compile "$LINENO"; then : 12707 xorg_cv_cc_flag_unknown_warning_option=yes 12708else 12709 xorg_cv_cc_flag_unknown_warning_option=no 12710fi 12711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12712fi 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12716 CFLAGS="$xorg_testset_save_CFLAGS" 12717fi 12718 12719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12722 fi 12723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12727 $as_echo_n "(cached) " >&6 12728else 12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730/* end confdefs.h. */ 12731int i; 12732_ACEOF 12733if ac_fn_c_try_compile "$LINENO"; then : 12734 xorg_cv_cc_flag_unused_command_line_argument=yes 12735else 12736 xorg_cv_cc_flag_unused_command_line_argument=no 12737fi 12738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12739fi 12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12743 CFLAGS="$xorg_testset_save_CFLAGS" 12744fi 12745 12746found="no" 12747 12748 if test $found = "no" ; then 12749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12751 fi 12752 12753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12755 fi 12756 12757 CFLAGS="$CFLAGS -Wstrict-prototypes" 12758 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12760$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12761 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12762 if eval \${$cacheid+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12766/* end confdefs.h. */ 12767int i; 12768int 12769main () 12770{ 12771 12772 ; 12773 return 0; 12774} 12775_ACEOF 12776if ac_fn_c_try_link "$LINENO"; then : 12777 eval $cacheid=yes 12778else 12779 eval $cacheid=no 12780fi 12781rm -f core conftest.err conftest.$ac_objext \ 12782 conftest$ac_exeext conftest.$ac_ext 12783fi 12784 12785 12786 CFLAGS="$xorg_testset_save_CFLAGS" 12787 12788 eval supported=\$$cacheid 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12790$as_echo "$supported" >&6; } 12791 if test "$supported" = "yes" ; then 12792 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12793 found="yes" 12794 fi 12795 fi 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811xorg_testset_save_CFLAGS="$CFLAGS" 12812 12813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12818 $as_echo_n "(cached) " >&6 12819else 12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12821/* end confdefs.h. */ 12822int i; 12823_ACEOF 12824if ac_fn_c_try_compile "$LINENO"; then : 12825 xorg_cv_cc_flag_unknown_warning_option=yes 12826else 12827 xorg_cv_cc_flag_unknown_warning_option=no 12828fi 12829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12830fi 12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12834 CFLAGS="$xorg_testset_save_CFLAGS" 12835fi 12836 12837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12840 fi 12841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846else 12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12848/* end confdefs.h. */ 12849int i; 12850_ACEOF 12851if ac_fn_c_try_compile "$LINENO"; then : 12852 xorg_cv_cc_flag_unused_command_line_argument=yes 12853else 12854 xorg_cv_cc_flag_unused_command_line_argument=no 12855fi 12856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12857fi 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12861 CFLAGS="$xorg_testset_save_CFLAGS" 12862fi 12863 12864found="no" 12865 12866 if test $found = "no" ; then 12867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12869 fi 12870 12871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12873 fi 12874 12875 CFLAGS="$CFLAGS -Wmissing-prototypes" 12876 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12878$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12879 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12880 if eval \${$cacheid+:} false; then : 12881 $as_echo_n "(cached) " >&6 12882else 12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884/* end confdefs.h. */ 12885int i; 12886int 12887main () 12888{ 12889 12890 ; 12891 return 0; 12892} 12893_ACEOF 12894if ac_fn_c_try_link "$LINENO"; then : 12895 eval $cacheid=yes 12896else 12897 eval $cacheid=no 12898fi 12899rm -f core conftest.err conftest.$ac_objext \ 12900 conftest$ac_exeext conftest.$ac_ext 12901fi 12902 12903 12904 CFLAGS="$xorg_testset_save_CFLAGS" 12905 12906 eval supported=\$$cacheid 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12908$as_echo "$supported" >&6; } 12909 if test "$supported" = "yes" ; then 12910 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12911 found="yes" 12912 fi 12913 fi 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929xorg_testset_save_CFLAGS="$CFLAGS" 12930 12931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12936 $as_echo_n "(cached) " >&6 12937else 12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12939/* end confdefs.h. */ 12940int i; 12941_ACEOF 12942if ac_fn_c_try_compile "$LINENO"; then : 12943 xorg_cv_cc_flag_unknown_warning_option=yes 12944else 12945 xorg_cv_cc_flag_unknown_warning_option=no 12946fi 12947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12948fi 12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12952 CFLAGS="$xorg_testset_save_CFLAGS" 12953fi 12954 12955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12958 fi 12959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12963 $as_echo_n "(cached) " >&6 12964else 12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12966/* end confdefs.h. */ 12967int i; 12968_ACEOF 12969if ac_fn_c_try_compile "$LINENO"; then : 12970 xorg_cv_cc_flag_unused_command_line_argument=yes 12971else 12972 xorg_cv_cc_flag_unused_command_line_argument=no 12973fi 12974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12975fi 12976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12979 CFLAGS="$xorg_testset_save_CFLAGS" 12980fi 12981 12982found="no" 12983 12984 if test $found = "no" ; then 12985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12987 fi 12988 12989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12991 fi 12992 12993 CFLAGS="$CFLAGS -Wnested-externs" 12994 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12996$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12997 cacheid=xorg_cv_cc_flag__Wnested_externs 12998 if eval \${$cacheid+:} false; then : 12999 $as_echo_n "(cached) " >&6 13000else 13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13002/* end confdefs.h. */ 13003int i; 13004int 13005main () 13006{ 13007 13008 ; 13009 return 0; 13010} 13011_ACEOF 13012if ac_fn_c_try_link "$LINENO"; then : 13013 eval $cacheid=yes 13014else 13015 eval $cacheid=no 13016fi 13017rm -f core conftest.err conftest.$ac_objext \ 13018 conftest$ac_exeext conftest.$ac_ext 13019fi 13020 13021 13022 CFLAGS="$xorg_testset_save_CFLAGS" 13023 13024 eval supported=\$$cacheid 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13026$as_echo "$supported" >&6; } 13027 if test "$supported" = "yes" ; then 13028 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13029 found="yes" 13030 fi 13031 fi 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047xorg_testset_save_CFLAGS="$CFLAGS" 13048 13049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055else 13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13057/* end confdefs.h. */ 13058int i; 13059_ACEOF 13060if ac_fn_c_try_compile "$LINENO"; then : 13061 xorg_cv_cc_flag_unknown_warning_option=yes 13062else 13063 xorg_cv_cc_flag_unknown_warning_option=no 13064fi 13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13066fi 13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13070 CFLAGS="$xorg_testset_save_CFLAGS" 13071fi 13072 13073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13076 fi 13077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13081 $as_echo_n "(cached) " >&6 13082else 13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13084/* end confdefs.h. */ 13085int i; 13086_ACEOF 13087if ac_fn_c_try_compile "$LINENO"; then : 13088 xorg_cv_cc_flag_unused_command_line_argument=yes 13089else 13090 xorg_cv_cc_flag_unused_command_line_argument=no 13091fi 13092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13093fi 13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13097 CFLAGS="$xorg_testset_save_CFLAGS" 13098fi 13099 13100found="no" 13101 13102 if test $found = "no" ; then 13103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13105 fi 13106 13107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13109 fi 13110 13111 CFLAGS="$CFLAGS -Wbad-function-cast" 13112 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13114$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13115 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13116 if eval \${$cacheid+:} false; then : 13117 $as_echo_n "(cached) " >&6 13118else 13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13120/* end confdefs.h. */ 13121int i; 13122int 13123main () 13124{ 13125 13126 ; 13127 return 0; 13128} 13129_ACEOF 13130if ac_fn_c_try_link "$LINENO"; then : 13131 eval $cacheid=yes 13132else 13133 eval $cacheid=no 13134fi 13135rm -f core conftest.err conftest.$ac_objext \ 13136 conftest$ac_exeext conftest.$ac_ext 13137fi 13138 13139 13140 CFLAGS="$xorg_testset_save_CFLAGS" 13141 13142 eval supported=\$$cacheid 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13144$as_echo "$supported" >&6; } 13145 if test "$supported" = "yes" ; then 13146 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13147 found="yes" 13148 fi 13149 fi 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165xorg_testset_save_CFLAGS="$CFLAGS" 13166 13167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176int i; 13177_ACEOF 13178if ac_fn_c_try_compile "$LINENO"; then : 13179 xorg_cv_cc_flag_unknown_warning_option=yes 13180else 13181 xorg_cv_cc_flag_unknown_warning_option=no 13182fi 13183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13184fi 13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13188 CFLAGS="$xorg_testset_save_CFLAGS" 13189fi 13190 13191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13194 fi 13195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13199 $as_echo_n "(cached) " >&6 13200else 13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13202/* end confdefs.h. */ 13203int i; 13204_ACEOF 13205if ac_fn_c_try_compile "$LINENO"; then : 13206 xorg_cv_cc_flag_unused_command_line_argument=yes 13207else 13208 xorg_cv_cc_flag_unused_command_line_argument=no 13209fi 13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13211fi 13212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13215 CFLAGS="$xorg_testset_save_CFLAGS" 13216fi 13217 13218found="no" 13219 13220 if test $found = "no" ; then 13221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13223 fi 13224 13225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13227 fi 13228 13229 CFLAGS="$CFLAGS -Wold-style-definition" 13230 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13232$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13233 cacheid=xorg_cv_cc_flag__Wold_style_definition 13234 if eval \${$cacheid+:} false; then : 13235 $as_echo_n "(cached) " >&6 13236else 13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13238/* end confdefs.h. */ 13239int i; 13240int 13241main () 13242{ 13243 13244 ; 13245 return 0; 13246} 13247_ACEOF 13248if ac_fn_c_try_link "$LINENO"; then : 13249 eval $cacheid=yes 13250else 13251 eval $cacheid=no 13252fi 13253rm -f core conftest.err conftest.$ac_objext \ 13254 conftest$ac_exeext conftest.$ac_ext 13255fi 13256 13257 13258 CFLAGS="$xorg_testset_save_CFLAGS" 13259 13260 eval supported=\$$cacheid 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13262$as_echo "$supported" >&6; } 13263 if test "$supported" = "yes" ; then 13264 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13265 found="yes" 13266 fi 13267 fi 13268 13269 if test $found = "no" ; then 13270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13272 fi 13273 13274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13276 fi 13277 13278 CFLAGS="$CFLAGS -fd" 13279 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13281$as_echo_n "checking if $CC supports -fd... " >&6; } 13282 cacheid=xorg_cv_cc_flag__fd 13283 if eval \${$cacheid+:} false; then : 13284 $as_echo_n "(cached) " >&6 13285else 13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13287/* end confdefs.h. */ 13288int i; 13289int 13290main () 13291{ 13292 13293 ; 13294 return 0; 13295} 13296_ACEOF 13297if ac_fn_c_try_link "$LINENO"; then : 13298 eval $cacheid=yes 13299else 13300 eval $cacheid=no 13301fi 13302rm -f core conftest.err conftest.$ac_objext \ 13303 conftest$ac_exeext conftest.$ac_ext 13304fi 13305 13306 13307 CFLAGS="$xorg_testset_save_CFLAGS" 13308 13309 eval supported=\$$cacheid 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13311$as_echo "$supported" >&6; } 13312 if test "$supported" = "yes" ; then 13313 BASE_CFLAGS="$BASE_CFLAGS -fd" 13314 found="yes" 13315 fi 13316 fi 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332xorg_testset_save_CFLAGS="$CFLAGS" 13333 13334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340else 13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13342/* end confdefs.h. */ 13343int i; 13344_ACEOF 13345if ac_fn_c_try_compile "$LINENO"; then : 13346 xorg_cv_cc_flag_unknown_warning_option=yes 13347else 13348 xorg_cv_cc_flag_unknown_warning_option=no 13349fi 13350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13351fi 13352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13355 CFLAGS="$xorg_testset_save_CFLAGS" 13356fi 13357 13358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13361 fi 13362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13366 $as_echo_n "(cached) " >&6 13367else 13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13369/* end confdefs.h. */ 13370int i; 13371_ACEOF 13372if ac_fn_c_try_compile "$LINENO"; then : 13373 xorg_cv_cc_flag_unused_command_line_argument=yes 13374else 13375 xorg_cv_cc_flag_unused_command_line_argument=no 13376fi 13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13382 CFLAGS="$xorg_testset_save_CFLAGS" 13383fi 13384 13385found="no" 13386 13387 if test $found = "no" ; then 13388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13390 fi 13391 13392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13394 fi 13395 13396 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13397 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13399$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13400 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13401 if eval \${$cacheid+:} false; then : 13402 $as_echo_n "(cached) " >&6 13403else 13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13405/* end confdefs.h. */ 13406int i; 13407int 13408main () 13409{ 13410 13411 ; 13412 return 0; 13413} 13414_ACEOF 13415if ac_fn_c_try_link "$LINENO"; then : 13416 eval $cacheid=yes 13417else 13418 eval $cacheid=no 13419fi 13420rm -f core conftest.err conftest.$ac_objext \ 13421 conftest$ac_exeext conftest.$ac_ext 13422fi 13423 13424 13425 CFLAGS="$xorg_testset_save_CFLAGS" 13426 13427 eval supported=\$$cacheid 13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13429$as_echo "$supported" >&6; } 13430 if test "$supported" = "yes" ; then 13431 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13432 found="yes" 13433 fi 13434 fi 13435 13436 13437 13438 13439 13440# This chunk adds additional warnings that could catch undesired effects. 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454xorg_testset_save_CFLAGS="$CFLAGS" 13455 13456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13461 $as_echo_n "(cached) " >&6 13462else 13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13464/* end confdefs.h. */ 13465int i; 13466_ACEOF 13467if ac_fn_c_try_compile "$LINENO"; then : 13468 xorg_cv_cc_flag_unknown_warning_option=yes 13469else 13470 xorg_cv_cc_flag_unknown_warning_option=no 13471fi 13472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13473fi 13474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13477 CFLAGS="$xorg_testset_save_CFLAGS" 13478fi 13479 13480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13483 fi 13484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13488 $as_echo_n "(cached) " >&6 13489else 13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13491/* end confdefs.h. */ 13492int i; 13493_ACEOF 13494if ac_fn_c_try_compile "$LINENO"; then : 13495 xorg_cv_cc_flag_unused_command_line_argument=yes 13496else 13497 xorg_cv_cc_flag_unused_command_line_argument=no 13498fi 13499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13500fi 13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13504 CFLAGS="$xorg_testset_save_CFLAGS" 13505fi 13506 13507found="no" 13508 13509 if test $found = "no" ; then 13510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13512 fi 13513 13514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13516 fi 13517 13518 CFLAGS="$CFLAGS -Wunused" 13519 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13521$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13522 cacheid=xorg_cv_cc_flag__Wunused 13523 if eval \${$cacheid+:} false; then : 13524 $as_echo_n "(cached) " >&6 13525else 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528int i; 13529int 13530main () 13531{ 13532 13533 ; 13534 return 0; 13535} 13536_ACEOF 13537if ac_fn_c_try_link "$LINENO"; then : 13538 eval $cacheid=yes 13539else 13540 eval $cacheid=no 13541fi 13542rm -f core conftest.err conftest.$ac_objext \ 13543 conftest$ac_exeext conftest.$ac_ext 13544fi 13545 13546 13547 CFLAGS="$xorg_testset_save_CFLAGS" 13548 13549 eval supported=\$$cacheid 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13551$as_echo "$supported" >&6; } 13552 if test "$supported" = "yes" ; then 13553 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13554 found="yes" 13555 fi 13556 fi 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572xorg_testset_save_CFLAGS="$CFLAGS" 13573 13574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580else 13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13582/* end confdefs.h. */ 13583int i; 13584_ACEOF 13585if ac_fn_c_try_compile "$LINENO"; then : 13586 xorg_cv_cc_flag_unknown_warning_option=yes 13587else 13588 xorg_cv_cc_flag_unknown_warning_option=no 13589fi 13590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13591fi 13592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13595 CFLAGS="$xorg_testset_save_CFLAGS" 13596fi 13597 13598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13601 fi 13602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13609/* end confdefs.h. */ 13610int i; 13611_ACEOF 13612if ac_fn_c_try_compile "$LINENO"; then : 13613 xorg_cv_cc_flag_unused_command_line_argument=yes 13614else 13615 xorg_cv_cc_flag_unused_command_line_argument=no 13616fi 13617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13618fi 13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13622 CFLAGS="$xorg_testset_save_CFLAGS" 13623fi 13624 13625found="no" 13626 13627 if test $found = "no" ; then 13628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13630 fi 13631 13632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13634 fi 13635 13636 CFLAGS="$CFLAGS -Wuninitialized" 13637 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13639$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13640 cacheid=xorg_cv_cc_flag__Wuninitialized 13641 if eval \${$cacheid+:} false; then : 13642 $as_echo_n "(cached) " >&6 13643else 13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13645/* end confdefs.h. */ 13646int i; 13647int 13648main () 13649{ 13650 13651 ; 13652 return 0; 13653} 13654_ACEOF 13655if ac_fn_c_try_link "$LINENO"; then : 13656 eval $cacheid=yes 13657else 13658 eval $cacheid=no 13659fi 13660rm -f core conftest.err conftest.$ac_objext \ 13661 conftest$ac_exeext conftest.$ac_ext 13662fi 13663 13664 13665 CFLAGS="$xorg_testset_save_CFLAGS" 13666 13667 eval supported=\$$cacheid 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13669$as_echo "$supported" >&6; } 13670 if test "$supported" = "yes" ; then 13671 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13672 found="yes" 13673 fi 13674 fi 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690xorg_testset_save_CFLAGS="$CFLAGS" 13691 13692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698else 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701int i; 13702_ACEOF 13703if ac_fn_c_try_compile "$LINENO"; then : 13704 xorg_cv_cc_flag_unknown_warning_option=yes 13705else 13706 xorg_cv_cc_flag_unknown_warning_option=no 13707fi 13708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13709fi 13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13713 CFLAGS="$xorg_testset_save_CFLAGS" 13714fi 13715 13716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13719 fi 13720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13724 $as_echo_n "(cached) " >&6 13725else 13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13727/* end confdefs.h. */ 13728int i; 13729_ACEOF 13730if ac_fn_c_try_compile "$LINENO"; then : 13731 xorg_cv_cc_flag_unused_command_line_argument=yes 13732else 13733 xorg_cv_cc_flag_unused_command_line_argument=no 13734fi 13735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13736fi 13737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13740 CFLAGS="$xorg_testset_save_CFLAGS" 13741fi 13742 13743found="no" 13744 13745 if test $found = "no" ; then 13746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13748 fi 13749 13750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13752 fi 13753 13754 CFLAGS="$CFLAGS -Wshadow" 13755 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13757$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13758 cacheid=xorg_cv_cc_flag__Wshadow 13759 if eval \${$cacheid+:} false; then : 13760 $as_echo_n "(cached) " >&6 13761else 13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764int i; 13765int 13766main () 13767{ 13768 13769 ; 13770 return 0; 13771} 13772_ACEOF 13773if ac_fn_c_try_link "$LINENO"; then : 13774 eval $cacheid=yes 13775else 13776 eval $cacheid=no 13777fi 13778rm -f core conftest.err conftest.$ac_objext \ 13779 conftest$ac_exeext conftest.$ac_ext 13780fi 13781 13782 13783 CFLAGS="$xorg_testset_save_CFLAGS" 13784 13785 eval supported=\$$cacheid 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13787$as_echo "$supported" >&6; } 13788 if test "$supported" = "yes" ; then 13789 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13790 found="yes" 13791 fi 13792 fi 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808xorg_testset_save_CFLAGS="$CFLAGS" 13809 13810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13815 $as_echo_n "(cached) " >&6 13816else 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819int i; 13820_ACEOF 13821if ac_fn_c_try_compile "$LINENO"; then : 13822 xorg_cv_cc_flag_unknown_warning_option=yes 13823else 13824 xorg_cv_cc_flag_unknown_warning_option=no 13825fi 13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13827fi 13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13831 CFLAGS="$xorg_testset_save_CFLAGS" 13832fi 13833 13834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13837 fi 13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13842 $as_echo_n "(cached) " >&6 13843else 13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13845/* end confdefs.h. */ 13846int i; 13847_ACEOF 13848if ac_fn_c_try_compile "$LINENO"; then : 13849 xorg_cv_cc_flag_unused_command_line_argument=yes 13850else 13851 xorg_cv_cc_flag_unused_command_line_argument=no 13852fi 13853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13854fi 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13858 CFLAGS="$xorg_testset_save_CFLAGS" 13859fi 13860 13861found="no" 13862 13863 if test $found = "no" ; then 13864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13866 fi 13867 13868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13870 fi 13871 13872 CFLAGS="$CFLAGS -Wmissing-noreturn" 13873 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13875$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13876 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13877 if eval \${$cacheid+:} false; then : 13878 $as_echo_n "(cached) " >&6 13879else 13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13881/* end confdefs.h. */ 13882int i; 13883int 13884main () 13885{ 13886 13887 ; 13888 return 0; 13889} 13890_ACEOF 13891if ac_fn_c_try_link "$LINENO"; then : 13892 eval $cacheid=yes 13893else 13894 eval $cacheid=no 13895fi 13896rm -f core conftest.err conftest.$ac_objext \ 13897 conftest$ac_exeext conftest.$ac_ext 13898fi 13899 13900 13901 CFLAGS="$xorg_testset_save_CFLAGS" 13902 13903 eval supported=\$$cacheid 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13905$as_echo "$supported" >&6; } 13906 if test "$supported" = "yes" ; then 13907 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13908 found="yes" 13909 fi 13910 fi 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926xorg_testset_save_CFLAGS="$CFLAGS" 13927 13928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13933 $as_echo_n "(cached) " >&6 13934else 13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13936/* end confdefs.h. */ 13937int i; 13938_ACEOF 13939if ac_fn_c_try_compile "$LINENO"; then : 13940 xorg_cv_cc_flag_unknown_warning_option=yes 13941else 13942 xorg_cv_cc_flag_unknown_warning_option=no 13943fi 13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13945fi 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13949 CFLAGS="$xorg_testset_save_CFLAGS" 13950fi 13951 13952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13955 fi 13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13960 $as_echo_n "(cached) " >&6 13961else 13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13963/* end confdefs.h. */ 13964int i; 13965_ACEOF 13966if ac_fn_c_try_compile "$LINENO"; then : 13967 xorg_cv_cc_flag_unused_command_line_argument=yes 13968else 13969 xorg_cv_cc_flag_unused_command_line_argument=no 13970fi 13971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13972fi 13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13976 CFLAGS="$xorg_testset_save_CFLAGS" 13977fi 13978 13979found="no" 13980 13981 if test $found = "no" ; then 13982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13984 fi 13985 13986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13988 fi 13989 13990 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13991 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13993$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13994 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13995 if eval \${$cacheid+:} false; then : 13996 $as_echo_n "(cached) " >&6 13997else 13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13999/* end confdefs.h. */ 14000int i; 14001int 14002main () 14003{ 14004 14005 ; 14006 return 0; 14007} 14008_ACEOF 14009if ac_fn_c_try_link "$LINENO"; then : 14010 eval $cacheid=yes 14011else 14012 eval $cacheid=no 14013fi 14014rm -f core conftest.err conftest.$ac_objext \ 14015 conftest$ac_exeext conftest.$ac_ext 14016fi 14017 14018 14019 CFLAGS="$xorg_testset_save_CFLAGS" 14020 14021 eval supported=\$$cacheid 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14023$as_echo "$supported" >&6; } 14024 if test "$supported" = "yes" ; then 14025 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14026 found="yes" 14027 fi 14028 fi 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044xorg_testset_save_CFLAGS="$CFLAGS" 14045 14046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14051 $as_echo_n "(cached) " >&6 14052else 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055int i; 14056_ACEOF 14057if ac_fn_c_try_compile "$LINENO"; then : 14058 xorg_cv_cc_flag_unknown_warning_option=yes 14059else 14060 xorg_cv_cc_flag_unknown_warning_option=no 14061fi 14062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14063fi 14064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14067 CFLAGS="$xorg_testset_save_CFLAGS" 14068fi 14069 14070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14073 fi 14074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14078 $as_echo_n "(cached) " >&6 14079else 14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14081/* end confdefs.h. */ 14082int i; 14083_ACEOF 14084if ac_fn_c_try_compile "$LINENO"; then : 14085 xorg_cv_cc_flag_unused_command_line_argument=yes 14086else 14087 xorg_cv_cc_flag_unused_command_line_argument=no 14088fi 14089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14090fi 14091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14094 CFLAGS="$xorg_testset_save_CFLAGS" 14095fi 14096 14097found="no" 14098 14099 if test $found = "no" ; then 14100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14102 fi 14103 14104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14106 fi 14107 14108 CFLAGS="$CFLAGS -Wredundant-decls" 14109 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14111$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14112 cacheid=xorg_cv_cc_flag__Wredundant_decls 14113 if eval \${$cacheid+:} false; then : 14114 $as_echo_n "(cached) " >&6 14115else 14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117/* end confdefs.h. */ 14118int i; 14119int 14120main () 14121{ 14122 14123 ; 14124 return 0; 14125} 14126_ACEOF 14127if ac_fn_c_try_link "$LINENO"; then : 14128 eval $cacheid=yes 14129else 14130 eval $cacheid=no 14131fi 14132rm -f core conftest.err conftest.$ac_objext \ 14133 conftest$ac_exeext conftest.$ac_ext 14134fi 14135 14136 14137 CFLAGS="$xorg_testset_save_CFLAGS" 14138 14139 eval supported=\$$cacheid 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14141$as_echo "$supported" >&6; } 14142 if test "$supported" = "yes" ; then 14143 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14144 found="yes" 14145 fi 14146 fi 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162xorg_testset_save_CFLAGS="$CFLAGS" 14163 14164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14169 $as_echo_n "(cached) " >&6 14170else 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172/* end confdefs.h. */ 14173int i; 14174_ACEOF 14175if ac_fn_c_try_compile "$LINENO"; then : 14176 xorg_cv_cc_flag_unknown_warning_option=yes 14177else 14178 xorg_cv_cc_flag_unknown_warning_option=no 14179fi 14180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14181fi 14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14185 CFLAGS="$xorg_testset_save_CFLAGS" 14186fi 14187 14188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14191 fi 14192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14196 $as_echo_n "(cached) " >&6 14197else 14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14199/* end confdefs.h. */ 14200int i; 14201_ACEOF 14202if ac_fn_c_try_compile "$LINENO"; then : 14203 xorg_cv_cc_flag_unused_command_line_argument=yes 14204else 14205 xorg_cv_cc_flag_unused_command_line_argument=no 14206fi 14207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14208fi 14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14212 CFLAGS="$xorg_testset_save_CFLAGS" 14213fi 14214 14215found="no" 14216 14217 if test $found = "no" ; then 14218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14220 fi 14221 14222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14224 fi 14225 14226 CFLAGS="$CFLAGS -Wlogical-op" 14227 14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14229$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14230 cacheid=xorg_cv_cc_flag__Wlogical_op 14231 if eval \${$cacheid+:} false; then : 14232 $as_echo_n "(cached) " >&6 14233else 14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14235/* end confdefs.h. */ 14236int i; 14237int 14238main () 14239{ 14240 14241 ; 14242 return 0; 14243} 14244_ACEOF 14245if ac_fn_c_try_link "$LINENO"; then : 14246 eval $cacheid=yes 14247else 14248 eval $cacheid=no 14249fi 14250rm -f core conftest.err conftest.$ac_objext \ 14251 conftest$ac_exeext conftest.$ac_ext 14252fi 14253 14254 14255 CFLAGS="$xorg_testset_save_CFLAGS" 14256 14257 eval supported=\$$cacheid 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14259$as_echo "$supported" >&6; } 14260 if test "$supported" = "yes" ; then 14261 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14262 found="yes" 14263 fi 14264 fi 14265 14266 14267 14268# These are currently disabled because they are noisy. They will be enabled 14269# in the future once the codebase is sufficiently modernized to silence 14270# them. For now, I don't want them to drown out the other warnings. 14271# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14272# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14273# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14274 14275# Turn some warnings into errors, so we don't accidently get successful builds 14276# when there are problems that should be fixed. 14277 14278if test "x$SELECTIVE_WERROR" = "xyes" ; then 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292xorg_testset_save_CFLAGS="$CFLAGS" 14293 14294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14299 $as_echo_n "(cached) " >&6 14300else 14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14302/* end confdefs.h. */ 14303int i; 14304_ACEOF 14305if ac_fn_c_try_compile "$LINENO"; then : 14306 xorg_cv_cc_flag_unknown_warning_option=yes 14307else 14308 xorg_cv_cc_flag_unknown_warning_option=no 14309fi 14310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14311fi 14312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14315 CFLAGS="$xorg_testset_save_CFLAGS" 14316fi 14317 14318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14321 fi 14322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14326 $as_echo_n "(cached) " >&6 14327else 14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14329/* end confdefs.h. */ 14330int i; 14331_ACEOF 14332if ac_fn_c_try_compile "$LINENO"; then : 14333 xorg_cv_cc_flag_unused_command_line_argument=yes 14334else 14335 xorg_cv_cc_flag_unused_command_line_argument=no 14336fi 14337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14338fi 14339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14342 CFLAGS="$xorg_testset_save_CFLAGS" 14343fi 14344 14345found="no" 14346 14347 if test $found = "no" ; then 14348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14350 fi 14351 14352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14354 fi 14355 14356 CFLAGS="$CFLAGS -Werror=implicit" 14357 14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14359$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14360 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14361 if eval \${$cacheid+:} false; then : 14362 $as_echo_n "(cached) " >&6 14363else 14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14365/* end confdefs.h. */ 14366int i; 14367int 14368main () 14369{ 14370 14371 ; 14372 return 0; 14373} 14374_ACEOF 14375if ac_fn_c_try_link "$LINENO"; then : 14376 eval $cacheid=yes 14377else 14378 eval $cacheid=no 14379fi 14380rm -f core conftest.err conftest.$ac_objext \ 14381 conftest$ac_exeext conftest.$ac_ext 14382fi 14383 14384 14385 CFLAGS="$xorg_testset_save_CFLAGS" 14386 14387 eval supported=\$$cacheid 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14389$as_echo "$supported" >&6; } 14390 if test "$supported" = "yes" ; then 14391 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14392 found="yes" 14393 fi 14394 fi 14395 14396 if test $found = "no" ; then 14397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14399 fi 14400 14401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14403 fi 14404 14405 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14406 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14408$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14409 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14410 if eval \${$cacheid+:} false; then : 14411 $as_echo_n "(cached) " >&6 14412else 14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14414/* end confdefs.h. */ 14415int i; 14416int 14417main () 14418{ 14419 14420 ; 14421 return 0; 14422} 14423_ACEOF 14424if ac_fn_c_try_link "$LINENO"; then : 14425 eval $cacheid=yes 14426else 14427 eval $cacheid=no 14428fi 14429rm -f core conftest.err conftest.$ac_objext \ 14430 conftest$ac_exeext conftest.$ac_ext 14431fi 14432 14433 14434 CFLAGS="$xorg_testset_save_CFLAGS" 14435 14436 eval supported=\$$cacheid 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14438$as_echo "$supported" >&6; } 14439 if test "$supported" = "yes" ; then 14440 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14441 found="yes" 14442 fi 14443 fi 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459xorg_testset_save_CFLAGS="$CFLAGS" 14460 14461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14466 $as_echo_n "(cached) " >&6 14467else 14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14469/* end confdefs.h. */ 14470int i; 14471_ACEOF 14472if ac_fn_c_try_compile "$LINENO"; then : 14473 xorg_cv_cc_flag_unknown_warning_option=yes 14474else 14475 xorg_cv_cc_flag_unknown_warning_option=no 14476fi 14477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14478fi 14479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14482 CFLAGS="$xorg_testset_save_CFLAGS" 14483fi 14484 14485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14488 fi 14489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14493 $as_echo_n "(cached) " >&6 14494else 14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14496/* end confdefs.h. */ 14497int i; 14498_ACEOF 14499if ac_fn_c_try_compile "$LINENO"; then : 14500 xorg_cv_cc_flag_unused_command_line_argument=yes 14501else 14502 xorg_cv_cc_flag_unused_command_line_argument=no 14503fi 14504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14505fi 14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14509 CFLAGS="$xorg_testset_save_CFLAGS" 14510fi 14511 14512found="no" 14513 14514 if test $found = "no" ; then 14515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14517 fi 14518 14519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14521 fi 14522 14523 CFLAGS="$CFLAGS -Werror=nonnull" 14524 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14526$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14527 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14528 if eval \${$cacheid+:} false; then : 14529 $as_echo_n "(cached) " >&6 14530else 14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14532/* end confdefs.h. */ 14533int i; 14534int 14535main () 14536{ 14537 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542if ac_fn_c_try_link "$LINENO"; then : 14543 eval $cacheid=yes 14544else 14545 eval $cacheid=no 14546fi 14547rm -f core conftest.err conftest.$ac_objext \ 14548 conftest$ac_exeext conftest.$ac_ext 14549fi 14550 14551 14552 CFLAGS="$xorg_testset_save_CFLAGS" 14553 14554 eval supported=\$$cacheid 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14556$as_echo "$supported" >&6; } 14557 if test "$supported" = "yes" ; then 14558 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14559 found="yes" 14560 fi 14561 fi 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577xorg_testset_save_CFLAGS="$CFLAGS" 14578 14579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14584 $as_echo_n "(cached) " >&6 14585else 14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14587/* end confdefs.h. */ 14588int i; 14589_ACEOF 14590if ac_fn_c_try_compile "$LINENO"; then : 14591 xorg_cv_cc_flag_unknown_warning_option=yes 14592else 14593 xorg_cv_cc_flag_unknown_warning_option=no 14594fi 14595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14596fi 14597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14600 CFLAGS="$xorg_testset_save_CFLAGS" 14601fi 14602 14603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14606 fi 14607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14611 $as_echo_n "(cached) " >&6 14612else 14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14614/* end confdefs.h. */ 14615int i; 14616_ACEOF 14617if ac_fn_c_try_compile "$LINENO"; then : 14618 xorg_cv_cc_flag_unused_command_line_argument=yes 14619else 14620 xorg_cv_cc_flag_unused_command_line_argument=no 14621fi 14622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14623fi 14624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14627 CFLAGS="$xorg_testset_save_CFLAGS" 14628fi 14629 14630found="no" 14631 14632 if test $found = "no" ; then 14633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14635 fi 14636 14637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14639 fi 14640 14641 CFLAGS="$CFLAGS -Werror=init-self" 14642 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14644$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14645 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14646 if eval \${$cacheid+:} false; then : 14647 $as_echo_n "(cached) " >&6 14648else 14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14650/* end confdefs.h. */ 14651int i; 14652int 14653main () 14654{ 14655 14656 ; 14657 return 0; 14658} 14659_ACEOF 14660if ac_fn_c_try_link "$LINENO"; then : 14661 eval $cacheid=yes 14662else 14663 eval $cacheid=no 14664fi 14665rm -f core conftest.err conftest.$ac_objext \ 14666 conftest$ac_exeext conftest.$ac_ext 14667fi 14668 14669 14670 CFLAGS="$xorg_testset_save_CFLAGS" 14671 14672 eval supported=\$$cacheid 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14674$as_echo "$supported" >&6; } 14675 if test "$supported" = "yes" ; then 14676 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14677 found="yes" 14678 fi 14679 fi 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695xorg_testset_save_CFLAGS="$CFLAGS" 14696 14697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14702 $as_echo_n "(cached) " >&6 14703else 14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14705/* end confdefs.h. */ 14706int i; 14707_ACEOF 14708if ac_fn_c_try_compile "$LINENO"; then : 14709 xorg_cv_cc_flag_unknown_warning_option=yes 14710else 14711 xorg_cv_cc_flag_unknown_warning_option=no 14712fi 14713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14714fi 14715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14718 CFLAGS="$xorg_testset_save_CFLAGS" 14719fi 14720 14721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14724 fi 14725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14729 $as_echo_n "(cached) " >&6 14730else 14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14732/* end confdefs.h. */ 14733int i; 14734_ACEOF 14735if ac_fn_c_try_compile "$LINENO"; then : 14736 xorg_cv_cc_flag_unused_command_line_argument=yes 14737else 14738 xorg_cv_cc_flag_unused_command_line_argument=no 14739fi 14740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14741fi 14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14745 CFLAGS="$xorg_testset_save_CFLAGS" 14746fi 14747 14748found="no" 14749 14750 if test $found = "no" ; then 14751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14753 fi 14754 14755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14757 fi 14758 14759 CFLAGS="$CFLAGS -Werror=main" 14760 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14762$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14763 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14764 if eval \${$cacheid+:} false; then : 14765 $as_echo_n "(cached) " >&6 14766else 14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14768/* end confdefs.h. */ 14769int i; 14770int 14771main () 14772{ 14773 14774 ; 14775 return 0; 14776} 14777_ACEOF 14778if ac_fn_c_try_link "$LINENO"; then : 14779 eval $cacheid=yes 14780else 14781 eval $cacheid=no 14782fi 14783rm -f core conftest.err conftest.$ac_objext \ 14784 conftest$ac_exeext conftest.$ac_ext 14785fi 14786 14787 14788 CFLAGS="$xorg_testset_save_CFLAGS" 14789 14790 eval supported=\$$cacheid 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14792$as_echo "$supported" >&6; } 14793 if test "$supported" = "yes" ; then 14794 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14795 found="yes" 14796 fi 14797 fi 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813xorg_testset_save_CFLAGS="$CFLAGS" 14814 14815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14820 $as_echo_n "(cached) " >&6 14821else 14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14823/* end confdefs.h. */ 14824int i; 14825_ACEOF 14826if ac_fn_c_try_compile "$LINENO"; then : 14827 xorg_cv_cc_flag_unknown_warning_option=yes 14828else 14829 xorg_cv_cc_flag_unknown_warning_option=no 14830fi 14831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14832fi 14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14836 CFLAGS="$xorg_testset_save_CFLAGS" 14837fi 14838 14839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14842 fi 14843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14847 $as_echo_n "(cached) " >&6 14848else 14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14850/* end confdefs.h. */ 14851int i; 14852_ACEOF 14853if ac_fn_c_try_compile "$LINENO"; then : 14854 xorg_cv_cc_flag_unused_command_line_argument=yes 14855else 14856 xorg_cv_cc_flag_unused_command_line_argument=no 14857fi 14858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14859fi 14860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14863 CFLAGS="$xorg_testset_save_CFLAGS" 14864fi 14865 14866found="no" 14867 14868 if test $found = "no" ; then 14869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14871 fi 14872 14873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14875 fi 14876 14877 CFLAGS="$CFLAGS -Werror=missing-braces" 14878 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14880$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14881 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14882 if eval \${$cacheid+:} false; then : 14883 $as_echo_n "(cached) " >&6 14884else 14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14886/* end confdefs.h. */ 14887int i; 14888int 14889main () 14890{ 14891 14892 ; 14893 return 0; 14894} 14895_ACEOF 14896if ac_fn_c_try_link "$LINENO"; then : 14897 eval $cacheid=yes 14898else 14899 eval $cacheid=no 14900fi 14901rm -f core conftest.err conftest.$ac_objext \ 14902 conftest$ac_exeext conftest.$ac_ext 14903fi 14904 14905 14906 CFLAGS="$xorg_testset_save_CFLAGS" 14907 14908 eval supported=\$$cacheid 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14910$as_echo "$supported" >&6; } 14911 if test "$supported" = "yes" ; then 14912 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14913 found="yes" 14914 fi 14915 fi 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931xorg_testset_save_CFLAGS="$CFLAGS" 14932 14933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939else 14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14941/* end confdefs.h. */ 14942int i; 14943_ACEOF 14944if ac_fn_c_try_compile "$LINENO"; then : 14945 xorg_cv_cc_flag_unknown_warning_option=yes 14946else 14947 xorg_cv_cc_flag_unknown_warning_option=no 14948fi 14949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14950fi 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14954 CFLAGS="$xorg_testset_save_CFLAGS" 14955fi 14956 14957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14960 fi 14961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14965 $as_echo_n "(cached) " >&6 14966else 14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14968/* end confdefs.h. */ 14969int i; 14970_ACEOF 14971if ac_fn_c_try_compile "$LINENO"; then : 14972 xorg_cv_cc_flag_unused_command_line_argument=yes 14973else 14974 xorg_cv_cc_flag_unused_command_line_argument=no 14975fi 14976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14977fi 14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14981 CFLAGS="$xorg_testset_save_CFLAGS" 14982fi 14983 14984found="no" 14985 14986 if test $found = "no" ; then 14987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14989 fi 14990 14991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14993 fi 14994 14995 CFLAGS="$CFLAGS -Werror=sequence-point" 14996 14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14998$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14999 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 15000 if eval \${$cacheid+:} false; then : 15001 $as_echo_n "(cached) " >&6 15002else 15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004/* end confdefs.h. */ 15005int i; 15006int 15007main () 15008{ 15009 15010 ; 15011 return 0; 15012} 15013_ACEOF 15014if ac_fn_c_try_link "$LINENO"; then : 15015 eval $cacheid=yes 15016else 15017 eval $cacheid=no 15018fi 15019rm -f core conftest.err conftest.$ac_objext \ 15020 conftest$ac_exeext conftest.$ac_ext 15021fi 15022 15023 15024 CFLAGS="$xorg_testset_save_CFLAGS" 15025 15026 eval supported=\$$cacheid 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15028$as_echo "$supported" >&6; } 15029 if test "$supported" = "yes" ; then 15030 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15031 found="yes" 15032 fi 15033 fi 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049xorg_testset_save_CFLAGS="$CFLAGS" 15050 15051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15056 $as_echo_n "(cached) " >&6 15057else 15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15059/* end confdefs.h. */ 15060int i; 15061_ACEOF 15062if ac_fn_c_try_compile "$LINENO"; then : 15063 xorg_cv_cc_flag_unknown_warning_option=yes 15064else 15065 xorg_cv_cc_flag_unknown_warning_option=no 15066fi 15067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15068fi 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15072 CFLAGS="$xorg_testset_save_CFLAGS" 15073fi 15074 15075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15078 fi 15079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15083 $as_echo_n "(cached) " >&6 15084else 15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15086/* end confdefs.h. */ 15087int i; 15088_ACEOF 15089if ac_fn_c_try_compile "$LINENO"; then : 15090 xorg_cv_cc_flag_unused_command_line_argument=yes 15091else 15092 xorg_cv_cc_flag_unused_command_line_argument=no 15093fi 15094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15095fi 15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15099 CFLAGS="$xorg_testset_save_CFLAGS" 15100fi 15101 15102found="no" 15103 15104 if test $found = "no" ; then 15105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15107 fi 15108 15109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15111 fi 15112 15113 CFLAGS="$CFLAGS -Werror=return-type" 15114 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15116$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15117 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 15118 if eval \${$cacheid+:} false; then : 15119 $as_echo_n "(cached) " >&6 15120else 15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15122/* end confdefs.h. */ 15123int i; 15124int 15125main () 15126{ 15127 15128 ; 15129 return 0; 15130} 15131_ACEOF 15132if ac_fn_c_try_link "$LINENO"; then : 15133 eval $cacheid=yes 15134else 15135 eval $cacheid=no 15136fi 15137rm -f core conftest.err conftest.$ac_objext \ 15138 conftest$ac_exeext conftest.$ac_ext 15139fi 15140 15141 15142 CFLAGS="$xorg_testset_save_CFLAGS" 15143 15144 eval supported=\$$cacheid 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15146$as_echo "$supported" >&6; } 15147 if test "$supported" = "yes" ; then 15148 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15149 found="yes" 15150 fi 15151 fi 15152 15153 if test $found = "no" ; then 15154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15156 fi 15157 15158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15160 fi 15161 15162 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15163 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15165$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15166 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 15167 if eval \${$cacheid+:} false; then : 15168 $as_echo_n "(cached) " >&6 15169else 15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15171/* end confdefs.h. */ 15172int i; 15173int 15174main () 15175{ 15176 15177 ; 15178 return 0; 15179} 15180_ACEOF 15181if ac_fn_c_try_link "$LINENO"; then : 15182 eval $cacheid=yes 15183else 15184 eval $cacheid=no 15185fi 15186rm -f core conftest.err conftest.$ac_objext \ 15187 conftest$ac_exeext conftest.$ac_ext 15188fi 15189 15190 15191 CFLAGS="$xorg_testset_save_CFLAGS" 15192 15193 eval supported=\$$cacheid 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15195$as_echo "$supported" >&6; } 15196 if test "$supported" = "yes" ; then 15197 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15198 found="yes" 15199 fi 15200 fi 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216xorg_testset_save_CFLAGS="$CFLAGS" 15217 15218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15223 $as_echo_n "(cached) " >&6 15224else 15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15226/* end confdefs.h. */ 15227int i; 15228_ACEOF 15229if ac_fn_c_try_compile "$LINENO"; then : 15230 xorg_cv_cc_flag_unknown_warning_option=yes 15231else 15232 xorg_cv_cc_flag_unknown_warning_option=no 15233fi 15234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15235fi 15236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15239 CFLAGS="$xorg_testset_save_CFLAGS" 15240fi 15241 15242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15245 fi 15246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15250 $as_echo_n "(cached) " >&6 15251else 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15253/* end confdefs.h. */ 15254int i; 15255_ACEOF 15256if ac_fn_c_try_compile "$LINENO"; then : 15257 xorg_cv_cc_flag_unused_command_line_argument=yes 15258else 15259 xorg_cv_cc_flag_unused_command_line_argument=no 15260fi 15261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15262fi 15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15266 CFLAGS="$xorg_testset_save_CFLAGS" 15267fi 15268 15269found="no" 15270 15271 if test $found = "no" ; then 15272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15274 fi 15275 15276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15278 fi 15279 15280 CFLAGS="$CFLAGS -Werror=trigraphs" 15281 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15283$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15284 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 15285 if eval \${$cacheid+:} false; then : 15286 $as_echo_n "(cached) " >&6 15287else 15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15289/* end confdefs.h. */ 15290int i; 15291int 15292main () 15293{ 15294 15295 ; 15296 return 0; 15297} 15298_ACEOF 15299if ac_fn_c_try_link "$LINENO"; then : 15300 eval $cacheid=yes 15301else 15302 eval $cacheid=no 15303fi 15304rm -f core conftest.err conftest.$ac_objext \ 15305 conftest$ac_exeext conftest.$ac_ext 15306fi 15307 15308 15309 CFLAGS="$xorg_testset_save_CFLAGS" 15310 15311 eval supported=\$$cacheid 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15313$as_echo "$supported" >&6; } 15314 if test "$supported" = "yes" ; then 15315 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15316 found="yes" 15317 fi 15318 fi 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334xorg_testset_save_CFLAGS="$CFLAGS" 15335 15336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15341 $as_echo_n "(cached) " >&6 15342else 15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15344/* end confdefs.h. */ 15345int i; 15346_ACEOF 15347if ac_fn_c_try_compile "$LINENO"; then : 15348 xorg_cv_cc_flag_unknown_warning_option=yes 15349else 15350 xorg_cv_cc_flag_unknown_warning_option=no 15351fi 15352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15353fi 15354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15357 CFLAGS="$xorg_testset_save_CFLAGS" 15358fi 15359 15360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15363 fi 15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15368 $as_echo_n "(cached) " >&6 15369else 15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15371/* end confdefs.h. */ 15372int i; 15373_ACEOF 15374if ac_fn_c_try_compile "$LINENO"; then : 15375 xorg_cv_cc_flag_unused_command_line_argument=yes 15376else 15377 xorg_cv_cc_flag_unused_command_line_argument=no 15378fi 15379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15380fi 15381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15384 CFLAGS="$xorg_testset_save_CFLAGS" 15385fi 15386 15387found="no" 15388 15389 if test $found = "no" ; then 15390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15392 fi 15393 15394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15396 fi 15397 15398 CFLAGS="$CFLAGS -Werror=array-bounds" 15399 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15401$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15402 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15403 if eval \${$cacheid+:} false; then : 15404 $as_echo_n "(cached) " >&6 15405else 15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15407/* end confdefs.h. */ 15408int i; 15409int 15410main () 15411{ 15412 15413 ; 15414 return 0; 15415} 15416_ACEOF 15417if ac_fn_c_try_link "$LINENO"; then : 15418 eval $cacheid=yes 15419else 15420 eval $cacheid=no 15421fi 15422rm -f core conftest.err conftest.$ac_objext \ 15423 conftest$ac_exeext conftest.$ac_ext 15424fi 15425 15426 15427 CFLAGS="$xorg_testset_save_CFLAGS" 15428 15429 eval supported=\$$cacheid 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15431$as_echo "$supported" >&6; } 15432 if test "$supported" = "yes" ; then 15433 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15434 found="yes" 15435 fi 15436 fi 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452xorg_testset_save_CFLAGS="$CFLAGS" 15453 15454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15459 $as_echo_n "(cached) " >&6 15460else 15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15462/* end confdefs.h. */ 15463int i; 15464_ACEOF 15465if ac_fn_c_try_compile "$LINENO"; then : 15466 xorg_cv_cc_flag_unknown_warning_option=yes 15467else 15468 xorg_cv_cc_flag_unknown_warning_option=no 15469fi 15470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15471fi 15472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15475 CFLAGS="$xorg_testset_save_CFLAGS" 15476fi 15477 15478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15481 fi 15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15486 $as_echo_n "(cached) " >&6 15487else 15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15489/* end confdefs.h. */ 15490int i; 15491_ACEOF 15492if ac_fn_c_try_compile "$LINENO"; then : 15493 xorg_cv_cc_flag_unused_command_line_argument=yes 15494else 15495 xorg_cv_cc_flag_unused_command_line_argument=no 15496fi 15497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15498fi 15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15502 CFLAGS="$xorg_testset_save_CFLAGS" 15503fi 15504 15505found="no" 15506 15507 if test $found = "no" ; then 15508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15510 fi 15511 15512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15514 fi 15515 15516 CFLAGS="$CFLAGS -Werror=write-strings" 15517 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15519$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15520 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15521 if eval \${$cacheid+:} false; then : 15522 $as_echo_n "(cached) " >&6 15523else 15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15525/* end confdefs.h. */ 15526int i; 15527int 15528main () 15529{ 15530 15531 ; 15532 return 0; 15533} 15534_ACEOF 15535if ac_fn_c_try_link "$LINENO"; then : 15536 eval $cacheid=yes 15537else 15538 eval $cacheid=no 15539fi 15540rm -f core conftest.err conftest.$ac_objext \ 15541 conftest$ac_exeext conftest.$ac_ext 15542fi 15543 15544 15545 CFLAGS="$xorg_testset_save_CFLAGS" 15546 15547 eval supported=\$$cacheid 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15549$as_echo "$supported" >&6; } 15550 if test "$supported" = "yes" ; then 15551 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15552 found="yes" 15553 fi 15554 fi 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570xorg_testset_save_CFLAGS="$CFLAGS" 15571 15572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15577 $as_echo_n "(cached) " >&6 15578else 15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15580/* end confdefs.h. */ 15581int i; 15582_ACEOF 15583if ac_fn_c_try_compile "$LINENO"; then : 15584 xorg_cv_cc_flag_unknown_warning_option=yes 15585else 15586 xorg_cv_cc_flag_unknown_warning_option=no 15587fi 15588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15589fi 15590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15593 CFLAGS="$xorg_testset_save_CFLAGS" 15594fi 15595 15596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15599 fi 15600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15604 $as_echo_n "(cached) " >&6 15605else 15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15607/* end confdefs.h. */ 15608int i; 15609_ACEOF 15610if ac_fn_c_try_compile "$LINENO"; then : 15611 xorg_cv_cc_flag_unused_command_line_argument=yes 15612else 15613 xorg_cv_cc_flag_unused_command_line_argument=no 15614fi 15615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15616fi 15617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15620 CFLAGS="$xorg_testset_save_CFLAGS" 15621fi 15622 15623found="no" 15624 15625 if test $found = "no" ; then 15626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15628 fi 15629 15630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15632 fi 15633 15634 CFLAGS="$CFLAGS -Werror=address" 15635 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15637$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15638 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15639 if eval \${$cacheid+:} false; then : 15640 $as_echo_n "(cached) " >&6 15641else 15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15643/* end confdefs.h. */ 15644int i; 15645int 15646main () 15647{ 15648 15649 ; 15650 return 0; 15651} 15652_ACEOF 15653if ac_fn_c_try_link "$LINENO"; then : 15654 eval $cacheid=yes 15655else 15656 eval $cacheid=no 15657fi 15658rm -f core conftest.err conftest.$ac_objext \ 15659 conftest$ac_exeext conftest.$ac_ext 15660fi 15661 15662 15663 CFLAGS="$xorg_testset_save_CFLAGS" 15664 15665 eval supported=\$$cacheid 15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15667$as_echo "$supported" >&6; } 15668 if test "$supported" = "yes" ; then 15669 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15670 found="yes" 15671 fi 15672 fi 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688xorg_testset_save_CFLAGS="$CFLAGS" 15689 15690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15695 $as_echo_n "(cached) " >&6 15696else 15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15698/* end confdefs.h. */ 15699int i; 15700_ACEOF 15701if ac_fn_c_try_compile "$LINENO"; then : 15702 xorg_cv_cc_flag_unknown_warning_option=yes 15703else 15704 xorg_cv_cc_flag_unknown_warning_option=no 15705fi 15706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15707fi 15708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15711 CFLAGS="$xorg_testset_save_CFLAGS" 15712fi 15713 15714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15717 fi 15718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15722 $as_echo_n "(cached) " >&6 15723else 15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15725/* end confdefs.h. */ 15726int i; 15727_ACEOF 15728if ac_fn_c_try_compile "$LINENO"; then : 15729 xorg_cv_cc_flag_unused_command_line_argument=yes 15730else 15731 xorg_cv_cc_flag_unused_command_line_argument=no 15732fi 15733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15734fi 15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15738 CFLAGS="$xorg_testset_save_CFLAGS" 15739fi 15740 15741found="no" 15742 15743 if test $found = "no" ; then 15744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15746 fi 15747 15748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15750 fi 15751 15752 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15753 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15755$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15756 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15757 if eval \${$cacheid+:} false; then : 15758 $as_echo_n "(cached) " >&6 15759else 15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15761/* end confdefs.h. */ 15762int i; 15763int 15764main () 15765{ 15766 15767 ; 15768 return 0; 15769} 15770_ACEOF 15771if ac_fn_c_try_link "$LINENO"; then : 15772 eval $cacheid=yes 15773else 15774 eval $cacheid=no 15775fi 15776rm -f core conftest.err conftest.$ac_objext \ 15777 conftest$ac_exeext conftest.$ac_ext 15778fi 15779 15780 15781 CFLAGS="$xorg_testset_save_CFLAGS" 15782 15783 eval supported=\$$cacheid 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15785$as_echo "$supported" >&6; } 15786 if test "$supported" = "yes" ; then 15787 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15788 found="yes" 15789 fi 15790 fi 15791 15792 if test $found = "no" ; then 15793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15795 fi 15796 15797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15799 fi 15800 15801 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15802 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15804$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15805 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15806 if eval \${$cacheid+:} false; then : 15807 $as_echo_n "(cached) " >&6 15808else 15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15810/* end confdefs.h. */ 15811int i; 15812int 15813main () 15814{ 15815 15816 ; 15817 return 0; 15818} 15819_ACEOF 15820if ac_fn_c_try_link "$LINENO"; then : 15821 eval $cacheid=yes 15822else 15823 eval $cacheid=no 15824fi 15825rm -f core conftest.err conftest.$ac_objext \ 15826 conftest$ac_exeext conftest.$ac_ext 15827fi 15828 15829 15830 CFLAGS="$xorg_testset_save_CFLAGS" 15831 15832 eval supported=\$$cacheid 15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15834$as_echo "$supported" >&6; } 15835 if test "$supported" = "yes" ; then 15836 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15837 found="yes" 15838 fi 15839 fi 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855xorg_testset_save_CFLAGS="$CFLAGS" 15856 15857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15865/* end confdefs.h. */ 15866int i; 15867_ACEOF 15868if ac_fn_c_try_compile "$LINENO"; then : 15869 xorg_cv_cc_flag_unknown_warning_option=yes 15870else 15871 xorg_cv_cc_flag_unknown_warning_option=no 15872fi 15873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15874fi 15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15878 CFLAGS="$xorg_testset_save_CFLAGS" 15879fi 15880 15881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15884 fi 15885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15889 $as_echo_n "(cached) " >&6 15890else 15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15892/* end confdefs.h. */ 15893int i; 15894_ACEOF 15895if ac_fn_c_try_compile "$LINENO"; then : 15896 xorg_cv_cc_flag_unused_command_line_argument=yes 15897else 15898 xorg_cv_cc_flag_unused_command_line_argument=no 15899fi 15900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15901fi 15902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15905 CFLAGS="$xorg_testset_save_CFLAGS" 15906fi 15907 15908found="no" 15909 15910 if test $found = "no" ; then 15911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15913 fi 15914 15915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15917 fi 15918 15919 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15920 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15922$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15923 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15924 if eval \${$cacheid+:} false; then : 15925 $as_echo_n "(cached) " >&6 15926else 15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15928/* end confdefs.h. */ 15929int i; 15930int 15931main () 15932{ 15933 15934 ; 15935 return 0; 15936} 15937_ACEOF 15938if ac_fn_c_try_link "$LINENO"; then : 15939 eval $cacheid=yes 15940else 15941 eval $cacheid=no 15942fi 15943rm -f core conftest.err conftest.$ac_objext \ 15944 conftest$ac_exeext conftest.$ac_ext 15945fi 15946 15947 15948 CFLAGS="$xorg_testset_save_CFLAGS" 15949 15950 eval supported=\$$cacheid 15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15952$as_echo "$supported" >&6; } 15953 if test "$supported" = "yes" ; then 15954 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15955 found="yes" 15956 fi 15957 fi 15958 15959 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15960else 15961{ $as_echo "$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 15962$as_echo "$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;} 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976xorg_testset_save_CFLAGS="$CFLAGS" 15977 15978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15983 $as_echo_n "(cached) " >&6 15984else 15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15986/* end confdefs.h. */ 15987int i; 15988_ACEOF 15989if ac_fn_c_try_compile "$LINENO"; then : 15990 xorg_cv_cc_flag_unknown_warning_option=yes 15991else 15992 xorg_cv_cc_flag_unknown_warning_option=no 15993fi 15994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15995fi 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15999 CFLAGS="$xorg_testset_save_CFLAGS" 16000fi 16001 16002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16005 fi 16006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16010 $as_echo_n "(cached) " >&6 16011else 16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16013/* end confdefs.h. */ 16014int i; 16015_ACEOF 16016if ac_fn_c_try_compile "$LINENO"; then : 16017 xorg_cv_cc_flag_unused_command_line_argument=yes 16018else 16019 xorg_cv_cc_flag_unused_command_line_argument=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16022fi 16023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027fi 16028 16029found="no" 16030 16031 if test $found = "no" ; then 16032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16034 fi 16035 16036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16038 fi 16039 16040 CFLAGS="$CFLAGS -Wimplicit" 16041 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16043$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16044 cacheid=xorg_cv_cc_flag__Wimplicit 16045 if eval \${$cacheid+:} false; then : 16046 $as_echo_n "(cached) " >&6 16047else 16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16049/* end confdefs.h. */ 16050int i; 16051int 16052main () 16053{ 16054 16055 ; 16056 return 0; 16057} 16058_ACEOF 16059if ac_fn_c_try_link "$LINENO"; then : 16060 eval $cacheid=yes 16061else 16062 eval $cacheid=no 16063fi 16064rm -f core conftest.err conftest.$ac_objext \ 16065 conftest$ac_exeext conftest.$ac_ext 16066fi 16067 16068 16069 CFLAGS="$xorg_testset_save_CFLAGS" 16070 16071 eval supported=\$$cacheid 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16073$as_echo "$supported" >&6; } 16074 if test "$supported" = "yes" ; then 16075 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16076 found="yes" 16077 fi 16078 fi 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094xorg_testset_save_CFLAGS="$CFLAGS" 16095 16096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16101 $as_echo_n "(cached) " >&6 16102else 16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16104/* end confdefs.h. */ 16105int i; 16106_ACEOF 16107if ac_fn_c_try_compile "$LINENO"; then : 16108 xorg_cv_cc_flag_unknown_warning_option=yes 16109else 16110 xorg_cv_cc_flag_unknown_warning_option=no 16111fi 16112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16113fi 16114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16117 CFLAGS="$xorg_testset_save_CFLAGS" 16118fi 16119 16120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16123 fi 16124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16128 $as_echo_n "(cached) " >&6 16129else 16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16131/* end confdefs.h. */ 16132int i; 16133_ACEOF 16134if ac_fn_c_try_compile "$LINENO"; then : 16135 xorg_cv_cc_flag_unused_command_line_argument=yes 16136else 16137 xorg_cv_cc_flag_unused_command_line_argument=no 16138fi 16139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16140fi 16141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16144 CFLAGS="$xorg_testset_save_CFLAGS" 16145fi 16146 16147found="no" 16148 16149 if test $found = "no" ; then 16150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16152 fi 16153 16154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16156 fi 16157 16158 CFLAGS="$CFLAGS -Wnonnull" 16159 16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16161$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16162 cacheid=xorg_cv_cc_flag__Wnonnull 16163 if eval \${$cacheid+:} false; then : 16164 $as_echo_n "(cached) " >&6 16165else 16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168int i; 16169int 16170main () 16171{ 16172 16173 ; 16174 return 0; 16175} 16176_ACEOF 16177if ac_fn_c_try_link "$LINENO"; then : 16178 eval $cacheid=yes 16179else 16180 eval $cacheid=no 16181fi 16182rm -f core conftest.err conftest.$ac_objext \ 16183 conftest$ac_exeext conftest.$ac_ext 16184fi 16185 16186 16187 CFLAGS="$xorg_testset_save_CFLAGS" 16188 16189 eval supported=\$$cacheid 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16191$as_echo "$supported" >&6; } 16192 if test "$supported" = "yes" ; then 16193 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16194 found="yes" 16195 fi 16196 fi 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212xorg_testset_save_CFLAGS="$CFLAGS" 16213 16214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16219 $as_echo_n "(cached) " >&6 16220else 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223int i; 16224_ACEOF 16225if ac_fn_c_try_compile "$LINENO"; then : 16226 xorg_cv_cc_flag_unknown_warning_option=yes 16227else 16228 xorg_cv_cc_flag_unknown_warning_option=no 16229fi 16230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16231fi 16232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16235 CFLAGS="$xorg_testset_save_CFLAGS" 16236fi 16237 16238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16241 fi 16242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16246 $as_echo_n "(cached) " >&6 16247else 16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16249/* end confdefs.h. */ 16250int i; 16251_ACEOF 16252if ac_fn_c_try_compile "$LINENO"; then : 16253 xorg_cv_cc_flag_unused_command_line_argument=yes 16254else 16255 xorg_cv_cc_flag_unused_command_line_argument=no 16256fi 16257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16258fi 16259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16262 CFLAGS="$xorg_testset_save_CFLAGS" 16263fi 16264 16265found="no" 16266 16267 if test $found = "no" ; then 16268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16270 fi 16271 16272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16274 fi 16275 16276 CFLAGS="$CFLAGS -Winit-self" 16277 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16279$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16280 cacheid=xorg_cv_cc_flag__Winit_self 16281 if eval \${$cacheid+:} false; then : 16282 $as_echo_n "(cached) " >&6 16283else 16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16285/* end confdefs.h. */ 16286int i; 16287int 16288main () 16289{ 16290 16291 ; 16292 return 0; 16293} 16294_ACEOF 16295if ac_fn_c_try_link "$LINENO"; then : 16296 eval $cacheid=yes 16297else 16298 eval $cacheid=no 16299fi 16300rm -f core conftest.err conftest.$ac_objext \ 16301 conftest$ac_exeext conftest.$ac_ext 16302fi 16303 16304 16305 CFLAGS="$xorg_testset_save_CFLAGS" 16306 16307 eval supported=\$$cacheid 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16309$as_echo "$supported" >&6; } 16310 if test "$supported" = "yes" ; then 16311 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16312 found="yes" 16313 fi 16314 fi 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330xorg_testset_save_CFLAGS="$CFLAGS" 16331 16332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16337 $as_echo_n "(cached) " >&6 16338else 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341int i; 16342_ACEOF 16343if ac_fn_c_try_compile "$LINENO"; then : 16344 xorg_cv_cc_flag_unknown_warning_option=yes 16345else 16346 xorg_cv_cc_flag_unknown_warning_option=no 16347fi 16348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16349fi 16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16353 CFLAGS="$xorg_testset_save_CFLAGS" 16354fi 16355 16356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16359 fi 16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16364 $as_echo_n "(cached) " >&6 16365else 16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16367/* end confdefs.h. */ 16368int i; 16369_ACEOF 16370if ac_fn_c_try_compile "$LINENO"; then : 16371 xorg_cv_cc_flag_unused_command_line_argument=yes 16372else 16373 xorg_cv_cc_flag_unused_command_line_argument=no 16374fi 16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16376fi 16377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16380 CFLAGS="$xorg_testset_save_CFLAGS" 16381fi 16382 16383found="no" 16384 16385 if test $found = "no" ; then 16386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16388 fi 16389 16390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16392 fi 16393 16394 CFLAGS="$CFLAGS -Wmain" 16395 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16397$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16398 cacheid=xorg_cv_cc_flag__Wmain 16399 if eval \${$cacheid+:} false; then : 16400 $as_echo_n "(cached) " >&6 16401else 16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16403/* end confdefs.h. */ 16404int i; 16405int 16406main () 16407{ 16408 16409 ; 16410 return 0; 16411} 16412_ACEOF 16413if ac_fn_c_try_link "$LINENO"; then : 16414 eval $cacheid=yes 16415else 16416 eval $cacheid=no 16417fi 16418rm -f core conftest.err conftest.$ac_objext \ 16419 conftest$ac_exeext conftest.$ac_ext 16420fi 16421 16422 16423 CFLAGS="$xorg_testset_save_CFLAGS" 16424 16425 eval supported=\$$cacheid 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16427$as_echo "$supported" >&6; } 16428 if test "$supported" = "yes" ; then 16429 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16430 found="yes" 16431 fi 16432 fi 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448xorg_testset_save_CFLAGS="$CFLAGS" 16449 16450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16455 $as_echo_n "(cached) " >&6 16456else 16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16458/* end confdefs.h. */ 16459int i; 16460_ACEOF 16461if ac_fn_c_try_compile "$LINENO"; then : 16462 xorg_cv_cc_flag_unknown_warning_option=yes 16463else 16464 xorg_cv_cc_flag_unknown_warning_option=no 16465fi 16466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16467fi 16468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16471 CFLAGS="$xorg_testset_save_CFLAGS" 16472fi 16473 16474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16477 fi 16478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16482 $as_echo_n "(cached) " >&6 16483else 16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16485/* end confdefs.h. */ 16486int i; 16487_ACEOF 16488if ac_fn_c_try_compile "$LINENO"; then : 16489 xorg_cv_cc_flag_unused_command_line_argument=yes 16490else 16491 xorg_cv_cc_flag_unused_command_line_argument=no 16492fi 16493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16494fi 16495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16498 CFLAGS="$xorg_testset_save_CFLAGS" 16499fi 16500 16501found="no" 16502 16503 if test $found = "no" ; then 16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16506 fi 16507 16508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16510 fi 16511 16512 CFLAGS="$CFLAGS -Wmissing-braces" 16513 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16515$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16516 cacheid=xorg_cv_cc_flag__Wmissing_braces 16517 if eval \${$cacheid+:} false; then : 16518 $as_echo_n "(cached) " >&6 16519else 16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522int i; 16523int 16524main () 16525{ 16526 16527 ; 16528 return 0; 16529} 16530_ACEOF 16531if ac_fn_c_try_link "$LINENO"; then : 16532 eval $cacheid=yes 16533else 16534 eval $cacheid=no 16535fi 16536rm -f core conftest.err conftest.$ac_objext \ 16537 conftest$ac_exeext conftest.$ac_ext 16538fi 16539 16540 16541 CFLAGS="$xorg_testset_save_CFLAGS" 16542 16543 eval supported=\$$cacheid 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16545$as_echo "$supported" >&6; } 16546 if test "$supported" = "yes" ; then 16547 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16548 found="yes" 16549 fi 16550 fi 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566xorg_testset_save_CFLAGS="$CFLAGS" 16567 16568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16573 $as_echo_n "(cached) " >&6 16574else 16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16576/* end confdefs.h. */ 16577int i; 16578_ACEOF 16579if ac_fn_c_try_compile "$LINENO"; then : 16580 xorg_cv_cc_flag_unknown_warning_option=yes 16581else 16582 xorg_cv_cc_flag_unknown_warning_option=no 16583fi 16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16585fi 16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16589 CFLAGS="$xorg_testset_save_CFLAGS" 16590fi 16591 16592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16595 fi 16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16600 $as_echo_n "(cached) " >&6 16601else 16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16603/* end confdefs.h. */ 16604int i; 16605_ACEOF 16606if ac_fn_c_try_compile "$LINENO"; then : 16607 xorg_cv_cc_flag_unused_command_line_argument=yes 16608else 16609 xorg_cv_cc_flag_unused_command_line_argument=no 16610fi 16611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16612fi 16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16616 CFLAGS="$xorg_testset_save_CFLAGS" 16617fi 16618 16619found="no" 16620 16621 if test $found = "no" ; then 16622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16624 fi 16625 16626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16628 fi 16629 16630 CFLAGS="$CFLAGS -Wsequence-point" 16631 16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16633$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16634 cacheid=xorg_cv_cc_flag__Wsequence_point 16635 if eval \${$cacheid+:} false; then : 16636 $as_echo_n "(cached) " >&6 16637else 16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16639/* end confdefs.h. */ 16640int i; 16641int 16642main () 16643{ 16644 16645 ; 16646 return 0; 16647} 16648_ACEOF 16649if ac_fn_c_try_link "$LINENO"; then : 16650 eval $cacheid=yes 16651else 16652 eval $cacheid=no 16653fi 16654rm -f core conftest.err conftest.$ac_objext \ 16655 conftest$ac_exeext conftest.$ac_ext 16656fi 16657 16658 16659 CFLAGS="$xorg_testset_save_CFLAGS" 16660 16661 eval supported=\$$cacheid 16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16663$as_echo "$supported" >&6; } 16664 if test "$supported" = "yes" ; then 16665 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16666 found="yes" 16667 fi 16668 fi 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684xorg_testset_save_CFLAGS="$CFLAGS" 16685 16686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16691 $as_echo_n "(cached) " >&6 16692else 16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16694/* end confdefs.h. */ 16695int i; 16696_ACEOF 16697if ac_fn_c_try_compile "$LINENO"; then : 16698 xorg_cv_cc_flag_unknown_warning_option=yes 16699else 16700 xorg_cv_cc_flag_unknown_warning_option=no 16701fi 16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16703fi 16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16707 CFLAGS="$xorg_testset_save_CFLAGS" 16708fi 16709 16710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16713 fi 16714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16718 $as_echo_n "(cached) " >&6 16719else 16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16721/* end confdefs.h. */ 16722int i; 16723_ACEOF 16724if ac_fn_c_try_compile "$LINENO"; then : 16725 xorg_cv_cc_flag_unused_command_line_argument=yes 16726else 16727 xorg_cv_cc_flag_unused_command_line_argument=no 16728fi 16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16730fi 16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16734 CFLAGS="$xorg_testset_save_CFLAGS" 16735fi 16736 16737found="no" 16738 16739 if test $found = "no" ; then 16740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16742 fi 16743 16744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16746 fi 16747 16748 CFLAGS="$CFLAGS -Wreturn-type" 16749 16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16751$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16752 cacheid=xorg_cv_cc_flag__Wreturn_type 16753 if eval \${$cacheid+:} false; then : 16754 $as_echo_n "(cached) " >&6 16755else 16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16757/* end confdefs.h. */ 16758int i; 16759int 16760main () 16761{ 16762 16763 ; 16764 return 0; 16765} 16766_ACEOF 16767if ac_fn_c_try_link "$LINENO"; then : 16768 eval $cacheid=yes 16769else 16770 eval $cacheid=no 16771fi 16772rm -f core conftest.err conftest.$ac_objext \ 16773 conftest$ac_exeext conftest.$ac_ext 16774fi 16775 16776 16777 CFLAGS="$xorg_testset_save_CFLAGS" 16778 16779 eval supported=\$$cacheid 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16781$as_echo "$supported" >&6; } 16782 if test "$supported" = "yes" ; then 16783 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16784 found="yes" 16785 fi 16786 fi 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802xorg_testset_save_CFLAGS="$CFLAGS" 16803 16804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16809 $as_echo_n "(cached) " >&6 16810else 16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16812/* end confdefs.h. */ 16813int i; 16814_ACEOF 16815if ac_fn_c_try_compile "$LINENO"; then : 16816 xorg_cv_cc_flag_unknown_warning_option=yes 16817else 16818 xorg_cv_cc_flag_unknown_warning_option=no 16819fi 16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16821fi 16822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16825 CFLAGS="$xorg_testset_save_CFLAGS" 16826fi 16827 16828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16831 fi 16832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16836 $as_echo_n "(cached) " >&6 16837else 16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16839/* end confdefs.h. */ 16840int i; 16841_ACEOF 16842if ac_fn_c_try_compile "$LINENO"; then : 16843 xorg_cv_cc_flag_unused_command_line_argument=yes 16844else 16845 xorg_cv_cc_flag_unused_command_line_argument=no 16846fi 16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16848fi 16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16852 CFLAGS="$xorg_testset_save_CFLAGS" 16853fi 16854 16855found="no" 16856 16857 if test $found = "no" ; then 16858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16860 fi 16861 16862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16864 fi 16865 16866 CFLAGS="$CFLAGS -Wtrigraphs" 16867 16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16869$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16870 cacheid=xorg_cv_cc_flag__Wtrigraphs 16871 if eval \${$cacheid+:} false; then : 16872 $as_echo_n "(cached) " >&6 16873else 16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16875/* end confdefs.h. */ 16876int i; 16877int 16878main () 16879{ 16880 16881 ; 16882 return 0; 16883} 16884_ACEOF 16885if ac_fn_c_try_link "$LINENO"; then : 16886 eval $cacheid=yes 16887else 16888 eval $cacheid=no 16889fi 16890rm -f core conftest.err conftest.$ac_objext \ 16891 conftest$ac_exeext conftest.$ac_ext 16892fi 16893 16894 16895 CFLAGS="$xorg_testset_save_CFLAGS" 16896 16897 eval supported=\$$cacheid 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16899$as_echo "$supported" >&6; } 16900 if test "$supported" = "yes" ; then 16901 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16902 found="yes" 16903 fi 16904 fi 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920xorg_testset_save_CFLAGS="$CFLAGS" 16921 16922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16927 $as_echo_n "(cached) " >&6 16928else 16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16930/* end confdefs.h. */ 16931int i; 16932_ACEOF 16933if ac_fn_c_try_compile "$LINENO"; then : 16934 xorg_cv_cc_flag_unknown_warning_option=yes 16935else 16936 xorg_cv_cc_flag_unknown_warning_option=no 16937fi 16938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16939fi 16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16943 CFLAGS="$xorg_testset_save_CFLAGS" 16944fi 16945 16946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16949 fi 16950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16954 $as_echo_n "(cached) " >&6 16955else 16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16957/* end confdefs.h. */ 16958int i; 16959_ACEOF 16960if ac_fn_c_try_compile "$LINENO"; then : 16961 xorg_cv_cc_flag_unused_command_line_argument=yes 16962else 16963 xorg_cv_cc_flag_unused_command_line_argument=no 16964fi 16965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16966fi 16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16970 CFLAGS="$xorg_testset_save_CFLAGS" 16971fi 16972 16973found="no" 16974 16975 if test $found = "no" ; then 16976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16978 fi 16979 16980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16982 fi 16983 16984 CFLAGS="$CFLAGS -Warray-bounds" 16985 16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16987$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16988 cacheid=xorg_cv_cc_flag__Warray_bounds 16989 if eval \${$cacheid+:} false; then : 16990 $as_echo_n "(cached) " >&6 16991else 16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16993/* end confdefs.h. */ 16994int i; 16995int 16996main () 16997{ 16998 16999 ; 17000 return 0; 17001} 17002_ACEOF 17003if ac_fn_c_try_link "$LINENO"; then : 17004 eval $cacheid=yes 17005else 17006 eval $cacheid=no 17007fi 17008rm -f core conftest.err conftest.$ac_objext \ 17009 conftest$ac_exeext conftest.$ac_ext 17010fi 17011 17012 17013 CFLAGS="$xorg_testset_save_CFLAGS" 17014 17015 eval supported=\$$cacheid 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17017$as_echo "$supported" >&6; } 17018 if test "$supported" = "yes" ; then 17019 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17020 found="yes" 17021 fi 17022 fi 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038xorg_testset_save_CFLAGS="$CFLAGS" 17039 17040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17045 $as_echo_n "(cached) " >&6 17046else 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049int i; 17050_ACEOF 17051if ac_fn_c_try_compile "$LINENO"; then : 17052 xorg_cv_cc_flag_unknown_warning_option=yes 17053else 17054 xorg_cv_cc_flag_unknown_warning_option=no 17055fi 17056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17057fi 17058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17061 CFLAGS="$xorg_testset_save_CFLAGS" 17062fi 17063 17064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17067 fi 17068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17072 $as_echo_n "(cached) " >&6 17073else 17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17075/* end confdefs.h. */ 17076int i; 17077_ACEOF 17078if ac_fn_c_try_compile "$LINENO"; then : 17079 xorg_cv_cc_flag_unused_command_line_argument=yes 17080else 17081 xorg_cv_cc_flag_unused_command_line_argument=no 17082fi 17083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17084fi 17085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17088 CFLAGS="$xorg_testset_save_CFLAGS" 17089fi 17090 17091found="no" 17092 17093 if test $found = "no" ; then 17094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17096 fi 17097 17098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17100 fi 17101 17102 CFLAGS="$CFLAGS -Wwrite-strings" 17103 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17105$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17106 cacheid=xorg_cv_cc_flag__Wwrite_strings 17107 if eval \${$cacheid+:} false; then : 17108 $as_echo_n "(cached) " >&6 17109else 17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17111/* end confdefs.h. */ 17112int i; 17113int 17114main () 17115{ 17116 17117 ; 17118 return 0; 17119} 17120_ACEOF 17121if ac_fn_c_try_link "$LINENO"; then : 17122 eval $cacheid=yes 17123else 17124 eval $cacheid=no 17125fi 17126rm -f core conftest.err conftest.$ac_objext \ 17127 conftest$ac_exeext conftest.$ac_ext 17128fi 17129 17130 17131 CFLAGS="$xorg_testset_save_CFLAGS" 17132 17133 eval supported=\$$cacheid 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17135$as_echo "$supported" >&6; } 17136 if test "$supported" = "yes" ; then 17137 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17138 found="yes" 17139 fi 17140 fi 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156xorg_testset_save_CFLAGS="$CFLAGS" 17157 17158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17163 $as_echo_n "(cached) " >&6 17164else 17165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17166/* end confdefs.h. */ 17167int i; 17168_ACEOF 17169if ac_fn_c_try_compile "$LINENO"; then : 17170 xorg_cv_cc_flag_unknown_warning_option=yes 17171else 17172 xorg_cv_cc_flag_unknown_warning_option=no 17173fi 17174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17175fi 17176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17179 CFLAGS="$xorg_testset_save_CFLAGS" 17180fi 17181 17182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17185 fi 17186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17190 $as_echo_n "(cached) " >&6 17191else 17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17193/* end confdefs.h. */ 17194int i; 17195_ACEOF 17196if ac_fn_c_try_compile "$LINENO"; then : 17197 xorg_cv_cc_flag_unused_command_line_argument=yes 17198else 17199 xorg_cv_cc_flag_unused_command_line_argument=no 17200fi 17201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17202fi 17203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17206 CFLAGS="$xorg_testset_save_CFLAGS" 17207fi 17208 17209found="no" 17210 17211 if test $found = "no" ; then 17212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17214 fi 17215 17216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17218 fi 17219 17220 CFLAGS="$CFLAGS -Waddress" 17221 17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17223$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17224 cacheid=xorg_cv_cc_flag__Waddress 17225 if eval \${$cacheid+:} false; then : 17226 $as_echo_n "(cached) " >&6 17227else 17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17229/* end confdefs.h. */ 17230int i; 17231int 17232main () 17233{ 17234 17235 ; 17236 return 0; 17237} 17238_ACEOF 17239if ac_fn_c_try_link "$LINENO"; then : 17240 eval $cacheid=yes 17241else 17242 eval $cacheid=no 17243fi 17244rm -f core conftest.err conftest.$ac_objext \ 17245 conftest$ac_exeext conftest.$ac_ext 17246fi 17247 17248 17249 CFLAGS="$xorg_testset_save_CFLAGS" 17250 17251 eval supported=\$$cacheid 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17253$as_echo "$supported" >&6; } 17254 if test "$supported" = "yes" ; then 17255 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17256 found="yes" 17257 fi 17258 fi 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274xorg_testset_save_CFLAGS="$CFLAGS" 17275 17276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17281 $as_echo_n "(cached) " >&6 17282else 17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17284/* end confdefs.h. */ 17285int i; 17286_ACEOF 17287if ac_fn_c_try_compile "$LINENO"; then : 17288 xorg_cv_cc_flag_unknown_warning_option=yes 17289else 17290 xorg_cv_cc_flag_unknown_warning_option=no 17291fi 17292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17293fi 17294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17297 CFLAGS="$xorg_testset_save_CFLAGS" 17298fi 17299 17300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17303 fi 17304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17308 $as_echo_n "(cached) " >&6 17309else 17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17311/* end confdefs.h. */ 17312int i; 17313_ACEOF 17314if ac_fn_c_try_compile "$LINENO"; then : 17315 xorg_cv_cc_flag_unused_command_line_argument=yes 17316else 17317 xorg_cv_cc_flag_unused_command_line_argument=no 17318fi 17319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17320fi 17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17324 CFLAGS="$xorg_testset_save_CFLAGS" 17325fi 17326 17327found="no" 17328 17329 if test $found = "no" ; then 17330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17332 fi 17333 17334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17336 fi 17337 17338 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17339 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17341$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17342 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17343 if eval \${$cacheid+:} false; then : 17344 $as_echo_n "(cached) " >&6 17345else 17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17347/* end confdefs.h. */ 17348int i; 17349int 17350main () 17351{ 17352 17353 ; 17354 return 0; 17355} 17356_ACEOF 17357if ac_fn_c_try_link "$LINENO"; then : 17358 eval $cacheid=yes 17359else 17360 eval $cacheid=no 17361fi 17362rm -f core conftest.err conftest.$ac_objext \ 17363 conftest$ac_exeext conftest.$ac_ext 17364fi 17365 17366 17367 CFLAGS="$xorg_testset_save_CFLAGS" 17368 17369 eval supported=\$$cacheid 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17371$as_echo "$supported" >&6; } 17372 if test "$supported" = "yes" ; then 17373 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17374 found="yes" 17375 fi 17376 fi 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392xorg_testset_save_CFLAGS="$CFLAGS" 17393 17394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17399 $as_echo_n "(cached) " >&6 17400else 17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17402/* end confdefs.h. */ 17403int i; 17404_ACEOF 17405if ac_fn_c_try_compile "$LINENO"; then : 17406 xorg_cv_cc_flag_unknown_warning_option=yes 17407else 17408 xorg_cv_cc_flag_unknown_warning_option=no 17409fi 17410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17411fi 17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17415 CFLAGS="$xorg_testset_save_CFLAGS" 17416fi 17417 17418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17421 fi 17422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17426 $as_echo_n "(cached) " >&6 17427else 17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17429/* end confdefs.h. */ 17430int i; 17431_ACEOF 17432if ac_fn_c_try_compile "$LINENO"; then : 17433 xorg_cv_cc_flag_unused_command_line_argument=yes 17434else 17435 xorg_cv_cc_flag_unused_command_line_argument=no 17436fi 17437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17438fi 17439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17442 CFLAGS="$xorg_testset_save_CFLAGS" 17443fi 17444 17445found="no" 17446 17447 if test $found = "no" ; then 17448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17450 fi 17451 17452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17454 fi 17455 17456 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17457 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17459$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17460 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17461 if eval \${$cacheid+:} false; then : 17462 $as_echo_n "(cached) " >&6 17463else 17464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17465/* end confdefs.h. */ 17466int i; 17467int 17468main () 17469{ 17470 17471 ; 17472 return 0; 17473} 17474_ACEOF 17475if ac_fn_c_try_link "$LINENO"; then : 17476 eval $cacheid=yes 17477else 17478 eval $cacheid=no 17479fi 17480rm -f core conftest.err conftest.$ac_objext \ 17481 conftest$ac_exeext conftest.$ac_ext 17482fi 17483 17484 17485 CFLAGS="$xorg_testset_save_CFLAGS" 17486 17487 eval supported=\$$cacheid 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17489$as_echo "$supported" >&6; } 17490 if test "$supported" = "yes" ; then 17491 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17492 found="yes" 17493 fi 17494 fi 17495 17496 17497fi 17498 17499 17500 17501 17502 17503 17504 17505 CWARNFLAGS="$BASE_CFLAGS" 17506 if test "x$GCC" = xyes ; then 17507 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17508 fi 17509 17510 17511 17512 17513 17514 17515 17516 17517# Check whether --enable-strict-compilation was given. 17518if test "${enable_strict_compilation+set}" = set; then : 17519 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17520else 17521 STRICT_COMPILE=no 17522fi 17523 17524 17525 17526 17527 17528 17529STRICT_CFLAGS="" 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543xorg_testset_save_CFLAGS="$CFLAGS" 17544 17545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17550 $as_echo_n "(cached) " >&6 17551else 17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17553/* end confdefs.h. */ 17554int i; 17555_ACEOF 17556if ac_fn_c_try_compile "$LINENO"; then : 17557 xorg_cv_cc_flag_unknown_warning_option=yes 17558else 17559 xorg_cv_cc_flag_unknown_warning_option=no 17560fi 17561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17562fi 17563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17566 CFLAGS="$xorg_testset_save_CFLAGS" 17567fi 17568 17569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17572 fi 17573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17577 $as_echo_n "(cached) " >&6 17578else 17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17580/* end confdefs.h. */ 17581int i; 17582_ACEOF 17583if ac_fn_c_try_compile "$LINENO"; then : 17584 xorg_cv_cc_flag_unused_command_line_argument=yes 17585else 17586 xorg_cv_cc_flag_unused_command_line_argument=no 17587fi 17588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17589fi 17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17593 CFLAGS="$xorg_testset_save_CFLAGS" 17594fi 17595 17596found="no" 17597 17598 if test $found = "no" ; then 17599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17601 fi 17602 17603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17605 fi 17606 17607 CFLAGS="$CFLAGS -pedantic" 17608 17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17610$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17611 cacheid=xorg_cv_cc_flag__pedantic 17612 if eval \${$cacheid+:} false; then : 17613 $as_echo_n "(cached) " >&6 17614else 17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17616/* end confdefs.h. */ 17617int i; 17618int 17619main () 17620{ 17621 17622 ; 17623 return 0; 17624} 17625_ACEOF 17626if ac_fn_c_try_link "$LINENO"; then : 17627 eval $cacheid=yes 17628else 17629 eval $cacheid=no 17630fi 17631rm -f core conftest.err conftest.$ac_objext \ 17632 conftest$ac_exeext conftest.$ac_ext 17633fi 17634 17635 17636 CFLAGS="$xorg_testset_save_CFLAGS" 17637 17638 eval supported=\$$cacheid 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17640$as_echo "$supported" >&6; } 17641 if test "$supported" = "yes" ; then 17642 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17643 found="yes" 17644 fi 17645 fi 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661xorg_testset_save_CFLAGS="$CFLAGS" 17662 17663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17668 $as_echo_n "(cached) " >&6 17669else 17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17671/* end confdefs.h. */ 17672int i; 17673_ACEOF 17674if ac_fn_c_try_compile "$LINENO"; then : 17675 xorg_cv_cc_flag_unknown_warning_option=yes 17676else 17677 xorg_cv_cc_flag_unknown_warning_option=no 17678fi 17679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17680fi 17681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17684 CFLAGS="$xorg_testset_save_CFLAGS" 17685fi 17686 17687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17690 fi 17691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17695 $as_echo_n "(cached) " >&6 17696else 17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17698/* end confdefs.h. */ 17699int i; 17700_ACEOF 17701if ac_fn_c_try_compile "$LINENO"; then : 17702 xorg_cv_cc_flag_unused_command_line_argument=yes 17703else 17704 xorg_cv_cc_flag_unused_command_line_argument=no 17705fi 17706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17707fi 17708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17711 CFLAGS="$xorg_testset_save_CFLAGS" 17712fi 17713 17714found="no" 17715 17716 if test $found = "no" ; then 17717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17719 fi 17720 17721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17723 fi 17724 17725 CFLAGS="$CFLAGS -Werror" 17726 17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17728$as_echo_n "checking if $CC supports -Werror... " >&6; } 17729 cacheid=xorg_cv_cc_flag__Werror 17730 if eval \${$cacheid+:} false; then : 17731 $as_echo_n "(cached) " >&6 17732else 17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17734/* end confdefs.h. */ 17735int i; 17736int 17737main () 17738{ 17739 17740 ; 17741 return 0; 17742} 17743_ACEOF 17744if ac_fn_c_try_link "$LINENO"; then : 17745 eval $cacheid=yes 17746else 17747 eval $cacheid=no 17748fi 17749rm -f core conftest.err conftest.$ac_objext \ 17750 conftest$ac_exeext conftest.$ac_ext 17751fi 17752 17753 17754 CFLAGS="$xorg_testset_save_CFLAGS" 17755 17756 eval supported=\$$cacheid 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17758$as_echo "$supported" >&6; } 17759 if test "$supported" = "yes" ; then 17760 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17761 found="yes" 17762 fi 17763 fi 17764 17765 if test $found = "no" ; then 17766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17768 fi 17769 17770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17772 fi 17773 17774 CFLAGS="$CFLAGS -errwarn" 17775 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17777$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17778 cacheid=xorg_cv_cc_flag__errwarn 17779 if eval \${$cacheid+:} false; then : 17780 $as_echo_n "(cached) " >&6 17781else 17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17783/* end confdefs.h. */ 17784int i; 17785int 17786main () 17787{ 17788 17789 ; 17790 return 0; 17791} 17792_ACEOF 17793if ac_fn_c_try_link "$LINENO"; then : 17794 eval $cacheid=yes 17795else 17796 eval $cacheid=no 17797fi 17798rm -f core conftest.err conftest.$ac_objext \ 17799 conftest$ac_exeext conftest.$ac_ext 17800fi 17801 17802 17803 CFLAGS="$xorg_testset_save_CFLAGS" 17804 17805 eval supported=\$$cacheid 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17807$as_echo "$supported" >&6; } 17808 if test "$supported" = "yes" ; then 17809 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17810 found="yes" 17811 fi 17812 fi 17813 17814 17815 17816# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17817# activate it with -Werror, so we add it here explicitly. 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831xorg_testset_save_CFLAGS="$CFLAGS" 17832 17833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839else 17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17841/* end confdefs.h. */ 17842int i; 17843_ACEOF 17844if ac_fn_c_try_compile "$LINENO"; then : 17845 xorg_cv_cc_flag_unknown_warning_option=yes 17846else 17847 xorg_cv_cc_flag_unknown_warning_option=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17850fi 17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17854 CFLAGS="$xorg_testset_save_CFLAGS" 17855fi 17856 17857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17860 fi 17861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17865 $as_echo_n "(cached) " >&6 17866else 17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17868/* end confdefs.h. */ 17869int i; 17870_ACEOF 17871if ac_fn_c_try_compile "$LINENO"; then : 17872 xorg_cv_cc_flag_unused_command_line_argument=yes 17873else 17874 xorg_cv_cc_flag_unused_command_line_argument=no 17875fi 17876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17877fi 17878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17881 CFLAGS="$xorg_testset_save_CFLAGS" 17882fi 17883 17884found="no" 17885 17886 if test $found = "no" ; then 17887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17889 fi 17890 17891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17893 fi 17894 17895 CFLAGS="$CFLAGS -Werror=attributes" 17896 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17898$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17899 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17900 if eval \${$cacheid+:} false; then : 17901 $as_echo_n "(cached) " >&6 17902else 17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17904/* end confdefs.h. */ 17905int i; 17906int 17907main () 17908{ 17909 17910 ; 17911 return 0; 17912} 17913_ACEOF 17914if ac_fn_c_try_link "$LINENO"; then : 17915 eval $cacheid=yes 17916else 17917 eval $cacheid=no 17918fi 17919rm -f core conftest.err conftest.$ac_objext \ 17920 conftest$ac_exeext conftest.$ac_ext 17921fi 17922 17923 17924 CFLAGS="$xorg_testset_save_CFLAGS" 17925 17926 eval supported=\$$cacheid 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17928$as_echo "$supported" >&6; } 17929 if test "$supported" = "yes" ; then 17930 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17931 found="yes" 17932 fi 17933 fi 17934 17935 17936 17937if test "x$STRICT_COMPILE" = "xyes"; then 17938 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17939 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17940fi 17941 17942 17943 17944 17945 17946 17947cat >>confdefs.h <<_ACEOF 17948#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17949_ACEOF 17950 17951 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17952 if test "x$PVM" = "x"; then 17953 PVM="0" 17954 fi 17955 17956cat >>confdefs.h <<_ACEOF 17957#define PACKAGE_VERSION_MINOR $PVM 17958_ACEOF 17959 17960 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17961 if test "x$PVP" = "x"; then 17962 PVP="0" 17963 fi 17964 17965cat >>confdefs.h <<_ACEOF 17966#define PACKAGE_VERSION_PATCHLEVEL $PVP 17967_ACEOF 17968 17969 17970 17971CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17972mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17973|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17974echo 'git directory not found: installing possibly empty changelog.' >&2)" 17975 17976 17977 17978 17979macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17980INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17981mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17982|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17983echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17984 17985 17986 17987 17988 17989 17990if test x$APP_MAN_SUFFIX = x ; then 17991 APP_MAN_SUFFIX=1 17992fi 17993if test x$APP_MAN_DIR = x ; then 17994 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17995fi 17996 17997if test x$LIB_MAN_SUFFIX = x ; then 17998 LIB_MAN_SUFFIX=3 17999fi 18000if test x$LIB_MAN_DIR = x ; then 18001 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18002fi 18003 18004if test x$FILE_MAN_SUFFIX = x ; then 18005 case $host_os in 18006 solaris*) FILE_MAN_SUFFIX=4 ;; 18007 *) FILE_MAN_SUFFIX=5 ;; 18008 esac 18009fi 18010if test x$FILE_MAN_DIR = x ; then 18011 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18012fi 18013 18014if test x$MISC_MAN_SUFFIX = x ; then 18015 case $host_os in 18016 solaris*) MISC_MAN_SUFFIX=5 ;; 18017 *) MISC_MAN_SUFFIX=7 ;; 18018 esac 18019fi 18020if test x$MISC_MAN_DIR = x ; then 18021 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18022fi 18023 18024if test x$DRIVER_MAN_SUFFIX = x ; then 18025 case $host_os in 18026 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18027 *) DRIVER_MAN_SUFFIX=4 ;; 18028 esac 18029fi 18030if test x$DRIVER_MAN_DIR = x ; then 18031 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18032fi 18033 18034if test x$ADMIN_MAN_SUFFIX = x ; then 18035 case $host_os in 18036 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18037 *) ADMIN_MAN_SUFFIX=8 ;; 18038 esac 18039fi 18040if test x$ADMIN_MAN_DIR = x ; then 18041 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18042fi 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058XORG_MAN_PAGE="X Version 11" 18059 18060MAN_SUBSTS="\ 18061 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18062 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18063 -e 's|__xservername__|Xorg|g' \ 18064 -e 's|__xconfigfile__|xorg.conf|g' \ 18065 -e 's|__projectroot__|\$(prefix)|g' \ 18066 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18067 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18068 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18069 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18070 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18071 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18072 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18073 18074 18075 18076# Check whether --enable-silent-rules was given. 18077if test "${enable_silent_rules+set}" = set; then : 18078 enableval=$enable_silent_rules; 18079fi 18080 18081case $enable_silent_rules in # ((( 18082 yes) AM_DEFAULT_VERBOSITY=0;; 18083 no) AM_DEFAULT_VERBOSITY=1;; 18084 *) AM_DEFAULT_VERBOSITY=0;; 18085esac 18086am_make=${MAKE-make} 18087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18088$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18089if ${am_cv_make_support_nested_variables+:} false; then : 18090 $as_echo_n "(cached) " >&6 18091else 18092 if $as_echo 'TRUE=$(BAR$(V)) 18093BAR0=false 18094BAR1=true 18095V=1 18096am__doit: 18097 @$(TRUE) 18098.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18099 am_cv_make_support_nested_variables=yes 18100else 18101 am_cv_make_support_nested_variables=no 18102fi 18103fi 18104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18105$as_echo "$am_cv_make_support_nested_variables" >&6; } 18106if test $am_cv_make_support_nested_variables = yes; then 18107 AM_V='$(V)' 18108 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18109else 18110 AM_V=$AM_DEFAULT_VERBOSITY 18111 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18112fi 18113AM_BACKSLASH='\' 18114 18115 18116 18117 18118# Check whether --enable-docs was given. 18119if test "${enable_docs+set}" = set; then : 18120 enableval=$enable_docs; build_docs=$enableval 18121else 18122 build_docs=yes 18123fi 18124 18125 18126 if test x$build_docs = xyes; then 18127 ENABLE_DOCS_TRUE= 18128 ENABLE_DOCS_FALSE='#' 18129else 18130 ENABLE_DOCS_TRUE='#' 18131 ENABLE_DOCS_FALSE= 18132fi 18133 18134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 18135$as_echo_n "checking whether to build documentation... " >&6; } 18136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 18137$as_echo "$build_docs" >&6; } 18138 18139 18140 18141# Check whether --enable-specs was given. 18142if test "${enable_specs+set}" = set; then : 18143 enableval=$enable_specs; build_specs=$enableval 18144else 18145 build_specs=yes 18146fi 18147 18148 18149 if test x$build_specs = xyes; then 18150 ENABLE_SPECS_TRUE= 18151 ENABLE_SPECS_FALSE='#' 18152else 18153 ENABLE_SPECS_TRUE='#' 18154 ENABLE_SPECS_FALSE= 18155fi 18156 18157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18158$as_echo_n "checking whether to build functional specifications... " >&6; } 18159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18160$as_echo "$build_specs" >&6; } 18161 18162 18163 18164 18165 18166# Check whether --with-xmlto was given. 18167if test "${with_xmlto+set}" = set; then : 18168 withval=$with_xmlto; use_xmlto=$withval 18169else 18170 use_xmlto=auto 18171fi 18172 18173 18174 18175if test "x$use_xmlto" = x"auto"; then 18176 # Extract the first word of "xmlto", so it can be a program name with args. 18177set dummy xmlto; ac_word=$2 18178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18179$as_echo_n "checking for $ac_word... " >&6; } 18180if ${ac_cv_path_XMLTO+:} false; then : 18181 $as_echo_n "(cached) " >&6 18182else 18183 case $XMLTO in 18184 [\\/]* | ?:[\\/]*) 18185 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18186 ;; 18187 *) 18188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18189for as_dir in $PATH 18190do 18191 IFS=$as_save_IFS 18192 test -z "$as_dir" && as_dir=. 18193 for ac_exec_ext in '' $ac_executable_extensions; do 18194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18195 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18197 break 2 18198 fi 18199done 18200 done 18201IFS=$as_save_IFS 18202 18203 ;; 18204esac 18205fi 18206XMLTO=$ac_cv_path_XMLTO 18207if test -n "$XMLTO"; then 18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18209$as_echo "$XMLTO" >&6; } 18210else 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18212$as_echo "no" >&6; } 18213fi 18214 18215 18216 if test "x$XMLTO" = "x"; then 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18218$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18219 have_xmlto=no 18220 else 18221 have_xmlto=yes 18222 fi 18223elif test "x$use_xmlto" = x"yes" ; then 18224 # Extract the first word of "xmlto", so it can be a program name with args. 18225set dummy xmlto; ac_word=$2 18226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18227$as_echo_n "checking for $ac_word... " >&6; } 18228if ${ac_cv_path_XMLTO+:} false; then : 18229 $as_echo_n "(cached) " >&6 18230else 18231 case $XMLTO in 18232 [\\/]* | ?:[\\/]*) 18233 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18234 ;; 18235 *) 18236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18237for as_dir in $PATH 18238do 18239 IFS=$as_save_IFS 18240 test -z "$as_dir" && as_dir=. 18241 for ac_exec_ext in '' $ac_executable_extensions; do 18242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18243 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18245 break 2 18246 fi 18247done 18248 done 18249IFS=$as_save_IFS 18250 18251 ;; 18252esac 18253fi 18254XMLTO=$ac_cv_path_XMLTO 18255if test -n "$XMLTO"; then 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18257$as_echo "$XMLTO" >&6; } 18258else 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18260$as_echo "no" >&6; } 18261fi 18262 18263 18264 if test "x$XMLTO" = "x"; then 18265 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18266 fi 18267 have_xmlto=yes 18268elif test "x$use_xmlto" = x"no" ; then 18269 if test "x$XMLTO" != "x"; then 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18271$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18272 fi 18273 have_xmlto=no 18274else 18275 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18276fi 18277 18278# Test for a minimum version of xmlto, if provided. 18279if test "$have_xmlto" = yes; then 18280 # scrape the xmlto version 18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18282$as_echo_n "checking the xmlto version... " >&6; } 18283 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18285$as_echo "$xmlto_version" >&6; } 18286 as_arg_v1=$xmlto_version 18287as_arg_v2=0.0.22 18288awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18289case $? in #( 18290 1) : 18291 if test "x$use_xmlto" = xauto; then 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18293$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18294 have_xmlto=no 18295 else 18296 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18297 fi ;; #( 18298 0) : 18299 ;; #( 18300 2) : 18301 ;; #( 18302 *) : 18303 ;; 18304esac 18305fi 18306 18307# Test for the ability of xmlto to generate a text target 18308have_xmlto_text=no 18309cat > conftest.xml << "EOF" 18310EOF 18311if test "$have_xmlto" = yes; then : 18312 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18313 have_xmlto_text=yes 18314else 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18316$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18317fi 18318fi 18319rm -f conftest.xml 18320 if test $have_xmlto_text = yes; then 18321 HAVE_XMLTO_TEXT_TRUE= 18322 HAVE_XMLTO_TEXT_FALSE='#' 18323else 18324 HAVE_XMLTO_TEXT_TRUE='#' 18325 HAVE_XMLTO_TEXT_FALSE= 18326fi 18327 18328 if test "$have_xmlto" = yes; then 18329 HAVE_XMLTO_TRUE= 18330 HAVE_XMLTO_FALSE='#' 18331else 18332 HAVE_XMLTO_TRUE='#' 18333 HAVE_XMLTO_FALSE= 18334fi 18335 18336 18337 18338 18339 18340 18341# Check whether --with-fop was given. 18342if test "${with_fop+set}" = set; then : 18343 withval=$with_fop; use_fop=$withval 18344else 18345 use_fop=auto 18346fi 18347 18348 18349 18350if test "x$use_fop" = x"auto"; then 18351 # Extract the first word of "fop", so it can be a program name with args. 18352set dummy fop; ac_word=$2 18353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18354$as_echo_n "checking for $ac_word... " >&6; } 18355if ${ac_cv_path_FOP+:} false; then : 18356 $as_echo_n "(cached) " >&6 18357else 18358 case $FOP in 18359 [\\/]* | ?:[\\/]*) 18360 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18361 ;; 18362 *) 18363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18364for as_dir in $PATH 18365do 18366 IFS=$as_save_IFS 18367 test -z "$as_dir" && as_dir=. 18368 for ac_exec_ext in '' $ac_executable_extensions; do 18369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18370 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18372 break 2 18373 fi 18374done 18375 done 18376IFS=$as_save_IFS 18377 18378 ;; 18379esac 18380fi 18381FOP=$ac_cv_path_FOP 18382if test -n "$FOP"; then 18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18384$as_echo "$FOP" >&6; } 18385else 18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18387$as_echo "no" >&6; } 18388fi 18389 18390 18391 if test "x$FOP" = "x"; then 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18393$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18394 have_fop=no 18395 else 18396 have_fop=yes 18397 fi 18398elif test "x$use_fop" = x"yes" ; then 18399 # Extract the first word of "fop", so it can be a program name with args. 18400set dummy fop; ac_word=$2 18401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18402$as_echo_n "checking for $ac_word... " >&6; } 18403if ${ac_cv_path_FOP+:} false; then : 18404 $as_echo_n "(cached) " >&6 18405else 18406 case $FOP in 18407 [\\/]* | ?:[\\/]*) 18408 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18409 ;; 18410 *) 18411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18412for as_dir in $PATH 18413do 18414 IFS=$as_save_IFS 18415 test -z "$as_dir" && as_dir=. 18416 for ac_exec_ext in '' $ac_executable_extensions; do 18417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18418 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18420 break 2 18421 fi 18422done 18423 done 18424IFS=$as_save_IFS 18425 18426 ;; 18427esac 18428fi 18429FOP=$ac_cv_path_FOP 18430if test -n "$FOP"; then 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18432$as_echo "$FOP" >&6; } 18433else 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18435$as_echo "no" >&6; } 18436fi 18437 18438 18439 if test "x$FOP" = "x"; then 18440 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18441 fi 18442 have_fop=yes 18443elif test "x$use_fop" = x"no" ; then 18444 if test "x$FOP" != "x"; then 18445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18446$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18447 fi 18448 have_fop=no 18449else 18450 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18451fi 18452 18453# Test for a minimum version of fop, if provided. 18454 18455 if test "$have_fop" = yes; then 18456 HAVE_FOP_TRUE= 18457 HAVE_FOP_FALSE='#' 18458else 18459 HAVE_FOP_TRUE='#' 18460 HAVE_FOP_FALSE= 18461fi 18462 18463 18464 18465 18466# Preserves the interface, should it be implemented later 18467 18468 18469 18470# Check whether --with-xsltproc was given. 18471if test "${with_xsltproc+set}" = set; then : 18472 withval=$with_xsltproc; use_xsltproc=$withval 18473else 18474 use_xsltproc=auto 18475fi 18476 18477 18478 18479if test "x$use_xsltproc" = x"auto"; then 18480 # Extract the first word of "xsltproc", so it can be a program name with args. 18481set dummy xsltproc; ac_word=$2 18482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18483$as_echo_n "checking for $ac_word... " >&6; } 18484if ${ac_cv_path_XSLTPROC+:} false; then : 18485 $as_echo_n "(cached) " >&6 18486else 18487 case $XSLTPROC in 18488 [\\/]* | ?:[\\/]*) 18489 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18490 ;; 18491 *) 18492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18493for as_dir in $PATH 18494do 18495 IFS=$as_save_IFS 18496 test -z "$as_dir" && as_dir=. 18497 for ac_exec_ext in '' $ac_executable_extensions; do 18498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18499 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18501 break 2 18502 fi 18503done 18504 done 18505IFS=$as_save_IFS 18506 18507 ;; 18508esac 18509fi 18510XSLTPROC=$ac_cv_path_XSLTPROC 18511if test -n "$XSLTPROC"; then 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18513$as_echo "$XSLTPROC" >&6; } 18514else 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18516$as_echo "no" >&6; } 18517fi 18518 18519 18520 if test "x$XSLTPROC" = "x"; then 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18522$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18523 have_xsltproc=no 18524 else 18525 have_xsltproc=yes 18526 fi 18527elif test "x$use_xsltproc" = x"yes" ; then 18528 # Extract the first word of "xsltproc", so it can be a program name with args. 18529set dummy xsltproc; ac_word=$2 18530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18531$as_echo_n "checking for $ac_word... " >&6; } 18532if ${ac_cv_path_XSLTPROC+:} false; then : 18533 $as_echo_n "(cached) " >&6 18534else 18535 case $XSLTPROC in 18536 [\\/]* | ?:[\\/]*) 18537 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18538 ;; 18539 *) 18540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18541for as_dir in $PATH 18542do 18543 IFS=$as_save_IFS 18544 test -z "$as_dir" && as_dir=. 18545 for ac_exec_ext in '' $ac_executable_extensions; do 18546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18547 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18549 break 2 18550 fi 18551done 18552 done 18553IFS=$as_save_IFS 18554 18555 ;; 18556esac 18557fi 18558XSLTPROC=$ac_cv_path_XSLTPROC 18559if test -n "$XSLTPROC"; then 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18561$as_echo "$XSLTPROC" >&6; } 18562else 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18564$as_echo "no" >&6; } 18565fi 18566 18567 18568 if test "x$XSLTPROC" = "x"; then 18569 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18570 fi 18571 have_xsltproc=yes 18572elif test "x$use_xsltproc" = x"no" ; then 18573 if test "x$XSLTPROC" != "x"; then 18574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18575$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18576 fi 18577 have_xsltproc=no 18578else 18579 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18580fi 18581 18582 if test "$have_xsltproc" = yes; then 18583 HAVE_XSLTPROC_TRUE= 18584 HAVE_XSLTPROC_FALSE='#' 18585else 18586 HAVE_XSLTPROC_TRUE='#' 18587 HAVE_XSLTPROC_FALSE= 18588fi 18589 18590 18591 18592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18593$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18594XORG_SGML_PATH= 18595if test -n "$PKG_CONFIG" && \ 18596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18597 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18598 ac_status=$? 18599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18600 test $ac_status = 0; }; then 18601 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18602else 18603 : 18604 18605fi 18606 18607# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18608# the path and the name of the doc stylesheet 18609if test "x$XORG_SGML_PATH" != "x" ; then 18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18611$as_echo "$XORG_SGML_PATH" >&6; } 18612 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18613 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18614else 18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18616$as_echo "no" >&6; } 18617fi 18618 18619 18620 18621 18622 if test "x$XSL_STYLESHEET" != "x"; then 18623 HAVE_STYLESHEETS_TRUE= 18624 HAVE_STYLESHEETS_FALSE='#' 18625else 18626 HAVE_STYLESHEETS_TRUE='#' 18627 HAVE_STYLESHEETS_FALSE= 18628fi 18629 18630 18631 18632# Obtain compiler/linker options for depedencies 18633 18634pkg_failed=no 18635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5 18636$as_echo_n "checking for ICE... " >&6; } 18637 18638if test -n "$ICE_CFLAGS"; then 18639 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS" 18640 elif test -n "$PKG_CONFIG"; then 18641 if test -n "$PKG_CONFIG" && \ 18642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans\""; } >&5 18643 ($PKG_CONFIG --exists --print-errors "xproto xtrans") 2>&5 18644 ac_status=$? 18645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18646 test $ac_status = 0; }; then 18647 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans" 2>/dev/null` 18648else 18649 pkg_failed=yes 18650fi 18651 else 18652 pkg_failed=untried 18653fi 18654if test -n "$ICE_LIBS"; then 18655 pkg_cv_ICE_LIBS="$ICE_LIBS" 18656 elif test -n "$PKG_CONFIG"; then 18657 if test -n "$PKG_CONFIG" && \ 18658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans\""; } >&5 18659 ($PKG_CONFIG --exists --print-errors "xproto xtrans") 2>&5 18660 ac_status=$? 18661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18662 test $ac_status = 0; }; then 18663 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto xtrans" 2>/dev/null` 18664else 18665 pkg_failed=yes 18666fi 18667 else 18668 pkg_failed=untried 18669fi 18670 18671 18672 18673if test $pkg_failed = yes; then 18674 18675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18676 _pkg_short_errors_supported=yes 18677else 18678 _pkg_short_errors_supported=no 18679fi 18680 if test $_pkg_short_errors_supported = yes; then 18681 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans" 2>&1` 18682 else 18683 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans" 2>&1` 18684 fi 18685 # Put the nasty error message in config.log where it belongs 18686 echo "$ICE_PKG_ERRORS" >&5 18687 18688 as_fn_error $? "Package requirements (xproto xtrans) were not met: 18689 18690$ICE_PKG_ERRORS 18691 18692Consider adjusting the PKG_CONFIG_PATH environment variable if you 18693installed software in a non-standard prefix. 18694 18695Alternatively, you may set the environment variables ICE_CFLAGS 18696and ICE_LIBS to avoid the need to call pkg-config. 18697See the pkg-config man page for more details. 18698" "$LINENO" 5 18699elif test $pkg_failed = untried; then 18700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18702as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18703is in your PATH or set the PKG_CONFIG environment variable to the full 18704path to pkg-config. 18705 18706Alternatively, you may set the environment variables ICE_CFLAGS 18707and ICE_LIBS to avoid the need to call pkg-config. 18708See the pkg-config man page for more details. 18709 18710To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18711See \`config.log' for more details" "$LINENO" 5; } 18712else 18713 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS 18714 ICE_LIBS=$pkg_cv_ICE_LIBS 18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18716$as_echo "yes" >&6; } 18717 : 18718fi 18719 18720# Transport selection macro from xtrans.m4 18721 18722 18723 case $host_os in 18724 mingw*) unixdef="no" ;; 18725 *) unixdef="yes" ;; 18726 esac 18727 # Check whether --enable-unix-transport was given. 18728if test "${enable_unix_transport+set}" = set; then : 18729 enableval=$enable_unix_transport; UNIXCONN=$enableval 18730else 18731 UNIXCONN=$unixdef 18732fi 18733 18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 18735$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 18736 if test "$UNIXCONN" = "yes"; then 18737 18738$as_echo "#define UNIXCONN 1" >>confdefs.h 18739 18740 fi 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 18742$as_echo "$UNIXCONN" >&6; } 18743 # Check whether --enable-tcp-transport was given. 18744if test "${enable_tcp_transport+set}" = set; then : 18745 enableval=$enable_tcp_transport; TCPCONN=$enableval 18746else 18747 TCPCONN=yes 18748fi 18749 18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 18751$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 18753$as_echo "$TCPCONN" >&6; } 18754 if test "$TCPCONN" = "yes"; then 18755 18756$as_echo "#define TCPCONN 1" >>confdefs.h 18757 18758 18759 # SVR4 hides these in libraries other than libc 18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 18761$as_echo_n "checking for library containing socket... " >&6; } 18762if ${ac_cv_search_socket+:} false; then : 18763 $as_echo_n "(cached) " >&6 18764else 18765 ac_func_search_save_LIBS=$LIBS 18766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18767/* end confdefs.h. */ 18768 18769/* Override any GCC internal prototype to avoid an error. 18770 Use char because int might match the return type of a GCC 18771 builtin and then its argument prototype would still apply. */ 18772#ifdef __cplusplus 18773extern "C" 18774#endif 18775char socket (); 18776int 18777main () 18778{ 18779return socket (); 18780 ; 18781 return 0; 18782} 18783_ACEOF 18784for ac_lib in '' socket; do 18785 if test -z "$ac_lib"; then 18786 ac_res="none required" 18787 else 18788 ac_res=-l$ac_lib 18789 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18790 fi 18791 if ac_fn_c_try_link "$LINENO"; then : 18792 ac_cv_search_socket=$ac_res 18793fi 18794rm -f core conftest.err conftest.$ac_objext \ 18795 conftest$ac_exeext 18796 if ${ac_cv_search_socket+:} false; then : 18797 break 18798fi 18799done 18800if ${ac_cv_search_socket+:} false; then : 18801 18802else 18803 ac_cv_search_socket=no 18804fi 18805rm conftest.$ac_ext 18806LIBS=$ac_func_search_save_LIBS 18807fi 18808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18809$as_echo "$ac_cv_search_socket" >&6; } 18810ac_res=$ac_cv_search_socket 18811if test "$ac_res" != no; then : 18812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18813 18814fi 18815 18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18817$as_echo_n "checking for library containing gethostbyname... " >&6; } 18818if ${ac_cv_search_gethostbyname+:} false; then : 18819 $as_echo_n "(cached) " >&6 18820else 18821 ac_func_search_save_LIBS=$LIBS 18822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18823/* end confdefs.h. */ 18824 18825/* Override any GCC internal prototype to avoid an error. 18826 Use char because int might match the return type of a GCC 18827 builtin and then its argument prototype would still apply. */ 18828#ifdef __cplusplus 18829extern "C" 18830#endif 18831char gethostbyname (); 18832int 18833main () 18834{ 18835return gethostbyname (); 18836 ; 18837 return 0; 18838} 18839_ACEOF 18840for ac_lib in '' nsl; do 18841 if test -z "$ac_lib"; then 18842 ac_res="none required" 18843 else 18844 ac_res=-l$ac_lib 18845 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18846 fi 18847 if ac_fn_c_try_link "$LINENO"; then : 18848 ac_cv_search_gethostbyname=$ac_res 18849fi 18850rm -f core conftest.err conftest.$ac_objext \ 18851 conftest$ac_exeext 18852 if ${ac_cv_search_gethostbyname+:} false; then : 18853 break 18854fi 18855done 18856if ${ac_cv_search_gethostbyname+:} false; then : 18857 18858else 18859 ac_cv_search_gethostbyname=no 18860fi 18861rm conftest.$ac_ext 18862LIBS=$ac_func_search_save_LIBS 18863fi 18864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18865$as_echo "$ac_cv_search_gethostbyname" >&6; } 18866ac_res=$ac_cv_search_gethostbyname 18867if test "$ac_res" != no; then : 18868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18869 18870fi 18871 18872 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18874$as_echo_n "checking for main in -lws2_32... " >&6; } 18875if ${ac_cv_lib_ws2_32_main+:} false; then : 18876 $as_echo_n "(cached) " >&6 18877else 18878 ac_check_lib_save_LIBS=$LIBS 18879LIBS="-lws2_32 $LIBS" 18880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18881/* end confdefs.h. */ 18882 18883 18884int 18885main () 18886{ 18887return main (); 18888 ; 18889 return 0; 18890} 18891_ACEOF 18892if ac_fn_c_try_link "$LINENO"; then : 18893 ac_cv_lib_ws2_32_main=yes 18894else 18895 ac_cv_lib_ws2_32_main=no 18896fi 18897rm -f core conftest.err conftest.$ac_objext \ 18898 conftest$ac_exeext conftest.$ac_ext 18899LIBS=$ac_check_lib_save_LIBS 18900fi 18901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18902$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18903if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18904 cat >>confdefs.h <<_ACEOF 18905#define HAVE_LIBWS2_32 1 18906_ACEOF 18907 18908 LIBS="-lws2_32 $LIBS" 18909 18910fi 18911 18912 fi 18913 18914 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 18915 # Check whether --enable-ipv6 was given. 18916if test "${enable_ipv6+set}" = set; then : 18917 enableval=$enable_ipv6; IPV6CONN=$enableval 18918else 18919 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18920if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18921 IPV6CONN=yes 18922else 18923 IPV6CONN=no 18924fi 18925 18926fi 18927 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 18929$as_echo_n "checking if IPv6 support should be built... " >&6; } 18930 if test "$IPV6CONN" = "yes"; then 18931 18932$as_echo "#define IPv6 1" >>confdefs.h 18933 18934 fi 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 18936$as_echo "$IPV6CONN" >&6; } 18937 18938 # 4.3BSD-Reno added a new member to struct sockaddr_in 18939 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 18940#include <sys/types.h> 18941#include <sys/socket.h> 18942#include <netinet/in.h> 18943 18944" 18945if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 18946 18947$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 18948 18949fi 18950 18951 18952 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 18953 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18954$ac_includes_default 18955#include <sys/socket.h> 18956" 18957if test "x$ac_cv_type_socklen_t" = xyes; then : 18958 18959cat >>confdefs.h <<_ACEOF 18960#define HAVE_SOCKLEN_T 1 18961_ACEOF 18962 18963 18964fi 18965 18966 18967 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 18968 # _XOPEN_SOURCE to get it (such as on Solaris) 18969 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 18970$ac_includes_default 18971#include <sys/socket.h> 18972 18973" 18974if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 18975 18976fi 18977 18978 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 18979 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 18980 unset ac_cv_member_struct_msghdr_msg_control 18981 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 18982$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 18983 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 18984#define _XOPEN_SOURCE 600 18985$ac_includes_default 18986#include <sys/socket.h> 18987 18988" 18989if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 18990 18991$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 18992 18993 18994fi 18995 18996 fi 18997 # If that didn't work, fall back to XPG5/UNIX98 with C89 18998 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 18999 unset ac_cv_member_struct_msghdr_msg_control 19000 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 19001$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 19002 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19003#define _XOPEN_SOURCE 500 19004$ac_includes_default 19005#include <sys/socket.h> 19006 19007" 19008if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19009 19010$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 19011 19012 19013fi 19014 19015 fi 19016 19017 19018 19019 fi 19020 case $host_os in 19021 solaris*|sco*|sysv4*) localdef="yes" ;; 19022 *) localdef="no" ;; 19023 esac 19024 # Check whether --enable-local-transport was given. 19025if test "${enable_local_transport+set}" = set; then : 19026 enableval=$enable_local_transport; LOCALCONN=$enableval 19027else 19028 LOCALCONN=$localdef 19029fi 19030 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 19032$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 19034$as_echo "$LOCALCONN" >&6; } 19035 if test "$LOCALCONN" = "yes"; then 19036 19037$as_echo "#define LOCALCONN 1" >>confdefs.h 19038 19039 fi 19040 19041 19042 19043$as_echo "#define ICE_t 1" >>confdefs.h 19044 19045 19046# Checks for library functions. 19047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5 19048$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; } 19049if ${ac_cv_lib_bsd_arc4random_buf+:} false; then : 19050 $as_echo_n "(cached) " >&6 19051else 19052 ac_check_lib_save_LIBS=$LIBS 19053LIBS="-lbsd $LIBS" 19054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19055/* end confdefs.h. */ 19056 19057/* Override any GCC internal prototype to avoid an error. 19058 Use char because int might match the return type of a GCC 19059 builtin and then its argument prototype would still apply. */ 19060#ifdef __cplusplus 19061extern "C" 19062#endif 19063char arc4random_buf (); 19064int 19065main () 19066{ 19067return arc4random_buf (); 19068 ; 19069 return 0; 19070} 19071_ACEOF 19072if ac_fn_c_try_link "$LINENO"; then : 19073 ac_cv_lib_bsd_arc4random_buf=yes 19074else 19075 ac_cv_lib_bsd_arc4random_buf=no 19076fi 19077rm -f core conftest.err conftest.$ac_objext \ 19078 conftest$ac_exeext conftest.$ac_ext 19079LIBS=$ac_check_lib_save_LIBS 19080fi 19081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5 19082$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; } 19083if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then : 19084 cat >>confdefs.h <<_ACEOF 19085#define HAVE_LIBBSD 1 19086_ACEOF 19087 19088 LIBS="-lbsd $LIBS" 19089 19090fi 19091 19092for ac_func in asprintf arc4random_buf 19093do : 19094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19095ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19096if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19097 cat >>confdefs.h <<_ACEOF 19098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19099_ACEOF 19100 19101fi 19102done 19103 19104 19105# Allow checking code with lint, sparse, etc. 19106 19107 19108 19109 19110 19111# Check whether --with-lint was given. 19112if test "${with_lint+set}" = set; then : 19113 withval=$with_lint; use_lint=$withval 19114else 19115 use_lint=no 19116fi 19117 19118 19119# Obtain platform specific info like program name and options 19120# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19121case $host_os in 19122 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19123 lint_name=splint 19124 lint_options="-badflag" 19125 ;; 19126 *freebsd* | *netbsd*) 19127 lint_name=lint 19128 lint_options="-u -b" 19129 ;; 19130 *solaris*) 19131 lint_name=lint 19132 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19133 ;; 19134esac 19135 19136# Test for the presence of the program (either guessed by the code or spelled out by the user) 19137if test "x$use_lint" = x"yes" ; then 19138 # Extract the first word of "$lint_name", so it can be a program name with args. 19139set dummy $lint_name; ac_word=$2 19140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19141$as_echo_n "checking for $ac_word... " >&6; } 19142if ${ac_cv_path_LINT+:} false; then : 19143 $as_echo_n "(cached) " >&6 19144else 19145 case $LINT in 19146 [\\/]* | ?:[\\/]*) 19147 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19148 ;; 19149 *) 19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19151for as_dir in $PATH 19152do 19153 IFS=$as_save_IFS 19154 test -z "$as_dir" && as_dir=. 19155 for ac_exec_ext in '' $ac_executable_extensions; do 19156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19157 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 19158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19159 break 2 19160 fi 19161done 19162 done 19163IFS=$as_save_IFS 19164 19165 ;; 19166esac 19167fi 19168LINT=$ac_cv_path_LINT 19169if test -n "$LINT"; then 19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19171$as_echo "$LINT" >&6; } 19172else 19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19174$as_echo "no" >&6; } 19175fi 19176 19177 19178 if test "x$LINT" = "x"; then 19179 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19180 fi 19181elif test "x$use_lint" = x"no" ; then 19182 if test "x$LINT" != "x"; then 19183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19184$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19185 fi 19186else 19187 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19188fi 19189 19190# User supplied flags override default flags 19191if test "x$LINT_FLAGS" != "x"; then 19192 lint_options=$LINT_FLAGS 19193fi 19194 19195LINT_FLAGS=$lint_options 19196 19197 if test "x$LINT" != x; then 19198 LINT_TRUE= 19199 LINT_FALSE='#' 19200else 19201 LINT_TRUE='#' 19202 LINT_FALSE= 19203fi 19204 19205 19206 19207 19208 19209# Check whether --enable-lint-library was given. 19210if test "${enable_lint_library+set}" = set; then : 19211 enableval=$enable_lint_library; make_lint_lib=$enableval 19212else 19213 make_lint_lib=no 19214fi 19215 19216 19217if test "x$make_lint_lib" = x"yes" ; then 19218 LINTLIB=llib-lICE.ln 19219 if test "x$LINT" = "x"; then 19220 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 19221 fi 19222elif test "x$make_lint_lib" != x"no" ; then 19223 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 19224fi 19225 19226 19227 if test x$make_lint_lib != xno; then 19228 MAKE_LINT_LIB_TRUE= 19229 MAKE_LINT_LIB_FALSE='#' 19230else 19231 MAKE_LINT_LIB_TRUE='#' 19232 MAKE_LINT_LIB_FALSE= 19233fi 19234 19235 19236 19237LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}" 19238 19239ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc" 19240 19241cat >confcache <<\_ACEOF 19242# This file is a shell script that caches the results of configure 19243# tests run on this system so they can be shared between configure 19244# scripts and configure runs, see configure's option --config-cache. 19245# It is not useful on other systems. If it contains results you don't 19246# want to keep, you may remove or edit it. 19247# 19248# config.status only pays attention to the cache file if you give it 19249# the --recheck option to rerun configure. 19250# 19251# `ac_cv_env_foo' variables (set or unset) will be overridden when 19252# loading this file, other *unset* `ac_cv_foo' will be assigned the 19253# following values. 19254 19255_ACEOF 19256 19257# The following way of writing the cache mishandles newlines in values, 19258# but we know of no workaround that is simple, portable, and efficient. 19259# So, we kill variables containing newlines. 19260# Ultrix sh set writes to stderr and can't be redirected directly, 19261# and sets the high bit in the cache file unless we assign to the vars. 19262( 19263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19264 eval ac_val=\$$ac_var 19265 case $ac_val in #( 19266 *${as_nl}*) 19267 case $ac_var in #( 19268 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19269$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19270 esac 19271 case $ac_var in #( 19272 _ | IFS | as_nl) ;; #( 19273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19274 *) { eval $ac_var=; unset $ac_var;} ;; 19275 esac ;; 19276 esac 19277 done 19278 19279 (set) 2>&1 | 19280 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19281 *${as_nl}ac_space=\ *) 19282 # `set' does not quote correctly, so add quotes: double-quote 19283 # substitution turns \\\\ into \\, and sed turns \\ into \. 19284 sed -n \ 19285 "s/'/'\\\\''/g; 19286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19287 ;; #( 19288 *) 19289 # `set' quotes correctly as required by POSIX, so do not add quotes. 19290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19291 ;; 19292 esac | 19293 sort 19294) | 19295 sed ' 19296 /^ac_cv_env_/b end 19297 t clear 19298 :clear 19299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19300 t end 19301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19302 :end' >>confcache 19303if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19304 if test -w "$cache_file"; then 19305 if test "x$cache_file" != "x/dev/null"; then 19306 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19307$as_echo "$as_me: updating cache $cache_file" >&6;} 19308 if test ! -f "$cache_file" || test -h "$cache_file"; then 19309 cat confcache >"$cache_file" 19310 else 19311 case $cache_file in #( 19312 */* | ?:*) 19313 mv -f confcache "$cache_file"$$ && 19314 mv -f "$cache_file"$$ "$cache_file" ;; #( 19315 *) 19316 mv -f confcache "$cache_file" ;; 19317 esac 19318 fi 19319 fi 19320 else 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19322$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19323 fi 19324fi 19325rm -f confcache 19326 19327test "x$prefix" = xNONE && prefix=$ac_default_prefix 19328# Let make expand exec_prefix. 19329test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19330 19331DEFS=-DHAVE_CONFIG_H 19332 19333ac_libobjs= 19334ac_ltlibobjs= 19335U= 19336for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19337 # 1. Remove the extension, and $U if already installed. 19338 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19339 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19340 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19341 # will be set to the directory where LIBOBJS objects are built. 19342 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19343 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19344done 19345LIBOBJS=$ac_libobjs 19346 19347LTLIBOBJS=$ac_ltlibobjs 19348 19349 19350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19351$as_echo_n "checking that generated files are newer than configure... " >&6; } 19352 if test -n "$am_sleep_pid"; then 19353 # Hide warnings about reused PIDs. 19354 wait $am_sleep_pid 2>/dev/null 19355 fi 19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19357$as_echo "done" >&6; } 19358if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19359 as_fn_error $? "conditional \"AMDEP\" was never defined. 19360Usually this means the macro was only invoked conditionally." "$LINENO" 5 19361fi 19362if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19363 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19364Usually this means the macro was only invoked conditionally." "$LINENO" 5 19365fi 19366 if test -n "$EXEEXT"; then 19367 am__EXEEXT_TRUE= 19368 am__EXEEXT_FALSE='#' 19369else 19370 am__EXEEXT_TRUE='#' 19371 am__EXEEXT_FALSE= 19372fi 19373 19374if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 19375 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 19376Usually this means the macro was only invoked conditionally." "$LINENO" 5 19377fi 19378if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 19379 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 19380Usually this means the macro was only invoked conditionally." "$LINENO" 5 19381fi 19382if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19383 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19384Usually this means the macro was only invoked conditionally." "$LINENO" 5 19385fi 19386if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19387 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19388Usually this means the macro was only invoked conditionally." "$LINENO" 5 19389fi 19390if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19391 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19392Usually this means the macro was only invoked conditionally." "$LINENO" 5 19393fi 19394if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 19395 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 19396Usually this means the macro was only invoked conditionally." "$LINENO" 5 19397fi 19398if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19399 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19400Usually this means the macro was only invoked conditionally." "$LINENO" 5 19401fi 19402if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19403 as_fn_error $? "conditional \"LINT\" was never defined. 19404Usually this means the macro was only invoked conditionally." "$LINENO" 5 19405fi 19406if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 19407 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 19408Usually this means the macro was only invoked conditionally." "$LINENO" 5 19409fi 19410 19411: "${CONFIG_STATUS=./config.status}" 19412ac_write_fail=0 19413ac_clean_files_save=$ac_clean_files 19414ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19415{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19416$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19417as_write_fail=0 19418cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19419#! $SHELL 19420# Generated by $as_me. 19421# Run this file to recreate the current configuration. 19422# Compiler output produced by configure, useful for debugging 19423# configure, is in config.log if it exists. 19424 19425debug=false 19426ac_cs_recheck=false 19427ac_cs_silent=false 19428 19429SHELL=\${CONFIG_SHELL-$SHELL} 19430export SHELL 19431_ASEOF 19432cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19433## -------------------- ## 19434## M4sh Initialization. ## 19435## -------------------- ## 19436 19437# Be more Bourne compatible 19438DUALCASE=1; export DUALCASE # for MKS sh 19439if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19440 emulate sh 19441 NULLCMD=: 19442 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19443 # is contrary to our usage. Disable this feature. 19444 alias -g '${1+"$@"}'='"$@"' 19445 setopt NO_GLOB_SUBST 19446else 19447 case `(set -o) 2>/dev/null` in #( 19448 *posix*) : 19449 set -o posix ;; #( 19450 *) : 19451 ;; 19452esac 19453fi 19454 19455 19456as_nl=' 19457' 19458export as_nl 19459# Printing a long string crashes Solaris 7 /usr/bin/printf. 19460as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19461as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19462as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19463# Prefer a ksh shell builtin over an external printf program on Solaris, 19464# but without wasting forks for bash or zsh. 19465if test -z "$BASH_VERSION$ZSH_VERSION" \ 19466 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19467 as_echo='print -r --' 19468 as_echo_n='print -rn --' 19469elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19470 as_echo='printf %s\n' 19471 as_echo_n='printf %s' 19472else 19473 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19474 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19475 as_echo_n='/usr/ucb/echo -n' 19476 else 19477 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19478 as_echo_n_body='eval 19479 arg=$1; 19480 case $arg in #( 19481 *"$as_nl"*) 19482 expr "X$arg" : "X\\(.*\\)$as_nl"; 19483 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19484 esac; 19485 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19486 ' 19487 export as_echo_n_body 19488 as_echo_n='sh -c $as_echo_n_body as_echo' 19489 fi 19490 export as_echo_body 19491 as_echo='sh -c $as_echo_body as_echo' 19492fi 19493 19494# The user is always right. 19495if test "${PATH_SEPARATOR+set}" != set; then 19496 PATH_SEPARATOR=: 19497 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19498 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19499 PATH_SEPARATOR=';' 19500 } 19501fi 19502 19503 19504# IFS 19505# We need space, tab and new line, in precisely that order. Quoting is 19506# there to prevent editors from complaining about space-tab. 19507# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19508# splitting by setting IFS to empty value.) 19509IFS=" "" $as_nl" 19510 19511# Find who we are. Look in the path if we contain no directory separator. 19512as_myself= 19513case $0 in #(( 19514 *[\\/]* ) as_myself=$0 ;; 19515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19516for as_dir in $PATH 19517do 19518 IFS=$as_save_IFS 19519 test -z "$as_dir" && as_dir=. 19520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19521 done 19522IFS=$as_save_IFS 19523 19524 ;; 19525esac 19526# We did not find ourselves, most probably we were run as `sh COMMAND' 19527# in which case we are not to be found in the path. 19528if test "x$as_myself" = x; then 19529 as_myself=$0 19530fi 19531if test ! -f "$as_myself"; then 19532 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19533 exit 1 19534fi 19535 19536# Unset variables that we do not need and which cause bugs (e.g. in 19537# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19538# suppresses any "Segmentation fault" message there. '((' could 19539# trigger a bug in pdksh 5.2.14. 19540for as_var in BASH_ENV ENV MAIL MAILPATH 19541do eval test x\${$as_var+set} = xset \ 19542 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19543done 19544PS1='$ ' 19545PS2='> ' 19546PS4='+ ' 19547 19548# NLS nuisances. 19549LC_ALL=C 19550export LC_ALL 19551LANGUAGE=C 19552export LANGUAGE 19553 19554# CDPATH. 19555(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19556 19557 19558# as_fn_error STATUS ERROR [LINENO LOG_FD] 19559# ---------------------------------------- 19560# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19561# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19562# script with STATUS, using 1 if that was 0. 19563as_fn_error () 19564{ 19565 as_status=$1; test $as_status -eq 0 && as_status=1 19566 if test "$4"; then 19567 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19568 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19569 fi 19570 $as_echo "$as_me: error: $2" >&2 19571 as_fn_exit $as_status 19572} # as_fn_error 19573 19574 19575# as_fn_set_status STATUS 19576# ----------------------- 19577# Set $? to STATUS, without forking. 19578as_fn_set_status () 19579{ 19580 return $1 19581} # as_fn_set_status 19582 19583# as_fn_exit STATUS 19584# ----------------- 19585# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19586as_fn_exit () 19587{ 19588 set +e 19589 as_fn_set_status $1 19590 exit $1 19591} # as_fn_exit 19592 19593# as_fn_unset VAR 19594# --------------- 19595# Portably unset VAR. 19596as_fn_unset () 19597{ 19598 { eval $1=; unset $1;} 19599} 19600as_unset=as_fn_unset 19601# as_fn_append VAR VALUE 19602# ---------------------- 19603# Append the text in VALUE to the end of the definition contained in VAR. Take 19604# advantage of any shell optimizations that allow amortized linear growth over 19605# repeated appends, instead of the typical quadratic growth present in naive 19606# implementations. 19607if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19608 eval 'as_fn_append () 19609 { 19610 eval $1+=\$2 19611 }' 19612else 19613 as_fn_append () 19614 { 19615 eval $1=\$$1\$2 19616 } 19617fi # as_fn_append 19618 19619# as_fn_arith ARG... 19620# ------------------ 19621# Perform arithmetic evaluation on the ARGs, and store the result in the 19622# global $as_val. Take advantage of shells that can avoid forks. The arguments 19623# must be portable across $(()) and expr. 19624if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19625 eval 'as_fn_arith () 19626 { 19627 as_val=$(( $* )) 19628 }' 19629else 19630 as_fn_arith () 19631 { 19632 as_val=`expr "$@" || test $? -eq 1` 19633 } 19634fi # as_fn_arith 19635 19636 19637if expr a : '\(a\)' >/dev/null 2>&1 && 19638 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19639 as_expr=expr 19640else 19641 as_expr=false 19642fi 19643 19644if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19645 as_basename=basename 19646else 19647 as_basename=false 19648fi 19649 19650if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19651 as_dirname=dirname 19652else 19653 as_dirname=false 19654fi 19655 19656as_me=`$as_basename -- "$0" || 19657$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19658 X"$0" : 'X\(//\)$' \| \ 19659 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19660$as_echo X/"$0" | 19661 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19662 s//\1/ 19663 q 19664 } 19665 /^X\/\(\/\/\)$/{ 19666 s//\1/ 19667 q 19668 } 19669 /^X\/\(\/\).*/{ 19670 s//\1/ 19671 q 19672 } 19673 s/.*/./; q'` 19674 19675# Avoid depending upon Character Ranges. 19676as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19677as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19678as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19679as_cr_digits='0123456789' 19680as_cr_alnum=$as_cr_Letters$as_cr_digits 19681 19682ECHO_C= ECHO_N= ECHO_T= 19683case `echo -n x` in #((((( 19684-n*) 19685 case `echo 'xy\c'` in 19686 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19687 xy) ECHO_C='\c';; 19688 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19689 ECHO_T=' ';; 19690 esac;; 19691*) 19692 ECHO_N='-n';; 19693esac 19694 19695rm -f conf$$ conf$$.exe conf$$.file 19696if test -d conf$$.dir; then 19697 rm -f conf$$.dir/conf$$.file 19698else 19699 rm -f conf$$.dir 19700 mkdir conf$$.dir 2>/dev/null 19701fi 19702if (echo >conf$$.file) 2>/dev/null; then 19703 if ln -s conf$$.file conf$$ 2>/dev/null; then 19704 as_ln_s='ln -s' 19705 # ... but there are two gotchas: 19706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19708 # In both cases, we have to default to `cp -p'. 19709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19710 as_ln_s='cp -p' 19711 elif ln conf$$.file conf$$ 2>/dev/null; then 19712 as_ln_s=ln 19713 else 19714 as_ln_s='cp -p' 19715 fi 19716else 19717 as_ln_s='cp -p' 19718fi 19719rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19720rmdir conf$$.dir 2>/dev/null 19721 19722 19723# as_fn_mkdir_p 19724# ------------- 19725# Create "$as_dir" as a directory, including parents if necessary. 19726as_fn_mkdir_p () 19727{ 19728 19729 case $as_dir in #( 19730 -*) as_dir=./$as_dir;; 19731 esac 19732 test -d "$as_dir" || eval $as_mkdir_p || { 19733 as_dirs= 19734 while :; do 19735 case $as_dir in #( 19736 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19737 *) as_qdir=$as_dir;; 19738 esac 19739 as_dirs="'$as_qdir' $as_dirs" 19740 as_dir=`$as_dirname -- "$as_dir" || 19741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19742 X"$as_dir" : 'X\(//\)[^/]' \| \ 19743 X"$as_dir" : 'X\(//\)$' \| \ 19744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19745$as_echo X"$as_dir" | 19746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19747 s//\1/ 19748 q 19749 } 19750 /^X\(\/\/\)[^/].*/{ 19751 s//\1/ 19752 q 19753 } 19754 /^X\(\/\/\)$/{ 19755 s//\1/ 19756 q 19757 } 19758 /^X\(\/\).*/{ 19759 s//\1/ 19760 q 19761 } 19762 s/.*/./; q'` 19763 test -d "$as_dir" && break 19764 done 19765 test -z "$as_dirs" || eval "mkdir $as_dirs" 19766 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19767 19768 19769} # as_fn_mkdir_p 19770if mkdir -p . 2>/dev/null; then 19771 as_mkdir_p='mkdir -p "$as_dir"' 19772else 19773 test -d ./-p && rmdir ./-p 19774 as_mkdir_p=false 19775fi 19776 19777if test -x / >/dev/null 2>&1; then 19778 as_test_x='test -x' 19779else 19780 if ls -dL / >/dev/null 2>&1; then 19781 as_ls_L_option=L 19782 else 19783 as_ls_L_option= 19784 fi 19785 as_test_x=' 19786 eval sh -c '\'' 19787 if test -d "$1"; then 19788 test -d "$1/."; 19789 else 19790 case $1 in #( 19791 -*)set "./$1";; 19792 esac; 19793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19794 ???[sx]*):;;*)false;;esac;fi 19795 '\'' sh 19796 ' 19797fi 19798as_executable_p=$as_test_x 19799 19800# Sed expression to map a string onto a valid CPP name. 19801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19802 19803# Sed expression to map a string onto a valid variable name. 19804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19805 19806 19807exec 6>&1 19808## ----------------------------------- ## 19809## Main body of $CONFIG_STATUS script. ## 19810## ----------------------------------- ## 19811_ASEOF 19812test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19813 19814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19815# Save the log message, to keep $0 and so on meaningful, and to 19816# report actual input values of CONFIG_FILES etc. instead of their 19817# values after options handling. 19818ac_log=" 19819This file was extended by libICE $as_me 1.0.9, which was 19820generated by GNU Autoconf 2.68. Invocation command line was 19821 19822 CONFIG_FILES = $CONFIG_FILES 19823 CONFIG_HEADERS = $CONFIG_HEADERS 19824 CONFIG_LINKS = $CONFIG_LINKS 19825 CONFIG_COMMANDS = $CONFIG_COMMANDS 19826 $ $0 $@ 19827 19828on `(hostname || uname -n) 2>/dev/null | sed 1q` 19829" 19830 19831_ACEOF 19832 19833case $ac_config_files in *" 19834"*) set x $ac_config_files; shift; ac_config_files=$*;; 19835esac 19836 19837case $ac_config_headers in *" 19838"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19839esac 19840 19841 19842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19843# Files that config.status was made for. 19844config_files="$ac_config_files" 19845config_headers="$ac_config_headers" 19846config_commands="$ac_config_commands" 19847 19848_ACEOF 19849 19850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19851ac_cs_usage="\ 19852\`$as_me' instantiates files and other configuration actions 19853from templates according to the current configuration. Unless the files 19854and actions are specified as TAGs, all are instantiated by default. 19855 19856Usage: $0 [OPTION]... [TAG]... 19857 19858 -h, --help print this help, then exit 19859 -V, --version print version number and configuration settings, then exit 19860 --config print configuration, then exit 19861 -q, --quiet, --silent 19862 do not print progress messages 19863 -d, --debug don't remove temporary files 19864 --recheck update $as_me by reconfiguring in the same conditions 19865 --file=FILE[:TEMPLATE] 19866 instantiate the configuration file FILE 19867 --header=FILE[:TEMPLATE] 19868 instantiate the configuration header FILE 19869 19870Configuration files: 19871$config_files 19872 19873Configuration headers: 19874$config_headers 19875 19876Configuration commands: 19877$config_commands 19878 19879Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19880 19881_ACEOF 19882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19883ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19884ac_cs_version="\\ 19885libICE config.status 1.0.9 19886configured by $0, generated by GNU Autoconf 2.68, 19887 with options \\"\$ac_cs_config\\" 19888 19889Copyright (C) 2010 Free Software Foundation, Inc. 19890This config.status script is free software; the Free Software Foundation 19891gives unlimited permission to copy, distribute and modify it." 19892 19893ac_pwd='$ac_pwd' 19894srcdir='$srcdir' 19895INSTALL='$INSTALL' 19896MKDIR_P='$MKDIR_P' 19897AWK='$AWK' 19898test -n "\$AWK" || AWK=awk 19899_ACEOF 19900 19901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19902# The default lists apply if the user does not specify any file. 19903ac_need_defaults=: 19904while test $# != 0 19905do 19906 case $1 in 19907 --*=?*) 19908 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19909 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19910 ac_shift=: 19911 ;; 19912 --*=) 19913 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19914 ac_optarg= 19915 ac_shift=: 19916 ;; 19917 *) 19918 ac_option=$1 19919 ac_optarg=$2 19920 ac_shift=shift 19921 ;; 19922 esac 19923 19924 case $ac_option in 19925 # Handling of the options. 19926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19927 ac_cs_recheck=: ;; 19928 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19929 $as_echo "$ac_cs_version"; exit ;; 19930 --config | --confi | --conf | --con | --co | --c ) 19931 $as_echo "$ac_cs_config"; exit ;; 19932 --debug | --debu | --deb | --de | --d | -d ) 19933 debug=: ;; 19934 --file | --fil | --fi | --f ) 19935 $ac_shift 19936 case $ac_optarg in 19937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19938 '') as_fn_error $? "missing file argument" ;; 19939 esac 19940 as_fn_append CONFIG_FILES " '$ac_optarg'" 19941 ac_need_defaults=false;; 19942 --header | --heade | --head | --hea ) 19943 $ac_shift 19944 case $ac_optarg in 19945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19946 esac 19947 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19948 ac_need_defaults=false;; 19949 --he | --h) 19950 # Conflict between --help and --header 19951 as_fn_error $? "ambiguous option: \`$1' 19952Try \`$0 --help' for more information.";; 19953 --help | --hel | -h ) 19954 $as_echo "$ac_cs_usage"; exit ;; 19955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19956 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19957 ac_cs_silent=: ;; 19958 19959 # This is an error. 19960 -*) as_fn_error $? "unrecognized option: \`$1' 19961Try \`$0 --help' for more information." ;; 19962 19963 *) as_fn_append ac_config_targets " $1" 19964 ac_need_defaults=false ;; 19965 19966 esac 19967 shift 19968done 19969 19970ac_configure_extra_args= 19971 19972if $ac_cs_silent; then 19973 exec 6>/dev/null 19974 ac_configure_extra_args="$ac_configure_extra_args --silent" 19975fi 19976 19977_ACEOF 19978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19979if \$ac_cs_recheck; then 19980 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19981 shift 19982 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19983 CONFIG_SHELL='$SHELL' 19984 export CONFIG_SHELL 19985 exec "\$@" 19986fi 19987 19988_ACEOF 19989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19990exec 5>>config.log 19991{ 19992 echo 19993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19994## Running $as_me. ## 19995_ASBOX 19996 $as_echo "$ac_log" 19997} >&5 19998 19999_ACEOF 20000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20001# 20002# INIT-COMMANDS 20003# 20004AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20005 20006 20007# The HP-UX ksh and POSIX shell print the target directory to stdout 20008# if CDPATH is set. 20009(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20010 20011sed_quote_subst='$sed_quote_subst' 20012double_quote_subst='$double_quote_subst' 20013delay_variable_subst='$delay_variable_subst' 20014macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20015macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20016enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20017enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20018pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20019enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20020SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20021ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20022PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20023host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20024host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20025host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20026build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20027build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20028build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20029SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20030Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20031GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20032EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20033FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20034LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20035NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20036LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20037max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20038ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20039exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20040lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20041lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20042lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20043lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20044lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20045reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20046reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20047OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20048deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20049file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20050file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20051want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20052DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20053sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20054AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20055AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20056archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20057STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20058RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20059old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20060old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20061old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20062lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20063CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20064CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20065compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20066GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20067lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20068lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20069lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20070lt_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"`' 20071nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20072lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20073objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20074MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20075lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20076lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20077lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20078lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20079lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20080need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20081MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20082DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20083NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20084LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20085OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20086OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20087libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20088shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20089extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20090archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20091enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20092export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20093whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20094compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20095old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20096old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20097archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20098archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20099module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20100module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20101with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20102allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20103no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20104hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20105hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20106hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20107hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20108hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20109hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20110hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20111inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20112link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20113always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20114export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20115exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20116include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20117prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20118postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20119file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20120variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20121need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20122need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20123version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20124runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20125shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20126shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20127libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20128library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20129soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20130install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20131postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20132postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20133finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20134finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20135hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20136sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20137sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20138hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20139enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20140enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20141enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20142old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20143striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20144 20145LTCC='$LTCC' 20146LTCFLAGS='$LTCFLAGS' 20147compiler='$compiler_DEFAULT' 20148 20149# A function that is used when there is no print builtin or printf. 20150func_fallback_echo () 20151{ 20152 eval 'cat <<_LTECHO_EOF 20153\$1 20154_LTECHO_EOF' 20155} 20156 20157# Quote evaled strings. 20158for var in SHELL \ 20159ECHO \ 20160PATH_SEPARATOR \ 20161SED \ 20162GREP \ 20163EGREP \ 20164FGREP \ 20165LD \ 20166NM \ 20167LN_S \ 20168lt_SP2NL \ 20169lt_NL2SP \ 20170reload_flag \ 20171OBJDUMP \ 20172deplibs_check_method \ 20173file_magic_cmd \ 20174file_magic_glob \ 20175want_nocaseglob \ 20176DLLTOOL \ 20177sharedlib_from_linklib_cmd \ 20178AR \ 20179AR_FLAGS \ 20180archiver_list_spec \ 20181STRIP \ 20182RANLIB \ 20183CC \ 20184CFLAGS \ 20185compiler \ 20186lt_cv_sys_global_symbol_pipe \ 20187lt_cv_sys_global_symbol_to_cdecl \ 20188lt_cv_sys_global_symbol_to_c_name_address \ 20189lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20190nm_file_list_spec \ 20191lt_prog_compiler_no_builtin_flag \ 20192lt_prog_compiler_pic \ 20193lt_prog_compiler_wl \ 20194lt_prog_compiler_static \ 20195lt_cv_prog_compiler_c_o \ 20196need_locks \ 20197MANIFEST_TOOL \ 20198DSYMUTIL \ 20199NMEDIT \ 20200LIPO \ 20201OTOOL \ 20202OTOOL64 \ 20203shrext_cmds \ 20204export_dynamic_flag_spec \ 20205whole_archive_flag_spec \ 20206compiler_needs_object \ 20207with_gnu_ld \ 20208allow_undefined_flag \ 20209no_undefined_flag \ 20210hardcode_libdir_flag_spec \ 20211hardcode_libdir_separator \ 20212exclude_expsyms \ 20213include_expsyms \ 20214file_list_spec \ 20215variables_saved_for_relink \ 20216libname_spec \ 20217library_names_spec \ 20218soname_spec \ 20219install_override_mode \ 20220finish_eval \ 20221old_striplib \ 20222striplib; do 20223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20224 *[\\\\\\\`\\"\\\$]*) 20225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20226 ;; 20227 *) 20228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20229 ;; 20230 esac 20231done 20232 20233# Double-quote double-evaled strings. 20234for var in reload_cmds \ 20235old_postinstall_cmds \ 20236old_postuninstall_cmds \ 20237old_archive_cmds \ 20238extract_expsyms_cmds \ 20239old_archive_from_new_cmds \ 20240old_archive_from_expsyms_cmds \ 20241archive_cmds \ 20242archive_expsym_cmds \ 20243module_cmds \ 20244module_expsym_cmds \ 20245export_symbols_cmds \ 20246prelink_cmds \ 20247postlink_cmds \ 20248postinstall_cmds \ 20249postuninstall_cmds \ 20250finish_cmds \ 20251sys_lib_search_path_spec \ 20252sys_lib_dlsearch_path_spec; do 20253 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20254 *[\\\\\\\`\\"\\\$]*) 20255 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20256 ;; 20257 *) 20258 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20259 ;; 20260 esac 20261done 20262 20263ac_aux_dir='$ac_aux_dir' 20264xsi_shell='$xsi_shell' 20265lt_shell_append='$lt_shell_append' 20266 20267# See if we are running on zsh, and set the options which allow our 20268# commands through without removal of \ escapes INIT. 20269if test -n "\${ZSH_VERSION+set}" ; then 20270 setopt NO_GLOB_SUBST 20271fi 20272 20273 20274 PACKAGE='$PACKAGE' 20275 VERSION='$VERSION' 20276 TIMESTAMP='$TIMESTAMP' 20277 RM='$RM' 20278 ofile='$ofile' 20279 20280 20281 20282 20283_ACEOF 20284 20285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20286 20287# Handling of arguments. 20288for ac_config_target in $ac_config_targets 20289do 20290 case $ac_config_target in 20291 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20292 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20293 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20294 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20295 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20296 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 20297 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20298 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;; 20299 20300 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20301 esac 20302done 20303 20304 20305# If the user did not use the arguments to specify the items to instantiate, 20306# then the envvar interface is used. Set only those that are not. 20307# We use the long form for the default assignment because of an extremely 20308# bizarre bug on SunOS 4.1.3. 20309if $ac_need_defaults; then 20310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20313fi 20314 20315# Have a temporary directory for convenience. Make it in the build tree 20316# simply because there is no reason against having it here, and in addition, 20317# creating and moving files from /tmp can sometimes cause problems. 20318# Hook for its removal unless debugging. 20319# Note that there is a small window in which the directory will not be cleaned: 20320# after its creation but before its name has been assigned to `$tmp'. 20321$debug || 20322{ 20323 tmp= ac_tmp= 20324 trap 'exit_status=$? 20325 : "${ac_tmp:=$tmp}" 20326 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20327' 0 20328 trap 'as_fn_exit 1' 1 2 13 15 20329} 20330# Create a (secure) tmp directory for tmp files. 20331 20332{ 20333 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20334 test -d "$tmp" 20335} || 20336{ 20337 tmp=./conf$$-$RANDOM 20338 (umask 077 && mkdir "$tmp") 20339} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20340ac_tmp=$tmp 20341 20342# Set up the scripts for CONFIG_FILES section. 20343# No need to generate them if there are no CONFIG_FILES. 20344# This happens for instance with `./config.status config.h'. 20345if test -n "$CONFIG_FILES"; then 20346 20347 20348ac_cr=`echo X | tr X '\015'` 20349# On cygwin, bash can eat \r inside `` if the user requested igncr. 20350# But we know of no other shell where ac_cr would be empty at this 20351# point, so we can use a bashism as a fallback. 20352if test "x$ac_cr" = x; then 20353 eval ac_cr=\$\'\\r\' 20354fi 20355ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20356if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20357 ac_cs_awk_cr='\\r' 20358else 20359 ac_cs_awk_cr=$ac_cr 20360fi 20361 20362echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20363_ACEOF 20364 20365 20366{ 20367 echo "cat >conf$$subs.awk <<_ACEOF" && 20368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20369 echo "_ACEOF" 20370} >conf$$subs.sh || 20371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20372ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20373ac_delim='%!_!# ' 20374for ac_last_try in false false false false false :; do 20375 . ./conf$$subs.sh || 20376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20377 20378 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20379 if test $ac_delim_n = $ac_delim_num; then 20380 break 20381 elif $ac_last_try; then 20382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20383 else 20384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20385 fi 20386done 20387rm -f conf$$subs.sh 20388 20389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20390cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20391_ACEOF 20392sed -n ' 20393h 20394s/^/S["/; s/!.*/"]=/ 20395p 20396g 20397s/^[^!]*!// 20398:repl 20399t repl 20400s/'"$ac_delim"'$// 20401t delim 20402:nl 20403h 20404s/\(.\{148\}\)..*/\1/ 20405t more1 20406s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20407p 20408n 20409b repl 20410:more1 20411s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20412p 20413g 20414s/.\{148\}// 20415t nl 20416:delim 20417h 20418s/\(.\{148\}\)..*/\1/ 20419t more2 20420s/["\\]/\\&/g; s/^/"/; s/$/"/ 20421p 20422b 20423:more2 20424s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20425p 20426g 20427s/.\{148\}// 20428t delim 20429' <conf$$subs.awk | sed ' 20430/^[^""]/{ 20431 N 20432 s/\n// 20433} 20434' >>$CONFIG_STATUS || ac_write_fail=1 20435rm -f conf$$subs.awk 20436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20437_ACAWK 20438cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20439 for (key in S) S_is_set[key] = 1 20440 FS = "" 20441 20442} 20443{ 20444 line = $ 0 20445 nfields = split(line, field, "@") 20446 substed = 0 20447 len = length(field[1]) 20448 for (i = 2; i < nfields; i++) { 20449 key = field[i] 20450 keylen = length(key) 20451 if (S_is_set[key]) { 20452 value = S[key] 20453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20454 len += length(value) + length(field[++i]) 20455 substed = 1 20456 } else 20457 len += 1 + keylen 20458 } 20459 20460 print line 20461} 20462 20463_ACAWK 20464_ACEOF 20465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20466if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20467 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20468else 20469 cat 20470fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20471 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20472_ACEOF 20473 20474# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20475# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20476# trailing colons and then remove the whole line if VPATH becomes empty 20477# (actually we leave an empty line to preserve line numbers). 20478if test "x$srcdir" = x.; then 20479 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20480h 20481s/// 20482s/^/:/ 20483s/[ ]*$/:/ 20484s/:\$(srcdir):/:/g 20485s/:\${srcdir}:/:/g 20486s/:@srcdir@:/:/g 20487s/^:*// 20488s/:*$// 20489x 20490s/\(=[ ]*\).*/\1/ 20491G 20492s/\n// 20493s/^[^=]*=[ ]*$// 20494}' 20495fi 20496 20497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20498fi # test -n "$CONFIG_FILES" 20499 20500# Set up the scripts for CONFIG_HEADERS section. 20501# No need to generate them if there are no CONFIG_HEADERS. 20502# This happens for instance with `./config.status Makefile'. 20503if test -n "$CONFIG_HEADERS"; then 20504cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20505BEGIN { 20506_ACEOF 20507 20508# Transform confdefs.h into an awk script `defines.awk', embedded as 20509# here-document in config.status, that substitutes the proper values into 20510# config.h.in to produce config.h. 20511 20512# Create a delimiter string that does not exist in confdefs.h, to ease 20513# handling of long lines. 20514ac_delim='%!_!# ' 20515for ac_last_try in false false :; do 20516 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20517 if test -z "$ac_tt"; then 20518 break 20519 elif $ac_last_try; then 20520 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20521 else 20522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20523 fi 20524done 20525 20526# For the awk script, D is an array of macro values keyed by name, 20527# likewise P contains macro parameters if any. Preserve backslash 20528# newline sequences. 20529 20530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20531sed -n ' 20532s/.\{148\}/&'"$ac_delim"'/g 20533t rset 20534:rset 20535s/^[ ]*#[ ]*define[ ][ ]*/ / 20536t def 20537d 20538:def 20539s/\\$// 20540t bsnl 20541s/["\\]/\\&/g 20542s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20543D["\1"]=" \3"/p 20544s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20545d 20546:bsnl 20547s/["\\]/\\&/g 20548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20549D["\1"]=" \3\\\\\\n"\\/p 20550t cont 20551s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20552t cont 20553d 20554:cont 20555n 20556s/.\{148\}/&'"$ac_delim"'/g 20557t clear 20558:clear 20559s/\\$// 20560t bsnlc 20561s/["\\]/\\&/g; s/^/"/; s/$/"/p 20562d 20563:bsnlc 20564s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20565b cont 20566' <confdefs.h | sed ' 20567s/'"$ac_delim"'/"\\\ 20568"/g' >>$CONFIG_STATUS || ac_write_fail=1 20569 20570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20571 for (key in D) D_is_set[key] = 1 20572 FS = "" 20573} 20574/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20575 line = \$ 0 20576 split(line, arg, " ") 20577 if (arg[1] == "#") { 20578 defundef = arg[2] 20579 mac1 = arg[3] 20580 } else { 20581 defundef = substr(arg[1], 2) 20582 mac1 = arg[2] 20583 } 20584 split(mac1, mac2, "(") #) 20585 macro = mac2[1] 20586 prefix = substr(line, 1, index(line, defundef) - 1) 20587 if (D_is_set[macro]) { 20588 # Preserve the white space surrounding the "#". 20589 print prefix "define", macro P[macro] D[macro] 20590 next 20591 } else { 20592 # Replace #undef with comments. This is necessary, for example, 20593 # in the case of _POSIX_SOURCE, which is predefined and required 20594 # on some systems where configure will not decide to define it. 20595 if (defundef == "undef") { 20596 print "/*", prefix defundef, macro, "*/" 20597 next 20598 } 20599 } 20600} 20601{ print } 20602_ACAWK 20603_ACEOF 20604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20605 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20606fi # test -n "$CONFIG_HEADERS" 20607 20608 20609eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20610shift 20611for ac_tag 20612do 20613 case $ac_tag in 20614 :[FHLC]) ac_mode=$ac_tag; continue;; 20615 esac 20616 case $ac_mode$ac_tag in 20617 :[FHL]*:*);; 20618 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20619 :[FH]-) ac_tag=-:-;; 20620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20621 esac 20622 ac_save_IFS=$IFS 20623 IFS=: 20624 set x $ac_tag 20625 IFS=$ac_save_IFS 20626 shift 20627 ac_file=$1 20628 shift 20629 20630 case $ac_mode in 20631 :L) ac_source=$1;; 20632 :[FH]) 20633 ac_file_inputs= 20634 for ac_f 20635 do 20636 case $ac_f in 20637 -) ac_f="$ac_tmp/stdin";; 20638 *) # Look for the file first in the build tree, then in the source tree 20639 # (if the path is not absolute). The absolute path cannot be DOS-style, 20640 # because $ac_f cannot contain `:'. 20641 test -f "$ac_f" || 20642 case $ac_f in 20643 [\\/$]*) false;; 20644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20645 esac || 20646 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20647 esac 20648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20649 as_fn_append ac_file_inputs " '$ac_f'" 20650 done 20651 20652 # Let's still pretend it is `configure' which instantiates (i.e., don't 20653 # use $as_me), people would be surprised to read: 20654 # /* config.h. Generated by config.status. */ 20655 configure_input='Generated from '` 20656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20657 `' by configure.' 20658 if test x"$ac_file" != x-; then 20659 configure_input="$ac_file. $configure_input" 20660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20661$as_echo "$as_me: creating $ac_file" >&6;} 20662 fi 20663 # Neutralize special characters interpreted by sed in replacement strings. 20664 case $configure_input in #( 20665 *\&* | *\|* | *\\* ) 20666 ac_sed_conf_input=`$as_echo "$configure_input" | 20667 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20668 *) ac_sed_conf_input=$configure_input;; 20669 esac 20670 20671 case $ac_tag in 20672 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20674 esac 20675 ;; 20676 esac 20677 20678 ac_dir=`$as_dirname -- "$ac_file" || 20679$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20680 X"$ac_file" : 'X\(//\)[^/]' \| \ 20681 X"$ac_file" : 'X\(//\)$' \| \ 20682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20683$as_echo X"$ac_file" | 20684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20685 s//\1/ 20686 q 20687 } 20688 /^X\(\/\/\)[^/].*/{ 20689 s//\1/ 20690 q 20691 } 20692 /^X\(\/\/\)$/{ 20693 s//\1/ 20694 q 20695 } 20696 /^X\(\/\).*/{ 20697 s//\1/ 20698 q 20699 } 20700 s/.*/./; q'` 20701 as_dir="$ac_dir"; as_fn_mkdir_p 20702 ac_builddir=. 20703 20704case "$ac_dir" in 20705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20706*) 20707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20708 # A ".." for each directory in $ac_dir_suffix. 20709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20710 case $ac_top_builddir_sub in 20711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20713 esac ;; 20714esac 20715ac_abs_top_builddir=$ac_pwd 20716ac_abs_builddir=$ac_pwd$ac_dir_suffix 20717# for backward compatibility: 20718ac_top_builddir=$ac_top_build_prefix 20719 20720case $srcdir in 20721 .) # We are building in place. 20722 ac_srcdir=. 20723 ac_top_srcdir=$ac_top_builddir_sub 20724 ac_abs_top_srcdir=$ac_pwd ;; 20725 [\\/]* | ?:[\\/]* ) # Absolute name. 20726 ac_srcdir=$srcdir$ac_dir_suffix; 20727 ac_top_srcdir=$srcdir 20728 ac_abs_top_srcdir=$srcdir ;; 20729 *) # Relative name. 20730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20731 ac_top_srcdir=$ac_top_build_prefix$srcdir 20732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20733esac 20734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20735 20736 20737 case $ac_mode in 20738 :F) 20739 # 20740 # CONFIG_FILE 20741 # 20742 20743 case $INSTALL in 20744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20746 esac 20747 ac_MKDIR_P=$MKDIR_P 20748 case $MKDIR_P in 20749 [\\/$]* | ?:[\\/]* ) ;; 20750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20751 esac 20752_ACEOF 20753 20754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20755# If the template does not know about datarootdir, expand it. 20756# FIXME: This hack should be removed a few years after 2.60. 20757ac_datarootdir_hack=; ac_datarootdir_seen= 20758ac_sed_dataroot=' 20759/datarootdir/ { 20760 p 20761 q 20762} 20763/@datadir@/p 20764/@docdir@/p 20765/@infodir@/p 20766/@localedir@/p 20767/@mandir@/p' 20768case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20769*datarootdir*) ac_datarootdir_seen=yes;; 20770*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20772$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20773_ACEOF 20774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20775 ac_datarootdir_hack=' 20776 s&@datadir@&$datadir&g 20777 s&@docdir@&$docdir&g 20778 s&@infodir@&$infodir&g 20779 s&@localedir@&$localedir&g 20780 s&@mandir@&$mandir&g 20781 s&\\\${datarootdir}&$datarootdir&g' ;; 20782esac 20783_ACEOF 20784 20785# Neutralize VPATH when `$srcdir' = `.'. 20786# Shell code in configure.ac might set extrasub. 20787# FIXME: do we really want to maintain this feature? 20788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20789ac_sed_extra="$ac_vpsub 20790$extrasub 20791_ACEOF 20792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20793:t 20794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20795s|@configure_input@|$ac_sed_conf_input|;t t 20796s&@top_builddir@&$ac_top_builddir_sub&;t t 20797s&@top_build_prefix@&$ac_top_build_prefix&;t t 20798s&@srcdir@&$ac_srcdir&;t t 20799s&@abs_srcdir@&$ac_abs_srcdir&;t t 20800s&@top_srcdir@&$ac_top_srcdir&;t t 20801s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20802s&@builddir@&$ac_builddir&;t t 20803s&@abs_builddir@&$ac_abs_builddir&;t t 20804s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20805s&@INSTALL@&$ac_INSTALL&;t t 20806s&@MKDIR_P@&$ac_MKDIR_P&;t t 20807$ac_datarootdir_hack 20808" 20809eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20810 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20811 20812test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20813 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20815 "$ac_tmp/out"`; test -z "$ac_out"; } && 20816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20817which seems to be undefined. Please make sure it is defined" >&5 20818$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20819which seems to be undefined. Please make sure it is defined" >&2;} 20820 20821 rm -f "$ac_tmp/stdin" 20822 case $ac_file in 20823 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20824 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20825 esac \ 20826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20827 ;; 20828 :H) 20829 # 20830 # CONFIG_HEADER 20831 # 20832 if test x"$ac_file" != x-; then 20833 { 20834 $as_echo "/* $configure_input */" \ 20835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20836 } >"$ac_tmp/config.h" \ 20837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20838 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20840$as_echo "$as_me: $ac_file is unchanged" >&6;} 20841 else 20842 rm -f "$ac_file" 20843 mv "$ac_tmp/config.h" "$ac_file" \ 20844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20845 fi 20846 else 20847 $as_echo "/* $configure_input */" \ 20848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20849 || as_fn_error $? "could not create -" "$LINENO" 5 20850 fi 20851# Compute "$ac_file"'s index in $config_headers. 20852_am_arg="$ac_file" 20853_am_stamp_count=1 20854for _am_header in $config_headers :; do 20855 case $_am_header in 20856 $_am_arg | $_am_arg:* ) 20857 break ;; 20858 * ) 20859 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20860 esac 20861done 20862echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20863$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20864 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20865 X"$_am_arg" : 'X\(//\)$' \| \ 20866 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20867$as_echo X"$_am_arg" | 20868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20869 s//\1/ 20870 q 20871 } 20872 /^X\(\/\/\)[^/].*/{ 20873 s//\1/ 20874 q 20875 } 20876 /^X\(\/\/\)$/{ 20877 s//\1/ 20878 q 20879 } 20880 /^X\(\/\).*/{ 20881 s//\1/ 20882 q 20883 } 20884 s/.*/./; q'`/stamp-h$_am_stamp_count 20885 ;; 20886 20887 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20888$as_echo "$as_me: executing $ac_file commands" >&6;} 20889 ;; 20890 esac 20891 20892 20893 case $ac_file$ac_mode in 20894 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20895 # Older Autoconf quotes --file arguments for eval, but not when files 20896 # are listed without --file. Let's play safe and only enable the eval 20897 # if we detect the quoting. 20898 case $CONFIG_FILES in 20899 *\'*) eval set x "$CONFIG_FILES" ;; 20900 *) set x $CONFIG_FILES ;; 20901 esac 20902 shift 20903 for mf 20904 do 20905 # Strip MF so we end up with the name of the file. 20906 mf=`echo "$mf" | sed -e 's/:.*$//'` 20907 # Check whether this is an Automake generated Makefile or not. 20908 # We used to match only the files named 'Makefile.in', but 20909 # some people rename them; so instead we look at the file content. 20910 # Grep'ing the first line is not enough: some people post-process 20911 # each Makefile.in and add a new line on top of each file to say so. 20912 # Grep'ing the whole file is not good either: AIX grep has a line 20913 # limit of 2048, but all sed's we know have understand at least 4000. 20914 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20915 dirpart=`$as_dirname -- "$mf" || 20916$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20917 X"$mf" : 'X\(//\)[^/]' \| \ 20918 X"$mf" : 'X\(//\)$' \| \ 20919 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20920$as_echo X"$mf" | 20921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20922 s//\1/ 20923 q 20924 } 20925 /^X\(\/\/\)[^/].*/{ 20926 s//\1/ 20927 q 20928 } 20929 /^X\(\/\/\)$/{ 20930 s//\1/ 20931 q 20932 } 20933 /^X\(\/\).*/{ 20934 s//\1/ 20935 q 20936 } 20937 s/.*/./; q'` 20938 else 20939 continue 20940 fi 20941 # Extract the definition of DEPDIR, am__include, and am__quote 20942 # from the Makefile without running 'make'. 20943 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20944 test -z "$DEPDIR" && continue 20945 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20946 test -z "$am__include" && continue 20947 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20948 # Find all dependency output files, they are included files with 20949 # $(DEPDIR) in their names. We invoke sed twice because it is the 20950 # simplest approach to changing $(DEPDIR) to its actual value in the 20951 # expansion. 20952 for file in `sed -n " 20953 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20954 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20955 # Make sure the directory exists. 20956 test -f "$dirpart/$file" && continue 20957 fdir=`$as_dirname -- "$file" || 20958$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20959 X"$file" : 'X\(//\)[^/]' \| \ 20960 X"$file" : 'X\(//\)$' \| \ 20961 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20962$as_echo X"$file" | 20963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20964 s//\1/ 20965 q 20966 } 20967 /^X\(\/\/\)[^/].*/{ 20968 s//\1/ 20969 q 20970 } 20971 /^X\(\/\/\)$/{ 20972 s//\1/ 20973 q 20974 } 20975 /^X\(\/\).*/{ 20976 s//\1/ 20977 q 20978 } 20979 s/.*/./; q'` 20980 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20981 # echo "creating $dirpart/$file" 20982 echo '# dummy' > "$dirpart/$file" 20983 done 20984 done 20985} 20986 ;; 20987 "libtool":C) 20988 20989 # See if we are running on zsh, and set the options which allow our 20990 # commands through without removal of \ escapes. 20991 if test -n "${ZSH_VERSION+set}" ; then 20992 setopt NO_GLOB_SUBST 20993 fi 20994 20995 cfgfile="${ofile}T" 20996 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20997 $RM "$cfgfile" 20998 20999 cat <<_LT_EOF >> "$cfgfile" 21000#! $SHELL 21001 21002# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21003# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21004# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21005# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21006# 21007# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21008# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21009# Foundation, Inc. 21010# Written by Gordon Matzigkeit, 1996 21011# 21012# This file is part of GNU Libtool. 21013# 21014# GNU Libtool is free software; you can redistribute it and/or 21015# modify it under the terms of the GNU General Public License as 21016# published by the Free Software Foundation; either version 2 of 21017# the License, or (at your option) any later version. 21018# 21019# As a special exception to the GNU General Public License, 21020# if you distribute this file as part of a program or library that 21021# is built using GNU Libtool, you may include this file under the 21022# same distribution terms that you use for the rest of that program. 21023# 21024# GNU Libtool is distributed in the hope that it will be useful, 21025# but WITHOUT ANY WARRANTY; without even the implied warranty of 21026# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21027# GNU General Public License for more details. 21028# 21029# You should have received a copy of the GNU General Public License 21030# along with GNU Libtool; see the file COPYING. If not, a copy 21031# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21032# obtained by writing to the Free Software Foundation, Inc., 21033# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21034 21035 21036# The names of the tagged configurations supported by this script. 21037available_tags="" 21038 21039# ### BEGIN LIBTOOL CONFIG 21040 21041# Which release of libtool.m4 was used? 21042macro_version=$macro_version 21043macro_revision=$macro_revision 21044 21045# Whether or not to build shared libraries. 21046build_libtool_libs=$enable_shared 21047 21048# Whether or not to build static libraries. 21049build_old_libs=$enable_static 21050 21051# What type of objects to build. 21052pic_mode=$pic_mode 21053 21054# Whether or not to optimize for fast installation. 21055fast_install=$enable_fast_install 21056 21057# Shell to use when invoking shell scripts. 21058SHELL=$lt_SHELL 21059 21060# An echo program that protects backslashes. 21061ECHO=$lt_ECHO 21062 21063# The PATH separator for the build system. 21064PATH_SEPARATOR=$lt_PATH_SEPARATOR 21065 21066# The host system. 21067host_alias=$host_alias 21068host=$host 21069host_os=$host_os 21070 21071# The build system. 21072build_alias=$build_alias 21073build=$build 21074build_os=$build_os 21075 21076# A sed program that does not truncate output. 21077SED=$lt_SED 21078 21079# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21080Xsed="\$SED -e 1s/^X//" 21081 21082# A grep program that handles long lines. 21083GREP=$lt_GREP 21084 21085# An ERE matcher. 21086EGREP=$lt_EGREP 21087 21088# A literal string matcher. 21089FGREP=$lt_FGREP 21090 21091# A BSD- or MS-compatible name lister. 21092NM=$lt_NM 21093 21094# Whether we need soft or hard links. 21095LN_S=$lt_LN_S 21096 21097# What is the maximum length of a command? 21098max_cmd_len=$max_cmd_len 21099 21100# Object file suffix (normally "o"). 21101objext=$ac_objext 21102 21103# Executable file suffix (normally ""). 21104exeext=$exeext 21105 21106# whether the shell understands "unset". 21107lt_unset=$lt_unset 21108 21109# turn spaces into newlines. 21110SP2NL=$lt_lt_SP2NL 21111 21112# turn newlines into spaces. 21113NL2SP=$lt_lt_NL2SP 21114 21115# convert \$build file names to \$host format. 21116to_host_file_cmd=$lt_cv_to_host_file_cmd 21117 21118# convert \$build files to toolchain format. 21119to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21120 21121# An object symbol dumper. 21122OBJDUMP=$lt_OBJDUMP 21123 21124# Method to check whether dependent libraries are shared objects. 21125deplibs_check_method=$lt_deplibs_check_method 21126 21127# Command to use when deplibs_check_method = "file_magic". 21128file_magic_cmd=$lt_file_magic_cmd 21129 21130# How to find potential files when deplibs_check_method = "file_magic". 21131file_magic_glob=$lt_file_magic_glob 21132 21133# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21134want_nocaseglob=$lt_want_nocaseglob 21135 21136# DLL creation program. 21137DLLTOOL=$lt_DLLTOOL 21138 21139# Command to associate shared and link libraries. 21140sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21141 21142# The archiver. 21143AR=$lt_AR 21144 21145# Flags to create an archive. 21146AR_FLAGS=$lt_AR_FLAGS 21147 21148# How to feed a file listing to the archiver. 21149archiver_list_spec=$lt_archiver_list_spec 21150 21151# A symbol stripping program. 21152STRIP=$lt_STRIP 21153 21154# Commands used to install an old-style archive. 21155RANLIB=$lt_RANLIB 21156old_postinstall_cmds=$lt_old_postinstall_cmds 21157old_postuninstall_cmds=$lt_old_postuninstall_cmds 21158 21159# Whether to use a lock for old archive extraction. 21160lock_old_archive_extraction=$lock_old_archive_extraction 21161 21162# A C compiler. 21163LTCC=$lt_CC 21164 21165# LTCC compiler flags. 21166LTCFLAGS=$lt_CFLAGS 21167 21168# Take the output of nm and produce a listing of raw symbols and C names. 21169global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21170 21171# Transform the output of nm in a proper C declaration. 21172global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21173 21174# Transform the output of nm in a C name address pair. 21175global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21176 21177# Transform the output of nm in a C name address pair when lib prefix is needed. 21178global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21179 21180# Specify filename containing input files for \$NM. 21181nm_file_list_spec=$lt_nm_file_list_spec 21182 21183# The root where to search for dependent libraries,and in which our libraries should be installed. 21184lt_sysroot=$lt_sysroot 21185 21186# The name of the directory that contains temporary libtool files. 21187objdir=$objdir 21188 21189# Used to examine libraries when file_magic_cmd begins with "file". 21190MAGIC_CMD=$MAGIC_CMD 21191 21192# Must we lock files when doing compilation? 21193need_locks=$lt_need_locks 21194 21195# Manifest tool. 21196MANIFEST_TOOL=$lt_MANIFEST_TOOL 21197 21198# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21199DSYMUTIL=$lt_DSYMUTIL 21200 21201# Tool to change global to local symbols on Mac OS X. 21202NMEDIT=$lt_NMEDIT 21203 21204# Tool to manipulate fat objects and archives on Mac OS X. 21205LIPO=$lt_LIPO 21206 21207# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21208OTOOL=$lt_OTOOL 21209 21210# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21211OTOOL64=$lt_OTOOL64 21212 21213# Old archive suffix (normally "a"). 21214libext=$libext 21215 21216# Shared library suffix (normally ".so"). 21217shrext_cmds=$lt_shrext_cmds 21218 21219# The commands to extract the exported symbol list from a shared archive. 21220extract_expsyms_cmds=$lt_extract_expsyms_cmds 21221 21222# Variables whose values should be saved in libtool wrapper scripts and 21223# restored at link time. 21224variables_saved_for_relink=$lt_variables_saved_for_relink 21225 21226# Do we need the "lib" prefix for modules? 21227need_lib_prefix=$need_lib_prefix 21228 21229# Do we need a version for libraries? 21230need_version=$need_version 21231 21232# Library versioning type. 21233version_type=$version_type 21234 21235# Shared library runtime path variable. 21236runpath_var=$runpath_var 21237 21238# Shared library path variable. 21239shlibpath_var=$shlibpath_var 21240 21241# Is shlibpath searched before the hard-coded library search path? 21242shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21243 21244# Format of library name prefix. 21245libname_spec=$lt_libname_spec 21246 21247# List of archive names. First name is the real one, the rest are links. 21248# The last name is the one that the linker finds with -lNAME 21249library_names_spec=$lt_library_names_spec 21250 21251# The coded name of the library, if different from the real name. 21252soname_spec=$lt_soname_spec 21253 21254# Permission mode override for installation of shared libraries. 21255install_override_mode=$lt_install_override_mode 21256 21257# Command to use after installation of a shared archive. 21258postinstall_cmds=$lt_postinstall_cmds 21259 21260# Command to use after uninstallation of a shared archive. 21261postuninstall_cmds=$lt_postuninstall_cmds 21262 21263# Commands used to finish a libtool library installation in a directory. 21264finish_cmds=$lt_finish_cmds 21265 21266# As "finish_cmds", except a single script fragment to be evaled but 21267# not shown. 21268finish_eval=$lt_finish_eval 21269 21270# Whether we should hardcode library paths into libraries. 21271hardcode_into_libs=$hardcode_into_libs 21272 21273# Compile-time system search path for libraries. 21274sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21275 21276# Run-time system search path for libraries. 21277sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21278 21279# Whether dlopen is supported. 21280dlopen_support=$enable_dlopen 21281 21282# Whether dlopen of programs is supported. 21283dlopen_self=$enable_dlopen_self 21284 21285# Whether dlopen of statically linked programs is supported. 21286dlopen_self_static=$enable_dlopen_self_static 21287 21288# Commands to strip libraries. 21289old_striplib=$lt_old_striplib 21290striplib=$lt_striplib 21291 21292 21293# The linker used to build libraries. 21294LD=$lt_LD 21295 21296# How to create reloadable object files. 21297reload_flag=$lt_reload_flag 21298reload_cmds=$lt_reload_cmds 21299 21300# Commands used to build an old-style archive. 21301old_archive_cmds=$lt_old_archive_cmds 21302 21303# A language specific compiler. 21304CC=$lt_compiler 21305 21306# Is the compiler the GNU compiler? 21307with_gcc=$GCC 21308 21309# Compiler flag to turn off builtin functions. 21310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21311 21312# Additional compiler flags for building library objects. 21313pic_flag=$lt_lt_prog_compiler_pic 21314 21315# How to pass a linker flag through the compiler. 21316wl=$lt_lt_prog_compiler_wl 21317 21318# Compiler flag to prevent dynamic linking. 21319link_static_flag=$lt_lt_prog_compiler_static 21320 21321# Does compiler simultaneously support -c and -o options? 21322compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21323 21324# Whether or not to add -lc for building shared libraries. 21325build_libtool_need_lc=$archive_cmds_need_lc 21326 21327# Whether or not to disallow shared libs when runtime libs are static. 21328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21329 21330# Compiler flag to allow reflexive dlopens. 21331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21332 21333# Compiler flag to generate shared objects directly from archives. 21334whole_archive_flag_spec=$lt_whole_archive_flag_spec 21335 21336# Whether the compiler copes with passing no objects directly. 21337compiler_needs_object=$lt_compiler_needs_object 21338 21339# Create an old-style archive from a shared archive. 21340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21341 21342# Create a temporary old-style archive to link instead of a shared archive. 21343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21344 21345# Commands used to build a shared archive. 21346archive_cmds=$lt_archive_cmds 21347archive_expsym_cmds=$lt_archive_expsym_cmds 21348 21349# Commands used to build a loadable module if different from building 21350# a shared archive. 21351module_cmds=$lt_module_cmds 21352module_expsym_cmds=$lt_module_expsym_cmds 21353 21354# Whether we are building with GNU ld or not. 21355with_gnu_ld=$lt_with_gnu_ld 21356 21357# Flag that allows shared libraries with undefined symbols to be built. 21358allow_undefined_flag=$lt_allow_undefined_flag 21359 21360# Flag that enforces no undefined symbols. 21361no_undefined_flag=$lt_no_undefined_flag 21362 21363# Flag to hardcode \$libdir into a binary during linking. 21364# This must work even if \$libdir does not exist 21365hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21366 21367# Whether we need a single "-rpath" flag with a separated argument. 21368hardcode_libdir_separator=$lt_hardcode_libdir_separator 21369 21370# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21371# DIR into the resulting binary. 21372hardcode_direct=$hardcode_direct 21373 21374# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21375# DIR into the resulting binary and the resulting library dependency is 21376# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21377# library is relocated. 21378hardcode_direct_absolute=$hardcode_direct_absolute 21379 21380# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21381# into the resulting binary. 21382hardcode_minus_L=$hardcode_minus_L 21383 21384# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21385# into the resulting binary. 21386hardcode_shlibpath_var=$hardcode_shlibpath_var 21387 21388# Set to "yes" if building a shared library automatically hardcodes DIR 21389# into the library and all subsequent libraries and executables linked 21390# against it. 21391hardcode_automatic=$hardcode_automatic 21392 21393# Set to yes if linker adds runtime paths of dependent libraries 21394# to runtime path list. 21395inherit_rpath=$inherit_rpath 21396 21397# Whether libtool must link a program against all its dependency libraries. 21398link_all_deplibs=$link_all_deplibs 21399 21400# Set to "yes" if exported symbols are required. 21401always_export_symbols=$always_export_symbols 21402 21403# The commands to list exported symbols. 21404export_symbols_cmds=$lt_export_symbols_cmds 21405 21406# Symbols that should not be listed in the preloaded symbols. 21407exclude_expsyms=$lt_exclude_expsyms 21408 21409# Symbols that must always be exported. 21410include_expsyms=$lt_include_expsyms 21411 21412# Commands necessary for linking programs (against libraries) with templates. 21413prelink_cmds=$lt_prelink_cmds 21414 21415# Commands necessary for finishing linking programs. 21416postlink_cmds=$lt_postlink_cmds 21417 21418# Specify filename containing input files. 21419file_list_spec=$lt_file_list_spec 21420 21421# How to hardcode a shared library path into an executable. 21422hardcode_action=$hardcode_action 21423 21424# ### END LIBTOOL CONFIG 21425 21426_LT_EOF 21427 21428 case $host_os in 21429 aix3*) 21430 cat <<\_LT_EOF >> "$cfgfile" 21431# AIX sometimes has problems with the GCC collect2 program. For some 21432# reason, if we set the COLLECT_NAMES environment variable, the problems 21433# vanish in a puff of smoke. 21434if test "X${COLLECT_NAMES+set}" != Xset; then 21435 COLLECT_NAMES= 21436 export COLLECT_NAMES 21437fi 21438_LT_EOF 21439 ;; 21440 esac 21441 21442 21443ltmain="$ac_aux_dir/ltmain.sh" 21444 21445 21446 # We use sed instead of cat because bash on DJGPP gets confused if 21447 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21448 # text mode, it properly converts lines to CR/LF. This bash problem 21449 # is reportedly fixed, but why not run on old versions too? 21450 sed '$q' "$ltmain" >> "$cfgfile" \ 21451 || (rm -f "$cfgfile"; exit 1) 21452 21453 if test x"$xsi_shell" = xyes; then 21454 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21455func_dirname ()\ 21456{\ 21457\ case ${1} in\ 21458\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21459\ * ) func_dirname_result="${3}" ;;\ 21460\ esac\ 21461} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21462 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21463 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21464test 0 -eq $? || _lt_function_replace_fail=: 21465 21466 21467 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21468func_basename ()\ 21469{\ 21470\ func_basename_result="${1##*/}"\ 21471} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21472 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21474test 0 -eq $? || _lt_function_replace_fail=: 21475 21476 21477 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21478func_dirname_and_basename ()\ 21479{\ 21480\ case ${1} in\ 21481\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21482\ * ) func_dirname_result="${3}" ;;\ 21483\ esac\ 21484\ func_basename_result="${1##*/}"\ 21485} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21486 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21488test 0 -eq $? || _lt_function_replace_fail=: 21489 21490 21491 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21492func_stripname ()\ 21493{\ 21494\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21495\ # positional parameters, so assign one to ordinary parameter first.\ 21496\ func_stripname_result=${3}\ 21497\ func_stripname_result=${func_stripname_result#"${1}"}\ 21498\ func_stripname_result=${func_stripname_result%"${2}"}\ 21499} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21500 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21502test 0 -eq $? || _lt_function_replace_fail=: 21503 21504 21505 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21506func_split_long_opt ()\ 21507{\ 21508\ func_split_long_opt_name=${1%%=*}\ 21509\ func_split_long_opt_arg=${1#*=}\ 21510} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21511 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21513test 0 -eq $? || _lt_function_replace_fail=: 21514 21515 21516 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21517func_split_short_opt ()\ 21518{\ 21519\ func_split_short_opt_arg=${1#??}\ 21520\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21521} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21522 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21524test 0 -eq $? || _lt_function_replace_fail=: 21525 21526 21527 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21528func_lo2o ()\ 21529{\ 21530\ case ${1} in\ 21531\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21532\ *) func_lo2o_result=${1} ;;\ 21533\ esac\ 21534} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21535 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21537test 0 -eq $? || _lt_function_replace_fail=: 21538 21539 21540 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21541func_xform ()\ 21542{\ 21543 func_xform_result=${1%.*}.lo\ 21544} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21545 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21547test 0 -eq $? || _lt_function_replace_fail=: 21548 21549 21550 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21551func_arith ()\ 21552{\ 21553 func_arith_result=$(( $* ))\ 21554} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21555 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21557test 0 -eq $? || _lt_function_replace_fail=: 21558 21559 21560 sed -e '/^func_len ()$/,/^} # func_len /c\ 21561func_len ()\ 21562{\ 21563 func_len_result=${#1}\ 21564} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21565 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21567test 0 -eq $? || _lt_function_replace_fail=: 21568 21569fi 21570 21571if test x"$lt_shell_append" = xyes; then 21572 sed -e '/^func_append ()$/,/^} # func_append /c\ 21573func_append ()\ 21574{\ 21575 eval "${1}+=\\${2}"\ 21576} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21577 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21579test 0 -eq $? || _lt_function_replace_fail=: 21580 21581 21582 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21583func_append_quoted ()\ 21584{\ 21585\ func_quote_for_eval "${2}"\ 21586\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21587} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21588 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21590test 0 -eq $? || _lt_function_replace_fail=: 21591 21592 21593 # Save a `func_append' function call where possible by direct use of '+=' 21594 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21595 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21597 test 0 -eq $? || _lt_function_replace_fail=: 21598else 21599 # Save a `func_append' function call even when '+=' is not available 21600 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21601 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21603 test 0 -eq $? || _lt_function_replace_fail=: 21604fi 21605 21606if test x"$_lt_function_replace_fail" = x":"; then 21607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21608$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21609fi 21610 21611 21612 mv -f "$cfgfile" "$ofile" || 21613 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21614 chmod +x "$ofile" 21615 21616 ;; 21617 21618 esac 21619done # for ac_tag 21620 21621 21622as_fn_exit 0 21623_ACEOF 21624ac_clean_files=$ac_clean_files_save 21625 21626test $ac_write_fail = 0 || 21627 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21628 21629 21630# configure is writing to config.log, and then calls config.status. 21631# config.status does its own redirection, appending to config.log. 21632# Unfortunately, on DOS this fails, as config.log is still kept open 21633# by configure, so config.status won't be able to write to it; its 21634# output is simply discarded. So we exec the FD to /dev/null, 21635# effectively closing config.log, so it can be properly (re)opened and 21636# appended to by config.status. When coming back to configure, we 21637# need to make the FD available again. 21638if test "$no_create" != yes; then 21639 ac_cs_success=: 21640 ac_config_status_args= 21641 test "$silent" = yes && 21642 ac_config_status_args="$ac_config_status_args --quiet" 21643 exec 5>/dev/null 21644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21645 exec 5>>config.log 21646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21647 # would make configure fail if this is the last instruction. 21648 $ac_cs_success || as_fn_exit 1 21649fi 21650if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21652$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21653fi 21654 21655