configure revision 862f5301
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXdmcp 1.1.1. 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 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || 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='libXdmcp' 633PACKAGE_TARNAME='libXdmcp' 634PACKAGE_VERSION='1.1.1' 635PACKAGE_STRING='libXdmcp 1.1.1' 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 687HASXDMAUTH_FALSE 688HASXDMAUTH_TRUE 689XDMCP_LIBS 690XDMCP_CFLAGS 691HAVE_STYLESHEETS_FALSE 692HAVE_STYLESHEETS_TRUE 693XSL_STYLESHEET 694STYLESHEET_SRCDIR 695XORG_SGML_PATH 696HAVE_XSLTPROC_FALSE 697HAVE_XSLTPROC_TRUE 698XSLTPROC 699HAVE_FOP_FALSE 700HAVE_FOP_TRUE 701FOP 702HAVE_XMLTO_FALSE 703HAVE_XMLTO_TRUE 704HAVE_XMLTO_TEXT_FALSE 705HAVE_XMLTO_TEXT_TRUE 706XMLTO 707ENABLE_DOCS_FALSE 708ENABLE_DOCS_TRUE 709AM_BACKSLASH 710AM_DEFAULT_VERBOSITY 711MAN_SUBSTS 712XORG_MAN_PAGE 713ADMIN_MAN_DIR 714DRIVER_MAN_DIR 715MISC_MAN_DIR 716FILE_MAN_DIR 717LIB_MAN_DIR 718APP_MAN_DIR 719ADMIN_MAN_SUFFIX 720DRIVER_MAN_SUFFIX 721MISC_MAN_SUFFIX 722FILE_MAN_SUFFIX 723LIB_MAN_SUFFIX 724APP_MAN_SUFFIX 725INSTALL_CMD 726PKG_CONFIG 727CHANGELOG_CMD 728STRICT_CFLAGS 729CWARNFLAGS 730BASE_CFLAGS 731CPP 732OTOOL64 733OTOOL 734LIPO 735NMEDIT 736DSYMUTIL 737MANIFEST_TOOL 738RANLIB 739ac_ct_AR 740AR 741LN_S 742NM 743ac_ct_DUMPBIN 744DUMPBIN 745LD 746FGREP 747EGREP 748GREP 749SED 750am__fastdepCC_FALSE 751am__fastdepCC_TRUE 752CCDEPMODE 753AMDEPBACKSLASH 754AMDEP_FALSE 755AMDEP_TRUE 756am__quote 757am__include 758DEPDIR 759OBJEXT 760EXEEXT 761ac_ct_CC 762CPPFLAGS 763LDFLAGS 764CFLAGS 765CC 766LIBTOOL 767OBJDUMP 768DLLTOOL 769AS 770host_os 771host_vendor 772host_cpu 773host 774build_os 775build_vendor 776build_cpu 777build 778MAINT 779MAINTAINER_MODE_FALSE 780MAINTAINER_MODE_TRUE 781am__untar 782am__tar 783AMTAR 784am__leading_dot 785SET_MAKE 786AWK 787mkdir_p 788MKDIR_P 789INSTALL_STRIP_PROGRAM 790STRIP 791install_sh 792MAKEINFO 793AUTOHEADER 794AUTOMAKE 795AUTOCONF 796ACLOCAL 797VERSION 798PACKAGE 799CYGPATH_W 800am__isrc 801INSTALL_DATA 802INSTALL_SCRIPT 803INSTALL_PROGRAM 804target_alias 805host_alias 806build_alias 807LIBS 808ECHO_T 809ECHO_N 810ECHO_C 811DEFS 812mandir 813localedir 814libdir 815psdir 816pdfdir 817dvidir 818htmldir 819infodir 820docdir 821oldincludedir 822includedir 823localstatedir 824sharedstatedir 825sysconfdir 826datadir 827datarootdir 828libexecdir 829sbindir 830bindir 831program_transform_name 832prefix 833exec_prefix 834PACKAGE_URL 835PACKAGE_BUGREPORT 836PACKAGE_STRING 837PACKAGE_VERSION 838PACKAGE_TARNAME 839PACKAGE_NAME 840PATH_SEPARATOR 841SHELL' 842ac_subst_files='' 843ac_user_opts=' 844enable_option_checking 845enable_maintainer_mode 846enable_shared 847enable_static 848with_pic 849enable_fast_install 850enable_dependency_tracking 851with_gnu_ld 852with_sysroot 853enable_libtool_lock 854enable_selective_werror 855enable_strict_compilation 856enable_silent_rules 857enable_docs 858with_xmlto 859with_fop 860with_xsltproc 861with_lint 862enable_lint_library 863' 864 ac_precious_vars='build_alias 865host_alias 866target_alias 867CC 868CFLAGS 869LDFLAGS 870LIBS 871CPPFLAGS 872CPP 873PKG_CONFIG 874XMLTO 875FOP 876XSLTPROC 877XDMCP_CFLAGS 878XDMCP_LIBS 879LINT 880LINT_FLAGS' 881 882 883# Initialize some variables set by options. 884ac_init_help= 885ac_init_version=false 886ac_unrecognized_opts= 887ac_unrecognized_sep= 888# The variables have the same names as the options, with 889# dashes changed to underlines. 890cache_file=/dev/null 891exec_prefix=NONE 892no_create= 893no_recursion= 894prefix=NONE 895program_prefix=NONE 896program_suffix=NONE 897program_transform_name=s,x,x, 898silent= 899site= 900srcdir= 901verbose= 902x_includes=NONE 903x_libraries=NONE 904 905# Installation directory options. 906# These are left unexpanded so users can "make install exec_prefix=/foo" 907# and all the variables that are supposed to be based on exec_prefix 908# by default will actually change. 909# Use braces instead of parens because sh, perl, etc. also accept them. 910# (The list follows the same order as the GNU Coding Standards.) 911bindir='${exec_prefix}/bin' 912sbindir='${exec_prefix}/sbin' 913libexecdir='${exec_prefix}/libexec' 914datarootdir='${prefix}/share' 915datadir='${datarootdir}' 916sysconfdir='${prefix}/etc' 917sharedstatedir='${prefix}/com' 918localstatedir='${prefix}/var' 919includedir='${prefix}/include' 920oldincludedir='/usr/include' 921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 922infodir='${datarootdir}/info' 923htmldir='${docdir}' 924dvidir='${docdir}' 925pdfdir='${docdir}' 926psdir='${docdir}' 927libdir='${exec_prefix}/lib' 928localedir='${datarootdir}/locale' 929mandir='${datarootdir}/man' 930 931ac_prev= 932ac_dashdash= 933for ac_option 934do 935 # If the previous option needs an argument, assign it. 936 if test -n "$ac_prev"; then 937 eval $ac_prev=\$ac_option 938 ac_prev= 939 continue 940 fi 941 942 case $ac_option in 943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 944 *=) ac_optarg= ;; 945 *) ac_optarg=yes ;; 946 esac 947 948 # Accept the important Cygnus configure options, so we can diagnose typos. 949 950 case $ac_dashdash$ac_option in 951 --) 952 ac_dashdash=yes ;; 953 954 -bindir | --bindir | --bindi | --bind | --bin | --bi) 955 ac_prev=bindir ;; 956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 957 bindir=$ac_optarg ;; 958 959 -build | --build | --buil | --bui | --bu) 960 ac_prev=build_alias ;; 961 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 962 build_alias=$ac_optarg ;; 963 964 -cache-file | --cache-file | --cache-fil | --cache-fi \ 965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 966 ac_prev=cache_file ;; 967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 969 cache_file=$ac_optarg ;; 970 971 --config-cache | -C) 972 cache_file=config.cache ;; 973 974 -datadir | --datadir | --datadi | --datad) 975 ac_prev=datadir ;; 976 -datadir=* | --datadir=* | --datadi=* | --datad=*) 977 datadir=$ac_optarg ;; 978 979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 980 | --dataroo | --dataro | --datar) 981 ac_prev=datarootdir ;; 982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 984 datarootdir=$ac_optarg ;; 985 986 -disable-* | --disable-*) 987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 988 # Reject names that are not valid shell variable names. 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 990 as_fn_error $? "invalid feature name: $ac_useropt" 991 ac_useropt_orig=$ac_useropt 992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 993 case $ac_user_opts in 994 *" 995"enable_$ac_useropt" 996"*) ;; 997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 998 ac_unrecognized_sep=', ';; 999 esac 1000 eval enable_$ac_useropt=no ;; 1001 1002 -docdir | --docdir | --docdi | --doc | --do) 1003 ac_prev=docdir ;; 1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1005 docdir=$ac_optarg ;; 1006 1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1008 ac_prev=dvidir ;; 1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1010 dvidir=$ac_optarg ;; 1011 1012 -enable-* | --enable-*) 1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1014 # Reject names that are not valid shell variable names. 1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1016 as_fn_error $? "invalid feature name: $ac_useropt" 1017 ac_useropt_orig=$ac_useropt 1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1019 case $ac_user_opts in 1020 *" 1021"enable_$ac_useropt" 1022"*) ;; 1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1024 ac_unrecognized_sep=', ';; 1025 esac 1026 eval enable_$ac_useropt=\$ac_optarg ;; 1027 1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1030 | --exec | --exe | --ex) 1031 ac_prev=exec_prefix ;; 1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1034 | --exec=* | --exe=* | --ex=*) 1035 exec_prefix=$ac_optarg ;; 1036 1037 -gas | --gas | --ga | --g) 1038 # Obsolete; use --with-gas. 1039 with_gas=yes ;; 1040 1041 -help | --help | --hel | --he | -h) 1042 ac_init_help=long ;; 1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1044 ac_init_help=recursive ;; 1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1046 ac_init_help=short ;; 1047 1048 -host | --host | --hos | --ho) 1049 ac_prev=host_alias ;; 1050 -host=* | --host=* | --hos=* | --ho=*) 1051 host_alias=$ac_optarg ;; 1052 1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1054 ac_prev=htmldir ;; 1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1056 | --ht=*) 1057 htmldir=$ac_optarg ;; 1058 1059 -includedir | --includedir | --includedi | --included | --include \ 1060 | --includ | --inclu | --incl | --inc) 1061 ac_prev=includedir ;; 1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1063 | --includ=* | --inclu=* | --incl=* | --inc=*) 1064 includedir=$ac_optarg ;; 1065 1066 -infodir | --infodir | --infodi | --infod | --info | --inf) 1067 ac_prev=infodir ;; 1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1069 infodir=$ac_optarg ;; 1070 1071 -libdir | --libdir | --libdi | --libd) 1072 ac_prev=libdir ;; 1073 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1074 libdir=$ac_optarg ;; 1075 1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1077 | --libexe | --libex | --libe) 1078 ac_prev=libexecdir ;; 1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1080 | --libexe=* | --libex=* | --libe=*) 1081 libexecdir=$ac_optarg ;; 1082 1083 -localedir | --localedir | --localedi | --localed | --locale) 1084 ac_prev=localedir ;; 1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1086 localedir=$ac_optarg ;; 1087 1088 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1089 | --localstate | --localstat | --localsta | --localst | --locals) 1090 ac_prev=localstatedir ;; 1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1093 localstatedir=$ac_optarg ;; 1094 1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1096 ac_prev=mandir ;; 1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1098 mandir=$ac_optarg ;; 1099 1100 -nfp | --nfp | --nf) 1101 # Obsolete; use --without-fp. 1102 with_fp=no ;; 1103 1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1105 | --no-cr | --no-c | -n) 1106 no_create=yes ;; 1107 1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1110 no_recursion=yes ;; 1111 1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1114 | --oldin | --oldi | --old | --ol | --o) 1115 ac_prev=oldincludedir ;; 1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1119 oldincludedir=$ac_optarg ;; 1120 1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1122 ac_prev=prefix ;; 1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1124 prefix=$ac_optarg ;; 1125 1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1127 | --program-pre | --program-pr | --program-p) 1128 ac_prev=program_prefix ;; 1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1131 program_prefix=$ac_optarg ;; 1132 1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1134 | --program-suf | --program-su | --program-s) 1135 ac_prev=program_suffix ;; 1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1138 program_suffix=$ac_optarg ;; 1139 1140 -program-transform-name | --program-transform-name \ 1141 | --program-transform-nam | --program-transform-na \ 1142 | --program-transform-n | --program-transform- \ 1143 | --program-transform | --program-transfor \ 1144 | --program-transfo | --program-transf \ 1145 | --program-trans | --program-tran \ 1146 | --progr-tra | --program-tr | --program-t) 1147 ac_prev=program_transform_name ;; 1148 -program-transform-name=* | --program-transform-name=* \ 1149 | --program-transform-nam=* | --program-transform-na=* \ 1150 | --program-transform-n=* | --program-transform-=* \ 1151 | --program-transform=* | --program-transfor=* \ 1152 | --program-transfo=* | --program-transf=* \ 1153 | --program-trans=* | --program-tran=* \ 1154 | --progr-tra=* | --program-tr=* | --program-t=*) 1155 program_transform_name=$ac_optarg ;; 1156 1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1158 ac_prev=pdfdir ;; 1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1160 pdfdir=$ac_optarg ;; 1161 1162 -psdir | --psdir | --psdi | --psd | --ps) 1163 ac_prev=psdir ;; 1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1165 psdir=$ac_optarg ;; 1166 1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1168 | -silent | --silent | --silen | --sile | --sil) 1169 silent=yes ;; 1170 1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1172 ac_prev=sbindir ;; 1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1174 | --sbi=* | --sb=*) 1175 sbindir=$ac_optarg ;; 1176 1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1179 | --sharedst | --shareds | --shared | --share | --shar \ 1180 | --sha | --sh) 1181 ac_prev=sharedstatedir ;; 1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1185 | --sha=* | --sh=*) 1186 sharedstatedir=$ac_optarg ;; 1187 1188 -site | --site | --sit) 1189 ac_prev=site ;; 1190 -site=* | --site=* | --sit=*) 1191 site=$ac_optarg ;; 1192 1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1194 ac_prev=srcdir ;; 1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1196 srcdir=$ac_optarg ;; 1197 1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1199 | --syscon | --sysco | --sysc | --sys | --sy) 1200 ac_prev=sysconfdir ;; 1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1203 sysconfdir=$ac_optarg ;; 1204 1205 -target | --target | --targe | --targ | --tar | --ta | --t) 1206 ac_prev=target_alias ;; 1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1208 target_alias=$ac_optarg ;; 1209 1210 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1211 verbose=yes ;; 1212 1213 -version | --version | --versio | --versi | --vers | -V) 1214 ac_init_version=: ;; 1215 1216 -with-* | --with-*) 1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1220 as_fn_error $? "invalid package name: $ac_useropt" 1221 ac_useropt_orig=$ac_useropt 1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1223 case $ac_user_opts in 1224 *" 1225"with_$ac_useropt" 1226"*) ;; 1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1228 ac_unrecognized_sep=', ';; 1229 esac 1230 eval with_$ac_useropt=\$ac_optarg ;; 1231 1232 -without-* | --without-*) 1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1234 # Reject names that are not valid shell variable names. 1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1236 as_fn_error $? "invalid package name: $ac_useropt" 1237 ac_useropt_orig=$ac_useropt 1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1239 case $ac_user_opts in 1240 *" 1241"with_$ac_useropt" 1242"*) ;; 1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1244 ac_unrecognized_sep=', ';; 1245 esac 1246 eval with_$ac_useropt=no ;; 1247 1248 --x) 1249 # Obsolete; use --with-x. 1250 with_x=yes ;; 1251 1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1253 | --x-incl | --x-inc | --x-in | --x-i) 1254 ac_prev=x_includes ;; 1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1257 x_includes=$ac_optarg ;; 1258 1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1261 ac_prev=x_libraries ;; 1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1264 x_libraries=$ac_optarg ;; 1265 1266 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1267Try \`$0 --help' for more information" 1268 ;; 1269 1270 *=*) 1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1272 # Reject names that are not valid shell variable names. 1273 case $ac_envvar in #( 1274 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1276 esac 1277 eval $ac_envvar=\$ac_optarg 1278 export $ac_envvar ;; 1279 1280 *) 1281 # FIXME: should be removed in autoconf 3.0. 1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1286 ;; 1287 1288 esac 1289done 1290 1291if test -n "$ac_prev"; then 1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1293 as_fn_error $? "missing argument to $ac_option" 1294fi 1295 1296if test -n "$ac_unrecognized_opts"; then 1297 case $enable_option_checking in 1298 no) ;; 1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1301 esac 1302fi 1303 1304# Check all directory arguments for consistency. 1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1306 datadir sysconfdir sharedstatedir localstatedir includedir \ 1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1308 libdir localedir mandir 1309do 1310 eval ac_val=\$$ac_var 1311 # Remove trailing slashes. 1312 case $ac_val in 1313 */ ) 1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1315 eval $ac_var=\$ac_val;; 1316 esac 1317 # Be sure to have absolute directory names. 1318 case $ac_val in 1319 [\\/$]* | ?:[\\/]* ) continue;; 1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1321 esac 1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1323done 1324 1325# There might be people who depend on the old broken behavior: `$host' 1326# used to hold the argument of --host etc. 1327# FIXME: To remove some day. 1328build=$build_alias 1329host=$host_alias 1330target=$target_alias 1331 1332# FIXME: To remove some day. 1333if test "x$host_alias" != x; then 1334 if test "x$build_alias" = x; then 1335 cross_compiling=maybe 1336 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1337 If a cross compiler is detected then cross compile mode will be used" >&2 1338 elif test "x$build_alias" != "x$host_alias"; then 1339 cross_compiling=yes 1340 fi 1341fi 1342 1343ac_tool_prefix= 1344test -n "$host_alias" && ac_tool_prefix=$host_alias- 1345 1346test "$silent" = yes && exec 6>/dev/null 1347 1348 1349ac_pwd=`pwd` && test -n "$ac_pwd" && 1350ac_ls_di=`ls -di .` && 1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1352 as_fn_error $? "working directory cannot be determined" 1353test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1354 as_fn_error $? "pwd does not report name of working directory" 1355 1356 1357# Find the source files, if location was not specified. 1358if test -z "$srcdir"; then 1359 ac_srcdir_defaulted=yes 1360 # Try the directory containing this script, then the parent directory. 1361 ac_confdir=`$as_dirname -- "$as_myself" || 1362$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1363 X"$as_myself" : 'X\(//\)[^/]' \| \ 1364 X"$as_myself" : 'X\(//\)$' \| \ 1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1366$as_echo X"$as_myself" | 1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)[^/].*/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\/\)$/{ 1376 s//\1/ 1377 q 1378 } 1379 /^X\(\/\).*/{ 1380 s//\1/ 1381 q 1382 } 1383 s/.*/./; q'` 1384 srcdir=$ac_confdir 1385 if test ! -r "$srcdir/$ac_unique_file"; then 1386 srcdir=.. 1387 fi 1388else 1389 ac_srcdir_defaulted=no 1390fi 1391if test ! -r "$srcdir/$ac_unique_file"; then 1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1394fi 1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1396ac_abs_confdir=`( 1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1398 pwd)` 1399# When building in place, set srcdir=. 1400if test "$ac_abs_confdir" = "$ac_pwd"; then 1401 srcdir=. 1402fi 1403# Remove unnecessary trailing slashes from srcdir. 1404# Double slashes in file names in object file debugging info 1405# mess up M-x gdb in Emacs. 1406case $srcdir in 1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1408esac 1409for ac_var in $ac_precious_vars; do 1410 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_env_${ac_var}_value=\$${ac_var} 1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1413 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1414done 1415 1416# 1417# Report the --help message. 1418# 1419if test "$ac_init_help" = "long"; then 1420 # Omit some internal or obsolete options to make the list less imposing. 1421 # This message is too long to be a string in the A/UX 3.1 sh. 1422 cat <<_ACEOF 1423\`configure' configures libXdmcp 1.1.1 to adapt to many kinds of systems. 1424 1425Usage: $0 [OPTION]... [VAR=VALUE]... 1426 1427To assign environment variables (e.g., CC, CFLAGS...), specify them as 1428VAR=VALUE. See below for descriptions of some of the useful variables. 1429 1430Defaults for the options are specified in brackets. 1431 1432Configuration: 1433 -h, --help display this help and exit 1434 --help=short display options specific to this package 1435 --help=recursive display the short help of all the included packages 1436 -V, --version display version information and exit 1437 -q, --quiet, --silent do not print \`checking ...' messages 1438 --cache-file=FILE cache test results in FILE [disabled] 1439 -C, --config-cache alias for \`--cache-file=config.cache' 1440 -n, --no-create do not create output files 1441 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1442 1443Installation directories: 1444 --prefix=PREFIX install architecture-independent files in PREFIX 1445 [$ac_default_prefix] 1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1447 [PREFIX] 1448 1449By default, \`make install' will install all the files in 1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1451an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1452for instance \`--prefix=\$HOME'. 1453 1454For better control, use the options below. 1455 1456Fine tuning of the installation directories: 1457 --bindir=DIR user executables [EPREFIX/bin] 1458 --sbindir=DIR system admin executables [EPREFIX/sbin] 1459 --libexecdir=DIR program executables [EPREFIX/libexec] 1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdmcp] 1472 --htmldir=DIR html documentation [DOCDIR] 1473 --dvidir=DIR dvi documentation [DOCDIR] 1474 --pdfdir=DIR pdf documentation [DOCDIR] 1475 --psdir=DIR ps documentation [DOCDIR] 1476_ACEOF 1477 1478 cat <<\_ACEOF 1479 1480Program names: 1481 --program-prefix=PREFIX prepend PREFIX to installed program names 1482 --program-suffix=SUFFIX append SUFFIX to installed program names 1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1484 1485System types: 1486 --build=BUILD configure for building on BUILD [guessed] 1487 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1488_ACEOF 1489fi 1490 1491if test -n "$ac_init_help"; then 1492 case $ac_init_help in 1493 short | recursive ) echo "Configuration of libXdmcp 1.1.1:";; 1494 esac 1495 cat <<\_ACEOF 1496 1497Optional Features: 1498 --disable-option-checking ignore unrecognized --enable/--with options 1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1501 --enable-maintainer-mode enable make rules and dependencies not useful 1502 (and sometimes confusing) to the casual installer 1503 --enable-shared[=PKGS] build shared libraries [default=yes] 1504 --enable-static[=PKGS] build static libraries [default=yes] 1505 --enable-fast-install[=PKGS] 1506 optimize for fast installation [default=yes] 1507 --disable-dependency-tracking speeds up one-time build 1508 --enable-dependency-tracking do not reject slow dependency extractors 1509 --disable-libtool-lock avoid locking (might break parallel builds) 1510 --disable-selective-werror 1511 Turn off selective compiler errors. (default: 1512 enabled) 1513 --enable-strict-compilation 1514 Enable all warnings from compiler and make them 1515 errors (default: disabled) 1516 --enable-silent-rules less verbose build output (undo: `make V=1') 1517 --disable-silent-rules verbose build output (undo: `make V=0') 1518 --enable-docs Enable building the documentation (default: yes) 1519 --enable-lint-library Create lint library (default: disabled) 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-pic try to use only PIC/non-PIC objects [default=use 1525 both] 1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1527 --with-sysroot=DIR Search for dependent libraries within DIR 1528 (or the compiler's sysroot if not specified). 1529 --with-xmlto Use xmlto to regenerate documentation (default: 1530 auto) 1531 --with-fop Use fop to regenerate documentation (default: auto) 1532 --with-xsltproc Use xsltproc for the transformation of XML documents 1533 (default: auto) 1534 --with-lint Use a lint-style source code checker (default: 1535 disabled) 1536 1537Some influential environment variables: 1538 CC C compiler command 1539 CFLAGS C compiler flags 1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1541 nonstandard directory <lib dir> 1542 LIBS libraries to pass to the linker, e.g. -l<library> 1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1544 you have headers in a nonstandard directory <include dir> 1545 CPP C preprocessor 1546 PKG_CONFIG path to pkg-config utility 1547 XMLTO Path to xmlto command 1548 FOP Path to fop command 1549 XSLTPROC Path to xsltproc command 1550 XDMCP_CFLAGS 1551 C compiler flags for XDMCP, overriding pkg-config 1552 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1553 LINT Path to a lint-style command 1554 LINT_FLAGS Flags for the lint-style command 1555 1556Use these variables to override the choices made by `configure' or to help 1557it to find libraries and programs with nonstandard names/locations. 1558 1559Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1560_ACEOF 1561ac_status=$? 1562fi 1563 1564if test "$ac_init_help" = "recursive"; then 1565 # If there are subdirs, report their specific --help. 1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1567 test -d "$ac_dir" || 1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1569 continue 1570 ac_builddir=. 1571 1572case "$ac_dir" in 1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1574*) 1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1576 # A ".." for each directory in $ac_dir_suffix. 1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1578 case $ac_top_builddir_sub in 1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1581 esac ;; 1582esac 1583ac_abs_top_builddir=$ac_pwd 1584ac_abs_builddir=$ac_pwd$ac_dir_suffix 1585# for backward compatibility: 1586ac_top_builddir=$ac_top_build_prefix 1587 1588case $srcdir in 1589 .) # We are building in place. 1590 ac_srcdir=. 1591 ac_top_srcdir=$ac_top_builddir_sub 1592 ac_abs_top_srcdir=$ac_pwd ;; 1593 [\\/]* | ?:[\\/]* ) # Absolute name. 1594 ac_srcdir=$srcdir$ac_dir_suffix; 1595 ac_top_srcdir=$srcdir 1596 ac_abs_top_srcdir=$srcdir ;; 1597 *) # Relative name. 1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1599 ac_top_srcdir=$ac_top_build_prefix$srcdir 1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1601esac 1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1603 1604 cd "$ac_dir" || { ac_status=$?; continue; } 1605 # Check for guested configure. 1606 if test -f "$ac_srcdir/configure.gnu"; then 1607 echo && 1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1609 elif test -f "$ac_srcdir/configure"; then 1610 echo && 1611 $SHELL "$ac_srcdir/configure" --help=recursive 1612 else 1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1614 fi || ac_status=$? 1615 cd "$ac_pwd" || { ac_status=$?; break; } 1616 done 1617fi 1618 1619test -n "$ac_init_help" && exit $ac_status 1620if $ac_init_version; then 1621 cat <<\_ACEOF 1622libXdmcp configure 1.1.1 1623generated by GNU Autoconf 2.68 1624 1625Copyright (C) 2010 Free Software Foundation, Inc. 1626This configure script is free software; the Free Software Foundation 1627gives unlimited permission to copy, distribute and modify it. 1628_ACEOF 1629 exit 1630fi 1631 1632## ------------------------ ## 1633## Autoconf initialization. ## 1634## ------------------------ ## 1635 1636# ac_fn_c_try_compile LINENO 1637# -------------------------- 1638# Try to compile conftest.$ac_ext, and return whether this succeeded. 1639ac_fn_c_try_compile () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 rm -f conftest.$ac_objext 1643 if { { ac_try="$ac_compile" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_compile") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { 1659 test -z "$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 } && test -s conftest.$ac_objext; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 as_fn_set_status $ac_retval 1671 1672} # ac_fn_c_try_compile 1673 1674# ac_fn_c_try_link LINENO 1675# ----------------------- 1676# Try to link conftest.$ac_ext, and return whether this succeeded. 1677ac_fn_c_try_link () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext conftest$ac_exeext 1681 if { { ac_try="$ac_link" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest$ac_exeext && { 1700 test "$cross_compiling" = yes || 1701 $as_test_x conftest$ac_exeext 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1712 # interfere with the next link command; also delete a directory that is 1713 # left behind by Apple's compiler. We do this before executing the actions. 1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_link 1719 1720# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists and can be compiled using the include files in 1723# INCLUDES, setting the cache variable VAR accordingly. 1724ac_fn_c_check_header_compile () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734$4 1735#include <$2> 1736_ACEOF 1737if ac_fn_c_try_compile "$LINENO"; then : 1738 eval "$3=yes" 1739else 1740 eval "$3=no" 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 1749} # ac_fn_c_check_header_compile 1750 1751# ac_fn_c_try_cpp LINENO 1752# ---------------------- 1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1754ac_fn_c_try_cpp () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if { { ac_try="$ac_cpp conftest.$ac_ext" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } > conftest.i && { 1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1774 test ! -s conftest.err 1775 }; then : 1776 ac_retval=0 1777else 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 1782fi 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786} # ac_fn_c_try_cpp 1787 1788# ac_fn_c_try_run LINENO 1789# ---------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1791# that executables *can* be run. 1792ac_fn_c_try_run () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>&5 1803 ac_status=$? 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1806 { { case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811$as_echo "$ac_try_echo"; } >&5 1812 (eval "$ac_try") 2>&5 1813 ac_status=$? 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; }; }; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: program exited with status $ac_status" >&5 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=$ac_status 1823fi 1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828} # ac_fn_c_try_run 1829 1830# ac_fn_c_check_func LINENO FUNC VAR 1831# ---------------------------------- 1832# Tests whether FUNC exists, setting the cache variable VAR accordingly 1833ac_fn_c_check_func () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1837$as_echo_n "checking for $2... " >&6; } 1838if eval \${$3+:} false; then : 1839 $as_echo_n "(cached) " >&6 1840else 1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1845#define $2 innocuous_$2 1846 1847/* System header to define __stub macros and hopefully few prototypes, 1848 which can conflict with char $2 (); below. 1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1850 <limits.h> exists even on freestanding compilers. */ 1851 1852#ifdef __STDC__ 1853# include <limits.h> 1854#else 1855# include <assert.h> 1856#endif 1857 1858#undef $2 1859 1860/* Override any GCC internal prototype to avoid an error. 1861 Use char because int might match the return type of a GCC 1862 builtin and then its argument prototype would still apply. */ 1863#ifdef __cplusplus 1864extern "C" 1865#endif 1866char $2 (); 1867/* The GNU C library defines this for functions which it implements 1868 to always fail with ENOSYS. Some functions are actually named 1869 something starting with __ and the normal name is an alias. */ 1870#if defined __stub_$2 || defined __stub___$2 1871choke me 1872#endif 1873 1874int 1875main () 1876{ 1877return $2 (); 1878 ; 1879 return 0; 1880} 1881_ACEOF 1882if ac_fn_c_try_link "$LINENO"; then : 1883 eval "$3=yes" 1884else 1885 eval "$3=no" 1886fi 1887rm -f core conftest.err conftest.$ac_objext \ 1888 conftest$ac_exeext conftest.$ac_ext 1889fi 1890eval ac_res=\$$3 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1892$as_echo "$ac_res" >&6; } 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_func 1896 1897# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1898# --------------------------------------------- 1899# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1900# accordingly. 1901ac_fn_c_check_decl () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 as_decl_name=`echo $2|sed 's/ *(.*//'` 1905 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1907$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1908if eval \${$3+:} false; then : 1909 $as_echo_n "(cached) " >&6 1910else 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1912/* end confdefs.h. */ 1913$4 1914int 1915main () 1916{ 1917#ifndef $as_decl_name 1918#ifdef __cplusplus 1919 (void) $as_decl_use; 1920#else 1921 (void) $as_decl_name; 1922#endif 1923#endif 1924 1925 ; 1926 return 0; 1927} 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 eval "$3=yes" 1931else 1932 eval "$3=no" 1933fi 1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1935fi 1936eval ac_res=\$$3 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1938$as_echo "$ac_res" >&6; } 1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1940 1941} # ac_fn_c_check_decl 1942cat >config.log <<_ACEOF 1943This file contains any messages produced by compilers while 1944running configure, to aid debugging if configure makes a mistake. 1945 1946It was created by libXdmcp $as_me 1.1.1, which was 1947generated by GNU Autoconf 2.68. Invocation command line was 1948 1949 $ $0 $@ 1950 1951_ACEOF 1952exec 5>>config.log 1953{ 1954cat <<_ASUNAME 1955## --------- ## 1956## Platform. ## 1957## --------- ## 1958 1959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1960uname -m = `(uname -m) 2>/dev/null || echo unknown` 1961uname -r = `(uname -r) 2>/dev/null || echo unknown` 1962uname -s = `(uname -s) 2>/dev/null || echo unknown` 1963uname -v = `(uname -v) 2>/dev/null || echo unknown` 1964 1965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1967 1968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1971/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1975 1976_ASUNAME 1977 1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1979for as_dir in $PATH 1980do 1981 IFS=$as_save_IFS 1982 test -z "$as_dir" && as_dir=. 1983 $as_echo "PATH: $as_dir" 1984 done 1985IFS=$as_save_IFS 1986 1987} >&5 1988 1989cat >&5 <<_ACEOF 1990 1991 1992## ----------- ## 1993## Core tests. ## 1994## ----------- ## 1995 1996_ACEOF 1997 1998 1999# Keep a trace of the command line. 2000# Strip out --no-create and --no-recursion so they do not pile up. 2001# Strip out --silent because we don't want to record it for future runs. 2002# Also quote any args containing shell meta-characters. 2003# Make two passes to allow for proper duplicate-argument suppression. 2004ac_configure_args= 2005ac_configure_args0= 2006ac_configure_args1= 2007ac_must_keep_next=false 2008for ac_pass in 1 2 2009do 2010 for ac_arg 2011 do 2012 case $ac_arg in 2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2015 | -silent | --silent | --silen | --sile | --sil) 2016 continue ;; 2017 *\'*) 2018 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2019 esac 2020 case $ac_pass in 2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2022 2) 2023 as_fn_append ac_configure_args1 " '$ac_arg'" 2024 if test $ac_must_keep_next = true; then 2025 ac_must_keep_next=false # Got value, back to normal. 2026 else 2027 case $ac_arg in 2028 *=* | --config-cache | -C | -disable-* | --disable-* \ 2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2031 | -with-* | --with-* | -without-* | --without-* | --x) 2032 case "$ac_configure_args0 " in 2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2034 esac 2035 ;; 2036 -* ) ac_must_keep_next=true ;; 2037 esac 2038 fi 2039 as_fn_append ac_configure_args " '$ac_arg'" 2040 ;; 2041 esac 2042 done 2043done 2044{ ac_configure_args0=; unset ac_configure_args0;} 2045{ ac_configure_args1=; unset ac_configure_args1;} 2046 2047# When interrupted or exit'd, cleanup temporary files, and complete 2048# config.log. We remove comments because anyway the quotes in there 2049# would cause problems or look ugly. 2050# WARNING: Use '\'' to represent an apostrophe within the trap. 2051# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2052trap 'exit_status=$? 2053 # Save into config.log some information that might help in debugging. 2054 { 2055 echo 2056 2057 $as_echo "## ---------------- ## 2058## Cache variables. ## 2059## ---------------- ##" 2060 echo 2061 # The following way of writing the cache mishandles newlines in values, 2062( 2063 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2064 eval ac_val=\$$ac_var 2065 case $ac_val in #( 2066 *${as_nl}*) 2067 case $ac_var in #( 2068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2069$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2070 esac 2071 case $ac_var in #( 2072 _ | IFS | as_nl) ;; #( 2073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2074 *) { eval $ac_var=; unset $ac_var;} ;; 2075 esac ;; 2076 esac 2077 done 2078 (set) 2>&1 | 2079 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2080 *${as_nl}ac_space=\ *) 2081 sed -n \ 2082 "s/'\''/'\''\\\\'\'''\''/g; 2083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2084 ;; #( 2085 *) 2086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2087 ;; 2088 esac | 2089 sort 2090) 2091 echo 2092 2093 $as_echo "## ----------------- ## 2094## Output variables. ## 2095## ----------------- ##" 2096 echo 2097 for ac_var in $ac_subst_vars 2098 do 2099 eval ac_val=\$$ac_var 2100 case $ac_val in 2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2102 esac 2103 $as_echo "$ac_var='\''$ac_val'\''" 2104 done | sort 2105 echo 2106 2107 if test -n "$ac_subst_files"; then 2108 $as_echo "## ------------------- ## 2109## File substitutions. ## 2110## ------------------- ##" 2111 echo 2112 for ac_var in $ac_subst_files 2113 do 2114 eval ac_val=\$$ac_var 2115 case $ac_val in 2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2117 esac 2118 $as_echo "$ac_var='\''$ac_val'\''" 2119 done | sort 2120 echo 2121 fi 2122 2123 if test -s confdefs.h; then 2124 $as_echo "## ----------- ## 2125## confdefs.h. ## 2126## ----------- ##" 2127 echo 2128 cat confdefs.h 2129 echo 2130 fi 2131 test "$ac_signal" != 0 && 2132 $as_echo "$as_me: caught signal $ac_signal" 2133 $as_echo "$as_me: exit $exit_status" 2134 } >&5 2135 rm -f core *.core core.conftest.* && 2136 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2137 exit $exit_status 2138' 0 2139for ac_signal in 1 2 13 15; do 2140 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2141done 2142ac_signal=0 2143 2144# confdefs.h avoids OS command line length limits that DEFS can exceed. 2145rm -f -r conftest* confdefs.h 2146 2147$as_echo "/* confdefs.h */" > confdefs.h 2148 2149# Predefined preprocessor variables. 2150 2151cat >>confdefs.h <<_ACEOF 2152#define PACKAGE_NAME "$PACKAGE_NAME" 2153_ACEOF 2154 2155cat >>confdefs.h <<_ACEOF 2156#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2157_ACEOF 2158 2159cat >>confdefs.h <<_ACEOF 2160#define PACKAGE_VERSION "$PACKAGE_VERSION" 2161_ACEOF 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_STRING "$PACKAGE_STRING" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_URL "$PACKAGE_URL" 2173_ACEOF 2174 2175 2176# Let the site file select an alternate cache file if it wants to. 2177# Prefer an explicitly selected file to automatically selected ones. 2178ac_site_file1=NONE 2179ac_site_file2=NONE 2180if test -n "$CONFIG_SITE"; then 2181 # We do not want a PATH search for config.site. 2182 case $CONFIG_SITE in #(( 2183 -*) ac_site_file1=./$CONFIG_SITE;; 2184 */*) ac_site_file1=$CONFIG_SITE;; 2185 *) ac_site_file1=./$CONFIG_SITE;; 2186 esac 2187elif test "x$prefix" != xNONE; then 2188 ac_site_file1=$prefix/share/config.site 2189 ac_site_file2=$prefix/etc/config.site 2190else 2191 ac_site_file1=$ac_default_prefix/share/config.site 2192 ac_site_file2=$ac_default_prefix/etc/config.site 2193fi 2194for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2195do 2196 test "x$ac_site_file" = xNONE && continue 2197 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2199$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2200 sed 's/^/| /' "$ac_site_file" >&5 2201 . "$ac_site_file" \ 2202 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2204as_fn_error $? "failed to load site script $ac_site_file 2205See \`config.log' for more details" "$LINENO" 5; } 2206 fi 2207done 2208 2209if test -r "$cache_file"; then 2210 # Some versions of bash will fail to source /dev/null (special files 2211 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2212 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2214$as_echo "$as_me: loading cache $cache_file" >&6;} 2215 case $cache_file in 2216 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2217 *) . "./$cache_file";; 2218 esac 2219 fi 2220else 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2222$as_echo "$as_me: creating cache $cache_file" >&6;} 2223 >$cache_file 2224fi 2225 2226# Check that the precious variables saved in the cache have kept the same 2227# value. 2228ac_cache_corrupted=false 2229for ac_var in $ac_precious_vars; do 2230 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2231 eval ac_new_set=\$ac_env_${ac_var}_set 2232 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2233 eval ac_new_val=\$ac_env_${ac_var}_value 2234 case $ac_old_set,$ac_new_set in 2235 set,) 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2237$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2238 ac_cache_corrupted=: ;; 2239 ,set) 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2241$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2242 ac_cache_corrupted=: ;; 2243 ,);; 2244 *) 2245 if test "x$ac_old_val" != "x$ac_new_val"; then 2246 # differences in whitespace do not lead to failure. 2247 ac_old_val_w=`echo x $ac_old_val` 2248 ac_new_val_w=`echo x $ac_new_val` 2249 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2251$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2252 ac_cache_corrupted=: 2253 else 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2255$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2256 eval $ac_var=\$ac_old_val 2257 fi 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2259$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2261$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2262 fi;; 2263 esac 2264 # Pass precious variables to config.status. 2265 if test "$ac_new_set" = set; then 2266 case $ac_new_val in 2267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2268 *) ac_arg=$ac_var=$ac_new_val ;; 2269 esac 2270 case " $ac_configure_args " in 2271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2272 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2273 esac 2274 fi 2275done 2276if $ac_cache_corrupted; then 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2280$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2281 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2282fi 2283## -------------------- ## 2284## Main body of script. ## 2285## -------------------- ## 2286 2287ac_ext=c 2288ac_cpp='$CPP $CPPFLAGS' 2289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2291ac_compiler_gnu=$ac_cv_c_compiler_gnu 2292 2293 2294 2295ac_config_headers="$ac_config_headers config.h" 2296 2297 2298# Initialize Automake 2299am__api_version='1.11' 2300 2301ac_aux_dir= 2302for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2303 if test -f "$ac_dir/install-sh"; then 2304 ac_aux_dir=$ac_dir 2305 ac_install_sh="$ac_aux_dir/install-sh -c" 2306 break 2307 elif test -f "$ac_dir/install.sh"; then 2308 ac_aux_dir=$ac_dir 2309 ac_install_sh="$ac_aux_dir/install.sh -c" 2310 break 2311 elif test -f "$ac_dir/shtool"; then 2312 ac_aux_dir=$ac_dir 2313 ac_install_sh="$ac_aux_dir/shtool install -c" 2314 break 2315 fi 2316done 2317if test -z "$ac_aux_dir"; then 2318 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2319fi 2320 2321# These three variables are undocumented and unsupported, 2322# and are intended to be withdrawn in a future Autoconf release. 2323# They can cause serious problems if a builder's source tree is in a directory 2324# whose full name contains unusual characters. 2325ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2326ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2327ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2328 2329 2330# Find a good install program. We prefer a C program (faster), 2331# so one script is as good as another. But avoid the broken or 2332# incompatible versions: 2333# SysV /etc/install, /usr/sbin/install 2334# SunOS /usr/etc/install 2335# IRIX /sbin/install 2336# AIX /bin/install 2337# AmigaOS /C/install, which installs bootblocks on floppy discs 2338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2339# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2341# OS/2's system install, which has a completely different semantic 2342# ./install, which can be erroneously created by make from ./install.sh. 2343# Reject install programs that cannot install multiple files. 2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2345$as_echo_n "checking for a BSD-compatible install... " >&6; } 2346if test -z "$INSTALL"; then 2347if ${ac_cv_path_install+:} false; then : 2348 $as_echo_n "(cached) " >&6 2349else 2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2351for as_dir in $PATH 2352do 2353 IFS=$as_save_IFS 2354 test -z "$as_dir" && as_dir=. 2355 # Account for people who put trailing slashes in PATH elements. 2356case $as_dir/ in #(( 2357 ./ | .// | /[cC]/* | \ 2358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2359 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2360 /usr/ucb/* ) ;; 2361 *) 2362 # OSF1 and SCO ODT 3.0 have their own names for install. 2363 # Don't use installbsd from OSF since it installs stuff as root 2364 # by default. 2365 for ac_prog in ginstall scoinst install; do 2366 for ac_exec_ext in '' $ac_executable_extensions; do 2367 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2368 if test $ac_prog = install && 2369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2370 # AIX install. It has an incompatible calling convention. 2371 : 2372 elif test $ac_prog = install && 2373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2374 # program-specific install script used by HP pwplus--don't use. 2375 : 2376 else 2377 rm -rf conftest.one conftest.two conftest.dir 2378 echo one > conftest.one 2379 echo two > conftest.two 2380 mkdir conftest.dir 2381 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2382 test -s conftest.one && test -s conftest.two && 2383 test -s conftest.dir/conftest.one && 2384 test -s conftest.dir/conftest.two 2385 then 2386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2387 break 3 2388 fi 2389 fi 2390 fi 2391 done 2392 done 2393 ;; 2394esac 2395 2396 done 2397IFS=$as_save_IFS 2398 2399rm -rf conftest.one conftest.two conftest.dir 2400 2401fi 2402 if test "${ac_cv_path_install+set}" = set; then 2403 INSTALL=$ac_cv_path_install 2404 else 2405 # As a last resort, use the slow shell script. Don't cache a 2406 # value for INSTALL within a source directory, because that will 2407 # break other packages using the cache if that directory is 2408 # removed, or if the value is a relative name. 2409 INSTALL=$ac_install_sh 2410 fi 2411fi 2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2413$as_echo "$INSTALL" >&6; } 2414 2415# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2416# It thinks the first close brace ends the variable substitution. 2417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2418 2419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2420 2421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2422 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2424$as_echo_n "checking whether build environment is sane... " >&6; } 2425# Just in case 2426sleep 1 2427echo timestamp > conftest.file 2428# Reject unsafe characters in $srcdir or the absolute working directory 2429# name. Accept space and tab only in the latter. 2430am_lf=' 2431' 2432case `pwd` in 2433 *[\\\"\#\$\&\'\`$am_lf]*) 2434 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2435esac 2436case $srcdir in 2437 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2438 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2439esac 2440 2441# Do `set' in a subshell so we don't clobber the current shell's 2442# arguments. Must try -L first in case configure is actually a 2443# symlink; some systems play weird games with the mod time of symlinks 2444# (eg FreeBSD returns the mod time of the symlink's containing 2445# directory). 2446if ( 2447 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2448 if test "$*" = "X"; then 2449 # -L didn't work. 2450 set X `ls -t "$srcdir/configure" conftest.file` 2451 fi 2452 rm -f conftest.file 2453 if test "$*" != "X $srcdir/configure conftest.file" \ 2454 && test "$*" != "X conftest.file $srcdir/configure"; then 2455 2456 # If neither matched, then we have a broken ls. This can happen 2457 # if, for instance, CONFIG_SHELL is bash and it inherits a 2458 # broken ls alias from the environment. This has actually 2459 # happened. Such a system could not be considered "sane". 2460 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2461alias in your environment" "$LINENO" 5 2462 fi 2463 2464 test "$2" = conftest.file 2465 ) 2466then 2467 # Ok. 2468 : 2469else 2470 as_fn_error $? "newly created file is older than distributed files! 2471Check your system clock" "$LINENO" 5 2472fi 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2474$as_echo "yes" >&6; } 2475test "$program_prefix" != NONE && 2476 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2477# Use a double $ so make ignores it. 2478test "$program_suffix" != NONE && 2479 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2480# Double any \ or $. 2481# By default was `s,x,x', remove it if useless. 2482ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2483program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2484 2485# expand $ac_aux_dir to an absolute path 2486am_aux_dir=`cd $ac_aux_dir && pwd` 2487 2488if test x"${MISSING+set}" != xset; then 2489 case $am_aux_dir in 2490 *\ * | *\ *) 2491 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2492 *) 2493 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2494 esac 2495fi 2496# Use eval to expand $SHELL 2497if eval "$MISSING --run true"; then 2498 am_missing_run="$MISSING --run " 2499else 2500 am_missing_run= 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2502$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2503fi 2504 2505if test x"${install_sh}" != xset; then 2506 case $am_aux_dir in 2507 *\ * | *\ *) 2508 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2509 *) 2510 install_sh="\${SHELL} $am_aux_dir/install-sh" 2511 esac 2512fi 2513 2514# Installed binaries are usually stripped using `strip' when the user 2515# run `make install-strip'. However `strip' might not be the right 2516# tool to use in cross-compilation environments, therefore Automake 2517# will honor the `STRIP' environment variable to overrule this program. 2518if test "$cross_compiling" != no; then 2519 if test -n "$ac_tool_prefix"; then 2520 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2521set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then : 2525 $as_echo_n "(cached) " >&6 2526else 2527 if test -n "$STRIP"; then 2528 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip" 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 2547STRIP=$ac_cv_prog_STRIP 2548if test -n "$STRIP"; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2550$as_echo "$STRIP" >&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_STRIP"; then 2559 ac_ct_STRIP=$STRIP 2560 # Extract the first word of "strip", so it can be a program name with args. 2561set dummy strip; 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_STRIP+:} false; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 if test -n "$ac_ct_STRIP"; then 2568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip" 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_STRIP=$ac_cv_prog_ac_ct_STRIP 2588if test -n "$ac_ct_STRIP"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2590$as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then 2597 STRIP=":" 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 STRIP=$ac_ct_STRIP 2606 fi 2607else 2608 STRIP="$ac_cv_prog_STRIP" 2609fi 2610 2611fi 2612INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2613 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2615$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2616if test -z "$MKDIR_P"; then 2617 if ${ac_cv_path_mkdir+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619else 2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2621for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2622do 2623 IFS=$as_save_IFS 2624 test -z "$as_dir" && as_dir=. 2625 for ac_prog in mkdir gmkdir; do 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2628 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2629 'mkdir (GNU coreutils) '* | \ 2630 'mkdir (coreutils) '* | \ 2631 'mkdir (fileutils) '4.1*) 2632 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2633 break 3;; 2634 esac 2635 done 2636 done 2637 done 2638IFS=$as_save_IFS 2639 2640fi 2641 2642 test -d ./--version && rmdir ./--version 2643 if test "${ac_cv_path_mkdir+set}" = set; then 2644 MKDIR_P="$ac_cv_path_mkdir -p" 2645 else 2646 # As a last resort, use the slow shell script. Don't cache a 2647 # value for MKDIR_P within a source directory, because that will 2648 # break other packages using the cache if that directory is 2649 # removed, or if the value is a relative name. 2650 MKDIR_P="$ac_install_sh -d" 2651 fi 2652fi 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2654$as_echo "$MKDIR_P" >&6; } 2655 2656mkdir_p="$MKDIR_P" 2657case $mkdir_p in 2658 [\\/$]* | ?:[\\/]*) ;; 2659 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2660esac 2661 2662for ac_prog in gawk mawk nawk awk 2663do 2664 # Extract the first word of "$ac_prog", so it can be a program name with args. 2665set dummy $ac_prog; ac_word=$2 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2667$as_echo_n "checking for $ac_word... " >&6; } 2668if ${ac_cv_prog_AWK+:} false; then : 2669 $as_echo_n "(cached) " >&6 2670else 2671 if test -n "$AWK"; then 2672 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2673else 2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2681 ac_cv_prog_AWK="$ac_prog" 2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2683 break 2 2684 fi 2685done 2686 done 2687IFS=$as_save_IFS 2688 2689fi 2690fi 2691AWK=$ac_cv_prog_AWK 2692if test -n "$AWK"; then 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2694$as_echo "$AWK" >&6; } 2695else 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2697$as_echo "no" >&6; } 2698fi 2699 2700 2701 test -n "$AWK" && break 2702done 2703 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2705$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2706set x ${MAKE-make} 2707ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2708if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 cat >conftest.make <<\_ACEOF 2712SHELL = /bin/sh 2713all: 2714 @echo '@@@%%%=$(MAKE)=@@@%%%' 2715_ACEOF 2716# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2717case `${MAKE-make} -f conftest.make 2>/dev/null` in 2718 *@@@%%%=?*=@@@%%%*) 2719 eval ac_cv_prog_make_${ac_make}_set=yes;; 2720 *) 2721 eval ac_cv_prog_make_${ac_make}_set=no;; 2722esac 2723rm -f conftest.make 2724fi 2725if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2727$as_echo "yes" >&6; } 2728 SET_MAKE= 2729else 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2731$as_echo "no" >&6; } 2732 SET_MAKE="MAKE=${MAKE-make}" 2733fi 2734 2735rm -rf .tst 2>/dev/null 2736mkdir .tst 2>/dev/null 2737if test -d .tst; then 2738 am__leading_dot=. 2739else 2740 am__leading_dot=_ 2741fi 2742rmdir .tst 2>/dev/null 2743 2744if test "`cd $srcdir && pwd`" != "`pwd`"; then 2745 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2746 # is not polluted with repeated "-I." 2747 am__isrc=' -I$(srcdir)' 2748 # test to see if srcdir already configured 2749 if test -f $srcdir/config.status; then 2750 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2751 fi 2752fi 2753 2754# test whether we have cygpath 2755if test -z "$CYGPATH_W"; then 2756 if (cygpath --version) >/dev/null 2>/dev/null; then 2757 CYGPATH_W='cygpath -w' 2758 else 2759 CYGPATH_W=echo 2760 fi 2761fi 2762 2763 2764# Define the identity of the package. 2765 PACKAGE='libXdmcp' 2766 VERSION='1.1.1' 2767 2768 2769cat >>confdefs.h <<_ACEOF 2770#define PACKAGE "$PACKAGE" 2771_ACEOF 2772 2773 2774cat >>confdefs.h <<_ACEOF 2775#define VERSION "$VERSION" 2776_ACEOF 2777 2778# Some tools Automake needs. 2779 2780ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2781 2782 2783AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2784 2785 2786AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2787 2788 2789AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2790 2791 2792MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2793 2794# We need awk for the "check" target. The system "awk" is bad on 2795# some platforms. 2796# Always define AMTAR for backward compatibility. 2797 2798AMTAR=${AMTAR-"${am_missing_run}tar"} 2799 2800am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2801 2802 2803 2804 2805 2806 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2808$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2809 # Check whether --enable-maintainer-mode was given. 2810if test "${enable_maintainer_mode+set}" = set; then : 2811 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2812else 2813 USE_MAINTAINER_MODE=no 2814fi 2815 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2817$as_echo "$USE_MAINTAINER_MODE" >&6; } 2818 if test $USE_MAINTAINER_MODE = yes; then 2819 MAINTAINER_MODE_TRUE= 2820 MAINTAINER_MODE_FALSE='#' 2821else 2822 MAINTAINER_MODE_TRUE='#' 2823 MAINTAINER_MODE_FALSE= 2824fi 2825 2826 MAINT=$MAINTAINER_MODE_TRUE 2827 2828 2829 2830# Initialize libtool 2831# Make sure we can run config.sub. 2832$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2833 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2834 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2836$as_echo_n "checking build system type... " >&6; } 2837if ${ac_cv_build+:} false; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 ac_build_alias=$build_alias 2841test "x$ac_build_alias" = x && 2842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2843test "x$ac_build_alias" = x && 2844 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2845ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2847 2848fi 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2850$as_echo "$ac_cv_build" >&6; } 2851case $ac_cv_build in 2852*-*-*) ;; 2853*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2854esac 2855build=$ac_cv_build 2856ac_save_IFS=$IFS; IFS='-' 2857set x $ac_cv_build 2858shift 2859build_cpu=$1 2860build_vendor=$2 2861shift; shift 2862# Remember, the first character of IFS is used to create $*, 2863# except with old shells: 2864build_os=$* 2865IFS=$ac_save_IFS 2866case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2867 2868 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2870$as_echo_n "checking host system type... " >&6; } 2871if ${ac_cv_host+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873else 2874 if test "x$host_alias" = x; then 2875 ac_cv_host=$ac_cv_build 2876else 2877 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2879fi 2880 2881fi 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2883$as_echo "$ac_cv_host" >&6; } 2884case $ac_cv_host in 2885*-*-*) ;; 2886*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2887esac 2888host=$ac_cv_host 2889ac_save_IFS=$IFS; IFS='-' 2890set x $ac_cv_host 2891shift 2892host_cpu=$1 2893host_vendor=$2 2894shift; shift 2895# Remember, the first character of IFS is used to create $*, 2896# except with old shells: 2897host_os=$* 2898IFS=$ac_save_IFS 2899case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2900 2901 2902enable_win32_dll=yes 2903 2904case $host in 2905*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 2906 if test -n "$ac_tool_prefix"; then 2907 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 2908set dummy ${ac_tool_prefix}as; ac_word=$2 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910$as_echo_n "checking for $ac_word... " >&6; } 2911if ${ac_cv_prog_AS+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 if test -n "$AS"; then 2915 ac_cv_prog_AS="$AS" # Let the user override the test. 2916else 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2924 ac_cv_prog_AS="${ac_tool_prefix}as" 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933fi 2934AS=$ac_cv_prog_AS 2935if test -n "$AS"; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 2937$as_echo "$AS" >&6; } 2938else 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940$as_echo "no" >&6; } 2941fi 2942 2943 2944fi 2945if test -z "$ac_cv_prog_AS"; then 2946 ac_ct_AS=$AS 2947 # Extract the first word of "as", so it can be a program name with args. 2948set dummy as; ac_word=$2 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950$as_echo_n "checking for $ac_word... " >&6; } 2951if ${ac_cv_prog_ac_ct_AS+:} false; then : 2952 $as_echo_n "(cached) " >&6 2953else 2954 if test -n "$ac_ct_AS"; then 2955 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 2956else 2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2958for as_dir in $PATH 2959do 2960 IFS=$as_save_IFS 2961 test -z "$as_dir" && as_dir=. 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2964 ac_cv_prog_ac_ct_AS="as" 2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968done 2969 done 2970IFS=$as_save_IFS 2971 2972fi 2973fi 2974ac_ct_AS=$ac_cv_prog_ac_ct_AS 2975if test -n "$ac_ct_AS"; then 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 2977$as_echo "$ac_ct_AS" >&6; } 2978else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 if test "x$ac_ct_AS" = x; then 2984 AS="false" 2985 else 2986 case $cross_compiling:$ac_tool_warned in 2987yes:) 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2990ac_tool_warned=yes ;; 2991esac 2992 AS=$ac_ct_AS 2993 fi 2994else 2995 AS="$ac_cv_prog_AS" 2996fi 2997 2998 if test -n "$ac_tool_prefix"; then 2999 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3000set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3002$as_echo_n "checking for $ac_word... " >&6; } 3003if ${ac_cv_prog_DLLTOOL+:} false; then : 3004 $as_echo_n "(cached) " >&6 3005else 3006 if test -n "$DLLTOOL"; then 3007 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3008else 3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3010for as_dir in $PATH 3011do 3012 IFS=$as_save_IFS 3013 test -z "$as_dir" && as_dir=. 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3016 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3018 break 2 3019 fi 3020done 3021 done 3022IFS=$as_save_IFS 3023 3024fi 3025fi 3026DLLTOOL=$ac_cv_prog_DLLTOOL 3027if test -n "$DLLTOOL"; then 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 3029$as_echo "$DLLTOOL" >&6; } 3030else 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032$as_echo "no" >&6; } 3033fi 3034 3035 3036fi 3037if test -z "$ac_cv_prog_DLLTOOL"; then 3038 ac_ct_DLLTOOL=$DLLTOOL 3039 # Extract the first word of "dlltool", so it can be a program name with args. 3040set dummy dlltool; ac_word=$2 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3042$as_echo_n "checking for $ac_word... " >&6; } 3043if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 3044 $as_echo_n "(cached) " >&6 3045else 3046 if test -n "$ac_ct_DLLTOOL"; then 3047 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3048else 3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050for as_dir in $PATH 3051do 3052 IFS=$as_save_IFS 3053 test -z "$as_dir" && as_dir=. 3054 for ac_exec_ext in '' $ac_executable_extensions; do 3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3056 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3058 break 2 3059 fi 3060done 3061 done 3062IFS=$as_save_IFS 3063 3064fi 3065fi 3066ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 3067if test -n "$ac_ct_DLLTOOL"; then 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 3069$as_echo "$ac_ct_DLLTOOL" >&6; } 3070else 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3072$as_echo "no" >&6; } 3073fi 3074 3075 if test "x$ac_ct_DLLTOOL" = x; then 3076 DLLTOOL="false" 3077 else 3078 case $cross_compiling:$ac_tool_warned in 3079yes:) 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3082ac_tool_warned=yes ;; 3083esac 3084 DLLTOOL=$ac_ct_DLLTOOL 3085 fi 3086else 3087 DLLTOOL="$ac_cv_prog_DLLTOOL" 3088fi 3089 3090 if test -n "$ac_tool_prefix"; then 3091 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3092set dummy ${ac_tool_prefix}objdump; ac_word=$2 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3094$as_echo_n "checking for $ac_word... " >&6; } 3095if ${ac_cv_prog_OBJDUMP+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 if test -n "$OBJDUMP"; then 3099 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3100else 3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3102for as_dir in $PATH 3103do 3104 IFS=$as_save_IFS 3105 test -z "$as_dir" && as_dir=. 3106 for ac_exec_ext in '' $ac_executable_extensions; do 3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3108 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3110 break 2 3111 fi 3112done 3113 done 3114IFS=$as_save_IFS 3115 3116fi 3117fi 3118OBJDUMP=$ac_cv_prog_OBJDUMP 3119if test -n "$OBJDUMP"; then 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 3121$as_echo "$OBJDUMP" >&6; } 3122else 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3124$as_echo "no" >&6; } 3125fi 3126 3127 3128fi 3129if test -z "$ac_cv_prog_OBJDUMP"; then 3130 ac_ct_OBJDUMP=$OBJDUMP 3131 # Extract the first word of "objdump", so it can be a program name with args. 3132set dummy objdump; ac_word=$2 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3134$as_echo_n "checking for $ac_word... " >&6; } 3135if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 3136 $as_echo_n "(cached) " >&6 3137else 3138 if test -n "$ac_ct_OBJDUMP"; then 3139 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 3140else 3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3142for as_dir in $PATH 3143do 3144 IFS=$as_save_IFS 3145 test -z "$as_dir" && as_dir=. 3146 for ac_exec_ext in '' $ac_executable_extensions; do 3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3148 ac_cv_prog_ac_ct_OBJDUMP="objdump" 3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3150 break 2 3151 fi 3152done 3153 done 3154IFS=$as_save_IFS 3155 3156fi 3157fi 3158ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 3159if test -n "$ac_ct_OBJDUMP"; then 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 3161$as_echo "$ac_ct_OBJDUMP" >&6; } 3162else 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164$as_echo "no" >&6; } 3165fi 3166 3167 if test "x$ac_ct_OBJDUMP" = x; then 3168 OBJDUMP="false" 3169 else 3170 case $cross_compiling:$ac_tool_warned in 3171yes:) 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3174ac_tool_warned=yes ;; 3175esac 3176 OBJDUMP=$ac_ct_OBJDUMP 3177 fi 3178else 3179 OBJDUMP="$ac_cv_prog_OBJDUMP" 3180fi 3181 3182 ;; 3183esac 3184 3185test -z "$AS" && AS=as 3186 3187 3188 3189 3190 3191test -z "$DLLTOOL" && DLLTOOL=dlltool 3192 3193 3194 3195 3196 3197test -z "$OBJDUMP" && OBJDUMP=objdump 3198 3199 3200 3201 3202 3203 3204 3205case `pwd` in 3206 *\ * | *\ *) 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3208$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3209esac 3210 3211 3212 3213macro_version='2.4' 3214macro_revision='1.3293' 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228ltmain="$ac_aux_dir/ltmain.sh" 3229 3230# Backslashify metacharacters that are still active within 3231# double-quoted strings. 3232sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3233 3234# Same as above, but do not quote variable references. 3235double_quote_subst='s/\(["`\\]\)/\\\1/g' 3236 3237# Sed substitution to delay expansion of an escaped shell variable in a 3238# double_quote_subst'ed string. 3239delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3240 3241# Sed substitution to delay expansion of an escaped single quote. 3242delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3243 3244# Sed substitution to avoid accidental globbing in evaled expressions 3245no_glob_subst='s/\*/\\\*/g' 3246 3247ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3248ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3249ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3250 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3252$as_echo_n "checking how to print strings... " >&6; } 3253# Test print first, because it will be a builtin if present. 3254if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3255 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3256 ECHO='print -r --' 3257elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3258 ECHO='printf %s\n' 3259else 3260 # Use this function as a fallback that always works. 3261 func_fallback_echo () 3262 { 3263 eval 'cat <<_LTECHO_EOF 3264$1 3265_LTECHO_EOF' 3266 } 3267 ECHO='func_fallback_echo' 3268fi 3269 3270# func_echo_all arg... 3271# Invoke $ECHO with all args, space-separated. 3272func_echo_all () 3273{ 3274 $ECHO "" 3275} 3276 3277case "$ECHO" in 3278 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3279$as_echo "printf" >&6; } ;; 3280 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3281$as_echo "print -r" >&6; } ;; 3282 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3283$as_echo "cat" >&6; } ;; 3284esac 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299DEPDIR="${am__leading_dot}deps" 3300 3301ac_config_commands="$ac_config_commands depfiles" 3302 3303 3304am_make=${MAKE-make} 3305cat > confinc << 'END' 3306am__doit: 3307 @echo this is the am__doit target 3308.PHONY: am__doit 3309END 3310# If we don't find an include directive, just comment out the code. 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3312$as_echo_n "checking for style of include used by $am_make... " >&6; } 3313am__include="#" 3314am__quote= 3315_am_result=none 3316# First try GNU make style include. 3317echo "include confinc" > confmf 3318# Ignore all kinds of additional output from `make'. 3319case `$am_make -s -f confmf 2> /dev/null` in #( 3320*the\ am__doit\ target*) 3321 am__include=include 3322 am__quote= 3323 _am_result=GNU 3324 ;; 3325esac 3326# Now try BSD make style include. 3327if test "$am__include" = "#"; then 3328 echo '.include "confinc"' > confmf 3329 case `$am_make -s -f confmf 2> /dev/null` in #( 3330 *the\ am__doit\ target*) 3331 am__include=.include 3332 am__quote="\"" 3333 _am_result=BSD 3334 ;; 3335 esac 3336fi 3337 3338 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3340$as_echo "$_am_result" >&6; } 3341rm -f confinc confmf 3342 3343# Check whether --enable-dependency-tracking was given. 3344if test "${enable_dependency_tracking+set}" = set; then : 3345 enableval=$enable_dependency_tracking; 3346fi 3347 3348if test "x$enable_dependency_tracking" != xno; then 3349 am_depcomp="$ac_aux_dir/depcomp" 3350 AMDEPBACKSLASH='\' 3351fi 3352 if test "x$enable_dependency_tracking" != xno; then 3353 AMDEP_TRUE= 3354 AMDEP_FALSE='#' 3355else 3356 AMDEP_TRUE='#' 3357 AMDEP_FALSE= 3358fi 3359 3360 3361ac_ext=c 3362ac_cpp='$CPP $CPPFLAGS' 3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3365ac_compiler_gnu=$ac_cv_c_compiler_gnu 3366if test -n "$ac_tool_prefix"; then 3367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3368set dummy ${ac_tool_prefix}gcc; ac_word=$2 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3370$as_echo_n "checking for $ac_word... " >&6; } 3371if ${ac_cv_prog_CC+:} false; then : 3372 $as_echo_n "(cached) " >&6 3373else 3374 if test -n "$CC"; then 3375 ac_cv_prog_CC="$CC" # Let the user override the test. 3376else 3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3378for as_dir in $PATH 3379do 3380 IFS=$as_save_IFS 3381 test -z "$as_dir" && as_dir=. 3382 for ac_exec_ext in '' $ac_executable_extensions; do 3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3384 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3386 break 2 3387 fi 3388done 3389 done 3390IFS=$as_save_IFS 3391 3392fi 3393fi 3394CC=$ac_cv_prog_CC 3395if test -n "$CC"; then 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3397$as_echo "$CC" >&6; } 3398else 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3400$as_echo "no" >&6; } 3401fi 3402 3403 3404fi 3405if test -z "$ac_cv_prog_CC"; then 3406 ac_ct_CC=$CC 3407 # Extract the first word of "gcc", so it can be a program name with args. 3408set dummy gcc; ac_word=$2 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3410$as_echo_n "checking for $ac_word... " >&6; } 3411if ${ac_cv_prog_ac_ct_CC+:} false; then : 3412 $as_echo_n "(cached) " >&6 3413else 3414 if test -n "$ac_ct_CC"; then 3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3416else 3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3418for as_dir in $PATH 3419do 3420 IFS=$as_save_IFS 3421 test -z "$as_dir" && as_dir=. 3422 for ac_exec_ext in '' $ac_executable_extensions; do 3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3424 ac_cv_prog_ac_ct_CC="gcc" 3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3426 break 2 3427 fi 3428done 3429 done 3430IFS=$as_save_IFS 3431 3432fi 3433fi 3434ac_ct_CC=$ac_cv_prog_ac_ct_CC 3435if test -n "$ac_ct_CC"; then 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3437$as_echo "$ac_ct_CC" >&6; } 3438else 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3440$as_echo "no" >&6; } 3441fi 3442 3443 if test "x$ac_ct_CC" = x; then 3444 CC="" 3445 else 3446 case $cross_compiling:$ac_tool_warned in 3447yes:) 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3450ac_tool_warned=yes ;; 3451esac 3452 CC=$ac_ct_CC 3453 fi 3454else 3455 CC="$ac_cv_prog_CC" 3456fi 3457 3458if test -z "$CC"; then 3459 if test -n "$ac_tool_prefix"; then 3460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3461set dummy ${ac_tool_prefix}cc; ac_word=$2 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3463$as_echo_n "checking for $ac_word... " >&6; } 3464if ${ac_cv_prog_CC+:} false; then : 3465 $as_echo_n "(cached) " >&6 3466else 3467 if test -n "$CC"; then 3468 ac_cv_prog_CC="$CC" # Let the user override the test. 3469else 3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471for as_dir in $PATH 3472do 3473 IFS=$as_save_IFS 3474 test -z "$as_dir" && as_dir=. 3475 for ac_exec_ext in '' $ac_executable_extensions; do 3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3477 ac_cv_prog_CC="${ac_tool_prefix}cc" 3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3479 break 2 3480 fi 3481done 3482 done 3483IFS=$as_save_IFS 3484 3485fi 3486fi 3487CC=$ac_cv_prog_CC 3488if test -n "$CC"; then 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3490$as_echo "$CC" >&6; } 3491else 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3493$as_echo "no" >&6; } 3494fi 3495 3496 3497 fi 3498fi 3499if test -z "$CC"; then 3500 # Extract the first word of "cc", so it can be a program name with args. 3501set dummy cc; ac_word=$2 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3503$as_echo_n "checking for $ac_word... " >&6; } 3504if ${ac_cv_prog_CC+:} false; then : 3505 $as_echo_n "(cached) " >&6 3506else 3507 if test -n "$CC"; then 3508 ac_cv_prog_CC="$CC" # Let the user override the test. 3509else 3510 ac_prog_rejected=no 3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3512for as_dir in $PATH 3513do 3514 IFS=$as_save_IFS 3515 test -z "$as_dir" && as_dir=. 3516 for ac_exec_ext in '' $ac_executable_extensions; do 3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3519 ac_prog_rejected=yes 3520 continue 3521 fi 3522 ac_cv_prog_CC="cc" 3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3524 break 2 3525 fi 3526done 3527 done 3528IFS=$as_save_IFS 3529 3530if test $ac_prog_rejected = yes; then 3531 # We found a bogon in the path, so make sure we never use it. 3532 set dummy $ac_cv_prog_CC 3533 shift 3534 if test $# != 0; then 3535 # We chose a different compiler from the bogus one. 3536 # However, it has the same basename, so the bogon will be chosen 3537 # first if we set CC to just the basename; use the full file name. 3538 shift 3539 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3540 fi 3541fi 3542fi 3543fi 3544CC=$ac_cv_prog_CC 3545if test -n "$CC"; then 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3547$as_echo "$CC" >&6; } 3548else 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3550$as_echo "no" >&6; } 3551fi 3552 3553 3554fi 3555if test -z "$CC"; then 3556 if test -n "$ac_tool_prefix"; then 3557 for ac_prog in cl.exe 3558 do 3559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3560set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3562$as_echo_n "checking for $ac_word... " >&6; } 3563if ${ac_cv_prog_CC+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 if test -n "$CC"; then 3567 ac_cv_prog_CC="$CC" # Let the user override the test. 3568else 3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3570for as_dir in $PATH 3571do 3572 IFS=$as_save_IFS 3573 test -z "$as_dir" && as_dir=. 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3578 break 2 3579 fi 3580done 3581 done 3582IFS=$as_save_IFS 3583 3584fi 3585fi 3586CC=$ac_cv_prog_CC 3587if test -n "$CC"; then 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3589$as_echo "$CC" >&6; } 3590else 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3592$as_echo "no" >&6; } 3593fi 3594 3595 3596 test -n "$CC" && break 3597 done 3598fi 3599if test -z "$CC"; then 3600 ac_ct_CC=$CC 3601 for ac_prog in cl.exe 3602do 3603 # Extract the first word of "$ac_prog", so it can be a program name with args. 3604set dummy $ac_prog; ac_word=$2 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3606$as_echo_n "checking for $ac_word... " >&6; } 3607if ${ac_cv_prog_ac_ct_CC+:} false; then : 3608 $as_echo_n "(cached) " >&6 3609else 3610 if test -n "$ac_ct_CC"; then 3611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3612else 3613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3614for as_dir in $PATH 3615do 3616 IFS=$as_save_IFS 3617 test -z "$as_dir" && as_dir=. 3618 for ac_exec_ext in '' $ac_executable_extensions; do 3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3620 ac_cv_prog_ac_ct_CC="$ac_prog" 3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3622 break 2 3623 fi 3624done 3625 done 3626IFS=$as_save_IFS 3627 3628fi 3629fi 3630ac_ct_CC=$ac_cv_prog_ac_ct_CC 3631if test -n "$ac_ct_CC"; then 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3633$as_echo "$ac_ct_CC" >&6; } 3634else 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3636$as_echo "no" >&6; } 3637fi 3638 3639 3640 test -n "$ac_ct_CC" && break 3641done 3642 3643 if test "x$ac_ct_CC" = x; then 3644 CC="" 3645 else 3646 case $cross_compiling:$ac_tool_warned in 3647yes:) 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3650ac_tool_warned=yes ;; 3651esac 3652 CC=$ac_ct_CC 3653 fi 3654fi 3655 3656fi 3657 3658 3659test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3661as_fn_error $? "no acceptable C compiler found in \$PATH 3662See \`config.log' for more details" "$LINENO" 5; } 3663 3664# Provide some information about the compiler. 3665$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3666set X $ac_compile 3667ac_compiler=$2 3668for ac_option in --version -v -V -qversion; do 3669 { { ac_try="$ac_compiler $ac_option >&5" 3670case "(($ac_try" in 3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3672 *) ac_try_echo=$ac_try;; 3673esac 3674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3675$as_echo "$ac_try_echo"; } >&5 3676 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3677 ac_status=$? 3678 if test -s conftest.err; then 3679 sed '10a\ 3680... rest of stderr output deleted ... 3681 10q' conftest.err >conftest.er1 3682 cat conftest.er1 >&5 3683 fi 3684 rm -f conftest.er1 conftest.err 3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3686 test $ac_status = 0; } 3687done 3688 3689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3690/* end confdefs.h. */ 3691 3692int 3693main () 3694{ 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700ac_clean_files_save=$ac_clean_files 3701ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3702# Try to create an executable without -o first, disregard a.out. 3703# It will help us diagnose broken compilers, and finding out an intuition 3704# of exeext. 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3706$as_echo_n "checking whether the C compiler works... " >&6; } 3707ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3708 3709# The possible output files: 3710ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3711 3712ac_rmfiles= 3713for ac_file in $ac_files 3714do 3715 case $ac_file in 3716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3717 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3718 esac 3719done 3720rm -f $ac_rmfiles 3721 3722if { { ac_try="$ac_link_default" 3723case "(($ac_try" in 3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3725 *) ac_try_echo=$ac_try;; 3726esac 3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3728$as_echo "$ac_try_echo"; } >&5 3729 (eval "$ac_link_default") 2>&5 3730 ac_status=$? 3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3732 test $ac_status = 0; }; then : 3733 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3734# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3735# in a Makefile. We should not override ac_cv_exeext if it was cached, 3736# so that the user can short-circuit this test for compilers unknown to 3737# Autoconf. 3738for ac_file in $ac_files '' 3739do 3740 test -f "$ac_file" || continue 3741 case $ac_file in 3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3743 ;; 3744 [ab].out ) 3745 # We found the default executable, but exeext='' is most 3746 # certainly right. 3747 break;; 3748 *.* ) 3749 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3750 then :; else 3751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3752 fi 3753 # We set ac_cv_exeext here because the later test for it is not 3754 # safe: cross compilers may not add the suffix if given an `-o' 3755 # argument, so we may need to know it at that point already. 3756 # Even if this section looks crufty: it has the advantage of 3757 # actually working. 3758 break;; 3759 * ) 3760 break;; 3761 esac 3762done 3763test "$ac_cv_exeext" = no && ac_cv_exeext= 3764 3765else 3766 ac_file='' 3767fi 3768if test -z "$ac_file"; then : 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3770$as_echo "no" >&6; } 3771$as_echo "$as_me: failed program was:" >&5 3772sed 's/^/| /' conftest.$ac_ext >&5 3773 3774{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3776as_fn_error 77 "C compiler cannot create executables 3777See \`config.log' for more details" "$LINENO" 5; } 3778else 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3780$as_echo "yes" >&6; } 3781fi 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3783$as_echo_n "checking for C compiler default output file name... " >&6; } 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3785$as_echo "$ac_file" >&6; } 3786ac_exeext=$ac_cv_exeext 3787 3788rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3789ac_clean_files=$ac_clean_files_save 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3791$as_echo_n "checking for suffix of executables... " >&6; } 3792if { { ac_try="$ac_link" 3793case "(($ac_try" in 3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3795 *) ac_try_echo=$ac_try;; 3796esac 3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3798$as_echo "$ac_try_echo"; } >&5 3799 (eval "$ac_link") 2>&5 3800 ac_status=$? 3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3802 test $ac_status = 0; }; then : 3803 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3804# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3805# work properly (i.e., refer to `conftest.exe'), while it won't with 3806# `rm'. 3807for ac_file in conftest.exe conftest conftest.*; do 3808 test -f "$ac_file" || continue 3809 case $ac_file in 3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3812 break;; 3813 * ) break;; 3814 esac 3815done 3816else 3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3819as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3820See \`config.log' for more details" "$LINENO" 5; } 3821fi 3822rm -f conftest conftest$ac_cv_exeext 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3824$as_echo "$ac_cv_exeext" >&6; } 3825 3826rm -f conftest.$ac_ext 3827EXEEXT=$ac_cv_exeext 3828ac_exeext=$EXEEXT 3829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831#include <stdio.h> 3832int 3833main () 3834{ 3835FILE *f = fopen ("conftest.out", "w"); 3836 return ferror (f) || fclose (f) != 0; 3837 3838 ; 3839 return 0; 3840} 3841_ACEOF 3842ac_clean_files="$ac_clean_files conftest.out" 3843# Check that the compiler produces executables we can run. If not, either 3844# the compiler is broken, or we cross compile. 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3846$as_echo_n "checking whether we are cross compiling... " >&6; } 3847if test "$cross_compiling" != yes; then 3848 { { ac_try="$ac_link" 3849case "(($ac_try" in 3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3851 *) ac_try_echo=$ac_try;; 3852esac 3853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3854$as_echo "$ac_try_echo"; } >&5 3855 (eval "$ac_link") 2>&5 3856 ac_status=$? 3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3858 test $ac_status = 0; } 3859 if { ac_try='./conftest$ac_cv_exeext' 3860 { { case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863esac 3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3865$as_echo "$ac_try_echo"; } >&5 3866 (eval "$ac_try") 2>&5 3867 ac_status=$? 3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3869 test $ac_status = 0; }; }; then 3870 cross_compiling=no 3871 else 3872 if test "$cross_compiling" = maybe; then 3873 cross_compiling=yes 3874 else 3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3877as_fn_error $? "cannot run C compiled programs. 3878If you meant to cross compile, use \`--host'. 3879See \`config.log' for more details" "$LINENO" 5; } 3880 fi 3881 fi 3882fi 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3884$as_echo "$cross_compiling" >&6; } 3885 3886rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3887ac_clean_files=$ac_clean_files_save 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3889$as_echo_n "checking for suffix of object files... " >&6; } 3890if ${ac_cv_objext+:} false; then : 3891 $as_echo_n "(cached) " >&6 3892else 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3894/* end confdefs.h. */ 3895 3896int 3897main () 3898{ 3899 3900 ; 3901 return 0; 3902} 3903_ACEOF 3904rm -f conftest.o conftest.obj 3905if { { ac_try="$ac_compile" 3906case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909esac 3910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3911$as_echo "$ac_try_echo"; } >&5 3912 (eval "$ac_compile") 2>&5 3913 ac_status=$? 3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3915 test $ac_status = 0; }; then : 3916 for ac_file in conftest.o conftest.obj conftest.*; do 3917 test -f "$ac_file" || continue; 3918 case $ac_file in 3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3921 break;; 3922 esac 3923done 3924else 3925 $as_echo "$as_me: failed program was:" >&5 3926sed 's/^/| /' conftest.$ac_ext >&5 3927 3928{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3930as_fn_error $? "cannot compute suffix of object files: cannot compile 3931See \`config.log' for more details" "$LINENO" 5; } 3932fi 3933rm -f conftest.$ac_cv_objext conftest.$ac_ext 3934fi 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3936$as_echo "$ac_cv_objext" >&6; } 3937OBJEXT=$ac_cv_objext 3938ac_objext=$OBJEXT 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3940$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3941if ${ac_cv_c_compiler_gnu+:} false; then : 3942 $as_echo_n "(cached) " >&6 3943else 3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3945/* end confdefs.h. */ 3946 3947int 3948main () 3949{ 3950#ifndef __GNUC__ 3951 choke me 3952#endif 3953 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958if ac_fn_c_try_compile "$LINENO"; then : 3959 ac_compiler_gnu=yes 3960else 3961 ac_compiler_gnu=no 3962fi 3963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3964ac_cv_c_compiler_gnu=$ac_compiler_gnu 3965 3966fi 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3968$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3969if test $ac_compiler_gnu = yes; then 3970 GCC=yes 3971else 3972 GCC= 3973fi 3974ac_test_CFLAGS=${CFLAGS+set} 3975ac_save_CFLAGS=$CFLAGS 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3977$as_echo_n "checking whether $CC accepts -g... " >&6; } 3978if ${ac_cv_prog_cc_g+:} false; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 ac_save_c_werror_flag=$ac_c_werror_flag 3982 ac_c_werror_flag=yes 3983 ac_cv_prog_cc_g=no 3984 CFLAGS="-g" 3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3986/* end confdefs.h. */ 3987 3988int 3989main () 3990{ 3991 3992 ; 3993 return 0; 3994} 3995_ACEOF 3996if ac_fn_c_try_compile "$LINENO"; then : 3997 ac_cv_prog_cc_g=yes 3998else 3999 CFLAGS="" 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003int 4004main () 4005{ 4006 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_compile "$LINENO"; then : 4012 4013else 4014 ac_c_werror_flag=$ac_save_c_werror_flag 4015 CFLAGS="-g" 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main () 4021{ 4022 4023 ; 4024 return 0; 4025} 4026_ACEOF 4027if ac_fn_c_try_compile "$LINENO"; then : 4028 ac_cv_prog_cc_g=yes 4029fi 4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4031fi 4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4033fi 4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4035 ac_c_werror_flag=$ac_save_c_werror_flag 4036fi 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4038$as_echo "$ac_cv_prog_cc_g" >&6; } 4039if test "$ac_test_CFLAGS" = set; then 4040 CFLAGS=$ac_save_CFLAGS 4041elif test $ac_cv_prog_cc_g = yes; then 4042 if test "$GCC" = yes; then 4043 CFLAGS="-g -O2" 4044 else 4045 CFLAGS="-g" 4046 fi 4047else 4048 if test "$GCC" = yes; then 4049 CFLAGS="-O2" 4050 else 4051 CFLAGS= 4052 fi 4053fi 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4055$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4056if ${ac_cv_prog_cc_c89+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 ac_cv_prog_cc_c89=no 4060ac_save_CC=$CC 4061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062/* end confdefs.h. */ 4063#include <stdarg.h> 4064#include <stdio.h> 4065#include <sys/types.h> 4066#include <sys/stat.h> 4067/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4068struct buf { int x; }; 4069FILE * (*rcsopen) (struct buf *, struct stat *, int); 4070static char *e (p, i) 4071 char **p; 4072 int i; 4073{ 4074 return p[i]; 4075} 4076static char *f (char * (*g) (char **, int), char **p, ...) 4077{ 4078 char *s; 4079 va_list v; 4080 va_start (v,p); 4081 s = g (p, va_arg (v,int)); 4082 va_end (v); 4083 return s; 4084} 4085 4086/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4087 function prototypes and stuff, but not '\xHH' hex character constants. 4088 These don't provoke an error unfortunately, instead are silently treated 4089 as 'x'. The following induces an error, until -std is added to get 4090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4091 array size at least. It's necessary to write '\x00'==0 to get something 4092 that's true only with -std. */ 4093int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4094 4095/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4096 inside strings and character constants. */ 4097#define FOO(x) 'x' 4098int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4099 4100int test (int i, double x); 4101struct s1 {int (*f) (int a);}; 4102struct s2 {int (*f) (double a);}; 4103int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4104int argc; 4105char **argv; 4106int 4107main () 4108{ 4109return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4116do 4117 CC="$ac_save_CC $ac_arg" 4118 if ac_fn_c_try_compile "$LINENO"; then : 4119 ac_cv_prog_cc_c89=$ac_arg 4120fi 4121rm -f core conftest.err conftest.$ac_objext 4122 test "x$ac_cv_prog_cc_c89" != "xno" && break 4123done 4124rm -f conftest.$ac_ext 4125CC=$ac_save_CC 4126 4127fi 4128# AC_CACHE_VAL 4129case "x$ac_cv_prog_cc_c89" in 4130 x) 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4132$as_echo "none needed" >&6; } ;; 4133 xno) 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4135$as_echo "unsupported" >&6; } ;; 4136 *) 4137 CC="$CC $ac_cv_prog_cc_c89" 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4139$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4140esac 4141if test "x$ac_cv_prog_cc_c89" != xno; then : 4142 4143fi 4144 4145ac_ext=c 4146ac_cpp='$CPP $CPPFLAGS' 4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4149ac_compiler_gnu=$ac_cv_c_compiler_gnu 4150 4151depcc="$CC" am_compiler_list= 4152 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4154$as_echo_n "checking dependency style of $depcc... " >&6; } 4155if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4156 $as_echo_n "(cached) " >&6 4157else 4158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4159 # We make a subdir and do the tests there. Otherwise we can end up 4160 # making bogus files that we don't know about and never remove. For 4161 # instance it was reported that on HP-UX the gcc test will end up 4162 # making a dummy file named `D' -- because `-MD' means `put the output 4163 # in D'. 4164 mkdir conftest.dir 4165 # Copy depcomp to subdir because otherwise we won't find it if we're 4166 # using a relative directory. 4167 cp "$am_depcomp" conftest.dir 4168 cd conftest.dir 4169 # We will build objects and dependencies in a subdirectory because 4170 # it helps to detect inapplicable dependency modes. For instance 4171 # both Tru64's cc and ICC support -MD to output dependencies as a 4172 # side effect of compilation, but ICC will put the dependencies in 4173 # the current directory while Tru64 will put them in the object 4174 # directory. 4175 mkdir sub 4176 4177 am_cv_CC_dependencies_compiler_type=none 4178 if test "$am_compiler_list" = ""; then 4179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4180 fi 4181 am__universal=false 4182 case " $depcc " in #( 4183 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4184 esac 4185 4186 for depmode in $am_compiler_list; do 4187 # Setup a source with many dependencies, because some compilers 4188 # like to wrap large dependency lists on column 80 (with \), and 4189 # we should not choose a depcomp mode which is confused by this. 4190 # 4191 # We need to recreate these files for each test, as the compiler may 4192 # overwrite some of them when testing with obscure command lines. 4193 # This happens at least with the AIX C compiler. 4194 : > sub/conftest.c 4195 for i in 1 2 3 4 5 6; do 4196 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4198 # Solaris 8's {/usr,}/bin/sh. 4199 touch sub/conftst$i.h 4200 done 4201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4202 4203 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4204 # mode. It turns out that the SunPro C++ compiler does not properly 4205 # handle `-M -o', and we need to detect this. Also, some Intel 4206 # versions had trouble with output in subdirs 4207 am__obj=sub/conftest.${OBJEXT-o} 4208 am__minus_obj="-o $am__obj" 4209 case $depmode in 4210 gcc) 4211 # This depmode causes a compiler race in universal mode. 4212 test "$am__universal" = false || continue 4213 ;; 4214 nosideeffect) 4215 # after this tag, mechanisms are not by side-effect, so they'll 4216 # only be used when explicitly requested 4217 if test "x$enable_dependency_tracking" = xyes; then 4218 continue 4219 else 4220 break 4221 fi 4222 ;; 4223 msvisualcpp | msvcmsys) 4224 # This compiler won't grok `-c -o', but also, the minuso test has 4225 # not run yet. These depmodes are late enough in the game, and 4226 # so weak that their functioning should not be impacted. 4227 am__obj=conftest.${OBJEXT-o} 4228 am__minus_obj= 4229 ;; 4230 none) break ;; 4231 esac 4232 if depmode=$depmode \ 4233 source=sub/conftest.c object=$am__obj \ 4234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4236 >/dev/null 2>conftest.err && 4237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4241 # icc doesn't choke on unknown options, it will just issue warnings 4242 # or remarks (even with -Werror). So we grep stderr for any message 4243 # that says an option was ignored or not supported. 4244 # When given -MP, icc 7.0 and 7.1 complain thusly: 4245 # icc: Command line warning: ignoring option '-M'; no argument required 4246 # The diagnosis changed in icc 8.0: 4247 # icc: Command line remark: option '-MP' not supported 4248 if (grep 'ignoring option' conftest.err || 4249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4250 am_cv_CC_dependencies_compiler_type=$depmode 4251 break 4252 fi 4253 fi 4254 done 4255 4256 cd .. 4257 rm -rf conftest.dir 4258else 4259 am_cv_CC_dependencies_compiler_type=none 4260fi 4261 4262fi 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4264$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4265CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4266 4267 if 4268 test "x$enable_dependency_tracking" != xno \ 4269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4270 am__fastdepCC_TRUE= 4271 am__fastdepCC_FALSE='#' 4272else 4273 am__fastdepCC_TRUE='#' 4274 am__fastdepCC_FALSE= 4275fi 4276 4277 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4279$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4280if ${ac_cv_path_SED+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4284 for ac_i in 1 2 3 4 5 6 7; do 4285 ac_script="$ac_script$as_nl$ac_script" 4286 done 4287 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4288 { ac_script=; unset ac_script;} 4289 if test -z "$SED"; then 4290 ac_path_SED_found=false 4291 # Loop through the user's path and test for each of PROGNAME-LIST 4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4293for as_dir in $PATH 4294do 4295 IFS=$as_save_IFS 4296 test -z "$as_dir" && as_dir=. 4297 for ac_prog in sed gsed; do 4298 for ac_exec_ext in '' $ac_executable_extensions; do 4299 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4300 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4301# Check for GNU ac_path_SED and select it if it is found. 4302 # Check for GNU $ac_path_SED 4303case `"$ac_path_SED" --version 2>&1` in 4304*GNU*) 4305 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4306*) 4307 ac_count=0 4308 $as_echo_n 0123456789 >"conftest.in" 4309 while : 4310 do 4311 cat "conftest.in" "conftest.in" >"conftest.tmp" 4312 mv "conftest.tmp" "conftest.in" 4313 cp "conftest.in" "conftest.nl" 4314 $as_echo '' >> "conftest.nl" 4315 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4317 as_fn_arith $ac_count + 1 && ac_count=$as_val 4318 if test $ac_count -gt ${ac_path_SED_max-0}; then 4319 # Best one so far, save it but keep looking for a better one 4320 ac_cv_path_SED="$ac_path_SED" 4321 ac_path_SED_max=$ac_count 4322 fi 4323 # 10*(2^10) chars as input seems more than enough 4324 test $ac_count -gt 10 && break 4325 done 4326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4327esac 4328 4329 $ac_path_SED_found && break 3 4330 done 4331 done 4332 done 4333IFS=$as_save_IFS 4334 if test -z "$ac_cv_path_SED"; then 4335 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4336 fi 4337else 4338 ac_cv_path_SED=$SED 4339fi 4340 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4343$as_echo "$ac_cv_path_SED" >&6; } 4344 SED="$ac_cv_path_SED" 4345 rm -f conftest.sed 4346 4347test -z "$SED" && SED=sed 4348Xsed="$SED -e 1s/^X//" 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4361$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4362if ${ac_cv_path_GREP+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 if test -z "$GREP"; then 4366 ac_path_GREP_found=false 4367 # Loop through the user's path and test for each of PROGNAME-LIST 4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4370do 4371 IFS=$as_save_IFS 4372 test -z "$as_dir" && as_dir=. 4373 for ac_prog in grep ggrep; do 4374 for ac_exec_ext in '' $ac_executable_extensions; do 4375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4377# Check for GNU ac_path_GREP and select it if it is found. 4378 # Check for GNU $ac_path_GREP 4379case `"$ac_path_GREP" --version 2>&1` in 4380*GNU*) 4381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4382*) 4383 ac_count=0 4384 $as_echo_n 0123456789 >"conftest.in" 4385 while : 4386 do 4387 cat "conftest.in" "conftest.in" >"conftest.tmp" 4388 mv "conftest.tmp" "conftest.in" 4389 cp "conftest.in" "conftest.nl" 4390 $as_echo 'GREP' >> "conftest.nl" 4391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4393 as_fn_arith $ac_count + 1 && ac_count=$as_val 4394 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4395 # Best one so far, save it but keep looking for a better one 4396 ac_cv_path_GREP="$ac_path_GREP" 4397 ac_path_GREP_max=$ac_count 4398 fi 4399 # 10*(2^10) chars as input seems more than enough 4400 test $ac_count -gt 10 && break 4401 done 4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4403esac 4404 4405 $ac_path_GREP_found && break 3 4406 done 4407 done 4408 done 4409IFS=$as_save_IFS 4410 if test -z "$ac_cv_path_GREP"; then 4411 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4412 fi 4413else 4414 ac_cv_path_GREP=$GREP 4415fi 4416 4417fi 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4419$as_echo "$ac_cv_path_GREP" >&6; } 4420 GREP="$ac_cv_path_GREP" 4421 4422 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4424$as_echo_n "checking for egrep... " >&6; } 4425if ${ac_cv_path_EGREP+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4429 then ac_cv_path_EGREP="$GREP -E" 4430 else 4431 if test -z "$EGREP"; then 4432 ac_path_EGREP_found=false 4433 # Loop through the user's path and test for each of PROGNAME-LIST 4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4435for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4436do 4437 IFS=$as_save_IFS 4438 test -z "$as_dir" && as_dir=. 4439 for ac_prog in egrep; do 4440 for ac_exec_ext in '' $ac_executable_extensions; do 4441 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4442 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4443# Check for GNU ac_path_EGREP and select it if it is found. 4444 # Check for GNU $ac_path_EGREP 4445case `"$ac_path_EGREP" --version 2>&1` in 4446*GNU*) 4447 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4448*) 4449 ac_count=0 4450 $as_echo_n 0123456789 >"conftest.in" 4451 while : 4452 do 4453 cat "conftest.in" "conftest.in" >"conftest.tmp" 4454 mv "conftest.tmp" "conftest.in" 4455 cp "conftest.in" "conftest.nl" 4456 $as_echo 'EGREP' >> "conftest.nl" 4457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4459 as_fn_arith $ac_count + 1 && ac_count=$as_val 4460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4461 # Best one so far, save it but keep looking for a better one 4462 ac_cv_path_EGREP="$ac_path_EGREP" 4463 ac_path_EGREP_max=$ac_count 4464 fi 4465 # 10*(2^10) chars as input seems more than enough 4466 test $ac_count -gt 10 && break 4467 done 4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4469esac 4470 4471 $ac_path_EGREP_found && break 3 4472 done 4473 done 4474 done 4475IFS=$as_save_IFS 4476 if test -z "$ac_cv_path_EGREP"; then 4477 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4478 fi 4479else 4480 ac_cv_path_EGREP=$EGREP 4481fi 4482 4483 fi 4484fi 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4486$as_echo "$ac_cv_path_EGREP" >&6; } 4487 EGREP="$ac_cv_path_EGREP" 4488 4489 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4491$as_echo_n "checking for fgrep... " >&6; } 4492if ${ac_cv_path_FGREP+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4496 then ac_cv_path_FGREP="$GREP -F" 4497 else 4498 if test -z "$FGREP"; then 4499 ac_path_FGREP_found=false 4500 # Loop through the user's path and test for each of PROGNAME-LIST 4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4503do 4504 IFS=$as_save_IFS 4505 test -z "$as_dir" && as_dir=. 4506 for ac_prog in fgrep; do 4507 for ac_exec_ext in '' $ac_executable_extensions; do 4508 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4509 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4510# Check for GNU ac_path_FGREP and select it if it is found. 4511 # Check for GNU $ac_path_FGREP 4512case `"$ac_path_FGREP" --version 2>&1` in 4513*GNU*) 4514 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4515*) 4516 ac_count=0 4517 $as_echo_n 0123456789 >"conftest.in" 4518 while : 4519 do 4520 cat "conftest.in" "conftest.in" >"conftest.tmp" 4521 mv "conftest.tmp" "conftest.in" 4522 cp "conftest.in" "conftest.nl" 4523 $as_echo 'FGREP' >> "conftest.nl" 4524 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4526 as_fn_arith $ac_count + 1 && ac_count=$as_val 4527 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4528 # Best one so far, save it but keep looking for a better one 4529 ac_cv_path_FGREP="$ac_path_FGREP" 4530 ac_path_FGREP_max=$ac_count 4531 fi 4532 # 10*(2^10) chars as input seems more than enough 4533 test $ac_count -gt 10 && break 4534 done 4535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4536esac 4537 4538 $ac_path_FGREP_found && break 3 4539 done 4540 done 4541 done 4542IFS=$as_save_IFS 4543 if test -z "$ac_cv_path_FGREP"; then 4544 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4545 fi 4546else 4547 ac_cv_path_FGREP=$FGREP 4548fi 4549 4550 fi 4551fi 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4553$as_echo "$ac_cv_path_FGREP" >&6; } 4554 FGREP="$ac_cv_path_FGREP" 4555 4556 4557test -z "$GREP" && GREP=grep 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577# Check whether --with-gnu-ld was given. 4578if test "${with_gnu_ld+set}" = set; then : 4579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4580else 4581 with_gnu_ld=no 4582fi 4583 4584ac_prog=ld 4585if test "$GCC" = yes; then 4586 # Check if gcc -print-prog-name=ld gives a path. 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4588$as_echo_n "checking for ld used by $CC... " >&6; } 4589 case $host in 4590 *-*-mingw*) 4591 # gcc leaves a trailing carriage return which upsets mingw 4592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4593 *) 4594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4595 esac 4596 case $ac_prog in 4597 # Accept absolute paths. 4598 [\\/]* | ?:[\\/]*) 4599 re_direlt='/[^/][^/]*/\.\./' 4600 # Canonicalize the pathname of ld 4601 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4602 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4603 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4604 done 4605 test -z "$LD" && LD="$ac_prog" 4606 ;; 4607 "") 4608 # If it fails, then pretend we aren't using GCC. 4609 ac_prog=ld 4610 ;; 4611 *) 4612 # If it is relative, then search for the first ld in PATH. 4613 with_gnu_ld=unknown 4614 ;; 4615 esac 4616elif test "$with_gnu_ld" = yes; then 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4618$as_echo_n "checking for GNU ld... " >&6; } 4619else 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4621$as_echo_n "checking for non-GNU ld... " >&6; } 4622fi 4623if ${lt_cv_path_LD+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 if test -z "$LD"; then 4627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4628 for ac_dir in $PATH; do 4629 IFS="$lt_save_ifs" 4630 test -z "$ac_dir" && ac_dir=. 4631 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4632 lt_cv_path_LD="$ac_dir/$ac_prog" 4633 # Check to see if the program is GNU ld. I'd rather use --version, 4634 # but apparently some variants of GNU ld only accept -v. 4635 # Break only if it was the GNU/non-GNU ld that we prefer. 4636 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4637 *GNU* | *'with BFD'*) 4638 test "$with_gnu_ld" != no && break 4639 ;; 4640 *) 4641 test "$with_gnu_ld" != yes && break 4642 ;; 4643 esac 4644 fi 4645 done 4646 IFS="$lt_save_ifs" 4647else 4648 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4649fi 4650fi 4651 4652LD="$lt_cv_path_LD" 4653if test -n "$LD"; then 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4655$as_echo "$LD" >&6; } 4656else 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4658$as_echo "no" >&6; } 4659fi 4660test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4662$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4663if ${lt_cv_prog_gnu_ld+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4667case `$LD -v 2>&1 </dev/null` in 4668*GNU* | *'with BFD'*) 4669 lt_cv_prog_gnu_ld=yes 4670 ;; 4671*) 4672 lt_cv_prog_gnu_ld=no 4673 ;; 4674esac 4675fi 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4677$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4678with_gnu_ld=$lt_cv_prog_gnu_ld 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4689$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4690if ${lt_cv_path_NM+:} false; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 if test -n "$NM"; then 4694 # Let the user override the test. 4695 lt_cv_path_NM="$NM" 4696else 4697 lt_nm_to_check="${ac_tool_prefix}nm" 4698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4699 lt_nm_to_check="$lt_nm_to_check nm" 4700 fi 4701 for lt_tmp_nm in $lt_nm_to_check; do 4702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4704 IFS="$lt_save_ifs" 4705 test -z "$ac_dir" && ac_dir=. 4706 tmp_nm="$ac_dir/$lt_tmp_nm" 4707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4708 # Check to see if the nm accepts a BSD-compat flag. 4709 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4710 # nm: unknown option "B" ignored 4711 # Tru64's nm complains that /dev/null is an invalid object file 4712 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4713 */dev/null* | *'Invalid file or object type'*) 4714 lt_cv_path_NM="$tmp_nm -B" 4715 break 4716 ;; 4717 *) 4718 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4719 */dev/null*) 4720 lt_cv_path_NM="$tmp_nm -p" 4721 break 4722 ;; 4723 *) 4724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4725 continue # so that we can try to find one that supports BSD flags 4726 ;; 4727 esac 4728 ;; 4729 esac 4730 fi 4731 done 4732 IFS="$lt_save_ifs" 4733 done 4734 : ${lt_cv_path_NM=no} 4735fi 4736fi 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4738$as_echo "$lt_cv_path_NM" >&6; } 4739if test "$lt_cv_path_NM" != "no"; then 4740 NM="$lt_cv_path_NM" 4741else 4742 # Didn't find any BSD compatible name lister, look for dumpbin. 4743 if test -n "$DUMPBIN"; then : 4744 # Let the user override the test. 4745 else 4746 if test -n "$ac_tool_prefix"; then 4747 for ac_prog in dumpbin "link -dump" 4748 do 4749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4750set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4752$as_echo_n "checking for $ac_word... " >&6; } 4753if ${ac_cv_prog_DUMPBIN+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 if test -n "$DUMPBIN"; then 4757 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4758else 4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4760for as_dir in $PATH 4761do 4762 IFS=$as_save_IFS 4763 test -z "$as_dir" && as_dir=. 4764 for ac_exec_ext in '' $ac_executable_extensions; do 4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4766 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4768 break 2 4769 fi 4770done 4771 done 4772IFS=$as_save_IFS 4773 4774fi 4775fi 4776DUMPBIN=$ac_cv_prog_DUMPBIN 4777if test -n "$DUMPBIN"; then 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4779$as_echo "$DUMPBIN" >&6; } 4780else 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4782$as_echo "no" >&6; } 4783fi 4784 4785 4786 test -n "$DUMPBIN" && break 4787 done 4788fi 4789if test -z "$DUMPBIN"; then 4790 ac_ct_DUMPBIN=$DUMPBIN 4791 for ac_prog in dumpbin "link -dump" 4792do 4793 # Extract the first word of "$ac_prog", so it can be a program name with args. 4794set dummy $ac_prog; ac_word=$2 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4796$as_echo_n "checking for $ac_word... " >&6; } 4797if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 if test -n "$ac_ct_DUMPBIN"; then 4801 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4802else 4803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4804for as_dir in $PATH 4805do 4806 IFS=$as_save_IFS 4807 test -z "$as_dir" && as_dir=. 4808 for ac_exec_ext in '' $ac_executable_extensions; do 4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4810 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4812 break 2 4813 fi 4814done 4815 done 4816IFS=$as_save_IFS 4817 4818fi 4819fi 4820ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4821if test -n "$ac_ct_DUMPBIN"; then 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4823$as_echo "$ac_ct_DUMPBIN" >&6; } 4824else 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4826$as_echo "no" >&6; } 4827fi 4828 4829 4830 test -n "$ac_ct_DUMPBIN" && break 4831done 4832 4833 if test "x$ac_ct_DUMPBIN" = x; then 4834 DUMPBIN=":" 4835 else 4836 case $cross_compiling:$ac_tool_warned in 4837yes:) 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4840ac_tool_warned=yes ;; 4841esac 4842 DUMPBIN=$ac_ct_DUMPBIN 4843 fi 4844fi 4845 4846 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4847 *COFF*) 4848 DUMPBIN="$DUMPBIN -symbols" 4849 ;; 4850 *) 4851 DUMPBIN=: 4852 ;; 4853 esac 4854 fi 4855 4856 if test "$DUMPBIN" != ":"; then 4857 NM="$DUMPBIN" 4858 fi 4859fi 4860test -z "$NM" && NM=nm 4861 4862 4863 4864 4865 4866 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4868$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4869if ${lt_cv_nm_interface+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 lt_cv_nm_interface="BSD nm" 4873 echo "int some_variable = 0;" > conftest.$ac_ext 4874 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4875 (eval "$ac_compile" 2>conftest.err) 4876 cat conftest.err >&5 4877 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4878 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4879 cat conftest.err >&5 4880 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4881 cat conftest.out >&5 4882 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4883 lt_cv_nm_interface="MS dumpbin" 4884 fi 4885 rm -f conftest* 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4888$as_echo "$lt_cv_nm_interface" >&6; } 4889 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4891$as_echo_n "checking whether ln -s works... " >&6; } 4892LN_S=$as_ln_s 4893if test "$LN_S" = "ln -s"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4895$as_echo "yes" >&6; } 4896else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4898$as_echo "no, using $LN_S" >&6; } 4899fi 4900 4901# find the maximum length of command line arguments 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4903$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4904if ${lt_cv_sys_max_cmd_len+:} false; then : 4905 $as_echo_n "(cached) " >&6 4906else 4907 i=0 4908 teststring="ABCD" 4909 4910 case $build_os in 4911 msdosdjgpp*) 4912 # On DJGPP, this test can blow up pretty badly due to problems in libc 4913 # (any single argument exceeding 2000 bytes causes a buffer overrun 4914 # during glob expansion). Even if it were fixed, the result of this 4915 # check would be larger than it should be. 4916 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4917 ;; 4918 4919 gnu*) 4920 # Under GNU Hurd, this test is not required because there is 4921 # no limit to the length of command line arguments. 4922 # Libtool will interpret -1 as no limit whatsoever 4923 lt_cv_sys_max_cmd_len=-1; 4924 ;; 4925 4926 cygwin* | mingw* | cegcc*) 4927 # On Win9x/ME, this test blows up -- it succeeds, but takes 4928 # about 5 minutes as the teststring grows exponentially. 4929 # Worse, since 9x/ME are not pre-emptively multitasking, 4930 # you end up with a "frozen" computer, even though with patience 4931 # the test eventually succeeds (with a max line length of 256k). 4932 # Instead, let's just punt: use the minimum linelength reported by 4933 # all of the supported platforms: 8192 (on NT/2K/XP). 4934 lt_cv_sys_max_cmd_len=8192; 4935 ;; 4936 4937 mint*) 4938 # On MiNT this can take a long time and run out of memory. 4939 lt_cv_sys_max_cmd_len=8192; 4940 ;; 4941 4942 amigaos*) 4943 # On AmigaOS with pdksh, this test takes hours, literally. 4944 # So we just punt and use a minimum line length of 8192. 4945 lt_cv_sys_max_cmd_len=8192; 4946 ;; 4947 4948 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4949 # This has been around since 386BSD, at least. Likely further. 4950 if test -x /sbin/sysctl; then 4951 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4952 elif test -x /usr/sbin/sysctl; then 4953 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4954 else 4955 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4956 fi 4957 # And add a safety zone 4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4960 ;; 4961 4962 interix*) 4963 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4964 lt_cv_sys_max_cmd_len=196608 4965 ;; 4966 4967 osf*) 4968 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4969 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4970 # nice to cause kernel panics so lets avoid the loop below. 4971 # First set a reasonable default. 4972 lt_cv_sys_max_cmd_len=16384 4973 # 4974 if test -x /sbin/sysconfig; then 4975 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4976 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4977 esac 4978 fi 4979 ;; 4980 sco3.2v5*) 4981 lt_cv_sys_max_cmd_len=102400 4982 ;; 4983 sysv5* | sco5v6* | sysv4.2uw2*) 4984 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4985 if test -n "$kargmax"; then 4986 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4987 else 4988 lt_cv_sys_max_cmd_len=32768 4989 fi 4990 ;; 4991 *) 4992 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4993 if test -n "$lt_cv_sys_max_cmd_len"; then 4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4996 else 4997 # Make teststring a little bigger before we do anything with it. 4998 # a 1K string should be a reasonable start. 4999 for i in 1 2 3 4 5 6 7 8 ; do 5000 teststring=$teststring$teststring 5001 done 5002 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5003 # If test is not a shell built-in, we'll probably end up computing a 5004 # maximum length that is only half of the actual maximum length, but 5005 # we can't tell. 5006 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5007 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5008 test $i != 17 # 1/2 MB should be enough 5009 do 5010 i=`expr $i + 1` 5011 teststring=$teststring$teststring 5012 done 5013 # Only check the string length outside the loop. 5014 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5015 teststring= 5016 # Add a significant safety factor because C++ compilers can tack on 5017 # massive amounts of additional arguments before passing them to the 5018 # linker. It appears as though 1/2 is a usable value. 5019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5020 fi 5021 ;; 5022 esac 5023 5024fi 5025 5026if test -n $lt_cv_sys_max_cmd_len ; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5028$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5029else 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5031$as_echo "none" >&6; } 5032fi 5033max_cmd_len=$lt_cv_sys_max_cmd_len 5034 5035 5036 5037 5038 5039 5040: ${CP="cp -f"} 5041: ${MV="mv -f"} 5042: ${RM="rm -f"} 5043 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5045$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5046# Try some XSI features 5047xsi_shell=no 5048( _lt_dummy="a/b/c" 5049 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5050 = c,a/b,b/c, \ 5051 && eval 'test $(( 1 + 1 )) -eq 2 \ 5052 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5053 && xsi_shell=yes 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5055$as_echo "$xsi_shell" >&6; } 5056 5057 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5059$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5060lt_shell_append=no 5061( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5062 >/dev/null 2>&1 \ 5063 && lt_shell_append=yes 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5065$as_echo "$lt_shell_append" >&6; } 5066 5067 5068if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5069 lt_unset=unset 5070else 5071 lt_unset=false 5072fi 5073 5074 5075 5076 5077 5078# test EBCDIC or ASCII 5079case `echo X|tr X '\101'` in 5080 A) # ASCII based system 5081 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5082 lt_SP2NL='tr \040 \012' 5083 lt_NL2SP='tr \015\012 \040\040' 5084 ;; 5085 *) # EBCDIC based system 5086 lt_SP2NL='tr \100 \n' 5087 lt_NL2SP='tr \r\n \100\100' 5088 ;; 5089esac 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5100$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5101if ${lt_cv_to_host_file_cmd+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103else 5104 case $host in 5105 *-*-mingw* ) 5106 case $build in 5107 *-*-mingw* ) # actually msys 5108 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5109 ;; 5110 *-*-cygwin* ) 5111 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5112 ;; 5113 * ) # otherwise, assume *nix 5114 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5115 ;; 5116 esac 5117 ;; 5118 *-*-cygwin* ) 5119 case $build in 5120 *-*-mingw* ) # actually msys 5121 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5122 ;; 5123 *-*-cygwin* ) 5124 lt_cv_to_host_file_cmd=func_convert_file_noop 5125 ;; 5126 * ) # otherwise, assume *nix 5127 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5128 ;; 5129 esac 5130 ;; 5131 * ) # unhandled hosts (and "normal" native builds) 5132 lt_cv_to_host_file_cmd=func_convert_file_noop 5133 ;; 5134esac 5135 5136fi 5137 5138to_host_file_cmd=$lt_cv_to_host_file_cmd 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5140$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5141 5142 5143 5144 5145 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5147$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5148if ${lt_cv_to_tool_file_cmd+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 #assume ordinary cross tools, or native build. 5152lt_cv_to_tool_file_cmd=func_convert_file_noop 5153case $host in 5154 *-*-mingw* ) 5155 case $build in 5156 *-*-mingw* ) # actually msys 5157 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5158 ;; 5159 esac 5160 ;; 5161esac 5162 5163fi 5164 5165to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5167$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5168 5169 5170 5171 5172 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5174$as_echo_n "checking for $LD option to reload object files... " >&6; } 5175if ${lt_cv_ld_reload_flag+:} false; then : 5176 $as_echo_n "(cached) " >&6 5177else 5178 lt_cv_ld_reload_flag='-r' 5179fi 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5181$as_echo "$lt_cv_ld_reload_flag" >&6; } 5182reload_flag=$lt_cv_ld_reload_flag 5183case $reload_flag in 5184"" | " "*) ;; 5185*) reload_flag=" $reload_flag" ;; 5186esac 5187reload_cmds='$LD$reload_flag -o $output$reload_objs' 5188case $host_os in 5189 cygwin* | mingw* | pw32* | cegcc*) 5190 if test "$GCC" != yes; then 5191 reload_cmds=false 5192 fi 5193 ;; 5194 darwin*) 5195 if test "$GCC" = yes; then 5196 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5197 else 5198 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5199 fi 5200 ;; 5201esac 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211if test -n "$ac_tool_prefix"; then 5212 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5213set dummy ${ac_tool_prefix}objdump; ac_word=$2 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5215$as_echo_n "checking for $ac_word... " >&6; } 5216if ${ac_cv_prog_OBJDUMP+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 if test -n "$OBJDUMP"; then 5220 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5221else 5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in $PATH 5224do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5229 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233done 5234 done 5235IFS=$as_save_IFS 5236 5237fi 5238fi 5239OBJDUMP=$ac_cv_prog_OBJDUMP 5240if test -n "$OBJDUMP"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5242$as_echo "$OBJDUMP" >&6; } 5243else 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5245$as_echo "no" >&6; } 5246fi 5247 5248 5249fi 5250if test -z "$ac_cv_prog_OBJDUMP"; then 5251 ac_ct_OBJDUMP=$OBJDUMP 5252 # Extract the first word of "objdump", so it can be a program name with args. 5253set dummy objdump; ac_word=$2 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5255$as_echo_n "checking for $ac_word... " >&6; } 5256if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258else 5259 if test -n "$ac_ct_OBJDUMP"; then 5260 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5261else 5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263for as_dir in $PATH 5264do 5265 IFS=$as_save_IFS 5266 test -z "$as_dir" && as_dir=. 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5269 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5271 break 2 5272 fi 5273done 5274 done 5275IFS=$as_save_IFS 5276 5277fi 5278fi 5279ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5280if test -n "$ac_ct_OBJDUMP"; then 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5282$as_echo "$ac_ct_OBJDUMP" >&6; } 5283else 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285$as_echo "no" >&6; } 5286fi 5287 5288 if test "x$ac_ct_OBJDUMP" = x; then 5289 OBJDUMP="false" 5290 else 5291 case $cross_compiling:$ac_tool_warned in 5292yes:) 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5295ac_tool_warned=yes ;; 5296esac 5297 OBJDUMP=$ac_ct_OBJDUMP 5298 fi 5299else 5300 OBJDUMP="$ac_cv_prog_OBJDUMP" 5301fi 5302 5303test -z "$OBJDUMP" && OBJDUMP=objdump 5304 5305 5306 5307 5308 5309 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5311$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5312if ${lt_cv_deplibs_check_method+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 lt_cv_file_magic_cmd='$MAGIC_CMD' 5316lt_cv_file_magic_test_file= 5317lt_cv_deplibs_check_method='unknown' 5318# Need to set the preceding variable on all platforms that support 5319# interlibrary dependencies. 5320# 'none' -- dependencies not supported. 5321# `unknown' -- same as none, but documents that we really don't know. 5322# 'pass_all' -- all dependencies passed with no checks. 5323# 'test_compile' -- check by making test program. 5324# 'file_magic [[regex]]' -- check by looking for files in library path 5325# which responds to the $file_magic_cmd with a given extended regex. 5326# If you have `file' or equivalent on your system and you're not sure 5327# whether `pass_all' will *always* work, you probably want this one. 5328 5329case $host_os in 5330aix[4-9]*) 5331 lt_cv_deplibs_check_method=pass_all 5332 ;; 5333 5334beos*) 5335 lt_cv_deplibs_check_method=pass_all 5336 ;; 5337 5338bsdi[45]*) 5339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5340 lt_cv_file_magic_cmd='/usr/bin/file -L' 5341 lt_cv_file_magic_test_file=/shlib/libc.so 5342 ;; 5343 5344cygwin*) 5345 # func_win32_libid is a shell function defined in ltmain.sh 5346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5347 lt_cv_file_magic_cmd='func_win32_libid' 5348 ;; 5349 5350mingw* | pw32*) 5351 # Base MSYS/MinGW do not provide the 'file' command needed by 5352 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5353 # unless we find 'file', for example because we are cross-compiling. 5354 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5355 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5357 lt_cv_file_magic_cmd='func_win32_libid' 5358 else 5359 # Keep this pattern in sync with the one in func_win32_libid. 5360 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5361 lt_cv_file_magic_cmd='$OBJDUMP -f' 5362 fi 5363 ;; 5364 5365cegcc*) 5366 # use the weaker test based on 'objdump'. See mingw*. 5367 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5368 lt_cv_file_magic_cmd='$OBJDUMP -f' 5369 ;; 5370 5371darwin* | rhapsody*) 5372 lt_cv_deplibs_check_method=pass_all 5373 ;; 5374 5375freebsd* | dragonfly*) 5376 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5377 case $host_cpu in 5378 i*86 ) 5379 # Not sure whether the presence of OpenBSD here was a mistake. 5380 # Let's accept both of them until this is cleared up. 5381 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5382 lt_cv_file_magic_cmd=/usr/bin/file 5383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5384 ;; 5385 esac 5386 else 5387 lt_cv_deplibs_check_method=pass_all 5388 fi 5389 ;; 5390 5391gnu*) 5392 lt_cv_deplibs_check_method=pass_all 5393 ;; 5394 5395haiku*) 5396 lt_cv_deplibs_check_method=pass_all 5397 ;; 5398 5399hpux10.20* | hpux11*) 5400 lt_cv_file_magic_cmd=/usr/bin/file 5401 case $host_cpu in 5402 ia64*) 5403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5405 ;; 5406 hppa*64*) 5407 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]' 5408 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5409 ;; 5410 *) 5411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5412 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5413 ;; 5414 esac 5415 ;; 5416 5417interix[3-9]*) 5418 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5420 ;; 5421 5422irix5* | irix6* | nonstopux*) 5423 case $LD in 5424 *-32|*"-32 ") libmagic=32-bit;; 5425 *-n32|*"-n32 ") libmagic=N32;; 5426 *-64|*"-64 ") libmagic=64-bit;; 5427 *) libmagic=never-match;; 5428 esac 5429 lt_cv_deplibs_check_method=pass_all 5430 ;; 5431 5432# This must be Linux ELF. 5433linux* | k*bsd*-gnu | kopensolaris*-gnu) 5434 lt_cv_deplibs_check_method=pass_all 5435 ;; 5436 5437netbsd*) 5438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5440 else 5441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5442 fi 5443 ;; 5444 5445newos6*) 5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5447 lt_cv_file_magic_cmd=/usr/bin/file 5448 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5449 ;; 5450 5451*nto* | *qnx*) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 5455openbsd*) 5456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5458 else 5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5460 fi 5461 ;; 5462 5463osf3* | osf4* | osf5*) 5464 lt_cv_deplibs_check_method=pass_all 5465 ;; 5466 5467rdos*) 5468 lt_cv_deplibs_check_method=pass_all 5469 ;; 5470 5471solaris*) 5472 lt_cv_deplibs_check_method=pass_all 5473 ;; 5474 5475sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5476 lt_cv_deplibs_check_method=pass_all 5477 ;; 5478 5479sysv4 | sysv4.3*) 5480 case $host_vendor in 5481 motorola) 5482 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]' 5483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5484 ;; 5485 ncr) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488 sequent) 5489 lt_cv_file_magic_cmd='/bin/file' 5490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5491 ;; 5492 sni) 5493 lt_cv_file_magic_cmd='/bin/file' 5494 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5495 lt_cv_file_magic_test_file=/lib/libc.so 5496 ;; 5497 siemens) 5498 lt_cv_deplibs_check_method=pass_all 5499 ;; 5500 pc) 5501 lt_cv_deplibs_check_method=pass_all 5502 ;; 5503 esac 5504 ;; 5505 5506tpf*) 5507 lt_cv_deplibs_check_method=pass_all 5508 ;; 5509esac 5510 5511fi 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5513$as_echo "$lt_cv_deplibs_check_method" >&6; } 5514 5515file_magic_glob= 5516want_nocaseglob=no 5517if test "$build" = "$host"; then 5518 case $host_os in 5519 mingw* | pw32*) 5520 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5521 want_nocaseglob=yes 5522 else 5523 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5524 fi 5525 ;; 5526 esac 5527fi 5528 5529file_magic_cmd=$lt_cv_file_magic_cmd 5530deplibs_check_method=$lt_cv_deplibs_check_method 5531test -z "$deplibs_check_method" && deplibs_check_method=unknown 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554if test -n "$ac_tool_prefix"; then 5555 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5556set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5558$as_echo_n "checking for $ac_word... " >&6; } 5559if ${ac_cv_prog_DLLTOOL+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 if test -n "$DLLTOOL"; then 5563 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5564else 5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5566for as_dir in $PATH 5567do 5568 IFS=$as_save_IFS 5569 test -z "$as_dir" && as_dir=. 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5572 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5574 break 2 5575 fi 5576done 5577 done 5578IFS=$as_save_IFS 5579 5580fi 5581fi 5582DLLTOOL=$ac_cv_prog_DLLTOOL 5583if test -n "$DLLTOOL"; then 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5585$as_echo "$DLLTOOL" >&6; } 5586else 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5588$as_echo "no" >&6; } 5589fi 5590 5591 5592fi 5593if test -z "$ac_cv_prog_DLLTOOL"; then 5594 ac_ct_DLLTOOL=$DLLTOOL 5595 # Extract the first word of "dlltool", so it can be a program name with args. 5596set dummy dlltool; 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_ac_ct_DLLTOOL+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 if test -n "$ac_ct_DLLTOOL"; then 5603 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool" 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 5622ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5623if test -n "$ac_ct_DLLTOOL"; then 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5625$as_echo "$ac_ct_DLLTOOL" >&6; } 5626else 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5628$as_echo "no" >&6; } 5629fi 5630 5631 if test "x$ac_ct_DLLTOOL" = x; then 5632 DLLTOOL="false" 5633 else 5634 case $cross_compiling:$ac_tool_warned in 5635yes:) 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5638ac_tool_warned=yes ;; 5639esac 5640 DLLTOOL=$ac_ct_DLLTOOL 5641 fi 5642else 5643 DLLTOOL="$ac_cv_prog_DLLTOOL" 5644fi 5645 5646test -z "$DLLTOOL" && DLLTOOL=dlltool 5647 5648 5649 5650 5651 5652 5653 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5655$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5656if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 lt_cv_sharedlib_from_linklib_cmd='unknown' 5660 5661case $host_os in 5662cygwin* | mingw* | pw32* | cegcc*) 5663 # two different shell functions defined in ltmain.sh 5664 # decide which to use based on capabilities of $DLLTOOL 5665 case `$DLLTOOL --help 2>&1` in 5666 *--identify-strict*) 5667 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5668 ;; 5669 *) 5670 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5671 ;; 5672 esac 5673 ;; 5674*) 5675 # fallback: assume linklib IS sharedlib 5676 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5677 ;; 5678esac 5679 5680fi 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5682$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5683sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5684test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5685 5686 5687 5688 5689 5690 5691 5692 5693if test -n "$ac_tool_prefix"; then 5694 for ac_prog in ar 5695 do 5696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5699$as_echo_n "checking for $ac_word... " >&6; } 5700if ${ac_cv_prog_AR+:} false; then : 5701 $as_echo_n "(cached) " >&6 5702else 5703 if test -n "$AR"; then 5704 ac_cv_prog_AR="$AR" # Let the user override the test. 5705else 5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5707for as_dir in $PATH 5708do 5709 IFS=$as_save_IFS 5710 test -z "$as_dir" && as_dir=. 5711 for ac_exec_ext in '' $ac_executable_extensions; do 5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5713 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5715 break 2 5716 fi 5717done 5718 done 5719IFS=$as_save_IFS 5720 5721fi 5722fi 5723AR=$ac_cv_prog_AR 5724if test -n "$AR"; then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5726$as_echo "$AR" >&6; } 5727else 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5729$as_echo "no" >&6; } 5730fi 5731 5732 5733 test -n "$AR" && break 5734 done 5735fi 5736if test -z "$AR"; then 5737 ac_ct_AR=$AR 5738 for ac_prog in ar 5739do 5740 # Extract the first word of "$ac_prog", so it can be a program name with args. 5741set dummy $ac_prog; ac_word=$2 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743$as_echo_n "checking for $ac_word... " >&6; } 5744if ${ac_cv_prog_ac_ct_AR+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746else 5747 if test -n "$ac_ct_AR"; then 5748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5749else 5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5751for as_dir in $PATH 5752do 5753 IFS=$as_save_IFS 5754 test -z "$as_dir" && as_dir=. 5755 for ac_exec_ext in '' $ac_executable_extensions; do 5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5757 ac_cv_prog_ac_ct_AR="$ac_prog" 5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5759 break 2 5760 fi 5761done 5762 done 5763IFS=$as_save_IFS 5764 5765fi 5766fi 5767ac_ct_AR=$ac_cv_prog_ac_ct_AR 5768if test -n "$ac_ct_AR"; then 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5770$as_echo "$ac_ct_AR" >&6; } 5771else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5773$as_echo "no" >&6; } 5774fi 5775 5776 5777 test -n "$ac_ct_AR" && break 5778done 5779 5780 if test "x$ac_ct_AR" = x; then 5781 AR="false" 5782 else 5783 case $cross_compiling:$ac_tool_warned in 5784yes:) 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5787ac_tool_warned=yes ;; 5788esac 5789 AR=$ac_ct_AR 5790 fi 5791fi 5792 5793: ${AR=ar} 5794: ${AR_FLAGS=cru} 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5807$as_echo_n "checking for archiver @FILE support... " >&6; } 5808if ${lt_cv_ar_at_file+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 lt_cv_ar_at_file=no 5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813/* end confdefs.h. */ 5814 5815int 5816main () 5817{ 5818 5819 ; 5820 return 0; 5821} 5822_ACEOF 5823if ac_fn_c_try_compile "$LINENO"; then : 5824 echo conftest.$ac_objext > conftest.lst 5825 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5827 (eval $lt_ar_try) 2>&5 5828 ac_status=$? 5829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5830 test $ac_status = 0; } 5831 if test "$ac_status" -eq 0; then 5832 # Ensure the archiver fails upon bogus file names. 5833 rm -f conftest.$ac_objext libconftest.a 5834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5835 (eval $lt_ar_try) 2>&5 5836 ac_status=$? 5837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5838 test $ac_status = 0; } 5839 if test "$ac_status" -ne 0; then 5840 lt_cv_ar_at_file=@ 5841 fi 5842 fi 5843 rm -f conftest.* libconftest.a 5844 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5847 5848fi 5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5850$as_echo "$lt_cv_ar_at_file" >&6; } 5851 5852if test "x$lt_cv_ar_at_file" = xno; then 5853 archiver_list_spec= 5854else 5855 archiver_list_spec=$lt_cv_ar_at_file 5856fi 5857 5858 5859 5860 5861 5862 5863 5864if test -n "$ac_tool_prefix"; then 5865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5866set dummy ${ac_tool_prefix}strip; ac_word=$2 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5868$as_echo_n "checking for $ac_word... " >&6; } 5869if ${ac_cv_prog_STRIP+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 if test -n "$STRIP"; then 5873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5874else 5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH 5877do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5882 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890fi 5891fi 5892STRIP=$ac_cv_prog_STRIP 5893if test -n "$STRIP"; then 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5895$as_echo "$STRIP" >&6; } 5896else 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898$as_echo "no" >&6; } 5899fi 5900 5901 5902fi 5903if test -z "$ac_cv_prog_STRIP"; then 5904 ac_ct_STRIP=$STRIP 5905 # Extract the first word of "strip", so it can be a program name with args. 5906set dummy strip; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$ac_ct_STRIP"; then 5913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5922 ac_cv_prog_ac_ct_STRIP="strip" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5933if test -n "$ac_ct_STRIP"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5935$as_echo "$ac_ct_STRIP" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 if test "x$ac_ct_STRIP" = x; then 5942 STRIP=":" 5943 else 5944 case $cross_compiling:$ac_tool_warned in 5945yes:) 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5948ac_tool_warned=yes ;; 5949esac 5950 STRIP=$ac_ct_STRIP 5951 fi 5952else 5953 STRIP="$ac_cv_prog_STRIP" 5954fi 5955 5956test -z "$STRIP" && STRIP=: 5957 5958 5959 5960 5961 5962 5963if test -n "$ac_tool_prefix"; then 5964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5965set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5967$as_echo_n "checking for $ac_word... " >&6; } 5968if ${ac_cv_prog_RANLIB+:} false; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 if test -n "$RANLIB"; then 5972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5973else 5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5975for as_dir in $PATH 5976do 5977 IFS=$as_save_IFS 5978 test -z "$as_dir" && as_dir=. 5979 for ac_exec_ext in '' $ac_executable_extensions; do 5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5983 break 2 5984 fi 5985done 5986 done 5987IFS=$as_save_IFS 5988 5989fi 5990fi 5991RANLIB=$ac_cv_prog_RANLIB 5992if test -n "$RANLIB"; then 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5994$as_echo "$RANLIB" >&6; } 5995else 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997$as_echo "no" >&6; } 5998fi 5999 6000 6001fi 6002if test -z "$ac_cv_prog_RANLIB"; then 6003 ac_ct_RANLIB=$RANLIB 6004 # Extract the first word of "ranlib", so it can be a program name with args. 6005set dummy ranlib; ac_word=$2 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6007$as_echo_n "checking for $ac_word... " >&6; } 6008if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 if test -n "$ac_ct_RANLIB"; then 6012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6013else 6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6015for as_dir in $PATH 6016do 6017 IFS=$as_save_IFS 6018 test -z "$as_dir" && as_dir=. 6019 for ac_exec_ext in '' $ac_executable_extensions; do 6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6021 ac_cv_prog_ac_ct_RANLIB="ranlib" 6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6023 break 2 6024 fi 6025done 6026 done 6027IFS=$as_save_IFS 6028 6029fi 6030fi 6031ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6032if test -n "$ac_ct_RANLIB"; then 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6034$as_echo "$ac_ct_RANLIB" >&6; } 6035else 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6037$as_echo "no" >&6; } 6038fi 6039 6040 if test "x$ac_ct_RANLIB" = x; then 6041 RANLIB=":" 6042 else 6043 case $cross_compiling:$ac_tool_warned in 6044yes:) 6045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6047ac_tool_warned=yes ;; 6048esac 6049 RANLIB=$ac_ct_RANLIB 6050 fi 6051else 6052 RANLIB="$ac_cv_prog_RANLIB" 6053fi 6054 6055test -z "$RANLIB" && RANLIB=: 6056 6057 6058 6059 6060 6061 6062# Determine commands to create old-style static archives. 6063old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6064old_postinstall_cmds='chmod 644 $oldlib' 6065old_postuninstall_cmds= 6066 6067if test -n "$RANLIB"; then 6068 case $host_os in 6069 openbsd*) 6070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6071 ;; 6072 *) 6073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6074 ;; 6075 esac 6076 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6077fi 6078 6079case $host_os in 6080 darwin*) 6081 lock_old_archive_extraction=yes ;; 6082 *) 6083 lock_old_archive_extraction=no ;; 6084esac 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124# If no C compiler was specified, use CC. 6125LTCC=${LTCC-"$CC"} 6126 6127# If no C compiler flags were specified, use CFLAGS. 6128LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6129 6130# Allow CC to be a program name with arguments. 6131compiler=$CC 6132 6133 6134# Check for command to grab the raw symbol name followed by C symbol from nm. 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6136$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6137if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 6141# These are sane defaults that work on at least a few old systems. 6142# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6143 6144# Character class describing NM global symbol codes. 6145symcode='[BCDEGRST]' 6146 6147# Regexp to match symbols that can be accessed directly from C. 6148sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6149 6150# Define system-specific variables. 6151case $host_os in 6152aix*) 6153 symcode='[BCDT]' 6154 ;; 6155cygwin* | mingw* | pw32* | cegcc*) 6156 symcode='[ABCDGISTW]' 6157 ;; 6158hpux*) 6159 if test "$host_cpu" = ia64; then 6160 symcode='[ABCDEGRST]' 6161 fi 6162 ;; 6163irix* | nonstopux*) 6164 symcode='[BCDEGRST]' 6165 ;; 6166osf*) 6167 symcode='[BCDEGQRST]' 6168 ;; 6169solaris*) 6170 symcode='[BDRT]' 6171 ;; 6172sco3.2v5*) 6173 symcode='[DT]' 6174 ;; 6175sysv4.2uw2*) 6176 symcode='[DT]' 6177 ;; 6178sysv5* | sco5v6* | unixware* | OpenUNIX*) 6179 symcode='[ABDT]' 6180 ;; 6181sysv4) 6182 symcode='[DFNSTU]' 6183 ;; 6184esac 6185 6186# If we're using GNU nm, then use its standard symbol codes. 6187case `$NM -V 2>&1` in 6188*GNU* | *'with BFD'*) 6189 symcode='[ABCDGIRSTW]' ;; 6190esac 6191 6192# Transform an extracted symbol line into a proper C declaration. 6193# Some systems (esp. on ia64) link data and code symbols differently, 6194# so use this general approach. 6195lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6196 6197# Transform an extracted symbol line into symbol name and symbol address 6198lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6199lt_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'" 6200 6201# Handle CRLF in mingw tool chain 6202opt_cr= 6203case $build_os in 6204mingw*) 6205 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6206 ;; 6207esac 6208 6209# Try without a prefix underscore, then with it. 6210for ac_symprfx in "" "_"; do 6211 6212 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6213 symxfrm="\\1 $ac_symprfx\\2 \\2" 6214 6215 # Write the raw and C identifiers. 6216 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6217 # Fake it for dumpbin and say T for any non-static function 6218 # and D for any global variable. 6219 # Also find C++ and __fastcall symbols from MSVC++, 6220 # which start with @ or ?. 6221 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6222" {last_section=section; section=\$ 3};"\ 6223" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6224" \$ 0!~/External *\|/{next};"\ 6225" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6226" {if(hide[section]) next};"\ 6227" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6228" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6229" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6230" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6231" ' prfx=^$ac_symprfx" 6232 else 6233 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6234 fi 6235 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6236 6237 # Check to see that the pipe works correctly. 6238 pipe_works=no 6239 6240 rm -f conftest* 6241 cat > conftest.$ac_ext <<_LT_EOF 6242#ifdef __cplusplus 6243extern "C" { 6244#endif 6245char nm_test_var; 6246void nm_test_func(void); 6247void nm_test_func(void){} 6248#ifdef __cplusplus 6249} 6250#endif 6251int main(){nm_test_var='a';nm_test_func();return(0);} 6252_LT_EOF 6253 6254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6255 (eval $ac_compile) 2>&5 6256 ac_status=$? 6257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6258 test $ac_status = 0; }; then 6259 # Now try to grab the symbols. 6260 nlist=conftest.nm 6261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6262 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6263 ac_status=$? 6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6265 test $ac_status = 0; } && test -s "$nlist"; then 6266 # Try sorting and uniquifying the output. 6267 if sort "$nlist" | uniq > "$nlist"T; then 6268 mv -f "$nlist"T "$nlist" 6269 else 6270 rm -f "$nlist"T 6271 fi 6272 6273 # Make sure that we snagged all the symbols we need. 6274 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6275 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6276 cat <<_LT_EOF > conftest.$ac_ext 6277/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6278#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6279/* DATA imports from DLLs on WIN32 con't be const, because runtime 6280 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6281# define LT_DLSYM_CONST 6282#elif defined(__osf__) 6283/* This system does not cope well with relocations in const data. */ 6284# define LT_DLSYM_CONST 6285#else 6286# define LT_DLSYM_CONST const 6287#endif 6288 6289#ifdef __cplusplus 6290extern "C" { 6291#endif 6292 6293_LT_EOF 6294 # Now generate the symbol file. 6295 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6296 6297 cat <<_LT_EOF >> conftest.$ac_ext 6298 6299/* The mapping between symbol names and symbols. */ 6300LT_DLSYM_CONST struct { 6301 const char *name; 6302 void *address; 6303} 6304lt__PROGRAM__LTX_preloaded_symbols[] = 6305{ 6306 { "@PROGRAM@", (void *) 0 }, 6307_LT_EOF 6308 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6309 cat <<\_LT_EOF >> conftest.$ac_ext 6310 {0, (void *) 0} 6311}; 6312 6313/* This works around a problem in FreeBSD linker */ 6314#ifdef FREEBSD_WORKAROUND 6315static const void *lt_preloaded_setup() { 6316 return lt__PROGRAM__LTX_preloaded_symbols; 6317} 6318#endif 6319 6320#ifdef __cplusplus 6321} 6322#endif 6323_LT_EOF 6324 # Now try linking the two files. 6325 mv conftest.$ac_objext conftstm.$ac_objext 6326 lt_globsym_save_LIBS=$LIBS 6327 lt_globsym_save_CFLAGS=$CFLAGS 6328 LIBS="conftstm.$ac_objext" 6329 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6331 (eval $ac_link) 2>&5 6332 ac_status=$? 6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6334 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6335 pipe_works=yes 6336 fi 6337 LIBS=$lt_globsym_save_LIBS 6338 CFLAGS=$lt_globsym_save_CFLAGS 6339 else 6340 echo "cannot find nm_test_func in $nlist" >&5 6341 fi 6342 else 6343 echo "cannot find nm_test_var in $nlist" >&5 6344 fi 6345 else 6346 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6347 fi 6348 else 6349 echo "$progname: failed program was:" >&5 6350 cat conftest.$ac_ext >&5 6351 fi 6352 rm -rf conftest* conftst* 6353 6354 # Do not use the global_symbol_pipe unless it works. 6355 if test "$pipe_works" = yes; then 6356 break 6357 else 6358 lt_cv_sys_global_symbol_pipe= 6359 fi 6360done 6361 6362fi 6363 6364if test -z "$lt_cv_sys_global_symbol_pipe"; then 6365 lt_cv_sys_global_symbol_to_cdecl= 6366fi 6367if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6369$as_echo "failed" >&6; } 6370else 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6372$as_echo "ok" >&6; } 6373fi 6374 6375# Response file support. 6376if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6377 nm_file_list_spec='@' 6378elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6379 nm_file_list_spec='@' 6380fi 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6409$as_echo_n "checking for sysroot... " >&6; } 6410 6411# Check whether --with-sysroot was given. 6412if test "${with_sysroot+set}" = set; then : 6413 withval=$with_sysroot; 6414else 6415 with_sysroot=no 6416fi 6417 6418 6419lt_sysroot= 6420case ${with_sysroot} in #( 6421 yes) 6422 if test "$GCC" = yes; then 6423 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6424 fi 6425 ;; #( 6426 /*) 6427 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6428 ;; #( 6429 no|'') 6430 ;; #( 6431 *) 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6433$as_echo "${with_sysroot}" >&6; } 6434 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6435 ;; 6436esac 6437 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6439$as_echo "${lt_sysroot:-no}" >&6; } 6440 6441 6442 6443 6444 6445# Check whether --enable-libtool-lock was given. 6446if test "${enable_libtool_lock+set}" = set; then : 6447 enableval=$enable_libtool_lock; 6448fi 6449 6450test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6451 6452# Some flags need to be propagated to the compiler or linker for good 6453# libtool support. 6454case $host in 6455ia64-*-hpux*) 6456 # Find out which ABI we are using. 6457 echo 'int i;' > conftest.$ac_ext 6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6459 (eval $ac_compile) 2>&5 6460 ac_status=$? 6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6462 test $ac_status = 0; }; then 6463 case `/usr/bin/file conftest.$ac_objext` in 6464 *ELF-32*) 6465 HPUX_IA64_MODE="32" 6466 ;; 6467 *ELF-64*) 6468 HPUX_IA64_MODE="64" 6469 ;; 6470 esac 6471 fi 6472 rm -rf conftest* 6473 ;; 6474*-*-irix6*) 6475 # Find out which ABI we are using. 6476 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6478 (eval $ac_compile) 2>&5 6479 ac_status=$? 6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6481 test $ac_status = 0; }; then 6482 if test "$lt_cv_prog_gnu_ld" = yes; then 6483 case `/usr/bin/file conftest.$ac_objext` in 6484 *32-bit*) 6485 LD="${LD-ld} -melf32bsmip" 6486 ;; 6487 *N32*) 6488 LD="${LD-ld} -melf32bmipn32" 6489 ;; 6490 *64-bit*) 6491 LD="${LD-ld} -melf64bmip" 6492 ;; 6493 esac 6494 else 6495 case `/usr/bin/file conftest.$ac_objext` in 6496 *32-bit*) 6497 LD="${LD-ld} -32" 6498 ;; 6499 *N32*) 6500 LD="${LD-ld} -n32" 6501 ;; 6502 *64-bit*) 6503 LD="${LD-ld} -64" 6504 ;; 6505 esac 6506 fi 6507 fi 6508 rm -rf conftest* 6509 ;; 6510 6511x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6512s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6513 # Find out which ABI we are using. 6514 echo 'int i;' > conftest.$ac_ext 6515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6516 (eval $ac_compile) 2>&5 6517 ac_status=$? 6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6519 test $ac_status = 0; }; then 6520 case `/usr/bin/file conftest.o` in 6521 *32-bit*) 6522 case $host in 6523 x86_64-*kfreebsd*-gnu) 6524 LD="${LD-ld} -m elf_i386_fbsd" 6525 ;; 6526 x86_64-*linux*) 6527 LD="${LD-ld} -m elf_i386" 6528 ;; 6529 ppc64-*linux*|powerpc64-*linux*) 6530 LD="${LD-ld} -m elf32ppclinux" 6531 ;; 6532 s390x-*linux*) 6533 LD="${LD-ld} -m elf_s390" 6534 ;; 6535 sparc64-*linux*) 6536 LD="${LD-ld} -m elf32_sparc" 6537 ;; 6538 esac 6539 ;; 6540 *64-bit*) 6541 case $host in 6542 x86_64-*kfreebsd*-gnu) 6543 LD="${LD-ld} -m elf_x86_64_fbsd" 6544 ;; 6545 x86_64-*linux*) 6546 LD="${LD-ld} -m elf_x86_64" 6547 ;; 6548 ppc*-*linux*|powerpc*-*linux*) 6549 LD="${LD-ld} -m elf64ppc" 6550 ;; 6551 s390*-*linux*|s390*-*tpf*) 6552 LD="${LD-ld} -m elf64_s390" 6553 ;; 6554 sparc*-*linux*) 6555 LD="${LD-ld} -m elf64_sparc" 6556 ;; 6557 esac 6558 ;; 6559 esac 6560 fi 6561 rm -rf conftest* 6562 ;; 6563 6564*-*-sco3.2v5*) 6565 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6566 SAVE_CFLAGS="$CFLAGS" 6567 CFLAGS="$CFLAGS -belf" 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6569$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6570if ${lt_cv_cc_needs_belf+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 ac_ext=c 6574ac_cpp='$CPP $CPPFLAGS' 6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6577ac_compiler_gnu=$ac_cv_c_compiler_gnu 6578 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581 6582int 6583main () 6584{ 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590if ac_fn_c_try_link "$LINENO"; then : 6591 lt_cv_cc_needs_belf=yes 6592else 6593 lt_cv_cc_needs_belf=no 6594fi 6595rm -f core conftest.err conftest.$ac_objext \ 6596 conftest$ac_exeext conftest.$ac_ext 6597 ac_ext=c 6598ac_cpp='$CPP $CPPFLAGS' 6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6601ac_compiler_gnu=$ac_cv_c_compiler_gnu 6602 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6605$as_echo "$lt_cv_cc_needs_belf" >&6; } 6606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6608 CFLAGS="$SAVE_CFLAGS" 6609 fi 6610 ;; 6611sparc*-*solaris*) 6612 # Find out which ABI we are using. 6613 echo 'int i;' > conftest.$ac_ext 6614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6615 (eval $ac_compile) 2>&5 6616 ac_status=$? 6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6618 test $ac_status = 0; }; then 6619 case `/usr/bin/file conftest.o` in 6620 *64-bit*) 6621 case $lt_cv_prog_gnu_ld in 6622 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6623 *) 6624 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6625 LD="${LD-ld} -64" 6626 fi 6627 ;; 6628 esac 6629 ;; 6630 esac 6631 fi 6632 rm -rf conftest* 6633 ;; 6634esac 6635 6636need_locks="$enable_libtool_lock" 6637 6638if test -n "$ac_tool_prefix"; then 6639 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6640set dummy ${ac_tool_prefix}mt; ac_word=$2 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6642$as_echo_n "checking for $ac_word... " >&6; } 6643if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 if test -n "$MANIFEST_TOOL"; then 6647 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6648else 6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6650for as_dir in $PATH 6651do 6652 IFS=$as_save_IFS 6653 test -z "$as_dir" && as_dir=. 6654 for ac_exec_ext in '' $ac_executable_extensions; do 6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6656 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6658 break 2 6659 fi 6660done 6661 done 6662IFS=$as_save_IFS 6663 6664fi 6665fi 6666MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6667if test -n "$MANIFEST_TOOL"; then 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6669$as_echo "$MANIFEST_TOOL" >&6; } 6670else 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6672$as_echo "no" >&6; } 6673fi 6674 6675 6676fi 6677if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6678 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6679 # Extract the first word of "mt", so it can be a program name with args. 6680set dummy mt; ac_word=$2 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6682$as_echo_n "checking for $ac_word... " >&6; } 6683if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685else 6686 if test -n "$ac_ct_MANIFEST_TOOL"; then 6687 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6688else 6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690for as_dir in $PATH 6691do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6696 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700done 6701 done 6702IFS=$as_save_IFS 6703 6704fi 6705fi 6706ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6707if test -n "$ac_ct_MANIFEST_TOOL"; then 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6709$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6710else 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6712$as_echo "no" >&6; } 6713fi 6714 6715 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6716 MANIFEST_TOOL=":" 6717 else 6718 case $cross_compiling:$ac_tool_warned in 6719yes:) 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6722ac_tool_warned=yes ;; 6723esac 6724 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6725 fi 6726else 6727 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6728fi 6729 6730test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6732$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6733if ${lt_cv_path_mainfest_tool+:} false; then : 6734 $as_echo_n "(cached) " >&6 6735else 6736 lt_cv_path_mainfest_tool=no 6737 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6738 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6739 cat conftest.err >&5 6740 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6741 lt_cv_path_mainfest_tool=yes 6742 fi 6743 rm -f conftest* 6744fi 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6746$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6747if test "x$lt_cv_path_mainfest_tool" != xyes; then 6748 MANIFEST_TOOL=: 6749fi 6750 6751 6752 6753 6754 6755 6756 case $host_os in 6757 rhapsody* | darwin*) 6758 if test -n "$ac_tool_prefix"; then 6759 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6760set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6762$as_echo_n "checking for $ac_word... " >&6; } 6763if ${ac_cv_prog_DSYMUTIL+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 if test -n "$DSYMUTIL"; then 6767 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6768else 6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6770for as_dir in $PATH 6771do 6772 IFS=$as_save_IFS 6773 test -z "$as_dir" && as_dir=. 6774 for ac_exec_ext in '' $ac_executable_extensions; do 6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6776 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6778 break 2 6779 fi 6780done 6781 done 6782IFS=$as_save_IFS 6783 6784fi 6785fi 6786DSYMUTIL=$ac_cv_prog_DSYMUTIL 6787if test -n "$DSYMUTIL"; then 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6789$as_echo "$DSYMUTIL" >&6; } 6790else 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6792$as_echo "no" >&6; } 6793fi 6794 6795 6796fi 6797if test -z "$ac_cv_prog_DSYMUTIL"; then 6798 ac_ct_DSYMUTIL=$DSYMUTIL 6799 # Extract the first word of "dsymutil", so it can be a program name with args. 6800set dummy dsymutil; ac_word=$2 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6802$as_echo_n "checking for $ac_word... " >&6; } 6803if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 if test -n "$ac_ct_DSYMUTIL"; then 6807 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6808else 6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6810for as_dir in $PATH 6811do 6812 IFS=$as_save_IFS 6813 test -z "$as_dir" && as_dir=. 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6816 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821 done 6822IFS=$as_save_IFS 6823 6824fi 6825fi 6826ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6827if test -n "$ac_ct_DSYMUTIL"; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6829$as_echo "$ac_ct_DSYMUTIL" >&6; } 6830else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832$as_echo "no" >&6; } 6833fi 6834 6835 if test "x$ac_ct_DSYMUTIL" = x; then 6836 DSYMUTIL=":" 6837 else 6838 case $cross_compiling:$ac_tool_warned in 6839yes:) 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6842ac_tool_warned=yes ;; 6843esac 6844 DSYMUTIL=$ac_ct_DSYMUTIL 6845 fi 6846else 6847 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6848fi 6849 6850 if test -n "$ac_tool_prefix"; then 6851 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6852set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6854$as_echo_n "checking for $ac_word... " >&6; } 6855if ${ac_cv_prog_NMEDIT+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857else 6858 if test -n "$NMEDIT"; then 6859 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6860else 6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862for as_dir in $PATH 6863do 6864 IFS=$as_save_IFS 6865 test -z "$as_dir" && as_dir=. 6866 for ac_exec_ext in '' $ac_executable_extensions; do 6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6868 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6870 break 2 6871 fi 6872done 6873 done 6874IFS=$as_save_IFS 6875 6876fi 6877fi 6878NMEDIT=$ac_cv_prog_NMEDIT 6879if test -n "$NMEDIT"; then 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6881$as_echo "$NMEDIT" >&6; } 6882else 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6884$as_echo "no" >&6; } 6885fi 6886 6887 6888fi 6889if test -z "$ac_cv_prog_NMEDIT"; then 6890 ac_ct_NMEDIT=$NMEDIT 6891 # Extract the first word of "nmedit", so it can be a program name with args. 6892set dummy nmedit; ac_word=$2 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6894$as_echo_n "checking for $ac_word... " >&6; } 6895if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6896 $as_echo_n "(cached) " >&6 6897else 6898 if test -n "$ac_ct_NMEDIT"; then 6899 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6900else 6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6902for as_dir in $PATH 6903do 6904 IFS=$as_save_IFS 6905 test -z "$as_dir" && as_dir=. 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6908 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912done 6913 done 6914IFS=$as_save_IFS 6915 6916fi 6917fi 6918ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6919if test -n "$ac_ct_NMEDIT"; then 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6921$as_echo "$ac_ct_NMEDIT" >&6; } 6922else 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6924$as_echo "no" >&6; } 6925fi 6926 6927 if test "x$ac_ct_NMEDIT" = x; then 6928 NMEDIT=":" 6929 else 6930 case $cross_compiling:$ac_tool_warned in 6931yes:) 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6934ac_tool_warned=yes ;; 6935esac 6936 NMEDIT=$ac_ct_NMEDIT 6937 fi 6938else 6939 NMEDIT="$ac_cv_prog_NMEDIT" 6940fi 6941 6942 if test -n "$ac_tool_prefix"; then 6943 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6944set dummy ${ac_tool_prefix}lipo; ac_word=$2 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6946$as_echo_n "checking for $ac_word... " >&6; } 6947if ${ac_cv_prog_LIPO+:} false; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 if test -n "$LIPO"; then 6951 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6952else 6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6954for as_dir in $PATH 6955do 6956 IFS=$as_save_IFS 6957 test -z "$as_dir" && as_dir=. 6958 for ac_exec_ext in '' $ac_executable_extensions; do 6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6960 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6962 break 2 6963 fi 6964done 6965 done 6966IFS=$as_save_IFS 6967 6968fi 6969fi 6970LIPO=$ac_cv_prog_LIPO 6971if test -n "$LIPO"; then 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6973$as_echo "$LIPO" >&6; } 6974else 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6976$as_echo "no" >&6; } 6977fi 6978 6979 6980fi 6981if test -z "$ac_cv_prog_LIPO"; then 6982 ac_ct_LIPO=$LIPO 6983 # Extract the first word of "lipo", so it can be a program name with args. 6984set dummy lipo; ac_word=$2 6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6986$as_echo_n "checking for $ac_word... " >&6; } 6987if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6988 $as_echo_n "(cached) " >&6 6989else 6990 if test -n "$ac_ct_LIPO"; then 6991 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6992else 6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6994for as_dir in $PATH 6995do 6996 IFS=$as_save_IFS 6997 test -z "$as_dir" && as_dir=. 6998 for ac_exec_ext in '' $ac_executable_extensions; do 6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7000 ac_cv_prog_ac_ct_LIPO="lipo" 7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7002 break 2 7003 fi 7004done 7005 done 7006IFS=$as_save_IFS 7007 7008fi 7009fi 7010ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7011if test -n "$ac_ct_LIPO"; then 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7013$as_echo "$ac_ct_LIPO" >&6; } 7014else 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7016$as_echo "no" >&6; } 7017fi 7018 7019 if test "x$ac_ct_LIPO" = x; then 7020 LIPO=":" 7021 else 7022 case $cross_compiling:$ac_tool_warned in 7023yes:) 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7026ac_tool_warned=yes ;; 7027esac 7028 LIPO=$ac_ct_LIPO 7029 fi 7030else 7031 LIPO="$ac_cv_prog_LIPO" 7032fi 7033 7034 if test -n "$ac_tool_prefix"; then 7035 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7036set dummy ${ac_tool_prefix}otool; ac_word=$2 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7038$as_echo_n "checking for $ac_word... " >&6; } 7039if ${ac_cv_prog_OTOOL+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 if test -n "$OTOOL"; then 7043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7044else 7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046for as_dir in $PATH 7047do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7052 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056done 7057 done 7058IFS=$as_save_IFS 7059 7060fi 7061fi 7062OTOOL=$ac_cv_prog_OTOOL 7063if test -n "$OTOOL"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7065$as_echo "$OTOOL" >&6; } 7066else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068$as_echo "no" >&6; } 7069fi 7070 7071 7072fi 7073if test -z "$ac_cv_prog_OTOOL"; then 7074 ac_ct_OTOOL=$OTOOL 7075 # Extract the first word of "otool", so it can be a program name with args. 7076set dummy otool; ac_word=$2 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7078$as_echo_n "checking for $ac_word... " >&6; } 7079if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 if test -n "$ac_ct_OTOOL"; then 7083 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7084else 7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086for as_dir in $PATH 7087do 7088 IFS=$as_save_IFS 7089 test -z "$as_dir" && as_dir=. 7090 for ac_exec_ext in '' $ac_executable_extensions; do 7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7092 ac_cv_prog_ac_ct_OTOOL="otool" 7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7094 break 2 7095 fi 7096done 7097 done 7098IFS=$as_save_IFS 7099 7100fi 7101fi 7102ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7103if test -n "$ac_ct_OTOOL"; then 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7105$as_echo "$ac_ct_OTOOL" >&6; } 7106else 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7108$as_echo "no" >&6; } 7109fi 7110 7111 if test "x$ac_ct_OTOOL" = x; then 7112 OTOOL=":" 7113 else 7114 case $cross_compiling:$ac_tool_warned in 7115yes:) 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7118ac_tool_warned=yes ;; 7119esac 7120 OTOOL=$ac_ct_OTOOL 7121 fi 7122else 7123 OTOOL="$ac_cv_prog_OTOOL" 7124fi 7125 7126 if test -n "$ac_tool_prefix"; then 7127 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7128set dummy ${ac_tool_prefix}otool64; ac_word=$2 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130$as_echo_n "checking for $ac_word... " >&6; } 7131if ${ac_cv_prog_OTOOL64+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 if test -n "$OTOOL64"; then 7135 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7144 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi 7153fi 7154OTOOL64=$ac_cv_prog_OTOOL64 7155if test -n "$OTOOL64"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7157$as_echo "$OTOOL64" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160$as_echo "no" >&6; } 7161fi 7162 7163 7164fi 7165if test -z "$ac_cv_prog_OTOOL64"; then 7166 ac_ct_OTOOL64=$OTOOL64 7167 # Extract the first word of "otool64", so it can be a program name with args. 7168set dummy otool64; ac_word=$2 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7170$as_echo_n "checking for $ac_word... " >&6; } 7171if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 if test -n "$ac_ct_OTOOL64"; then 7175 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7176else 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7184 ac_cv_prog_ac_ct_OTOOL64="otool64" 7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189 done 7190IFS=$as_save_IFS 7191 7192fi 7193fi 7194ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7195if test -n "$ac_ct_OTOOL64"; then 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7197$as_echo "$ac_ct_OTOOL64" >&6; } 7198else 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7200$as_echo "no" >&6; } 7201fi 7202 7203 if test "x$ac_ct_OTOOL64" = x; then 7204 OTOOL64=":" 7205 else 7206 case $cross_compiling:$ac_tool_warned in 7207yes:) 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7210ac_tool_warned=yes ;; 7211esac 7212 OTOOL64=$ac_ct_OTOOL64 7213 fi 7214else 7215 OTOOL64="$ac_cv_prog_OTOOL64" 7216fi 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7245$as_echo_n "checking for -single_module linker flag... " >&6; } 7246if ${lt_cv_apple_cc_single_mod+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 lt_cv_apple_cc_single_mod=no 7250 if test -z "${LT_MULTI_MODULE}"; then 7251 # By default we will add the -single_module flag. You can override 7252 # by either setting the environment variable LT_MULTI_MODULE 7253 # non-empty at configure time, or by adding -multi_module to the 7254 # link flags. 7255 rm -rf libconftest.dylib* 7256 echo "int foo(void){return 1;}" > conftest.c 7257 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7258-dynamiclib -Wl,-single_module conftest.c" >&5 7259 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7260 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7261 _lt_result=$? 7262 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7263 lt_cv_apple_cc_single_mod=yes 7264 else 7265 cat conftest.err >&5 7266 fi 7267 rm -rf libconftest.dylib* 7268 rm -f conftest.* 7269 fi 7270fi 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7272$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7274$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7275if ${lt_cv_ld_exported_symbols_list+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 lt_cv_ld_exported_symbols_list=no 7279 save_LDFLAGS=$LDFLAGS 7280 echo "_main" > conftest.sym 7281 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7283/* end confdefs.h. */ 7284 7285int 7286main () 7287{ 7288 7289 ; 7290 return 0; 7291} 7292_ACEOF 7293if ac_fn_c_try_link "$LINENO"; then : 7294 lt_cv_ld_exported_symbols_list=yes 7295else 7296 lt_cv_ld_exported_symbols_list=no 7297fi 7298rm -f core conftest.err conftest.$ac_objext \ 7299 conftest$ac_exeext conftest.$ac_ext 7300 LDFLAGS="$save_LDFLAGS" 7301 7302fi 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7304$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7306$as_echo_n "checking for -force_load linker flag... " >&6; } 7307if ${lt_cv_ld_force_load+:} false; then : 7308 $as_echo_n "(cached) " >&6 7309else 7310 lt_cv_ld_force_load=no 7311 cat > conftest.c << _LT_EOF 7312int forced_loaded() { return 2;} 7313_LT_EOF 7314 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7315 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7316 echo "$AR cru libconftest.a conftest.o" >&5 7317 $AR cru libconftest.a conftest.o 2>&5 7318 echo "$RANLIB libconftest.a" >&5 7319 $RANLIB libconftest.a 2>&5 7320 cat > conftest.c << _LT_EOF 7321int main() { return 0;} 7322_LT_EOF 7323 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7324 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7325 _lt_result=$? 7326 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7327 lt_cv_ld_force_load=yes 7328 else 7329 cat conftest.err >&5 7330 fi 7331 rm -f conftest.err libconftest.a conftest conftest.c 7332 rm -rf conftest.dSYM 7333 7334fi 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7336$as_echo "$lt_cv_ld_force_load" >&6; } 7337 case $host_os in 7338 rhapsody* | darwin1.[012]) 7339 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7340 darwin1.*) 7341 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7342 darwin*) # darwin 5.x on 7343 # if running on 10.5 or later, the deployment target defaults 7344 # to the OS version, if on x86, and 10.4, the deployment 7345 # target defaults to 10.4. Don't you love it? 7346 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7347 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7349 10.[012]*) 7350 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7351 10.*) 7352 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7353 esac 7354 ;; 7355 esac 7356 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7357 _lt_dar_single_mod='$single_module' 7358 fi 7359 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7360 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7361 else 7362 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7363 fi 7364 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7365 _lt_dsymutil='~$DSYMUTIL $lib || :' 7366 else 7367 _lt_dsymutil= 7368 fi 7369 ;; 7370 esac 7371 7372ac_ext=c 7373ac_cpp='$CPP $CPPFLAGS' 7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7376ac_compiler_gnu=$ac_cv_c_compiler_gnu 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7378$as_echo_n "checking how to run the C preprocessor... " >&6; } 7379# On Suns, sometimes $CPP names a directory. 7380if test -n "$CPP" && test -d "$CPP"; then 7381 CPP= 7382fi 7383if test -z "$CPP"; then 7384 if ${ac_cv_prog_CPP+:} false; then : 7385 $as_echo_n "(cached) " >&6 7386else 7387 # Double quotes because CPP needs to be expanded 7388 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7389 do 7390 ac_preproc_ok=false 7391for ac_c_preproc_warn_flag in '' yes 7392do 7393 # Use a header file that comes with gcc, so configuring glibc 7394 # with a fresh cross-compiler works. 7395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7396 # <limits.h> exists even on freestanding compilers. 7397 # On the NeXT, cc -E runs the code through the compiler's parser, 7398 # not just through cpp. "Syntax error" is here to catch this case. 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401#ifdef __STDC__ 7402# include <limits.h> 7403#else 7404# include <assert.h> 7405#endif 7406 Syntax error 7407_ACEOF 7408if ac_fn_c_try_cpp "$LINENO"; then : 7409 7410else 7411 # Broken: fails on valid input. 7412continue 7413fi 7414rm -f conftest.err conftest.i conftest.$ac_ext 7415 7416 # OK, works on sane cases. Now check whether nonexistent headers 7417 # can be detected and how. 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7419/* end confdefs.h. */ 7420#include <ac_nonexistent.h> 7421_ACEOF 7422if ac_fn_c_try_cpp "$LINENO"; then : 7423 # Broken: success on invalid input. 7424continue 7425else 7426 # Passes both tests. 7427ac_preproc_ok=: 7428break 7429fi 7430rm -f conftest.err conftest.i conftest.$ac_ext 7431 7432done 7433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7434rm -f conftest.i conftest.err conftest.$ac_ext 7435if $ac_preproc_ok; then : 7436 break 7437fi 7438 7439 done 7440 ac_cv_prog_CPP=$CPP 7441 7442fi 7443 CPP=$ac_cv_prog_CPP 7444else 7445 ac_cv_prog_CPP=$CPP 7446fi 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7448$as_echo "$CPP" >&6; } 7449ac_preproc_ok=false 7450for ac_c_preproc_warn_flag in '' yes 7451do 7452 # Use a header file that comes with gcc, so configuring glibc 7453 # with a fresh cross-compiler works. 7454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7455 # <limits.h> exists even on freestanding compilers. 7456 # On the NeXT, cc -E runs the code through the compiler's parser, 7457 # not just through cpp. "Syntax error" is here to catch this case. 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460#ifdef __STDC__ 7461# include <limits.h> 7462#else 7463# include <assert.h> 7464#endif 7465 Syntax error 7466_ACEOF 7467if ac_fn_c_try_cpp "$LINENO"; then : 7468 7469else 7470 # Broken: fails on valid input. 7471continue 7472fi 7473rm -f conftest.err conftest.i conftest.$ac_ext 7474 7475 # OK, works on sane cases. Now check whether nonexistent headers 7476 # can be detected and how. 7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479#include <ac_nonexistent.h> 7480_ACEOF 7481if ac_fn_c_try_cpp "$LINENO"; then : 7482 # Broken: success on invalid input. 7483continue 7484else 7485 # Passes both tests. 7486ac_preproc_ok=: 7487break 7488fi 7489rm -f conftest.err conftest.i conftest.$ac_ext 7490 7491done 7492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7493rm -f conftest.i conftest.err conftest.$ac_ext 7494if $ac_preproc_ok; then : 7495 7496else 7497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7499as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7500See \`config.log' for more details" "$LINENO" 5; } 7501fi 7502 7503ac_ext=c 7504ac_cpp='$CPP $CPPFLAGS' 7505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7507ac_compiler_gnu=$ac_cv_c_compiler_gnu 7508 7509 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7511$as_echo_n "checking for ANSI C header files... " >&6; } 7512if ${ac_cv_header_stdc+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7516/* end confdefs.h. */ 7517#include <stdlib.h> 7518#include <stdarg.h> 7519#include <string.h> 7520#include <float.h> 7521 7522int 7523main () 7524{ 7525 7526 ; 7527 return 0; 7528} 7529_ACEOF 7530if ac_fn_c_try_compile "$LINENO"; then : 7531 ac_cv_header_stdc=yes 7532else 7533 ac_cv_header_stdc=no 7534fi 7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7536 7537if test $ac_cv_header_stdc = yes; then 7538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540/* end confdefs.h. */ 7541#include <string.h> 7542 7543_ACEOF 7544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7545 $EGREP "memchr" >/dev/null 2>&1; then : 7546 7547else 7548 ac_cv_header_stdc=no 7549fi 7550rm -f conftest* 7551 7552fi 7553 7554if test $ac_cv_header_stdc = yes; then 7555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558#include <stdlib.h> 7559 7560_ACEOF 7561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7562 $EGREP "free" >/dev/null 2>&1; then : 7563 7564else 7565 ac_cv_header_stdc=no 7566fi 7567rm -f conftest* 7568 7569fi 7570 7571if test $ac_cv_header_stdc = yes; then 7572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7573 if test "$cross_compiling" = yes; then : 7574 : 7575else 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578#include <ctype.h> 7579#include <stdlib.h> 7580#if ((' ' & 0x0FF) == 0x020) 7581# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7582# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7583#else 7584# define ISLOWER(c) \ 7585 (('a' <= (c) && (c) <= 'i') \ 7586 || ('j' <= (c) && (c) <= 'r') \ 7587 || ('s' <= (c) && (c) <= 'z')) 7588# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7589#endif 7590 7591#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7592int 7593main () 7594{ 7595 int i; 7596 for (i = 0; i < 256; i++) 7597 if (XOR (islower (i), ISLOWER (i)) 7598 || toupper (i) != TOUPPER (i)) 7599 return 2; 7600 return 0; 7601} 7602_ACEOF 7603if ac_fn_c_try_run "$LINENO"; then : 7604 7605else 7606 ac_cv_header_stdc=no 7607fi 7608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7609 conftest.$ac_objext conftest.beam conftest.$ac_ext 7610fi 7611 7612fi 7613fi 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7615$as_echo "$ac_cv_header_stdc" >&6; } 7616if test $ac_cv_header_stdc = yes; then 7617 7618$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7619 7620fi 7621 7622# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7623for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7624 inttypes.h stdint.h unistd.h 7625do : 7626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7627ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7628" 7629if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7630 cat >>confdefs.h <<_ACEOF 7631#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7632_ACEOF 7633 7634fi 7635 7636done 7637 7638 7639for ac_header in dlfcn.h 7640do : 7641 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7642" 7643if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7644 cat >>confdefs.h <<_ACEOF 7645#define HAVE_DLFCN_H 1 7646_ACEOF 7647 7648fi 7649 7650done 7651 7652 7653 7654 7655 7656# Set options 7657 7658 7659 7660 enable_dlopen=no 7661 7662 7663 7664 # Check whether --enable-shared was given. 7665if test "${enable_shared+set}" = set; then : 7666 enableval=$enable_shared; p=${PACKAGE-default} 7667 case $enableval in 7668 yes) enable_shared=yes ;; 7669 no) enable_shared=no ;; 7670 *) 7671 enable_shared=no 7672 # Look at the argument we got. We use all the common list separators. 7673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7674 for pkg in $enableval; do 7675 IFS="$lt_save_ifs" 7676 if test "X$pkg" = "X$p"; then 7677 enable_shared=yes 7678 fi 7679 done 7680 IFS="$lt_save_ifs" 7681 ;; 7682 esac 7683else 7684 enable_shared=yes 7685fi 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 # Check whether --enable-static was given. 7696if test "${enable_static+set}" = set; then : 7697 enableval=$enable_static; p=${PACKAGE-default} 7698 case $enableval in 7699 yes) enable_static=yes ;; 7700 no) enable_static=no ;; 7701 *) 7702 enable_static=no 7703 # Look at the argument we got. We use all the common list separators. 7704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7705 for pkg in $enableval; do 7706 IFS="$lt_save_ifs" 7707 if test "X$pkg" = "X$p"; then 7708 enable_static=yes 7709 fi 7710 done 7711 IFS="$lt_save_ifs" 7712 ;; 7713 esac 7714else 7715 enable_static=yes 7716fi 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727# Check whether --with-pic was given. 7728if test "${with_pic+set}" = set; then : 7729 withval=$with_pic; pic_mode="$withval" 7730else 7731 pic_mode=default 7732fi 7733 7734 7735test -z "$pic_mode" && pic_mode=default 7736 7737 7738 7739 7740 7741 7742 7743 # Check whether --enable-fast-install was given. 7744if test "${enable_fast_install+set}" = set; then : 7745 enableval=$enable_fast_install; p=${PACKAGE-default} 7746 case $enableval in 7747 yes) enable_fast_install=yes ;; 7748 no) enable_fast_install=no ;; 7749 *) 7750 enable_fast_install=no 7751 # Look at the argument we got. We use all the common list separators. 7752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7753 for pkg in $enableval; do 7754 IFS="$lt_save_ifs" 7755 if test "X$pkg" = "X$p"; then 7756 enable_fast_install=yes 7757 fi 7758 done 7759 IFS="$lt_save_ifs" 7760 ;; 7761 esac 7762else 7763 enable_fast_install=yes 7764fi 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776# This can be used to rebuild libtool when needed 7777LIBTOOL_DEPS="$ltmain" 7778 7779# Always use our own libtool. 7780LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807test -z "$LN_S" && LN_S="ln -s" 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822if test -n "${ZSH_VERSION+set}" ; then 7823 setopt NO_GLOB_SUBST 7824fi 7825 7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7827$as_echo_n "checking for objdir... " >&6; } 7828if ${lt_cv_objdir+:} false; then : 7829 $as_echo_n "(cached) " >&6 7830else 7831 rm -f .libs 2>/dev/null 7832mkdir .libs 2>/dev/null 7833if test -d .libs; then 7834 lt_cv_objdir=.libs 7835else 7836 # MS-DOS does not allow filenames that begin with a dot. 7837 lt_cv_objdir=_libs 7838fi 7839rmdir .libs 2>/dev/null 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7842$as_echo "$lt_cv_objdir" >&6; } 7843objdir=$lt_cv_objdir 7844 7845 7846 7847 7848 7849cat >>confdefs.h <<_ACEOF 7850#define LT_OBJDIR "$lt_cv_objdir/" 7851_ACEOF 7852 7853 7854 7855 7856case $host_os in 7857aix3*) 7858 # AIX sometimes has problems with the GCC collect2 program. For some 7859 # reason, if we set the COLLECT_NAMES environment variable, the problems 7860 # vanish in a puff of smoke. 7861 if test "X${COLLECT_NAMES+set}" != Xset; then 7862 COLLECT_NAMES= 7863 export COLLECT_NAMES 7864 fi 7865 ;; 7866esac 7867 7868# Global variables: 7869ofile=libtool 7870can_build_shared=yes 7871 7872# All known linkers require a `.a' archive for static linking (except MSVC, 7873# which needs '.lib'). 7874libext=a 7875 7876with_gnu_ld="$lt_cv_prog_gnu_ld" 7877 7878old_CC="$CC" 7879old_CFLAGS="$CFLAGS" 7880 7881# Set sane defaults for various variables 7882test -z "$CC" && CC=cc 7883test -z "$LTCC" && LTCC=$CC 7884test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7885test -z "$LD" && LD=ld 7886test -z "$ac_objext" && ac_objext=o 7887 7888for cc_temp in $compiler""; do 7889 case $cc_temp in 7890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7892 \-*) ;; 7893 *) break;; 7894 esac 7895done 7896cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7897 7898 7899# Only perform the check for file, if the check method requires it 7900test -z "$MAGIC_CMD" && MAGIC_CMD=file 7901case $deplibs_check_method in 7902file_magic*) 7903 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7905$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7906if ${lt_cv_path_MAGIC_CMD+:} false; then : 7907 $as_echo_n "(cached) " >&6 7908else 7909 case $MAGIC_CMD in 7910[\\/*] | ?:[\\/]*) 7911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7912 ;; 7913*) 7914 lt_save_MAGIC_CMD="$MAGIC_CMD" 7915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7917 for ac_dir in $ac_dummy; do 7918 IFS="$lt_save_ifs" 7919 test -z "$ac_dir" && ac_dir=. 7920 if test -f $ac_dir/${ac_tool_prefix}file; then 7921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7922 if test -n "$file_magic_test_file"; then 7923 case $deplibs_check_method in 7924 "file_magic "*) 7925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7928 $EGREP "$file_magic_regex" > /dev/null; then 7929 : 7930 else 7931 cat <<_LT_EOF 1>&2 7932 7933*** Warning: the command libtool uses to detect shared libraries, 7934*** $file_magic_cmd, produces output that libtool cannot recognize. 7935*** The result is that libtool may fail to recognize shared libraries 7936*** as such. This will affect the creation of libtool libraries that 7937*** depend on shared libraries, but programs linked with such libtool 7938*** libraries will work regardless of this problem. Nevertheless, you 7939*** may want to report the problem to your system manager and/or to 7940*** bug-libtool@gnu.org 7941 7942_LT_EOF 7943 fi ;; 7944 esac 7945 fi 7946 break 7947 fi 7948 done 7949 IFS="$lt_save_ifs" 7950 MAGIC_CMD="$lt_save_MAGIC_CMD" 7951 ;; 7952esac 7953fi 7954 7955MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7956if test -n "$MAGIC_CMD"; then 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7958$as_echo "$MAGIC_CMD" >&6; } 7959else 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7961$as_echo "no" >&6; } 7962fi 7963 7964 7965 7966 7967 7968if test -z "$lt_cv_path_MAGIC_CMD"; then 7969 if test -n "$ac_tool_prefix"; then 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7971$as_echo_n "checking for file... " >&6; } 7972if ${lt_cv_path_MAGIC_CMD+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 case $MAGIC_CMD in 7976[\\/*] | ?:[\\/]*) 7977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7978 ;; 7979*) 7980 lt_save_MAGIC_CMD="$MAGIC_CMD" 7981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7983 for ac_dir in $ac_dummy; do 7984 IFS="$lt_save_ifs" 7985 test -z "$ac_dir" && ac_dir=. 7986 if test -f $ac_dir/file; then 7987 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7988 if test -n "$file_magic_test_file"; then 7989 case $deplibs_check_method in 7990 "file_magic "*) 7991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7994 $EGREP "$file_magic_regex" > /dev/null; then 7995 : 7996 else 7997 cat <<_LT_EOF 1>&2 7998 7999*** Warning: the command libtool uses to detect shared libraries, 8000*** $file_magic_cmd, produces output that libtool cannot recognize. 8001*** The result is that libtool may fail to recognize shared libraries 8002*** as such. This will affect the creation of libtool libraries that 8003*** depend on shared libraries, but programs linked with such libtool 8004*** libraries will work regardless of this problem. Nevertheless, you 8005*** may want to report the problem to your system manager and/or to 8006*** bug-libtool@gnu.org 8007 8008_LT_EOF 8009 fi ;; 8010 esac 8011 fi 8012 break 8013 fi 8014 done 8015 IFS="$lt_save_ifs" 8016 MAGIC_CMD="$lt_save_MAGIC_CMD" 8017 ;; 8018esac 8019fi 8020 8021MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8022if test -n "$MAGIC_CMD"; then 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8024$as_echo "$MAGIC_CMD" >&6; } 8025else 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8027$as_echo "no" >&6; } 8028fi 8029 8030 8031 else 8032 MAGIC_CMD=: 8033 fi 8034fi 8035 8036 fi 8037 ;; 8038esac 8039 8040# Use C for the default configuration in the libtool script 8041 8042lt_save_CC="$CC" 8043ac_ext=c 8044ac_cpp='$CPP $CPPFLAGS' 8045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8047ac_compiler_gnu=$ac_cv_c_compiler_gnu 8048 8049 8050# Source file extension for C test sources. 8051ac_ext=c 8052 8053# Object file extension for compiled C test sources. 8054objext=o 8055objext=$objext 8056 8057# Code to be used in simple compile tests 8058lt_simple_compile_test_code="int some_variable = 0;" 8059 8060# Code to be used in simple link tests 8061lt_simple_link_test_code='int main(){return(0);}' 8062 8063 8064 8065 8066 8067 8068 8069# If no C compiler was specified, use CC. 8070LTCC=${LTCC-"$CC"} 8071 8072# If no C compiler flags were specified, use CFLAGS. 8073LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8074 8075# Allow CC to be a program name with arguments. 8076compiler=$CC 8077 8078# Save the default compiler, since it gets overwritten when the other 8079# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8080compiler_DEFAULT=$CC 8081 8082# save warnings/boilerplate of simple test code 8083ac_outfile=conftest.$ac_objext 8084echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8086_lt_compiler_boilerplate=`cat conftest.err` 8087$RM conftest* 8088 8089ac_outfile=conftest.$ac_objext 8090echo "$lt_simple_link_test_code" >conftest.$ac_ext 8091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8092_lt_linker_boilerplate=`cat conftest.err` 8093$RM -r conftest* 8094 8095 8096if test -n "$compiler"; then 8097 8098lt_prog_compiler_no_builtin_flag= 8099 8100if test "$GCC" = yes; then 8101 case $cc_basename in 8102 nvcc*) 8103 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8104 *) 8105 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8106 esac 8107 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8109$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8110if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 lt_cv_prog_compiler_rtti_exceptions=no 8114 ac_outfile=conftest.$ac_objext 8115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8116 lt_compiler_flag="-fno-rtti -fno-exceptions" 8117 # Insert the option either (1) after the last *FLAGS variable, or 8118 # (2) before a word containing "conftest.", or (3) at the end. 8119 # Note that $ac_compile itself does not contain backslashes and begins 8120 # with a dollar sign (not a hyphen), so the echo should work correctly. 8121 # The option is referenced via a variable to avoid confusing sed. 8122 lt_compile=`echo "$ac_compile" | $SED \ 8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8125 -e 's:$: $lt_compiler_flag:'` 8126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8127 (eval "$lt_compile" 2>conftest.err) 8128 ac_status=$? 8129 cat conftest.err >&5 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 if (exit $ac_status) && test -s "$ac_outfile"; then 8132 # The compiler can only warn and ignore the option if not recognized 8133 # So say no if there are warnings other than the usual output. 8134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8137 lt_cv_prog_compiler_rtti_exceptions=yes 8138 fi 8139 fi 8140 $RM conftest* 8141 8142fi 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8144$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8145 8146if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8147 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8148else 8149 : 8150fi 8151 8152fi 8153 8154 8155 8156 8157 8158 8159 lt_prog_compiler_wl= 8160lt_prog_compiler_pic= 8161lt_prog_compiler_static= 8162 8163 8164 if test "$GCC" = yes; then 8165 lt_prog_compiler_wl='-Wl,' 8166 lt_prog_compiler_static='-static' 8167 8168 case $host_os in 8169 aix*) 8170 # All AIX code is PIC. 8171 if test "$host_cpu" = ia64; then 8172 # AIX 5 now supports IA64 processor 8173 lt_prog_compiler_static='-Bstatic' 8174 fi 8175 ;; 8176 8177 amigaos*) 8178 case $host_cpu in 8179 powerpc) 8180 # see comment about AmigaOS4 .so support 8181 lt_prog_compiler_pic='-fPIC' 8182 ;; 8183 m68k) 8184 # FIXME: we need at least 68020 code to build shared libraries, but 8185 # adding the `-m68020' flag to GCC prevents building anything better, 8186 # like `-m68040'. 8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8188 ;; 8189 esac 8190 ;; 8191 8192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8193 # PIC is the default for these OSes. 8194 ;; 8195 8196 mingw* | cygwin* | pw32* | os2* | cegcc*) 8197 # This hack is so that the source file can tell whether it is being 8198 # built for inclusion in a dll (and should export symbols for example). 8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8200 # (--disable-auto-import) libraries 8201 lt_prog_compiler_pic='-DDLL_EXPORT' 8202 ;; 8203 8204 darwin* | rhapsody*) 8205 # PIC is the default on this platform 8206 # Common symbols not allowed in MH_DYLIB files 8207 lt_prog_compiler_pic='-fno-common' 8208 ;; 8209 8210 haiku*) 8211 # PIC is the default for Haiku. 8212 # The "-static" flag exists, but is broken. 8213 lt_prog_compiler_static= 8214 ;; 8215 8216 hpux*) 8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8219 # sets the default TLS model and affects inlining. 8220 case $host_cpu in 8221 hppa*64*) 8222 # +Z the default 8223 ;; 8224 *) 8225 lt_prog_compiler_pic='-fPIC' 8226 ;; 8227 esac 8228 ;; 8229 8230 interix[3-9]*) 8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8232 # Instead, we relocate shared libraries at runtime. 8233 ;; 8234 8235 msdosdjgpp*) 8236 # Just because we use GCC doesn't mean we suddenly get shared libraries 8237 # on systems that don't support them. 8238 lt_prog_compiler_can_build_shared=no 8239 enable_shared=no 8240 ;; 8241 8242 *nto* | *qnx*) 8243 # QNX uses GNU C++, but need to define -shared option too, otherwise 8244 # it will coredump. 8245 lt_prog_compiler_pic='-fPIC -shared' 8246 ;; 8247 8248 sysv4*MP*) 8249 if test -d /usr/nec; then 8250 lt_prog_compiler_pic=-Kconform_pic 8251 fi 8252 ;; 8253 8254 *) 8255 lt_prog_compiler_pic='-fPIC' 8256 ;; 8257 esac 8258 8259 case $cc_basename in 8260 nvcc*) # Cuda Compiler Driver 2.2 8261 lt_prog_compiler_wl='-Xlinker ' 8262 lt_prog_compiler_pic='-Xcompiler -fPIC' 8263 ;; 8264 esac 8265 else 8266 # PORTME Check for flag to pass linker flags through the system compiler. 8267 case $host_os in 8268 aix*) 8269 lt_prog_compiler_wl='-Wl,' 8270 if test "$host_cpu" = ia64; then 8271 # AIX 5 now supports IA64 processor 8272 lt_prog_compiler_static='-Bstatic' 8273 else 8274 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8275 fi 8276 ;; 8277 8278 mingw* | cygwin* | pw32* | os2* | cegcc*) 8279 # This hack is so that the source file can tell whether it is being 8280 # built for inclusion in a dll (and should export symbols for example). 8281 lt_prog_compiler_pic='-DDLL_EXPORT' 8282 ;; 8283 8284 hpux9* | hpux10* | hpux11*) 8285 lt_prog_compiler_wl='-Wl,' 8286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8287 # not for PA HP-UX. 8288 case $host_cpu in 8289 hppa*64*|ia64*) 8290 # +Z the default 8291 ;; 8292 *) 8293 lt_prog_compiler_pic='+Z' 8294 ;; 8295 esac 8296 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8297 lt_prog_compiler_static='${wl}-a ${wl}archive' 8298 ;; 8299 8300 irix5* | irix6* | nonstopux*) 8301 lt_prog_compiler_wl='-Wl,' 8302 # PIC (with -KPIC) is the default. 8303 lt_prog_compiler_static='-non_shared' 8304 ;; 8305 8306 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8307 case $cc_basename in 8308 # old Intel for x86_64 which still supported -KPIC. 8309 ecc*) 8310 lt_prog_compiler_wl='-Wl,' 8311 lt_prog_compiler_pic='-KPIC' 8312 lt_prog_compiler_static='-static' 8313 ;; 8314 # icc used to be incompatible with GCC. 8315 # ICC 10 doesn't accept -KPIC any more. 8316 icc* | ifort*) 8317 lt_prog_compiler_wl='-Wl,' 8318 lt_prog_compiler_pic='-fPIC' 8319 lt_prog_compiler_static='-static' 8320 ;; 8321 # Lahey Fortran 8.1. 8322 lf95*) 8323 lt_prog_compiler_wl='-Wl,' 8324 lt_prog_compiler_pic='--shared' 8325 lt_prog_compiler_static='--static' 8326 ;; 8327 nagfor*) 8328 # NAG Fortran compiler 8329 lt_prog_compiler_wl='-Wl,-Wl,,' 8330 lt_prog_compiler_pic='-PIC' 8331 lt_prog_compiler_static='-Bstatic' 8332 ;; 8333 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8334 # Portland Group compilers (*not* the Pentium gcc compiler, 8335 # which looks to be a dead project) 8336 lt_prog_compiler_wl='-Wl,' 8337 lt_prog_compiler_pic='-fpic' 8338 lt_prog_compiler_static='-Bstatic' 8339 ;; 8340 ccc*) 8341 lt_prog_compiler_wl='-Wl,' 8342 # All Alpha code is PIC. 8343 lt_prog_compiler_static='-non_shared' 8344 ;; 8345 xl* | bgxl* | bgf* | mpixl*) 8346 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8347 lt_prog_compiler_wl='-Wl,' 8348 lt_prog_compiler_pic='-qpic' 8349 lt_prog_compiler_static='-qstaticlink' 8350 ;; 8351 *) 8352 case `$CC -V 2>&1 | sed 5q` in 8353 *Sun\ F* | *Sun*Fortran*) 8354 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8355 lt_prog_compiler_pic='-KPIC' 8356 lt_prog_compiler_static='-Bstatic' 8357 lt_prog_compiler_wl='' 8358 ;; 8359 *Sun\ C*) 8360 # Sun C 5.9 8361 lt_prog_compiler_pic='-KPIC' 8362 lt_prog_compiler_static='-Bstatic' 8363 lt_prog_compiler_wl='-Wl,' 8364 ;; 8365 esac 8366 ;; 8367 esac 8368 ;; 8369 8370 newsos6) 8371 lt_prog_compiler_pic='-KPIC' 8372 lt_prog_compiler_static='-Bstatic' 8373 ;; 8374 8375 *nto* | *qnx*) 8376 # QNX uses GNU C++, but need to define -shared option too, otherwise 8377 # it will coredump. 8378 lt_prog_compiler_pic='-fPIC -shared' 8379 ;; 8380 8381 osf3* | osf4* | osf5*) 8382 lt_prog_compiler_wl='-Wl,' 8383 # All OSF/1 code is PIC. 8384 lt_prog_compiler_static='-non_shared' 8385 ;; 8386 8387 rdos*) 8388 lt_prog_compiler_static='-non_shared' 8389 ;; 8390 8391 solaris*) 8392 lt_prog_compiler_pic='-KPIC' 8393 lt_prog_compiler_static='-Bstatic' 8394 case $cc_basename in 8395 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8396 lt_prog_compiler_wl='-Qoption ld ';; 8397 *) 8398 lt_prog_compiler_wl='-Wl,';; 8399 esac 8400 ;; 8401 8402 sunos4*) 8403 lt_prog_compiler_wl='-Qoption ld ' 8404 lt_prog_compiler_pic='-PIC' 8405 lt_prog_compiler_static='-Bstatic' 8406 ;; 8407 8408 sysv4 | sysv4.2uw2* | sysv4.3*) 8409 lt_prog_compiler_wl='-Wl,' 8410 lt_prog_compiler_pic='-KPIC' 8411 lt_prog_compiler_static='-Bstatic' 8412 ;; 8413 8414 sysv4*MP*) 8415 if test -d /usr/nec ;then 8416 lt_prog_compiler_pic='-Kconform_pic' 8417 lt_prog_compiler_static='-Bstatic' 8418 fi 8419 ;; 8420 8421 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_pic='-KPIC' 8424 lt_prog_compiler_static='-Bstatic' 8425 ;; 8426 8427 unicos*) 8428 lt_prog_compiler_wl='-Wl,' 8429 lt_prog_compiler_can_build_shared=no 8430 ;; 8431 8432 uts4*) 8433 lt_prog_compiler_pic='-pic' 8434 lt_prog_compiler_static='-Bstatic' 8435 ;; 8436 8437 *) 8438 lt_prog_compiler_can_build_shared=no 8439 ;; 8440 esac 8441 fi 8442 8443case $host_os in 8444 # For platforms which do not support PIC, -DPIC is meaningless: 8445 *djgpp*) 8446 lt_prog_compiler_pic= 8447 ;; 8448 *) 8449 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8450 ;; 8451esac 8452 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8454$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8455if ${lt_cv_prog_compiler_pic+:} false; then : 8456 $as_echo_n "(cached) " >&6 8457else 8458 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8459fi 8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8461$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8462lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8463 8464# 8465# Check to make sure the PIC flag actually works. 8466# 8467if test -n "$lt_prog_compiler_pic"; then 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8469$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8470if ${lt_cv_prog_compiler_pic_works+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472else 8473 lt_cv_prog_compiler_pic_works=no 8474 ac_outfile=conftest.$ac_objext 8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8477 # Insert the option either (1) after the last *FLAGS variable, or 8478 # (2) before a word containing "conftest.", or (3) at the end. 8479 # Note that $ac_compile itself does not contain backslashes and begins 8480 # with a dollar sign (not a hyphen), so the echo should work correctly. 8481 # The option is referenced via a variable to avoid confusing sed. 8482 lt_compile=`echo "$ac_compile" | $SED \ 8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8485 -e 's:$: $lt_compiler_flag:'` 8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8487 (eval "$lt_compile" 2>conftest.err) 8488 ac_status=$? 8489 cat conftest.err >&5 8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8491 if (exit $ac_status) && test -s "$ac_outfile"; then 8492 # The compiler can only warn and ignore the option if not recognized 8493 # So say no if there are warnings other than the usual output. 8494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8497 lt_cv_prog_compiler_pic_works=yes 8498 fi 8499 fi 8500 $RM conftest* 8501 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8504$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8505 8506if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8507 case $lt_prog_compiler_pic in 8508 "" | " "*) ;; 8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8510 esac 8511else 8512 lt_prog_compiler_pic= 8513 lt_prog_compiler_can_build_shared=no 8514fi 8515 8516fi 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528# 8529# Check to make sure the static flag actually works. 8530# 8531wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8533$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8534if ${lt_cv_prog_compiler_static_works+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 lt_cv_prog_compiler_static_works=no 8538 save_LDFLAGS="$LDFLAGS" 8539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8540 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8542 # The linker can only warn and ignore the option if not recognized 8543 # So say no if there are warnings 8544 if test -s conftest.err; then 8545 # Append any errors to the config.log. 8546 cat conftest.err 1>&5 8547 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8549 if diff conftest.exp conftest.er2 >/dev/null; then 8550 lt_cv_prog_compiler_static_works=yes 8551 fi 8552 else 8553 lt_cv_prog_compiler_static_works=yes 8554 fi 8555 fi 8556 $RM -r conftest* 8557 LDFLAGS="$save_LDFLAGS" 8558 8559fi 8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8561$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8562 8563if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8564 : 8565else 8566 lt_prog_compiler_static= 8567fi 8568 8569 8570 8571 8572 8573 8574 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8576$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8577if ${lt_cv_prog_compiler_c_o+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 lt_cv_prog_compiler_c_o=no 8581 $RM -r conftest 2>/dev/null 8582 mkdir conftest 8583 cd conftest 8584 mkdir out 8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8586 8587 lt_compiler_flag="-o out/conftest2.$ac_objext" 8588 # Insert the option either (1) after the last *FLAGS variable, or 8589 # (2) before a word containing "conftest.", or (3) at the end. 8590 # Note that $ac_compile itself does not contain backslashes and begins 8591 # with a dollar sign (not a hyphen), so the echo should work correctly. 8592 lt_compile=`echo "$ac_compile" | $SED \ 8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8595 -e 's:$: $lt_compiler_flag:'` 8596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8597 (eval "$lt_compile" 2>out/conftest.err) 8598 ac_status=$? 8599 cat out/conftest.err >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8601 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8602 then 8603 # The compiler can only warn and ignore the option if not recognized 8604 # So say no if there are warnings 8605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8608 lt_cv_prog_compiler_c_o=yes 8609 fi 8610 fi 8611 chmod u+w . 2>&5 8612 $RM conftest* 8613 # SGI C++ compiler will create directory out/ii_files/ for 8614 # template instantiation 8615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8616 $RM out/* && rmdir out 8617 cd .. 8618 $RM -r conftest 8619 $RM conftest* 8620 8621fi 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8623$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8624 8625 8626 8627 8628 8629 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8631$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8632if ${lt_cv_prog_compiler_c_o+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 lt_cv_prog_compiler_c_o=no 8636 $RM -r conftest 2>/dev/null 8637 mkdir conftest 8638 cd conftest 8639 mkdir out 8640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8641 8642 lt_compiler_flag="-o out/conftest2.$ac_objext" 8643 # Insert the option either (1) after the last *FLAGS variable, or 8644 # (2) before a word containing "conftest.", or (3) at the end. 8645 # Note that $ac_compile itself does not contain backslashes and begins 8646 # with a dollar sign (not a hyphen), so the echo should work correctly. 8647 lt_compile=`echo "$ac_compile" | $SED \ 8648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8650 -e 's:$: $lt_compiler_flag:'` 8651 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8652 (eval "$lt_compile" 2>out/conftest.err) 8653 ac_status=$? 8654 cat out/conftest.err >&5 8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8656 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8657 then 8658 # The compiler can only warn and ignore the option if not recognized 8659 # So say no if there are warnings 8660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8661 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8662 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8663 lt_cv_prog_compiler_c_o=yes 8664 fi 8665 fi 8666 chmod u+w . 2>&5 8667 $RM conftest* 8668 # SGI C++ compiler will create directory out/ii_files/ for 8669 # template instantiation 8670 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8671 $RM out/* && rmdir out 8672 cd .. 8673 $RM -r conftest 8674 $RM conftest* 8675 8676fi 8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8678$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8679 8680 8681 8682 8683hard_links="nottested" 8684if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8685 # do not overwrite the value of need_locks provided by the user 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8687$as_echo_n "checking if we can lock with hard links... " >&6; } 8688 hard_links=yes 8689 $RM conftest* 8690 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8691 touch conftest.a 8692 ln conftest.a conftest.b 2>&5 || hard_links=no 8693 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8695$as_echo "$hard_links" >&6; } 8696 if test "$hard_links" = no; then 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8698$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8699 need_locks=warn 8700 fi 8701else 8702 need_locks=no 8703fi 8704 8705 8706 8707 8708 8709 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8712 8713 runpath_var= 8714 allow_undefined_flag= 8715 always_export_symbols=no 8716 archive_cmds= 8717 archive_expsym_cmds= 8718 compiler_needs_object=no 8719 enable_shared_with_static_runtimes=no 8720 export_dynamic_flag_spec= 8721 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8722 hardcode_automatic=no 8723 hardcode_direct=no 8724 hardcode_direct_absolute=no 8725 hardcode_libdir_flag_spec= 8726 hardcode_libdir_flag_spec_ld= 8727 hardcode_libdir_separator= 8728 hardcode_minus_L=no 8729 hardcode_shlibpath_var=unsupported 8730 inherit_rpath=no 8731 link_all_deplibs=unknown 8732 module_cmds= 8733 module_expsym_cmds= 8734 old_archive_from_new_cmds= 8735 old_archive_from_expsyms_cmds= 8736 thread_safe_flag_spec= 8737 whole_archive_flag_spec= 8738 # include_expsyms should be a list of space-separated symbols to be *always* 8739 # included in the symbol list 8740 include_expsyms= 8741 # exclude_expsyms can be an extended regexp of symbols to exclude 8742 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8743 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8744 # as well as any symbol that contains `d'. 8745 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8746 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8747 # platforms (ab)use it in PIC code, but their linkers get confused if 8748 # the symbol is explicitly referenced. Since portable code cannot 8749 # rely on this symbol name, it's probably fine to never include it in 8750 # preloaded symbol tables. 8751 # Exclude shared library initialization/finalization symbols. 8752 extract_expsyms_cmds= 8753 8754 case $host_os in 8755 cygwin* | mingw* | pw32* | cegcc*) 8756 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8757 # When not using gcc, we currently assume that we are using 8758 # Microsoft Visual C++. 8759 if test "$GCC" != yes; then 8760 with_gnu_ld=no 8761 fi 8762 ;; 8763 interix*) 8764 # we just hope/assume this is gcc and not c89 (= MSVC++) 8765 with_gnu_ld=yes 8766 ;; 8767 openbsd*) 8768 with_gnu_ld=no 8769 ;; 8770 esac 8771 8772 ld_shlibs=yes 8773 8774 # On some targets, GNU ld is compatible enough with the native linker 8775 # that we're better off using the native interface for both. 8776 lt_use_gnu_ld_interface=no 8777 if test "$with_gnu_ld" = yes; then 8778 case $host_os in 8779 aix*) 8780 # The AIX port of GNU ld has always aspired to compatibility 8781 # with the native linker. However, as the warning in the GNU ld 8782 # block says, versions before 2.19.5* couldn't really create working 8783 # shared libraries, regardless of the interface used. 8784 case `$LD -v 2>&1` in 8785 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8786 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8787 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8788 *) 8789 lt_use_gnu_ld_interface=yes 8790 ;; 8791 esac 8792 ;; 8793 *) 8794 lt_use_gnu_ld_interface=yes 8795 ;; 8796 esac 8797 fi 8798 8799 if test "$lt_use_gnu_ld_interface" = yes; then 8800 # If archive_cmds runs LD, not CC, wlarc should be empty 8801 wlarc='${wl}' 8802 8803 # Set some defaults for GNU ld with shared library support. These 8804 # are reset later if shared libraries are not supported. Putting them 8805 # here allows them to be overridden if necessary. 8806 runpath_var=LD_RUN_PATH 8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8808 export_dynamic_flag_spec='${wl}--export-dynamic' 8809 # ancient GNU ld didn't support --whole-archive et. al. 8810 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8811 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8812 else 8813 whole_archive_flag_spec= 8814 fi 8815 supports_anon_versioning=no 8816 case `$LD -v 2>&1` in 8817 *GNU\ gold*) supports_anon_versioning=yes ;; 8818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8821 *\ 2.11.*) ;; # other 2.11 versions 8822 *) supports_anon_versioning=yes ;; 8823 esac 8824 8825 # See if GNU ld supports shared libraries. 8826 case $host_os in 8827 aix[3-9]*) 8828 # On AIX/PPC, the GNU linker is very broken 8829 if test "$host_cpu" != ia64; then 8830 ld_shlibs=no 8831 cat <<_LT_EOF 1>&2 8832 8833*** Warning: the GNU linker, at least up to release 2.19, is reported 8834*** to be unable to reliably create shared libraries on AIX. 8835*** Therefore, libtool is disabling shared libraries support. If you 8836*** really care for shared libraries, you may want to install binutils 8837*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8838*** You will then need to restart the configuration process. 8839 8840_LT_EOF 8841 fi 8842 ;; 8843 8844 amigaos*) 8845 case $host_cpu in 8846 powerpc) 8847 # see comment about AmigaOS4 .so support 8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8849 archive_expsym_cmds='' 8850 ;; 8851 m68k) 8852 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)' 8853 hardcode_libdir_flag_spec='-L$libdir' 8854 hardcode_minus_L=yes 8855 ;; 8856 esac 8857 ;; 8858 8859 beos*) 8860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8861 allow_undefined_flag=unsupported 8862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8863 # support --undefined. This deserves some investigation. FIXME 8864 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8865 else 8866 ld_shlibs=no 8867 fi 8868 ;; 8869 8870 cygwin* | mingw* | pw32* | cegcc*) 8871 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8872 # as there is no search path for DLLs. 8873 hardcode_libdir_flag_spec='-L$libdir' 8874 export_dynamic_flag_spec='${wl}--export-all-symbols' 8875 allow_undefined_flag=unsupported 8876 always_export_symbols=no 8877 enable_shared_with_static_runtimes=yes 8878 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' 8879 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8880 8881 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8883 # If the export-symbols file already is a .def file (1st line 8884 # is EXPORTS), use it as is; otherwise, prepend... 8885 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8886 cp $export_symbols $output_objdir/$soname.def; 8887 else 8888 echo EXPORTS > $output_objdir/$soname.def; 8889 cat $export_symbols >> $output_objdir/$soname.def; 8890 fi~ 8891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8892 else 8893 ld_shlibs=no 8894 fi 8895 ;; 8896 8897 haiku*) 8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8899 link_all_deplibs=yes 8900 ;; 8901 8902 interix[3-9]*) 8903 hardcode_direct=no 8904 hardcode_shlibpath_var=no 8905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8906 export_dynamic_flag_spec='${wl}-E' 8907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8908 # Instead, shared libraries are loaded at an image base (0x10000000 by 8909 # default) and relocated if they conflict, which is a slow very memory 8910 # consuming and fragmenting process. To avoid this, we pick a random, 8911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8912 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8914 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' 8915 ;; 8916 8917 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8918 tmp_diet=no 8919 if test "$host_os" = linux-dietlibc; then 8920 case $cc_basename in 8921 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8922 esac 8923 fi 8924 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8925 && test "$tmp_diet" = no 8926 then 8927 tmp_addflag=' $pic_flag' 8928 tmp_sharedflag='-shared' 8929 case $cc_basename,$host_cpu in 8930 pgcc*) # Portland Group C compiler 8931 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' 8932 tmp_addflag=' $pic_flag' 8933 ;; 8934 pgf77* | pgf90* | pgf95* | pgfortran*) 8935 # Portland Group f77 and f90 compilers 8936 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' 8937 tmp_addflag=' $pic_flag -Mnomain' ;; 8938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8939 tmp_addflag=' -i_dynamic' ;; 8940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8941 tmp_addflag=' -i_dynamic -nofor_main' ;; 8942 ifc* | ifort*) # Intel Fortran compiler 8943 tmp_addflag=' -nofor_main' ;; 8944 lf95*) # Lahey Fortran 8.1 8945 whole_archive_flag_spec= 8946 tmp_sharedflag='--shared' ;; 8947 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8948 tmp_sharedflag='-qmkshrobj' 8949 tmp_addflag= ;; 8950 nvcc*) # Cuda Compiler Driver 2.2 8951 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' 8952 compiler_needs_object=yes 8953 ;; 8954 esac 8955 case `$CC -V 2>&1 | sed 5q` in 8956 *Sun\ C*) # Sun C 5.9 8957 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' 8958 compiler_needs_object=yes 8959 tmp_sharedflag='-G' ;; 8960 *Sun\ F*) # Sun Fortran 8.3 8961 tmp_sharedflag='-G' ;; 8962 esac 8963 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8964 8965 if test "x$supports_anon_versioning" = xyes; then 8966 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8968 echo "local: *; };" >> $output_objdir/$libname.ver~ 8969 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8970 fi 8971 8972 case $cc_basename in 8973 xlf* | bgf* | bgxlf* | mpixlf*) 8974 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8975 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8976 hardcode_libdir_flag_spec= 8977 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8978 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8979 if test "x$supports_anon_versioning" = xyes; then 8980 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8982 echo "local: *; };" >> $output_objdir/$libname.ver~ 8983 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8984 fi 8985 ;; 8986 esac 8987 else 8988 ld_shlibs=no 8989 fi 8990 ;; 8991 8992 netbsd*) 8993 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8994 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8995 wlarc= 8996 else 8997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8999 fi 9000 ;; 9001 9002 solaris*) 9003 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9004 ld_shlibs=no 9005 cat <<_LT_EOF 1>&2 9006 9007*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9008*** create shared libraries on Solaris systems. Therefore, libtool 9009*** is disabling shared libraries support. We urge you to upgrade GNU 9010*** binutils to release 2.9.1 or newer. Another option is to modify 9011*** your PATH or compiler configuration so that the native linker is 9012*** used, and then restart. 9013 9014_LT_EOF 9015 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9017 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9018 else 9019 ld_shlibs=no 9020 fi 9021 ;; 9022 9023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9024 case `$LD -v 2>&1` in 9025 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9026 ld_shlibs=no 9027 cat <<_LT_EOF 1>&2 9028 9029*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9030*** reliably create shared libraries on SCO systems. Therefore, libtool 9031*** is disabling shared libraries support. We urge you to upgrade GNU 9032*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9033*** your PATH or compiler configuration so that the native linker is 9034*** used, and then restart. 9035 9036_LT_EOF 9037 ;; 9038 *) 9039 # For security reasons, it is highly recommended that you always 9040 # use absolute paths for naming shared libraries, and exclude the 9041 # DT_RUNPATH tag from executables and libraries. But doing so 9042 # requires that you compile everything twice, which is a pain. 9043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9047 else 9048 ld_shlibs=no 9049 fi 9050 ;; 9051 esac 9052 ;; 9053 9054 sunos4*) 9055 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9056 wlarc= 9057 hardcode_direct=yes 9058 hardcode_shlibpath_var=no 9059 ;; 9060 9061 *) 9062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9063 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9064 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9065 else 9066 ld_shlibs=no 9067 fi 9068 ;; 9069 esac 9070 9071 if test "$ld_shlibs" = no; then 9072 runpath_var= 9073 hardcode_libdir_flag_spec= 9074 export_dynamic_flag_spec= 9075 whole_archive_flag_spec= 9076 fi 9077 else 9078 # PORTME fill in a description of your system's linker (not GNU ld) 9079 case $host_os in 9080 aix3*) 9081 allow_undefined_flag=unsupported 9082 always_export_symbols=yes 9083 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' 9084 # Note: this linker hardcodes the directories in LIBPATH if there 9085 # are no directories specified by -L. 9086 hardcode_minus_L=yes 9087 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9088 # Neither direct hardcoding nor static linking is supported with a 9089 # broken collect2. 9090 hardcode_direct=unsupported 9091 fi 9092 ;; 9093 9094 aix[4-9]*) 9095 if test "$host_cpu" = ia64; then 9096 # On IA64, the linker does run time linking by default, so we don't 9097 # have to do anything special. 9098 aix_use_runtimelinking=no 9099 exp_sym_flag='-Bexport' 9100 no_entry_flag="" 9101 else 9102 # If we're using GNU nm, then we don't want the "-C" option. 9103 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9104 # Also, AIX nm treats weak defined symbols like other global 9105 # defined symbols, whereas GNU nm marks them as "W". 9106 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9107 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' 9108 else 9109 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' 9110 fi 9111 aix_use_runtimelinking=no 9112 9113 # Test if we are trying to use run time linking or normal 9114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9115 # need to do runtime linking. 9116 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9117 for ld_flag in $LDFLAGS; do 9118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9119 aix_use_runtimelinking=yes 9120 break 9121 fi 9122 done 9123 ;; 9124 esac 9125 9126 exp_sym_flag='-bexport' 9127 no_entry_flag='-bnoentry' 9128 fi 9129 9130 # When large executables or shared objects are built, AIX ld can 9131 # have problems creating the table of contents. If linking a library 9132 # or program results in "error TOC overflow" add -mminimal-toc to 9133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9135 9136 archive_cmds='' 9137 hardcode_direct=yes 9138 hardcode_direct_absolute=yes 9139 hardcode_libdir_separator=':' 9140 link_all_deplibs=yes 9141 file_list_spec='${wl}-f,' 9142 9143 if test "$GCC" = yes; then 9144 case $host_os in aix4.[012]|aix4.[012].*) 9145 # We only want to do this on AIX 4.2 and lower, the check 9146 # below for broken collect2 doesn't work under 4.3+ 9147 collect2name=`${CC} -print-prog-name=collect2` 9148 if test -f "$collect2name" && 9149 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9150 then 9151 # We have reworked collect2 9152 : 9153 else 9154 # We have old collect2 9155 hardcode_direct=unsupported 9156 # It fails to find uninstalled libraries when the uninstalled 9157 # path is not listed in the libpath. Setting hardcode_minus_L 9158 # to unsupported forces relinking 9159 hardcode_minus_L=yes 9160 hardcode_libdir_flag_spec='-L$libdir' 9161 hardcode_libdir_separator= 9162 fi 9163 ;; 9164 esac 9165 shared_flag='-shared' 9166 if test "$aix_use_runtimelinking" = yes; then 9167 shared_flag="$shared_flag "'${wl}-G' 9168 fi 9169 else 9170 # not using gcc 9171 if test "$host_cpu" = ia64; then 9172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9173 # chokes on -Wl,-G. The following line is correct: 9174 shared_flag='-G' 9175 else 9176 if test "$aix_use_runtimelinking" = yes; then 9177 shared_flag='${wl}-G' 9178 else 9179 shared_flag='${wl}-bM:SRE' 9180 fi 9181 fi 9182 fi 9183 9184 export_dynamic_flag_spec='${wl}-bexpall' 9185 # It seems that -bexpall does not export symbols beginning with 9186 # underscore (_), so it is better to generate a list of symbols to export. 9187 always_export_symbols=yes 9188 if test "$aix_use_runtimelinking" = yes; then 9189 # Warning - without using the other runtime loading flags (-brtl), 9190 # -berok will link without error, but may produce a broken library. 9191 allow_undefined_flag='-berok' 9192 # Determine the default libpath from the value encoded in an 9193 # empty executable. 9194 if test "${lt_cv_aix_libpath+set}" = set; then 9195 aix_libpath=$lt_cv_aix_libpath 9196else 9197 if ${lt_cv_aix_libpath_+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199else 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201/* end confdefs.h. */ 9202 9203int 9204main () 9205{ 9206 9207 ; 9208 return 0; 9209} 9210_ACEOF 9211if ac_fn_c_try_link "$LINENO"; then : 9212 9213 lt_aix_libpath_sed=' 9214 /Import File Strings/,/^$/ { 9215 /^0/ { 9216 s/^0 *\([^ ]*\) *$/\1/ 9217 p 9218 } 9219 }' 9220 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9221 # Check for a 64-bit object if we didn't find anything. 9222 if test -z "$lt_cv_aix_libpath_"; then 9223 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9224 fi 9225fi 9226rm -f core conftest.err conftest.$ac_objext \ 9227 conftest$ac_exeext conftest.$ac_ext 9228 if test -z "$lt_cv_aix_libpath_"; then 9229 lt_cv_aix_libpath_="/usr/lib:/lib" 9230 fi 9231 9232fi 9233 9234 aix_libpath=$lt_cv_aix_libpath_ 9235fi 9236 9237 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9238 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" 9239 else 9240 if test "$host_cpu" = ia64; then 9241 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9242 allow_undefined_flag="-z nodefs" 9243 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" 9244 else 9245 # Determine the default libpath from the value encoded in an 9246 # empty executable. 9247 if test "${lt_cv_aix_libpath+set}" = set; then 9248 aix_libpath=$lt_cv_aix_libpath 9249else 9250 if ${lt_cv_aix_libpath_+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255 9256int 9257main () 9258{ 9259 9260 ; 9261 return 0; 9262} 9263_ACEOF 9264if ac_fn_c_try_link "$LINENO"; then : 9265 9266 lt_aix_libpath_sed=' 9267 /Import File Strings/,/^$/ { 9268 /^0/ { 9269 s/^0 *\([^ ]*\) *$/\1/ 9270 p 9271 } 9272 }' 9273 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9274 # Check for a 64-bit object if we didn't find anything. 9275 if test -z "$lt_cv_aix_libpath_"; then 9276 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9277 fi 9278fi 9279rm -f core conftest.err conftest.$ac_objext \ 9280 conftest$ac_exeext conftest.$ac_ext 9281 if test -z "$lt_cv_aix_libpath_"; then 9282 lt_cv_aix_libpath_="/usr/lib:/lib" 9283 fi 9284 9285fi 9286 9287 aix_libpath=$lt_cv_aix_libpath_ 9288fi 9289 9290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9291 # Warning - without using the other run time loading flags, 9292 # -berok will link without error, but may produce a broken library. 9293 no_undefined_flag=' ${wl}-bernotok' 9294 allow_undefined_flag=' ${wl}-berok' 9295 if test "$with_gnu_ld" = yes; then 9296 # We only use this code for GNU lds that support --whole-archive. 9297 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9298 else 9299 # Exported symbols can be pulled into shared objects from archives 9300 whole_archive_flag_spec='$convenience' 9301 fi 9302 archive_cmds_need_lc=yes 9303 # This is similar to how AIX traditionally builds its shared libraries. 9304 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' 9305 fi 9306 fi 9307 ;; 9308 9309 amigaos*) 9310 case $host_cpu in 9311 powerpc) 9312 # see comment about AmigaOS4 .so support 9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9314 archive_expsym_cmds='' 9315 ;; 9316 m68k) 9317 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)' 9318 hardcode_libdir_flag_spec='-L$libdir' 9319 hardcode_minus_L=yes 9320 ;; 9321 esac 9322 ;; 9323 9324 bsdi[45]*) 9325 export_dynamic_flag_spec=-rdynamic 9326 ;; 9327 9328 cygwin* | mingw* | pw32* | cegcc*) 9329 # When not using gcc, we currently assume that we are using 9330 # Microsoft Visual C++. 9331 # hardcode_libdir_flag_spec is actually meaningless, as there is 9332 # no search path for DLLs. 9333 case $cc_basename in 9334 cl*) 9335 # Native MSVC 9336 hardcode_libdir_flag_spec=' ' 9337 allow_undefined_flag=unsupported 9338 always_export_symbols=yes 9339 file_list_spec='@' 9340 # Tell ltmain to make .lib files, not .a files. 9341 libext=lib 9342 # Tell ltmain to make .dll files, not .so files. 9343 shrext_cmds=".dll" 9344 # FIXME: Setting linknames here is a bad hack. 9345 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9347 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9348 else 9349 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9350 fi~ 9351 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9352 linknames=' 9353 # The linker will not automatically build a static lib if we build a DLL. 9354 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9355 enable_shared_with_static_runtimes=yes 9356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9357 # Don't use ranlib 9358 old_postinstall_cmds='chmod 644 $oldlib' 9359 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9360 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9361 case $lt_outputfile in 9362 *.exe|*.EXE) ;; 9363 *) 9364 lt_outputfile="$lt_outputfile.exe" 9365 lt_tool_outputfile="$lt_tool_outputfile.exe" 9366 ;; 9367 esac~ 9368 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9369 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9370 $RM "$lt_outputfile.manifest"; 9371 fi' 9372 ;; 9373 *) 9374 # Assume MSVC wrapper 9375 hardcode_libdir_flag_spec=' ' 9376 allow_undefined_flag=unsupported 9377 # Tell ltmain to make .lib files, not .a files. 9378 libext=lib 9379 # Tell ltmain to make .dll files, not .so files. 9380 shrext_cmds=".dll" 9381 # FIXME: Setting linknames here is a bad hack. 9382 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9383 # The linker will automatically build a .lib file if we build a DLL. 9384 old_archive_from_new_cmds='true' 9385 # FIXME: Should let the user specify the lib program. 9386 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9387 enable_shared_with_static_runtimes=yes 9388 ;; 9389 esac 9390 ;; 9391 9392 darwin* | rhapsody*) 9393 9394 9395 archive_cmds_need_lc=no 9396 hardcode_direct=no 9397 hardcode_automatic=yes 9398 hardcode_shlibpath_var=unsupported 9399 if test "$lt_cv_ld_force_load" = "yes"; then 9400 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\"`' 9401 else 9402 whole_archive_flag_spec='' 9403 fi 9404 link_all_deplibs=yes 9405 allow_undefined_flag="$_lt_dar_allow_undefined" 9406 case $cc_basename in 9407 ifort*) _lt_dar_can_shared=yes ;; 9408 *) _lt_dar_can_shared=$GCC ;; 9409 esac 9410 if test "$_lt_dar_can_shared" = "yes"; then 9411 output_verbose_link_cmd=func_echo_all 9412 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9413 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9414 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}" 9415 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}" 9416 9417 else 9418 ld_shlibs=no 9419 fi 9420 9421 ;; 9422 9423 dgux*) 9424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9425 hardcode_libdir_flag_spec='-L$libdir' 9426 hardcode_shlibpath_var=no 9427 ;; 9428 9429 freebsd1*) 9430 ld_shlibs=no 9431 ;; 9432 9433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9434 # support. Future versions do this automatically, but an explicit c++rt0.o 9435 # does not break anything, and helps significantly (at the cost of a little 9436 # extra space). 9437 freebsd2.2*) 9438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9439 hardcode_libdir_flag_spec='-R$libdir' 9440 hardcode_direct=yes 9441 hardcode_shlibpath_var=no 9442 ;; 9443 9444 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9445 freebsd2*) 9446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9447 hardcode_direct=yes 9448 hardcode_minus_L=yes 9449 hardcode_shlibpath_var=no 9450 ;; 9451 9452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9453 freebsd* | dragonfly*) 9454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9455 hardcode_libdir_flag_spec='-R$libdir' 9456 hardcode_direct=yes 9457 hardcode_shlibpath_var=no 9458 ;; 9459 9460 hpux9*) 9461 if test "$GCC" = yes; then 9462 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' 9463 else 9464 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' 9465 fi 9466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9467 hardcode_libdir_separator=: 9468 hardcode_direct=yes 9469 9470 # hardcode_minus_L: Not really in the search PATH, 9471 # but as the default location of the library. 9472 hardcode_minus_L=yes 9473 export_dynamic_flag_spec='${wl}-E' 9474 ;; 9475 9476 hpux10*) 9477 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9478 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9479 else 9480 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9481 fi 9482 if test "$with_gnu_ld" = no; then 9483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9484 hardcode_libdir_flag_spec_ld='+b $libdir' 9485 hardcode_libdir_separator=: 9486 hardcode_direct=yes 9487 hardcode_direct_absolute=yes 9488 export_dynamic_flag_spec='${wl}-E' 9489 # hardcode_minus_L: Not really in the search PATH, 9490 # but as the default location of the library. 9491 hardcode_minus_L=yes 9492 fi 9493 ;; 9494 9495 hpux11*) 9496 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9497 case $host_cpu in 9498 hppa*64*) 9499 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9500 ;; 9501 ia64*) 9502 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9503 ;; 9504 *) 9505 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9506 ;; 9507 esac 9508 else 9509 case $host_cpu in 9510 hppa*64*) 9511 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9512 ;; 9513 ia64*) 9514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9515 ;; 9516 *) 9517 9518 # Older versions of the 11.00 compiler do not understand -b yet 9519 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9521$as_echo_n "checking if $CC understands -b... " >&6; } 9522if ${lt_cv_prog_compiler__b+:} false; then : 9523 $as_echo_n "(cached) " >&6 9524else 9525 lt_cv_prog_compiler__b=no 9526 save_LDFLAGS="$LDFLAGS" 9527 LDFLAGS="$LDFLAGS -b" 9528 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9530 # The linker can only warn and ignore the option if not recognized 9531 # So say no if there are warnings 9532 if test -s conftest.err; then 9533 # Append any errors to the config.log. 9534 cat conftest.err 1>&5 9535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9537 if diff conftest.exp conftest.er2 >/dev/null; then 9538 lt_cv_prog_compiler__b=yes 9539 fi 9540 else 9541 lt_cv_prog_compiler__b=yes 9542 fi 9543 fi 9544 $RM -r conftest* 9545 LDFLAGS="$save_LDFLAGS" 9546 9547fi 9548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9549$as_echo "$lt_cv_prog_compiler__b" >&6; } 9550 9551if test x"$lt_cv_prog_compiler__b" = xyes; then 9552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9553else 9554 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9555fi 9556 9557 ;; 9558 esac 9559 fi 9560 if test "$with_gnu_ld" = no; then 9561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9562 hardcode_libdir_separator=: 9563 9564 case $host_cpu in 9565 hppa*64*|ia64*) 9566 hardcode_direct=no 9567 hardcode_shlibpath_var=no 9568 ;; 9569 *) 9570 hardcode_direct=yes 9571 hardcode_direct_absolute=yes 9572 export_dynamic_flag_spec='${wl}-E' 9573 9574 # hardcode_minus_L: Not really in the search PATH, 9575 # but as the default location of the library. 9576 hardcode_minus_L=yes 9577 ;; 9578 esac 9579 fi 9580 ;; 9581 9582 irix5* | irix6* | nonstopux*) 9583 if test "$GCC" = yes; then 9584 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' 9585 # Try to use the -exported_symbol ld option, if it does not 9586 # work, assume that -exports_file does not work either and 9587 # implicitly export all symbols. 9588 # This should be the same for all languages, so no per-tag cache variable. 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9590$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9591if ${lt_cv_irix_exported_symbol+:} false; then : 9592 $as_echo_n "(cached) " >&6 9593else 9594 save_LDFLAGS="$LDFLAGS" 9595 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9597/* end confdefs.h. */ 9598int foo (void) { return 0; } 9599_ACEOF 9600if ac_fn_c_try_link "$LINENO"; then : 9601 lt_cv_irix_exported_symbol=yes 9602else 9603 lt_cv_irix_exported_symbol=no 9604fi 9605rm -f core conftest.err conftest.$ac_objext \ 9606 conftest$ac_exeext conftest.$ac_ext 9607 LDFLAGS="$save_LDFLAGS" 9608fi 9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9610$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9611 if test "$lt_cv_irix_exported_symbol" = yes; then 9612 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' 9613 fi 9614 else 9615 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' 9616 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' 9617 fi 9618 archive_cmds_need_lc='no' 9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9620 hardcode_libdir_separator=: 9621 inherit_rpath=yes 9622 link_all_deplibs=yes 9623 ;; 9624 9625 netbsd*) 9626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9628 else 9629 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9630 fi 9631 hardcode_libdir_flag_spec='-R$libdir' 9632 hardcode_direct=yes 9633 hardcode_shlibpath_var=no 9634 ;; 9635 9636 newsos6) 9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9638 hardcode_direct=yes 9639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9640 hardcode_libdir_separator=: 9641 hardcode_shlibpath_var=no 9642 ;; 9643 9644 *nto* | *qnx*) 9645 ;; 9646 9647 openbsd*) 9648 if test -f /usr/libexec/ld.so; then 9649 hardcode_direct=yes 9650 hardcode_shlibpath_var=no 9651 hardcode_direct_absolute=yes 9652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9654 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9656 export_dynamic_flag_spec='${wl}-E' 9657 else 9658 case $host_os in 9659 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9661 hardcode_libdir_flag_spec='-R$libdir' 9662 ;; 9663 *) 9664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9666 ;; 9667 esac 9668 fi 9669 else 9670 ld_shlibs=no 9671 fi 9672 ;; 9673 9674 os2*) 9675 hardcode_libdir_flag_spec='-L$libdir' 9676 hardcode_minus_L=yes 9677 allow_undefined_flag=unsupported 9678 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' 9679 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9680 ;; 9681 9682 osf3*) 9683 if test "$GCC" = yes; then 9684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9685 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' 9686 else 9687 allow_undefined_flag=' -expect_unresolved \*' 9688 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' 9689 fi 9690 archive_cmds_need_lc='no' 9691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9692 hardcode_libdir_separator=: 9693 ;; 9694 9695 osf4* | osf5*) # as osf3* with the addition of -msym flag 9696 if test "$GCC" = yes; then 9697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9698 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' 9699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9700 else 9701 allow_undefined_flag=' -expect_unresolved \*' 9702 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' 9703 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~ 9704 $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' 9705 9706 # Both c and cxx compiler support -rpath directly 9707 hardcode_libdir_flag_spec='-rpath $libdir' 9708 fi 9709 archive_cmds_need_lc='no' 9710 hardcode_libdir_separator=: 9711 ;; 9712 9713 solaris*) 9714 no_undefined_flag=' -z defs' 9715 if test "$GCC" = yes; then 9716 wlarc='${wl}' 9717 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9719 $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' 9720 else 9721 case `$CC -V 2>&1` in 9722 *"Compilers 5.0"*) 9723 wlarc='' 9724 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9727 ;; 9728 *) 9729 wlarc='${wl}' 9730 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9732 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9733 ;; 9734 esac 9735 fi 9736 hardcode_libdir_flag_spec='-R$libdir' 9737 hardcode_shlibpath_var=no 9738 case $host_os in 9739 solaris2.[0-5] | solaris2.[0-5].*) ;; 9740 *) 9741 # The compiler driver will combine and reorder linker options, 9742 # but understands `-z linker_flag'. GCC discards it without `$wl', 9743 # but is careful enough not to reorder. 9744 # Supported since Solaris 2.6 (maybe 2.5.1?) 9745 if test "$GCC" = yes; then 9746 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9747 else 9748 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9749 fi 9750 ;; 9751 esac 9752 link_all_deplibs=yes 9753 ;; 9754 9755 sunos4*) 9756 if test "x$host_vendor" = xsequent; then 9757 # Use $CC to link under sequent, because it throws in some extra .o 9758 # files that make .init and .fini sections work. 9759 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9760 else 9761 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9762 fi 9763 hardcode_libdir_flag_spec='-L$libdir' 9764 hardcode_direct=yes 9765 hardcode_minus_L=yes 9766 hardcode_shlibpath_var=no 9767 ;; 9768 9769 sysv4) 9770 case $host_vendor in 9771 sni) 9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9773 hardcode_direct=yes # is this really true??? 9774 ;; 9775 siemens) 9776 ## LD is ld it makes a PLAMLIB 9777 ## CC just makes a GrossModule. 9778 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9779 reload_cmds='$CC -r -o $output$reload_objs' 9780 hardcode_direct=no 9781 ;; 9782 motorola) 9783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9784 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9785 ;; 9786 esac 9787 runpath_var='LD_RUN_PATH' 9788 hardcode_shlibpath_var=no 9789 ;; 9790 9791 sysv4.3*) 9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9793 hardcode_shlibpath_var=no 9794 export_dynamic_flag_spec='-Bexport' 9795 ;; 9796 9797 sysv4*MP*) 9798 if test -d /usr/nec; then 9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9800 hardcode_shlibpath_var=no 9801 runpath_var=LD_RUN_PATH 9802 hardcode_runpath_var=yes 9803 ld_shlibs=yes 9804 fi 9805 ;; 9806 9807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9808 no_undefined_flag='${wl}-z,text' 9809 archive_cmds_need_lc=no 9810 hardcode_shlibpath_var=no 9811 runpath_var='LD_RUN_PATH' 9812 9813 if test "$GCC" = yes; then 9814 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9815 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9816 else 9817 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9818 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9819 fi 9820 ;; 9821 9822 sysv5* | sco3.2v5* | sco5v6*) 9823 # Note: We can NOT use -z defs as we might desire, because we do not 9824 # link with -lc, and that would cause any symbols used from libc to 9825 # always be unresolved, which means just about no library would 9826 # ever link correctly. If we're not using GNU ld we use -z text 9827 # though, which does catch some bad symbols but isn't as heavy-handed 9828 # as -z defs. 9829 no_undefined_flag='${wl}-z,text' 9830 allow_undefined_flag='${wl}-z,nodefs' 9831 archive_cmds_need_lc=no 9832 hardcode_shlibpath_var=no 9833 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9834 hardcode_libdir_separator=':' 9835 link_all_deplibs=yes 9836 export_dynamic_flag_spec='${wl}-Bexport' 9837 runpath_var='LD_RUN_PATH' 9838 9839 if test "$GCC" = yes; then 9840 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9841 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9842 else 9843 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9844 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9845 fi 9846 ;; 9847 9848 uts4*) 9849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9850 hardcode_libdir_flag_spec='-L$libdir' 9851 hardcode_shlibpath_var=no 9852 ;; 9853 9854 *) 9855 ld_shlibs=no 9856 ;; 9857 esac 9858 9859 if test x$host_vendor = xsni; then 9860 case $host in 9861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9862 export_dynamic_flag_spec='${wl}-Blargedynsym' 9863 ;; 9864 esac 9865 fi 9866 fi 9867 9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9869$as_echo "$ld_shlibs" >&6; } 9870test "$ld_shlibs" = no && can_build_shared=no 9871 9872with_gnu_ld=$with_gnu_ld 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888# 9889# Do we need to explicitly link libc? 9890# 9891case "x$archive_cmds_need_lc" in 9892x|xyes) 9893 # Assume -lc should be added 9894 archive_cmds_need_lc=yes 9895 9896 if test "$enable_shared" = yes && test "$GCC" = yes; then 9897 case $archive_cmds in 9898 *'~'*) 9899 # FIXME: we may have to deal with multi-command sequences. 9900 ;; 9901 '$CC '*) 9902 # Test whether the compiler implicitly links with -lc since on some 9903 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9904 # to ld, don't add -lc before -lgcc. 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9906$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9907if ${lt_cv_archive_cmds_need_lc+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 $RM conftest* 9911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9912 9913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9914 (eval $ac_compile) 2>&5 9915 ac_status=$? 9916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9917 test $ac_status = 0; } 2>conftest.err; then 9918 soname=conftest 9919 lib=conftest 9920 libobjs=conftest.$ac_objext 9921 deplibs= 9922 wl=$lt_prog_compiler_wl 9923 pic_flag=$lt_prog_compiler_pic 9924 compiler_flags=-v 9925 linker_flags=-v 9926 verstring= 9927 output_objdir=. 9928 libname=conftest 9929 lt_save_allow_undefined_flag=$allow_undefined_flag 9930 allow_undefined_flag= 9931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9932 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9933 ac_status=$? 9934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9935 test $ac_status = 0; } 9936 then 9937 lt_cv_archive_cmds_need_lc=no 9938 else 9939 lt_cv_archive_cmds_need_lc=yes 9940 fi 9941 allow_undefined_flag=$lt_save_allow_undefined_flag 9942 else 9943 cat conftest.err 1>&5 9944 fi 9945 $RM conftest* 9946 9947fi 9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9949$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9950 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9951 ;; 9952 esac 9953 fi 9954 ;; 9955esac 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10114$as_echo_n "checking dynamic linker characteristics... " >&6; } 10115 10116if test "$GCC" = yes; then 10117 case $host_os in 10118 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10119 *) lt_awk_arg="/^libraries:/" ;; 10120 esac 10121 case $host_os in 10122 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10123 *) lt_sed_strip_eq="s,=/,/,g" ;; 10124 esac 10125 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10126 case $lt_search_path_spec in 10127 *\;*) 10128 # if the path contains ";" then we assume it to be the separator 10129 # otherwise default to the standard path separator (i.e. ":") - it is 10130 # assumed that no part of a normal pathname contains ";" but that should 10131 # okay in the real world where ";" in dirpaths is itself problematic. 10132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10133 ;; 10134 *) 10135 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10136 ;; 10137 esac 10138 # Ok, now we have the path, separated by spaces, we can step through it 10139 # and add multilib dir if necessary. 10140 lt_tmp_lt_search_path_spec= 10141 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10142 for lt_sys_path in $lt_search_path_spec; do 10143 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10144 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10145 else 10146 test -d "$lt_sys_path" && \ 10147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10148 fi 10149 done 10150 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10151BEGIN {RS=" "; FS="/|\n";} { 10152 lt_foo=""; 10153 lt_count=0; 10154 for (lt_i = NF; lt_i > 0; lt_i--) { 10155 if ($lt_i != "" && $lt_i != ".") { 10156 if ($lt_i == "..") { 10157 lt_count++; 10158 } else { 10159 if (lt_count == 0) { 10160 lt_foo="/" $lt_i lt_foo; 10161 } else { 10162 lt_count--; 10163 } 10164 } 10165 } 10166 } 10167 if (lt_foo != "") { lt_freq[lt_foo]++; } 10168 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10169}'` 10170 # AWK program above erroneously prepends '/' to C:/dos/paths 10171 # for these hosts. 10172 case $host_os in 10173 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10174 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10175 esac 10176 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10177else 10178 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10179fi 10180library_names_spec= 10181libname_spec='lib$name' 10182soname_spec= 10183shrext_cmds=".so" 10184postinstall_cmds= 10185postuninstall_cmds= 10186finish_cmds= 10187finish_eval= 10188shlibpath_var= 10189shlibpath_overrides_runpath=unknown 10190version_type=none 10191dynamic_linker="$host_os ld.so" 10192sys_lib_dlsearch_path_spec="/lib /usr/lib" 10193need_lib_prefix=unknown 10194hardcode_into_libs=no 10195 10196# when you set need_version to no, make sure it does not cause -set_version 10197# flags to be left without arguments 10198need_version=unknown 10199 10200case $host_os in 10201aix3*) 10202 version_type=linux 10203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10204 shlibpath_var=LIBPATH 10205 10206 # AIX 3 has no versioning support, so we append a major version to the name. 10207 soname_spec='${libname}${release}${shared_ext}$major' 10208 ;; 10209 10210aix[4-9]*) 10211 version_type=linux 10212 need_lib_prefix=no 10213 need_version=no 10214 hardcode_into_libs=yes 10215 if test "$host_cpu" = ia64; then 10216 # AIX 5 supports IA64 10217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10218 shlibpath_var=LD_LIBRARY_PATH 10219 else 10220 # With GCC up to 2.95.x, collect2 would create an import file 10221 # for dependence libraries. The import file would start with 10222 # the line `#! .'. This would cause the generated library to 10223 # depend on `.', always an invalid library. This was fixed in 10224 # development snapshots of GCC prior to 3.0. 10225 case $host_os in 10226 aix4 | aix4.[01] | aix4.[01].*) 10227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10228 echo ' yes ' 10229 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10230 : 10231 else 10232 can_build_shared=no 10233 fi 10234 ;; 10235 esac 10236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10237 # soname into executable. Probably we can add versioning support to 10238 # collect2, so additional links can be useful in future. 10239 if test "$aix_use_runtimelinking" = yes; then 10240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10241 # instead of lib<name>.a to let people know that these are not 10242 # typical AIX shared libraries. 10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10244 else 10245 # We preserve .a as extension for shared libraries through AIX4.2 10246 # and later when we are not doing run time linking. 10247 library_names_spec='${libname}${release}.a $libname.a' 10248 soname_spec='${libname}${release}${shared_ext}$major' 10249 fi 10250 shlibpath_var=LIBPATH 10251 fi 10252 ;; 10253 10254amigaos*) 10255 case $host_cpu in 10256 powerpc) 10257 # Since July 2007 AmigaOS4 officially supports .so libraries. 10258 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10260 ;; 10261 m68k) 10262 library_names_spec='$libname.ixlibrary $libname.a' 10263 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10264 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' 10265 ;; 10266 esac 10267 ;; 10268 10269beos*) 10270 library_names_spec='${libname}${shared_ext}' 10271 dynamic_linker="$host_os ld.so" 10272 shlibpath_var=LIBRARY_PATH 10273 ;; 10274 10275bsdi[45]*) 10276 version_type=linux 10277 need_version=no 10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10279 soname_spec='${libname}${release}${shared_ext}$major' 10280 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10281 shlibpath_var=LD_LIBRARY_PATH 10282 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10283 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10284 # the default ld.so.conf also contains /usr/contrib/lib and 10285 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10286 # libtool to hard-code these into programs 10287 ;; 10288 10289cygwin* | mingw* | pw32* | cegcc*) 10290 version_type=windows 10291 shrext_cmds=".dll" 10292 need_version=no 10293 need_lib_prefix=no 10294 10295 case $GCC,$cc_basename in 10296 yes,*) 10297 # gcc 10298 library_names_spec='$libname.dll.a' 10299 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10300 postinstall_cmds='base_file=`basename \${file}`~ 10301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10302 dldir=$destdir/`dirname \$dlpath`~ 10303 test -d \$dldir || mkdir -p \$dldir~ 10304 $install_prog $dir/$dlname \$dldir/$dlname~ 10305 chmod a+x \$dldir/$dlname~ 10306 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10307 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10308 fi' 10309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10310 dlpath=$dir/\$dldll~ 10311 $RM \$dlpath' 10312 shlibpath_overrides_runpath=yes 10313 10314 case $host_os in 10315 cygwin*) 10316 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10318 10319 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10320 ;; 10321 mingw* | cegcc*) 10322 # MinGW DLLs use traditional 'lib' prefix 10323 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10324 ;; 10325 pw32*) 10326 # pw32 DLLs use 'pw' prefix rather than 'lib' 10327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10328 ;; 10329 esac 10330 dynamic_linker='Win32 ld.exe' 10331 ;; 10332 10333 *,cl*) 10334 # Native MSVC 10335 libname_spec='$name' 10336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10337 library_names_spec='${libname}.dll.lib' 10338 10339 case $build_os in 10340 mingw*) 10341 sys_lib_search_path_spec= 10342 lt_save_ifs=$IFS 10343 IFS=';' 10344 for lt_path in $LIB 10345 do 10346 IFS=$lt_save_ifs 10347 # Let DOS variable expansion print the short 8.3 style file name. 10348 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10349 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10350 done 10351 IFS=$lt_save_ifs 10352 # Convert to MSYS style. 10353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10354 ;; 10355 cygwin*) 10356 # Convert to unix form, then to dos form, then back to unix form 10357 # but this time dos style (no spaces!) so that the unix form looks 10358 # like /cygdrive/c/PROGRA~1:/cygdr... 10359 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10360 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10361 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10362 ;; 10363 *) 10364 sys_lib_search_path_spec="$LIB" 10365 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10366 # It is most probably a Windows format PATH. 10367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10368 else 10369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10370 fi 10371 # FIXME: find the short name or the path components, as spaces are 10372 # common. (e.g. "Program Files" -> "PROGRA~1") 10373 ;; 10374 esac 10375 10376 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10377 postinstall_cmds='base_file=`basename \${file}`~ 10378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10379 dldir=$destdir/`dirname \$dlpath`~ 10380 test -d \$dldir || mkdir -p \$dldir~ 10381 $install_prog $dir/$dlname \$dldir/$dlname' 10382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10383 dlpath=$dir/\$dldll~ 10384 $RM \$dlpath' 10385 shlibpath_overrides_runpath=yes 10386 dynamic_linker='Win32 link.exe' 10387 ;; 10388 10389 *) 10390 # Assume MSVC wrapper 10391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10392 dynamic_linker='Win32 ld.exe' 10393 ;; 10394 esac 10395 # FIXME: first we should search . and the directory the executable is in 10396 shlibpath_var=PATH 10397 ;; 10398 10399darwin* | rhapsody*) 10400 dynamic_linker="$host_os dyld" 10401 version_type=darwin 10402 need_lib_prefix=no 10403 need_version=no 10404 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10405 soname_spec='${libname}${release}${major}$shared_ext' 10406 shlibpath_overrides_runpath=yes 10407 shlibpath_var=DYLD_LIBRARY_PATH 10408 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10409 10410 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10412 ;; 10413 10414dgux*) 10415 version_type=linux 10416 need_lib_prefix=no 10417 need_version=no 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10419 soname_spec='${libname}${release}${shared_ext}$major' 10420 shlibpath_var=LD_LIBRARY_PATH 10421 ;; 10422 10423freebsd1*) 10424 dynamic_linker=no 10425 ;; 10426 10427freebsd* | dragonfly*) 10428 # DragonFly does not have aout. When/if they implement a new 10429 # versioning mechanism, adjust this. 10430 if test -x /usr/bin/objformat; then 10431 objformat=`/usr/bin/objformat` 10432 else 10433 case $host_os in 10434 freebsd[123]*) objformat=aout ;; 10435 *) objformat=elf ;; 10436 esac 10437 fi 10438 version_type=freebsd-$objformat 10439 case $version_type in 10440 freebsd-elf*) 10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10442 need_version=no 10443 need_lib_prefix=no 10444 ;; 10445 freebsd-*) 10446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10447 need_version=yes 10448 ;; 10449 esac 10450 shlibpath_var=LD_LIBRARY_PATH 10451 case $host_os in 10452 freebsd2*) 10453 shlibpath_overrides_runpath=yes 10454 ;; 10455 freebsd3.[01]* | freebsdelf3.[01]*) 10456 shlibpath_overrides_runpath=yes 10457 hardcode_into_libs=yes 10458 ;; 10459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10461 shlibpath_overrides_runpath=no 10462 hardcode_into_libs=yes 10463 ;; 10464 *) # from 4.6 on, and DragonFly 10465 shlibpath_overrides_runpath=yes 10466 hardcode_into_libs=yes 10467 ;; 10468 esac 10469 ;; 10470 10471gnu*) 10472 version_type=linux 10473 need_lib_prefix=no 10474 need_version=no 10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10476 soname_spec='${libname}${release}${shared_ext}$major' 10477 shlibpath_var=LD_LIBRARY_PATH 10478 hardcode_into_libs=yes 10479 ;; 10480 10481haiku*) 10482 version_type=linux 10483 need_lib_prefix=no 10484 need_version=no 10485 dynamic_linker="$host_os runtime_loader" 10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10487 soname_spec='${libname}${release}${shared_ext}$major' 10488 shlibpath_var=LIBRARY_PATH 10489 shlibpath_overrides_runpath=yes 10490 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10491 hardcode_into_libs=yes 10492 ;; 10493 10494hpux9* | hpux10* | hpux11*) 10495 # Give a soname corresponding to the major version so that dld.sl refuses to 10496 # link against other versions. 10497 version_type=sunos 10498 need_lib_prefix=no 10499 need_version=no 10500 case $host_cpu in 10501 ia64*) 10502 shrext_cmds='.so' 10503 hardcode_into_libs=yes 10504 dynamic_linker="$host_os dld.so" 10505 shlibpath_var=LD_LIBRARY_PATH 10506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10508 soname_spec='${libname}${release}${shared_ext}$major' 10509 if test "X$HPUX_IA64_MODE" = X32; then 10510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10511 else 10512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10513 fi 10514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10515 ;; 10516 hppa*64*) 10517 shrext_cmds='.sl' 10518 hardcode_into_libs=yes 10519 dynamic_linker="$host_os dld.sl" 10520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10526 ;; 10527 *) 10528 shrext_cmds='.sl' 10529 dynamic_linker="$host_os dld.sl" 10530 shlibpath_var=SHLIB_PATH 10531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10533 soname_spec='${libname}${release}${shared_ext}$major' 10534 ;; 10535 esac 10536 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10537 postinstall_cmds='chmod 555 $lib' 10538 # or fails outright, so override atomically: 10539 install_override_mode=555 10540 ;; 10541 10542interix[3-9]*) 10543 version_type=linux 10544 need_lib_prefix=no 10545 need_version=no 10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10547 soname_spec='${libname}${release}${shared_ext}$major' 10548 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10549 shlibpath_var=LD_LIBRARY_PATH 10550 shlibpath_overrides_runpath=no 10551 hardcode_into_libs=yes 10552 ;; 10553 10554irix5* | irix6* | nonstopux*) 10555 case $host_os in 10556 nonstopux*) version_type=nonstopux ;; 10557 *) 10558 if test "$lt_cv_prog_gnu_ld" = yes; then 10559 version_type=linux 10560 else 10561 version_type=irix 10562 fi ;; 10563 esac 10564 need_lib_prefix=no 10565 need_version=no 10566 soname_spec='${libname}${release}${shared_ext}$major' 10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10568 case $host_os in 10569 irix5* | nonstopux*) 10570 libsuff= shlibsuff= 10571 ;; 10572 *) 10573 case $LD in # libtool.m4 will add one of these switches to LD 10574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10575 libsuff= shlibsuff= libmagic=32-bit;; 10576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10577 libsuff=32 shlibsuff=N32 libmagic=N32;; 10578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10579 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10580 *) libsuff= shlibsuff= libmagic=never-match;; 10581 esac 10582 ;; 10583 esac 10584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10585 shlibpath_overrides_runpath=no 10586 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10587 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10588 hardcode_into_libs=yes 10589 ;; 10590 10591# No shared lib support for Linux oldld, aout, or coff. 10592linux*oldld* | linux*aout* | linux*coff*) 10593 dynamic_linker=no 10594 ;; 10595 10596# This must be Linux ELF. 10597linux* | k*bsd*-gnu | kopensolaris*-gnu) 10598 version_type=linux 10599 need_lib_prefix=no 10600 need_version=no 10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10602 soname_spec='${libname}${release}${shared_ext}$major' 10603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10604 shlibpath_var=LD_LIBRARY_PATH 10605 shlibpath_overrides_runpath=no 10606 10607 # Some binutils ld are patched to set DT_RUNPATH 10608 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10609 $as_echo_n "(cached) " >&6 10610else 10611 lt_cv_shlibpath_overrides_runpath=no 10612 save_LDFLAGS=$LDFLAGS 10613 save_libdir=$libdir 10614 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10615 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618 10619int 10620main () 10621{ 10622 10623 ; 10624 return 0; 10625} 10626_ACEOF 10627if ac_fn_c_try_link "$LINENO"; then : 10628 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10629 lt_cv_shlibpath_overrides_runpath=yes 10630fi 10631fi 10632rm -f core conftest.err conftest.$ac_objext \ 10633 conftest$ac_exeext conftest.$ac_ext 10634 LDFLAGS=$save_LDFLAGS 10635 libdir=$save_libdir 10636 10637fi 10638 10639 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10640 10641 # This implies no fast_install, which is unacceptable. 10642 # Some rework will be needed to allow for fast_install 10643 # before this can be enabled. 10644 hardcode_into_libs=yes 10645 10646 # Append ld.so.conf contents to the search path 10647 if test -f /etc/ld.so.conf; then 10648 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' ' '` 10649 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10650 fi 10651 10652 # We used to test for /lib/ld.so.1 and disable shared libraries on 10653 # powerpc, because MkLinux only supported shared libraries with the 10654 # GNU dynamic linker. Since this was broken with cross compilers, 10655 # most powerpc-linux boxes support dynamic linking these days and 10656 # people can always --disable-shared, the test was removed, and we 10657 # assume the GNU/Linux dynamic linker is in use. 10658 dynamic_linker='GNU/Linux ld.so' 10659 ;; 10660 10661netbsd*) 10662 version_type=sunos 10663 need_lib_prefix=no 10664 need_version=no 10665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10668 dynamic_linker='NetBSD (a.out) ld.so' 10669 else 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10671 soname_spec='${libname}${release}${shared_ext}$major' 10672 dynamic_linker='NetBSD ld.elf_so' 10673 fi 10674 shlibpath_var=LD_LIBRARY_PATH 10675 shlibpath_overrides_runpath=yes 10676 hardcode_into_libs=yes 10677 ;; 10678 10679newsos6) 10680 version_type=linux 10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10682 shlibpath_var=LD_LIBRARY_PATH 10683 shlibpath_overrides_runpath=yes 10684 ;; 10685 10686*nto* | *qnx*) 10687 version_type=qnx 10688 need_lib_prefix=no 10689 need_version=no 10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10691 soname_spec='${libname}${release}${shared_ext}$major' 10692 shlibpath_var=LD_LIBRARY_PATH 10693 shlibpath_overrides_runpath=no 10694 hardcode_into_libs=yes 10695 dynamic_linker='ldqnx.so' 10696 ;; 10697 10698openbsd*) 10699 version_type=sunos 10700 sys_lib_dlsearch_path_spec="/usr/lib" 10701 need_lib_prefix=no 10702 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10703 case $host_os in 10704 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10705 *) need_version=no ;; 10706 esac 10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10709 shlibpath_var=LD_LIBRARY_PATH 10710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10711 case $host_os in 10712 openbsd2.[89] | openbsd2.[89].*) 10713 shlibpath_overrides_runpath=no 10714 ;; 10715 *) 10716 shlibpath_overrides_runpath=yes 10717 ;; 10718 esac 10719 else 10720 shlibpath_overrides_runpath=yes 10721 fi 10722 ;; 10723 10724os2*) 10725 libname_spec='$name' 10726 shrext_cmds=".dll" 10727 need_lib_prefix=no 10728 library_names_spec='$libname${shared_ext} $libname.a' 10729 dynamic_linker='OS/2 ld.exe' 10730 shlibpath_var=LIBPATH 10731 ;; 10732 10733osf3* | osf4* | osf5*) 10734 version_type=osf 10735 need_lib_prefix=no 10736 need_version=no 10737 soname_spec='${libname}${release}${shared_ext}$major' 10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10739 shlibpath_var=LD_LIBRARY_PATH 10740 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10741 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10742 ;; 10743 10744rdos*) 10745 dynamic_linker=no 10746 ;; 10747 10748solaris*) 10749 version_type=linux 10750 need_lib_prefix=no 10751 need_version=no 10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10753 soname_spec='${libname}${release}${shared_ext}$major' 10754 shlibpath_var=LD_LIBRARY_PATH 10755 shlibpath_overrides_runpath=yes 10756 hardcode_into_libs=yes 10757 # ldd complains unless libraries are executable 10758 postinstall_cmds='chmod +x $lib' 10759 ;; 10760 10761sunos4*) 10762 version_type=sunos 10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10764 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10765 shlibpath_var=LD_LIBRARY_PATH 10766 shlibpath_overrides_runpath=yes 10767 if test "$with_gnu_ld" = yes; then 10768 need_lib_prefix=no 10769 fi 10770 need_version=yes 10771 ;; 10772 10773sysv4 | sysv4.3*) 10774 version_type=linux 10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10776 soname_spec='${libname}${release}${shared_ext}$major' 10777 shlibpath_var=LD_LIBRARY_PATH 10778 case $host_vendor in 10779 sni) 10780 shlibpath_overrides_runpath=no 10781 need_lib_prefix=no 10782 runpath_var=LD_RUN_PATH 10783 ;; 10784 siemens) 10785 need_lib_prefix=no 10786 ;; 10787 motorola) 10788 need_lib_prefix=no 10789 need_version=no 10790 shlibpath_overrides_runpath=no 10791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10792 ;; 10793 esac 10794 ;; 10795 10796sysv4*MP*) 10797 if test -d /usr/nec ;then 10798 version_type=linux 10799 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10800 soname_spec='$libname${shared_ext}.$major' 10801 shlibpath_var=LD_LIBRARY_PATH 10802 fi 10803 ;; 10804 10805sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10806 version_type=freebsd-elf 10807 need_lib_prefix=no 10808 need_version=no 10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10810 soname_spec='${libname}${release}${shared_ext}$major' 10811 shlibpath_var=LD_LIBRARY_PATH 10812 shlibpath_overrides_runpath=yes 10813 hardcode_into_libs=yes 10814 if test "$with_gnu_ld" = yes; then 10815 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10816 else 10817 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10818 case $host_os in 10819 sco3.2v5*) 10820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10821 ;; 10822 esac 10823 fi 10824 sys_lib_dlsearch_path_spec='/usr/lib' 10825 ;; 10826 10827tpf*) 10828 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10829 version_type=linux 10830 need_lib_prefix=no 10831 need_version=no 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10833 shlibpath_var=LD_LIBRARY_PATH 10834 shlibpath_overrides_runpath=no 10835 hardcode_into_libs=yes 10836 ;; 10837 10838uts4*) 10839 version_type=linux 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 shlibpath_var=LD_LIBRARY_PATH 10843 ;; 10844 10845*) 10846 dynamic_linker=no 10847 ;; 10848esac 10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10850$as_echo "$dynamic_linker" >&6; } 10851test "$dynamic_linker" = no && can_build_shared=no 10852 10853variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10854if test "$GCC" = yes; then 10855 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10856fi 10857 10858if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10859 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10860fi 10861if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10862 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10863fi 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10957$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10958hardcode_action= 10959if test -n "$hardcode_libdir_flag_spec" || 10960 test -n "$runpath_var" || 10961 test "X$hardcode_automatic" = "Xyes" ; then 10962 10963 # We can hardcode non-existent directories. 10964 if test "$hardcode_direct" != no && 10965 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10966 # have to relink, otherwise we might link with an installed library 10967 # when we should be linking with a yet-to-be-installed one 10968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10969 test "$hardcode_minus_L" != no; then 10970 # Linking always hardcodes the temporary library directory. 10971 hardcode_action=relink 10972 else 10973 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10974 hardcode_action=immediate 10975 fi 10976else 10977 # We cannot hardcode anything, or else we can only hardcode existing 10978 # directories. 10979 hardcode_action=unsupported 10980fi 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10982$as_echo "$hardcode_action" >&6; } 10983 10984if test "$hardcode_action" = relink || 10985 test "$inherit_rpath" = yes; then 10986 # Fast installation is not supported 10987 enable_fast_install=no 10988elif test "$shlibpath_overrides_runpath" = yes || 10989 test "$enable_shared" = no; then 10990 # Fast installation is not necessary 10991 enable_fast_install=needless 10992fi 10993 10994 10995 10996 10997 10998 10999 if test "x$enable_dlopen" != xyes; then 11000 enable_dlopen=unknown 11001 enable_dlopen_self=unknown 11002 enable_dlopen_self_static=unknown 11003else 11004 lt_cv_dlopen=no 11005 lt_cv_dlopen_libs= 11006 11007 case $host_os in 11008 beos*) 11009 lt_cv_dlopen="load_add_on" 11010 lt_cv_dlopen_libs= 11011 lt_cv_dlopen_self=yes 11012 ;; 11013 11014 mingw* | pw32* | cegcc*) 11015 lt_cv_dlopen="LoadLibrary" 11016 lt_cv_dlopen_libs= 11017 ;; 11018 11019 cygwin*) 11020 lt_cv_dlopen="dlopen" 11021 lt_cv_dlopen_libs= 11022 ;; 11023 11024 darwin*) 11025 # if libdl is installed we need to link against it 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11027$as_echo_n "checking for dlopen in -ldl... " >&6; } 11028if ${ac_cv_lib_dl_dlopen+:} false; then : 11029 $as_echo_n "(cached) " >&6 11030else 11031 ac_check_lib_save_LIBS=$LIBS 11032LIBS="-ldl $LIBS" 11033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11034/* end confdefs.h. */ 11035 11036/* Override any GCC internal prototype to avoid an error. 11037 Use char because int might match the return type of a GCC 11038 builtin and then its argument prototype would still apply. */ 11039#ifdef __cplusplus 11040extern "C" 11041#endif 11042char dlopen (); 11043int 11044main () 11045{ 11046return dlopen (); 11047 ; 11048 return 0; 11049} 11050_ACEOF 11051if ac_fn_c_try_link "$LINENO"; then : 11052 ac_cv_lib_dl_dlopen=yes 11053else 11054 ac_cv_lib_dl_dlopen=no 11055fi 11056rm -f core conftest.err conftest.$ac_objext \ 11057 conftest$ac_exeext conftest.$ac_ext 11058LIBS=$ac_check_lib_save_LIBS 11059fi 11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11061$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11062if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11064else 11065 11066 lt_cv_dlopen="dyld" 11067 lt_cv_dlopen_libs= 11068 lt_cv_dlopen_self=yes 11069 11070fi 11071 11072 ;; 11073 11074 *) 11075 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11076if test "x$ac_cv_func_shl_load" = xyes; then : 11077 lt_cv_dlopen="shl_load" 11078else 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11080$as_echo_n "checking for shl_load in -ldld... " >&6; } 11081if ${ac_cv_lib_dld_shl_load+:} false; then : 11082 $as_echo_n "(cached) " >&6 11083else 11084 ac_check_lib_save_LIBS=$LIBS 11085LIBS="-ldld $LIBS" 11086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11087/* end confdefs.h. */ 11088 11089/* Override any GCC internal prototype to avoid an error. 11090 Use char because int might match the return type of a GCC 11091 builtin and then its argument prototype would still apply. */ 11092#ifdef __cplusplus 11093extern "C" 11094#endif 11095char shl_load (); 11096int 11097main () 11098{ 11099return shl_load (); 11100 ; 11101 return 0; 11102} 11103_ACEOF 11104if ac_fn_c_try_link "$LINENO"; then : 11105 ac_cv_lib_dld_shl_load=yes 11106else 11107 ac_cv_lib_dld_shl_load=no 11108fi 11109rm -f core conftest.err conftest.$ac_objext \ 11110 conftest$ac_exeext conftest.$ac_ext 11111LIBS=$ac_check_lib_save_LIBS 11112fi 11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11114$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11115if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11116 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11117else 11118 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11119if test "x$ac_cv_func_dlopen" = xyes; then : 11120 lt_cv_dlopen="dlopen" 11121else 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11123$as_echo_n "checking for dlopen in -ldl... " >&6; } 11124if ${ac_cv_lib_dl_dlopen+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 ac_check_lib_save_LIBS=$LIBS 11128LIBS="-ldl $LIBS" 11129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11130/* end confdefs.h. */ 11131 11132/* Override any GCC internal prototype to avoid an error. 11133 Use char because int might match the return type of a GCC 11134 builtin and then its argument prototype would still apply. */ 11135#ifdef __cplusplus 11136extern "C" 11137#endif 11138char dlopen (); 11139int 11140main () 11141{ 11142return dlopen (); 11143 ; 11144 return 0; 11145} 11146_ACEOF 11147if ac_fn_c_try_link "$LINENO"; then : 11148 ac_cv_lib_dl_dlopen=yes 11149else 11150 ac_cv_lib_dl_dlopen=no 11151fi 11152rm -f core conftest.err conftest.$ac_objext \ 11153 conftest$ac_exeext conftest.$ac_ext 11154LIBS=$ac_check_lib_save_LIBS 11155fi 11156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11157$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11158if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11160else 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11162$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11163if ${ac_cv_lib_svld_dlopen+:} false; then : 11164 $as_echo_n "(cached) " >&6 11165else 11166 ac_check_lib_save_LIBS=$LIBS 11167LIBS="-lsvld $LIBS" 11168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11169/* end confdefs.h. */ 11170 11171/* Override any GCC internal prototype to avoid an error. 11172 Use char because int might match the return type of a GCC 11173 builtin and then its argument prototype would still apply. */ 11174#ifdef __cplusplus 11175extern "C" 11176#endif 11177char dlopen (); 11178int 11179main () 11180{ 11181return dlopen (); 11182 ; 11183 return 0; 11184} 11185_ACEOF 11186if ac_fn_c_try_link "$LINENO"; then : 11187 ac_cv_lib_svld_dlopen=yes 11188else 11189 ac_cv_lib_svld_dlopen=no 11190fi 11191rm -f core conftest.err conftest.$ac_objext \ 11192 conftest$ac_exeext conftest.$ac_ext 11193LIBS=$ac_check_lib_save_LIBS 11194fi 11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11196$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11197if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11199else 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11201$as_echo_n "checking for dld_link in -ldld... " >&6; } 11202if ${ac_cv_lib_dld_dld_link+:} false; then : 11203 $as_echo_n "(cached) " >&6 11204else 11205 ac_check_lib_save_LIBS=$LIBS 11206LIBS="-ldld $LIBS" 11207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11208/* end confdefs.h. */ 11209 11210/* Override any GCC internal prototype to avoid an error. 11211 Use char because int might match the return type of a GCC 11212 builtin and then its argument prototype would still apply. */ 11213#ifdef __cplusplus 11214extern "C" 11215#endif 11216char dld_link (); 11217int 11218main () 11219{ 11220return dld_link (); 11221 ; 11222 return 0; 11223} 11224_ACEOF 11225if ac_fn_c_try_link "$LINENO"; then : 11226 ac_cv_lib_dld_dld_link=yes 11227else 11228 ac_cv_lib_dld_dld_link=no 11229fi 11230rm -f core conftest.err conftest.$ac_objext \ 11231 conftest$ac_exeext conftest.$ac_ext 11232LIBS=$ac_check_lib_save_LIBS 11233fi 11234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11235$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11236if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11237 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11238fi 11239 11240 11241fi 11242 11243 11244fi 11245 11246 11247fi 11248 11249 11250fi 11251 11252 11253fi 11254 11255 ;; 11256 esac 11257 11258 if test "x$lt_cv_dlopen" != xno; then 11259 enable_dlopen=yes 11260 else 11261 enable_dlopen=no 11262 fi 11263 11264 case $lt_cv_dlopen in 11265 dlopen) 11266 save_CPPFLAGS="$CPPFLAGS" 11267 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11268 11269 save_LDFLAGS="$LDFLAGS" 11270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11271 11272 save_LIBS="$LIBS" 11273 LIBS="$lt_cv_dlopen_libs $LIBS" 11274 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11276$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11277if ${lt_cv_dlopen_self+:} false; then : 11278 $as_echo_n "(cached) " >&6 11279else 11280 if test "$cross_compiling" = yes; then : 11281 lt_cv_dlopen_self=cross 11282else 11283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11284 lt_status=$lt_dlunknown 11285 cat > conftest.$ac_ext <<_LT_EOF 11286#line $LINENO "configure" 11287#include "confdefs.h" 11288 11289#if HAVE_DLFCN_H 11290#include <dlfcn.h> 11291#endif 11292 11293#include <stdio.h> 11294 11295#ifdef RTLD_GLOBAL 11296# define LT_DLGLOBAL RTLD_GLOBAL 11297#else 11298# ifdef DL_GLOBAL 11299# define LT_DLGLOBAL DL_GLOBAL 11300# else 11301# define LT_DLGLOBAL 0 11302# endif 11303#endif 11304 11305/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11306 find out it does not work in some platform. */ 11307#ifndef LT_DLLAZY_OR_NOW 11308# ifdef RTLD_LAZY 11309# define LT_DLLAZY_OR_NOW RTLD_LAZY 11310# else 11311# ifdef DL_LAZY 11312# define LT_DLLAZY_OR_NOW DL_LAZY 11313# else 11314# ifdef RTLD_NOW 11315# define LT_DLLAZY_OR_NOW RTLD_NOW 11316# else 11317# ifdef DL_NOW 11318# define LT_DLLAZY_OR_NOW DL_NOW 11319# else 11320# define LT_DLLAZY_OR_NOW 0 11321# endif 11322# endif 11323# endif 11324# endif 11325#endif 11326 11327/* When -fvisbility=hidden is used, assume the code has been annotated 11328 correspondingly for the symbols needed. */ 11329#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11330int fnord () __attribute__((visibility("default"))); 11331#endif 11332 11333int fnord () { return 42; } 11334int main () 11335{ 11336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11337 int status = $lt_dlunknown; 11338 11339 if (self) 11340 { 11341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11342 else 11343 { 11344 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11345 else puts (dlerror ()); 11346 } 11347 /* dlclose (self); */ 11348 } 11349 else 11350 puts (dlerror ()); 11351 11352 return status; 11353} 11354_LT_EOF 11355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11356 (eval $ac_link) 2>&5 11357 ac_status=$? 11358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11359 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11360 (./conftest; exit; ) >&5 2>/dev/null 11361 lt_status=$? 11362 case x$lt_status in 11363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11365 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11366 esac 11367 else : 11368 # compilation failed 11369 lt_cv_dlopen_self=no 11370 fi 11371fi 11372rm -fr conftest* 11373 11374 11375fi 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11377$as_echo "$lt_cv_dlopen_self" >&6; } 11378 11379 if test "x$lt_cv_dlopen_self" = xyes; then 11380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11382$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11383if ${lt_cv_dlopen_self_static+:} false; then : 11384 $as_echo_n "(cached) " >&6 11385else 11386 if test "$cross_compiling" = yes; then : 11387 lt_cv_dlopen_self_static=cross 11388else 11389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11390 lt_status=$lt_dlunknown 11391 cat > conftest.$ac_ext <<_LT_EOF 11392#line $LINENO "configure" 11393#include "confdefs.h" 11394 11395#if HAVE_DLFCN_H 11396#include <dlfcn.h> 11397#endif 11398 11399#include <stdio.h> 11400 11401#ifdef RTLD_GLOBAL 11402# define LT_DLGLOBAL RTLD_GLOBAL 11403#else 11404# ifdef DL_GLOBAL 11405# define LT_DLGLOBAL DL_GLOBAL 11406# else 11407# define LT_DLGLOBAL 0 11408# endif 11409#endif 11410 11411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11412 find out it does not work in some platform. */ 11413#ifndef LT_DLLAZY_OR_NOW 11414# ifdef RTLD_LAZY 11415# define LT_DLLAZY_OR_NOW RTLD_LAZY 11416# else 11417# ifdef DL_LAZY 11418# define LT_DLLAZY_OR_NOW DL_LAZY 11419# else 11420# ifdef RTLD_NOW 11421# define LT_DLLAZY_OR_NOW RTLD_NOW 11422# else 11423# ifdef DL_NOW 11424# define LT_DLLAZY_OR_NOW DL_NOW 11425# else 11426# define LT_DLLAZY_OR_NOW 0 11427# endif 11428# endif 11429# endif 11430# endif 11431#endif 11432 11433/* When -fvisbility=hidden is used, assume the code has been annotated 11434 correspondingly for the symbols needed. */ 11435#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11436int fnord () __attribute__((visibility("default"))); 11437#endif 11438 11439int fnord () { return 42; } 11440int main () 11441{ 11442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11443 int status = $lt_dlunknown; 11444 11445 if (self) 11446 { 11447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11448 else 11449 { 11450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11451 else puts (dlerror ()); 11452 } 11453 /* dlclose (self); */ 11454 } 11455 else 11456 puts (dlerror ()); 11457 11458 return status; 11459} 11460_LT_EOF 11461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11462 (eval $ac_link) 2>&5 11463 ac_status=$? 11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11465 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11466 (./conftest; exit; ) >&5 2>/dev/null 11467 lt_status=$? 11468 case x$lt_status in 11469 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11470 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11471 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11472 esac 11473 else : 11474 # compilation failed 11475 lt_cv_dlopen_self_static=no 11476 fi 11477fi 11478rm -fr conftest* 11479 11480 11481fi 11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11483$as_echo "$lt_cv_dlopen_self_static" >&6; } 11484 fi 11485 11486 CPPFLAGS="$save_CPPFLAGS" 11487 LDFLAGS="$save_LDFLAGS" 11488 LIBS="$save_LIBS" 11489 ;; 11490 esac 11491 11492 case $lt_cv_dlopen_self in 11493 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11494 *) enable_dlopen_self=unknown ;; 11495 esac 11496 11497 case $lt_cv_dlopen_self_static in 11498 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11499 *) enable_dlopen_self_static=unknown ;; 11500 esac 11501fi 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519striplib= 11520old_striplib= 11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11522$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11523if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11524 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11525 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11527$as_echo "yes" >&6; } 11528else 11529# FIXME - insert some real tests, host_os isn't really good enough 11530 case $host_os in 11531 darwin*) 11532 if test -n "$STRIP" ; then 11533 striplib="$STRIP -x" 11534 old_striplib="$STRIP -S" 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11536$as_echo "yes" >&6; } 11537 else 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11539$as_echo "no" >&6; } 11540 fi 11541 ;; 11542 *) 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11544$as_echo "no" >&6; } 11545 ;; 11546 esac 11547fi 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 # Report which library types will actually be built 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11562$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11564$as_echo "$can_build_shared" >&6; } 11565 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11567$as_echo_n "checking whether to build shared libraries... " >&6; } 11568 test "$can_build_shared" = "no" && enable_shared=no 11569 11570 # On AIX, shared libraries and static libraries use the same namespace, and 11571 # are all built from PIC. 11572 case $host_os in 11573 aix3*) 11574 test "$enable_shared" = yes && enable_static=no 11575 if test -n "$RANLIB"; then 11576 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11577 postinstall_cmds='$RANLIB $lib' 11578 fi 11579 ;; 11580 11581 aix[4-9]*) 11582 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11583 test "$enable_shared" = yes && enable_static=no 11584 fi 11585 ;; 11586 esac 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11588$as_echo "$enable_shared" >&6; } 11589 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11591$as_echo_n "checking whether to build static libraries... " >&6; } 11592 # Make sure either enable_shared or enable_static is yes. 11593 test "$enable_shared" = yes || enable_static=yes 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11595$as_echo "$enable_static" >&6; } 11596 11597 11598 11599 11600fi 11601ac_ext=c 11602ac_cpp='$CPP $CPPFLAGS' 11603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11605ac_compiler_gnu=$ac_cv_c_compiler_gnu 11606 11607CC="$lt_save_CC" 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 ac_config_commands="$ac_config_commands libtool" 11622 11623 11624 11625 11626# Only expand once: 11627 11628 11629 11630# Require xorg-macros minimum of 1.12 for DocBook external references 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11643$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11644if ${ac_cv_prog_cc_c99+:} false; then : 11645 $as_echo_n "(cached) " >&6 11646else 11647 ac_cv_prog_cc_c99=no 11648ac_save_CC=$CC 11649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11650/* end confdefs.h. */ 11651#include <stdarg.h> 11652#include <stdbool.h> 11653#include <stdlib.h> 11654#include <wchar.h> 11655#include <stdio.h> 11656 11657// Check varargs macros. These examples are taken from C99 6.10.3.5. 11658#define debug(...) fprintf (stderr, __VA_ARGS__) 11659#define showlist(...) puts (#__VA_ARGS__) 11660#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11661static void 11662test_varargs_macros (void) 11663{ 11664 int x = 1234; 11665 int y = 5678; 11666 debug ("Flag"); 11667 debug ("X = %d\n", x); 11668 showlist (The first, second, and third items.); 11669 report (x>y, "x is %d but y is %d", x, y); 11670} 11671 11672// Check long long types. 11673#define BIG64 18446744073709551615ull 11674#define BIG32 4294967295ul 11675#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11676#if !BIG_OK 11677 your preprocessor is broken; 11678#endif 11679#if BIG_OK 11680#else 11681 your preprocessor is broken; 11682#endif 11683static long long int bignum = -9223372036854775807LL; 11684static unsigned long long int ubignum = BIG64; 11685 11686struct incomplete_array 11687{ 11688 int datasize; 11689 double data[]; 11690}; 11691 11692struct named_init { 11693 int number; 11694 const wchar_t *name; 11695 double average; 11696}; 11697 11698typedef const char *ccp; 11699 11700static inline int 11701test_restrict (ccp restrict text) 11702{ 11703 // See if C++-style comments work. 11704 // Iterate through items via the restricted pointer. 11705 // Also check for declarations in for loops. 11706 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11707 continue; 11708 return 0; 11709} 11710 11711// Check varargs and va_copy. 11712static void 11713test_varargs (const char *format, ...) 11714{ 11715 va_list args; 11716 va_start (args, format); 11717 va_list args_copy; 11718 va_copy (args_copy, args); 11719 11720 const char *str; 11721 int number; 11722 float fnumber; 11723 11724 while (*format) 11725 { 11726 switch (*format++) 11727 { 11728 case 's': // string 11729 str = va_arg (args_copy, const char *); 11730 break; 11731 case 'd': // int 11732 number = va_arg (args_copy, int); 11733 break; 11734 case 'f': // float 11735 fnumber = va_arg (args_copy, double); 11736 break; 11737 default: 11738 break; 11739 } 11740 } 11741 va_end (args_copy); 11742 va_end (args); 11743} 11744 11745int 11746main () 11747{ 11748 11749 // Check bool. 11750 _Bool success = false; 11751 11752 // Check restrict. 11753 if (test_restrict ("String literal") == 0) 11754 success = true; 11755 char *restrict newvar = "Another string"; 11756 11757 // Check varargs. 11758 test_varargs ("s, d' f .", "string", 65, 34.234); 11759 test_varargs_macros (); 11760 11761 // Check flexible array members. 11762 struct incomplete_array *ia = 11763 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11764 ia->datasize = 10; 11765 for (int i = 0; i < ia->datasize; ++i) 11766 ia->data[i] = i * 1.234; 11767 11768 // Check named initializers. 11769 struct named_init ni = { 11770 .number = 34, 11771 .name = L"Test wide string", 11772 .average = 543.34343, 11773 }; 11774 11775 ni.number = 58; 11776 11777 int dynamic_array[ni.number]; 11778 dynamic_array[ni.number - 1] = 543; 11779 11780 // work around unused variable warnings 11781 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11782 || dynamic_array[ni.number - 1] != 543); 11783 11784 ; 11785 return 0; 11786} 11787_ACEOF 11788for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11789do 11790 CC="$ac_save_CC $ac_arg" 11791 if ac_fn_c_try_compile "$LINENO"; then : 11792 ac_cv_prog_cc_c99=$ac_arg 11793fi 11794rm -f core conftest.err conftest.$ac_objext 11795 test "x$ac_cv_prog_cc_c99" != "xno" && break 11796done 11797rm -f conftest.$ac_ext 11798CC=$ac_save_CC 11799 11800fi 11801# AC_CACHE_VAL 11802case "x$ac_cv_prog_cc_c99" in 11803 x) 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11805$as_echo "none needed" >&6; } ;; 11806 xno) 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11808$as_echo "unsupported" >&6; } ;; 11809 *) 11810 CC="$CC $ac_cv_prog_cc_c99" 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11812$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11813esac 11814if test "x$ac_cv_prog_cc_c99" != xno; then : 11815 11816fi 11817 11818 11819 11820 11821 11822 11823ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11824if test "x$ac_cv_have_decl___clang__" = xyes; then : 11825 CLANGCC="yes" 11826else 11827 CLANGCC="no" 11828fi 11829 11830ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11831if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11832 INTELCC="yes" 11833else 11834 INTELCC="no" 11835fi 11836 11837ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11838if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11839 SUNCC="yes" 11840else 11841 SUNCC="no" 11842fi 11843 11844 11845 11846 11847if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11848 if test -n "$ac_tool_prefix"; then 11849 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11850set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11852$as_echo_n "checking for $ac_word... " >&6; } 11853if ${ac_cv_path_PKG_CONFIG+:} false; then : 11854 $as_echo_n "(cached) " >&6 11855else 11856 case $PKG_CONFIG in 11857 [\\/]* | ?:[\\/]*) 11858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11859 ;; 11860 *) 11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11862for as_dir in $PATH 11863do 11864 IFS=$as_save_IFS 11865 test -z "$as_dir" && as_dir=. 11866 for ac_exec_ext in '' $ac_executable_extensions; do 11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11870 break 2 11871 fi 11872done 11873 done 11874IFS=$as_save_IFS 11875 11876 ;; 11877esac 11878fi 11879PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11880if test -n "$PKG_CONFIG"; then 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11882$as_echo "$PKG_CONFIG" >&6; } 11883else 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11885$as_echo "no" >&6; } 11886fi 11887 11888 11889fi 11890if test -z "$ac_cv_path_PKG_CONFIG"; then 11891 ac_pt_PKG_CONFIG=$PKG_CONFIG 11892 # Extract the first word of "pkg-config", so it can be a program name with args. 11893set dummy pkg-config; ac_word=$2 11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11895$as_echo_n "checking for $ac_word... " >&6; } 11896if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11897 $as_echo_n "(cached) " >&6 11898else 11899 case $ac_pt_PKG_CONFIG in 11900 [\\/]* | ?:[\\/]*) 11901 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11902 ;; 11903 *) 11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11905for as_dir in $PATH 11906do 11907 IFS=$as_save_IFS 11908 test -z "$as_dir" && as_dir=. 11909 for ac_exec_ext in '' $ac_executable_extensions; do 11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11911 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11913 break 2 11914 fi 11915done 11916 done 11917IFS=$as_save_IFS 11918 11919 ;; 11920esac 11921fi 11922ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11923if test -n "$ac_pt_PKG_CONFIG"; then 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11925$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11926else 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11928$as_echo "no" >&6; } 11929fi 11930 11931 if test "x$ac_pt_PKG_CONFIG" = x; then 11932 PKG_CONFIG="" 11933 else 11934 case $cross_compiling:$ac_tool_warned in 11935yes:) 11936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11938ac_tool_warned=yes ;; 11939esac 11940 PKG_CONFIG=$ac_pt_PKG_CONFIG 11941 fi 11942else 11943 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11944fi 11945 11946fi 11947if test -n "$PKG_CONFIG"; then 11948 _pkg_min_version=0.9.0 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11950$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11951 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11953$as_echo "yes" >&6; } 11954 else 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956$as_echo "no" >&6; } 11957 PKG_CONFIG="" 11958 fi 11959 11960fi 11961 11962 11963 11964 11965 11966# Check whether --enable-selective-werror was given. 11967if test "${enable_selective_werror+set}" = set; then : 11968 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11969else 11970 SELECTIVE_WERROR=yes 11971fi 11972 11973 11974 11975 11976 11977# -v is too short to test reliably with XORG_TESTSET_CFLAG 11978if test "x$SUNCC" = "xyes"; then 11979 BASE_CFLAGS="-v" 11980else 11981 BASE_CFLAGS="" 11982fi 11983 11984# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996xorg_testset_save_CFLAGS="$CFLAGS" 11997 11998if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12001$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12002if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12003 $as_echo_n "(cached) " >&6 12004else 12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12006/* end confdefs.h. */ 12007int i; 12008_ACEOF 12009if ac_fn_c_try_compile "$LINENO"; then : 12010 xorg_cv_compiler_flag_unknown_warning_option=yes 12011else 12012 xorg_cv_compiler_flag_unknown_warning_option=no 12013fi 12014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12015fi 12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12017$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12018 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12019 CFLAGS="$xorg_testset_save_CFLAGS" 12020fi 12021 12022if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12025 fi 12026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12028$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12029if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12030 $as_echo_n "(cached) " >&6 12031else 12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12033/* end confdefs.h. */ 12034int i; 12035_ACEOF 12036if ac_fn_c_try_compile "$LINENO"; then : 12037 xorg_cv_compiler_flag_unused_command_line_argument=yes 12038else 12039 xorg_cv_compiler_flag_unused_command_line_argument=no 12040fi 12041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12042fi 12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12044$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12045 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12046 CFLAGS="$xorg_testset_save_CFLAGS" 12047fi 12048 12049found="no" 12050 12051 if test $found = "no" ; then 12052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12054 fi 12055 12056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12058 fi 12059 12060 CFLAGS="$CFLAGS -Wall" 12061 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12063$as_echo_n "checking if $CC supports -Wall... " >&6; } 12064 cacheid=`$as_echo xorg_cv_cc_flag_-Wall` 12065 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12066 $as_echo_n "(cached) " >&6 12067else 12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12069/* end confdefs.h. */ 12070int i; 12071int 12072main () 12073{ 12074 12075 ; 12076 return 0; 12077} 12078_ACEOF 12079if ac_fn_c_try_link "$LINENO"; then : 12080 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12081else 12082 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12083fi 12084rm -f core conftest.err conftest.$ac_objext \ 12085 conftest$ac_exeext conftest.$ac_ext 12086fi 12087 12088 12089 CFLAGS="$xorg_testset_save_CFLAGS" 12090 12091 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12093$as_echo "$supported" >&6; } 12094 if test "$supported" = "yes" ; then 12095 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12096 found="yes" 12097 fi 12098 fi 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112xorg_testset_save_CFLAGS="$CFLAGS" 12113 12114if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12117$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12118if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12119 $as_echo_n "(cached) " >&6 12120else 12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12122/* end confdefs.h. */ 12123int i; 12124_ACEOF 12125if ac_fn_c_try_compile "$LINENO"; then : 12126 xorg_cv_compiler_flag_unknown_warning_option=yes 12127else 12128 xorg_cv_compiler_flag_unknown_warning_option=no 12129fi 12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12131fi 12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12133$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12134 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12135 CFLAGS="$xorg_testset_save_CFLAGS" 12136fi 12137 12138if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12141 fi 12142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12144$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12145if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12146 $as_echo_n "(cached) " >&6 12147else 12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12149/* end confdefs.h. */ 12150int i; 12151_ACEOF 12152if ac_fn_c_try_compile "$LINENO"; then : 12153 xorg_cv_compiler_flag_unused_command_line_argument=yes 12154else 12155 xorg_cv_compiler_flag_unused_command_line_argument=no 12156fi 12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12158fi 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12160$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12161 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12162 CFLAGS="$xorg_testset_save_CFLAGS" 12163fi 12164 12165found="no" 12166 12167 if test $found = "no" ; then 12168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12170 fi 12171 12172 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12174 fi 12175 12176 CFLAGS="$CFLAGS -Wpointer-arith" 12177 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12179$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12180 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` 12181 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12182 $as_echo_n "(cached) " >&6 12183else 12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12185/* end confdefs.h. */ 12186int i; 12187int 12188main () 12189{ 12190 12191 ; 12192 return 0; 12193} 12194_ACEOF 12195if ac_fn_c_try_link "$LINENO"; then : 12196 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12197else 12198 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12199fi 12200rm -f core conftest.err conftest.$ac_objext \ 12201 conftest$ac_exeext conftest.$ac_ext 12202fi 12203 12204 12205 CFLAGS="$xorg_testset_save_CFLAGS" 12206 12207 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12209$as_echo "$supported" >&6; } 12210 if test "$supported" = "yes" ; then 12211 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12212 found="yes" 12213 fi 12214 fi 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228xorg_testset_save_CFLAGS="$CFLAGS" 12229 12230if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12233$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12234if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12235 $as_echo_n "(cached) " >&6 12236else 12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12238/* end confdefs.h. */ 12239int i; 12240_ACEOF 12241if ac_fn_c_try_compile "$LINENO"; then : 12242 xorg_cv_compiler_flag_unknown_warning_option=yes 12243else 12244 xorg_cv_compiler_flag_unknown_warning_option=no 12245fi 12246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12247fi 12248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12249$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12250 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12251 CFLAGS="$xorg_testset_save_CFLAGS" 12252fi 12253 12254if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12257 fi 12258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12260$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12261if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12262 $as_echo_n "(cached) " >&6 12263else 12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12265/* end confdefs.h. */ 12266int i; 12267_ACEOF 12268if ac_fn_c_try_compile "$LINENO"; then : 12269 xorg_cv_compiler_flag_unused_command_line_argument=yes 12270else 12271 xorg_cv_compiler_flag_unused_command_line_argument=no 12272fi 12273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12274fi 12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12276$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12277 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12278 CFLAGS="$xorg_testset_save_CFLAGS" 12279fi 12280 12281found="no" 12282 12283 if test $found = "no" ; then 12284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12286 fi 12287 12288 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12290 fi 12291 12292 CFLAGS="$CFLAGS -Wmissing-declarations" 12293 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12295$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12296 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` 12297 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12298 $as_echo_n "(cached) " >&6 12299else 12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302int i; 12303int 12304main () 12305{ 12306 12307 ; 12308 return 0; 12309} 12310_ACEOF 12311if ac_fn_c_try_link "$LINENO"; then : 12312 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12313else 12314 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12315fi 12316rm -f core conftest.err conftest.$ac_objext \ 12317 conftest$ac_exeext conftest.$ac_ext 12318fi 12319 12320 12321 CFLAGS="$xorg_testset_save_CFLAGS" 12322 12323 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12325$as_echo "$supported" >&6; } 12326 if test "$supported" = "yes" ; then 12327 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12328 found="yes" 12329 fi 12330 fi 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344xorg_testset_save_CFLAGS="$CFLAGS" 12345 12346if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12349$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12350if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12351 $as_echo_n "(cached) " >&6 12352else 12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12354/* end confdefs.h. */ 12355int i; 12356_ACEOF 12357if ac_fn_c_try_compile "$LINENO"; then : 12358 xorg_cv_compiler_flag_unknown_warning_option=yes 12359else 12360 xorg_cv_compiler_flag_unknown_warning_option=no 12361fi 12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12363fi 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12365$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12366 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12367 CFLAGS="$xorg_testset_save_CFLAGS" 12368fi 12369 12370if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12373 fi 12374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12376$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12377if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12378 $as_echo_n "(cached) " >&6 12379else 12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12381/* end confdefs.h. */ 12382int i; 12383_ACEOF 12384if ac_fn_c_try_compile "$LINENO"; then : 12385 xorg_cv_compiler_flag_unused_command_line_argument=yes 12386else 12387 xorg_cv_compiler_flag_unused_command_line_argument=no 12388fi 12389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12390fi 12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12392$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12393 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12394 CFLAGS="$xorg_testset_save_CFLAGS" 12395fi 12396 12397found="no" 12398 12399 if test $found = "no" ; then 12400 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12402 fi 12403 12404 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12406 fi 12407 12408 CFLAGS="$CFLAGS -Wformat=2" 12409 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12411$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12412 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` 12413 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12414 $as_echo_n "(cached) " >&6 12415else 12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12417/* end confdefs.h. */ 12418int i; 12419int 12420main () 12421{ 12422 12423 ; 12424 return 0; 12425} 12426_ACEOF 12427if ac_fn_c_try_link "$LINENO"; then : 12428 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12429else 12430 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12431fi 12432rm -f core conftest.err conftest.$ac_objext \ 12433 conftest$ac_exeext conftest.$ac_ext 12434fi 12435 12436 12437 CFLAGS="$xorg_testset_save_CFLAGS" 12438 12439 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12441$as_echo "$supported" >&6; } 12442 if test "$supported" = "yes" ; then 12443 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12444 found="yes" 12445 fi 12446 fi 12447 12448 if test $found = "no" ; then 12449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12451 fi 12452 12453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12455 fi 12456 12457 CFLAGS="$CFLAGS -Wformat" 12458 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12460$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12461 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` 12462 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12463 $as_echo_n "(cached) " >&6 12464else 12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12466/* end confdefs.h. */ 12467int i; 12468int 12469main () 12470{ 12471 12472 ; 12473 return 0; 12474} 12475_ACEOF 12476if ac_fn_c_try_link "$LINENO"; then : 12477 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12478else 12479 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12480fi 12481rm -f core conftest.err conftest.$ac_objext \ 12482 conftest$ac_exeext conftest.$ac_ext 12483fi 12484 12485 12486 CFLAGS="$xorg_testset_save_CFLAGS" 12487 12488 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12490$as_echo "$supported" >&6; } 12491 if test "$supported" = "yes" ; then 12492 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12493 found="yes" 12494 fi 12495 fi 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511xorg_testset_save_CFLAGS="$CFLAGS" 12512 12513if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12516$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12517if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12518 $as_echo_n "(cached) " >&6 12519else 12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12521/* end confdefs.h. */ 12522int i; 12523_ACEOF 12524if ac_fn_c_try_compile "$LINENO"; then : 12525 xorg_cv_compiler_flag_unknown_warning_option=yes 12526else 12527 xorg_cv_compiler_flag_unknown_warning_option=no 12528fi 12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12530fi 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12532$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12533 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12534 CFLAGS="$xorg_testset_save_CFLAGS" 12535fi 12536 12537if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12538 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12540 fi 12541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12543$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12544if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12545 $as_echo_n "(cached) " >&6 12546else 12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12548/* end confdefs.h. */ 12549int i; 12550_ACEOF 12551if ac_fn_c_try_compile "$LINENO"; then : 12552 xorg_cv_compiler_flag_unused_command_line_argument=yes 12553else 12554 xorg_cv_compiler_flag_unused_command_line_argument=no 12555fi 12556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12557fi 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12559$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12560 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12561 CFLAGS="$xorg_testset_save_CFLAGS" 12562fi 12563 12564found="no" 12565 12566 if test $found = "no" ; then 12567 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12569 fi 12570 12571 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12573 fi 12574 12575 CFLAGS="$CFLAGS -Wstrict-prototypes" 12576 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12578$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12579 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` 12580 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12581 $as_echo_n "(cached) " >&6 12582else 12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12584/* end confdefs.h. */ 12585int i; 12586int 12587main () 12588{ 12589 12590 ; 12591 return 0; 12592} 12593_ACEOF 12594if ac_fn_c_try_link "$LINENO"; then : 12595 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12596else 12597 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12598fi 12599rm -f core conftest.err conftest.$ac_objext \ 12600 conftest$ac_exeext conftest.$ac_ext 12601fi 12602 12603 12604 CFLAGS="$xorg_testset_save_CFLAGS" 12605 12606 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12608$as_echo "$supported" >&6; } 12609 if test "$supported" = "yes" ; then 12610 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12611 found="yes" 12612 fi 12613 fi 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627xorg_testset_save_CFLAGS="$CFLAGS" 12628 12629if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12632$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12633if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12634 $as_echo_n "(cached) " >&6 12635else 12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12637/* end confdefs.h. */ 12638int i; 12639_ACEOF 12640if ac_fn_c_try_compile "$LINENO"; then : 12641 xorg_cv_compiler_flag_unknown_warning_option=yes 12642else 12643 xorg_cv_compiler_flag_unknown_warning_option=no 12644fi 12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12646fi 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12648$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12649 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12650 CFLAGS="$xorg_testset_save_CFLAGS" 12651fi 12652 12653if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12654 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12656 fi 12657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12659$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12660if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12661 $as_echo_n "(cached) " >&6 12662else 12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12664/* end confdefs.h. */ 12665int i; 12666_ACEOF 12667if ac_fn_c_try_compile "$LINENO"; then : 12668 xorg_cv_compiler_flag_unused_command_line_argument=yes 12669else 12670 xorg_cv_compiler_flag_unused_command_line_argument=no 12671fi 12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12673fi 12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12675$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12676 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12677 CFLAGS="$xorg_testset_save_CFLAGS" 12678fi 12679 12680found="no" 12681 12682 if test $found = "no" ; then 12683 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12685 fi 12686 12687 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12689 fi 12690 12691 CFLAGS="$CFLAGS -Wmissing-prototypes" 12692 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12694$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12695 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` 12696 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12697 $as_echo_n "(cached) " >&6 12698else 12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12700/* end confdefs.h. */ 12701int i; 12702int 12703main () 12704{ 12705 12706 ; 12707 return 0; 12708} 12709_ACEOF 12710if ac_fn_c_try_link "$LINENO"; then : 12711 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12712else 12713 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12714fi 12715rm -f core conftest.err conftest.$ac_objext \ 12716 conftest$ac_exeext conftest.$ac_ext 12717fi 12718 12719 12720 CFLAGS="$xorg_testset_save_CFLAGS" 12721 12722 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12724$as_echo "$supported" >&6; } 12725 if test "$supported" = "yes" ; then 12726 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12727 found="yes" 12728 fi 12729 fi 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743xorg_testset_save_CFLAGS="$CFLAGS" 12744 12745if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12748$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12749if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12750 $as_echo_n "(cached) " >&6 12751else 12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12753/* end confdefs.h. */ 12754int i; 12755_ACEOF 12756if ac_fn_c_try_compile "$LINENO"; then : 12757 xorg_cv_compiler_flag_unknown_warning_option=yes 12758else 12759 xorg_cv_compiler_flag_unknown_warning_option=no 12760fi 12761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12762fi 12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12764$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12765 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12766 CFLAGS="$xorg_testset_save_CFLAGS" 12767fi 12768 12769if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12770 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12772 fi 12773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12775$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12776if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778else 12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12780/* end confdefs.h. */ 12781int i; 12782_ACEOF 12783if ac_fn_c_try_compile "$LINENO"; then : 12784 xorg_cv_compiler_flag_unused_command_line_argument=yes 12785else 12786 xorg_cv_compiler_flag_unused_command_line_argument=no 12787fi 12788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12789fi 12790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12791$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12792 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12793 CFLAGS="$xorg_testset_save_CFLAGS" 12794fi 12795 12796found="no" 12797 12798 if test $found = "no" ; then 12799 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12801 fi 12802 12803 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12805 fi 12806 12807 CFLAGS="$CFLAGS -Wnested-externs" 12808 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12810$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12811 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` 12812 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12813 $as_echo_n "(cached) " >&6 12814else 12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12816/* end confdefs.h. */ 12817int i; 12818int 12819main () 12820{ 12821 12822 ; 12823 return 0; 12824} 12825_ACEOF 12826if ac_fn_c_try_link "$LINENO"; then : 12827 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12828else 12829 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12830fi 12831rm -f core conftest.err conftest.$ac_objext \ 12832 conftest$ac_exeext conftest.$ac_ext 12833fi 12834 12835 12836 CFLAGS="$xorg_testset_save_CFLAGS" 12837 12838 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12840$as_echo "$supported" >&6; } 12841 if test "$supported" = "yes" ; then 12842 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12843 found="yes" 12844 fi 12845 fi 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859xorg_testset_save_CFLAGS="$CFLAGS" 12860 12861if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12864$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12865if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12866 $as_echo_n "(cached) " >&6 12867else 12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12869/* end confdefs.h. */ 12870int i; 12871_ACEOF 12872if ac_fn_c_try_compile "$LINENO"; then : 12873 xorg_cv_compiler_flag_unknown_warning_option=yes 12874else 12875 xorg_cv_compiler_flag_unknown_warning_option=no 12876fi 12877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12878fi 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12880$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12881 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12882 CFLAGS="$xorg_testset_save_CFLAGS" 12883fi 12884 12885if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12886 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12888 fi 12889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12891$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12892if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12893 $as_echo_n "(cached) " >&6 12894else 12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12896/* end confdefs.h. */ 12897int i; 12898_ACEOF 12899if ac_fn_c_try_compile "$LINENO"; then : 12900 xorg_cv_compiler_flag_unused_command_line_argument=yes 12901else 12902 xorg_cv_compiler_flag_unused_command_line_argument=no 12903fi 12904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12905fi 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12907$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12908 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12909 CFLAGS="$xorg_testset_save_CFLAGS" 12910fi 12911 12912found="no" 12913 12914 if test $found = "no" ; then 12915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12917 fi 12918 12919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12921 fi 12922 12923 CFLAGS="$CFLAGS -Wbad-function-cast" 12924 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12926$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12927 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` 12928 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12929 $as_echo_n "(cached) " >&6 12930else 12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12932/* end confdefs.h. */ 12933int i; 12934int 12935main () 12936{ 12937 12938 ; 12939 return 0; 12940} 12941_ACEOF 12942if ac_fn_c_try_link "$LINENO"; then : 12943 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12944else 12945 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12946fi 12947rm -f core conftest.err conftest.$ac_objext \ 12948 conftest$ac_exeext conftest.$ac_ext 12949fi 12950 12951 12952 CFLAGS="$xorg_testset_save_CFLAGS" 12953 12954 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12956$as_echo "$supported" >&6; } 12957 if test "$supported" = "yes" ; then 12958 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12959 found="yes" 12960 fi 12961 fi 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975xorg_testset_save_CFLAGS="$CFLAGS" 12976 12977if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12980$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12981if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12982 $as_echo_n "(cached) " >&6 12983else 12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12985/* end confdefs.h. */ 12986int i; 12987_ACEOF 12988if ac_fn_c_try_compile "$LINENO"; then : 12989 xorg_cv_compiler_flag_unknown_warning_option=yes 12990else 12991 xorg_cv_compiler_flag_unknown_warning_option=no 12992fi 12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12994fi 12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12996$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12997 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12998 CFLAGS="$xorg_testset_save_CFLAGS" 12999fi 13000 13001if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13002 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13004 fi 13005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13007$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13008if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13009 $as_echo_n "(cached) " >&6 13010else 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013int i; 13014_ACEOF 13015if ac_fn_c_try_compile "$LINENO"; then : 13016 xorg_cv_compiler_flag_unused_command_line_argument=yes 13017else 13018 xorg_cv_compiler_flag_unused_command_line_argument=no 13019fi 13020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13021fi 13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13023$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13024 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13025 CFLAGS="$xorg_testset_save_CFLAGS" 13026fi 13027 13028found="no" 13029 13030 if test $found = "no" ; then 13031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13033 fi 13034 13035 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13037 fi 13038 13039 CFLAGS="$CFLAGS -Wold-style-definition" 13040 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13042$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13043 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` 13044 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13045 $as_echo_n "(cached) " >&6 13046else 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048/* end confdefs.h. */ 13049int i; 13050int 13051main () 13052{ 13053 13054 ; 13055 return 0; 13056} 13057_ACEOF 13058if ac_fn_c_try_link "$LINENO"; then : 13059 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13060else 13061 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13062fi 13063rm -f core conftest.err conftest.$ac_objext \ 13064 conftest$ac_exeext conftest.$ac_ext 13065fi 13066 13067 13068 CFLAGS="$xorg_testset_save_CFLAGS" 13069 13070 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13072$as_echo "$supported" >&6; } 13073 if test "$supported" = "yes" ; then 13074 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13075 found="yes" 13076 fi 13077 fi 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091xorg_testset_save_CFLAGS="$CFLAGS" 13092 13093if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13096$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13097if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13098 $as_echo_n "(cached) " >&6 13099else 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102int i; 13103_ACEOF 13104if ac_fn_c_try_compile "$LINENO"; then : 13105 xorg_cv_compiler_flag_unknown_warning_option=yes 13106else 13107 xorg_cv_compiler_flag_unknown_warning_option=no 13108fi 13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13110fi 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13112$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13113 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13114 CFLAGS="$xorg_testset_save_CFLAGS" 13115fi 13116 13117if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13120 fi 13121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13123$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13124if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129int i; 13130_ACEOF 13131if ac_fn_c_try_compile "$LINENO"; then : 13132 xorg_cv_compiler_flag_unused_command_line_argument=yes 13133else 13134 xorg_cv_compiler_flag_unused_command_line_argument=no 13135fi 13136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13137fi 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13139$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13140 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13141 CFLAGS="$xorg_testset_save_CFLAGS" 13142fi 13143 13144found="no" 13145 13146 if test $found = "no" ; then 13147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 fi 13150 13151 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13153 fi 13154 13155 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13156 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13158$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13159 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` 13160 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13161 $as_echo_n "(cached) " >&6 13162else 13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13164/* end confdefs.h. */ 13165int i; 13166int 13167main () 13168{ 13169 13170 ; 13171 return 0; 13172} 13173_ACEOF 13174if ac_fn_c_try_link "$LINENO"; then : 13175 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13176else 13177 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13178fi 13179rm -f core conftest.err conftest.$ac_objext \ 13180 conftest$ac_exeext conftest.$ac_ext 13181fi 13182 13183 13184 CFLAGS="$xorg_testset_save_CFLAGS" 13185 13186 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13188$as_echo "$supported" >&6; } 13189 if test "$supported" = "yes" ; then 13190 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13191 found="yes" 13192 fi 13193 fi 13194 13195 13196 13197 13198 13199# This chunk adds additional warnings that could catch undesired effects. 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211xorg_testset_save_CFLAGS="$CFLAGS" 13212 13213if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13216$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13217if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219else 13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13221/* end confdefs.h. */ 13222int i; 13223_ACEOF 13224if ac_fn_c_try_compile "$LINENO"; then : 13225 xorg_cv_compiler_flag_unknown_warning_option=yes 13226else 13227 xorg_cv_compiler_flag_unknown_warning_option=no 13228fi 13229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13230fi 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13232$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13233 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13234 CFLAGS="$xorg_testset_save_CFLAGS" 13235fi 13236 13237if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13240 fi 13241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13243$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13244if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13245 $as_echo_n "(cached) " >&6 13246else 13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13248/* end confdefs.h. */ 13249int i; 13250_ACEOF 13251if ac_fn_c_try_compile "$LINENO"; then : 13252 xorg_cv_compiler_flag_unused_command_line_argument=yes 13253else 13254 xorg_cv_compiler_flag_unused_command_line_argument=no 13255fi 13256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13257fi 13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13259$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13260 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13261 CFLAGS="$xorg_testset_save_CFLAGS" 13262fi 13263 13264found="no" 13265 13266 if test $found = "no" ; then 13267 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13269 fi 13270 13271 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13273 fi 13274 13275 CFLAGS="$CFLAGS -Wunused" 13276 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13278$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13279 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` 13280 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13281 $as_echo_n "(cached) " >&6 13282else 13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13284/* end confdefs.h. */ 13285int i; 13286int 13287main () 13288{ 13289 13290 ; 13291 return 0; 13292} 13293_ACEOF 13294if ac_fn_c_try_link "$LINENO"; then : 13295 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13296else 13297 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13298fi 13299rm -f core conftest.err conftest.$ac_objext \ 13300 conftest$ac_exeext conftest.$ac_ext 13301fi 13302 13303 13304 CFLAGS="$xorg_testset_save_CFLAGS" 13305 13306 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13308$as_echo "$supported" >&6; } 13309 if test "$supported" = "yes" ; then 13310 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13311 found="yes" 13312 fi 13313 fi 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327xorg_testset_save_CFLAGS="$CFLAGS" 13328 13329if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13332$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13333if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13337/* end confdefs.h. */ 13338int i; 13339_ACEOF 13340if ac_fn_c_try_compile "$LINENO"; then : 13341 xorg_cv_compiler_flag_unknown_warning_option=yes 13342else 13343 xorg_cv_compiler_flag_unknown_warning_option=no 13344fi 13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13346fi 13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13348$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13349 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13350 CFLAGS="$xorg_testset_save_CFLAGS" 13351fi 13352 13353if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13356 fi 13357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13359$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13360if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13361 $as_echo_n "(cached) " >&6 13362else 13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364/* end confdefs.h. */ 13365int i; 13366_ACEOF 13367if ac_fn_c_try_compile "$LINENO"; then : 13368 xorg_cv_compiler_flag_unused_command_line_argument=yes 13369else 13370 xorg_cv_compiler_flag_unused_command_line_argument=no 13371fi 13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13373fi 13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13375$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13376 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13377 CFLAGS="$xorg_testset_save_CFLAGS" 13378fi 13379 13380found="no" 13381 13382 if test $found = "no" ; then 13383 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 fi 13386 13387 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13389 fi 13390 13391 CFLAGS="$CFLAGS -Wuninitialized" 13392 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13394$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13395 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` 13396 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13397 $as_echo_n "(cached) " >&6 13398else 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401int i; 13402int 13403main () 13404{ 13405 13406 ; 13407 return 0; 13408} 13409_ACEOF 13410if ac_fn_c_try_link "$LINENO"; then : 13411 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13412else 13413 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext conftest.$ac_ext 13417fi 13418 13419 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421 13422 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13424$as_echo "$supported" >&6; } 13425 if test "$supported" = "yes" ; then 13426 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13427 found="yes" 13428 fi 13429 fi 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443xorg_testset_save_CFLAGS="$CFLAGS" 13444 13445if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13448$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13449if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451else 13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13453/* end confdefs.h. */ 13454int i; 13455_ACEOF 13456if ac_fn_c_try_compile "$LINENO"; then : 13457 xorg_cv_compiler_flag_unknown_warning_option=yes 13458else 13459 xorg_cv_compiler_flag_unknown_warning_option=no 13460fi 13461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13462fi 13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13464$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13465 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13466 CFLAGS="$xorg_testset_save_CFLAGS" 13467fi 13468 13469if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13470 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13472 fi 13473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13475$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13476if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13477 $as_echo_n "(cached) " >&6 13478else 13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13480/* end confdefs.h. */ 13481int i; 13482_ACEOF 13483if ac_fn_c_try_compile "$LINENO"; then : 13484 xorg_cv_compiler_flag_unused_command_line_argument=yes 13485else 13486 xorg_cv_compiler_flag_unused_command_line_argument=no 13487fi 13488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13489fi 13490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13491$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13492 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13493 CFLAGS="$xorg_testset_save_CFLAGS" 13494fi 13495 13496found="no" 13497 13498 if test $found = "no" ; then 13499 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13501 fi 13502 13503 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13505 fi 13506 13507 CFLAGS="$CFLAGS -Wshadow" 13508 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13510$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13511 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` 13512 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13513 $as_echo_n "(cached) " >&6 13514else 13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13516/* end confdefs.h. */ 13517int i; 13518int 13519main () 13520{ 13521 13522 ; 13523 return 0; 13524} 13525_ACEOF 13526if ac_fn_c_try_link "$LINENO"; then : 13527 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13528else 13529 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13530fi 13531rm -f core conftest.err conftest.$ac_objext \ 13532 conftest$ac_exeext conftest.$ac_ext 13533fi 13534 13535 13536 CFLAGS="$xorg_testset_save_CFLAGS" 13537 13538 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13540$as_echo "$supported" >&6; } 13541 if test "$supported" = "yes" ; then 13542 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13543 found="yes" 13544 fi 13545 fi 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559xorg_testset_save_CFLAGS="$CFLAGS" 13560 13561if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13564$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13565if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13566 $as_echo_n "(cached) " >&6 13567else 13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13569/* end confdefs.h. */ 13570int i; 13571_ACEOF 13572if ac_fn_c_try_compile "$LINENO"; then : 13573 xorg_cv_compiler_flag_unknown_warning_option=yes 13574else 13575 xorg_cv_compiler_flag_unknown_warning_option=no 13576fi 13577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13578fi 13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13580$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13581 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13582 CFLAGS="$xorg_testset_save_CFLAGS" 13583fi 13584 13585if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13586 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13588 fi 13589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13591$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13592if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13593 $as_echo_n "(cached) " >&6 13594else 13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13596/* end confdefs.h. */ 13597int i; 13598_ACEOF 13599if ac_fn_c_try_compile "$LINENO"; then : 13600 xorg_cv_compiler_flag_unused_command_line_argument=yes 13601else 13602 xorg_cv_compiler_flag_unused_command_line_argument=no 13603fi 13604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13605fi 13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13607$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13608 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13609 CFLAGS="$xorg_testset_save_CFLAGS" 13610fi 13611 13612found="no" 13613 13614 if test $found = "no" ; then 13615 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13617 fi 13618 13619 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13621 fi 13622 13623 CFLAGS="$CFLAGS -Wcast-qual" 13624 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13626$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13627 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` 13628 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13629 $as_echo_n "(cached) " >&6 13630else 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632/* end confdefs.h. */ 13633int i; 13634int 13635main () 13636{ 13637 13638 ; 13639 return 0; 13640} 13641_ACEOF 13642if ac_fn_c_try_link "$LINENO"; then : 13643 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13644else 13645 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13646fi 13647rm -f core conftest.err conftest.$ac_objext \ 13648 conftest$ac_exeext conftest.$ac_ext 13649fi 13650 13651 13652 CFLAGS="$xorg_testset_save_CFLAGS" 13653 13654 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13656$as_echo "$supported" >&6; } 13657 if test "$supported" = "yes" ; then 13658 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13659 found="yes" 13660 fi 13661 fi 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675xorg_testset_save_CFLAGS="$CFLAGS" 13676 13677if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13680$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13681if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13682 $as_echo_n "(cached) " >&6 13683else 13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13685/* end confdefs.h. */ 13686int i; 13687_ACEOF 13688if ac_fn_c_try_compile "$LINENO"; then : 13689 xorg_cv_compiler_flag_unknown_warning_option=yes 13690else 13691 xorg_cv_compiler_flag_unknown_warning_option=no 13692fi 13693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13694fi 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13696$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13697 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13698 CFLAGS="$xorg_testset_save_CFLAGS" 13699fi 13700 13701if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13702 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13704 fi 13705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13707$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13708if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13709 $as_echo_n "(cached) " >&6 13710else 13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13712/* end confdefs.h. */ 13713int i; 13714_ACEOF 13715if ac_fn_c_try_compile "$LINENO"; then : 13716 xorg_cv_compiler_flag_unused_command_line_argument=yes 13717else 13718 xorg_cv_compiler_flag_unused_command_line_argument=no 13719fi 13720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13721fi 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13723$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13724 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13725 CFLAGS="$xorg_testset_save_CFLAGS" 13726fi 13727 13728found="no" 13729 13730 if test $found = "no" ; then 13731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13733 fi 13734 13735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13737 fi 13738 13739 CFLAGS="$CFLAGS -Wmissing-noreturn" 13740 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13742$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13743 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` 13744 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13745 $as_echo_n "(cached) " >&6 13746else 13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13748/* end confdefs.h. */ 13749int i; 13750int 13751main () 13752{ 13753 13754 ; 13755 return 0; 13756} 13757_ACEOF 13758if ac_fn_c_try_link "$LINENO"; then : 13759 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13760else 13761 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13762fi 13763rm -f core conftest.err conftest.$ac_objext \ 13764 conftest$ac_exeext conftest.$ac_ext 13765fi 13766 13767 13768 CFLAGS="$xorg_testset_save_CFLAGS" 13769 13770 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13772$as_echo "$supported" >&6; } 13773 if test "$supported" = "yes" ; then 13774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13775 found="yes" 13776 fi 13777 fi 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791xorg_testset_save_CFLAGS="$CFLAGS" 13792 13793if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13796$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13797if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13798 $as_echo_n "(cached) " >&6 13799else 13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13801/* end confdefs.h. */ 13802int i; 13803_ACEOF 13804if ac_fn_c_try_compile "$LINENO"; then : 13805 xorg_cv_compiler_flag_unknown_warning_option=yes 13806else 13807 xorg_cv_compiler_flag_unknown_warning_option=no 13808fi 13809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13810fi 13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13812$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13813 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13814 CFLAGS="$xorg_testset_save_CFLAGS" 13815fi 13816 13817if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13818 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13820 fi 13821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13823$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13824if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13825 $as_echo_n "(cached) " >&6 13826else 13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829int i; 13830_ACEOF 13831if ac_fn_c_try_compile "$LINENO"; then : 13832 xorg_cv_compiler_flag_unused_command_line_argument=yes 13833else 13834 xorg_cv_compiler_flag_unused_command_line_argument=no 13835fi 13836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13837fi 13838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13839$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13840 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13841 CFLAGS="$xorg_testset_save_CFLAGS" 13842fi 13843 13844found="no" 13845 13846 if test $found = "no" ; then 13847 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13849 fi 13850 13851 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13853 fi 13854 13855 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13856 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13858$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13859 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` 13860 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13861 $as_echo_n "(cached) " >&6 13862else 13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13864/* end confdefs.h. */ 13865int i; 13866int 13867main () 13868{ 13869 13870 ; 13871 return 0; 13872} 13873_ACEOF 13874if ac_fn_c_try_link "$LINENO"; then : 13875 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13876else 13877 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13878fi 13879rm -f core conftest.err conftest.$ac_objext \ 13880 conftest$ac_exeext conftest.$ac_ext 13881fi 13882 13883 13884 CFLAGS="$xorg_testset_save_CFLAGS" 13885 13886 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13888$as_echo "$supported" >&6; } 13889 if test "$supported" = "yes" ; then 13890 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13891 found="yes" 13892 fi 13893 fi 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907xorg_testset_save_CFLAGS="$CFLAGS" 13908 13909if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13912$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13913if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13914 $as_echo_n "(cached) " >&6 13915else 13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13917/* end confdefs.h. */ 13918int i; 13919_ACEOF 13920if ac_fn_c_try_compile "$LINENO"; then : 13921 xorg_cv_compiler_flag_unknown_warning_option=yes 13922else 13923 xorg_cv_compiler_flag_unknown_warning_option=no 13924fi 13925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13926fi 13927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13928$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13929 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13930 CFLAGS="$xorg_testset_save_CFLAGS" 13931fi 13932 13933if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13934 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13936 fi 13937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13939$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13940if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13941 $as_echo_n "(cached) " >&6 13942else 13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13944/* end confdefs.h. */ 13945int i; 13946_ACEOF 13947if ac_fn_c_try_compile "$LINENO"; then : 13948 xorg_cv_compiler_flag_unused_command_line_argument=yes 13949else 13950 xorg_cv_compiler_flag_unused_command_line_argument=no 13951fi 13952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13953fi 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13955$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13956 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13957 CFLAGS="$xorg_testset_save_CFLAGS" 13958fi 13959 13960found="no" 13961 13962 if test $found = "no" ; then 13963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13965 fi 13966 13967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13969 fi 13970 13971 CFLAGS="$CFLAGS -Wredundant-decls" 13972 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13974$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13975 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` 13976 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13977 $as_echo_n "(cached) " >&6 13978else 13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13980/* end confdefs.h. */ 13981int i; 13982int 13983main () 13984{ 13985 13986 ; 13987 return 0; 13988} 13989_ACEOF 13990if ac_fn_c_try_link "$LINENO"; then : 13991 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13992else 13993 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13994fi 13995rm -f core conftest.err conftest.$ac_objext \ 13996 conftest$ac_exeext conftest.$ac_ext 13997fi 13998 13999 14000 CFLAGS="$xorg_testset_save_CFLAGS" 14001 14002 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14004$as_echo "$supported" >&6; } 14005 if test "$supported" = "yes" ; then 14006 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14007 found="yes" 14008 fi 14009 fi 14010 14011 14012 14013# These are currently disabled because they are noisy. They will be enabled 14014# in the future once the codebase is sufficiently modernized to silence 14015# them. For now, I don't want them to drown out the other warnings. 14016# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14017# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14018# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14019 14020# Turn some warnings into errors, so we don't accidently get successful builds 14021# when there are problems that should be fixed. 14022 14023if test "x$SELECTIVE_WERROR" = "xyes" ; then 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035xorg_testset_save_CFLAGS="$CFLAGS" 14036 14037if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14040$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14041if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14042 $as_echo_n "(cached) " >&6 14043else 14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14045/* end confdefs.h. */ 14046int i; 14047_ACEOF 14048if ac_fn_c_try_compile "$LINENO"; then : 14049 xorg_cv_compiler_flag_unknown_warning_option=yes 14050else 14051 xorg_cv_compiler_flag_unknown_warning_option=no 14052fi 14053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14054fi 14055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14056$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14057 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14058 CFLAGS="$xorg_testset_save_CFLAGS" 14059fi 14060 14061if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14062 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14064 fi 14065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14067$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14068if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14069 $as_echo_n "(cached) " >&6 14070else 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073int i; 14074_ACEOF 14075if ac_fn_c_try_compile "$LINENO"; then : 14076 xorg_cv_compiler_flag_unused_command_line_argument=yes 14077else 14078 xorg_cv_compiler_flag_unused_command_line_argument=no 14079fi 14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14081fi 14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14083$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14084 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14085 CFLAGS="$xorg_testset_save_CFLAGS" 14086fi 14087 14088found="no" 14089 14090 if test $found = "no" ; then 14091 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14093 fi 14094 14095 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14097 fi 14098 14099 CFLAGS="$CFLAGS -Werror=implicit" 14100 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14102$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14103 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` 14104 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14105 $as_echo_n "(cached) " >&6 14106else 14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14108/* end confdefs.h. */ 14109int i; 14110int 14111main () 14112{ 14113 14114 ; 14115 return 0; 14116} 14117_ACEOF 14118if ac_fn_c_try_link "$LINENO"; then : 14119 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14120else 14121 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14122fi 14123rm -f core conftest.err conftest.$ac_objext \ 14124 conftest$ac_exeext conftest.$ac_ext 14125fi 14126 14127 14128 CFLAGS="$xorg_testset_save_CFLAGS" 14129 14130 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14132$as_echo "$supported" >&6; } 14133 if test "$supported" = "yes" ; then 14134 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14135 found="yes" 14136 fi 14137 fi 14138 14139 if test $found = "no" ; then 14140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14142 fi 14143 14144 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14146 fi 14147 14148 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14149 14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14151$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14152 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 14153 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14154 $as_echo_n "(cached) " >&6 14155else 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14157/* end confdefs.h. */ 14158int i; 14159int 14160main () 14161{ 14162 14163 ; 14164 return 0; 14165} 14166_ACEOF 14167if ac_fn_c_try_link "$LINENO"; then : 14168 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14169else 14170 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14171fi 14172rm -f core conftest.err conftest.$ac_objext \ 14173 conftest$ac_exeext conftest.$ac_ext 14174fi 14175 14176 14177 CFLAGS="$xorg_testset_save_CFLAGS" 14178 14179 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14181$as_echo "$supported" >&6; } 14182 if test "$supported" = "yes" ; then 14183 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14184 found="yes" 14185 fi 14186 fi 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200xorg_testset_save_CFLAGS="$CFLAGS" 14201 14202if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14205$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14206if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14207 $as_echo_n "(cached) " >&6 14208else 14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14210/* end confdefs.h. */ 14211int i; 14212_ACEOF 14213if ac_fn_c_try_compile "$LINENO"; then : 14214 xorg_cv_compiler_flag_unknown_warning_option=yes 14215else 14216 xorg_cv_compiler_flag_unknown_warning_option=no 14217fi 14218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14219fi 14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14221$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14222 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14223 CFLAGS="$xorg_testset_save_CFLAGS" 14224fi 14225 14226if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14229 fi 14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14232$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14233if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14234 $as_echo_n "(cached) " >&6 14235else 14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14237/* end confdefs.h. */ 14238int i; 14239_ACEOF 14240if ac_fn_c_try_compile "$LINENO"; then : 14241 xorg_cv_compiler_flag_unused_command_line_argument=yes 14242else 14243 xorg_cv_compiler_flag_unused_command_line_argument=no 14244fi 14245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14246fi 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14248$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14249 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14250 CFLAGS="$xorg_testset_save_CFLAGS" 14251fi 14252 14253found="no" 14254 14255 if test $found = "no" ; then 14256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14258 fi 14259 14260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14262 fi 14263 14264 CFLAGS="$CFLAGS -Werror=nonnull" 14265 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14267$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14268 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` 14269 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14270 $as_echo_n "(cached) " >&6 14271else 14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14273/* end confdefs.h. */ 14274int i; 14275int 14276main () 14277{ 14278 14279 ; 14280 return 0; 14281} 14282_ACEOF 14283if ac_fn_c_try_link "$LINENO"; then : 14284 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14285else 14286 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14287fi 14288rm -f core conftest.err conftest.$ac_objext \ 14289 conftest$ac_exeext conftest.$ac_ext 14290fi 14291 14292 14293 CFLAGS="$xorg_testset_save_CFLAGS" 14294 14295 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14297$as_echo "$supported" >&6; } 14298 if test "$supported" = "yes" ; then 14299 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14300 found="yes" 14301 fi 14302 fi 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316xorg_testset_save_CFLAGS="$CFLAGS" 14317 14318if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14321$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14322if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327int i; 14328_ACEOF 14329if ac_fn_c_try_compile "$LINENO"; then : 14330 xorg_cv_compiler_flag_unknown_warning_option=yes 14331else 14332 xorg_cv_compiler_flag_unknown_warning_option=no 14333fi 14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14335fi 14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14337$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14338 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14339 CFLAGS="$xorg_testset_save_CFLAGS" 14340fi 14341 14342if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14343 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14345 fi 14346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14348$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14349if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14350 $as_echo_n "(cached) " >&6 14351else 14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14353/* end confdefs.h. */ 14354int i; 14355_ACEOF 14356if ac_fn_c_try_compile "$LINENO"; then : 14357 xorg_cv_compiler_flag_unused_command_line_argument=yes 14358else 14359 xorg_cv_compiler_flag_unused_command_line_argument=no 14360fi 14361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14362fi 14363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14364$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14365 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14366 CFLAGS="$xorg_testset_save_CFLAGS" 14367fi 14368 14369found="no" 14370 14371 if test $found = "no" ; then 14372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14374 fi 14375 14376 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14378 fi 14379 14380 CFLAGS="$CFLAGS -Werror=init-self" 14381 14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14383$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14384 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` 14385 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14386 $as_echo_n "(cached) " >&6 14387else 14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14389/* end confdefs.h. */ 14390int i; 14391int 14392main () 14393{ 14394 14395 ; 14396 return 0; 14397} 14398_ACEOF 14399if ac_fn_c_try_link "$LINENO"; then : 14400 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14401else 14402 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14403fi 14404rm -f core conftest.err conftest.$ac_objext \ 14405 conftest$ac_exeext conftest.$ac_ext 14406fi 14407 14408 14409 CFLAGS="$xorg_testset_save_CFLAGS" 14410 14411 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14413$as_echo "$supported" >&6; } 14414 if test "$supported" = "yes" ; then 14415 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14416 found="yes" 14417 fi 14418 fi 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432xorg_testset_save_CFLAGS="$CFLAGS" 14433 14434if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14437$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14438if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14439 $as_echo_n "(cached) " >&6 14440else 14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14442/* end confdefs.h. */ 14443int i; 14444_ACEOF 14445if ac_fn_c_try_compile "$LINENO"; then : 14446 xorg_cv_compiler_flag_unknown_warning_option=yes 14447else 14448 xorg_cv_compiler_flag_unknown_warning_option=no 14449fi 14450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14451fi 14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14453$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14454 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14455 CFLAGS="$xorg_testset_save_CFLAGS" 14456fi 14457 14458if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14459 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14461 fi 14462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14464$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14465if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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_compiler_flag_unused_command_line_argument=yes 14474else 14475 xorg_cv_compiler_flag_unused_command_line_argument=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_compiler_flag_unused_command_line_argument" >&5 14480$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14481 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14482 CFLAGS="$xorg_testset_save_CFLAGS" 14483fi 14484 14485found="no" 14486 14487 if test $found = "no" ; then 14488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14490 fi 14491 14492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14494 fi 14495 14496 CFLAGS="$CFLAGS -Werror=main" 14497 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14499$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14500 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` 14501 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14502 $as_echo_n "(cached) " >&6 14503else 14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506int i; 14507int 14508main () 14509{ 14510 14511 ; 14512 return 0; 14513} 14514_ACEOF 14515if ac_fn_c_try_link "$LINENO"; then : 14516 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14517else 14518 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14519fi 14520rm -f core conftest.err conftest.$ac_objext \ 14521 conftest$ac_exeext conftest.$ac_ext 14522fi 14523 14524 14525 CFLAGS="$xorg_testset_save_CFLAGS" 14526 14527 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14529$as_echo "$supported" >&6; } 14530 if test "$supported" = "yes" ; then 14531 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14532 found="yes" 14533 fi 14534 fi 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548xorg_testset_save_CFLAGS="$CFLAGS" 14549 14550if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14553$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14554if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14555 $as_echo_n "(cached) " >&6 14556else 14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14558/* end confdefs.h. */ 14559int i; 14560_ACEOF 14561if ac_fn_c_try_compile "$LINENO"; then : 14562 xorg_cv_compiler_flag_unknown_warning_option=yes 14563else 14564 xorg_cv_compiler_flag_unknown_warning_option=no 14565fi 14566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14567fi 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14569$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14570 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14571 CFLAGS="$xorg_testset_save_CFLAGS" 14572fi 14573 14574if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14575 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14577 fi 14578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14580$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14581if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14582 $as_echo_n "(cached) " >&6 14583else 14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14585/* end confdefs.h. */ 14586int i; 14587_ACEOF 14588if ac_fn_c_try_compile "$LINENO"; then : 14589 xorg_cv_compiler_flag_unused_command_line_argument=yes 14590else 14591 xorg_cv_compiler_flag_unused_command_line_argument=no 14592fi 14593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14594fi 14595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14596$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14597 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14598 CFLAGS="$xorg_testset_save_CFLAGS" 14599fi 14600 14601found="no" 14602 14603 if test $found = "no" ; then 14604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14606 fi 14607 14608 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14610 fi 14611 14612 CFLAGS="$CFLAGS -Werror=missing-braces" 14613 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14615$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14616 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` 14617 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14621/* end confdefs.h. */ 14622int i; 14623int 14624main () 14625{ 14626 14627 ; 14628 return 0; 14629} 14630_ACEOF 14631if ac_fn_c_try_link "$LINENO"; then : 14632 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14633else 14634 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14635fi 14636rm -f core conftest.err conftest.$ac_objext \ 14637 conftest$ac_exeext conftest.$ac_ext 14638fi 14639 14640 14641 CFLAGS="$xorg_testset_save_CFLAGS" 14642 14643 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14645$as_echo "$supported" >&6; } 14646 if test "$supported" = "yes" ; then 14647 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14648 found="yes" 14649 fi 14650 fi 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664xorg_testset_save_CFLAGS="$CFLAGS" 14665 14666if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14669$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14670if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14671 $as_echo_n "(cached) " >&6 14672else 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14674/* end confdefs.h. */ 14675int i; 14676_ACEOF 14677if ac_fn_c_try_compile "$LINENO"; then : 14678 xorg_cv_compiler_flag_unknown_warning_option=yes 14679else 14680 xorg_cv_compiler_flag_unknown_warning_option=no 14681fi 14682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14683fi 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14685$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14686 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14687 CFLAGS="$xorg_testset_save_CFLAGS" 14688fi 14689 14690if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14691 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14693 fi 14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14696$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14697if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14701/* end confdefs.h. */ 14702int i; 14703_ACEOF 14704if ac_fn_c_try_compile "$LINENO"; then : 14705 xorg_cv_compiler_flag_unused_command_line_argument=yes 14706else 14707 xorg_cv_compiler_flag_unused_command_line_argument=no 14708fi 14709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14710fi 14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14712$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14713 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14714 CFLAGS="$xorg_testset_save_CFLAGS" 14715fi 14716 14717found="no" 14718 14719 if test $found = "no" ; then 14720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 fi 14723 14724 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14726 fi 14727 14728 CFLAGS="$CFLAGS -Werror=sequence-point" 14729 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14731$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14732 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` 14733 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14734 $as_echo_n "(cached) " >&6 14735else 14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14737/* end confdefs.h. */ 14738int i; 14739int 14740main () 14741{ 14742 14743 ; 14744 return 0; 14745} 14746_ACEOF 14747if ac_fn_c_try_link "$LINENO"; then : 14748 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14749else 14750 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14751fi 14752rm -f core conftest.err conftest.$ac_objext \ 14753 conftest$ac_exeext conftest.$ac_ext 14754fi 14755 14756 14757 CFLAGS="$xorg_testset_save_CFLAGS" 14758 14759 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14761$as_echo "$supported" >&6; } 14762 if test "$supported" = "yes" ; then 14763 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14764 found="yes" 14765 fi 14766 fi 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780xorg_testset_save_CFLAGS="$CFLAGS" 14781 14782if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14785$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14786if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14787 $as_echo_n "(cached) " >&6 14788else 14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14790/* end confdefs.h. */ 14791int i; 14792_ACEOF 14793if ac_fn_c_try_compile "$LINENO"; then : 14794 xorg_cv_compiler_flag_unknown_warning_option=yes 14795else 14796 xorg_cv_compiler_flag_unknown_warning_option=no 14797fi 14798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14799fi 14800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14801$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14802 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14803 CFLAGS="$xorg_testset_save_CFLAGS" 14804fi 14805 14806if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14807 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14809 fi 14810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14812$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14813if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14814 $as_echo_n "(cached) " >&6 14815else 14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14817/* end confdefs.h. */ 14818int i; 14819_ACEOF 14820if ac_fn_c_try_compile "$LINENO"; then : 14821 xorg_cv_compiler_flag_unused_command_line_argument=yes 14822else 14823 xorg_cv_compiler_flag_unused_command_line_argument=no 14824fi 14825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14826fi 14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14828$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14829 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14830 CFLAGS="$xorg_testset_save_CFLAGS" 14831fi 14832 14833found="no" 14834 14835 if test $found = "no" ; then 14836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14838 fi 14839 14840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14842 fi 14843 14844 CFLAGS="$CFLAGS -Werror=return-type" 14845 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14847$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14848 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` 14849 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14850 $as_echo_n "(cached) " >&6 14851else 14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854int i; 14855int 14856main () 14857{ 14858 14859 ; 14860 return 0; 14861} 14862_ACEOF 14863if ac_fn_c_try_link "$LINENO"; then : 14864 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14865else 14866 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14867fi 14868rm -f core conftest.err conftest.$ac_objext \ 14869 conftest$ac_exeext conftest.$ac_ext 14870fi 14871 14872 14873 CFLAGS="$xorg_testset_save_CFLAGS" 14874 14875 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14877$as_echo "$supported" >&6; } 14878 if test "$supported" = "yes" ; then 14879 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14880 found="yes" 14881 fi 14882 fi 14883 14884 if test $found = "no" ; then 14885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14887 fi 14888 14889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14891 fi 14892 14893 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14894 14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14896$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14897 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 14898 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14899 $as_echo_n "(cached) " >&6 14900else 14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14902/* end confdefs.h. */ 14903int i; 14904int 14905main () 14906{ 14907 14908 ; 14909 return 0; 14910} 14911_ACEOF 14912if ac_fn_c_try_link "$LINENO"; then : 14913 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14914else 14915 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14916fi 14917rm -f core conftest.err conftest.$ac_objext \ 14918 conftest$ac_exeext conftest.$ac_ext 14919fi 14920 14921 14922 CFLAGS="$xorg_testset_save_CFLAGS" 14923 14924 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14926$as_echo "$supported" >&6; } 14927 if test "$supported" = "yes" ; then 14928 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14929 found="yes" 14930 fi 14931 fi 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945xorg_testset_save_CFLAGS="$CFLAGS" 14946 14947if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14950$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14951if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14952 $as_echo_n "(cached) " >&6 14953else 14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14955/* end confdefs.h. */ 14956int i; 14957_ACEOF 14958if ac_fn_c_try_compile "$LINENO"; then : 14959 xorg_cv_compiler_flag_unknown_warning_option=yes 14960else 14961 xorg_cv_compiler_flag_unknown_warning_option=no 14962fi 14963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14964fi 14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14966$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14967 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14968 CFLAGS="$xorg_testset_save_CFLAGS" 14969fi 14970 14971if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14974 fi 14975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14977$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14978if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14979 $as_echo_n "(cached) " >&6 14980else 14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14982/* end confdefs.h. */ 14983int i; 14984_ACEOF 14985if ac_fn_c_try_compile "$LINENO"; then : 14986 xorg_cv_compiler_flag_unused_command_line_argument=yes 14987else 14988 xorg_cv_compiler_flag_unused_command_line_argument=no 14989fi 14990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14991fi 14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14993$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14994 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14995 CFLAGS="$xorg_testset_save_CFLAGS" 14996fi 14997 14998found="no" 14999 15000 if test $found = "no" ; then 15001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15003 fi 15004 15005 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15007 fi 15008 15009 CFLAGS="$CFLAGS -Werror=trigraphs" 15010 15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15012$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15013 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` 15014 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15015 $as_echo_n "(cached) " >&6 15016else 15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15018/* end confdefs.h. */ 15019int i; 15020int 15021main () 15022{ 15023 15024 ; 15025 return 0; 15026} 15027_ACEOF 15028if ac_fn_c_try_link "$LINENO"; then : 15029 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15030else 15031 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15032fi 15033rm -f core conftest.err conftest.$ac_objext \ 15034 conftest$ac_exeext conftest.$ac_ext 15035fi 15036 15037 15038 CFLAGS="$xorg_testset_save_CFLAGS" 15039 15040 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15042$as_echo "$supported" >&6; } 15043 if test "$supported" = "yes" ; then 15044 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15045 found="yes" 15046 fi 15047 fi 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061xorg_testset_save_CFLAGS="$CFLAGS" 15062 15063if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15066$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15067if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15068 $as_echo_n "(cached) " >&6 15069else 15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15071/* end confdefs.h. */ 15072int i; 15073_ACEOF 15074if ac_fn_c_try_compile "$LINENO"; then : 15075 xorg_cv_compiler_flag_unknown_warning_option=yes 15076else 15077 xorg_cv_compiler_flag_unknown_warning_option=no 15078fi 15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15080fi 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15082$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15083 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15084 CFLAGS="$xorg_testset_save_CFLAGS" 15085fi 15086 15087if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15090 fi 15091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15093$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15094if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15095 $as_echo_n "(cached) " >&6 15096else 15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15098/* end confdefs.h. */ 15099int i; 15100_ACEOF 15101if ac_fn_c_try_compile "$LINENO"; then : 15102 xorg_cv_compiler_flag_unused_command_line_argument=yes 15103else 15104 xorg_cv_compiler_flag_unused_command_line_argument=no 15105fi 15106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15107fi 15108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15109$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15110 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15111 CFLAGS="$xorg_testset_save_CFLAGS" 15112fi 15113 15114found="no" 15115 15116 if test $found = "no" ; then 15117 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15119 fi 15120 15121 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15123 fi 15124 15125 CFLAGS="$CFLAGS -Werror=array-bounds" 15126 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15128$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15129 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` 15130 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15131 $as_echo_n "(cached) " >&6 15132else 15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15134/* end confdefs.h. */ 15135int i; 15136int 15137main () 15138{ 15139 15140 ; 15141 return 0; 15142} 15143_ACEOF 15144if ac_fn_c_try_link "$LINENO"; then : 15145 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15146else 15147 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15148fi 15149rm -f core conftest.err conftest.$ac_objext \ 15150 conftest$ac_exeext conftest.$ac_ext 15151fi 15152 15153 15154 CFLAGS="$xorg_testset_save_CFLAGS" 15155 15156 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15158$as_echo "$supported" >&6; } 15159 if test "$supported" = "yes" ; then 15160 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15161 found="yes" 15162 fi 15163 fi 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177xorg_testset_save_CFLAGS="$CFLAGS" 15178 15179if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15182$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15183if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185else 15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15187/* end confdefs.h. */ 15188int i; 15189_ACEOF 15190if ac_fn_c_try_compile "$LINENO"; then : 15191 xorg_cv_compiler_flag_unknown_warning_option=yes 15192else 15193 xorg_cv_compiler_flag_unknown_warning_option=no 15194fi 15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15196fi 15197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15198$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15199 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15200 CFLAGS="$xorg_testset_save_CFLAGS" 15201fi 15202 15203if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15206 fi 15207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15209$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15210if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15211 $as_echo_n "(cached) " >&6 15212else 15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15214/* end confdefs.h. */ 15215int i; 15216_ACEOF 15217if ac_fn_c_try_compile "$LINENO"; then : 15218 xorg_cv_compiler_flag_unused_command_line_argument=yes 15219else 15220 xorg_cv_compiler_flag_unused_command_line_argument=no 15221fi 15222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15223fi 15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15225$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15226 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15227 CFLAGS="$xorg_testset_save_CFLAGS" 15228fi 15229 15230found="no" 15231 15232 if test $found = "no" ; then 15233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15235 fi 15236 15237 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15239 fi 15240 15241 CFLAGS="$CFLAGS -Werror=write-strings" 15242 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15244$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15245 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` 15246 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15247 $as_echo_n "(cached) " >&6 15248else 15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15250/* end confdefs.h. */ 15251int i; 15252int 15253main () 15254{ 15255 15256 ; 15257 return 0; 15258} 15259_ACEOF 15260if ac_fn_c_try_link "$LINENO"; then : 15261 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15262else 15263 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15264fi 15265rm -f core conftest.err conftest.$ac_objext \ 15266 conftest$ac_exeext conftest.$ac_ext 15267fi 15268 15269 15270 CFLAGS="$xorg_testset_save_CFLAGS" 15271 15272 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15274$as_echo "$supported" >&6; } 15275 if test "$supported" = "yes" ; then 15276 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15277 found="yes" 15278 fi 15279 fi 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293xorg_testset_save_CFLAGS="$CFLAGS" 15294 15295if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15298$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15299if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15300 $as_echo_n "(cached) " >&6 15301else 15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15303/* end confdefs.h. */ 15304int i; 15305_ACEOF 15306if ac_fn_c_try_compile "$LINENO"; then : 15307 xorg_cv_compiler_flag_unknown_warning_option=yes 15308else 15309 xorg_cv_compiler_flag_unknown_warning_option=no 15310fi 15311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15312fi 15313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15314$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15315 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15316 CFLAGS="$xorg_testset_save_CFLAGS" 15317fi 15318 15319if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15322 fi 15323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15325$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15326if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15327 $as_echo_n "(cached) " >&6 15328else 15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15330/* end confdefs.h. */ 15331int i; 15332_ACEOF 15333if ac_fn_c_try_compile "$LINENO"; then : 15334 xorg_cv_compiler_flag_unused_command_line_argument=yes 15335else 15336 xorg_cv_compiler_flag_unused_command_line_argument=no 15337fi 15338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15339fi 15340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15341$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15342 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15343 CFLAGS="$xorg_testset_save_CFLAGS" 15344fi 15345 15346found="no" 15347 15348 if test $found = "no" ; then 15349 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15351 fi 15352 15353 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15355 fi 15356 15357 CFLAGS="$CFLAGS -Werror=address" 15358 15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15360$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15361 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` 15362 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15363 $as_echo_n "(cached) " >&6 15364else 15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15366/* end confdefs.h. */ 15367int i; 15368int 15369main () 15370{ 15371 15372 ; 15373 return 0; 15374} 15375_ACEOF 15376if ac_fn_c_try_link "$LINENO"; then : 15377 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15378else 15379 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15380fi 15381rm -f core conftest.err conftest.$ac_objext \ 15382 conftest$ac_exeext conftest.$ac_ext 15383fi 15384 15385 15386 CFLAGS="$xorg_testset_save_CFLAGS" 15387 15388 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15390$as_echo "$supported" >&6; } 15391 if test "$supported" = "yes" ; then 15392 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15393 found="yes" 15394 fi 15395 fi 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409xorg_testset_save_CFLAGS="$CFLAGS" 15410 15411if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15414$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15415if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15416 $as_echo_n "(cached) " >&6 15417else 15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15419/* end confdefs.h. */ 15420int i; 15421_ACEOF 15422if ac_fn_c_try_compile "$LINENO"; then : 15423 xorg_cv_compiler_flag_unknown_warning_option=yes 15424else 15425 xorg_cv_compiler_flag_unknown_warning_option=no 15426fi 15427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15428fi 15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15430$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15431 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15432 CFLAGS="$xorg_testset_save_CFLAGS" 15433fi 15434 15435if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15438 fi 15439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15441$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15442if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15443 $as_echo_n "(cached) " >&6 15444else 15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15446/* end confdefs.h. */ 15447int i; 15448_ACEOF 15449if ac_fn_c_try_compile "$LINENO"; then : 15450 xorg_cv_compiler_flag_unused_command_line_argument=yes 15451else 15452 xorg_cv_compiler_flag_unused_command_line_argument=no 15453fi 15454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15455fi 15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15457$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15458 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15459 CFLAGS="$xorg_testset_save_CFLAGS" 15460fi 15461 15462found="no" 15463 15464 if test $found = "no" ; then 15465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15467 fi 15468 15469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15471 fi 15472 15473 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15474 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15476$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15477 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 15478 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15479 $as_echo_n "(cached) " >&6 15480else 15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15482/* end confdefs.h. */ 15483int i; 15484int 15485main () 15486{ 15487 15488 ; 15489 return 0; 15490} 15491_ACEOF 15492if ac_fn_c_try_link "$LINENO"; then : 15493 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15494else 15495 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15496fi 15497rm -f core conftest.err conftest.$ac_objext \ 15498 conftest$ac_exeext conftest.$ac_ext 15499fi 15500 15501 15502 CFLAGS="$xorg_testset_save_CFLAGS" 15503 15504 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15506$as_echo "$supported" >&6; } 15507 if test "$supported" = "yes" ; then 15508 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15509 found="yes" 15510 fi 15511 fi 15512 15513 if test $found = "no" ; then 15514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15516 fi 15517 15518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15520 fi 15521 15522 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15523 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15525$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15526 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 15527 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532int i; 15533int 15534main () 15535{ 15536 15537 ; 15538 return 0; 15539} 15540_ACEOF 15541if ac_fn_c_try_link "$LINENO"; then : 15542 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15543else 15544 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15545fi 15546rm -f core conftest.err conftest.$ac_objext \ 15547 conftest$ac_exeext conftest.$ac_ext 15548fi 15549 15550 15551 CFLAGS="$xorg_testset_save_CFLAGS" 15552 15553 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15555$as_echo "$supported" >&6; } 15556 if test "$supported" = "yes" ; then 15557 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15558 found="yes" 15559 fi 15560 fi 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574xorg_testset_save_CFLAGS="$CFLAGS" 15575 15576if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15579$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15580if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15581 $as_echo_n "(cached) " >&6 15582else 15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15584/* end confdefs.h. */ 15585int i; 15586_ACEOF 15587if ac_fn_c_try_compile "$LINENO"; then : 15588 xorg_cv_compiler_flag_unknown_warning_option=yes 15589else 15590 xorg_cv_compiler_flag_unknown_warning_option=no 15591fi 15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15593fi 15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15595$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15596 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15597 CFLAGS="$xorg_testset_save_CFLAGS" 15598fi 15599 15600if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15603 fi 15604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15606$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15607if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15608 $as_echo_n "(cached) " >&6 15609else 15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611/* end confdefs.h. */ 15612int i; 15613_ACEOF 15614if ac_fn_c_try_compile "$LINENO"; then : 15615 xorg_cv_compiler_flag_unused_command_line_argument=yes 15616else 15617 xorg_cv_compiler_flag_unused_command_line_argument=no 15618fi 15619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15620fi 15621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15622$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15623 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15624 CFLAGS="$xorg_testset_save_CFLAGS" 15625fi 15626 15627found="no" 15628 15629 if test $found = "no" ; then 15630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15632 fi 15633 15634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15636 fi 15637 15638 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15639 15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15641$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15642 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 15643 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15644 $as_echo_n "(cached) " >&6 15645else 15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15647/* end confdefs.h. */ 15648int i; 15649int 15650main () 15651{ 15652 15653 ; 15654 return 0; 15655} 15656_ACEOF 15657if ac_fn_c_try_link "$LINENO"; then : 15658 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15659else 15660 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15661fi 15662rm -f core conftest.err conftest.$ac_objext \ 15663 conftest$ac_exeext conftest.$ac_ext 15664fi 15665 15666 15667 CFLAGS="$xorg_testset_save_CFLAGS" 15668 15669 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15671$as_echo "$supported" >&6; } 15672 if test "$supported" = "yes" ; then 15673 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15674 found="yes" 15675 fi 15676 fi 15677 15678 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15679else 15680{ $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 15681$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;} 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693xorg_testset_save_CFLAGS="$CFLAGS" 15694 15695if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15698$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15699if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15700 $as_echo_n "(cached) " >&6 15701else 15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15703/* end confdefs.h. */ 15704int i; 15705_ACEOF 15706if ac_fn_c_try_compile "$LINENO"; then : 15707 xorg_cv_compiler_flag_unknown_warning_option=yes 15708else 15709 xorg_cv_compiler_flag_unknown_warning_option=no 15710fi 15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15712fi 15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15714$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15715 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15716 CFLAGS="$xorg_testset_save_CFLAGS" 15717fi 15718 15719if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15722 fi 15723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15725$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15726if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15727 $as_echo_n "(cached) " >&6 15728else 15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15730/* end confdefs.h. */ 15731int i; 15732_ACEOF 15733if ac_fn_c_try_compile "$LINENO"; then : 15734 xorg_cv_compiler_flag_unused_command_line_argument=yes 15735else 15736 xorg_cv_compiler_flag_unused_command_line_argument=no 15737fi 15738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15739fi 15740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15741$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15742 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15743 CFLAGS="$xorg_testset_save_CFLAGS" 15744fi 15745 15746found="no" 15747 15748 if test $found = "no" ; then 15749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15751 fi 15752 15753 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15755 fi 15756 15757 CFLAGS="$CFLAGS -Wimplicit" 15758 15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15760$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15761 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` 15762 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15763 $as_echo_n "(cached) " >&6 15764else 15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15766/* end confdefs.h. */ 15767int i; 15768int 15769main () 15770{ 15771 15772 ; 15773 return 0; 15774} 15775_ACEOF 15776if ac_fn_c_try_link "$LINENO"; then : 15777 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15778else 15779 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15780fi 15781rm -f core conftest.err conftest.$ac_objext \ 15782 conftest$ac_exeext conftest.$ac_ext 15783fi 15784 15785 15786 CFLAGS="$xorg_testset_save_CFLAGS" 15787 15788 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15790$as_echo "$supported" >&6; } 15791 if test "$supported" = "yes" ; then 15792 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15793 found="yes" 15794 fi 15795 fi 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809xorg_testset_save_CFLAGS="$CFLAGS" 15810 15811if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15814$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15815if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15816 $as_echo_n "(cached) " >&6 15817else 15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15819/* end confdefs.h. */ 15820int i; 15821_ACEOF 15822if ac_fn_c_try_compile "$LINENO"; then : 15823 xorg_cv_compiler_flag_unknown_warning_option=yes 15824else 15825 xorg_cv_compiler_flag_unknown_warning_option=no 15826fi 15827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15828fi 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15830$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15831 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15832 CFLAGS="$xorg_testset_save_CFLAGS" 15833fi 15834 15835if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15838 fi 15839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15841$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15842if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15843 $as_echo_n "(cached) " >&6 15844else 15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15846/* end confdefs.h. */ 15847int i; 15848_ACEOF 15849if ac_fn_c_try_compile "$LINENO"; then : 15850 xorg_cv_compiler_flag_unused_command_line_argument=yes 15851else 15852 xorg_cv_compiler_flag_unused_command_line_argument=no 15853fi 15854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15855fi 15856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15857$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15858 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15859 CFLAGS="$xorg_testset_save_CFLAGS" 15860fi 15861 15862found="no" 15863 15864 if test $found = "no" ; then 15865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15867 fi 15868 15869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15871 fi 15872 15873 CFLAGS="$CFLAGS -Wnonnull" 15874 15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15876$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15877 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` 15878 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15879 $as_echo_n "(cached) " >&6 15880else 15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15882/* end confdefs.h. */ 15883int i; 15884int 15885main () 15886{ 15887 15888 ; 15889 return 0; 15890} 15891_ACEOF 15892if ac_fn_c_try_link "$LINENO"; then : 15893 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15894else 15895 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15896fi 15897rm -f core conftest.err conftest.$ac_objext \ 15898 conftest$ac_exeext conftest.$ac_ext 15899fi 15900 15901 15902 CFLAGS="$xorg_testset_save_CFLAGS" 15903 15904 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15906$as_echo "$supported" >&6; } 15907 if test "$supported" = "yes" ; then 15908 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15909 found="yes" 15910 fi 15911 fi 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925xorg_testset_save_CFLAGS="$CFLAGS" 15926 15927if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15930$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15931if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15932 $as_echo_n "(cached) " >&6 15933else 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936int i; 15937_ACEOF 15938if ac_fn_c_try_compile "$LINENO"; then : 15939 xorg_cv_compiler_flag_unknown_warning_option=yes 15940else 15941 xorg_cv_compiler_flag_unknown_warning_option=no 15942fi 15943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15944fi 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15946$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15947 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15948 CFLAGS="$xorg_testset_save_CFLAGS" 15949fi 15950 15951if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15952 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15954 fi 15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15957$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15958if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15962/* end confdefs.h. */ 15963int i; 15964_ACEOF 15965if ac_fn_c_try_compile "$LINENO"; then : 15966 xorg_cv_compiler_flag_unused_command_line_argument=yes 15967else 15968 xorg_cv_compiler_flag_unused_command_line_argument=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15971fi 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15973$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15974 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976fi 15977 15978found="no" 15979 15980 if test $found = "no" ; then 15981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15983 fi 15984 15985 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15987 fi 15988 15989 CFLAGS="$CFLAGS -Winit-self" 15990 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15992$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15993 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` 15994 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15995 $as_echo_n "(cached) " >&6 15996else 15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15998/* end confdefs.h. */ 15999int i; 16000int 16001main () 16002{ 16003 16004 ; 16005 return 0; 16006} 16007_ACEOF 16008if ac_fn_c_try_link "$LINENO"; then : 16009 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16010else 16011 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16012fi 16013rm -f core conftest.err conftest.$ac_objext \ 16014 conftest$ac_exeext conftest.$ac_ext 16015fi 16016 16017 16018 CFLAGS="$xorg_testset_save_CFLAGS" 16019 16020 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16022$as_echo "$supported" >&6; } 16023 if test "$supported" = "yes" ; then 16024 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16025 found="yes" 16026 fi 16027 fi 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041xorg_testset_save_CFLAGS="$CFLAGS" 16042 16043if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16046$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16047if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16048 $as_echo_n "(cached) " >&6 16049else 16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16051/* end confdefs.h. */ 16052int i; 16053_ACEOF 16054if ac_fn_c_try_compile "$LINENO"; then : 16055 xorg_cv_compiler_flag_unknown_warning_option=yes 16056else 16057 xorg_cv_compiler_flag_unknown_warning_option=no 16058fi 16059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16060fi 16061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16062$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16063 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16064 CFLAGS="$xorg_testset_save_CFLAGS" 16065fi 16066 16067if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16070 fi 16071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16073$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16074if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16075 $as_echo_n "(cached) " >&6 16076else 16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16078/* end confdefs.h. */ 16079int i; 16080_ACEOF 16081if ac_fn_c_try_compile "$LINENO"; then : 16082 xorg_cv_compiler_flag_unused_command_line_argument=yes 16083else 16084 xorg_cv_compiler_flag_unused_command_line_argument=no 16085fi 16086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16087fi 16088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16089$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16090 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16091 CFLAGS="$xorg_testset_save_CFLAGS" 16092fi 16093 16094found="no" 16095 16096 if test $found = "no" ; then 16097 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16099 fi 16100 16101 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16103 fi 16104 16105 CFLAGS="$CFLAGS -Wmain" 16106 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16108$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16109 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` 16110 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16111 $as_echo_n "(cached) " >&6 16112else 16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114/* end confdefs.h. */ 16115int i; 16116int 16117main () 16118{ 16119 16120 ; 16121 return 0; 16122} 16123_ACEOF 16124if ac_fn_c_try_link "$LINENO"; then : 16125 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16126else 16127 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16128fi 16129rm -f core conftest.err conftest.$ac_objext \ 16130 conftest$ac_exeext conftest.$ac_ext 16131fi 16132 16133 16134 CFLAGS="$xorg_testset_save_CFLAGS" 16135 16136 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16138$as_echo "$supported" >&6; } 16139 if test "$supported" = "yes" ; then 16140 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16141 found="yes" 16142 fi 16143 fi 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157xorg_testset_save_CFLAGS="$CFLAGS" 16158 16159if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16162$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16163if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16164 $as_echo_n "(cached) " >&6 16165else 16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168int i; 16169_ACEOF 16170if ac_fn_c_try_compile "$LINENO"; then : 16171 xorg_cv_compiler_flag_unknown_warning_option=yes 16172else 16173 xorg_cv_compiler_flag_unknown_warning_option=no 16174fi 16175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16176fi 16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16178$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16179 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16180 CFLAGS="$xorg_testset_save_CFLAGS" 16181fi 16182 16183if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16186 fi 16187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16189$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16190if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16191 $as_echo_n "(cached) " >&6 16192else 16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16194/* end confdefs.h. */ 16195int i; 16196_ACEOF 16197if ac_fn_c_try_compile "$LINENO"; then : 16198 xorg_cv_compiler_flag_unused_command_line_argument=yes 16199else 16200 xorg_cv_compiler_flag_unused_command_line_argument=no 16201fi 16202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16203fi 16204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16205$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16206 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16207 CFLAGS="$xorg_testset_save_CFLAGS" 16208fi 16209 16210found="no" 16211 16212 if test $found = "no" ; then 16213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16215 fi 16216 16217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16219 fi 16220 16221 CFLAGS="$CFLAGS -Wmissing-braces" 16222 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16224$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16225 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` 16226 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16227 $as_echo_n "(cached) " >&6 16228else 16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16230/* end confdefs.h. */ 16231int i; 16232int 16233main () 16234{ 16235 16236 ; 16237 return 0; 16238} 16239_ACEOF 16240if ac_fn_c_try_link "$LINENO"; then : 16241 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16242else 16243 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16244fi 16245rm -f core conftest.err conftest.$ac_objext \ 16246 conftest$ac_exeext conftest.$ac_ext 16247fi 16248 16249 16250 CFLAGS="$xorg_testset_save_CFLAGS" 16251 16252 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16254$as_echo "$supported" >&6; } 16255 if test "$supported" = "yes" ; then 16256 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16257 found="yes" 16258 fi 16259 fi 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273xorg_testset_save_CFLAGS="$CFLAGS" 16274 16275if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16278$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16279if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16280 $as_echo_n "(cached) " >&6 16281else 16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283/* end confdefs.h. */ 16284int i; 16285_ACEOF 16286if ac_fn_c_try_compile "$LINENO"; then : 16287 xorg_cv_compiler_flag_unknown_warning_option=yes 16288else 16289 xorg_cv_compiler_flag_unknown_warning_option=no 16290fi 16291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16292fi 16293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16294$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16295 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16296 CFLAGS="$xorg_testset_save_CFLAGS" 16297fi 16298 16299if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16300 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16302 fi 16303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16305$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16306if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16307 $as_echo_n "(cached) " >&6 16308else 16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310/* end confdefs.h. */ 16311int i; 16312_ACEOF 16313if ac_fn_c_try_compile "$LINENO"; then : 16314 xorg_cv_compiler_flag_unused_command_line_argument=yes 16315else 16316 xorg_cv_compiler_flag_unused_command_line_argument=no 16317fi 16318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16319fi 16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16321$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16322 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16323 CFLAGS="$xorg_testset_save_CFLAGS" 16324fi 16325 16326found="no" 16327 16328 if test $found = "no" ; then 16329 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16331 fi 16332 16333 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16335 fi 16336 16337 CFLAGS="$CFLAGS -Wsequence-point" 16338 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16340$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16341 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` 16342 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16343 $as_echo_n "(cached) " >&6 16344else 16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16346/* end confdefs.h. */ 16347int i; 16348int 16349main () 16350{ 16351 16352 ; 16353 return 0; 16354} 16355_ACEOF 16356if ac_fn_c_try_link "$LINENO"; then : 16357 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16358else 16359 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16360fi 16361rm -f core conftest.err conftest.$ac_objext \ 16362 conftest$ac_exeext conftest.$ac_ext 16363fi 16364 16365 16366 CFLAGS="$xorg_testset_save_CFLAGS" 16367 16368 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16370$as_echo "$supported" >&6; } 16371 if test "$supported" = "yes" ; then 16372 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16373 found="yes" 16374 fi 16375 fi 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389xorg_testset_save_CFLAGS="$CFLAGS" 16390 16391if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16394$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16395if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16396 $as_echo_n "(cached) " >&6 16397else 16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16399/* end confdefs.h. */ 16400int i; 16401_ACEOF 16402if ac_fn_c_try_compile "$LINENO"; then : 16403 xorg_cv_compiler_flag_unknown_warning_option=yes 16404else 16405 xorg_cv_compiler_flag_unknown_warning_option=no 16406fi 16407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16408fi 16409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16410$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16411 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16412 CFLAGS="$xorg_testset_save_CFLAGS" 16413fi 16414 16415if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16416 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16418 fi 16419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16421$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16422if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16423 $as_echo_n "(cached) " >&6 16424else 16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16426/* end confdefs.h. */ 16427int i; 16428_ACEOF 16429if ac_fn_c_try_compile "$LINENO"; then : 16430 xorg_cv_compiler_flag_unused_command_line_argument=yes 16431else 16432 xorg_cv_compiler_flag_unused_command_line_argument=no 16433fi 16434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16435fi 16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16437$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16438 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16439 CFLAGS="$xorg_testset_save_CFLAGS" 16440fi 16441 16442found="no" 16443 16444 if test $found = "no" ; then 16445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16447 fi 16448 16449 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16451 fi 16452 16453 CFLAGS="$CFLAGS -Wreturn-type" 16454 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16456$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16457 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` 16458 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16459 $as_echo_n "(cached) " >&6 16460else 16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463int i; 16464int 16465main () 16466{ 16467 16468 ; 16469 return 0; 16470} 16471_ACEOF 16472if ac_fn_c_try_link "$LINENO"; then : 16473 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16474else 16475 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16476fi 16477rm -f core conftest.err conftest.$ac_objext \ 16478 conftest$ac_exeext conftest.$ac_ext 16479fi 16480 16481 16482 CFLAGS="$xorg_testset_save_CFLAGS" 16483 16484 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16486$as_echo "$supported" >&6; } 16487 if test "$supported" = "yes" ; then 16488 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16489 found="yes" 16490 fi 16491 fi 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505xorg_testset_save_CFLAGS="$CFLAGS" 16506 16507if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16510$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16511if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16512 $as_echo_n "(cached) " >&6 16513else 16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16515/* end confdefs.h. */ 16516int i; 16517_ACEOF 16518if ac_fn_c_try_compile "$LINENO"; then : 16519 xorg_cv_compiler_flag_unknown_warning_option=yes 16520else 16521 xorg_cv_compiler_flag_unknown_warning_option=no 16522fi 16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16524fi 16525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16526$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16527 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16528 CFLAGS="$xorg_testset_save_CFLAGS" 16529fi 16530 16531if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16532 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16534 fi 16535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16537$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16538if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16539 $as_echo_n "(cached) " >&6 16540else 16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16542/* end confdefs.h. */ 16543int i; 16544_ACEOF 16545if ac_fn_c_try_compile "$LINENO"; then : 16546 xorg_cv_compiler_flag_unused_command_line_argument=yes 16547else 16548 xorg_cv_compiler_flag_unused_command_line_argument=no 16549fi 16550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16551fi 16552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16553$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16554 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16555 CFLAGS="$xorg_testset_save_CFLAGS" 16556fi 16557 16558found="no" 16559 16560 if test $found = "no" ; then 16561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16563 fi 16564 16565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16567 fi 16568 16569 CFLAGS="$CFLAGS -Wtrigraphs" 16570 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16572$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16573 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` 16574 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16575 $as_echo_n "(cached) " >&6 16576else 16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16578/* end confdefs.h. */ 16579int i; 16580int 16581main () 16582{ 16583 16584 ; 16585 return 0; 16586} 16587_ACEOF 16588if ac_fn_c_try_link "$LINENO"; then : 16589 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16590else 16591 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16592fi 16593rm -f core conftest.err conftest.$ac_objext \ 16594 conftest$ac_exeext conftest.$ac_ext 16595fi 16596 16597 16598 CFLAGS="$xorg_testset_save_CFLAGS" 16599 16600 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16602$as_echo "$supported" >&6; } 16603 if test "$supported" = "yes" ; then 16604 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16605 found="yes" 16606 fi 16607 fi 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621xorg_testset_save_CFLAGS="$CFLAGS" 16622 16623if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16626$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16627if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16628 $as_echo_n "(cached) " >&6 16629else 16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16631/* end confdefs.h. */ 16632int i; 16633_ACEOF 16634if ac_fn_c_try_compile "$LINENO"; then : 16635 xorg_cv_compiler_flag_unknown_warning_option=yes 16636else 16637 xorg_cv_compiler_flag_unknown_warning_option=no 16638fi 16639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16640fi 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16642$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16643 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16644 CFLAGS="$xorg_testset_save_CFLAGS" 16645fi 16646 16647if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16650 fi 16651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16653$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16654if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16655 $as_echo_n "(cached) " >&6 16656else 16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16658/* end confdefs.h. */ 16659int i; 16660_ACEOF 16661if ac_fn_c_try_compile "$LINENO"; then : 16662 xorg_cv_compiler_flag_unused_command_line_argument=yes 16663else 16664 xorg_cv_compiler_flag_unused_command_line_argument=no 16665fi 16666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16667fi 16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16669$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16670 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16671 CFLAGS="$xorg_testset_save_CFLAGS" 16672fi 16673 16674found="no" 16675 16676 if test $found = "no" ; then 16677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16679 fi 16680 16681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16683 fi 16684 16685 CFLAGS="$CFLAGS -Warray-bounds" 16686 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16688$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16689 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` 16690 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16691 $as_echo_n "(cached) " >&6 16692else 16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16694/* end confdefs.h. */ 16695int i; 16696int 16697main () 16698{ 16699 16700 ; 16701 return 0; 16702} 16703_ACEOF 16704if ac_fn_c_try_link "$LINENO"; then : 16705 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16706else 16707 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16708fi 16709rm -f core conftest.err conftest.$ac_objext \ 16710 conftest$ac_exeext conftest.$ac_ext 16711fi 16712 16713 16714 CFLAGS="$xorg_testset_save_CFLAGS" 16715 16716 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16718$as_echo "$supported" >&6; } 16719 if test "$supported" = "yes" ; then 16720 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16721 found="yes" 16722 fi 16723 fi 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737xorg_testset_save_CFLAGS="$CFLAGS" 16738 16739if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16742$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16743if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16744 $as_echo_n "(cached) " >&6 16745else 16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747/* end confdefs.h. */ 16748int i; 16749_ACEOF 16750if ac_fn_c_try_compile "$LINENO"; then : 16751 xorg_cv_compiler_flag_unknown_warning_option=yes 16752else 16753 xorg_cv_compiler_flag_unknown_warning_option=no 16754fi 16755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16756fi 16757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16758$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16759 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16760 CFLAGS="$xorg_testset_save_CFLAGS" 16761fi 16762 16763if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16764 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16766 fi 16767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16769$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16770if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16771 $as_echo_n "(cached) " >&6 16772else 16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16774/* end confdefs.h. */ 16775int i; 16776_ACEOF 16777if ac_fn_c_try_compile "$LINENO"; then : 16778 xorg_cv_compiler_flag_unused_command_line_argument=yes 16779else 16780 xorg_cv_compiler_flag_unused_command_line_argument=no 16781fi 16782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16783fi 16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16785$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16786 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16787 CFLAGS="$xorg_testset_save_CFLAGS" 16788fi 16789 16790found="no" 16791 16792 if test $found = "no" ; then 16793 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16795 fi 16796 16797 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16799 fi 16800 16801 CFLAGS="$CFLAGS -Wwrite-strings" 16802 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16804$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16805 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` 16806 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16807 $as_echo_n "(cached) " >&6 16808else 16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16810/* end confdefs.h. */ 16811int i; 16812int 16813main () 16814{ 16815 16816 ; 16817 return 0; 16818} 16819_ACEOF 16820if ac_fn_c_try_link "$LINENO"; then : 16821 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16822else 16823 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16824fi 16825rm -f core conftest.err conftest.$ac_objext \ 16826 conftest$ac_exeext conftest.$ac_ext 16827fi 16828 16829 16830 CFLAGS="$xorg_testset_save_CFLAGS" 16831 16832 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16834$as_echo "$supported" >&6; } 16835 if test "$supported" = "yes" ; then 16836 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16837 found="yes" 16838 fi 16839 fi 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853xorg_testset_save_CFLAGS="$CFLAGS" 16854 16855if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16858$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16859if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16860 $as_echo_n "(cached) " >&6 16861else 16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16863/* end confdefs.h. */ 16864int i; 16865_ACEOF 16866if ac_fn_c_try_compile "$LINENO"; then : 16867 xorg_cv_compiler_flag_unknown_warning_option=yes 16868else 16869 xorg_cv_compiler_flag_unknown_warning_option=no 16870fi 16871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16872fi 16873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16874$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16875 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16876 CFLAGS="$xorg_testset_save_CFLAGS" 16877fi 16878 16879if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16882 fi 16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16885$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16886if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16887 $as_echo_n "(cached) " >&6 16888else 16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16890/* end confdefs.h. */ 16891int i; 16892_ACEOF 16893if ac_fn_c_try_compile "$LINENO"; then : 16894 xorg_cv_compiler_flag_unused_command_line_argument=yes 16895else 16896 xorg_cv_compiler_flag_unused_command_line_argument=no 16897fi 16898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16899fi 16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16901$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16902 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16903 CFLAGS="$xorg_testset_save_CFLAGS" 16904fi 16905 16906found="no" 16907 16908 if test $found = "no" ; then 16909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16911 fi 16912 16913 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16915 fi 16916 16917 CFLAGS="$CFLAGS -Waddress" 16918 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16920$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16921 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` 16922 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16923 $as_echo_n "(cached) " >&6 16924else 16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16926/* end confdefs.h. */ 16927int i; 16928int 16929main () 16930{ 16931 16932 ; 16933 return 0; 16934} 16935_ACEOF 16936if ac_fn_c_try_link "$LINENO"; then : 16937 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16938else 16939 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16940fi 16941rm -f core conftest.err conftest.$ac_objext \ 16942 conftest$ac_exeext conftest.$ac_ext 16943fi 16944 16945 16946 CFLAGS="$xorg_testset_save_CFLAGS" 16947 16948 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16950$as_echo "$supported" >&6; } 16951 if test "$supported" = "yes" ; then 16952 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16953 found="yes" 16954 fi 16955 fi 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969xorg_testset_save_CFLAGS="$CFLAGS" 16970 16971if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16974$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16975if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16976 $as_echo_n "(cached) " >&6 16977else 16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16979/* end confdefs.h. */ 16980int i; 16981_ACEOF 16982if ac_fn_c_try_compile "$LINENO"; then : 16983 xorg_cv_compiler_flag_unknown_warning_option=yes 16984else 16985 xorg_cv_compiler_flag_unknown_warning_option=no 16986fi 16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16988fi 16989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16990$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16991 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16992 CFLAGS="$xorg_testset_save_CFLAGS" 16993fi 16994 16995if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16998 fi 16999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17001$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17002if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17003 $as_echo_n "(cached) " >&6 17004else 17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17006/* end confdefs.h. */ 17007int i; 17008_ACEOF 17009if ac_fn_c_try_compile "$LINENO"; then : 17010 xorg_cv_compiler_flag_unused_command_line_argument=yes 17011else 17012 xorg_cv_compiler_flag_unused_command_line_argument=no 17013fi 17014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17015fi 17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17017$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17018 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17019 CFLAGS="$xorg_testset_save_CFLAGS" 17020fi 17021 17022found="no" 17023 17024 if test $found = "no" ; then 17025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17027 fi 17028 17029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17031 fi 17032 17033 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17034 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17036$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17037 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` 17038 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17039 $as_echo_n "(cached) " >&6 17040else 17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17042/* end confdefs.h. */ 17043int i; 17044int 17045main () 17046{ 17047 17048 ; 17049 return 0; 17050} 17051_ACEOF 17052if ac_fn_c_try_link "$LINENO"; then : 17053 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17054else 17055 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17056fi 17057rm -f core conftest.err conftest.$ac_objext \ 17058 conftest$ac_exeext conftest.$ac_ext 17059fi 17060 17061 17062 CFLAGS="$xorg_testset_save_CFLAGS" 17063 17064 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17066$as_echo "$supported" >&6; } 17067 if test "$supported" = "yes" ; then 17068 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17069 found="yes" 17070 fi 17071 fi 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085xorg_testset_save_CFLAGS="$CFLAGS" 17086 17087if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17090$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17091if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17092 $as_echo_n "(cached) " >&6 17093else 17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17095/* end confdefs.h. */ 17096int i; 17097_ACEOF 17098if ac_fn_c_try_compile "$LINENO"; then : 17099 xorg_cv_compiler_flag_unknown_warning_option=yes 17100else 17101 xorg_cv_compiler_flag_unknown_warning_option=no 17102fi 17103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17104fi 17105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17106$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17107 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17108 CFLAGS="$xorg_testset_save_CFLAGS" 17109fi 17110 17111if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17114 fi 17115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17117$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17118if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17119 $as_echo_n "(cached) " >&6 17120else 17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17122/* end confdefs.h. */ 17123int i; 17124_ACEOF 17125if ac_fn_c_try_compile "$LINENO"; then : 17126 xorg_cv_compiler_flag_unused_command_line_argument=yes 17127else 17128 xorg_cv_compiler_flag_unused_command_line_argument=no 17129fi 17130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17131fi 17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17133$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17134 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17135 CFLAGS="$xorg_testset_save_CFLAGS" 17136fi 17137 17138found="no" 17139 17140 if test $found = "no" ; then 17141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17143 fi 17144 17145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17147 fi 17148 17149 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17150 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17152$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17153 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` 17154 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17155 $as_echo_n "(cached) " >&6 17156else 17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17158/* end confdefs.h. */ 17159int i; 17160int 17161main () 17162{ 17163 17164 ; 17165 return 0; 17166} 17167_ACEOF 17168if ac_fn_c_try_link "$LINENO"; then : 17169 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17170else 17171 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17172fi 17173rm -f core conftest.err conftest.$ac_objext \ 17174 conftest$ac_exeext conftest.$ac_ext 17175fi 17176 17177 17178 CFLAGS="$xorg_testset_save_CFLAGS" 17179 17180 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17182$as_echo "$supported" >&6; } 17183 if test "$supported" = "yes" ; then 17184 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17185 found="yes" 17186 fi 17187 fi 17188 17189 17190fi 17191 17192 17193 17194 17195 17196 17197 17198 CWARNFLAGS="$BASE_CFLAGS" 17199 if test "x$GCC" = xyes ; then 17200 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17201 fi 17202 17203 17204 17205 17206 17207 17208 17209 17210# Check whether --enable-strict-compilation was given. 17211if test "${enable_strict_compilation+set}" = set; then : 17212 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17213else 17214 STRICT_COMPILE=no 17215fi 17216 17217 17218 17219 17220 17221 17222STRICT_CFLAGS="" 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234xorg_testset_save_CFLAGS="$CFLAGS" 17235 17236if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17239$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17240if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17241 $as_echo_n "(cached) " >&6 17242else 17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245int i; 17246_ACEOF 17247if ac_fn_c_try_compile "$LINENO"; then : 17248 xorg_cv_compiler_flag_unknown_warning_option=yes 17249else 17250 xorg_cv_compiler_flag_unknown_warning_option=no 17251fi 17252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17253fi 17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17255$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17256 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17257 CFLAGS="$xorg_testset_save_CFLAGS" 17258fi 17259 17260if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17263 fi 17264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17266$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17267if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17268 $as_echo_n "(cached) " >&6 17269else 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272int i; 17273_ACEOF 17274if ac_fn_c_try_compile "$LINENO"; then : 17275 xorg_cv_compiler_flag_unused_command_line_argument=yes 17276else 17277 xorg_cv_compiler_flag_unused_command_line_argument=no 17278fi 17279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17280fi 17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17282$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17283 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17284 CFLAGS="$xorg_testset_save_CFLAGS" 17285fi 17286 17287found="no" 17288 17289 if test $found = "no" ; then 17290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17292 fi 17293 17294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17296 fi 17297 17298 CFLAGS="$CFLAGS -pedantic" 17299 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17301$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17302 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` 17303 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17304 $as_echo_n "(cached) " >&6 17305else 17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17307/* end confdefs.h. */ 17308int i; 17309int 17310main () 17311{ 17312 17313 ; 17314 return 0; 17315} 17316_ACEOF 17317if ac_fn_c_try_link "$LINENO"; then : 17318 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17319else 17320 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17321fi 17322rm -f core conftest.err conftest.$ac_objext \ 17323 conftest$ac_exeext conftest.$ac_ext 17324fi 17325 17326 17327 CFLAGS="$xorg_testset_save_CFLAGS" 17328 17329 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17331$as_echo "$supported" >&6; } 17332 if test "$supported" = "yes" ; then 17333 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17334 found="yes" 17335 fi 17336 fi 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350xorg_testset_save_CFLAGS="$CFLAGS" 17351 17352if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17355$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17356if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17357 $as_echo_n "(cached) " >&6 17358else 17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17360/* end confdefs.h. */ 17361int i; 17362_ACEOF 17363if ac_fn_c_try_compile "$LINENO"; then : 17364 xorg_cv_compiler_flag_unknown_warning_option=yes 17365else 17366 xorg_cv_compiler_flag_unknown_warning_option=no 17367fi 17368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17369fi 17370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17371$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17372 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17373 CFLAGS="$xorg_testset_save_CFLAGS" 17374fi 17375 17376if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17379 fi 17380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17382$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17383if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17384 $as_echo_n "(cached) " >&6 17385else 17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17387/* end confdefs.h. */ 17388int i; 17389_ACEOF 17390if ac_fn_c_try_compile "$LINENO"; then : 17391 xorg_cv_compiler_flag_unused_command_line_argument=yes 17392else 17393 xorg_cv_compiler_flag_unused_command_line_argument=no 17394fi 17395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17396fi 17397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17398$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17399 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17400 CFLAGS="$xorg_testset_save_CFLAGS" 17401fi 17402 17403found="no" 17404 17405 if test $found = "no" ; then 17406 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17408 fi 17409 17410 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17412 fi 17413 17414 CFLAGS="$CFLAGS -Werror" 17415 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17417$as_echo_n "checking if $CC supports -Werror... " >&6; } 17418 cacheid=`$as_echo xorg_cv_cc_flag_-Werror` 17419 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17420 $as_echo_n "(cached) " >&6 17421else 17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17423/* end confdefs.h. */ 17424int i; 17425int 17426main () 17427{ 17428 17429 ; 17430 return 0; 17431} 17432_ACEOF 17433if ac_fn_c_try_link "$LINENO"; then : 17434 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17435else 17436 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17437fi 17438rm -f core conftest.err conftest.$ac_objext \ 17439 conftest$ac_exeext conftest.$ac_ext 17440fi 17441 17442 17443 CFLAGS="$xorg_testset_save_CFLAGS" 17444 17445 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17447$as_echo "$supported" >&6; } 17448 if test "$supported" = "yes" ; then 17449 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17450 found="yes" 17451 fi 17452 fi 17453 17454 if test $found = "no" ; then 17455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17457 fi 17458 17459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17461 fi 17462 17463 CFLAGS="$CFLAGS -errwarn" 17464 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17466$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17467 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` 17468 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17469 $as_echo_n "(cached) " >&6 17470else 17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17472/* end confdefs.h. */ 17473int i; 17474int 17475main () 17476{ 17477 17478 ; 17479 return 0; 17480} 17481_ACEOF 17482if ac_fn_c_try_link "$LINENO"; then : 17483 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17484else 17485 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17486fi 17487rm -f core conftest.err conftest.$ac_objext \ 17488 conftest$ac_exeext conftest.$ac_ext 17489fi 17490 17491 17492 CFLAGS="$xorg_testset_save_CFLAGS" 17493 17494 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17496$as_echo "$supported" >&6; } 17497 if test "$supported" = "yes" ; then 17498 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17499 found="yes" 17500 fi 17501 fi 17502 17503 17504 17505# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17506# activate it with -Werror, so we add it here explicitly. 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518xorg_testset_save_CFLAGS="$CFLAGS" 17519 17520if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17523$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17524if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17525 $as_echo_n "(cached) " >&6 17526else 17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17528/* end confdefs.h. */ 17529int i; 17530_ACEOF 17531if ac_fn_c_try_compile "$LINENO"; then : 17532 xorg_cv_compiler_flag_unknown_warning_option=yes 17533else 17534 xorg_cv_compiler_flag_unknown_warning_option=no 17535fi 17536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17537fi 17538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17539$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17540 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17541 CFLAGS="$xorg_testset_save_CFLAGS" 17542fi 17543 17544if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17547 fi 17548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17550$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17551if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17552 $as_echo_n "(cached) " >&6 17553else 17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17555/* end confdefs.h. */ 17556int i; 17557_ACEOF 17558if ac_fn_c_try_compile "$LINENO"; then : 17559 xorg_cv_compiler_flag_unused_command_line_argument=yes 17560else 17561 xorg_cv_compiler_flag_unused_command_line_argument=no 17562fi 17563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17564fi 17565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17566$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17567 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17568 CFLAGS="$xorg_testset_save_CFLAGS" 17569fi 17570 17571found="no" 17572 17573 if test $found = "no" ; then 17574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17576 fi 17577 17578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17580 fi 17581 17582 CFLAGS="$CFLAGS -Werror=attributes" 17583 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17585$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17586 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` 17587 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17588 $as_echo_n "(cached) " >&6 17589else 17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17591/* end confdefs.h. */ 17592int i; 17593int 17594main () 17595{ 17596 17597 ; 17598 return 0; 17599} 17600_ACEOF 17601if ac_fn_c_try_link "$LINENO"; then : 17602 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17603else 17604 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17605fi 17606rm -f core conftest.err conftest.$ac_objext \ 17607 conftest$ac_exeext conftest.$ac_ext 17608fi 17609 17610 17611 CFLAGS="$xorg_testset_save_CFLAGS" 17612 17613 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17615$as_echo "$supported" >&6; } 17616 if test "$supported" = "yes" ; then 17617 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17618 found="yes" 17619 fi 17620 fi 17621 17622 17623 17624if test "x$STRICT_COMPILE" = "xyes"; then 17625 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17626 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17627fi 17628 17629 17630 17631 17632 17633 17634cat >>confdefs.h <<_ACEOF 17635#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17636_ACEOF 17637 17638 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17639 if test "x$PVM" = "x"; then 17640 PVM="0" 17641 fi 17642 17643cat >>confdefs.h <<_ACEOF 17644#define PACKAGE_VERSION_MINOR $PVM 17645_ACEOF 17646 17647 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17648 if test "x$PVP" = "x"; then 17649 PVP="0" 17650 fi 17651 17652cat >>confdefs.h <<_ACEOF 17653#define PACKAGE_VERSION_PATCHLEVEL $PVP 17654_ACEOF 17655 17656 17657 17658CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17659mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17660|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17661echo 'git directory not found: installing possibly empty changelog.' >&2)" 17662 17663 17664 17665 17666macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17667INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17668mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17669|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17670echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17671 17672 17673 17674 17675 17676 17677if test x$APP_MAN_SUFFIX = x ; then 17678 APP_MAN_SUFFIX=1 17679fi 17680if test x$APP_MAN_DIR = x ; then 17681 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17682fi 17683 17684if test x$LIB_MAN_SUFFIX = x ; then 17685 LIB_MAN_SUFFIX=3 17686fi 17687if test x$LIB_MAN_DIR = x ; then 17688 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17689fi 17690 17691if test x$FILE_MAN_SUFFIX = x ; then 17692 case $host_os in 17693 solaris*) FILE_MAN_SUFFIX=4 ;; 17694 *) FILE_MAN_SUFFIX=5 ;; 17695 esac 17696fi 17697if test x$FILE_MAN_DIR = x ; then 17698 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17699fi 17700 17701if test x$MISC_MAN_SUFFIX = x ; then 17702 case $host_os in 17703 solaris*) MISC_MAN_SUFFIX=5 ;; 17704 *) MISC_MAN_SUFFIX=7 ;; 17705 esac 17706fi 17707if test x$MISC_MAN_DIR = x ; then 17708 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17709fi 17710 17711if test x$DRIVER_MAN_SUFFIX = x ; then 17712 case $host_os in 17713 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17714 *) DRIVER_MAN_SUFFIX=4 ;; 17715 esac 17716fi 17717if test x$DRIVER_MAN_DIR = x ; then 17718 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17719fi 17720 17721if test x$ADMIN_MAN_SUFFIX = x ; then 17722 case $host_os in 17723 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17724 *) ADMIN_MAN_SUFFIX=8 ;; 17725 esac 17726fi 17727if test x$ADMIN_MAN_DIR = x ; then 17728 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17729fi 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745XORG_MAN_PAGE="X Version 11" 17746 17747MAN_SUBSTS="\ 17748 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17749 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17750 -e 's|__xservername__|Xorg|g' \ 17751 -e 's|__xconfigfile__|xorg.conf|g' \ 17752 -e 's|__projectroot__|\$(prefix)|g' \ 17753 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17754 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17755 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17756 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17757 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17758 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17759 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17760 17761 17762 17763# Check whether --enable-silent-rules was given. 17764if test "${enable_silent_rules+set}" = set; then : 17765 enableval=$enable_silent_rules; 17766fi 17767 17768case $enable_silent_rules in 17769yes) AM_DEFAULT_VERBOSITY=0;; 17770no) AM_DEFAULT_VERBOSITY=1;; 17771*) AM_DEFAULT_VERBOSITY=0;; 17772esac 17773AM_BACKSLASH='\' 17774 17775 17776 17777 17778# Check whether --enable-docs was given. 17779if test "${enable_docs+set}" = set; then : 17780 enableval=$enable_docs; build_docs=$enableval 17781else 17782 build_docs=yes 17783fi 17784 17785 17786 if test x$build_docs = xyes; then 17787 ENABLE_DOCS_TRUE= 17788 ENABLE_DOCS_FALSE='#' 17789else 17790 ENABLE_DOCS_TRUE='#' 17791 ENABLE_DOCS_FALSE= 17792fi 17793 17794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17795$as_echo_n "checking whether to build documentation... " >&6; } 17796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17797$as_echo "$build_docs" >&6; } 17798 17799 17800 17801 17802 17803# Check whether --with-xmlto was given. 17804if test "${with_xmlto+set}" = set; then : 17805 withval=$with_xmlto; use_xmlto=$withval 17806else 17807 use_xmlto=auto 17808fi 17809 17810 17811 17812if test "x$use_xmlto" = x"auto"; then 17813 # Extract the first word of "xmlto", so it can be a program name with args. 17814set dummy xmlto; ac_word=$2 17815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17816$as_echo_n "checking for $ac_word... " >&6; } 17817if ${ac_cv_path_XMLTO+:} false; then : 17818 $as_echo_n "(cached) " >&6 17819else 17820 case $XMLTO in 17821 [\\/]* | ?:[\\/]*) 17822 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17823 ;; 17824 *) 17825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17826for as_dir in $PATH 17827do 17828 IFS=$as_save_IFS 17829 test -z "$as_dir" && as_dir=. 17830 for ac_exec_ext in '' $ac_executable_extensions; do 17831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17832 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17834 break 2 17835 fi 17836done 17837 done 17838IFS=$as_save_IFS 17839 17840 ;; 17841esac 17842fi 17843XMLTO=$ac_cv_path_XMLTO 17844if test -n "$XMLTO"; then 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17846$as_echo "$XMLTO" >&6; } 17847else 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17849$as_echo "no" >&6; } 17850fi 17851 17852 17853 if test "x$XMLTO" = "x"; then 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17855$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17856 have_xmlto=no 17857 else 17858 have_xmlto=yes 17859 fi 17860elif test "x$use_xmlto" = x"yes" ; then 17861 # Extract the first word of "xmlto", so it can be a program name with args. 17862set dummy xmlto; ac_word=$2 17863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17864$as_echo_n "checking for $ac_word... " >&6; } 17865if ${ac_cv_path_XMLTO+:} false; then : 17866 $as_echo_n "(cached) " >&6 17867else 17868 case $XMLTO in 17869 [\\/]* | ?:[\\/]*) 17870 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17871 ;; 17872 *) 17873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17874for as_dir in $PATH 17875do 17876 IFS=$as_save_IFS 17877 test -z "$as_dir" && as_dir=. 17878 for ac_exec_ext in '' $ac_executable_extensions; do 17879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17880 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17882 break 2 17883 fi 17884done 17885 done 17886IFS=$as_save_IFS 17887 17888 ;; 17889esac 17890fi 17891XMLTO=$ac_cv_path_XMLTO 17892if test -n "$XMLTO"; then 17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17894$as_echo "$XMLTO" >&6; } 17895else 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17897$as_echo "no" >&6; } 17898fi 17899 17900 17901 if test "x$XMLTO" = "x"; then 17902 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17903 fi 17904 have_xmlto=yes 17905elif test "x$use_xmlto" = x"no" ; then 17906 if test "x$XMLTO" != "x"; then 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17908$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17909 fi 17910 have_xmlto=no 17911else 17912 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17913fi 17914 17915# Test for a minimum version of xmlto, if provided. 17916if test "$have_xmlto" = yes; then 17917 # scrape the xmlto version 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17919$as_echo_n "checking the xmlto version... " >&6; } 17920 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17922$as_echo "$xmlto_version" >&6; } 17923 as_arg_v1=$xmlto_version 17924as_arg_v2=0.0.22 17925awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17926case $? in #( 17927 1) : 17928 if test "x$use_xmlto" = xauto; then 17929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17930$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17931 have_xmlto=no 17932 else 17933 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17934 fi ;; #( 17935 0) : 17936 ;; #( 17937 2) : 17938 ;; #( 17939 *) : 17940 ;; 17941esac 17942fi 17943 17944# Test for the ability of xmlto to generate a text target 17945have_xmlto_text=no 17946cat > conftest.xml << "EOF" 17947EOF 17948if test "$have_xmlto" = yes; then : 17949 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17950 have_xmlto_text=yes 17951else 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17953$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17954fi 17955fi 17956rm -f conftest.xml 17957 if test $have_xmlto_text = yes; then 17958 HAVE_XMLTO_TEXT_TRUE= 17959 HAVE_XMLTO_TEXT_FALSE='#' 17960else 17961 HAVE_XMLTO_TEXT_TRUE='#' 17962 HAVE_XMLTO_TEXT_FALSE= 17963fi 17964 17965 if test "$have_xmlto" = yes; then 17966 HAVE_XMLTO_TRUE= 17967 HAVE_XMLTO_FALSE='#' 17968else 17969 HAVE_XMLTO_TRUE='#' 17970 HAVE_XMLTO_FALSE= 17971fi 17972 17973 17974 17975 17976 17977 17978# Check whether --with-fop was given. 17979if test "${with_fop+set}" = set; then : 17980 withval=$with_fop; use_fop=$withval 17981else 17982 use_fop=auto 17983fi 17984 17985 17986 17987if test "x$use_fop" = x"auto"; then 17988 # Extract the first word of "fop", so it can be a program name with args. 17989set dummy fop; ac_word=$2 17990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17991$as_echo_n "checking for $ac_word... " >&6; } 17992if ${ac_cv_path_FOP+:} false; then : 17993 $as_echo_n "(cached) " >&6 17994else 17995 case $FOP in 17996 [\\/]* | ?:[\\/]*) 17997 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17998 ;; 17999 *) 18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18001for as_dir in $PATH 18002do 18003 IFS=$as_save_IFS 18004 test -z "$as_dir" && as_dir=. 18005 for ac_exec_ext in '' $ac_executable_extensions; do 18006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18007 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18009 break 2 18010 fi 18011done 18012 done 18013IFS=$as_save_IFS 18014 18015 ;; 18016esac 18017fi 18018FOP=$ac_cv_path_FOP 18019if test -n "$FOP"; then 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18021$as_echo "$FOP" >&6; } 18022else 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18024$as_echo "no" >&6; } 18025fi 18026 18027 18028 if test "x$FOP" = "x"; then 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18030$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18031 have_fop=no 18032 else 18033 have_fop=yes 18034 fi 18035elif test "x$use_fop" = x"yes" ; then 18036 # Extract the first word of "fop", so it can be a program name with args. 18037set dummy fop; ac_word=$2 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18039$as_echo_n "checking for $ac_word... " >&6; } 18040if ${ac_cv_path_FOP+:} false; then : 18041 $as_echo_n "(cached) " >&6 18042else 18043 case $FOP in 18044 [\\/]* | ?:[\\/]*) 18045 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18046 ;; 18047 *) 18048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18049for as_dir in $PATH 18050do 18051 IFS=$as_save_IFS 18052 test -z "$as_dir" && as_dir=. 18053 for ac_exec_ext in '' $ac_executable_extensions; do 18054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18055 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18057 break 2 18058 fi 18059done 18060 done 18061IFS=$as_save_IFS 18062 18063 ;; 18064esac 18065fi 18066FOP=$ac_cv_path_FOP 18067if test -n "$FOP"; then 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18069$as_echo "$FOP" >&6; } 18070else 18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18072$as_echo "no" >&6; } 18073fi 18074 18075 18076 if test "x$FOP" = "x"; then 18077 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18078 fi 18079 have_fop=yes 18080elif test "x$use_fop" = x"no" ; then 18081 if test "x$FOP" != "x"; then 18082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18083$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18084 fi 18085 have_fop=no 18086else 18087 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18088fi 18089 18090# Test for a minimum version of fop, if provided. 18091 18092 if test "$have_fop" = yes; then 18093 HAVE_FOP_TRUE= 18094 HAVE_FOP_FALSE='#' 18095else 18096 HAVE_FOP_TRUE='#' 18097 HAVE_FOP_FALSE= 18098fi 18099 18100 18101 18102 18103# Preserves the interface, should it be implemented later 18104 18105 18106 18107# Check whether --with-xsltproc was given. 18108if test "${with_xsltproc+set}" = set; then : 18109 withval=$with_xsltproc; use_xsltproc=$withval 18110else 18111 use_xsltproc=auto 18112fi 18113 18114 18115 18116if test "x$use_xsltproc" = x"auto"; then 18117 # Extract the first word of "xsltproc", so it can be a program name with args. 18118set dummy xsltproc; ac_word=$2 18119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18120$as_echo_n "checking for $ac_word... " >&6; } 18121if ${ac_cv_path_XSLTPROC+:} false; then : 18122 $as_echo_n "(cached) " >&6 18123else 18124 case $XSLTPROC in 18125 [\\/]* | ?:[\\/]*) 18126 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18127 ;; 18128 *) 18129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18130for as_dir in $PATH 18131do 18132 IFS=$as_save_IFS 18133 test -z "$as_dir" && as_dir=. 18134 for ac_exec_ext in '' $ac_executable_extensions; do 18135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18136 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18138 break 2 18139 fi 18140done 18141 done 18142IFS=$as_save_IFS 18143 18144 ;; 18145esac 18146fi 18147XSLTPROC=$ac_cv_path_XSLTPROC 18148if test -n "$XSLTPROC"; then 18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18150$as_echo "$XSLTPROC" >&6; } 18151else 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18153$as_echo "no" >&6; } 18154fi 18155 18156 18157 if test "x$XSLTPROC" = "x"; then 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18159$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18160 have_xsltproc=no 18161 else 18162 have_xsltproc=yes 18163 fi 18164elif test "x$use_xsltproc" = x"yes" ; then 18165 # Extract the first word of "xsltproc", so it can be a program name with args. 18166set dummy xsltproc; ac_word=$2 18167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18168$as_echo_n "checking for $ac_word... " >&6; } 18169if ${ac_cv_path_XSLTPROC+:} false; then : 18170 $as_echo_n "(cached) " >&6 18171else 18172 case $XSLTPROC in 18173 [\\/]* | ?:[\\/]*) 18174 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18175 ;; 18176 *) 18177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18178for as_dir in $PATH 18179do 18180 IFS=$as_save_IFS 18181 test -z "$as_dir" && as_dir=. 18182 for ac_exec_ext in '' $ac_executable_extensions; do 18183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18184 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18186 break 2 18187 fi 18188done 18189 done 18190IFS=$as_save_IFS 18191 18192 ;; 18193esac 18194fi 18195XSLTPROC=$ac_cv_path_XSLTPROC 18196if test -n "$XSLTPROC"; then 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18198$as_echo "$XSLTPROC" >&6; } 18199else 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18201$as_echo "no" >&6; } 18202fi 18203 18204 18205 if test "x$XSLTPROC" = "x"; then 18206 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18207 fi 18208 have_xsltproc=yes 18209elif test "x$use_xsltproc" = x"no" ; then 18210 if test "x$XSLTPROC" != "x"; then 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18212$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18213 fi 18214 have_xsltproc=no 18215else 18216 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18217fi 18218 18219 if test "$have_xsltproc" = yes; then 18220 HAVE_XSLTPROC_TRUE= 18221 HAVE_XSLTPROC_FALSE='#' 18222else 18223 HAVE_XSLTPROC_TRUE='#' 18224 HAVE_XSLTPROC_FALSE= 18225fi 18226 18227 18228 18229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18230$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18231XORG_SGML_PATH= 18232if test -n "$PKG_CONFIG" && \ 18233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18234 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18235 ac_status=$? 18236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18237 test $ac_status = 0; }; then 18238 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18239else 18240 : 18241 18242fi 18243 18244# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18245# the path and the name of the doc stylesheet 18246if test "x$XORG_SGML_PATH" != "x" ; then 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18248$as_echo "$XORG_SGML_PATH" >&6; } 18249 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18250 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18251else 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18253$as_echo "no" >&6; } 18254fi 18255 18256 18257 18258 18259 if test "x$XSL_STYLESHEET" != "x"; then 18260 HAVE_STYLESHEETS_TRUE= 18261 HAVE_STYLESHEETS_FALSE='#' 18262else 18263 HAVE_STYLESHEETS_TRUE='#' 18264 HAVE_STYLESHEETS_FALSE= 18265fi 18266 18267 18268 18269# Checks for programs. 18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 18271$as_echo_n "checking whether ln -s works... " >&6; } 18272LN_S=$as_ln_s 18273if test "$LN_S" = "ln -s"; then 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18275$as_echo "yes" >&6; } 18276else 18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 18278$as_echo "no, using $LN_S" >&6; } 18279fi 18280 18281 18282# Checks for libraries. 18283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5 18284$as_echo_n "checking for library containing recvfrom... " >&6; } 18285if ${ac_cv_search_recvfrom+:} false; then : 18286 $as_echo_n "(cached) " >&6 18287else 18288 ac_func_search_save_LIBS=$LIBS 18289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18290/* end confdefs.h. */ 18291 18292/* Override any GCC internal prototype to avoid an error. 18293 Use char because int might match the return type of a GCC 18294 builtin and then its argument prototype would still apply. */ 18295#ifdef __cplusplus 18296extern "C" 18297#endif 18298char recvfrom (); 18299int 18300main () 18301{ 18302return recvfrom (); 18303 ; 18304 return 0; 18305} 18306_ACEOF 18307for ac_lib in '' socket; do 18308 if test -z "$ac_lib"; then 18309 ac_res="none required" 18310 else 18311 ac_res=-l$ac_lib 18312 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18313 fi 18314 if ac_fn_c_try_link "$LINENO"; then : 18315 ac_cv_search_recvfrom=$ac_res 18316fi 18317rm -f core conftest.err conftest.$ac_objext \ 18318 conftest$ac_exeext 18319 if ${ac_cv_search_recvfrom+:} false; then : 18320 break 18321fi 18322done 18323if ${ac_cv_search_recvfrom+:} false; then : 18324 18325else 18326 ac_cv_search_recvfrom=no 18327fi 18328rm conftest.$ac_ext 18329LIBS=$ac_func_search_save_LIBS 18330fi 18331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5 18332$as_echo "$ac_cv_search_recvfrom" >&6; } 18333ac_res=$ac_cv_search_recvfrom 18334if test "$ac_res" != no; then : 18335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18336 18337fi 18338 18339 18340# Checks for library functions. 18341for ac_func in srand48 lrand48 18342do : 18343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18344ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18345if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18346 cat >>confdefs.h <<_ACEOF 18347#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18348_ACEOF 18349 18350fi 18351done 18352 18353 18354# Obtain compiler/linker options for depedencies 18355 18356pkg_failed=no 18357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 18358$as_echo_n "checking for XDMCP... " >&6; } 18359 18360if test -n "$XDMCP_CFLAGS"; then 18361 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 18362 elif test -n "$PKG_CONFIG"; then 18363 if test -n "$PKG_CONFIG" && \ 18364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18365 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18366 ac_status=$? 18367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18368 test $ac_status = 0; }; then 18369 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 18370else 18371 pkg_failed=yes 18372fi 18373 else 18374 pkg_failed=untried 18375fi 18376if test -n "$XDMCP_LIBS"; then 18377 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 18378 elif test -n "$PKG_CONFIG"; then 18379 if test -n "$PKG_CONFIG" && \ 18380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18381 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18382 ac_status=$? 18383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18384 test $ac_status = 0; }; then 18385 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 18386else 18387 pkg_failed=yes 18388fi 18389 else 18390 pkg_failed=untried 18391fi 18392 18393 18394 18395if test $pkg_failed = yes; then 18396 18397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18398 _pkg_short_errors_supported=yes 18399else 18400 _pkg_short_errors_supported=no 18401fi 18402 if test $_pkg_short_errors_supported = yes; then 18403 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 18404 else 18405 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 18406 fi 18407 # Put the nasty error message in config.log where it belongs 18408 echo "$XDMCP_PKG_ERRORS" >&5 18409 18410 as_fn_error $? "Package requirements (xproto) were not met: 18411 18412$XDMCP_PKG_ERRORS 18413 18414Consider adjusting the PKG_CONFIG_PATH environment variable if you 18415installed software in a non-standard prefix. 18416 18417Alternatively, you may set the environment variables XDMCP_CFLAGS 18418and XDMCP_LIBS to avoid the need to call pkg-config. 18419See the pkg-config man page for more details. 18420" "$LINENO" 5 18421elif test $pkg_failed = untried; then 18422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18424as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18425is in your PATH or set the PKG_CONFIG environment variable to the full 18426path to pkg-config. 18427 18428Alternatively, you may set the environment variables XDMCP_CFLAGS 18429and XDMCP_LIBS to avoid the need to call pkg-config. 18430See the pkg-config man page for more details. 18431 18432To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18433See \`config.log' for more details" "$LINENO" 5; } 18434else 18435 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 18436 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18438$as_echo "yes" >&6; } 18439 : 18440fi 18441 18442if test -f ${srcdir}/Wraphelp.c; then 18443 18444$as_echo "#define HASXDMAUTH 1" >>confdefs.h 18445 18446 HASXDMAUTH=yes 18447else 18448 HASXDMAUTH=no 18449fi 18450 18451 if test x$HASXDMAUTH = xyes; then 18452 HASXDMAUTH_TRUE= 18453 HASXDMAUTH_FALSE='#' 18454else 18455 HASXDMAUTH_TRUE='#' 18456 HASXDMAUTH_FALSE= 18457fi 18458 18459 18460# Allow checking code with lint, sparse, etc. 18461 18462 18463 18464 18465 18466# Check whether --with-lint was given. 18467if test "${with_lint+set}" = set; then : 18468 withval=$with_lint; use_lint=$withval 18469else 18470 use_lint=no 18471fi 18472 18473 18474# Obtain platform specific info like program name and options 18475# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18476case $host_os in 18477 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18478 lint_name=splint 18479 lint_options="-badflag" 18480 ;; 18481 *freebsd* | *netbsd*) 18482 lint_name=lint 18483 lint_options="-u -b" 18484 ;; 18485 *solaris*) 18486 lint_name=lint 18487 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18488 ;; 18489esac 18490 18491# Test for the presence of the program (either guessed by the code or spelled out by the user) 18492if test "x$use_lint" = x"yes" ; then 18493 # Extract the first word of "$lint_name", so it can be a program name with args. 18494set dummy $lint_name; ac_word=$2 18495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18496$as_echo_n "checking for $ac_word... " >&6; } 18497if ${ac_cv_path_LINT+:} false; then : 18498 $as_echo_n "(cached) " >&6 18499else 18500 case $LINT in 18501 [\\/]* | ?:[\\/]*) 18502 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18503 ;; 18504 *) 18505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18506for as_dir in $PATH 18507do 18508 IFS=$as_save_IFS 18509 test -z "$as_dir" && as_dir=. 18510 for ac_exec_ext in '' $ac_executable_extensions; do 18511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18512 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18514 break 2 18515 fi 18516done 18517 done 18518IFS=$as_save_IFS 18519 18520 ;; 18521esac 18522fi 18523LINT=$ac_cv_path_LINT 18524if test -n "$LINT"; then 18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18526$as_echo "$LINT" >&6; } 18527else 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18529$as_echo "no" >&6; } 18530fi 18531 18532 18533 if test "x$LINT" = "x"; then 18534 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18535 fi 18536elif test "x$use_lint" = x"no" ; then 18537 if test "x$LINT" != "x"; then 18538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18539$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18540 fi 18541else 18542 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18543fi 18544 18545# User supplied flags override default flags 18546if test "x$LINT_FLAGS" != "x"; then 18547 lint_options=$LINT_FLAGS 18548fi 18549 18550LINT_FLAGS=$lint_options 18551 18552 if test "x$LINT" != x; then 18553 LINT_TRUE= 18554 LINT_FALSE='#' 18555else 18556 LINT_TRUE='#' 18557 LINT_FALSE= 18558fi 18559 18560 18561 18562 18563 18564# Check whether --enable-lint-library was given. 18565if test "${enable_lint_library+set}" = set; then : 18566 enableval=$enable_lint_library; make_lint_lib=$enableval 18567else 18568 make_lint_lib=no 18569fi 18570 18571 18572if test "x$make_lint_lib" = x"yes" ; then 18573 LINTLIB=llib-lXdmcp.ln 18574 if test "x$LINT" = "x"; then 18575 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18576 fi 18577elif test "x$make_lint_lib" != x"no" ; then 18578 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18579fi 18580 18581 18582 if test x$make_lint_lib != xno; then 18583 MAKE_LINT_LIB_TRUE= 18584 MAKE_LINT_LIB_FALSE='#' 18585else 18586 MAKE_LINT_LIB_TRUE='#' 18587 MAKE_LINT_LIB_FALSE= 18588fi 18589 18590 18591 18592 18593ac_config_files="$ac_config_files Makefile doc/Makefile xdmcp.pc" 18594 18595cat >confcache <<\_ACEOF 18596# This file is a shell script that caches the results of configure 18597# tests run on this system so they can be shared between configure 18598# scripts and configure runs, see configure's option --config-cache. 18599# It is not useful on other systems. If it contains results you don't 18600# want to keep, you may remove or edit it. 18601# 18602# config.status only pays attention to the cache file if you give it 18603# the --recheck option to rerun configure. 18604# 18605# `ac_cv_env_foo' variables (set or unset) will be overridden when 18606# loading this file, other *unset* `ac_cv_foo' will be assigned the 18607# following values. 18608 18609_ACEOF 18610 18611# The following way of writing the cache mishandles newlines in values, 18612# but we know of no workaround that is simple, portable, and efficient. 18613# So, we kill variables containing newlines. 18614# Ultrix sh set writes to stderr and can't be redirected directly, 18615# and sets the high bit in the cache file unless we assign to the vars. 18616( 18617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18618 eval ac_val=\$$ac_var 18619 case $ac_val in #( 18620 *${as_nl}*) 18621 case $ac_var in #( 18622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18624 esac 18625 case $ac_var in #( 18626 _ | IFS | as_nl) ;; #( 18627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18628 *) { eval $ac_var=; unset $ac_var;} ;; 18629 esac ;; 18630 esac 18631 done 18632 18633 (set) 2>&1 | 18634 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18635 *${as_nl}ac_space=\ *) 18636 # `set' does not quote correctly, so add quotes: double-quote 18637 # substitution turns \\\\ into \\, and sed turns \\ into \. 18638 sed -n \ 18639 "s/'/'\\\\''/g; 18640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18641 ;; #( 18642 *) 18643 # `set' quotes correctly as required by POSIX, so do not add quotes. 18644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18645 ;; 18646 esac | 18647 sort 18648) | 18649 sed ' 18650 /^ac_cv_env_/b end 18651 t clear 18652 :clear 18653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18654 t end 18655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18656 :end' >>confcache 18657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18658 if test -w "$cache_file"; then 18659 if test "x$cache_file" != "x/dev/null"; then 18660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18661$as_echo "$as_me: updating cache $cache_file" >&6;} 18662 if test ! -f "$cache_file" || test -h "$cache_file"; then 18663 cat confcache >"$cache_file" 18664 else 18665 case $cache_file in #( 18666 */* | ?:*) 18667 mv -f confcache "$cache_file"$$ && 18668 mv -f "$cache_file"$$ "$cache_file" ;; #( 18669 *) 18670 mv -f confcache "$cache_file" ;; 18671 esac 18672 fi 18673 fi 18674 else 18675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18676$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18677 fi 18678fi 18679rm -f confcache 18680 18681test "x$prefix" = xNONE && prefix=$ac_default_prefix 18682# Let make expand exec_prefix. 18683test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18684 18685DEFS=-DHAVE_CONFIG_H 18686 18687ac_libobjs= 18688ac_ltlibobjs= 18689U= 18690for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18691 # 1. Remove the extension, and $U if already installed. 18692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18695 # will be set to the directory where LIBOBJS objects are built. 18696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18698done 18699LIBOBJS=$ac_libobjs 18700 18701LTLIBOBJS=$ac_ltlibobjs 18702 18703 18704 if test -n "$EXEEXT"; then 18705 am__EXEEXT_TRUE= 18706 am__EXEEXT_FALSE='#' 18707else 18708 am__EXEEXT_TRUE='#' 18709 am__EXEEXT_FALSE= 18710fi 18711 18712if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18713 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18714Usually this means the macro was only invoked conditionally." "$LINENO" 5 18715fi 18716if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18717 as_fn_error $? "conditional \"AMDEP\" was never defined. 18718Usually this means the macro was only invoked conditionally." "$LINENO" 5 18719fi 18720if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18721 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18722Usually this means the macro was only invoked conditionally." "$LINENO" 5 18723fi 18724if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 18725 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 18726Usually this means the macro was only invoked conditionally." "$LINENO" 5 18727fi 18728if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18729 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18730Usually this means the macro was only invoked conditionally." "$LINENO" 5 18731fi 18732if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18733 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18734Usually this means the macro was only invoked conditionally." "$LINENO" 5 18735fi 18736if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18737 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18738Usually this means the macro was only invoked conditionally." "$LINENO" 5 18739fi 18740if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18741 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18742Usually this means the macro was only invoked conditionally." "$LINENO" 5 18743fi 18744if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18745 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18746Usually this means the macro was only invoked conditionally." "$LINENO" 5 18747fi 18748if test -z "${HASXDMAUTH_TRUE}" && test -z "${HASXDMAUTH_FALSE}"; then 18749 as_fn_error $? "conditional \"HASXDMAUTH\" was never defined. 18750Usually this means the macro was only invoked conditionally." "$LINENO" 5 18751fi 18752if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18753 as_fn_error $? "conditional \"LINT\" was never defined. 18754Usually this means the macro was only invoked conditionally." "$LINENO" 5 18755fi 18756if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18757 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18758Usually this means the macro was only invoked conditionally." "$LINENO" 5 18759fi 18760 18761: "${CONFIG_STATUS=./config.status}" 18762ac_write_fail=0 18763ac_clean_files_save=$ac_clean_files 18764ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18765{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18766$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18767as_write_fail=0 18768cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18769#! $SHELL 18770# Generated by $as_me. 18771# Run this file to recreate the current configuration. 18772# Compiler output produced by configure, useful for debugging 18773# configure, is in config.log if it exists. 18774 18775debug=false 18776ac_cs_recheck=false 18777ac_cs_silent=false 18778 18779SHELL=\${CONFIG_SHELL-$SHELL} 18780export SHELL 18781_ASEOF 18782cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18783## -------------------- ## 18784## M4sh Initialization. ## 18785## -------------------- ## 18786 18787# Be more Bourne compatible 18788DUALCASE=1; export DUALCASE # for MKS sh 18789if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18790 emulate sh 18791 NULLCMD=: 18792 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18793 # is contrary to our usage. Disable this feature. 18794 alias -g '${1+"$@"}'='"$@"' 18795 setopt NO_GLOB_SUBST 18796else 18797 case `(set -o) 2>/dev/null` in #( 18798 *posix*) : 18799 set -o posix ;; #( 18800 *) : 18801 ;; 18802esac 18803fi 18804 18805 18806as_nl=' 18807' 18808export as_nl 18809# Printing a long string crashes Solaris 7 /usr/bin/printf. 18810as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18811as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18812as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18813# Prefer a ksh shell builtin over an external printf program on Solaris, 18814# but without wasting forks for bash or zsh. 18815if test -z "$BASH_VERSION$ZSH_VERSION" \ 18816 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18817 as_echo='print -r --' 18818 as_echo_n='print -rn --' 18819elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18820 as_echo='printf %s\n' 18821 as_echo_n='printf %s' 18822else 18823 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18824 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18825 as_echo_n='/usr/ucb/echo -n' 18826 else 18827 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18828 as_echo_n_body='eval 18829 arg=$1; 18830 case $arg in #( 18831 *"$as_nl"*) 18832 expr "X$arg" : "X\\(.*\\)$as_nl"; 18833 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18834 esac; 18835 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18836 ' 18837 export as_echo_n_body 18838 as_echo_n='sh -c $as_echo_n_body as_echo' 18839 fi 18840 export as_echo_body 18841 as_echo='sh -c $as_echo_body as_echo' 18842fi 18843 18844# The user is always right. 18845if test "${PATH_SEPARATOR+set}" != set; then 18846 PATH_SEPARATOR=: 18847 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18848 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18849 PATH_SEPARATOR=';' 18850 } 18851fi 18852 18853 18854# IFS 18855# We need space, tab and new line, in precisely that order. Quoting is 18856# there to prevent editors from complaining about space-tab. 18857# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18858# splitting by setting IFS to empty value.) 18859IFS=" "" $as_nl" 18860 18861# Find who we are. Look in the path if we contain no directory separator. 18862as_myself= 18863case $0 in #(( 18864 *[\\/]* ) as_myself=$0 ;; 18865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18866for as_dir in $PATH 18867do 18868 IFS=$as_save_IFS 18869 test -z "$as_dir" && as_dir=. 18870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18871 done 18872IFS=$as_save_IFS 18873 18874 ;; 18875esac 18876# We did not find ourselves, most probably we were run as `sh COMMAND' 18877# in which case we are not to be found in the path. 18878if test "x$as_myself" = x; then 18879 as_myself=$0 18880fi 18881if test ! -f "$as_myself"; then 18882 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18883 exit 1 18884fi 18885 18886# Unset variables that we do not need and which cause bugs (e.g. in 18887# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18888# suppresses any "Segmentation fault" message there. '((' could 18889# trigger a bug in pdksh 5.2.14. 18890for as_var in BASH_ENV ENV MAIL MAILPATH 18891do eval test x\${$as_var+set} = xset \ 18892 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18893done 18894PS1='$ ' 18895PS2='> ' 18896PS4='+ ' 18897 18898# NLS nuisances. 18899LC_ALL=C 18900export LC_ALL 18901LANGUAGE=C 18902export LANGUAGE 18903 18904# CDPATH. 18905(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18906 18907 18908# as_fn_error STATUS ERROR [LINENO LOG_FD] 18909# ---------------------------------------- 18910# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18911# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18912# script with STATUS, using 1 if that was 0. 18913as_fn_error () 18914{ 18915 as_status=$1; test $as_status -eq 0 && as_status=1 18916 if test "$4"; then 18917 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18918 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18919 fi 18920 $as_echo "$as_me: error: $2" >&2 18921 as_fn_exit $as_status 18922} # as_fn_error 18923 18924 18925# as_fn_set_status STATUS 18926# ----------------------- 18927# Set $? to STATUS, without forking. 18928as_fn_set_status () 18929{ 18930 return $1 18931} # as_fn_set_status 18932 18933# as_fn_exit STATUS 18934# ----------------- 18935# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18936as_fn_exit () 18937{ 18938 set +e 18939 as_fn_set_status $1 18940 exit $1 18941} # as_fn_exit 18942 18943# as_fn_unset VAR 18944# --------------- 18945# Portably unset VAR. 18946as_fn_unset () 18947{ 18948 { eval $1=; unset $1;} 18949} 18950as_unset=as_fn_unset 18951# as_fn_append VAR VALUE 18952# ---------------------- 18953# Append the text in VALUE to the end of the definition contained in VAR. Take 18954# advantage of any shell optimizations that allow amortized linear growth over 18955# repeated appends, instead of the typical quadratic growth present in naive 18956# implementations. 18957if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18958 eval 'as_fn_append () 18959 { 18960 eval $1+=\$2 18961 }' 18962else 18963 as_fn_append () 18964 { 18965 eval $1=\$$1\$2 18966 } 18967fi # as_fn_append 18968 18969# as_fn_arith ARG... 18970# ------------------ 18971# Perform arithmetic evaluation on the ARGs, and store the result in the 18972# global $as_val. Take advantage of shells that can avoid forks. The arguments 18973# must be portable across $(()) and expr. 18974if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18975 eval 'as_fn_arith () 18976 { 18977 as_val=$(( $* )) 18978 }' 18979else 18980 as_fn_arith () 18981 { 18982 as_val=`expr "$@" || test $? -eq 1` 18983 } 18984fi # as_fn_arith 18985 18986 18987if expr a : '\(a\)' >/dev/null 2>&1 && 18988 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18989 as_expr=expr 18990else 18991 as_expr=false 18992fi 18993 18994if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18995 as_basename=basename 18996else 18997 as_basename=false 18998fi 18999 19000if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19001 as_dirname=dirname 19002else 19003 as_dirname=false 19004fi 19005 19006as_me=`$as_basename -- "$0" || 19007$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19008 X"$0" : 'X\(//\)$' \| \ 19009 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19010$as_echo X/"$0" | 19011 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19012 s//\1/ 19013 q 19014 } 19015 /^X\/\(\/\/\)$/{ 19016 s//\1/ 19017 q 19018 } 19019 /^X\/\(\/\).*/{ 19020 s//\1/ 19021 q 19022 } 19023 s/.*/./; q'` 19024 19025# Avoid depending upon Character Ranges. 19026as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19027as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19028as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19029as_cr_digits='0123456789' 19030as_cr_alnum=$as_cr_Letters$as_cr_digits 19031 19032ECHO_C= ECHO_N= ECHO_T= 19033case `echo -n x` in #((((( 19034-n*) 19035 case `echo 'xy\c'` in 19036 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19037 xy) ECHO_C='\c';; 19038 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19039 ECHO_T=' ';; 19040 esac;; 19041*) 19042 ECHO_N='-n';; 19043esac 19044 19045rm -f conf$$ conf$$.exe conf$$.file 19046if test -d conf$$.dir; then 19047 rm -f conf$$.dir/conf$$.file 19048else 19049 rm -f conf$$.dir 19050 mkdir conf$$.dir 2>/dev/null 19051fi 19052if (echo >conf$$.file) 2>/dev/null; then 19053 if ln -s conf$$.file conf$$ 2>/dev/null; then 19054 as_ln_s='ln -s' 19055 # ... but there are two gotchas: 19056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19058 # In both cases, we have to default to `cp -p'. 19059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19060 as_ln_s='cp -p' 19061 elif ln conf$$.file conf$$ 2>/dev/null; then 19062 as_ln_s=ln 19063 else 19064 as_ln_s='cp -p' 19065 fi 19066else 19067 as_ln_s='cp -p' 19068fi 19069rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19070rmdir conf$$.dir 2>/dev/null 19071 19072 19073# as_fn_mkdir_p 19074# ------------- 19075# Create "$as_dir" as a directory, including parents if necessary. 19076as_fn_mkdir_p () 19077{ 19078 19079 case $as_dir in #( 19080 -*) as_dir=./$as_dir;; 19081 esac 19082 test -d "$as_dir" || eval $as_mkdir_p || { 19083 as_dirs= 19084 while :; do 19085 case $as_dir in #( 19086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19087 *) as_qdir=$as_dir;; 19088 esac 19089 as_dirs="'$as_qdir' $as_dirs" 19090 as_dir=`$as_dirname -- "$as_dir" || 19091$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19092 X"$as_dir" : 'X\(//\)[^/]' \| \ 19093 X"$as_dir" : 'X\(//\)$' \| \ 19094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19095$as_echo X"$as_dir" | 19096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19097 s//\1/ 19098 q 19099 } 19100 /^X\(\/\/\)[^/].*/{ 19101 s//\1/ 19102 q 19103 } 19104 /^X\(\/\/\)$/{ 19105 s//\1/ 19106 q 19107 } 19108 /^X\(\/\).*/{ 19109 s//\1/ 19110 q 19111 } 19112 s/.*/./; q'` 19113 test -d "$as_dir" && break 19114 done 19115 test -z "$as_dirs" || eval "mkdir $as_dirs" 19116 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19117 19118 19119} # as_fn_mkdir_p 19120if mkdir -p . 2>/dev/null; then 19121 as_mkdir_p='mkdir -p "$as_dir"' 19122else 19123 test -d ./-p && rmdir ./-p 19124 as_mkdir_p=false 19125fi 19126 19127if test -x / >/dev/null 2>&1; then 19128 as_test_x='test -x' 19129else 19130 if ls -dL / >/dev/null 2>&1; then 19131 as_ls_L_option=L 19132 else 19133 as_ls_L_option= 19134 fi 19135 as_test_x=' 19136 eval sh -c '\'' 19137 if test -d "$1"; then 19138 test -d "$1/."; 19139 else 19140 case $1 in #( 19141 -*)set "./$1";; 19142 esac; 19143 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19144 ???[sx]*):;;*)false;;esac;fi 19145 '\'' sh 19146 ' 19147fi 19148as_executable_p=$as_test_x 19149 19150# Sed expression to map a string onto a valid CPP name. 19151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19152 19153# Sed expression to map a string onto a valid variable name. 19154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19155 19156 19157exec 6>&1 19158## ----------------------------------- ## 19159## Main body of $CONFIG_STATUS script. ## 19160## ----------------------------------- ## 19161_ASEOF 19162test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19163 19164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19165# Save the log message, to keep $0 and so on meaningful, and to 19166# report actual input values of CONFIG_FILES etc. instead of their 19167# values after options handling. 19168ac_log=" 19169This file was extended by libXdmcp $as_me 1.1.1, which was 19170generated by GNU Autoconf 2.68. Invocation command line was 19171 19172 CONFIG_FILES = $CONFIG_FILES 19173 CONFIG_HEADERS = $CONFIG_HEADERS 19174 CONFIG_LINKS = $CONFIG_LINKS 19175 CONFIG_COMMANDS = $CONFIG_COMMANDS 19176 $ $0 $@ 19177 19178on `(hostname || uname -n) 2>/dev/null | sed 1q` 19179" 19180 19181_ACEOF 19182 19183case $ac_config_files in *" 19184"*) set x $ac_config_files; shift; ac_config_files=$*;; 19185esac 19186 19187case $ac_config_headers in *" 19188"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19189esac 19190 19191 19192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19193# Files that config.status was made for. 19194config_files="$ac_config_files" 19195config_headers="$ac_config_headers" 19196config_commands="$ac_config_commands" 19197 19198_ACEOF 19199 19200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19201ac_cs_usage="\ 19202\`$as_me' instantiates files and other configuration actions 19203from templates according to the current configuration. Unless the files 19204and actions are specified as TAGs, all are instantiated by default. 19205 19206Usage: $0 [OPTION]... [TAG]... 19207 19208 -h, --help print this help, then exit 19209 -V, --version print version number and configuration settings, then exit 19210 --config print configuration, then exit 19211 -q, --quiet, --silent 19212 do not print progress messages 19213 -d, --debug don't remove temporary files 19214 --recheck update $as_me by reconfiguring in the same conditions 19215 --file=FILE[:TEMPLATE] 19216 instantiate the configuration file FILE 19217 --header=FILE[:TEMPLATE] 19218 instantiate the configuration header FILE 19219 19220Configuration files: 19221$config_files 19222 19223Configuration headers: 19224$config_headers 19225 19226Configuration commands: 19227$config_commands 19228 19229Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19230 19231_ACEOF 19232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19233ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19234ac_cs_version="\\ 19235libXdmcp config.status 1.1.1 19236configured by $0, generated by GNU Autoconf 2.68, 19237 with options \\"\$ac_cs_config\\" 19238 19239Copyright (C) 2010 Free Software Foundation, Inc. 19240This config.status script is free software; the Free Software Foundation 19241gives unlimited permission to copy, distribute and modify it." 19242 19243ac_pwd='$ac_pwd' 19244srcdir='$srcdir' 19245INSTALL='$INSTALL' 19246MKDIR_P='$MKDIR_P' 19247AWK='$AWK' 19248test -n "\$AWK" || AWK=awk 19249_ACEOF 19250 19251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19252# The default lists apply if the user does not specify any file. 19253ac_need_defaults=: 19254while test $# != 0 19255do 19256 case $1 in 19257 --*=?*) 19258 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19260 ac_shift=: 19261 ;; 19262 --*=) 19263 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19264 ac_optarg= 19265 ac_shift=: 19266 ;; 19267 *) 19268 ac_option=$1 19269 ac_optarg=$2 19270 ac_shift=shift 19271 ;; 19272 esac 19273 19274 case $ac_option in 19275 # Handling of the options. 19276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19277 ac_cs_recheck=: ;; 19278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19279 $as_echo "$ac_cs_version"; exit ;; 19280 --config | --confi | --conf | --con | --co | --c ) 19281 $as_echo "$ac_cs_config"; exit ;; 19282 --debug | --debu | --deb | --de | --d | -d ) 19283 debug=: ;; 19284 --file | --fil | --fi | --f ) 19285 $ac_shift 19286 case $ac_optarg in 19287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19288 '') as_fn_error $? "missing file argument" ;; 19289 esac 19290 as_fn_append CONFIG_FILES " '$ac_optarg'" 19291 ac_need_defaults=false;; 19292 --header | --heade | --head | --hea ) 19293 $ac_shift 19294 case $ac_optarg in 19295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19296 esac 19297 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19298 ac_need_defaults=false;; 19299 --he | --h) 19300 # Conflict between --help and --header 19301 as_fn_error $? "ambiguous option: \`$1' 19302Try \`$0 --help' for more information.";; 19303 --help | --hel | -h ) 19304 $as_echo "$ac_cs_usage"; exit ;; 19305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19306 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19307 ac_cs_silent=: ;; 19308 19309 # This is an error. 19310 -*) as_fn_error $? "unrecognized option: \`$1' 19311Try \`$0 --help' for more information." ;; 19312 19313 *) as_fn_append ac_config_targets " $1" 19314 ac_need_defaults=false ;; 19315 19316 esac 19317 shift 19318done 19319 19320ac_configure_extra_args= 19321 19322if $ac_cs_silent; then 19323 exec 6>/dev/null 19324 ac_configure_extra_args="$ac_configure_extra_args --silent" 19325fi 19326 19327_ACEOF 19328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19329if \$ac_cs_recheck; then 19330 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19331 shift 19332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19333 CONFIG_SHELL='$SHELL' 19334 export CONFIG_SHELL 19335 exec "\$@" 19336fi 19337 19338_ACEOF 19339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19340exec 5>>config.log 19341{ 19342 echo 19343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19344## Running $as_me. ## 19345_ASBOX 19346 $as_echo "$ac_log" 19347} >&5 19348 19349_ACEOF 19350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19351# 19352# INIT-COMMANDS 19353# 19354AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19355 19356 19357# The HP-UX ksh and POSIX shell print the target directory to stdout 19358# if CDPATH is set. 19359(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19360 19361sed_quote_subst='$sed_quote_subst' 19362double_quote_subst='$double_quote_subst' 19363delay_variable_subst='$delay_variable_subst' 19364AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19365DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19366OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19367macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19368macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19369enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19370enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19371pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19372enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19373SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19374ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19381SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19382Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19383GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19384EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19385FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19386LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19387NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19388LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19389max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19390ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19391exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19392lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19393lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19394lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19395lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19396lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19397reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19398reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19399deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19400file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19401file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19402want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19403sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19404AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19405AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19406archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19407STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19408RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19409old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19410old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19411old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19412lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19413CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19414CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19415compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19416GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19417lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19418lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19419lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19420lt_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"`' 19421nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19422lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19423objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19424MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19425lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19426lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19427lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19428lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19429lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19430need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19431MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19432DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19433NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19434LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19435OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19436OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19437libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19438shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19439extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19440archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19441enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19442export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19443whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19444compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19445old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19446old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19447archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19448archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19449module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19450module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19451with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19452allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19453no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19454hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19455hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 19456hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19457hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19458hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19459hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19460hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19461hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19462inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19463link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19464always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19465export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19466exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19467include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19468prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19469postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19470file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19471variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19472need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19473need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19474version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19475runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19476shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19477shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19478libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19479library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19480soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19481install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19482postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19483postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19484finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19485finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19486hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19487sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19488sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19489hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19490enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19491enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19492enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19493old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19494striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19495 19496LTCC='$LTCC' 19497LTCFLAGS='$LTCFLAGS' 19498compiler='$compiler_DEFAULT' 19499 19500# A function that is used when there is no print builtin or printf. 19501func_fallback_echo () 19502{ 19503 eval 'cat <<_LTECHO_EOF 19504\$1 19505_LTECHO_EOF' 19506} 19507 19508# Quote evaled strings. 19509for var in AS \ 19510DLLTOOL \ 19511OBJDUMP \ 19512SHELL \ 19513ECHO \ 19514SED \ 19515GREP \ 19516EGREP \ 19517FGREP \ 19518LD \ 19519NM \ 19520LN_S \ 19521lt_SP2NL \ 19522lt_NL2SP \ 19523reload_flag \ 19524deplibs_check_method \ 19525file_magic_cmd \ 19526file_magic_glob \ 19527want_nocaseglob \ 19528sharedlib_from_linklib_cmd \ 19529AR \ 19530AR_FLAGS \ 19531archiver_list_spec \ 19532STRIP \ 19533RANLIB \ 19534CC \ 19535CFLAGS \ 19536compiler \ 19537lt_cv_sys_global_symbol_pipe \ 19538lt_cv_sys_global_symbol_to_cdecl \ 19539lt_cv_sys_global_symbol_to_c_name_address \ 19540lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19541nm_file_list_spec \ 19542lt_prog_compiler_no_builtin_flag \ 19543lt_prog_compiler_pic \ 19544lt_prog_compiler_wl \ 19545lt_prog_compiler_static \ 19546lt_cv_prog_compiler_c_o \ 19547need_locks \ 19548MANIFEST_TOOL \ 19549DSYMUTIL \ 19550NMEDIT \ 19551LIPO \ 19552OTOOL \ 19553OTOOL64 \ 19554shrext_cmds \ 19555export_dynamic_flag_spec \ 19556whole_archive_flag_spec \ 19557compiler_needs_object \ 19558with_gnu_ld \ 19559allow_undefined_flag \ 19560no_undefined_flag \ 19561hardcode_libdir_flag_spec \ 19562hardcode_libdir_flag_spec_ld \ 19563hardcode_libdir_separator \ 19564exclude_expsyms \ 19565include_expsyms \ 19566file_list_spec \ 19567variables_saved_for_relink \ 19568libname_spec \ 19569library_names_spec \ 19570soname_spec \ 19571install_override_mode \ 19572finish_eval \ 19573old_striplib \ 19574striplib; do 19575 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19576 *[\\\\\\\`\\"\\\$]*) 19577 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19578 ;; 19579 *) 19580 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19581 ;; 19582 esac 19583done 19584 19585# Double-quote double-evaled strings. 19586for var in reload_cmds \ 19587old_postinstall_cmds \ 19588old_postuninstall_cmds \ 19589old_archive_cmds \ 19590extract_expsyms_cmds \ 19591old_archive_from_new_cmds \ 19592old_archive_from_expsyms_cmds \ 19593archive_cmds \ 19594archive_expsym_cmds \ 19595module_cmds \ 19596module_expsym_cmds \ 19597export_symbols_cmds \ 19598prelink_cmds \ 19599postlink_cmds \ 19600postinstall_cmds \ 19601postuninstall_cmds \ 19602finish_cmds \ 19603sys_lib_search_path_spec \ 19604sys_lib_dlsearch_path_spec; do 19605 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19606 *[\\\\\\\`\\"\\\$]*) 19607 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19608 ;; 19609 *) 19610 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19611 ;; 19612 esac 19613done 19614 19615ac_aux_dir='$ac_aux_dir' 19616xsi_shell='$xsi_shell' 19617lt_shell_append='$lt_shell_append' 19618 19619# See if we are running on zsh, and set the options which allow our 19620# commands through without removal of \ escapes INIT. 19621if test -n "\${ZSH_VERSION+set}" ; then 19622 setopt NO_GLOB_SUBST 19623fi 19624 19625 19626 PACKAGE='$PACKAGE' 19627 VERSION='$VERSION' 19628 TIMESTAMP='$TIMESTAMP' 19629 RM='$RM' 19630 ofile='$ofile' 19631 19632 19633 19634 19635_ACEOF 19636 19637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19638 19639# Handling of arguments. 19640for ac_config_target in $ac_config_targets 19641do 19642 case $ac_config_target in 19643 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19645 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19646 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19647 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19648 "xdmcp.pc") CONFIG_FILES="$CONFIG_FILES xdmcp.pc" ;; 19649 19650 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19651 esac 19652done 19653 19654 19655# If the user did not use the arguments to specify the items to instantiate, 19656# then the envvar interface is used. Set only those that are not. 19657# We use the long form for the default assignment because of an extremely 19658# bizarre bug on SunOS 4.1.3. 19659if $ac_need_defaults; then 19660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19661 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19662 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19663fi 19664 19665# Have a temporary directory for convenience. Make it in the build tree 19666# simply because there is no reason against having it here, and in addition, 19667# creating and moving files from /tmp can sometimes cause problems. 19668# Hook for its removal unless debugging. 19669# Note that there is a small window in which the directory will not be cleaned: 19670# after its creation but before its name has been assigned to `$tmp'. 19671$debug || 19672{ 19673 tmp= ac_tmp= 19674 trap 'exit_status=$? 19675 : "${ac_tmp:=$tmp}" 19676 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19677' 0 19678 trap 'as_fn_exit 1' 1 2 13 15 19679} 19680# Create a (secure) tmp directory for tmp files. 19681 19682{ 19683 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19684 test -d "$tmp" 19685} || 19686{ 19687 tmp=./conf$$-$RANDOM 19688 (umask 077 && mkdir "$tmp") 19689} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19690ac_tmp=$tmp 19691 19692# Set up the scripts for CONFIG_FILES section. 19693# No need to generate them if there are no CONFIG_FILES. 19694# This happens for instance with `./config.status config.h'. 19695if test -n "$CONFIG_FILES"; then 19696 19697 19698ac_cr=`echo X | tr X '\015'` 19699# On cygwin, bash can eat \r inside `` if the user requested igncr. 19700# But we know of no other shell where ac_cr would be empty at this 19701# point, so we can use a bashism as a fallback. 19702if test "x$ac_cr" = x; then 19703 eval ac_cr=\$\'\\r\' 19704fi 19705ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19706if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19707 ac_cs_awk_cr='\\r' 19708else 19709 ac_cs_awk_cr=$ac_cr 19710fi 19711 19712echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19713_ACEOF 19714 19715 19716{ 19717 echo "cat >conf$$subs.awk <<_ACEOF" && 19718 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19719 echo "_ACEOF" 19720} >conf$$subs.sh || 19721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19722ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19723ac_delim='%!_!# ' 19724for ac_last_try in false false false false false :; do 19725 . ./conf$$subs.sh || 19726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19727 19728 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19729 if test $ac_delim_n = $ac_delim_num; then 19730 break 19731 elif $ac_last_try; then 19732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19733 else 19734 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19735 fi 19736done 19737rm -f conf$$subs.sh 19738 19739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19740cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19741_ACEOF 19742sed -n ' 19743h 19744s/^/S["/; s/!.*/"]=/ 19745p 19746g 19747s/^[^!]*!// 19748:repl 19749t repl 19750s/'"$ac_delim"'$// 19751t delim 19752:nl 19753h 19754s/\(.\{148\}\)..*/\1/ 19755t more1 19756s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19757p 19758n 19759b repl 19760:more1 19761s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19762p 19763g 19764s/.\{148\}// 19765t nl 19766:delim 19767h 19768s/\(.\{148\}\)..*/\1/ 19769t more2 19770s/["\\]/\\&/g; s/^/"/; s/$/"/ 19771p 19772b 19773:more2 19774s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19775p 19776g 19777s/.\{148\}// 19778t delim 19779' <conf$$subs.awk | sed ' 19780/^[^""]/{ 19781 N 19782 s/\n// 19783} 19784' >>$CONFIG_STATUS || ac_write_fail=1 19785rm -f conf$$subs.awk 19786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19787_ACAWK 19788cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19789 for (key in S) S_is_set[key] = 1 19790 FS = "" 19791 19792} 19793{ 19794 line = $ 0 19795 nfields = split(line, field, "@") 19796 substed = 0 19797 len = length(field[1]) 19798 for (i = 2; i < nfields; i++) { 19799 key = field[i] 19800 keylen = length(key) 19801 if (S_is_set[key]) { 19802 value = S[key] 19803 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19804 len += length(value) + length(field[++i]) 19805 substed = 1 19806 } else 19807 len += 1 + keylen 19808 } 19809 19810 print line 19811} 19812 19813_ACAWK 19814_ACEOF 19815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19816if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19817 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19818else 19819 cat 19820fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19821 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19822_ACEOF 19823 19824# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19825# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19826# trailing colons and then remove the whole line if VPATH becomes empty 19827# (actually we leave an empty line to preserve line numbers). 19828if test "x$srcdir" = x.; then 19829 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19830h 19831s/// 19832s/^/:/ 19833s/[ ]*$/:/ 19834s/:\$(srcdir):/:/g 19835s/:\${srcdir}:/:/g 19836s/:@srcdir@:/:/g 19837s/^:*// 19838s/:*$// 19839x 19840s/\(=[ ]*\).*/\1/ 19841G 19842s/\n// 19843s/^[^=]*=[ ]*$// 19844}' 19845fi 19846 19847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19848fi # test -n "$CONFIG_FILES" 19849 19850# Set up the scripts for CONFIG_HEADERS section. 19851# No need to generate them if there are no CONFIG_HEADERS. 19852# This happens for instance with `./config.status Makefile'. 19853if test -n "$CONFIG_HEADERS"; then 19854cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19855BEGIN { 19856_ACEOF 19857 19858# Transform confdefs.h into an awk script `defines.awk', embedded as 19859# here-document in config.status, that substitutes the proper values into 19860# config.h.in to produce config.h. 19861 19862# Create a delimiter string that does not exist in confdefs.h, to ease 19863# handling of long lines. 19864ac_delim='%!_!# ' 19865for ac_last_try in false false :; do 19866 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19867 if test -z "$ac_tt"; then 19868 break 19869 elif $ac_last_try; then 19870 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19871 else 19872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19873 fi 19874done 19875 19876# For the awk script, D is an array of macro values keyed by name, 19877# likewise P contains macro parameters if any. Preserve backslash 19878# newline sequences. 19879 19880ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19881sed -n ' 19882s/.\{148\}/&'"$ac_delim"'/g 19883t rset 19884:rset 19885s/^[ ]*#[ ]*define[ ][ ]*/ / 19886t def 19887d 19888:def 19889s/\\$// 19890t bsnl 19891s/["\\]/\\&/g 19892s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19893D["\1"]=" \3"/p 19894s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19895d 19896:bsnl 19897s/["\\]/\\&/g 19898s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19899D["\1"]=" \3\\\\\\n"\\/p 19900t cont 19901s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19902t cont 19903d 19904:cont 19905n 19906s/.\{148\}/&'"$ac_delim"'/g 19907t clear 19908:clear 19909s/\\$// 19910t bsnlc 19911s/["\\]/\\&/g; s/^/"/; s/$/"/p 19912d 19913:bsnlc 19914s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19915b cont 19916' <confdefs.h | sed ' 19917s/'"$ac_delim"'/"\\\ 19918"/g' >>$CONFIG_STATUS || ac_write_fail=1 19919 19920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19921 for (key in D) D_is_set[key] = 1 19922 FS = "" 19923} 19924/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19925 line = \$ 0 19926 split(line, arg, " ") 19927 if (arg[1] == "#") { 19928 defundef = arg[2] 19929 mac1 = arg[3] 19930 } else { 19931 defundef = substr(arg[1], 2) 19932 mac1 = arg[2] 19933 } 19934 split(mac1, mac2, "(") #) 19935 macro = mac2[1] 19936 prefix = substr(line, 1, index(line, defundef) - 1) 19937 if (D_is_set[macro]) { 19938 # Preserve the white space surrounding the "#". 19939 print prefix "define", macro P[macro] D[macro] 19940 next 19941 } else { 19942 # Replace #undef with comments. This is necessary, for example, 19943 # in the case of _POSIX_SOURCE, which is predefined and required 19944 # on some systems where configure will not decide to define it. 19945 if (defundef == "undef") { 19946 print "/*", prefix defundef, macro, "*/" 19947 next 19948 } 19949 } 19950} 19951{ print } 19952_ACAWK 19953_ACEOF 19954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19955 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19956fi # test -n "$CONFIG_HEADERS" 19957 19958 19959eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19960shift 19961for ac_tag 19962do 19963 case $ac_tag in 19964 :[FHLC]) ac_mode=$ac_tag; continue;; 19965 esac 19966 case $ac_mode$ac_tag in 19967 :[FHL]*:*);; 19968 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19969 :[FH]-) ac_tag=-:-;; 19970 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19971 esac 19972 ac_save_IFS=$IFS 19973 IFS=: 19974 set x $ac_tag 19975 IFS=$ac_save_IFS 19976 shift 19977 ac_file=$1 19978 shift 19979 19980 case $ac_mode in 19981 :L) ac_source=$1;; 19982 :[FH]) 19983 ac_file_inputs= 19984 for ac_f 19985 do 19986 case $ac_f in 19987 -) ac_f="$ac_tmp/stdin";; 19988 *) # Look for the file first in the build tree, then in the source tree 19989 # (if the path is not absolute). The absolute path cannot be DOS-style, 19990 # because $ac_f cannot contain `:'. 19991 test -f "$ac_f" || 19992 case $ac_f in 19993 [\\/$]*) false;; 19994 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19995 esac || 19996 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19997 esac 19998 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19999 as_fn_append ac_file_inputs " '$ac_f'" 20000 done 20001 20002 # Let's still pretend it is `configure' which instantiates (i.e., don't 20003 # use $as_me), people would be surprised to read: 20004 # /* config.h. Generated by config.status. */ 20005 configure_input='Generated from '` 20006 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20007 `' by configure.' 20008 if test x"$ac_file" != x-; then 20009 configure_input="$ac_file. $configure_input" 20010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20011$as_echo "$as_me: creating $ac_file" >&6;} 20012 fi 20013 # Neutralize special characters interpreted by sed in replacement strings. 20014 case $configure_input in #( 20015 *\&* | *\|* | *\\* ) 20016 ac_sed_conf_input=`$as_echo "$configure_input" | 20017 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20018 *) ac_sed_conf_input=$configure_input;; 20019 esac 20020 20021 case $ac_tag in 20022 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20024 esac 20025 ;; 20026 esac 20027 20028 ac_dir=`$as_dirname -- "$ac_file" || 20029$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20030 X"$ac_file" : 'X\(//\)[^/]' \| \ 20031 X"$ac_file" : 'X\(//\)$' \| \ 20032 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20033$as_echo X"$ac_file" | 20034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20035 s//\1/ 20036 q 20037 } 20038 /^X\(\/\/\)[^/].*/{ 20039 s//\1/ 20040 q 20041 } 20042 /^X\(\/\/\)$/{ 20043 s//\1/ 20044 q 20045 } 20046 /^X\(\/\).*/{ 20047 s//\1/ 20048 q 20049 } 20050 s/.*/./; q'` 20051 as_dir="$ac_dir"; as_fn_mkdir_p 20052 ac_builddir=. 20053 20054case "$ac_dir" in 20055.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20056*) 20057 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20058 # A ".." for each directory in $ac_dir_suffix. 20059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20060 case $ac_top_builddir_sub in 20061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20063 esac ;; 20064esac 20065ac_abs_top_builddir=$ac_pwd 20066ac_abs_builddir=$ac_pwd$ac_dir_suffix 20067# for backward compatibility: 20068ac_top_builddir=$ac_top_build_prefix 20069 20070case $srcdir in 20071 .) # We are building in place. 20072 ac_srcdir=. 20073 ac_top_srcdir=$ac_top_builddir_sub 20074 ac_abs_top_srcdir=$ac_pwd ;; 20075 [\\/]* | ?:[\\/]* ) # Absolute name. 20076 ac_srcdir=$srcdir$ac_dir_suffix; 20077 ac_top_srcdir=$srcdir 20078 ac_abs_top_srcdir=$srcdir ;; 20079 *) # Relative name. 20080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20081 ac_top_srcdir=$ac_top_build_prefix$srcdir 20082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20083esac 20084ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20085 20086 20087 case $ac_mode in 20088 :F) 20089 # 20090 # CONFIG_FILE 20091 # 20092 20093 case $INSTALL in 20094 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20095 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20096 esac 20097 ac_MKDIR_P=$MKDIR_P 20098 case $MKDIR_P in 20099 [\\/$]* | ?:[\\/]* ) ;; 20100 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20101 esac 20102_ACEOF 20103 20104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20105# If the template does not know about datarootdir, expand it. 20106# FIXME: This hack should be removed a few years after 2.60. 20107ac_datarootdir_hack=; ac_datarootdir_seen= 20108ac_sed_dataroot=' 20109/datarootdir/ { 20110 p 20111 q 20112} 20113/@datadir@/p 20114/@docdir@/p 20115/@infodir@/p 20116/@localedir@/p 20117/@mandir@/p' 20118case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20119*datarootdir*) ac_datarootdir_seen=yes;; 20120*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20122$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20123_ACEOF 20124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20125 ac_datarootdir_hack=' 20126 s&@datadir@&$datadir&g 20127 s&@docdir@&$docdir&g 20128 s&@infodir@&$infodir&g 20129 s&@localedir@&$localedir&g 20130 s&@mandir@&$mandir&g 20131 s&\\\${datarootdir}&$datarootdir&g' ;; 20132esac 20133_ACEOF 20134 20135# Neutralize VPATH when `$srcdir' = `.'. 20136# Shell code in configure.ac might set extrasub. 20137# FIXME: do we really want to maintain this feature? 20138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20139ac_sed_extra="$ac_vpsub 20140$extrasub 20141_ACEOF 20142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20143:t 20144/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20145s|@configure_input@|$ac_sed_conf_input|;t t 20146s&@top_builddir@&$ac_top_builddir_sub&;t t 20147s&@top_build_prefix@&$ac_top_build_prefix&;t t 20148s&@srcdir@&$ac_srcdir&;t t 20149s&@abs_srcdir@&$ac_abs_srcdir&;t t 20150s&@top_srcdir@&$ac_top_srcdir&;t t 20151s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20152s&@builddir@&$ac_builddir&;t t 20153s&@abs_builddir@&$ac_abs_builddir&;t t 20154s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20155s&@INSTALL@&$ac_INSTALL&;t t 20156s&@MKDIR_P@&$ac_MKDIR_P&;t t 20157$ac_datarootdir_hack 20158" 20159eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20160 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20161 20162test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20163 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20164 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20165 "$ac_tmp/out"`; test -z "$ac_out"; } && 20166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20167which seems to be undefined. Please make sure it is defined" >&5 20168$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20169which seems to be undefined. Please make sure it is defined" >&2;} 20170 20171 rm -f "$ac_tmp/stdin" 20172 case $ac_file in 20173 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20174 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20175 esac \ 20176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20177 ;; 20178 :H) 20179 # 20180 # CONFIG_HEADER 20181 # 20182 if test x"$ac_file" != x-; then 20183 { 20184 $as_echo "/* $configure_input */" \ 20185 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20186 } >"$ac_tmp/config.h" \ 20187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20188 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20189 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20190$as_echo "$as_me: $ac_file is unchanged" >&6;} 20191 else 20192 rm -f "$ac_file" 20193 mv "$ac_tmp/config.h" "$ac_file" \ 20194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20195 fi 20196 else 20197 $as_echo "/* $configure_input */" \ 20198 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20199 || as_fn_error $? "could not create -" "$LINENO" 5 20200 fi 20201# Compute "$ac_file"'s index in $config_headers. 20202_am_arg="$ac_file" 20203_am_stamp_count=1 20204for _am_header in $config_headers :; do 20205 case $_am_header in 20206 $_am_arg | $_am_arg:* ) 20207 break ;; 20208 * ) 20209 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20210 esac 20211done 20212echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20213$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20214 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20215 X"$_am_arg" : 'X\(//\)$' \| \ 20216 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20217$as_echo X"$_am_arg" | 20218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20219 s//\1/ 20220 q 20221 } 20222 /^X\(\/\/\)[^/].*/{ 20223 s//\1/ 20224 q 20225 } 20226 /^X\(\/\/\)$/{ 20227 s//\1/ 20228 q 20229 } 20230 /^X\(\/\).*/{ 20231 s//\1/ 20232 q 20233 } 20234 s/.*/./; q'`/stamp-h$_am_stamp_count 20235 ;; 20236 20237 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20238$as_echo "$as_me: executing $ac_file commands" >&6;} 20239 ;; 20240 esac 20241 20242 20243 case $ac_file$ac_mode in 20244 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20245 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20246 # are listed without --file. Let's play safe and only enable the eval 20247 # if we detect the quoting. 20248 case $CONFIG_FILES in 20249 *\'*) eval set x "$CONFIG_FILES" ;; 20250 *) set x $CONFIG_FILES ;; 20251 esac 20252 shift 20253 for mf 20254 do 20255 # Strip MF so we end up with the name of the file. 20256 mf=`echo "$mf" | sed -e 's/:.*$//'` 20257 # Check whether this is an Automake generated Makefile or not. 20258 # We used to match only the files named `Makefile.in', but 20259 # some people rename them; so instead we look at the file content. 20260 # Grep'ing the first line is not enough: some people post-process 20261 # each Makefile.in and add a new line on top of each file to say so. 20262 # Grep'ing the whole file is not good either: AIX grep has a line 20263 # limit of 2048, but all sed's we know have understand at least 4000. 20264 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20265 dirpart=`$as_dirname -- "$mf" || 20266$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20267 X"$mf" : 'X\(//\)[^/]' \| \ 20268 X"$mf" : 'X\(//\)$' \| \ 20269 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20270$as_echo X"$mf" | 20271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20272 s//\1/ 20273 q 20274 } 20275 /^X\(\/\/\)[^/].*/{ 20276 s//\1/ 20277 q 20278 } 20279 /^X\(\/\/\)$/{ 20280 s//\1/ 20281 q 20282 } 20283 /^X\(\/\).*/{ 20284 s//\1/ 20285 q 20286 } 20287 s/.*/./; q'` 20288 else 20289 continue 20290 fi 20291 # Extract the definition of DEPDIR, am__include, and am__quote 20292 # from the Makefile without running `make'. 20293 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20294 test -z "$DEPDIR" && continue 20295 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20296 test -z "am__include" && continue 20297 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20298 # When using ansi2knr, U may be empty or an underscore; expand it 20299 U=`sed -n 's/^U = //p' < "$mf"` 20300 # Find all dependency output files, they are included files with 20301 # $(DEPDIR) in their names. We invoke sed twice because it is the 20302 # simplest approach to changing $(DEPDIR) to its actual value in the 20303 # expansion. 20304 for file in `sed -n " 20305 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20306 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20307 # Make sure the directory exists. 20308 test -f "$dirpart/$file" && continue 20309 fdir=`$as_dirname -- "$file" || 20310$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20311 X"$file" : 'X\(//\)[^/]' \| \ 20312 X"$file" : 'X\(//\)$' \| \ 20313 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20314$as_echo X"$file" | 20315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20316 s//\1/ 20317 q 20318 } 20319 /^X\(\/\/\)[^/].*/{ 20320 s//\1/ 20321 q 20322 } 20323 /^X\(\/\/\)$/{ 20324 s//\1/ 20325 q 20326 } 20327 /^X\(\/\).*/{ 20328 s//\1/ 20329 q 20330 } 20331 s/.*/./; q'` 20332 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20333 # echo "creating $dirpart/$file" 20334 echo '# dummy' > "$dirpart/$file" 20335 done 20336 done 20337} 20338 ;; 20339 "libtool":C) 20340 20341 # See if we are running on zsh, and set the options which allow our 20342 # commands through without removal of \ escapes. 20343 if test -n "${ZSH_VERSION+set}" ; then 20344 setopt NO_GLOB_SUBST 20345 fi 20346 20347 cfgfile="${ofile}T" 20348 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20349 $RM "$cfgfile" 20350 20351 cat <<_LT_EOF >> "$cfgfile" 20352#! $SHELL 20353 20354# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20355# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20356# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20357# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20358# 20359# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20360# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 20361# Inc. 20362# Written by Gordon Matzigkeit, 1996 20363# 20364# This file is part of GNU Libtool. 20365# 20366# GNU Libtool is free software; you can redistribute it and/or 20367# modify it under the terms of the GNU General Public License as 20368# published by the Free Software Foundation; either version 2 of 20369# the License, or (at your option) any later version. 20370# 20371# As a special exception to the GNU General Public License, 20372# if you distribute this file as part of a program or library that 20373# is built using GNU Libtool, you may include this file under the 20374# same distribution terms that you use for the rest of that program. 20375# 20376# GNU Libtool is distributed in the hope that it will be useful, 20377# but WITHOUT ANY WARRANTY; without even the implied warranty of 20378# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20379# GNU General Public License for more details. 20380# 20381# You should have received a copy of the GNU General Public License 20382# along with GNU Libtool; see the file COPYING. If not, a copy 20383# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20384# obtained by writing to the Free Software Foundation, Inc., 20385# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20386 20387 20388# The names of the tagged configurations supported by this script. 20389available_tags="" 20390 20391# ### BEGIN LIBTOOL CONFIG 20392 20393# Assembler program. 20394AS=$lt_AS 20395 20396# DLL creation program. 20397DLLTOOL=$lt_DLLTOOL 20398 20399# Object dumper program. 20400OBJDUMP=$lt_OBJDUMP 20401 20402# Which release of libtool.m4 was used? 20403macro_version=$macro_version 20404macro_revision=$macro_revision 20405 20406# Whether or not to build shared libraries. 20407build_libtool_libs=$enable_shared 20408 20409# Whether or not to build static libraries. 20410build_old_libs=$enable_static 20411 20412# What type of objects to build. 20413pic_mode=$pic_mode 20414 20415# Whether or not to optimize for fast installation. 20416fast_install=$enable_fast_install 20417 20418# Shell to use when invoking shell scripts. 20419SHELL=$lt_SHELL 20420 20421# An echo program that protects backslashes. 20422ECHO=$lt_ECHO 20423 20424# The host system. 20425host_alias=$host_alias 20426host=$host 20427host_os=$host_os 20428 20429# The build system. 20430build_alias=$build_alias 20431build=$build 20432build_os=$build_os 20433 20434# A sed program that does not truncate output. 20435SED=$lt_SED 20436 20437# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20438Xsed="\$SED -e 1s/^X//" 20439 20440# A grep program that handles long lines. 20441GREP=$lt_GREP 20442 20443# An ERE matcher. 20444EGREP=$lt_EGREP 20445 20446# A literal string matcher. 20447FGREP=$lt_FGREP 20448 20449# A BSD- or MS-compatible name lister. 20450NM=$lt_NM 20451 20452# Whether we need soft or hard links. 20453LN_S=$lt_LN_S 20454 20455# What is the maximum length of a command? 20456max_cmd_len=$max_cmd_len 20457 20458# Object file suffix (normally "o"). 20459objext=$ac_objext 20460 20461# Executable file suffix (normally ""). 20462exeext=$exeext 20463 20464# whether the shell understands "unset". 20465lt_unset=$lt_unset 20466 20467# turn spaces into newlines. 20468SP2NL=$lt_lt_SP2NL 20469 20470# turn newlines into spaces. 20471NL2SP=$lt_lt_NL2SP 20472 20473# convert \$build file names to \$host format. 20474to_host_file_cmd=$lt_cv_to_host_file_cmd 20475 20476# convert \$build files to toolchain format. 20477to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20478 20479# Method to check whether dependent libraries are shared objects. 20480deplibs_check_method=$lt_deplibs_check_method 20481 20482# Command to use when deplibs_check_method = "file_magic". 20483file_magic_cmd=$lt_file_magic_cmd 20484 20485# How to find potential files when deplibs_check_method = "file_magic". 20486file_magic_glob=$lt_file_magic_glob 20487 20488# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20489want_nocaseglob=$lt_want_nocaseglob 20490 20491# Command to associate shared and link libraries. 20492sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20493 20494# The archiver. 20495AR=$lt_AR 20496 20497# Flags to create an archive. 20498AR_FLAGS=$lt_AR_FLAGS 20499 20500# How to feed a file listing to the archiver. 20501archiver_list_spec=$lt_archiver_list_spec 20502 20503# A symbol stripping program. 20504STRIP=$lt_STRIP 20505 20506# Commands used to install an old-style archive. 20507RANLIB=$lt_RANLIB 20508old_postinstall_cmds=$lt_old_postinstall_cmds 20509old_postuninstall_cmds=$lt_old_postuninstall_cmds 20510 20511# Whether to use a lock for old archive extraction. 20512lock_old_archive_extraction=$lock_old_archive_extraction 20513 20514# A C compiler. 20515LTCC=$lt_CC 20516 20517# LTCC compiler flags. 20518LTCFLAGS=$lt_CFLAGS 20519 20520# Take the output of nm and produce a listing of raw symbols and C names. 20521global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20522 20523# Transform the output of nm in a proper C declaration. 20524global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20525 20526# Transform the output of nm in a C name address pair. 20527global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20528 20529# Transform the output of nm in a C name address pair when lib prefix is needed. 20530global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20531 20532# Specify filename containing input files for \$NM. 20533nm_file_list_spec=$lt_nm_file_list_spec 20534 20535# The root where to search for dependent libraries,and in which our libraries should be installed. 20536lt_sysroot=$lt_sysroot 20537 20538# The name of the directory that contains temporary libtool files. 20539objdir=$objdir 20540 20541# Used to examine libraries when file_magic_cmd begins with "file". 20542MAGIC_CMD=$MAGIC_CMD 20543 20544# Must we lock files when doing compilation? 20545need_locks=$lt_need_locks 20546 20547# Manifest tool. 20548MANIFEST_TOOL=$lt_MANIFEST_TOOL 20549 20550# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20551DSYMUTIL=$lt_DSYMUTIL 20552 20553# Tool to change global to local symbols on Mac OS X. 20554NMEDIT=$lt_NMEDIT 20555 20556# Tool to manipulate fat objects and archives on Mac OS X. 20557LIPO=$lt_LIPO 20558 20559# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20560OTOOL=$lt_OTOOL 20561 20562# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20563OTOOL64=$lt_OTOOL64 20564 20565# Old archive suffix (normally "a"). 20566libext=$libext 20567 20568# Shared library suffix (normally ".so"). 20569shrext_cmds=$lt_shrext_cmds 20570 20571# The commands to extract the exported symbol list from a shared archive. 20572extract_expsyms_cmds=$lt_extract_expsyms_cmds 20573 20574# Variables whose values should be saved in libtool wrapper scripts and 20575# restored at link time. 20576variables_saved_for_relink=$lt_variables_saved_for_relink 20577 20578# Do we need the "lib" prefix for modules? 20579need_lib_prefix=$need_lib_prefix 20580 20581# Do we need a version for libraries? 20582need_version=$need_version 20583 20584# Library versioning type. 20585version_type=$version_type 20586 20587# Shared library runtime path variable. 20588runpath_var=$runpath_var 20589 20590# Shared library path variable. 20591shlibpath_var=$shlibpath_var 20592 20593# Is shlibpath searched before the hard-coded library search path? 20594shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20595 20596# Format of library name prefix. 20597libname_spec=$lt_libname_spec 20598 20599# List of archive names. First name is the real one, the rest are links. 20600# The last name is the one that the linker finds with -lNAME 20601library_names_spec=$lt_library_names_spec 20602 20603# The coded name of the library, if different from the real name. 20604soname_spec=$lt_soname_spec 20605 20606# Permission mode override for installation of shared libraries. 20607install_override_mode=$lt_install_override_mode 20608 20609# Command to use after installation of a shared archive. 20610postinstall_cmds=$lt_postinstall_cmds 20611 20612# Command to use after uninstallation of a shared archive. 20613postuninstall_cmds=$lt_postuninstall_cmds 20614 20615# Commands used to finish a libtool library installation in a directory. 20616finish_cmds=$lt_finish_cmds 20617 20618# As "finish_cmds", except a single script fragment to be evaled but 20619# not shown. 20620finish_eval=$lt_finish_eval 20621 20622# Whether we should hardcode library paths into libraries. 20623hardcode_into_libs=$hardcode_into_libs 20624 20625# Compile-time system search path for libraries. 20626sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20627 20628# Run-time system search path for libraries. 20629sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20630 20631# Whether dlopen is supported. 20632dlopen_support=$enable_dlopen 20633 20634# Whether dlopen of programs is supported. 20635dlopen_self=$enable_dlopen_self 20636 20637# Whether dlopen of statically linked programs is supported. 20638dlopen_self_static=$enable_dlopen_self_static 20639 20640# Commands to strip libraries. 20641old_striplib=$lt_old_striplib 20642striplib=$lt_striplib 20643 20644 20645# The linker used to build libraries. 20646LD=$lt_LD 20647 20648# How to create reloadable object files. 20649reload_flag=$lt_reload_flag 20650reload_cmds=$lt_reload_cmds 20651 20652# Commands used to build an old-style archive. 20653old_archive_cmds=$lt_old_archive_cmds 20654 20655# A language specific compiler. 20656CC=$lt_compiler 20657 20658# Is the compiler the GNU compiler? 20659with_gcc=$GCC 20660 20661# Compiler flag to turn off builtin functions. 20662no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20663 20664# Additional compiler flags for building library objects. 20665pic_flag=$lt_lt_prog_compiler_pic 20666 20667# How to pass a linker flag through the compiler. 20668wl=$lt_lt_prog_compiler_wl 20669 20670# Compiler flag to prevent dynamic linking. 20671link_static_flag=$lt_lt_prog_compiler_static 20672 20673# Does compiler simultaneously support -c and -o options? 20674compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20675 20676# Whether or not to add -lc for building shared libraries. 20677build_libtool_need_lc=$archive_cmds_need_lc 20678 20679# Whether or not to disallow shared libs when runtime libs are static. 20680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20681 20682# Compiler flag to allow reflexive dlopens. 20683export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20684 20685# Compiler flag to generate shared objects directly from archives. 20686whole_archive_flag_spec=$lt_whole_archive_flag_spec 20687 20688# Whether the compiler copes with passing no objects directly. 20689compiler_needs_object=$lt_compiler_needs_object 20690 20691# Create an old-style archive from a shared archive. 20692old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20693 20694# Create a temporary old-style archive to link instead of a shared archive. 20695old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20696 20697# Commands used to build a shared archive. 20698archive_cmds=$lt_archive_cmds 20699archive_expsym_cmds=$lt_archive_expsym_cmds 20700 20701# Commands used to build a loadable module if different from building 20702# a shared archive. 20703module_cmds=$lt_module_cmds 20704module_expsym_cmds=$lt_module_expsym_cmds 20705 20706# Whether we are building with GNU ld or not. 20707with_gnu_ld=$lt_with_gnu_ld 20708 20709# Flag that allows shared libraries with undefined symbols to be built. 20710allow_undefined_flag=$lt_allow_undefined_flag 20711 20712# Flag that enforces no undefined symbols. 20713no_undefined_flag=$lt_no_undefined_flag 20714 20715# Flag to hardcode \$libdir into a binary during linking. 20716# This must work even if \$libdir does not exist 20717hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20718 20719# If ld is used when linking, flag to hardcode \$libdir into a binary 20720# during linking. This must work even if \$libdir does not exist. 20721hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20722 20723# Whether we need a single "-rpath" flag with a separated argument. 20724hardcode_libdir_separator=$lt_hardcode_libdir_separator 20725 20726# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20727# DIR into the resulting binary. 20728hardcode_direct=$hardcode_direct 20729 20730# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20731# DIR into the resulting binary and the resulting library dependency is 20732# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20733# library is relocated. 20734hardcode_direct_absolute=$hardcode_direct_absolute 20735 20736# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20737# into the resulting binary. 20738hardcode_minus_L=$hardcode_minus_L 20739 20740# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20741# into the resulting binary. 20742hardcode_shlibpath_var=$hardcode_shlibpath_var 20743 20744# Set to "yes" if building a shared library automatically hardcodes DIR 20745# into the library and all subsequent libraries and executables linked 20746# against it. 20747hardcode_automatic=$hardcode_automatic 20748 20749# Set to yes if linker adds runtime paths of dependent libraries 20750# to runtime path list. 20751inherit_rpath=$inherit_rpath 20752 20753# Whether libtool must link a program against all its dependency libraries. 20754link_all_deplibs=$link_all_deplibs 20755 20756# Set to "yes" if exported symbols are required. 20757always_export_symbols=$always_export_symbols 20758 20759# The commands to list exported symbols. 20760export_symbols_cmds=$lt_export_symbols_cmds 20761 20762# Symbols that should not be listed in the preloaded symbols. 20763exclude_expsyms=$lt_exclude_expsyms 20764 20765# Symbols that must always be exported. 20766include_expsyms=$lt_include_expsyms 20767 20768# Commands necessary for linking programs (against libraries) with templates. 20769prelink_cmds=$lt_prelink_cmds 20770 20771# Commands necessary for finishing linking programs. 20772postlink_cmds=$lt_postlink_cmds 20773 20774# Specify filename containing input files. 20775file_list_spec=$lt_file_list_spec 20776 20777# How to hardcode a shared library path into an executable. 20778hardcode_action=$hardcode_action 20779 20780# ### END LIBTOOL CONFIG 20781 20782_LT_EOF 20783 20784 case $host_os in 20785 aix3*) 20786 cat <<\_LT_EOF >> "$cfgfile" 20787# AIX sometimes has problems with the GCC collect2 program. For some 20788# reason, if we set the COLLECT_NAMES environment variable, the problems 20789# vanish in a puff of smoke. 20790if test "X${COLLECT_NAMES+set}" != Xset; then 20791 COLLECT_NAMES= 20792 export COLLECT_NAMES 20793fi 20794_LT_EOF 20795 ;; 20796 esac 20797 20798 20799ltmain="$ac_aux_dir/ltmain.sh" 20800 20801 20802 # We use sed instead of cat because bash on DJGPP gets confused if 20803 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20804 # text mode, it properly converts lines to CR/LF. This bash problem 20805 # is reportedly fixed, but why not run on old versions too? 20806 sed '$q' "$ltmain" >> "$cfgfile" \ 20807 || (rm -f "$cfgfile"; exit 1) 20808 20809 if test x"$xsi_shell" = xyes; then 20810 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20811func_dirname ()\ 20812{\ 20813\ case ${1} in\ 20814\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20815\ * ) func_dirname_result="${3}" ;;\ 20816\ esac\ 20817} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20818 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20820test 0 -eq $? || _lt_function_replace_fail=: 20821 20822 20823 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20824func_basename ()\ 20825{\ 20826\ func_basename_result="${1##*/}"\ 20827} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20828 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20830test 0 -eq $? || _lt_function_replace_fail=: 20831 20832 20833 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20834func_dirname_and_basename ()\ 20835{\ 20836\ case ${1} in\ 20837\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20838\ * ) func_dirname_result="${3}" ;;\ 20839\ esac\ 20840\ func_basename_result="${1##*/}"\ 20841} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20842 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20844test 0 -eq $? || _lt_function_replace_fail=: 20845 20846 20847 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20848func_stripname ()\ 20849{\ 20850\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20851\ # positional parameters, so assign one to ordinary parameter first.\ 20852\ func_stripname_result=${3}\ 20853\ func_stripname_result=${func_stripname_result#"${1}"}\ 20854\ func_stripname_result=${func_stripname_result%"${2}"}\ 20855} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20856 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20858test 0 -eq $? || _lt_function_replace_fail=: 20859 20860 20861 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20862func_split_long_opt ()\ 20863{\ 20864\ func_split_long_opt_name=${1%%=*}\ 20865\ func_split_long_opt_arg=${1#*=}\ 20866} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20867 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20869test 0 -eq $? || _lt_function_replace_fail=: 20870 20871 20872 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20873func_split_short_opt ()\ 20874{\ 20875\ func_split_short_opt_arg=${1#??}\ 20876\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20877} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20878 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20880test 0 -eq $? || _lt_function_replace_fail=: 20881 20882 20883 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20884func_lo2o ()\ 20885{\ 20886\ case ${1} in\ 20887\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20888\ *) func_lo2o_result=${1} ;;\ 20889\ esac\ 20890} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20891 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20893test 0 -eq $? || _lt_function_replace_fail=: 20894 20895 20896 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20897func_xform ()\ 20898{\ 20899 func_xform_result=${1%.*}.lo\ 20900} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20901 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20903test 0 -eq $? || _lt_function_replace_fail=: 20904 20905 20906 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20907func_arith ()\ 20908{\ 20909 func_arith_result=$(( $* ))\ 20910} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20911 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20913test 0 -eq $? || _lt_function_replace_fail=: 20914 20915 20916 sed -e '/^func_len ()$/,/^} # func_len /c\ 20917func_len ()\ 20918{\ 20919 func_len_result=${#1}\ 20920} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20921 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20923test 0 -eq $? || _lt_function_replace_fail=: 20924 20925fi 20926 20927if test x"$lt_shell_append" = xyes; then 20928 sed -e '/^func_append ()$/,/^} # func_append /c\ 20929func_append ()\ 20930{\ 20931 eval "${1}+=\\${2}"\ 20932} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20933 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20935test 0 -eq $? || _lt_function_replace_fail=: 20936 20937 20938 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20939func_append_quoted ()\ 20940{\ 20941\ func_quote_for_eval "${2}"\ 20942\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20943} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20944 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20946test 0 -eq $? || _lt_function_replace_fail=: 20947 20948 20949 # Save a `func_append' function call where possible by direct use of '+=' 20950 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20951 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20953 test 0 -eq $? || _lt_function_replace_fail=: 20954else 20955 # Save a `func_append' function call even when '+=' is not available 20956 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20957 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20959 test 0 -eq $? || _lt_function_replace_fail=: 20960fi 20961 20962if test x"$_lt_function_replace_fail" = x":"; then 20963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20964$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20965fi 20966 20967 20968 mv -f "$cfgfile" "$ofile" || 20969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20970 chmod +x "$ofile" 20971 20972 ;; 20973 20974 esac 20975done # for ac_tag 20976 20977 20978as_fn_exit 0 20979_ACEOF 20980ac_clean_files=$ac_clean_files_save 20981 20982test $ac_write_fail = 0 || 20983 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20984 20985 20986# configure is writing to config.log, and then calls config.status. 20987# config.status does its own redirection, appending to config.log. 20988# Unfortunately, on DOS this fails, as config.log is still kept open 20989# by configure, so config.status won't be able to write to it; its 20990# output is simply discarded. So we exec the FD to /dev/null, 20991# effectively closing config.log, so it can be properly (re)opened and 20992# appended to by config.status. When coming back to configure, we 20993# need to make the FD available again. 20994if test "$no_create" != yes; then 20995 ac_cs_success=: 20996 ac_config_status_args= 20997 test "$silent" = yes && 20998 ac_config_status_args="$ac_config_status_args --quiet" 20999 exec 5>/dev/null 21000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21001 exec 5>>config.log 21002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21003 # would make configure fail if this is the last instruction. 21004 $ac_cs_success || as_fn_exit 1 21005fi 21006if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21008$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21009fi 21010 21011