configure revision e160ea6e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libX11 1.6.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550as_awk_strverscmp=' 551 # Use only awk features that work with 7th edition Unix awk (1978). 552 # My, what an old awk you have, Mr. Solaris! 553 END { 554 while (length(v1) && length(v2)) { 555 # Set d1 to be the next thing to compare from v1, and likewise for d2. 556 # Normally this is a single character, but if v1 and v2 contain digits, 557 # compare them as integers and fractions as strverscmp does. 558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 559 # Split v1 and v2 into their leading digit string components d1 and d2, 560 # and advance v1 and v2 past the leading digit strings. 561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 565 if (d1 ~ /^0/) { 566 if (d2 ~ /^0/) { 567 # Compare two fractions. 568 while (d1 ~ /^0/ && d2 ~ /^0/) { 569 d1 = substr(d1, 2); len1-- 570 d2 = substr(d2, 2); len2-- 571 } 572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 573 # The two components differ in length, and the common prefix 574 # contains only leading zeros. Consider the longer to be less. 575 d1 = -len1 576 d2 = -len2 577 } else { 578 # Otherwise, compare as strings. 579 d1 = "x" d1 580 d2 = "x" d2 581 } 582 } else { 583 # A fraction is less than an integer. 584 exit 1 585 } 586 } else { 587 if (d2 ~ /^0/) { 588 # An integer is greater than a fraction. 589 exit 2 590 } else { 591 # Compare two integers. 592 d1 += 0 593 d2 += 0 594 } 595 } 596 } else { 597 # The normal case, without worrying about digits. 598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 600 } 601 if (d1 < d2) exit 1 602 if (d1 > d2) exit 2 603 } 604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 605 # which mishandles some comparisons of empty strings to integers. 606 if (length(v2)) exit 1 607 if (length(v1)) exit 2 608 } 609' 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='libX11' 633PACKAGE_TARNAME='libX11' 634PACKAGE_VERSION='1.6.0' 635PACKAGE_STRING='libX11 1.6.0' 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_header_list= 677ac_subst_vars='am__EXEEXT_FALSE 678am__EXEEXT_TRUE 679LTLIBOBJS 680LIBOBJS 681XTMALLOC_ZERO_CFLAGS 682XMALLOC_ZERO_CFLAGS 683MALLOC_ZERO_CFLAGS 684XERRORDB 685XKEYSYMDB 686locales 687X11_LOCALEDIR 688XLOCALEDIR 689X11_LOCALELIBDIR 690XLOCALELIBDIR 691X11_LOCALEDATADIR 692XLOCALEDATADIR 693X11_LIBS 694X11_CFLAGS 695X11_LIBDIR 696X11_DATADIR 697MAKE_LINT_LIB_FALSE 698MAKE_LINT_LIB_TRUE 699LINTLIB 700LINT_FALSE 701LINT_TRUE 702LINT_FLAGS 703LINT 704XKBPROTO_REQUIRES 705XKB_FALSE 706XKB_TRUE 707BIGFONT_LIBS 708BIGFONT_CFLAGS 709XLOCALE_FALSE 710XLOCALE_TRUE 711XCMS_FALSE 712XCMS_TRUE 713UDC_FALSE 714UDC_TRUE 715KEYSYMDEFS 716XTHREAD_CFLAGS 717XTHREADLIB 718THRSTUBS_FALSE 719THRSTUBS_TRUE 720LAUNCHD 721OS2_FALSE 722OS2_TRUE 723WCHAR32 724XLIB_LOADABLE_I18N_FALSE 725XLIB_LOADABLE_I18N_TRUE 726I18N_MODULE_LIBS 727X11_EXTRA_DEPS 728LDFLAGS_FOR_BUILD 729CFLAGS_FOR_BUILD 730CPPFLAGS_FOR_BUILD 731CC_FOR_BUILD 732HAVE_PERL_FALSE 733HAVE_PERL_TRUE 734PERL 735RAWCPPFLAGS 736RAWCPP 737HAVE_STYLESHEETS_FALSE 738HAVE_STYLESHEETS_TRUE 739XSL_STYLESHEET 740STYLESHEET_SRCDIR 741XORG_SGML_PATH 742HAVE_XSLTPROC_FALSE 743HAVE_XSLTPROC_TRUE 744XSLTPROC 745HAVE_FOP_FALSE 746HAVE_FOP_TRUE 747FOP 748HAVE_XMLTO_FALSE 749HAVE_XMLTO_TRUE 750HAVE_XMLTO_TEXT_FALSE 751HAVE_XMLTO_TEXT_TRUE 752XMLTO 753ENABLE_SPECS_FALSE 754ENABLE_SPECS_TRUE 755MAN_SUBSTS 756XORG_MAN_PAGE 757ADMIN_MAN_DIR 758DRIVER_MAN_DIR 759MISC_MAN_DIR 760FILE_MAN_DIR 761LIB_MAN_DIR 762APP_MAN_DIR 763ADMIN_MAN_SUFFIX 764DRIVER_MAN_SUFFIX 765MISC_MAN_SUFFIX 766FILE_MAN_SUFFIX 767LIB_MAN_SUFFIX 768APP_MAN_SUFFIX 769INSTALL_CMD 770PKG_CONFIG 771CHANGELOG_CMD 772STRICT_CFLAGS 773CWARNFLAGS 774BASE_CFLAGS 775OTOOL64 776OTOOL 777LIPO 778NMEDIT 779DSYMUTIL 780MANIFEST_TOOL 781RANLIB 782ac_ct_AR 783AR 784DLLTOOL 785OBJDUMP 786LN_S 787NM 788ac_ct_DUMPBIN 789DUMPBIN 790LD 791FGREP 792SED 793LIBTOOL 794AM_BACKSLASH 795AM_DEFAULT_VERBOSITY 796AM_DEFAULT_V 797AM_V 798am__fastdepCC_FALSE 799am__fastdepCC_TRUE 800CCDEPMODE 801am__nodep 802AMDEPBACKSLASH 803AMDEP_FALSE 804AMDEP_TRUE 805am__quote 806am__include 807DEPDIR 808am__untar 809am__tar 810AMTAR 811am__leading_dot 812SET_MAKE 813AWK 814mkdir_p 815MKDIR_P 816INSTALL_STRIP_PROGRAM 817STRIP 818install_sh 819MAKEINFO 820AUTOHEADER 821AUTOMAKE 822AUTOCONF 823ACLOCAL 824VERSION 825PACKAGE 826CYGPATH_W 827am__isrc 828INSTALL_DATA 829INSTALL_SCRIPT 830INSTALL_PROGRAM 831EGREP 832GREP 833CPP 834OBJEXT 835EXEEXT 836ac_ct_CC 837CPPFLAGS 838LDFLAGS 839CFLAGS 840CC 841host_os 842host_vendor 843host_cpu 844host 845build_os 846build_vendor 847build_cpu 848build 849target_alias 850host_alias 851build_alias 852LIBS 853ECHO_T 854ECHO_N 855ECHO_C 856DEFS 857mandir 858localedir 859libdir 860psdir 861pdfdir 862dvidir 863htmldir 864infodir 865docdir 866oldincludedir 867includedir 868localstatedir 869sharedstatedir 870sysconfdir 871datadir 872datarootdir 873libexecdir 874sbindir 875bindir 876program_transform_name 877prefix 878exec_prefix 879PACKAGE_URL 880PACKAGE_BUGREPORT 881PACKAGE_STRING 882PACKAGE_VERSION 883PACKAGE_TARNAME 884PACKAGE_NAME 885PATH_SEPARATOR 886SHELL' 887ac_subst_files='' 888ac_user_opts=' 889enable_option_checking 890enable_dependency_tracking 891enable_silent_rules 892enable_shared 893enable_static 894with_pic 895enable_fast_install 896with_gnu_ld 897with_sysroot 898enable_libtool_lock 899enable_selective_werror 900enable_strict_compilation 901enable_specs 902with_xmlto 903with_fop 904with_xsltproc 905with_perl 906enable_unix_transport 907enable_tcp_transport 908enable_ipv6 909enable_local_transport 910enable_secure_rpc 911with_local_transport_order 912enable_loadable_i18n 913enable_loadable_xcursor 914with_launchd 915enable_xthreads 916with_keysymdefdir 917enable_xcms 918enable_xlocale 919enable_xlocaledir 920enable_xf86bigfont 921enable_xkb 922enable_composecache 923with_lint 924enable_lint_library 925with_locale_lib_dir 926enable_malloc0returnsnull 927' 928 ac_precious_vars='build_alias 929host_alias 930target_alias 931CC 932CFLAGS 933LDFLAGS 934LIBS 935CPPFLAGS 936CPP 937PKG_CONFIG 938XMLTO 939FOP 940XSLTPROC 941PERL 942BIGFONT_CFLAGS 943BIGFONT_LIBS 944LINT 945LINT_FLAGS 946X11_CFLAGS 947X11_LIBS' 948 949 950# Initialize some variables set by options. 951ac_init_help= 952ac_init_version=false 953ac_unrecognized_opts= 954ac_unrecognized_sep= 955# The variables have the same names as the options, with 956# dashes changed to underlines. 957cache_file=/dev/null 958exec_prefix=NONE 959no_create= 960no_recursion= 961prefix=NONE 962program_prefix=NONE 963program_suffix=NONE 964program_transform_name=s,x,x, 965silent= 966site= 967srcdir= 968verbose= 969x_includes=NONE 970x_libraries=NONE 971 972# Installation directory options. 973# These are left unexpanded so users can "make install exec_prefix=/foo" 974# and all the variables that are supposed to be based on exec_prefix 975# by default will actually change. 976# Use braces instead of parens because sh, perl, etc. also accept them. 977# (The list follows the same order as the GNU Coding Standards.) 978bindir='${exec_prefix}/bin' 979sbindir='${exec_prefix}/sbin' 980libexecdir='${exec_prefix}/libexec' 981datarootdir='${prefix}/share' 982datadir='${datarootdir}' 983sysconfdir='${prefix}/etc' 984sharedstatedir='${prefix}/com' 985localstatedir='${prefix}/var' 986includedir='${prefix}/include' 987oldincludedir='/usr/include' 988docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 989infodir='${datarootdir}/info' 990htmldir='${docdir}' 991dvidir='${docdir}' 992pdfdir='${docdir}' 993psdir='${docdir}' 994libdir='${exec_prefix}/lib' 995localedir='${datarootdir}/locale' 996mandir='${datarootdir}/man' 997 998ac_prev= 999ac_dashdash= 1000for ac_option 1001do 1002 # If the previous option needs an argument, assign it. 1003 if test -n "$ac_prev"; then 1004 eval $ac_prev=\$ac_option 1005 ac_prev= 1006 continue 1007 fi 1008 1009 case $ac_option in 1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1011 *=) ac_optarg= ;; 1012 *) ac_optarg=yes ;; 1013 esac 1014 1015 # Accept the important Cygnus configure options, so we can diagnose typos. 1016 1017 case $ac_dashdash$ac_option in 1018 --) 1019 ac_dashdash=yes ;; 1020 1021 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1022 ac_prev=bindir ;; 1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1024 bindir=$ac_optarg ;; 1025 1026 -build | --build | --buil | --bui | --bu) 1027 ac_prev=build_alias ;; 1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1029 build_alias=$ac_optarg ;; 1030 1031 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1033 ac_prev=cache_file ;; 1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1036 cache_file=$ac_optarg ;; 1037 1038 --config-cache | -C) 1039 cache_file=config.cache ;; 1040 1041 -datadir | --datadir | --datadi | --datad) 1042 ac_prev=datadir ;; 1043 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1044 datadir=$ac_optarg ;; 1045 1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1047 | --dataroo | --dataro | --datar) 1048 ac_prev=datarootdir ;; 1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1051 datarootdir=$ac_optarg ;; 1052 1053 -disable-* | --disable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=no ;; 1068 1069 -docdir | --docdir | --docdi | --doc | --do) 1070 ac_prev=docdir ;; 1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1072 docdir=$ac_optarg ;; 1073 1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1075 ac_prev=dvidir ;; 1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1077 dvidir=$ac_optarg ;; 1078 1079 -enable-* | --enable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error $? "invalid feature name: $ac_useropt" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088"enable_$ac_useropt" 1089"*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval enable_$ac_useropt=\$ac_optarg ;; 1094 1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1097 | --exec | --exe | --ex) 1098 ac_prev=exec_prefix ;; 1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1101 | --exec=* | --exe=* | --ex=*) 1102 exec_prefix=$ac_optarg ;; 1103 1104 -gas | --gas | --ga | --g) 1105 # Obsolete; use --with-gas. 1106 with_gas=yes ;; 1107 1108 -help | --help | --hel | --he | -h) 1109 ac_init_help=long ;; 1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1111 ac_init_help=recursive ;; 1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1113 ac_init_help=short ;; 1114 1115 -host | --host | --hos | --ho) 1116 ac_prev=host_alias ;; 1117 -host=* | --host=* | --hos=* | --ho=*) 1118 host_alias=$ac_optarg ;; 1119 1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1121 ac_prev=htmldir ;; 1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1123 | --ht=*) 1124 htmldir=$ac_optarg ;; 1125 1126 -includedir | --includedir | --includedi | --included | --include \ 1127 | --includ | --inclu | --incl | --inc) 1128 ac_prev=includedir ;; 1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1130 | --includ=* | --inclu=* | --incl=* | --inc=*) 1131 includedir=$ac_optarg ;; 1132 1133 -infodir | --infodir | --infodi | --infod | --info | --inf) 1134 ac_prev=infodir ;; 1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1136 infodir=$ac_optarg ;; 1137 1138 -libdir | --libdir | --libdi | --libd) 1139 ac_prev=libdir ;; 1140 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1141 libdir=$ac_optarg ;; 1142 1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1144 | --libexe | --libex | --libe) 1145 ac_prev=libexecdir ;; 1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1147 | --libexe=* | --libex=* | --libe=*) 1148 libexecdir=$ac_optarg ;; 1149 1150 -localedir | --localedir | --localedi | --localed | --locale) 1151 ac_prev=localedir ;; 1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1153 localedir=$ac_optarg ;; 1154 1155 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1156 | --localstate | --localstat | --localsta | --localst | --locals) 1157 ac_prev=localstatedir ;; 1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1160 localstatedir=$ac_optarg ;; 1161 1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1163 ac_prev=mandir ;; 1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1165 mandir=$ac_optarg ;; 1166 1167 -nfp | --nfp | --nf) 1168 # Obsolete; use --without-fp. 1169 with_fp=no ;; 1170 1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1172 | --no-cr | --no-c | -n) 1173 no_create=yes ;; 1174 1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1177 no_recursion=yes ;; 1178 1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1181 | --oldin | --oldi | --old | --ol | --o) 1182 ac_prev=oldincludedir ;; 1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1186 oldincludedir=$ac_optarg ;; 1187 1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1189 ac_prev=prefix ;; 1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1191 prefix=$ac_optarg ;; 1192 1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1194 | --program-pre | --program-pr | --program-p) 1195 ac_prev=program_prefix ;; 1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1198 program_prefix=$ac_optarg ;; 1199 1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1201 | --program-suf | --program-su | --program-s) 1202 ac_prev=program_suffix ;; 1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1205 program_suffix=$ac_optarg ;; 1206 1207 -program-transform-name | --program-transform-name \ 1208 | --program-transform-nam | --program-transform-na \ 1209 | --program-transform-n | --program-transform- \ 1210 | --program-transform | --program-transfor \ 1211 | --program-transfo | --program-transf \ 1212 | --program-trans | --program-tran \ 1213 | --progr-tra | --program-tr | --program-t) 1214 ac_prev=program_transform_name ;; 1215 -program-transform-name=* | --program-transform-name=* \ 1216 | --program-transform-nam=* | --program-transform-na=* \ 1217 | --program-transform-n=* | --program-transform-=* \ 1218 | --program-transform=* | --program-transfor=* \ 1219 | --program-transfo=* | --program-transf=* \ 1220 | --program-trans=* | --program-tran=* \ 1221 | --progr-tra=* | --program-tr=* | --program-t=*) 1222 program_transform_name=$ac_optarg ;; 1223 1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1225 ac_prev=pdfdir ;; 1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1227 pdfdir=$ac_optarg ;; 1228 1229 -psdir | --psdir | --psdi | --psd | --ps) 1230 ac_prev=psdir ;; 1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1232 psdir=$ac_optarg ;; 1233 1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1235 | -silent | --silent | --silen | --sile | --sil) 1236 silent=yes ;; 1237 1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1239 ac_prev=sbindir ;; 1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1241 | --sbi=* | --sb=*) 1242 sbindir=$ac_optarg ;; 1243 1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1246 | --sharedst | --shareds | --shared | --share | --shar \ 1247 | --sha | --sh) 1248 ac_prev=sharedstatedir ;; 1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1252 | --sha=* | --sh=*) 1253 sharedstatedir=$ac_optarg ;; 1254 1255 -site | --site | --sit) 1256 ac_prev=site ;; 1257 -site=* | --site=* | --sit=*) 1258 site=$ac_optarg ;; 1259 1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1261 ac_prev=srcdir ;; 1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1263 srcdir=$ac_optarg ;; 1264 1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1266 | --syscon | --sysco | --sysc | --sys | --sy) 1267 ac_prev=sysconfdir ;; 1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1270 sysconfdir=$ac_optarg ;; 1271 1272 -target | --target | --targe | --targ | --tar | --ta | --t) 1273 ac_prev=target_alias ;; 1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1275 target_alias=$ac_optarg ;; 1276 1277 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1278 verbose=yes ;; 1279 1280 -version | --version | --versio | --versi | --vers | -V) 1281 ac_init_version=: ;; 1282 1283 -with-* | --with-*) 1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1285 # Reject names that are not valid shell variable names. 1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1287 as_fn_error $? "invalid package name: $ac_useropt" 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292"with_$ac_useropt" 1293"*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=\$ac_optarg ;; 1298 1299 -without-* | --without-*) 1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1301 # Reject names that are not valid shell variable names. 1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1303 as_fn_error $? "invalid package name: $ac_useropt" 1304 ac_useropt_orig=$ac_useropt 1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1306 case $ac_user_opts in 1307 *" 1308"with_$ac_useropt" 1309"*) ;; 1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1311 ac_unrecognized_sep=', ';; 1312 esac 1313 eval with_$ac_useropt=no ;; 1314 1315 --x) 1316 # Obsolete; use --with-x. 1317 with_x=yes ;; 1318 1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1320 | --x-incl | --x-inc | --x-in | --x-i) 1321 ac_prev=x_includes ;; 1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1324 x_includes=$ac_optarg ;; 1325 1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1328 ac_prev=x_libraries ;; 1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1331 x_libraries=$ac_optarg ;; 1332 1333 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1334Try \`$0 --help' for more information" 1335 ;; 1336 1337 *=*) 1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1339 # Reject names that are not valid shell variable names. 1340 case $ac_envvar in #( 1341 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1343 esac 1344 eval $ac_envvar=\$ac_optarg 1345 export $ac_envvar ;; 1346 1347 *) 1348 # FIXME: should be removed in autoconf 3.0. 1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1353 ;; 1354 1355 esac 1356done 1357 1358if test -n "$ac_prev"; then 1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1360 as_fn_error $? "missing argument to $ac_option" 1361fi 1362 1363if test -n "$ac_unrecognized_opts"; then 1364 case $enable_option_checking in 1365 no) ;; 1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1368 esac 1369fi 1370 1371# Check all directory arguments for consistency. 1372for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1373 datadir sysconfdir sharedstatedir localstatedir includedir \ 1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1375 libdir localedir mandir 1376do 1377 eval ac_val=\$$ac_var 1378 # Remove trailing slashes. 1379 case $ac_val in 1380 */ ) 1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1382 eval $ac_var=\$ac_val;; 1383 esac 1384 # Be sure to have absolute directory names. 1385 case $ac_val in 1386 [\\/$]* | ?:[\\/]* ) continue;; 1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1388 esac 1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1390done 1391 1392# There might be people who depend on the old broken behavior: `$host' 1393# used to hold the argument of --host etc. 1394# FIXME: To remove some day. 1395build=$build_alias 1396host=$host_alias 1397target=$target_alias 1398 1399# FIXME: To remove some day. 1400if test "x$host_alias" != x; then 1401 if test "x$build_alias" = x; then 1402 cross_compiling=maybe 1403 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1404 If a cross compiler is detected then cross compile mode will be used" >&2 1405 elif test "x$build_alias" != "x$host_alias"; then 1406 cross_compiling=yes 1407 fi 1408fi 1409 1410ac_tool_prefix= 1411test -n "$host_alias" && ac_tool_prefix=$host_alias- 1412 1413test "$silent" = yes && exec 6>/dev/null 1414 1415 1416ac_pwd=`pwd` && test -n "$ac_pwd" && 1417ac_ls_di=`ls -di .` && 1418ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1419 as_fn_error $? "working directory cannot be determined" 1420test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1421 as_fn_error $? "pwd does not report name of working directory" 1422 1423 1424# Find the source files, if location was not specified. 1425if test -z "$srcdir"; then 1426 ac_srcdir_defaulted=yes 1427 # Try the directory containing this script, then the parent directory. 1428 ac_confdir=`$as_dirname -- "$as_myself" || 1429$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1430 X"$as_myself" : 'X\(//\)[^/]' \| \ 1431 X"$as_myself" : 'X\(//\)$' \| \ 1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1433$as_echo X"$as_myself" | 1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\/\)[^/].*/{ 1439 s//\1/ 1440 q 1441 } 1442 /^X\(\/\/\)$/{ 1443 s//\1/ 1444 q 1445 } 1446 /^X\(\/\).*/{ 1447 s//\1/ 1448 q 1449 } 1450 s/.*/./; q'` 1451 srcdir=$ac_confdir 1452 if test ! -r "$srcdir/$ac_unique_file"; then 1453 srcdir=.. 1454 fi 1455else 1456 ac_srcdir_defaulted=no 1457fi 1458if test ! -r "$srcdir/$ac_unique_file"; then 1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1461fi 1462ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1463ac_abs_confdir=`( 1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1465 pwd)` 1466# When building in place, set srcdir=. 1467if test "$ac_abs_confdir" = "$ac_pwd"; then 1468 srcdir=. 1469fi 1470# Remove unnecessary trailing slashes from srcdir. 1471# Double slashes in file names in object file debugging info 1472# mess up M-x gdb in Emacs. 1473case $srcdir in 1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1475esac 1476for ac_var in $ac_precious_vars; do 1477 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1478 eval ac_env_${ac_var}_value=\$${ac_var} 1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1480 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1481done 1482 1483# 1484# Report the --help message. 1485# 1486if test "$ac_init_help" = "long"; then 1487 # Omit some internal or obsolete options to make the list less imposing. 1488 # This message is too long to be a string in the A/UX 3.1 sh. 1489 cat <<_ACEOF 1490\`configure' configures libX11 1.6.0 to adapt to many kinds of systems. 1491 1492Usage: $0 [OPTION]... [VAR=VALUE]... 1493 1494To assign environment variables (e.g., CC, CFLAGS...), specify them as 1495VAR=VALUE. See below for descriptions of some of the useful variables. 1496 1497Defaults for the options are specified in brackets. 1498 1499Configuration: 1500 -h, --help display this help and exit 1501 --help=short display options specific to this package 1502 --help=recursive display the short help of all the included packages 1503 -V, --version display version information and exit 1504 -q, --quiet, --silent do not print \`checking ...' messages 1505 --cache-file=FILE cache test results in FILE [disabled] 1506 -C, --config-cache alias for \`--cache-file=config.cache' 1507 -n, --no-create do not create output files 1508 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1509 1510Installation directories: 1511 --prefix=PREFIX install architecture-independent files in PREFIX 1512 [$ac_default_prefix] 1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1514 [PREFIX] 1515 1516By default, \`make install' will install all the files in 1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1518an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1519for instance \`--prefix=\$HOME'. 1520 1521For better control, use the options below. 1522 1523Fine tuning of the installation directories: 1524 --bindir=DIR user executables [EPREFIX/bin] 1525 --sbindir=DIR system admin executables [EPREFIX/sbin] 1526 --libexecdir=DIR program executables [EPREFIX/libexec] 1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1530 --libdir=DIR object code libraries [EPREFIX/lib] 1531 --includedir=DIR C header files [PREFIX/include] 1532 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1535 --infodir=DIR info documentation [DATAROOTDIR/info] 1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1537 --mandir=DIR man documentation [DATAROOTDIR/man] 1538 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1539 --htmldir=DIR html documentation [DOCDIR] 1540 --dvidir=DIR dvi documentation [DOCDIR] 1541 --pdfdir=DIR pdf documentation [DOCDIR] 1542 --psdir=DIR ps documentation [DOCDIR] 1543_ACEOF 1544 1545 cat <<\_ACEOF 1546 1547Program names: 1548 --program-prefix=PREFIX prepend PREFIX to installed program names 1549 --program-suffix=SUFFIX append SUFFIX to installed program names 1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1551 1552System types: 1553 --build=BUILD configure for building on BUILD [guessed] 1554 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1555_ACEOF 1556fi 1557 1558if test -n "$ac_init_help"; then 1559 case $ac_init_help in 1560 short | recursive ) echo "Configuration of libX11 1.6.0:";; 1561 esac 1562 cat <<\_ACEOF 1563 1564Optional Features: 1565 --disable-option-checking ignore unrecognized --enable/--with options 1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1568 --enable-dependency-tracking 1569 do not reject slow dependency extractors 1570 --disable-dependency-tracking 1571 speeds up one-time build 1572 --enable-silent-rules less verbose build output (undo: "make V=1") 1573 --disable-silent-rules verbose build output (undo: "make V=0") 1574 --enable-shared[=PKGS] build shared libraries [default=yes] 1575 --enable-static[=PKGS] build static libraries [default=yes] 1576 --enable-fast-install[=PKGS] 1577 optimize for fast installation [default=yes] 1578 --disable-libtool-lock avoid locking (might break parallel builds) 1579 --disable-selective-werror 1580 Turn off selective compiler errors. (default: 1581 enabled) 1582 --enable-strict-compilation 1583 Enable all warnings from compiler and make them 1584 errors (default: disabled) 1585 --enable-specs Enable building the specs (default: yes) 1586 --enable-unix-transport Enable UNIX domain socket transport 1587 --enable-tcp-transport Enable TCP socket transport 1588 --enable-ipv6 Enable IPv6 support 1589 --enable-local-transport 1590 Enable os-specific local transport 1591 --enable-secure-rpc Enable Secure RPC 1592 --enable-loadable-i18n Controls loadable i18n module support 1593 --disable-loadable-xcursor 1594 Controls loadable xcursor library support 1595 --disable-xthreads Disable Xlib support for Multithreading 1596 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1597 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1598 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1599 --disable-xf86bigfont Disable XF86BigFont extension support 1600 --disable-xkb Disable XKB support *EXPERIMENTAL* 1601 --disable-composecache Disable compose table cache support 1602 --enable-lint-library Create lint library (default: disabled) 1603 --enable-malloc0returnsnull 1604 malloc(0) returns NULL (default: auto) 1605 1606Optional Packages: 1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1609 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1610 both] 1611 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1612 --with-sysroot=DIR Search for dependent libraries within DIR 1613 (or the compiler's sysroot if not specified). 1614 --with-xmlto Use xmlto to regenerate documentation (default: 1615 auto) 1616 --with-fop Use fop to regenerate documentation (default: no) 1617 --with-xsltproc Use xsltproc for the transformation of XML documents 1618 (default: auto) 1619 --with-perl Use perl for extracting information from files 1620 (default: auto) 1621 --with-local-transport-order=LIST 1622 preference sorted list of transport types to try for 1623 local connections 1624 --with-launchd Build with support for Apple's launchd (default: 1625 auto) 1626 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1627 include dir) 1628 --with-lint Use a lint-style source code checker (default: 1629 disabled) 1630 --with-locale-lib-dir=DIR 1631 Directory where locale libraries files are installed 1632 (default: $libdir/X11/locale) 1633 1634Some influential environment variables: 1635 CC C compiler command 1636 CFLAGS C compiler flags 1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1638 nonstandard directory <lib dir> 1639 LIBS libraries to pass to the linker, e.g. -l<library> 1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1641 you have headers in a nonstandard directory <include dir> 1642 CPP C preprocessor 1643 PKG_CONFIG path to pkg-config utility 1644 XMLTO Path to xmlto command 1645 FOP Path to fop command 1646 XSLTPROC Path to xsltproc command 1647 PERL Path to perl command 1648 BIGFONT_CFLAGS 1649 C compiler flags for BIGFONT, overriding pkg-config 1650 BIGFONT_LIBS 1651 linker flags for BIGFONT, overriding pkg-config 1652 LINT Path to a lint-style command 1653 LINT_FLAGS Flags for the lint-style command 1654 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1655 X11_LIBS linker flags for X11, overriding pkg-config 1656 1657Use these variables to override the choices made by `configure' or to help 1658it to find libraries and programs with nonstandard names/locations. 1659 1660Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1661_ACEOF 1662ac_status=$? 1663fi 1664 1665if test "$ac_init_help" = "recursive"; then 1666 # If there are subdirs, report their specific --help. 1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1668 test -d "$ac_dir" || 1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1670 continue 1671 ac_builddir=. 1672 1673case "$ac_dir" in 1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1675*) 1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1677 # A ".." for each directory in $ac_dir_suffix. 1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1679 case $ac_top_builddir_sub in 1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1682 esac ;; 1683esac 1684ac_abs_top_builddir=$ac_pwd 1685ac_abs_builddir=$ac_pwd$ac_dir_suffix 1686# for backward compatibility: 1687ac_top_builddir=$ac_top_build_prefix 1688 1689case $srcdir in 1690 .) # We are building in place. 1691 ac_srcdir=. 1692 ac_top_srcdir=$ac_top_builddir_sub 1693 ac_abs_top_srcdir=$ac_pwd ;; 1694 [\\/]* | ?:[\\/]* ) # Absolute name. 1695 ac_srcdir=$srcdir$ac_dir_suffix; 1696 ac_top_srcdir=$srcdir 1697 ac_abs_top_srcdir=$srcdir ;; 1698 *) # Relative name. 1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1700 ac_top_srcdir=$ac_top_build_prefix$srcdir 1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1702esac 1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1704 1705 cd "$ac_dir" || { ac_status=$?; continue; } 1706 # Check for guested configure. 1707 if test -f "$ac_srcdir/configure.gnu"; then 1708 echo && 1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1710 elif test -f "$ac_srcdir/configure"; then 1711 echo && 1712 $SHELL "$ac_srcdir/configure" --help=recursive 1713 else 1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1715 fi || ac_status=$? 1716 cd "$ac_pwd" || { ac_status=$?; break; } 1717 done 1718fi 1719 1720test -n "$ac_init_help" && exit $ac_status 1721if $ac_init_version; then 1722 cat <<\_ACEOF 1723libX11 configure 1.6.0 1724generated by GNU Autoconf 2.68 1725 1726Copyright (C) 2010 Free Software Foundation, Inc. 1727This configure script is free software; the Free Software Foundation 1728gives unlimited permission to copy, distribute and modify it. 1729_ACEOF 1730 exit 1731fi 1732 1733## ------------------------ ## 1734## Autoconf initialization. ## 1735## ------------------------ ## 1736 1737# ac_fn_c_try_compile LINENO 1738# -------------------------- 1739# Try to compile conftest.$ac_ext, and return whether this succeeded. 1740ac_fn_c_try_compile () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 rm -f conftest.$ac_objext 1744 if { { ac_try="$ac_compile" 1745case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_compile") 2>conftest.err 1752 ac_status=$? 1753 if test -s conftest.err; then 1754 grep -v '^ *+' conftest.err >conftest.er1 1755 cat conftest.er1 >&5 1756 mv -f conftest.er1 conftest.err 1757 fi 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; } && { 1760 test -z "$ac_c_werror_flag" || 1761 test ! -s conftest.err 1762 } && test -s conftest.$ac_objext; then : 1763 ac_retval=0 1764else 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=1 1769fi 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 as_fn_set_status $ac_retval 1772 1773} # ac_fn_c_try_compile 1774 1775# ac_fn_c_try_cpp LINENO 1776# ---------------------- 1777# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1778ac_fn_c_try_cpp () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 if { { ac_try="$ac_cpp conftest.$ac_ext" 1782case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1789 ac_status=$? 1790 if test -s conftest.err; then 1791 grep -v '^ *+' conftest.err >conftest.er1 1792 cat conftest.er1 >&5 1793 mv -f conftest.er1 conftest.err 1794 fi 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; } > conftest.i && { 1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1798 test ! -s conftest.err 1799 }; then : 1800 ac_retval=0 1801else 1802 $as_echo "$as_me: failed program was:" >&5 1803sed 's/^/| /' conftest.$ac_ext >&5 1804 1805 ac_retval=1 1806fi 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 as_fn_set_status $ac_retval 1809 1810} # ac_fn_c_try_cpp 1811 1812# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1813# ------------------------------------------------------- 1814# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1815# the include files in INCLUDES and setting the cache variable VAR 1816# accordingly. 1817ac_fn_c_check_header_mongrel () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 if eval \${$3+:} false; then : 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1822$as_echo_n "checking for $2... " >&6; } 1823if eval \${$3+:} false; then : 1824 $as_echo_n "(cached) " >&6 1825fi 1826eval ac_res=\$$3 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1828$as_echo "$ac_res" >&6; } 1829else 1830 # Is the header compilable? 1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1832$as_echo_n "checking $2 usability... " >&6; } 1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835$4 1836#include <$2> 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO"; then : 1839 ac_header_compiler=yes 1840else 1841 ac_header_compiler=no 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1845$as_echo "$ac_header_compiler" >&6; } 1846 1847# Is the header present? 1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1849$as_echo_n "checking $2 presence... " >&6; } 1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1851/* end confdefs.h. */ 1852#include <$2> 1853_ACEOF 1854if ac_fn_c_try_cpp "$LINENO"; then : 1855 ac_header_preproc=yes 1856else 1857 ac_header_preproc=no 1858fi 1859rm -f conftest.err conftest.i conftest.$ac_ext 1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1861$as_echo "$ac_header_preproc" >&6; } 1862 1863# So? What about this header? 1864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1865 yes:no: ) 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1867$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1870 ;; 1871 no:yes:* ) 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1873$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1875$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1877$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1879$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1881$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1882( $as_echo "## ---------------------------------------------------------------------- ## 1883## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1884## ---------------------------------------------------------------------- ##" 1885 ) | sed "s/^/$as_me: WARNING: /" >&2 1886 ;; 1887esac 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889$as_echo_n "checking for $2... " >&6; } 1890if eval \${$3+:} false; then : 1891 $as_echo_n "(cached) " >&6 1892else 1893 eval "$3=\$ac_header_compiler" 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898fi 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 1901} # ac_fn_c_check_header_mongrel 1902 1903# ac_fn_c_try_run LINENO 1904# ---------------------- 1905# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1906# that executables *can* be run. 1907ac_fn_c_try_run () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 if { { ac_try="$ac_link" 1911case "(($ac_try" in 1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1913 *) ac_try_echo=$ac_try;; 1914esac 1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1916$as_echo "$ac_try_echo"; } >&5 1917 (eval "$ac_link") 2>&5 1918 ac_status=$? 1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1920 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1921 { { case "(($ac_try" in 1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1923 *) ac_try_echo=$ac_try;; 1924esac 1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1926$as_echo "$ac_try_echo"; } >&5 1927 (eval "$ac_try") 2>&5 1928 ac_status=$? 1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1930 test $ac_status = 0; }; }; then : 1931 ac_retval=0 1932else 1933 $as_echo "$as_me: program exited with status $ac_status" >&5 1934 $as_echo "$as_me: failed program was:" >&5 1935sed 's/^/| /' conftest.$ac_ext >&5 1936 1937 ac_retval=$ac_status 1938fi 1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 as_fn_set_status $ac_retval 1942 1943} # ac_fn_c_try_run 1944 1945# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1946# ------------------------------------------------------- 1947# Tests whether HEADER exists and can be compiled using the include files in 1948# INCLUDES, setting the cache variable VAR accordingly. 1949ac_fn_c_check_header_compile () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1953$as_echo_n "checking for $2... " >&6; } 1954if eval \${$3+:} false; then : 1955 $as_echo_n "(cached) " >&6 1956else 1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959$4 1960#include <$2> 1961_ACEOF 1962if ac_fn_c_try_compile "$LINENO"; then : 1963 eval "$3=yes" 1964else 1965 eval "$3=no" 1966fi 1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1968fi 1969eval ac_res=\$$3 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1971$as_echo "$ac_res" >&6; } 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974} # ac_fn_c_check_header_compile 1975 1976# ac_fn_c_try_link LINENO 1977# ----------------------- 1978# Try to link conftest.$ac_ext, and return whether this succeeded. 1979ac_fn_c_try_link () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 rm -f conftest.$ac_objext conftest$ac_exeext 1983 if { { ac_try="$ac_link" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_link") 2>conftest.err 1991 ac_status=$? 1992 if test -s conftest.err; then 1993 grep -v '^ *+' conftest.err >conftest.er1 1994 cat conftest.er1 >&5 1995 mv -f conftest.er1 conftest.err 1996 fi 1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1998 test $ac_status = 0; } && { 1999 test -z "$ac_c_werror_flag" || 2000 test ! -s conftest.err 2001 } && test -s conftest$ac_exeext && { 2002 test "$cross_compiling" = yes || 2003 $as_test_x conftest$ac_exeext 2004 }; then : 2005 ac_retval=0 2006else 2007 $as_echo "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=1 2011fi 2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2014 # interfere with the next link command; also delete a directory that is 2015 # left behind by Apple's compiler. We do this before executing the actions. 2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 as_fn_set_status $ac_retval 2019 2020} # ac_fn_c_try_link 2021 2022# ac_fn_c_check_func LINENO FUNC VAR 2023# ---------------------------------- 2024# Tests whether FUNC exists, setting the cache variable VAR accordingly 2025ac_fn_c_check_func () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2029$as_echo_n "checking for $2... " >&6; } 2030if eval \${$3+:} false; then : 2031 $as_echo_n "(cached) " >&6 2032else 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2036 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2037#define $2 innocuous_$2 2038 2039/* System header to define __stub macros and hopefully few prototypes, 2040 which can conflict with char $2 (); below. 2041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2042 <limits.h> exists even on freestanding compilers. */ 2043 2044#ifdef __STDC__ 2045# include <limits.h> 2046#else 2047# include <assert.h> 2048#endif 2049 2050#undef $2 2051 2052/* Override any GCC internal prototype to avoid an error. 2053 Use char because int might match the return type of a GCC 2054 builtin and then its argument prototype would still apply. */ 2055#ifdef __cplusplus 2056extern "C" 2057#endif 2058char $2 (); 2059/* The GNU C library defines this for functions which it implements 2060 to always fail with ENOSYS. Some functions are actually named 2061 something starting with __ and the normal name is an alias. */ 2062#if defined __stub_$2 || defined __stub___$2 2063choke me 2064#endif 2065 2066int 2067main () 2068{ 2069return $2 (); 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_link "$LINENO"; then : 2075 eval "$3=yes" 2076else 2077 eval "$3=no" 2078fi 2079rm -f core conftest.err conftest.$ac_objext \ 2080 conftest$ac_exeext conftest.$ac_ext 2081fi 2082eval ac_res=\$$3 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2084$as_echo "$ac_res" >&6; } 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2086 2087} # ac_fn_c_check_func 2088 2089# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2090# --------------------------------------------- 2091# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2092# accordingly. 2093ac_fn_c_check_decl () 2094{ 2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096 as_decl_name=`echo $2|sed 's/ *(.*//'` 2097 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2099$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2100if eval \${$3+:} false; then : 2101 $as_echo_n "(cached) " >&6 2102else 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2104/* end confdefs.h. */ 2105$4 2106int 2107main () 2108{ 2109#ifndef $as_decl_name 2110#ifdef __cplusplus 2111 (void) $as_decl_use; 2112#else 2113 (void) $as_decl_name; 2114#endif 2115#endif 2116 2117 ; 2118 return 0; 2119} 2120_ACEOF 2121if ac_fn_c_try_compile "$LINENO"; then : 2122 eval "$3=yes" 2123else 2124 eval "$3=no" 2125fi 2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2127fi 2128eval ac_res=\$$3 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2130$as_echo "$ac_res" >&6; } 2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2132 2133} # ac_fn_c_check_decl 2134 2135# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2136# ---------------------------------------------------- 2137# Tries to find if the field MEMBER exists in type AGGR, after including 2138# INCLUDES, setting cache variable VAR accordingly. 2139ac_fn_c_check_member () 2140{ 2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2143$as_echo_n "checking for $2.$3... " >&6; } 2144if eval \${$4+:} false; then : 2145 $as_echo_n "(cached) " >&6 2146else 2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2148/* end confdefs.h. */ 2149$5 2150int 2151main () 2152{ 2153static $2 ac_aggr; 2154if (ac_aggr.$3) 2155return 0; 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 eval "$4=yes" 2162else 2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2164/* end confdefs.h. */ 2165$5 2166int 2167main () 2168{ 2169static $2 ac_aggr; 2170if (sizeof ac_aggr.$3) 2171return 0; 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176if ac_fn_c_try_compile "$LINENO"; then : 2177 eval "$4=yes" 2178else 2179 eval "$4=no" 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185eval ac_res=\$$4 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2187$as_echo "$ac_res" >&6; } 2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2189 2190} # ac_fn_c_check_member 2191 2192# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2193# ------------------------------------------- 2194# Tests whether TYPE exists after having included INCLUDES, setting cache 2195# variable VAR accordingly. 2196ac_fn_c_check_type () 2197{ 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2200$as_echo_n "checking for $2... " >&6; } 2201if eval \${$3+:} false; then : 2202 $as_echo_n "(cached) " >&6 2203else 2204 eval "$3=no" 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$4 2208int 2209main () 2210{ 2211if (sizeof ($2)) 2212 return 0; 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217if ac_fn_c_try_compile "$LINENO"; then : 2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219/* end confdefs.h. */ 2220$4 2221int 2222main () 2223{ 2224if (sizeof (($2))) 2225 return 0; 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 2232else 2233 eval "$3=yes" 2234fi 2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2236fi 2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2238fi 2239eval ac_res=\$$3 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2241$as_echo "$ac_res" >&6; } 2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2243 2244} # ac_fn_c_check_type 2245cat >config.log <<_ACEOF 2246This file contains any messages produced by compilers while 2247running configure, to aid debugging if configure makes a mistake. 2248 2249It was created by libX11 $as_me 1.6.0, which was 2250generated by GNU Autoconf 2.68. Invocation command line was 2251 2252 $ $0 $@ 2253 2254_ACEOF 2255exec 5>>config.log 2256{ 2257cat <<_ASUNAME 2258## --------- ## 2259## Platform. ## 2260## --------- ## 2261 2262hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2263uname -m = `(uname -m) 2>/dev/null || echo unknown` 2264uname -r = `(uname -r) 2>/dev/null || echo unknown` 2265uname -s = `(uname -s) 2>/dev/null || echo unknown` 2266uname -v = `(uname -v) 2>/dev/null || echo unknown` 2267 2268/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2269/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2270 2271/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2272/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2273/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2274/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2275/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2276/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2277/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2278 2279_ASUNAME 2280 2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2282for as_dir in $PATH 2283do 2284 IFS=$as_save_IFS 2285 test -z "$as_dir" && as_dir=. 2286 $as_echo "PATH: $as_dir" 2287 done 2288IFS=$as_save_IFS 2289 2290} >&5 2291 2292cat >&5 <<_ACEOF 2293 2294 2295## ----------- ## 2296## Core tests. ## 2297## ----------- ## 2298 2299_ACEOF 2300 2301 2302# Keep a trace of the command line. 2303# Strip out --no-create and --no-recursion so they do not pile up. 2304# Strip out --silent because we don't want to record it for future runs. 2305# Also quote any args containing shell meta-characters. 2306# Make two passes to allow for proper duplicate-argument suppression. 2307ac_configure_args= 2308ac_configure_args0= 2309ac_configure_args1= 2310ac_must_keep_next=false 2311for ac_pass in 1 2 2312do 2313 for ac_arg 2314 do 2315 case $ac_arg in 2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2318 | -silent | --silent | --silen | --sile | --sil) 2319 continue ;; 2320 *\'*) 2321 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2322 esac 2323 case $ac_pass in 2324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2325 2) 2326 as_fn_append ac_configure_args1 " '$ac_arg'" 2327 if test $ac_must_keep_next = true; then 2328 ac_must_keep_next=false # Got value, back to normal. 2329 else 2330 case $ac_arg in 2331 *=* | --config-cache | -C | -disable-* | --disable-* \ 2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2334 | -with-* | --with-* | -without-* | --without-* | --x) 2335 case "$ac_configure_args0 " in 2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2337 esac 2338 ;; 2339 -* ) ac_must_keep_next=true ;; 2340 esac 2341 fi 2342 as_fn_append ac_configure_args " '$ac_arg'" 2343 ;; 2344 esac 2345 done 2346done 2347{ ac_configure_args0=; unset ac_configure_args0;} 2348{ ac_configure_args1=; unset ac_configure_args1;} 2349 2350# When interrupted or exit'd, cleanup temporary files, and complete 2351# config.log. We remove comments because anyway the quotes in there 2352# would cause problems or look ugly. 2353# WARNING: Use '\'' to represent an apostrophe within the trap. 2354# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2355trap 'exit_status=$? 2356 # Save into config.log some information that might help in debugging. 2357 { 2358 echo 2359 2360 $as_echo "## ---------------- ## 2361## Cache variables. ## 2362## ---------------- ##" 2363 echo 2364 # The following way of writing the cache mishandles newlines in values, 2365( 2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2367 eval ac_val=\$$ac_var 2368 case $ac_val in #( 2369 *${as_nl}*) 2370 case $ac_var in #( 2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2372$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2373 esac 2374 case $ac_var in #( 2375 _ | IFS | as_nl) ;; #( 2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2377 *) { eval $ac_var=; unset $ac_var;} ;; 2378 esac ;; 2379 esac 2380 done 2381 (set) 2>&1 | 2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2383 *${as_nl}ac_space=\ *) 2384 sed -n \ 2385 "s/'\''/'\''\\\\'\'''\''/g; 2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2387 ;; #( 2388 *) 2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2390 ;; 2391 esac | 2392 sort 2393) 2394 echo 2395 2396 $as_echo "## ----------------- ## 2397## Output variables. ## 2398## ----------------- ##" 2399 echo 2400 for ac_var in $ac_subst_vars 2401 do 2402 eval ac_val=\$$ac_var 2403 case $ac_val in 2404 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2405 esac 2406 $as_echo "$ac_var='\''$ac_val'\''" 2407 done | sort 2408 echo 2409 2410 if test -n "$ac_subst_files"; then 2411 $as_echo "## ------------------- ## 2412## File substitutions. ## 2413## ------------------- ##" 2414 echo 2415 for ac_var in $ac_subst_files 2416 do 2417 eval ac_val=\$$ac_var 2418 case $ac_val in 2419 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2420 esac 2421 $as_echo "$ac_var='\''$ac_val'\''" 2422 done | sort 2423 echo 2424 fi 2425 2426 if test -s confdefs.h; then 2427 $as_echo "## ----------- ## 2428## confdefs.h. ## 2429## ----------- ##" 2430 echo 2431 cat confdefs.h 2432 echo 2433 fi 2434 test "$ac_signal" != 0 && 2435 $as_echo "$as_me: caught signal $ac_signal" 2436 $as_echo "$as_me: exit $exit_status" 2437 } >&5 2438 rm -f core *.core core.conftest.* && 2439 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2440 exit $exit_status 2441' 0 2442for ac_signal in 1 2 13 15; do 2443 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2444done 2445ac_signal=0 2446 2447# confdefs.h avoids OS command line length limits that DEFS can exceed. 2448rm -f -r conftest* confdefs.h 2449 2450$as_echo "/* confdefs.h */" > confdefs.h 2451 2452# Predefined preprocessor variables. 2453 2454cat >>confdefs.h <<_ACEOF 2455#define PACKAGE_NAME "$PACKAGE_NAME" 2456_ACEOF 2457 2458cat >>confdefs.h <<_ACEOF 2459#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2460_ACEOF 2461 2462cat >>confdefs.h <<_ACEOF 2463#define PACKAGE_VERSION "$PACKAGE_VERSION" 2464_ACEOF 2465 2466cat >>confdefs.h <<_ACEOF 2467#define PACKAGE_STRING "$PACKAGE_STRING" 2468_ACEOF 2469 2470cat >>confdefs.h <<_ACEOF 2471#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2472_ACEOF 2473 2474cat >>confdefs.h <<_ACEOF 2475#define PACKAGE_URL "$PACKAGE_URL" 2476_ACEOF 2477 2478 2479# Let the site file select an alternate cache file if it wants to. 2480# Prefer an explicitly selected file to automatically selected ones. 2481ac_site_file1=NONE 2482ac_site_file2=NONE 2483if test -n "$CONFIG_SITE"; then 2484 # We do not want a PATH search for config.site. 2485 case $CONFIG_SITE in #(( 2486 -*) ac_site_file1=./$CONFIG_SITE;; 2487 */*) ac_site_file1=$CONFIG_SITE;; 2488 *) ac_site_file1=./$CONFIG_SITE;; 2489 esac 2490elif test "x$prefix" != xNONE; then 2491 ac_site_file1=$prefix/share/config.site 2492 ac_site_file2=$prefix/etc/config.site 2493else 2494 ac_site_file1=$ac_default_prefix/share/config.site 2495 ac_site_file2=$ac_default_prefix/etc/config.site 2496fi 2497for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2498do 2499 test "x$ac_site_file" = xNONE && continue 2500 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2502$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2503 sed 's/^/| /' "$ac_site_file" >&5 2504 . "$ac_site_file" \ 2505 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2507as_fn_error $? "failed to load site script $ac_site_file 2508See \`config.log' for more details" "$LINENO" 5; } 2509 fi 2510done 2511 2512if test -r "$cache_file"; then 2513 # Some versions of bash will fail to source /dev/null (special files 2514 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2515 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2517$as_echo "$as_me: loading cache $cache_file" >&6;} 2518 case $cache_file in 2519 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2520 *) . "./$cache_file";; 2521 esac 2522 fi 2523else 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2525$as_echo "$as_me: creating cache $cache_file" >&6;} 2526 >$cache_file 2527fi 2528 2529as_fn_append ac_header_list " stdlib.h" 2530as_fn_append ac_header_list " unistd.h" 2531as_fn_append ac_header_list " sys/param.h" 2532# Check that the precious variables saved in the cache have kept the same 2533# value. 2534ac_cache_corrupted=false 2535for ac_var in $ac_precious_vars; do 2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2537 eval ac_new_set=\$ac_env_${ac_var}_set 2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2539 eval ac_new_val=\$ac_env_${ac_var}_value 2540 case $ac_old_set,$ac_new_set in 2541 set,) 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2543$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2544 ac_cache_corrupted=: ;; 2545 ,set) 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2547$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2548 ac_cache_corrupted=: ;; 2549 ,);; 2550 *) 2551 if test "x$ac_old_val" != "x$ac_new_val"; then 2552 # differences in whitespace do not lead to failure. 2553 ac_old_val_w=`echo x $ac_old_val` 2554 ac_new_val_w=`echo x $ac_new_val` 2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2557$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2558 ac_cache_corrupted=: 2559 else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2561$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2562 eval $ac_var=\$ac_old_val 2563 fi 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2565$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2567$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2568 fi;; 2569 esac 2570 # Pass precious variables to config.status. 2571 if test "$ac_new_set" = set; then 2572 case $ac_new_val in 2573 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2574 *) ac_arg=$ac_var=$ac_new_val ;; 2575 esac 2576 case " $ac_configure_args " in 2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2579 esac 2580 fi 2581done 2582if $ac_cache_corrupted; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2586$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2587 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2588fi 2589## -------------------- ## 2590## Main body of script. ## 2591## -------------------- ## 2592 2593ac_ext=c 2594ac_cpp='$CPP $CPPFLAGS' 2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2597ac_compiler_gnu=$ac_cv_c_compiler_gnu 2598 2599 2600 2601ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 2602 2603 2604ac_aux_dir= 2605for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2606 if test -f "$ac_dir/install-sh"; then 2607 ac_aux_dir=$ac_dir 2608 ac_install_sh="$ac_aux_dir/install-sh -c" 2609 break 2610 elif test -f "$ac_dir/install.sh"; then 2611 ac_aux_dir=$ac_dir 2612 ac_install_sh="$ac_aux_dir/install.sh -c" 2613 break 2614 elif test -f "$ac_dir/shtool"; then 2615 ac_aux_dir=$ac_dir 2616 ac_install_sh="$ac_aux_dir/shtool install -c" 2617 break 2618 fi 2619done 2620if test -z "$ac_aux_dir"; then 2621 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2622fi 2623 2624# These three variables are undocumented and unsupported, 2625# and are intended to be withdrawn in a future Autoconf release. 2626# They can cause serious problems if a builder's source tree is in a directory 2627# whose full name contains unusual characters. 2628ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2629ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2630ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2631 2632 2633# Make sure we can run config.sub. 2634$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2635 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2636 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2638$as_echo_n "checking build system type... " >&6; } 2639if ${ac_cv_build+:} false; then : 2640 $as_echo_n "(cached) " >&6 2641else 2642 ac_build_alias=$build_alias 2643test "x$ac_build_alias" = x && 2644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2645test "x$ac_build_alias" = x && 2646 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2647ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2648 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2649 2650fi 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2652$as_echo "$ac_cv_build" >&6; } 2653case $ac_cv_build in 2654*-*-*) ;; 2655*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2656esac 2657build=$ac_cv_build 2658ac_save_IFS=$IFS; IFS='-' 2659set x $ac_cv_build 2660shift 2661build_cpu=$1 2662build_vendor=$2 2663shift; shift 2664# Remember, the first character of IFS is used to create $*, 2665# except with old shells: 2666build_os=$* 2667IFS=$ac_save_IFS 2668case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2669 2670 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2672$as_echo_n "checking host system type... " >&6; } 2673if ${ac_cv_host+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 if test "x$host_alias" = x; then 2677 ac_cv_host=$ac_cv_build 2678else 2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2681fi 2682 2683fi 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2685$as_echo "$ac_cv_host" >&6; } 2686case $ac_cv_host in 2687*-*-*) ;; 2688*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2689esac 2690host=$ac_cv_host 2691ac_save_IFS=$IFS; IFS='-' 2692set x $ac_cv_host 2693shift 2694host_cpu=$1 2695host_vendor=$2 2696shift; shift 2697# Remember, the first character of IFS is used to create $*, 2698# except with old shells: 2699host_os=$* 2700IFS=$ac_save_IFS 2701case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2702 2703 2704# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2705# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2706# to avoid autoconf errors. 2707ac_ext=c 2708ac_cpp='$CPP $CPPFLAGS' 2709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2711ac_compiler_gnu=$ac_cv_c_compiler_gnu 2712if test -n "$ac_tool_prefix"; then 2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2714set dummy ${ac_tool_prefix}gcc; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_CC+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$CC"; then 2721 ac_cv_prog_CC="$CC" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2730 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740CC=$ac_cv_prog_CC 2741if test -n "$CC"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2743$as_echo "$CC" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 2750fi 2751if test -z "$ac_cv_prog_CC"; then 2752 ac_ct_CC=$CC 2753 # Extract the first word of "gcc", so it can be a program name with args. 2754set dummy gcc; ac_word=$2 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2756$as_echo_n "checking for $ac_word... " >&6; } 2757if ${ac_cv_prog_ac_ct_CC+:} false; then : 2758 $as_echo_n "(cached) " >&6 2759else 2760 if test -n "$ac_ct_CC"; then 2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2762else 2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764for as_dir in $PATH 2765do 2766 IFS=$as_save_IFS 2767 test -z "$as_dir" && as_dir=. 2768 for ac_exec_ext in '' $ac_executable_extensions; do 2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2770 ac_cv_prog_ac_ct_CC="gcc" 2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2772 break 2 2773 fi 2774done 2775 done 2776IFS=$as_save_IFS 2777 2778fi 2779fi 2780ac_ct_CC=$ac_cv_prog_ac_ct_CC 2781if test -n "$ac_ct_CC"; then 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2783$as_echo "$ac_ct_CC" >&6; } 2784else 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2786$as_echo "no" >&6; } 2787fi 2788 2789 if test "x$ac_ct_CC" = x; then 2790 CC="" 2791 else 2792 case $cross_compiling:$ac_tool_warned in 2793yes:) 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2796ac_tool_warned=yes ;; 2797esac 2798 CC=$ac_ct_CC 2799 fi 2800else 2801 CC="$ac_cv_prog_CC" 2802fi 2803 2804if test -z "$CC"; then 2805 if test -n "$ac_tool_prefix"; then 2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2807set dummy ${ac_tool_prefix}cc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if ${ac_cv_prog_CC+:} false; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2823 ac_cv_prog_CC="${ac_tool_prefix}cc" 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833CC=$ac_cv_prog_CC 2834if test -n "$CC"; then 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2836$as_echo "$CC" >&6; } 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840fi 2841 2842 2843 fi 2844fi 2845if test -z "$CC"; then 2846 # Extract the first word of "cc", so it can be a program name with args. 2847set dummy cc; ac_word=$2 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if ${ac_cv_prog_CC+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$CC"; then 2854 ac_cv_prog_CC="$CC" # Let the user override the test. 2855else 2856 ac_prog_rejected=no 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2865 ac_prog_rejected=yes 2866 continue 2867 fi 2868 ac_cv_prog_CC="cc" 2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876if test $ac_prog_rejected = yes; then 2877 # We found a bogon in the path, so make sure we never use it. 2878 set dummy $ac_cv_prog_CC 2879 shift 2880 if test $# != 0; then 2881 # We chose a different compiler from the bogus one. 2882 # However, it has the same basename, so the bogon will be chosen 2883 # first if we set CC to just the basename; use the full file name. 2884 shift 2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2886 fi 2887fi 2888fi 2889fi 2890CC=$ac_cv_prog_CC 2891if test -n "$CC"; then 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2893$as_echo "$CC" >&6; } 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897fi 2898 2899 2900fi 2901if test -z "$CC"; then 2902 if test -n "$ac_tool_prefix"; then 2903 for ac_prog in cl.exe 2904 do 2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2906set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908$as_echo_n "checking for $ac_word... " >&6; } 2909if ${ac_cv_prog_CC+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if test -n "$CC"; then 2913 ac_cv_prog_CC="$CC" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932CC=$ac_cv_prog_CC 2933if test -n "$CC"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2935$as_echo "$CC" >&6; } 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939fi 2940 2941 2942 test -n "$CC" && break 2943 done 2944fi 2945if test -z "$CC"; then 2946 ac_ct_CC=$CC 2947 for ac_prog in cl.exe 2948do 2949 # Extract the first word of "$ac_prog", so it can be a program name with args. 2950set dummy $ac_prog; ac_word=$2 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2952$as_echo_n "checking for $ac_word... " >&6; } 2953if ${ac_cv_prog_ac_ct_CC+:} false; then : 2954 $as_echo_n "(cached) " >&6 2955else 2956 if test -n "$ac_ct_CC"; then 2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2958else 2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960for as_dir in $PATH 2961do 2962 IFS=$as_save_IFS 2963 test -z "$as_dir" && as_dir=. 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2966 ac_cv_prog_ac_ct_CC="$ac_prog" 2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2968 break 2 2969 fi 2970done 2971 done 2972IFS=$as_save_IFS 2973 2974fi 2975fi 2976ac_ct_CC=$ac_cv_prog_ac_ct_CC 2977if test -n "$ac_ct_CC"; then 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2979$as_echo "$ac_ct_CC" >&6; } 2980else 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982$as_echo "no" >&6; } 2983fi 2984 2985 2986 test -n "$ac_ct_CC" && break 2987done 2988 2989 if test "x$ac_ct_CC" = x; then 2990 CC="" 2991 else 2992 case $cross_compiling:$ac_tool_warned in 2993yes:) 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2996ac_tool_warned=yes ;; 2997esac 2998 CC=$ac_ct_CC 2999 fi 3000fi 3001 3002fi 3003 3004 3005test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3007as_fn_error $? "no acceptable C compiler found in \$PATH 3008See \`config.log' for more details" "$LINENO" 5; } 3009 3010# Provide some information about the compiler. 3011$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3012set X $ac_compile 3013ac_compiler=$2 3014for ac_option in --version -v -V -qversion; do 3015 { { ac_try="$ac_compiler $ac_option >&5" 3016case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3021$as_echo "$ac_try_echo"; } >&5 3022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3023 ac_status=$? 3024 if test -s conftest.err; then 3025 sed '10a\ 3026... rest of stderr output deleted ... 3027 10q' conftest.err >conftest.er1 3028 cat conftest.er1 >&5 3029 fi 3030 rm -f conftest.er1 conftest.err 3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3032 test $ac_status = 0; } 3033done 3034 3035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3036/* end confdefs.h. */ 3037 3038int 3039main () 3040{ 3041 3042 ; 3043 return 0; 3044} 3045_ACEOF 3046ac_clean_files_save=$ac_clean_files 3047ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3048# Try to create an executable without -o first, disregard a.out. 3049# It will help us diagnose broken compilers, and finding out an intuition 3050# of exeext. 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3052$as_echo_n "checking whether the C compiler works... " >&6; } 3053ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3054 3055# The possible output files: 3056ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3057 3058ac_rmfiles= 3059for ac_file in $ac_files 3060do 3061 case $ac_file in 3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3063 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3064 esac 3065done 3066rm -f $ac_rmfiles 3067 3068if { { ac_try="$ac_link_default" 3069case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3074$as_echo "$ac_try_echo"; } >&5 3075 (eval "$ac_link_default") 2>&5 3076 ac_status=$? 3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3078 test $ac_status = 0; }; then : 3079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3080# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3081# in a Makefile. We should not override ac_cv_exeext if it was cached, 3082# so that the user can short-circuit this test for compilers unknown to 3083# Autoconf. 3084for ac_file in $ac_files '' 3085do 3086 test -f "$ac_file" || continue 3087 case $ac_file in 3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3089 ;; 3090 [ab].out ) 3091 # We found the default executable, but exeext='' is most 3092 # certainly right. 3093 break;; 3094 *.* ) 3095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3096 then :; else 3097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3098 fi 3099 # We set ac_cv_exeext here because the later test for it is not 3100 # safe: cross compilers may not add the suffix if given an `-o' 3101 # argument, so we may need to know it at that point already. 3102 # Even if this section looks crufty: it has the advantage of 3103 # actually working. 3104 break;; 3105 * ) 3106 break;; 3107 esac 3108done 3109test "$ac_cv_exeext" = no && ac_cv_exeext= 3110 3111else 3112 ac_file='' 3113fi 3114if test -z "$ac_file"; then : 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116$as_echo "no" >&6; } 3117$as_echo "$as_me: failed program was:" >&5 3118sed 's/^/| /' conftest.$ac_ext >&5 3119 3120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3122as_fn_error 77 "C compiler cannot create executables 3123See \`config.log' for more details" "$LINENO" 5; } 3124else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3126$as_echo "yes" >&6; } 3127fi 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3129$as_echo_n "checking for C compiler default output file name... " >&6; } 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3131$as_echo "$ac_file" >&6; } 3132ac_exeext=$ac_cv_exeext 3133 3134rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3135ac_clean_files=$ac_clean_files_save 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3137$as_echo_n "checking for suffix of executables... " >&6; } 3138if { { ac_try="$ac_link" 3139case "(($ac_try" in 3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3141 *) ac_try_echo=$ac_try;; 3142esac 3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3144$as_echo "$ac_try_echo"; } >&5 3145 (eval "$ac_link") 2>&5 3146 ac_status=$? 3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3148 test $ac_status = 0; }; then : 3149 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3150# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3151# work properly (i.e., refer to `conftest.exe'), while it won't with 3152# `rm'. 3153for ac_file in conftest.exe conftest conftest.*; do 3154 test -f "$ac_file" || continue 3155 case $ac_file in 3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3158 break;; 3159 * ) break;; 3160 esac 3161done 3162else 3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3165as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3166See \`config.log' for more details" "$LINENO" 5; } 3167fi 3168rm -f conftest conftest$ac_cv_exeext 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3170$as_echo "$ac_cv_exeext" >&6; } 3171 3172rm -f conftest.$ac_ext 3173EXEEXT=$ac_cv_exeext 3174ac_exeext=$EXEEXT 3175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3176/* end confdefs.h. */ 3177#include <stdio.h> 3178int 3179main () 3180{ 3181FILE *f = fopen ("conftest.out", "w"); 3182 return ferror (f) || fclose (f) != 0; 3183 3184 ; 3185 return 0; 3186} 3187_ACEOF 3188ac_clean_files="$ac_clean_files conftest.out" 3189# Check that the compiler produces executables we can run. If not, either 3190# the compiler is broken, or we cross compile. 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3192$as_echo_n "checking whether we are cross compiling... " >&6; } 3193if test "$cross_compiling" != yes; then 3194 { { ac_try="$ac_link" 3195case "(($ac_try" in 3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3197 *) ac_try_echo=$ac_try;; 3198esac 3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3200$as_echo "$ac_try_echo"; } >&5 3201 (eval "$ac_link") 2>&5 3202 ac_status=$? 3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3204 test $ac_status = 0; } 3205 if { ac_try='./conftest$ac_cv_exeext' 3206 { { case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3211$as_echo "$ac_try_echo"; } >&5 3212 (eval "$ac_try") 2>&5 3213 ac_status=$? 3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3215 test $ac_status = 0; }; }; then 3216 cross_compiling=no 3217 else 3218 if test "$cross_compiling" = maybe; then 3219 cross_compiling=yes 3220 else 3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3223as_fn_error $? "cannot run C compiled programs. 3224If you meant to cross compile, use \`--host'. 3225See \`config.log' for more details" "$LINENO" 5; } 3226 fi 3227 fi 3228fi 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3230$as_echo "$cross_compiling" >&6; } 3231 3232rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3233ac_clean_files=$ac_clean_files_save 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3235$as_echo_n "checking for suffix of object files... " >&6; } 3236if ${ac_cv_objext+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3240/* end confdefs.h. */ 3241 3242int 3243main () 3244{ 3245 3246 ; 3247 return 0; 3248} 3249_ACEOF 3250rm -f conftest.o conftest.obj 3251if { { ac_try="$ac_compile" 3252case "(($ac_try" in 3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3254 *) ac_try_echo=$ac_try;; 3255esac 3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3257$as_echo "$ac_try_echo"; } >&5 3258 (eval "$ac_compile") 2>&5 3259 ac_status=$? 3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3261 test $ac_status = 0; }; then : 3262 for ac_file in conftest.o conftest.obj conftest.*; do 3263 test -f "$ac_file" || continue; 3264 case $ac_file in 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3267 break;; 3268 esac 3269done 3270else 3271 $as_echo "$as_me: failed program was:" >&5 3272sed 's/^/| /' conftest.$ac_ext >&5 3273 3274{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3276as_fn_error $? "cannot compute suffix of object files: cannot compile 3277See \`config.log' for more details" "$LINENO" 5; } 3278fi 3279rm -f conftest.$ac_cv_objext conftest.$ac_ext 3280fi 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3282$as_echo "$ac_cv_objext" >&6; } 3283OBJEXT=$ac_cv_objext 3284ac_objext=$OBJEXT 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3286$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3287if ${ac_cv_c_compiler_gnu+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3291/* end confdefs.h. */ 3292 3293int 3294main () 3295{ 3296#ifndef __GNUC__ 3297 choke me 3298#endif 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304if ac_fn_c_try_compile "$LINENO"; then : 3305 ac_compiler_gnu=yes 3306else 3307 ac_compiler_gnu=no 3308fi 3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3310ac_cv_c_compiler_gnu=$ac_compiler_gnu 3311 3312fi 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3314$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3315if test $ac_compiler_gnu = yes; then 3316 GCC=yes 3317else 3318 GCC= 3319fi 3320ac_test_CFLAGS=${CFLAGS+set} 3321ac_save_CFLAGS=$CFLAGS 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3323$as_echo_n "checking whether $CC accepts -g... " >&6; } 3324if ${ac_cv_prog_cc_g+:} false; then : 3325 $as_echo_n "(cached) " >&6 3326else 3327 ac_save_c_werror_flag=$ac_c_werror_flag 3328 ac_c_werror_flag=yes 3329 ac_cv_prog_cc_g=no 3330 CFLAGS="-g" 3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332/* end confdefs.h. */ 3333 3334int 3335main () 3336{ 3337 3338 ; 3339 return 0; 3340} 3341_ACEOF 3342if ac_fn_c_try_compile "$LINENO"; then : 3343 ac_cv_prog_cc_g=yes 3344else 3345 CFLAGS="" 3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3347/* end confdefs.h. */ 3348 3349int 3350main () 3351{ 3352 3353 ; 3354 return 0; 3355} 3356_ACEOF 3357if ac_fn_c_try_compile "$LINENO"; then : 3358 3359else 3360 ac_c_werror_flag=$ac_save_c_werror_flag 3361 CFLAGS="-g" 3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3363/* end confdefs.h. */ 3364 3365int 3366main () 3367{ 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373if ac_fn_c_try_compile "$LINENO"; then : 3374 ac_cv_prog_cc_g=yes 3375fi 3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3377fi 3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3379fi 3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3381 ac_c_werror_flag=$ac_save_c_werror_flag 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3384$as_echo "$ac_cv_prog_cc_g" >&6; } 3385if test "$ac_test_CFLAGS" = set; then 3386 CFLAGS=$ac_save_CFLAGS 3387elif test $ac_cv_prog_cc_g = yes; then 3388 if test "$GCC" = yes; then 3389 CFLAGS="-g -O2" 3390 else 3391 CFLAGS="-g" 3392 fi 3393else 3394 if test "$GCC" = yes; then 3395 CFLAGS="-O2" 3396 else 3397 CFLAGS= 3398 fi 3399fi 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3401$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3402if ${ac_cv_prog_cc_c89+:} false; then : 3403 $as_echo_n "(cached) " >&6 3404else 3405 ac_cv_prog_cc_c89=no 3406ac_save_CC=$CC 3407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409#include <stdarg.h> 3410#include <stdio.h> 3411#include <sys/types.h> 3412#include <sys/stat.h> 3413/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3414struct buf { int x; }; 3415FILE * (*rcsopen) (struct buf *, struct stat *, int); 3416static char *e (p, i) 3417 char **p; 3418 int i; 3419{ 3420 return p[i]; 3421} 3422static char *f (char * (*g) (char **, int), char **p, ...) 3423{ 3424 char *s; 3425 va_list v; 3426 va_start (v,p); 3427 s = g (p, va_arg (v,int)); 3428 va_end (v); 3429 return s; 3430} 3431 3432/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3433 function prototypes and stuff, but not '\xHH' hex character constants. 3434 These don't provoke an error unfortunately, instead are silently treated 3435 as 'x'. The following induces an error, until -std is added to get 3436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3437 array size at least. It's necessary to write '\x00'==0 to get something 3438 that's true only with -std. */ 3439int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3440 3441/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3442 inside strings and character constants. */ 3443#define FOO(x) 'x' 3444int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3445 3446int test (int i, double x); 3447struct s1 {int (*f) (int a);}; 3448struct s2 {int (*f) (double a);}; 3449int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3450int argc; 3451char **argv; 3452int 3453main () 3454{ 3455return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3456 ; 3457 return 0; 3458} 3459_ACEOF 3460for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3461 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3462do 3463 CC="$ac_save_CC $ac_arg" 3464 if ac_fn_c_try_compile "$LINENO"; then : 3465 ac_cv_prog_cc_c89=$ac_arg 3466fi 3467rm -f core conftest.err conftest.$ac_objext 3468 test "x$ac_cv_prog_cc_c89" != "xno" && break 3469done 3470rm -f conftest.$ac_ext 3471CC=$ac_save_CC 3472 3473fi 3474# AC_CACHE_VAL 3475case "x$ac_cv_prog_cc_c89" in 3476 x) 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3478$as_echo "none needed" >&6; } ;; 3479 xno) 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3481$as_echo "unsupported" >&6; } ;; 3482 *) 3483 CC="$CC $ac_cv_prog_cc_c89" 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3485$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3486esac 3487if test "x$ac_cv_prog_cc_c89" != xno; then : 3488 3489fi 3490 3491ac_ext=c 3492ac_cpp='$CPP $CPPFLAGS' 3493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3495ac_compiler_gnu=$ac_cv_c_compiler_gnu 3496 3497 3498ac_ext=c 3499ac_cpp='$CPP $CPPFLAGS' 3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3502ac_compiler_gnu=$ac_cv_c_compiler_gnu 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3504$as_echo_n "checking how to run the C preprocessor... " >&6; } 3505# On Suns, sometimes $CPP names a directory. 3506if test -n "$CPP" && test -d "$CPP"; then 3507 CPP= 3508fi 3509if test -z "$CPP"; then 3510 if ${ac_cv_prog_CPP+:} false; then : 3511 $as_echo_n "(cached) " >&6 3512else 3513 # Double quotes because CPP needs to be expanded 3514 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3515 do 3516 ac_preproc_ok=false 3517for ac_c_preproc_warn_flag in '' yes 3518do 3519 # Use a header file that comes with gcc, so configuring glibc 3520 # with a fresh cross-compiler works. 3521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3522 # <limits.h> exists even on freestanding compilers. 3523 # On the NeXT, cc -E runs the code through the compiler's parser, 3524 # not just through cpp. "Syntax error" is here to catch this case. 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527#ifdef __STDC__ 3528# include <limits.h> 3529#else 3530# include <assert.h> 3531#endif 3532 Syntax error 3533_ACEOF 3534if ac_fn_c_try_cpp "$LINENO"; then : 3535 3536else 3537 # Broken: fails on valid input. 3538continue 3539fi 3540rm -f conftest.err conftest.i conftest.$ac_ext 3541 3542 # OK, works on sane cases. Now check whether nonexistent headers 3543 # can be detected and how. 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545/* end confdefs.h. */ 3546#include <ac_nonexistent.h> 3547_ACEOF 3548if ac_fn_c_try_cpp "$LINENO"; then : 3549 # Broken: success on invalid input. 3550continue 3551else 3552 # Passes both tests. 3553ac_preproc_ok=: 3554break 3555fi 3556rm -f conftest.err conftest.i conftest.$ac_ext 3557 3558done 3559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3560rm -f conftest.i conftest.err conftest.$ac_ext 3561if $ac_preproc_ok; then : 3562 break 3563fi 3564 3565 done 3566 ac_cv_prog_CPP=$CPP 3567 3568fi 3569 CPP=$ac_cv_prog_CPP 3570else 3571 ac_cv_prog_CPP=$CPP 3572fi 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3574$as_echo "$CPP" >&6; } 3575ac_preproc_ok=false 3576for ac_c_preproc_warn_flag in '' yes 3577do 3578 # Use a header file that comes with gcc, so configuring glibc 3579 # with a fresh cross-compiler works. 3580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3581 # <limits.h> exists even on freestanding compilers. 3582 # On the NeXT, cc -E runs the code through the compiler's parser, 3583 # not just through cpp. "Syntax error" is here to catch this case. 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586#ifdef __STDC__ 3587# include <limits.h> 3588#else 3589# include <assert.h> 3590#endif 3591 Syntax error 3592_ACEOF 3593if ac_fn_c_try_cpp "$LINENO"; then : 3594 3595else 3596 # Broken: fails on valid input. 3597continue 3598fi 3599rm -f conftest.err conftest.i conftest.$ac_ext 3600 3601 # OK, works on sane cases. Now check whether nonexistent headers 3602 # can be detected and how. 3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3604/* end confdefs.h. */ 3605#include <ac_nonexistent.h> 3606_ACEOF 3607if ac_fn_c_try_cpp "$LINENO"; then : 3608 # Broken: success on invalid input. 3609continue 3610else 3611 # Passes both tests. 3612ac_preproc_ok=: 3613break 3614fi 3615rm -f conftest.err conftest.i conftest.$ac_ext 3616 3617done 3618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3619rm -f conftest.i conftest.err conftest.$ac_ext 3620if $ac_preproc_ok; then : 3621 3622else 3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3625as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3626See \`config.log' for more details" "$LINENO" 5; } 3627fi 3628 3629ac_ext=c 3630ac_cpp='$CPP $CPPFLAGS' 3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3633ac_compiler_gnu=$ac_cv_c_compiler_gnu 3634 3635 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3637$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3638if ${ac_cv_path_GREP+:} false; then : 3639 $as_echo_n "(cached) " >&6 3640else 3641 if test -z "$GREP"; then 3642 ac_path_GREP_found=false 3643 # Loop through the user's path and test for each of PROGNAME-LIST 3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3646do 3647 IFS=$as_save_IFS 3648 test -z "$as_dir" && as_dir=. 3649 for ac_prog in grep ggrep; do 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3651 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3652 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3653# Check for GNU ac_path_GREP and select it if it is found. 3654 # Check for GNU $ac_path_GREP 3655case `"$ac_path_GREP" --version 2>&1` in 3656*GNU*) 3657 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3658*) 3659 ac_count=0 3660 $as_echo_n 0123456789 >"conftest.in" 3661 while : 3662 do 3663 cat "conftest.in" "conftest.in" >"conftest.tmp" 3664 mv "conftest.tmp" "conftest.in" 3665 cp "conftest.in" "conftest.nl" 3666 $as_echo 'GREP' >> "conftest.nl" 3667 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3669 as_fn_arith $ac_count + 1 && ac_count=$as_val 3670 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3671 # Best one so far, save it but keep looking for a better one 3672 ac_cv_path_GREP="$ac_path_GREP" 3673 ac_path_GREP_max=$ac_count 3674 fi 3675 # 10*(2^10) chars as input seems more than enough 3676 test $ac_count -gt 10 && break 3677 done 3678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3679esac 3680 3681 $ac_path_GREP_found && break 3 3682 done 3683 done 3684 done 3685IFS=$as_save_IFS 3686 if test -z "$ac_cv_path_GREP"; then 3687 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3688 fi 3689else 3690 ac_cv_path_GREP=$GREP 3691fi 3692 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3695$as_echo "$ac_cv_path_GREP" >&6; } 3696 GREP="$ac_cv_path_GREP" 3697 3698 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3700$as_echo_n "checking for egrep... " >&6; } 3701if ${ac_cv_path_EGREP+:} false; then : 3702 $as_echo_n "(cached) " >&6 3703else 3704 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3705 then ac_cv_path_EGREP="$GREP -E" 3706 else 3707 if test -z "$EGREP"; then 3708 ac_path_EGREP_found=false 3709 # Loop through the user's path and test for each of PROGNAME-LIST 3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3711for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3712do 3713 IFS=$as_save_IFS 3714 test -z "$as_dir" && as_dir=. 3715 for ac_prog in egrep; do 3716 for ac_exec_ext in '' $ac_executable_extensions; do 3717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3718 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3719# Check for GNU ac_path_EGREP and select it if it is found. 3720 # Check for GNU $ac_path_EGREP 3721case `"$ac_path_EGREP" --version 2>&1` in 3722*GNU*) 3723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3724*) 3725 ac_count=0 3726 $as_echo_n 0123456789 >"conftest.in" 3727 while : 3728 do 3729 cat "conftest.in" "conftest.in" >"conftest.tmp" 3730 mv "conftest.tmp" "conftest.in" 3731 cp "conftest.in" "conftest.nl" 3732 $as_echo 'EGREP' >> "conftest.nl" 3733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3735 as_fn_arith $ac_count + 1 && ac_count=$as_val 3736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3737 # Best one so far, save it but keep looking for a better one 3738 ac_cv_path_EGREP="$ac_path_EGREP" 3739 ac_path_EGREP_max=$ac_count 3740 fi 3741 # 10*(2^10) chars as input seems more than enough 3742 test $ac_count -gt 10 && break 3743 done 3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3745esac 3746 3747 $ac_path_EGREP_found && break 3 3748 done 3749 done 3750 done 3751IFS=$as_save_IFS 3752 if test -z "$ac_cv_path_EGREP"; then 3753 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3754 fi 3755else 3756 ac_cv_path_EGREP=$EGREP 3757fi 3758 3759 fi 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3762$as_echo "$ac_cv_path_EGREP" >&6; } 3763 EGREP="$ac_cv_path_EGREP" 3764 3765 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3767$as_echo_n "checking for ANSI C header files... " >&6; } 3768if ${ac_cv_header_stdc+:} false; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3772/* end confdefs.h. */ 3773#include <stdlib.h> 3774#include <stdarg.h> 3775#include <string.h> 3776#include <float.h> 3777 3778int 3779main () 3780{ 3781 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786if ac_fn_c_try_compile "$LINENO"; then : 3787 ac_cv_header_stdc=yes 3788else 3789 ac_cv_header_stdc=no 3790fi 3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3792 3793if test $ac_cv_header_stdc = yes; then 3794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797#include <string.h> 3798 3799_ACEOF 3800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3801 $EGREP "memchr" >/dev/null 2>&1; then : 3802 3803else 3804 ac_cv_header_stdc=no 3805fi 3806rm -f conftest* 3807 3808fi 3809 3810if test $ac_cv_header_stdc = yes; then 3811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3813/* end confdefs.h. */ 3814#include <stdlib.h> 3815 3816_ACEOF 3817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3818 $EGREP "free" >/dev/null 2>&1; then : 3819 3820else 3821 ac_cv_header_stdc=no 3822fi 3823rm -f conftest* 3824 3825fi 3826 3827if test $ac_cv_header_stdc = yes; then 3828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3829 if test "$cross_compiling" = yes; then : 3830 : 3831else 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834#include <ctype.h> 3835#include <stdlib.h> 3836#if ((' ' & 0x0FF) == 0x020) 3837# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3838# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3839#else 3840# define ISLOWER(c) \ 3841 (('a' <= (c) && (c) <= 'i') \ 3842 || ('j' <= (c) && (c) <= 'r') \ 3843 || ('s' <= (c) && (c) <= 'z')) 3844# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3845#endif 3846 3847#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3848int 3849main () 3850{ 3851 int i; 3852 for (i = 0; i < 256; i++) 3853 if (XOR (islower (i), ISLOWER (i)) 3854 || toupper (i) != TOUPPER (i)) 3855 return 2; 3856 return 0; 3857} 3858_ACEOF 3859if ac_fn_c_try_run "$LINENO"; then : 3860 3861else 3862 ac_cv_header_stdc=no 3863fi 3864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3865 conftest.$ac_objext conftest.beam conftest.$ac_ext 3866fi 3867 3868fi 3869fi 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3871$as_echo "$ac_cv_header_stdc" >&6; } 3872if test $ac_cv_header_stdc = yes; then 3873 3874$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3875 3876fi 3877 3878# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3879for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3880 inttypes.h stdint.h unistd.h 3881do : 3882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3883ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3884" 3885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3886 cat >>confdefs.h <<_ACEOF 3887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3888_ACEOF 3889 3890fi 3891 3892done 3893 3894 3895 3896 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3897if test "x$ac_cv_header_minix_config_h" = xyes; then : 3898 MINIX=yes 3899else 3900 MINIX= 3901fi 3902 3903 3904 if test "$MINIX" = yes; then 3905 3906$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3907 3908 3909$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3910 3911 3912$as_echo "#define _MINIX 1" >>confdefs.h 3913 3914 fi 3915 3916 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3918$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3919if ${ac_cv_safe_to_define___extensions__+:} false; then : 3920 $as_echo_n "(cached) " >&6 3921else 3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3923/* end confdefs.h. */ 3924 3925# define __EXTENSIONS__ 1 3926 $ac_includes_default 3927int 3928main () 3929{ 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_cv_safe_to_define___extensions__=yes 3937else 3938 ac_cv_safe_to_define___extensions__=no 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3941fi 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3943$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3944 test $ac_cv_safe_to_define___extensions__ = yes && 3945 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3946 3947 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3948 3949 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3950 3951 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3952 3953 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3954 3955 3956 3957# Initialize Automake 3958am__api_version='1.13' 3959 3960# Find a good install program. We prefer a C program (faster), 3961# so one script is as good as another. But avoid the broken or 3962# incompatible versions: 3963# SysV /etc/install, /usr/sbin/install 3964# SunOS /usr/etc/install 3965# IRIX /sbin/install 3966# AIX /bin/install 3967# AmigaOS /C/install, which installs bootblocks on floppy discs 3968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3969# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3971# OS/2's system install, which has a completely different semantic 3972# ./install, which can be erroneously created by make from ./install.sh. 3973# Reject install programs that cannot install multiple files. 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3975$as_echo_n "checking for a BSD-compatible install... " >&6; } 3976if test -z "$INSTALL"; then 3977if ${ac_cv_path_install+:} false; then : 3978 $as_echo_n "(cached) " >&6 3979else 3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3981for as_dir in $PATH 3982do 3983 IFS=$as_save_IFS 3984 test -z "$as_dir" && as_dir=. 3985 # Account for people who put trailing slashes in PATH elements. 3986case $as_dir/ in #(( 3987 ./ | .// | /[cC]/* | \ 3988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3989 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3990 /usr/ucb/* ) ;; 3991 *) 3992 # OSF1 and SCO ODT 3.0 have their own names for install. 3993 # Don't use installbsd from OSF since it installs stuff as root 3994 # by default. 3995 for ac_prog in ginstall scoinst install; do 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3998 if test $ac_prog = install && 3999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4000 # AIX install. It has an incompatible calling convention. 4001 : 4002 elif test $ac_prog = install && 4003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4004 # program-specific install script used by HP pwplus--don't use. 4005 : 4006 else 4007 rm -rf conftest.one conftest.two conftest.dir 4008 echo one > conftest.one 4009 echo two > conftest.two 4010 mkdir conftest.dir 4011 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4012 test -s conftest.one && test -s conftest.two && 4013 test -s conftest.dir/conftest.one && 4014 test -s conftest.dir/conftest.two 4015 then 4016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4017 break 3 4018 fi 4019 fi 4020 fi 4021 done 4022 done 4023 ;; 4024esac 4025 4026 done 4027IFS=$as_save_IFS 4028 4029rm -rf conftest.one conftest.two conftest.dir 4030 4031fi 4032 if test "${ac_cv_path_install+set}" = set; then 4033 INSTALL=$ac_cv_path_install 4034 else 4035 # As a last resort, use the slow shell script. Don't cache a 4036 # value for INSTALL within a source directory, because that will 4037 # break other packages using the cache if that directory is 4038 # removed, or if the value is a relative name. 4039 INSTALL=$ac_install_sh 4040 fi 4041fi 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4043$as_echo "$INSTALL" >&6; } 4044 4045# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4046# It thinks the first close brace ends the variable substitution. 4047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4048 4049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4050 4051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4052 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4054$as_echo_n "checking whether build environment is sane... " >&6; } 4055# Reject unsafe characters in $srcdir or the absolute working directory 4056# name. Accept space and tab only in the latter. 4057am_lf=' 4058' 4059case `pwd` in 4060 *[\\\"\#\$\&\'\`$am_lf]*) 4061 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4062esac 4063case $srcdir in 4064 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4065 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4066esac 4067 4068# Do 'set' in a subshell so we don't clobber the current shell's 4069# arguments. Must try -L first in case configure is actually a 4070# symlink; some systems play weird games with the mod time of symlinks 4071# (eg FreeBSD returns the mod time of the symlink's containing 4072# directory). 4073if ( 4074 am_has_slept=no 4075 for am_try in 1 2; do 4076 echo "timestamp, slept: $am_has_slept" > conftest.file 4077 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4078 if test "$*" = "X"; then 4079 # -L didn't work. 4080 set X `ls -t "$srcdir/configure" conftest.file` 4081 fi 4082 if test "$*" != "X $srcdir/configure conftest.file" \ 4083 && test "$*" != "X conftest.file $srcdir/configure"; then 4084 4085 # If neither matched, then we have a broken ls. This can happen 4086 # if, for instance, CONFIG_SHELL is bash and it inherits a 4087 # broken ls alias from the environment. This has actually 4088 # happened. Such a system could not be considered "sane". 4089 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4090 alias in your environment" "$LINENO" 5 4091 fi 4092 if test "$2" = conftest.file || test $am_try -eq 2; then 4093 break 4094 fi 4095 # Just in case. 4096 sleep 1 4097 am_has_slept=yes 4098 done 4099 test "$2" = conftest.file 4100 ) 4101then 4102 # Ok. 4103 : 4104else 4105 as_fn_error $? "newly created file is older than distributed files! 4106Check your system clock" "$LINENO" 5 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4109$as_echo "yes" >&6; } 4110# If we didn't sleep, we still need to ensure time stamps of config.status and 4111# generated files are strictly newer. 4112am_sleep_pid= 4113if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4114 ( sleep 1 ) & 4115 am_sleep_pid=$! 4116fi 4117 4118rm -f conftest.file 4119 4120test "$program_prefix" != NONE && 4121 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4122# Use a double $ so make ignores it. 4123test "$program_suffix" != NONE && 4124 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4125# Double any \ or $. 4126# By default was `s,x,x', remove it if useless. 4127ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4128program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4129 4130# expand $ac_aux_dir to an absolute path 4131am_aux_dir=`cd $ac_aux_dir && pwd` 4132 4133if test x"${MISSING+set}" != xset; then 4134 case $am_aux_dir in 4135 *\ * | *\ *) 4136 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4137 *) 4138 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4139 esac 4140fi 4141# Use eval to expand $SHELL 4142if eval "$MISSING --is-lightweight"; then 4143 am_missing_run="$MISSING " 4144else 4145 am_missing_run= 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4147$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4148fi 4149 4150if test x"${install_sh}" != xset; then 4151 case $am_aux_dir in 4152 *\ * | *\ *) 4153 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4154 *) 4155 install_sh="\${SHELL} $am_aux_dir/install-sh" 4156 esac 4157fi 4158 4159# Installed binaries are usually stripped using 'strip' when the user 4160# run "make install-strip". However 'strip' might not be the right 4161# tool to use in cross-compilation environments, therefore Automake 4162# will honor the 'STRIP' environment variable to overrule this program. 4163if test "$cross_compiling" != no; then 4164 if test -n "$ac_tool_prefix"; then 4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4166set dummy ${ac_tool_prefix}strip; ac_word=$2 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4168$as_echo_n "checking for $ac_word... " >&6; } 4169if ${ac_cv_prog_STRIP+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 if test -n "$STRIP"; then 4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4174else 4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176for as_dir in $PATH 4177do 4178 IFS=$as_save_IFS 4179 test -z "$as_dir" && as_dir=. 4180 for ac_exec_ext in '' $ac_executable_extensions; do 4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4184 break 2 4185 fi 4186done 4187 done 4188IFS=$as_save_IFS 4189 4190fi 4191fi 4192STRIP=$ac_cv_prog_STRIP 4193if test -n "$STRIP"; then 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4195$as_echo "$STRIP" >&6; } 4196else 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4198$as_echo "no" >&6; } 4199fi 4200 4201 4202fi 4203if test -z "$ac_cv_prog_STRIP"; then 4204 ac_ct_STRIP=$STRIP 4205 # Extract the first word of "strip", so it can be a program name with args. 4206set dummy strip; ac_word=$2 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4208$as_echo_n "checking for $ac_word... " >&6; } 4209if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4210 $as_echo_n "(cached) " >&6 4211else 4212 if test -n "$ac_ct_STRIP"; then 4213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4214else 4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4216for as_dir in $PATH 4217do 4218 IFS=$as_save_IFS 4219 test -z "$as_dir" && as_dir=. 4220 for ac_exec_ext in '' $ac_executable_extensions; do 4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4222 ac_cv_prog_ac_ct_STRIP="strip" 4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4224 break 2 4225 fi 4226done 4227 done 4228IFS=$as_save_IFS 4229 4230fi 4231fi 4232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4233if test -n "$ac_ct_STRIP"; then 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4235$as_echo "$ac_ct_STRIP" >&6; } 4236else 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4238$as_echo "no" >&6; } 4239fi 4240 4241 if test "x$ac_ct_STRIP" = x; then 4242 STRIP=":" 4243 else 4244 case $cross_compiling:$ac_tool_warned in 4245yes:) 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4248ac_tool_warned=yes ;; 4249esac 4250 STRIP=$ac_ct_STRIP 4251 fi 4252else 4253 STRIP="$ac_cv_prog_STRIP" 4254fi 4255 4256fi 4257INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4258 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4260$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4261if test -z "$MKDIR_P"; then 4262 if ${ac_cv_path_mkdir+:} false; then : 4263 $as_echo_n "(cached) " >&6 4264else 4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4266for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4267do 4268 IFS=$as_save_IFS 4269 test -z "$as_dir" && as_dir=. 4270 for ac_prog in mkdir gmkdir; do 4271 for ac_exec_ext in '' $ac_executable_extensions; do 4272 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4273 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4274 'mkdir (GNU coreutils) '* | \ 4275 'mkdir (coreutils) '* | \ 4276 'mkdir (fileutils) '4.1*) 4277 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4278 break 3;; 4279 esac 4280 done 4281 done 4282 done 4283IFS=$as_save_IFS 4284 4285fi 4286 4287 test -d ./--version && rmdir ./--version 4288 if test "${ac_cv_path_mkdir+set}" = set; then 4289 MKDIR_P="$ac_cv_path_mkdir -p" 4290 else 4291 # As a last resort, use the slow shell script. Don't cache a 4292 # value for MKDIR_P within a source directory, because that will 4293 # break other packages using the cache if that directory is 4294 # removed, or if the value is a relative name. 4295 MKDIR_P="$ac_install_sh -d" 4296 fi 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4299$as_echo "$MKDIR_P" >&6; } 4300 4301for ac_prog in gawk mawk nawk awk 4302do 4303 # Extract the first word of "$ac_prog", so it can be a program name with args. 4304set dummy $ac_prog; ac_word=$2 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4306$as_echo_n "checking for $ac_word... " >&6; } 4307if ${ac_cv_prog_AWK+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309else 4310 if test -n "$AWK"; then 4311 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4312else 4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4314for as_dir in $PATH 4315do 4316 IFS=$as_save_IFS 4317 test -z "$as_dir" && as_dir=. 4318 for ac_exec_ext in '' $ac_executable_extensions; do 4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4320 ac_cv_prog_AWK="$ac_prog" 4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4322 break 2 4323 fi 4324done 4325 done 4326IFS=$as_save_IFS 4327 4328fi 4329fi 4330AWK=$ac_cv_prog_AWK 4331if test -n "$AWK"; then 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4333$as_echo "$AWK" >&6; } 4334else 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4336$as_echo "no" >&6; } 4337fi 4338 4339 4340 test -n "$AWK" && break 4341done 4342 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4344$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4345set x ${MAKE-make} 4346ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4347if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 cat >conftest.make <<\_ACEOF 4351SHELL = /bin/sh 4352all: 4353 @echo '@@@%%%=$(MAKE)=@@@%%%' 4354_ACEOF 4355# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4356case `${MAKE-make} -f conftest.make 2>/dev/null` in 4357 *@@@%%%=?*=@@@%%%*) 4358 eval ac_cv_prog_make_${ac_make}_set=yes;; 4359 *) 4360 eval ac_cv_prog_make_${ac_make}_set=no;; 4361esac 4362rm -f conftest.make 4363fi 4364if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4366$as_echo "yes" >&6; } 4367 SET_MAKE= 4368else 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4370$as_echo "no" >&6; } 4371 SET_MAKE="MAKE=${MAKE-make}" 4372fi 4373 4374rm -rf .tst 2>/dev/null 4375mkdir .tst 2>/dev/null 4376if test -d .tst; then 4377 am__leading_dot=. 4378else 4379 am__leading_dot=_ 4380fi 4381rmdir .tst 2>/dev/null 4382 4383DEPDIR="${am__leading_dot}deps" 4384 4385ac_config_commands="$ac_config_commands depfiles" 4386 4387 4388am_make=${MAKE-make} 4389cat > confinc << 'END' 4390am__doit: 4391 @echo this is the am__doit target 4392.PHONY: am__doit 4393END 4394# If we don't find an include directive, just comment out the code. 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4396$as_echo_n "checking for style of include used by $am_make... " >&6; } 4397am__include="#" 4398am__quote= 4399_am_result=none 4400# First try GNU make style include. 4401echo "include confinc" > confmf 4402# Ignore all kinds of additional output from 'make'. 4403case `$am_make -s -f confmf 2> /dev/null` in #( 4404*the\ am__doit\ target*) 4405 am__include=include 4406 am__quote= 4407 _am_result=GNU 4408 ;; 4409esac 4410# Now try BSD make style include. 4411if test "$am__include" = "#"; then 4412 echo '.include "confinc"' > confmf 4413 case `$am_make -s -f confmf 2> /dev/null` in #( 4414 *the\ am__doit\ target*) 4415 am__include=.include 4416 am__quote="\"" 4417 _am_result=BSD 4418 ;; 4419 esac 4420fi 4421 4422 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4424$as_echo "$_am_result" >&6; } 4425rm -f confinc confmf 4426 4427# Check whether --enable-dependency-tracking was given. 4428if test "${enable_dependency_tracking+set}" = set; then : 4429 enableval=$enable_dependency_tracking; 4430fi 4431 4432if test "x$enable_dependency_tracking" != xno; then 4433 am_depcomp="$ac_aux_dir/depcomp" 4434 AMDEPBACKSLASH='\' 4435 am__nodep='_no' 4436fi 4437 if test "x$enable_dependency_tracking" != xno; then 4438 AMDEP_TRUE= 4439 AMDEP_FALSE='#' 4440else 4441 AMDEP_TRUE='#' 4442 AMDEP_FALSE= 4443fi 4444 4445 4446# Check whether --enable-silent-rules was given. 4447if test "${enable_silent_rules+set}" = set; then : 4448 enableval=$enable_silent_rules; 4449fi 4450 4451case $enable_silent_rules in # ((( 4452 yes) AM_DEFAULT_VERBOSITY=0;; 4453 no) AM_DEFAULT_VERBOSITY=1;; 4454 *) AM_DEFAULT_VERBOSITY=1;; 4455esac 4456am_make=${MAKE-make} 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4458$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4459if ${am_cv_make_support_nested_variables+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 if $as_echo 'TRUE=$(BAR$(V)) 4463BAR0=false 4464BAR1=true 4465V=1 4466am__doit: 4467 @$(TRUE) 4468.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4469 am_cv_make_support_nested_variables=yes 4470else 4471 am_cv_make_support_nested_variables=no 4472fi 4473fi 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4475$as_echo "$am_cv_make_support_nested_variables" >&6; } 4476if test $am_cv_make_support_nested_variables = yes; then 4477 AM_V='$(V)' 4478 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4479else 4480 AM_V=$AM_DEFAULT_VERBOSITY 4481 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4482fi 4483AM_BACKSLASH='\' 4484 4485if test "`cd $srcdir && pwd`" != "`pwd`"; then 4486 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4487 # is not polluted with repeated "-I." 4488 am__isrc=' -I$(srcdir)' 4489 # test to see if srcdir already configured 4490 if test -f $srcdir/config.status; then 4491 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4492 fi 4493fi 4494 4495# test whether we have cygpath 4496if test -z "$CYGPATH_W"; then 4497 if (cygpath --version) >/dev/null 2>/dev/null; then 4498 CYGPATH_W='cygpath -w' 4499 else 4500 CYGPATH_W=echo 4501 fi 4502fi 4503 4504 4505# Define the identity of the package. 4506 PACKAGE='libX11' 4507 VERSION='1.6.0' 4508 4509 4510cat >>confdefs.h <<_ACEOF 4511#define PACKAGE "$PACKAGE" 4512_ACEOF 4513 4514 4515cat >>confdefs.h <<_ACEOF 4516#define VERSION "$VERSION" 4517_ACEOF 4518 4519# Some tools Automake needs. 4520 4521ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4522 4523 4524AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4525 4526 4527AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4528 4529 4530AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4531 4532 4533MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4534 4535# For better backward compatibility. To be removed once Automake 1.9.x 4536# dies out for good. For more background, see: 4537# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4538# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4539mkdir_p='$(MKDIR_P)' 4540 4541# We need awk for the "check" target. The system "awk" is bad on 4542# some platforms. 4543# Always define AMTAR for backward compatibility. Yes, it's still used 4544# in the wild :-( We should find a proper way to deprecate it ... 4545AMTAR='$${TAR-tar}' 4546 4547 4548# We'll loop over all known methods to create a tar archive until one works. 4549_am_tools='gnutar pax cpio none' 4550 4551am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4552 4553 4554 4555 4556 4557depcc="$CC" am_compiler_list= 4558 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4560$as_echo_n "checking dependency style of $depcc... " >&6; } 4561if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4562 $as_echo_n "(cached) " >&6 4563else 4564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4565 # We make a subdir and do the tests there. Otherwise we can end up 4566 # making bogus files that we don't know about and never remove. For 4567 # instance it was reported that on HP-UX the gcc test will end up 4568 # making a dummy file named 'D' -- because '-MD' means "put the output 4569 # in D". 4570 rm -rf conftest.dir 4571 mkdir conftest.dir 4572 # Copy depcomp to subdir because otherwise we won't find it if we're 4573 # using a relative directory. 4574 cp "$am_depcomp" conftest.dir 4575 cd conftest.dir 4576 # We will build objects and dependencies in a subdirectory because 4577 # it helps to detect inapplicable dependency modes. For instance 4578 # both Tru64's cc and ICC support -MD to output dependencies as a 4579 # side effect of compilation, but ICC will put the dependencies in 4580 # the current directory while Tru64 will put them in the object 4581 # directory. 4582 mkdir sub 4583 4584 am_cv_CC_dependencies_compiler_type=none 4585 if test "$am_compiler_list" = ""; then 4586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4587 fi 4588 am__universal=false 4589 case " $depcc " in #( 4590 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4591 esac 4592 4593 for depmode in $am_compiler_list; do 4594 # Setup a source with many dependencies, because some compilers 4595 # like to wrap large dependency lists on column 80 (with \), and 4596 # we should not choose a depcomp mode which is confused by this. 4597 # 4598 # We need to recreate these files for each test, as the compiler may 4599 # overwrite some of them when testing with obscure command lines. 4600 # This happens at least with the AIX C compiler. 4601 : > sub/conftest.c 4602 for i in 1 2 3 4 5 6; do 4603 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4604 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4605 # Solaris 10 /bin/sh. 4606 echo '/* dummy */' > sub/conftst$i.h 4607 done 4608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4609 4610 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4611 # mode. It turns out that the SunPro C++ compiler does not properly 4612 # handle '-M -o', and we need to detect this. Also, some Intel 4613 # versions had trouble with output in subdirs. 4614 am__obj=sub/conftest.${OBJEXT-o} 4615 am__minus_obj="-o $am__obj" 4616 case $depmode in 4617 gcc) 4618 # This depmode causes a compiler race in universal mode. 4619 test "$am__universal" = false || continue 4620 ;; 4621 nosideeffect) 4622 # After this tag, mechanisms are not by side-effect, so they'll 4623 # only be used when explicitly requested. 4624 if test "x$enable_dependency_tracking" = xyes; then 4625 continue 4626 else 4627 break 4628 fi 4629 ;; 4630 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4631 # This compiler won't grok '-c -o', but also, the minuso test has 4632 # not run yet. These depmodes are late enough in the game, and 4633 # so weak that their functioning should not be impacted. 4634 am__obj=conftest.${OBJEXT-o} 4635 am__minus_obj= 4636 ;; 4637 none) break ;; 4638 esac 4639 if depmode=$depmode \ 4640 source=sub/conftest.c object=$am__obj \ 4641 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4642 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4643 >/dev/null 2>conftest.err && 4644 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4646 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4648 # icc doesn't choke on unknown options, it will just issue warnings 4649 # or remarks (even with -Werror). So we grep stderr for any message 4650 # that says an option was ignored or not supported. 4651 # When given -MP, icc 7.0 and 7.1 complain thusly: 4652 # icc: Command line warning: ignoring option '-M'; no argument required 4653 # The diagnosis changed in icc 8.0: 4654 # icc: Command line remark: option '-MP' not supported 4655 if (grep 'ignoring option' conftest.err || 4656 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4657 am_cv_CC_dependencies_compiler_type=$depmode 4658 break 4659 fi 4660 fi 4661 done 4662 4663 cd .. 4664 rm -rf conftest.dir 4665else 4666 am_cv_CC_dependencies_compiler_type=none 4667fi 4668 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4671$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4672CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4673 4674 if 4675 test "x$enable_dependency_tracking" != xno \ 4676 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4677 am__fastdepCC_TRUE= 4678 am__fastdepCC_FALSE='#' 4679else 4680 am__fastdepCC_TRUE='#' 4681 am__fastdepCC_FALSE= 4682fi 4683 4684 4685 4686 4687# Initialize libtool 4688case `pwd` in 4689 *\ * | *\ *) 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4691$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4692esac 4693 4694 4695 4696macro_version='2.4.2' 4697macro_revision='1.3337' 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711ltmain="$ac_aux_dir/ltmain.sh" 4712 4713# Backslashify metacharacters that are still active within 4714# double-quoted strings. 4715sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4716 4717# Same as above, but do not quote variable references. 4718double_quote_subst='s/\(["`\\]\)/\\\1/g' 4719 4720# Sed substitution to delay expansion of an escaped shell variable in a 4721# double_quote_subst'ed string. 4722delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4723 4724# Sed substitution to delay expansion of an escaped single quote. 4725delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4726 4727# Sed substitution to avoid accidental globbing in evaled expressions 4728no_glob_subst='s/\*/\\\*/g' 4729 4730ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4731ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4732ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4733 4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4735$as_echo_n "checking how to print strings... " >&6; } 4736# Test print first, because it will be a builtin if present. 4737if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4738 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4739 ECHO='print -r --' 4740elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4741 ECHO='printf %s\n' 4742else 4743 # Use this function as a fallback that always works. 4744 func_fallback_echo () 4745 { 4746 eval 'cat <<_LTECHO_EOF 4747$1 4748_LTECHO_EOF' 4749 } 4750 ECHO='func_fallback_echo' 4751fi 4752 4753# func_echo_all arg... 4754# Invoke $ECHO with all args, space-separated. 4755func_echo_all () 4756{ 4757 $ECHO "" 4758} 4759 4760case "$ECHO" in 4761 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4762$as_echo "printf" >&6; } ;; 4763 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4764$as_echo "print -r" >&6; } ;; 4765 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4766$as_echo "cat" >&6; } ;; 4767esac 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4783$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4784if ${ac_cv_path_SED+:} false; then : 4785 $as_echo_n "(cached) " >&6 4786else 4787 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4788 for ac_i in 1 2 3 4 5 6 7; do 4789 ac_script="$ac_script$as_nl$ac_script" 4790 done 4791 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4792 { ac_script=; unset ac_script;} 4793 if test -z "$SED"; then 4794 ac_path_SED_found=false 4795 # Loop through the user's path and test for each of PROGNAME-LIST 4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4797for as_dir in $PATH 4798do 4799 IFS=$as_save_IFS 4800 test -z "$as_dir" && as_dir=. 4801 for ac_prog in sed gsed; do 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4804 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4805# Check for GNU ac_path_SED and select it if it is found. 4806 # Check for GNU $ac_path_SED 4807case `"$ac_path_SED" --version 2>&1` in 4808*GNU*) 4809 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4810*) 4811 ac_count=0 4812 $as_echo_n 0123456789 >"conftest.in" 4813 while : 4814 do 4815 cat "conftest.in" "conftest.in" >"conftest.tmp" 4816 mv "conftest.tmp" "conftest.in" 4817 cp "conftest.in" "conftest.nl" 4818 $as_echo '' >> "conftest.nl" 4819 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4821 as_fn_arith $ac_count + 1 && ac_count=$as_val 4822 if test $ac_count -gt ${ac_path_SED_max-0}; then 4823 # Best one so far, save it but keep looking for a better one 4824 ac_cv_path_SED="$ac_path_SED" 4825 ac_path_SED_max=$ac_count 4826 fi 4827 # 10*(2^10) chars as input seems more than enough 4828 test $ac_count -gt 10 && break 4829 done 4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4831esac 4832 4833 $ac_path_SED_found && break 3 4834 done 4835 done 4836 done 4837IFS=$as_save_IFS 4838 if test -z "$ac_cv_path_SED"; then 4839 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4840 fi 4841else 4842 ac_cv_path_SED=$SED 4843fi 4844 4845fi 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4847$as_echo "$ac_cv_path_SED" >&6; } 4848 SED="$ac_cv_path_SED" 4849 rm -f conftest.sed 4850 4851test -z "$SED" && SED=sed 4852Xsed="$SED -e 1s/^X//" 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4865$as_echo_n "checking for fgrep... " >&6; } 4866if ${ac_cv_path_FGREP+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4870 then ac_cv_path_FGREP="$GREP -F" 4871 else 4872 if test -z "$FGREP"; then 4873 ac_path_FGREP_found=false 4874 # Loop through the user's path and test for each of PROGNAME-LIST 4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_prog in fgrep; do 4881 for ac_exec_ext in '' $ac_executable_extensions; do 4882 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4883 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4884# Check for GNU ac_path_FGREP and select it if it is found. 4885 # Check for GNU $ac_path_FGREP 4886case `"$ac_path_FGREP" --version 2>&1` in 4887*GNU*) 4888 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4889*) 4890 ac_count=0 4891 $as_echo_n 0123456789 >"conftest.in" 4892 while : 4893 do 4894 cat "conftest.in" "conftest.in" >"conftest.tmp" 4895 mv "conftest.tmp" "conftest.in" 4896 cp "conftest.in" "conftest.nl" 4897 $as_echo 'FGREP' >> "conftest.nl" 4898 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4900 as_fn_arith $ac_count + 1 && ac_count=$as_val 4901 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4902 # Best one so far, save it but keep looking for a better one 4903 ac_cv_path_FGREP="$ac_path_FGREP" 4904 ac_path_FGREP_max=$ac_count 4905 fi 4906 # 10*(2^10) chars as input seems more than enough 4907 test $ac_count -gt 10 && break 4908 done 4909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4910esac 4911 4912 $ac_path_FGREP_found && break 3 4913 done 4914 done 4915 done 4916IFS=$as_save_IFS 4917 if test -z "$ac_cv_path_FGREP"; then 4918 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4919 fi 4920else 4921 ac_cv_path_FGREP=$FGREP 4922fi 4923 4924 fi 4925fi 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4927$as_echo "$ac_cv_path_FGREP" >&6; } 4928 FGREP="$ac_cv_path_FGREP" 4929 4930 4931test -z "$GREP" && GREP=grep 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951# Check whether --with-gnu-ld was given. 4952if test "${with_gnu_ld+set}" = set; then : 4953 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4954else 4955 with_gnu_ld=no 4956fi 4957 4958ac_prog=ld 4959if test "$GCC" = yes; then 4960 # Check if gcc -print-prog-name=ld gives a path. 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4962$as_echo_n "checking for ld used by $CC... " >&6; } 4963 case $host in 4964 *-*-mingw*) 4965 # gcc leaves a trailing carriage return which upsets mingw 4966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4967 *) 4968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4969 esac 4970 case $ac_prog in 4971 # Accept absolute paths. 4972 [\\/]* | ?:[\\/]*) 4973 re_direlt='/[^/][^/]*/\.\./' 4974 # Canonicalize the pathname of ld 4975 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4976 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4977 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4978 done 4979 test -z "$LD" && LD="$ac_prog" 4980 ;; 4981 "") 4982 # If it fails, then pretend we aren't using GCC. 4983 ac_prog=ld 4984 ;; 4985 *) 4986 # If it is relative, then search for the first ld in PATH. 4987 with_gnu_ld=unknown 4988 ;; 4989 esac 4990elif test "$with_gnu_ld" = yes; then 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4992$as_echo_n "checking for GNU ld... " >&6; } 4993else 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4995$as_echo_n "checking for non-GNU ld... " >&6; } 4996fi 4997if ${lt_cv_path_LD+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 if test -z "$LD"; then 5001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5002 for ac_dir in $PATH; do 5003 IFS="$lt_save_ifs" 5004 test -z "$ac_dir" && ac_dir=. 5005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5006 lt_cv_path_LD="$ac_dir/$ac_prog" 5007 # Check to see if the program is GNU ld. I'd rather use --version, 5008 # but apparently some variants of GNU ld only accept -v. 5009 # Break only if it was the GNU/non-GNU ld that we prefer. 5010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5011 *GNU* | *'with BFD'*) 5012 test "$with_gnu_ld" != no && break 5013 ;; 5014 *) 5015 test "$with_gnu_ld" != yes && break 5016 ;; 5017 esac 5018 fi 5019 done 5020 IFS="$lt_save_ifs" 5021else 5022 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5023fi 5024fi 5025 5026LD="$lt_cv_path_LD" 5027if test -n "$LD"; then 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5029$as_echo "$LD" >&6; } 5030else 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5032$as_echo "no" >&6; } 5033fi 5034test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5036$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5037if ${lt_cv_prog_gnu_ld+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5041case `$LD -v 2>&1 </dev/null` in 5042*GNU* | *'with BFD'*) 5043 lt_cv_prog_gnu_ld=yes 5044 ;; 5045*) 5046 lt_cv_prog_gnu_ld=no 5047 ;; 5048esac 5049fi 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5051$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5052with_gnu_ld=$lt_cv_prog_gnu_ld 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5063$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5064if ${lt_cv_path_NM+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 if test -n "$NM"; then 5068 # Let the user override the test. 5069 lt_cv_path_NM="$NM" 5070else 5071 lt_nm_to_check="${ac_tool_prefix}nm" 5072 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5073 lt_nm_to_check="$lt_nm_to_check nm" 5074 fi 5075 for lt_tmp_nm in $lt_nm_to_check; do 5076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5077 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5078 IFS="$lt_save_ifs" 5079 test -z "$ac_dir" && ac_dir=. 5080 tmp_nm="$ac_dir/$lt_tmp_nm" 5081 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5082 # Check to see if the nm accepts a BSD-compat flag. 5083 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5084 # nm: unknown option "B" ignored 5085 # Tru64's nm complains that /dev/null is an invalid object file 5086 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5087 */dev/null* | *'Invalid file or object type'*) 5088 lt_cv_path_NM="$tmp_nm -B" 5089 break 5090 ;; 5091 *) 5092 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5093 */dev/null*) 5094 lt_cv_path_NM="$tmp_nm -p" 5095 break 5096 ;; 5097 *) 5098 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5099 continue # so that we can try to find one that supports BSD flags 5100 ;; 5101 esac 5102 ;; 5103 esac 5104 fi 5105 done 5106 IFS="$lt_save_ifs" 5107 done 5108 : ${lt_cv_path_NM=no} 5109fi 5110fi 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5112$as_echo "$lt_cv_path_NM" >&6; } 5113if test "$lt_cv_path_NM" != "no"; then 5114 NM="$lt_cv_path_NM" 5115else 5116 # Didn't find any BSD compatible name lister, look for dumpbin. 5117 if test -n "$DUMPBIN"; then : 5118 # Let the user override the test. 5119 else 5120 if test -n "$ac_tool_prefix"; then 5121 for ac_prog in dumpbin "link -dump" 5122 do 5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5124set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5126$as_echo_n "checking for $ac_word... " >&6; } 5127if ${ac_cv_prog_DUMPBIN+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 if test -n "$DUMPBIN"; then 5131 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5132else 5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5134for as_dir in $PATH 5135do 5136 IFS=$as_save_IFS 5137 test -z "$as_dir" && as_dir=. 5138 for ac_exec_ext in '' $ac_executable_extensions; do 5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5140 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5142 break 2 5143 fi 5144done 5145 done 5146IFS=$as_save_IFS 5147 5148fi 5149fi 5150DUMPBIN=$ac_cv_prog_DUMPBIN 5151if test -n "$DUMPBIN"; then 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5153$as_echo "$DUMPBIN" >&6; } 5154else 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5156$as_echo "no" >&6; } 5157fi 5158 5159 5160 test -n "$DUMPBIN" && break 5161 done 5162fi 5163if test -z "$DUMPBIN"; then 5164 ac_ct_DUMPBIN=$DUMPBIN 5165 for ac_prog in dumpbin "link -dump" 5166do 5167 # Extract the first word of "$ac_prog", so it can be a program name with args. 5168set dummy $ac_prog; ac_word=$2 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5170$as_echo_n "checking for $ac_word... " >&6; } 5171if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 if test -n "$ac_ct_DUMPBIN"; then 5175 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5176else 5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5178for as_dir in $PATH 5179do 5180 IFS=$as_save_IFS 5181 test -z "$as_dir" && as_dir=. 5182 for ac_exec_ext in '' $ac_executable_extensions; do 5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5184 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5186 break 2 5187 fi 5188done 5189 done 5190IFS=$as_save_IFS 5191 5192fi 5193fi 5194ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5195if test -n "$ac_ct_DUMPBIN"; then 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5197$as_echo "$ac_ct_DUMPBIN" >&6; } 5198else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5200$as_echo "no" >&6; } 5201fi 5202 5203 5204 test -n "$ac_ct_DUMPBIN" && break 5205done 5206 5207 if test "x$ac_ct_DUMPBIN" = x; then 5208 DUMPBIN=":" 5209 else 5210 case $cross_compiling:$ac_tool_warned in 5211yes:) 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5214ac_tool_warned=yes ;; 5215esac 5216 DUMPBIN=$ac_ct_DUMPBIN 5217 fi 5218fi 5219 5220 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5221 *COFF*) 5222 DUMPBIN="$DUMPBIN -symbols" 5223 ;; 5224 *) 5225 DUMPBIN=: 5226 ;; 5227 esac 5228 fi 5229 5230 if test "$DUMPBIN" != ":"; then 5231 NM="$DUMPBIN" 5232 fi 5233fi 5234test -z "$NM" && NM=nm 5235 5236 5237 5238 5239 5240 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5242$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5243if ${lt_cv_nm_interface+:} false; then : 5244 $as_echo_n "(cached) " >&6 5245else 5246 lt_cv_nm_interface="BSD nm" 5247 echo "int some_variable = 0;" > conftest.$ac_ext 5248 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5249 (eval "$ac_compile" 2>conftest.err) 5250 cat conftest.err >&5 5251 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5252 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5253 cat conftest.err >&5 5254 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5255 cat conftest.out >&5 5256 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5257 lt_cv_nm_interface="MS dumpbin" 5258 fi 5259 rm -f conftest* 5260fi 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5262$as_echo "$lt_cv_nm_interface" >&6; } 5263 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5265$as_echo_n "checking whether ln -s works... " >&6; } 5266LN_S=$as_ln_s 5267if test "$LN_S" = "ln -s"; then 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5269$as_echo "yes" >&6; } 5270else 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5272$as_echo "no, using $LN_S" >&6; } 5273fi 5274 5275# find the maximum length of command line arguments 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5277$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5278if ${lt_cv_sys_max_cmd_len+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 i=0 5282 teststring="ABCD" 5283 5284 case $build_os in 5285 msdosdjgpp*) 5286 # On DJGPP, this test can blow up pretty badly due to problems in libc 5287 # (any single argument exceeding 2000 bytes causes a buffer overrun 5288 # during glob expansion). Even if it were fixed, the result of this 5289 # check would be larger than it should be. 5290 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5291 ;; 5292 5293 gnu*) 5294 # Under GNU Hurd, this test is not required because there is 5295 # no limit to the length of command line arguments. 5296 # Libtool will interpret -1 as no limit whatsoever 5297 lt_cv_sys_max_cmd_len=-1; 5298 ;; 5299 5300 cygwin* | mingw* | cegcc*) 5301 # On Win9x/ME, this test blows up -- it succeeds, but takes 5302 # about 5 minutes as the teststring grows exponentially. 5303 # Worse, since 9x/ME are not pre-emptively multitasking, 5304 # you end up with a "frozen" computer, even though with patience 5305 # the test eventually succeeds (with a max line length of 256k). 5306 # Instead, let's just punt: use the minimum linelength reported by 5307 # all of the supported platforms: 8192 (on NT/2K/XP). 5308 lt_cv_sys_max_cmd_len=8192; 5309 ;; 5310 5311 mint*) 5312 # On MiNT this can take a long time and run out of memory. 5313 lt_cv_sys_max_cmd_len=8192; 5314 ;; 5315 5316 amigaos*) 5317 # On AmigaOS with pdksh, this test takes hours, literally. 5318 # So we just punt and use a minimum line length of 8192. 5319 lt_cv_sys_max_cmd_len=8192; 5320 ;; 5321 5322 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5323 # This has been around since 386BSD, at least. Likely further. 5324 if test -x /sbin/sysctl; then 5325 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5326 elif test -x /usr/sbin/sysctl; then 5327 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5328 else 5329 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5330 fi 5331 # And add a safety zone 5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5334 ;; 5335 5336 interix*) 5337 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5338 lt_cv_sys_max_cmd_len=196608 5339 ;; 5340 5341 os2*) 5342 # The test takes a long time on OS/2. 5343 lt_cv_sys_max_cmd_len=8192 5344 ;; 5345 5346 osf*) 5347 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5348 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5349 # nice to cause kernel panics so lets avoid the loop below. 5350 # First set a reasonable default. 5351 lt_cv_sys_max_cmd_len=16384 5352 # 5353 if test -x /sbin/sysconfig; then 5354 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5355 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5356 esac 5357 fi 5358 ;; 5359 sco3.2v5*) 5360 lt_cv_sys_max_cmd_len=102400 5361 ;; 5362 sysv5* | sco5v6* | sysv4.2uw2*) 5363 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5364 if test -n "$kargmax"; then 5365 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5366 else 5367 lt_cv_sys_max_cmd_len=32768 5368 fi 5369 ;; 5370 *) 5371 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5372 if test -n "$lt_cv_sys_max_cmd_len"; then 5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5375 else 5376 # Make teststring a little bigger before we do anything with it. 5377 # a 1K string should be a reasonable start. 5378 for i in 1 2 3 4 5 6 7 8 ; do 5379 teststring=$teststring$teststring 5380 done 5381 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5382 # If test is not a shell built-in, we'll probably end up computing a 5383 # maximum length that is only half of the actual maximum length, but 5384 # we can't tell. 5385 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5386 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5387 test $i != 17 # 1/2 MB should be enough 5388 do 5389 i=`expr $i + 1` 5390 teststring=$teststring$teststring 5391 done 5392 # Only check the string length outside the loop. 5393 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5394 teststring= 5395 # Add a significant safety factor because C++ compilers can tack on 5396 # massive amounts of additional arguments before passing them to the 5397 # linker. It appears as though 1/2 is a usable value. 5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5399 fi 5400 ;; 5401 esac 5402 5403fi 5404 5405if test -n $lt_cv_sys_max_cmd_len ; then 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5407$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5408else 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5410$as_echo "none" >&6; } 5411fi 5412max_cmd_len=$lt_cv_sys_max_cmd_len 5413 5414 5415 5416 5417 5418 5419: ${CP="cp -f"} 5420: ${MV="mv -f"} 5421: ${RM="rm -f"} 5422 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5424$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5425# Try some XSI features 5426xsi_shell=no 5427( _lt_dummy="a/b/c" 5428 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5429 = c,a/b,b/c, \ 5430 && eval 'test $(( 1 + 1 )) -eq 2 \ 5431 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5432 && xsi_shell=yes 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5434$as_echo "$xsi_shell" >&6; } 5435 5436 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5438$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5439lt_shell_append=no 5440( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5441 >/dev/null 2>&1 \ 5442 && lt_shell_append=yes 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5444$as_echo "$lt_shell_append" >&6; } 5445 5446 5447if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5448 lt_unset=unset 5449else 5450 lt_unset=false 5451fi 5452 5453 5454 5455 5456 5457# test EBCDIC or ASCII 5458case `echo X|tr X '\101'` in 5459 A) # ASCII based system 5460 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5461 lt_SP2NL='tr \040 \012' 5462 lt_NL2SP='tr \015\012 \040\040' 5463 ;; 5464 *) # EBCDIC based system 5465 lt_SP2NL='tr \100 \n' 5466 lt_NL2SP='tr \r\n \100\100' 5467 ;; 5468esac 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5479$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5480if ${lt_cv_to_host_file_cmd+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 case $host in 5484 *-*-mingw* ) 5485 case $build in 5486 *-*-mingw* ) # actually msys 5487 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5488 ;; 5489 *-*-cygwin* ) 5490 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5491 ;; 5492 * ) # otherwise, assume *nix 5493 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5494 ;; 5495 esac 5496 ;; 5497 *-*-cygwin* ) 5498 case $build in 5499 *-*-mingw* ) # actually msys 5500 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5501 ;; 5502 *-*-cygwin* ) 5503 lt_cv_to_host_file_cmd=func_convert_file_noop 5504 ;; 5505 * ) # otherwise, assume *nix 5506 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5507 ;; 5508 esac 5509 ;; 5510 * ) # unhandled hosts (and "normal" native builds) 5511 lt_cv_to_host_file_cmd=func_convert_file_noop 5512 ;; 5513esac 5514 5515fi 5516 5517to_host_file_cmd=$lt_cv_to_host_file_cmd 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5519$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5520 5521 5522 5523 5524 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5526$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5527if ${lt_cv_to_tool_file_cmd+:} false; then : 5528 $as_echo_n "(cached) " >&6 5529else 5530 #assume ordinary cross tools, or native build. 5531lt_cv_to_tool_file_cmd=func_convert_file_noop 5532case $host in 5533 *-*-mingw* ) 5534 case $build in 5535 *-*-mingw* ) # actually msys 5536 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5537 ;; 5538 esac 5539 ;; 5540esac 5541 5542fi 5543 5544to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5546$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5547 5548 5549 5550 5551 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5553$as_echo_n "checking for $LD option to reload object files... " >&6; } 5554if ${lt_cv_ld_reload_flag+:} false; then : 5555 $as_echo_n "(cached) " >&6 5556else 5557 lt_cv_ld_reload_flag='-r' 5558fi 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5560$as_echo "$lt_cv_ld_reload_flag" >&6; } 5561reload_flag=$lt_cv_ld_reload_flag 5562case $reload_flag in 5563"" | " "*) ;; 5564*) reload_flag=" $reload_flag" ;; 5565esac 5566reload_cmds='$LD$reload_flag -o $output$reload_objs' 5567case $host_os in 5568 cygwin* | mingw* | pw32* | cegcc*) 5569 if test "$GCC" != yes; then 5570 reload_cmds=false 5571 fi 5572 ;; 5573 darwin*) 5574 if test "$GCC" = yes; then 5575 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5576 else 5577 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5578 fi 5579 ;; 5580esac 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590if test -n "$ac_tool_prefix"; then 5591 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5592set dummy ${ac_tool_prefix}objdump; ac_word=$2 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5594$as_echo_n "checking for $ac_word... " >&6; } 5595if ${ac_cv_prog_OBJDUMP+:} false; then : 5596 $as_echo_n "(cached) " >&6 5597else 5598 if test -n "$OBJDUMP"; then 5599 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5600else 5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5602for as_dir in $PATH 5603do 5604 IFS=$as_save_IFS 5605 test -z "$as_dir" && as_dir=. 5606 for ac_exec_ext in '' $ac_executable_extensions; do 5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5608 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5610 break 2 5611 fi 5612done 5613 done 5614IFS=$as_save_IFS 5615 5616fi 5617fi 5618OBJDUMP=$ac_cv_prog_OBJDUMP 5619if test -n "$OBJDUMP"; then 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5621$as_echo "$OBJDUMP" >&6; } 5622else 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5624$as_echo "no" >&6; } 5625fi 5626 5627 5628fi 5629if test -z "$ac_cv_prog_OBJDUMP"; then 5630 ac_ct_OBJDUMP=$OBJDUMP 5631 # Extract the first word of "objdump", so it can be a program name with args. 5632set dummy objdump; ac_word=$2 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5634$as_echo_n "checking for $ac_word... " >&6; } 5635if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -n "$ac_ct_OBJDUMP"; then 5639 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5640else 5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642for as_dir in $PATH 5643do 5644 IFS=$as_save_IFS 5645 test -z "$as_dir" && as_dir=. 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5648 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5650 break 2 5651 fi 5652done 5653 done 5654IFS=$as_save_IFS 5655 5656fi 5657fi 5658ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5659if test -n "$ac_ct_OBJDUMP"; then 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5661$as_echo "$ac_ct_OBJDUMP" >&6; } 5662else 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664$as_echo "no" >&6; } 5665fi 5666 5667 if test "x$ac_ct_OBJDUMP" = x; then 5668 OBJDUMP="false" 5669 else 5670 case $cross_compiling:$ac_tool_warned in 5671yes:) 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5674ac_tool_warned=yes ;; 5675esac 5676 OBJDUMP=$ac_ct_OBJDUMP 5677 fi 5678else 5679 OBJDUMP="$ac_cv_prog_OBJDUMP" 5680fi 5681 5682test -z "$OBJDUMP" && OBJDUMP=objdump 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5693$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5694if ${lt_cv_deplibs_check_method+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696else 5697 lt_cv_file_magic_cmd='$MAGIC_CMD' 5698lt_cv_file_magic_test_file= 5699lt_cv_deplibs_check_method='unknown' 5700# Need to set the preceding variable on all platforms that support 5701# interlibrary dependencies. 5702# 'none' -- dependencies not supported. 5703# `unknown' -- same as none, but documents that we really don't know. 5704# 'pass_all' -- all dependencies passed with no checks. 5705# 'test_compile' -- check by making test program. 5706# 'file_magic [[regex]]' -- check by looking for files in library path 5707# which responds to the $file_magic_cmd with a given extended regex. 5708# If you have `file' or equivalent on your system and you're not sure 5709# whether `pass_all' will *always* work, you probably want this one. 5710 5711case $host_os in 5712aix[4-9]*) 5713 lt_cv_deplibs_check_method=pass_all 5714 ;; 5715 5716beos*) 5717 lt_cv_deplibs_check_method=pass_all 5718 ;; 5719 5720bsdi[45]*) 5721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5722 lt_cv_file_magic_cmd='/usr/bin/file -L' 5723 lt_cv_file_magic_test_file=/shlib/libc.so 5724 ;; 5725 5726cygwin*) 5727 # func_win32_libid is a shell function defined in ltmain.sh 5728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5729 lt_cv_file_magic_cmd='func_win32_libid' 5730 ;; 5731 5732mingw* | pw32*) 5733 # Base MSYS/MinGW do not provide the 'file' command needed by 5734 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5735 # unless we find 'file', for example because we are cross-compiling. 5736 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5737 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5738 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5739 lt_cv_file_magic_cmd='func_win32_libid' 5740 else 5741 # Keep this pattern in sync with the one in func_win32_libid. 5742 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5743 lt_cv_file_magic_cmd='$OBJDUMP -f' 5744 fi 5745 ;; 5746 5747cegcc*) 5748 # use the weaker test based on 'objdump'. See mingw*. 5749 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5750 lt_cv_file_magic_cmd='$OBJDUMP -f' 5751 ;; 5752 5753darwin* | rhapsody*) 5754 lt_cv_deplibs_check_method=pass_all 5755 ;; 5756 5757freebsd* | dragonfly*) 5758 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5759 case $host_cpu in 5760 i*86 ) 5761 # Not sure whether the presence of OpenBSD here was a mistake. 5762 # Let's accept both of them until this is cleared up. 5763 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5764 lt_cv_file_magic_cmd=/usr/bin/file 5765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5766 ;; 5767 esac 5768 else 5769 lt_cv_deplibs_check_method=pass_all 5770 fi 5771 ;; 5772 5773gnu*) 5774 lt_cv_deplibs_check_method=pass_all 5775 ;; 5776 5777haiku*) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 5781hpux10.20* | hpux11*) 5782 lt_cv_file_magic_cmd=/usr/bin/file 5783 case $host_cpu in 5784 ia64*) 5785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5786 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5787 ;; 5788 hppa*64*) 5789 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]' 5790 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5791 ;; 5792 *) 5793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5794 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5795 ;; 5796 esac 5797 ;; 5798 5799interix[3-9]*) 5800 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5802 ;; 5803 5804irix5* | irix6* | nonstopux*) 5805 case $LD in 5806 *-32|*"-32 ") libmagic=32-bit;; 5807 *-n32|*"-n32 ") libmagic=N32;; 5808 *-64|*"-64 ") libmagic=64-bit;; 5809 *) libmagic=never-match;; 5810 esac 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814# This must be glibc/ELF. 5815linux* | k*bsd*-gnu | kopensolaris*-gnu) 5816 lt_cv_deplibs_check_method=pass_all 5817 ;; 5818 5819netbsd*) 5820 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5822 else 5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5824 fi 5825 ;; 5826 5827newos6*) 5828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5829 lt_cv_file_magic_cmd=/usr/bin/file 5830 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5831 ;; 5832 5833*nto* | *qnx*) 5834 lt_cv_deplibs_check_method=pass_all 5835 ;; 5836 5837openbsd*) 5838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5840 else 5841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5842 fi 5843 ;; 5844 5845osf3* | osf4* | osf5*) 5846 lt_cv_deplibs_check_method=pass_all 5847 ;; 5848 5849rdos*) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 5853solaris*) 5854 lt_cv_deplibs_check_method=pass_all 5855 ;; 5856 5857sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5858 lt_cv_deplibs_check_method=pass_all 5859 ;; 5860 5861sysv4 | sysv4.3*) 5862 case $host_vendor in 5863 motorola) 5864 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]' 5865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5866 ;; 5867 ncr) 5868 lt_cv_deplibs_check_method=pass_all 5869 ;; 5870 sequent) 5871 lt_cv_file_magic_cmd='/bin/file' 5872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5873 ;; 5874 sni) 5875 lt_cv_file_magic_cmd='/bin/file' 5876 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5877 lt_cv_file_magic_test_file=/lib/libc.so 5878 ;; 5879 siemens) 5880 lt_cv_deplibs_check_method=pass_all 5881 ;; 5882 pc) 5883 lt_cv_deplibs_check_method=pass_all 5884 ;; 5885 esac 5886 ;; 5887 5888tpf*) 5889 lt_cv_deplibs_check_method=pass_all 5890 ;; 5891esac 5892 5893fi 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5895$as_echo "$lt_cv_deplibs_check_method" >&6; } 5896 5897file_magic_glob= 5898want_nocaseglob=no 5899if test "$build" = "$host"; then 5900 case $host_os in 5901 mingw* | pw32*) 5902 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5903 want_nocaseglob=yes 5904 else 5905 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5906 fi 5907 ;; 5908 esac 5909fi 5910 5911file_magic_cmd=$lt_cv_file_magic_cmd 5912deplibs_check_method=$lt_cv_deplibs_check_method 5913test -z "$deplibs_check_method" && deplibs_check_method=unknown 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936if test -n "$ac_tool_prefix"; then 5937 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5938set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5940$as_echo_n "checking for $ac_word... " >&6; } 5941if ${ac_cv_prog_DLLTOOL+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 if test -n "$DLLTOOL"; then 5945 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5946else 5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5948for as_dir in $PATH 5949do 5950 IFS=$as_save_IFS 5951 test -z "$as_dir" && as_dir=. 5952 for ac_exec_ext in '' $ac_executable_extensions; do 5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5954 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5956 break 2 5957 fi 5958done 5959 done 5960IFS=$as_save_IFS 5961 5962fi 5963fi 5964DLLTOOL=$ac_cv_prog_DLLTOOL 5965if test -n "$DLLTOOL"; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5967$as_echo "$DLLTOOL" >&6; } 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970$as_echo "no" >&6; } 5971fi 5972 5973 5974fi 5975if test -z "$ac_cv_prog_DLLTOOL"; then 5976 ac_ct_DLLTOOL=$DLLTOOL 5977 # Extract the first word of "dlltool", so it can be a program name with args. 5978set dummy dlltool; ac_word=$2 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5980$as_echo_n "checking for $ac_word... " >&6; } 5981if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 if test -n "$ac_ct_DLLTOOL"; then 5985 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5986else 5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5988for as_dir in $PATH 5989do 5990 IFS=$as_save_IFS 5991 test -z "$as_dir" && as_dir=. 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5994 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5996 break 2 5997 fi 5998done 5999 done 6000IFS=$as_save_IFS 6001 6002fi 6003fi 6004ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6005if test -n "$ac_ct_DLLTOOL"; then 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6007$as_echo "$ac_ct_DLLTOOL" >&6; } 6008else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010$as_echo "no" >&6; } 6011fi 6012 6013 if test "x$ac_ct_DLLTOOL" = x; then 6014 DLLTOOL="false" 6015 else 6016 case $cross_compiling:$ac_tool_warned in 6017yes:) 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6020ac_tool_warned=yes ;; 6021esac 6022 DLLTOOL=$ac_ct_DLLTOOL 6023 fi 6024else 6025 DLLTOOL="$ac_cv_prog_DLLTOOL" 6026fi 6027 6028test -z "$DLLTOOL" && DLLTOOL=dlltool 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6040$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6041if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 lt_cv_sharedlib_from_linklib_cmd='unknown' 6045 6046case $host_os in 6047cygwin* | mingw* | pw32* | cegcc*) 6048 # two different shell functions defined in ltmain.sh 6049 # decide which to use based on capabilities of $DLLTOOL 6050 case `$DLLTOOL --help 2>&1` in 6051 *--identify-strict*) 6052 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6053 ;; 6054 *) 6055 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6056 ;; 6057 esac 6058 ;; 6059*) 6060 # fallback: assume linklib IS sharedlib 6061 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6062 ;; 6063esac 6064 6065fi 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6067$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6068sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6069test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6070 6071 6072 6073 6074 6075 6076 6077if test -n "$ac_tool_prefix"; then 6078 for ac_prog in ar 6079 do 6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6081set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6083$as_echo_n "checking for $ac_word... " >&6; } 6084if ${ac_cv_prog_AR+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 if test -n "$AR"; then 6088 ac_cv_prog_AR="$AR" # Let the user override the test. 6089else 6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6091for as_dir in $PATH 6092do 6093 IFS=$as_save_IFS 6094 test -z "$as_dir" && as_dir=. 6095 for ac_exec_ext in '' $ac_executable_extensions; do 6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6097 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6099 break 2 6100 fi 6101done 6102 done 6103IFS=$as_save_IFS 6104 6105fi 6106fi 6107AR=$ac_cv_prog_AR 6108if test -n "$AR"; then 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6110$as_echo "$AR" >&6; } 6111else 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6113$as_echo "no" >&6; } 6114fi 6115 6116 6117 test -n "$AR" && break 6118 done 6119fi 6120if test -z "$AR"; then 6121 ac_ct_AR=$AR 6122 for ac_prog in ar 6123do 6124 # Extract the first word of "$ac_prog", so it can be a program name with args. 6125set dummy $ac_prog; ac_word=$2 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6127$as_echo_n "checking for $ac_word... " >&6; } 6128if ${ac_cv_prog_ac_ct_AR+:} false; then : 6129 $as_echo_n "(cached) " >&6 6130else 6131 if test -n "$ac_ct_AR"; then 6132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6133else 6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6135for as_dir in $PATH 6136do 6137 IFS=$as_save_IFS 6138 test -z "$as_dir" && as_dir=. 6139 for ac_exec_ext in '' $ac_executable_extensions; do 6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6141 ac_cv_prog_ac_ct_AR="$ac_prog" 6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6143 break 2 6144 fi 6145done 6146 done 6147IFS=$as_save_IFS 6148 6149fi 6150fi 6151ac_ct_AR=$ac_cv_prog_ac_ct_AR 6152if test -n "$ac_ct_AR"; then 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6154$as_echo "$ac_ct_AR" >&6; } 6155else 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6157$as_echo "no" >&6; } 6158fi 6159 6160 6161 test -n "$ac_ct_AR" && break 6162done 6163 6164 if test "x$ac_ct_AR" = x; then 6165 AR="false" 6166 else 6167 case $cross_compiling:$ac_tool_warned in 6168yes:) 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6171ac_tool_warned=yes ;; 6172esac 6173 AR=$ac_ct_AR 6174 fi 6175fi 6176 6177: ${AR=ar} 6178: ${AR_FLAGS=cru} 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6191$as_echo_n "checking for archiver @FILE support... " >&6; } 6192if ${lt_cv_ar_at_file+:} false; then : 6193 $as_echo_n "(cached) " >&6 6194else 6195 lt_cv_ar_at_file=no 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198 6199int 6200main () 6201{ 6202 6203 ; 6204 return 0; 6205} 6206_ACEOF 6207if ac_fn_c_try_compile "$LINENO"; then : 6208 echo conftest.$ac_objext > conftest.lst 6209 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6211 (eval $lt_ar_try) 2>&5 6212 ac_status=$? 6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6214 test $ac_status = 0; } 6215 if test "$ac_status" -eq 0; then 6216 # Ensure the archiver fails upon bogus file names. 6217 rm -f conftest.$ac_objext libconftest.a 6218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6219 (eval $lt_ar_try) 2>&5 6220 ac_status=$? 6221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6222 test $ac_status = 0; } 6223 if test "$ac_status" -ne 0; then 6224 lt_cv_ar_at_file=@ 6225 fi 6226 fi 6227 rm -f conftest.* libconftest.a 6228 6229fi 6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6231 6232fi 6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6234$as_echo "$lt_cv_ar_at_file" >&6; } 6235 6236if test "x$lt_cv_ar_at_file" = xno; then 6237 archiver_list_spec= 6238else 6239 archiver_list_spec=$lt_cv_ar_at_file 6240fi 6241 6242 6243 6244 6245 6246 6247 6248if test -n "$ac_tool_prefix"; then 6249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6250set dummy ${ac_tool_prefix}strip; ac_word=$2 6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6252$as_echo_n "checking for $ac_word... " >&6; } 6253if ${ac_cv_prog_STRIP+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255else 6256 if test -n "$STRIP"; then 6257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6258else 6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6260for as_dir in $PATH 6261do 6262 IFS=$as_save_IFS 6263 test -z "$as_dir" && as_dir=. 6264 for ac_exec_ext in '' $ac_executable_extensions; do 6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6266 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6268 break 2 6269 fi 6270done 6271 done 6272IFS=$as_save_IFS 6273 6274fi 6275fi 6276STRIP=$ac_cv_prog_STRIP 6277if test -n "$STRIP"; then 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6279$as_echo "$STRIP" >&6; } 6280else 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6282$as_echo "no" >&6; } 6283fi 6284 6285 6286fi 6287if test -z "$ac_cv_prog_STRIP"; then 6288 ac_ct_STRIP=$STRIP 6289 # Extract the first word of "strip", so it can be a program name with args. 6290set dummy strip; ac_word=$2 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6292$as_echo_n "checking for $ac_word... " >&6; } 6293if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 if test -n "$ac_ct_STRIP"; then 6297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6298else 6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300for as_dir in $PATH 6301do 6302 IFS=$as_save_IFS 6303 test -z "$as_dir" && as_dir=. 6304 for ac_exec_ext in '' $ac_executable_extensions; do 6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6306 ac_cv_prog_ac_ct_STRIP="strip" 6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6308 break 2 6309 fi 6310done 6311 done 6312IFS=$as_save_IFS 6313 6314fi 6315fi 6316ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6317if test -n "$ac_ct_STRIP"; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6319$as_echo "$ac_ct_STRIP" >&6; } 6320else 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322$as_echo "no" >&6; } 6323fi 6324 6325 if test "x$ac_ct_STRIP" = x; then 6326 STRIP=":" 6327 else 6328 case $cross_compiling:$ac_tool_warned in 6329yes:) 6330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6332ac_tool_warned=yes ;; 6333esac 6334 STRIP=$ac_ct_STRIP 6335 fi 6336else 6337 STRIP="$ac_cv_prog_STRIP" 6338fi 6339 6340test -z "$STRIP" && STRIP=: 6341 6342 6343 6344 6345 6346 6347if test -n "$ac_tool_prefix"; then 6348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6349set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6351$as_echo_n "checking for $ac_word... " >&6; } 6352if ${ac_cv_prog_RANLIB+:} false; then : 6353 $as_echo_n "(cached) " >&6 6354else 6355 if test -n "$RANLIB"; then 6356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6357else 6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6359for as_dir in $PATH 6360do 6361 IFS=$as_save_IFS 6362 test -z "$as_dir" && as_dir=. 6363 for ac_exec_ext in '' $ac_executable_extensions; do 6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6367 break 2 6368 fi 6369done 6370 done 6371IFS=$as_save_IFS 6372 6373fi 6374fi 6375RANLIB=$ac_cv_prog_RANLIB 6376if test -n "$RANLIB"; then 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6378$as_echo "$RANLIB" >&6; } 6379else 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6381$as_echo "no" >&6; } 6382fi 6383 6384 6385fi 6386if test -z "$ac_cv_prog_RANLIB"; then 6387 ac_ct_RANLIB=$RANLIB 6388 # Extract the first word of "ranlib", so it can be a program name with args. 6389set dummy ranlib; ac_word=$2 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6391$as_echo_n "checking for $ac_word... " >&6; } 6392if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 if test -n "$ac_ct_RANLIB"; then 6396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6397else 6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6399for as_dir in $PATH 6400do 6401 IFS=$as_save_IFS 6402 test -z "$as_dir" && as_dir=. 6403 for ac_exec_ext in '' $ac_executable_extensions; do 6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6405 ac_cv_prog_ac_ct_RANLIB="ranlib" 6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6407 break 2 6408 fi 6409done 6410 done 6411IFS=$as_save_IFS 6412 6413fi 6414fi 6415ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6416if test -n "$ac_ct_RANLIB"; then 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6418$as_echo "$ac_ct_RANLIB" >&6; } 6419else 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6421$as_echo "no" >&6; } 6422fi 6423 6424 if test "x$ac_ct_RANLIB" = x; then 6425 RANLIB=":" 6426 else 6427 case $cross_compiling:$ac_tool_warned in 6428yes:) 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6431ac_tool_warned=yes ;; 6432esac 6433 RANLIB=$ac_ct_RANLIB 6434 fi 6435else 6436 RANLIB="$ac_cv_prog_RANLIB" 6437fi 6438 6439test -z "$RANLIB" && RANLIB=: 6440 6441 6442 6443 6444 6445 6446# Determine commands to create old-style static archives. 6447old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6448old_postinstall_cmds='chmod 644 $oldlib' 6449old_postuninstall_cmds= 6450 6451if test -n "$RANLIB"; then 6452 case $host_os in 6453 openbsd*) 6454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6455 ;; 6456 *) 6457 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6458 ;; 6459 esac 6460 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6461fi 6462 6463case $host_os in 6464 darwin*) 6465 lock_old_archive_extraction=yes ;; 6466 *) 6467 lock_old_archive_extraction=no ;; 6468esac 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508# If no C compiler was specified, use CC. 6509LTCC=${LTCC-"$CC"} 6510 6511# If no C compiler flags were specified, use CFLAGS. 6512LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6513 6514# Allow CC to be a program name with arguments. 6515compiler=$CC 6516 6517 6518# Check for command to grab the raw symbol name followed by C symbol from nm. 6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6520$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6521if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6522 $as_echo_n "(cached) " >&6 6523else 6524 6525# These are sane defaults that work on at least a few old systems. 6526# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6527 6528# Character class describing NM global symbol codes. 6529symcode='[BCDEGRST]' 6530 6531# Regexp to match symbols that can be accessed directly from C. 6532sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6533 6534# Define system-specific variables. 6535case $host_os in 6536aix*) 6537 symcode='[BCDT]' 6538 ;; 6539cygwin* | mingw* | pw32* | cegcc*) 6540 symcode='[ABCDGISTW]' 6541 ;; 6542hpux*) 6543 if test "$host_cpu" = ia64; then 6544 symcode='[ABCDEGRST]' 6545 fi 6546 ;; 6547irix* | nonstopux*) 6548 symcode='[BCDEGRST]' 6549 ;; 6550osf*) 6551 symcode='[BCDEGQRST]' 6552 ;; 6553solaris*) 6554 symcode='[BDRT]' 6555 ;; 6556sco3.2v5*) 6557 symcode='[DT]' 6558 ;; 6559sysv4.2uw2*) 6560 symcode='[DT]' 6561 ;; 6562sysv5* | sco5v6* | unixware* | OpenUNIX*) 6563 symcode='[ABDT]' 6564 ;; 6565sysv4) 6566 symcode='[DFNSTU]' 6567 ;; 6568esac 6569 6570# If we're using GNU nm, then use its standard symbol codes. 6571case `$NM -V 2>&1` in 6572*GNU* | *'with BFD'*) 6573 symcode='[ABCDGIRSTW]' ;; 6574esac 6575 6576# Transform an extracted symbol line into a proper C declaration. 6577# Some systems (esp. on ia64) link data and code symbols differently, 6578# so use this general approach. 6579lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6580 6581# Transform an extracted symbol line into symbol name and symbol address 6582lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6583lt_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'" 6584 6585# Handle CRLF in mingw tool chain 6586opt_cr= 6587case $build_os in 6588mingw*) 6589 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6590 ;; 6591esac 6592 6593# Try without a prefix underscore, then with it. 6594for ac_symprfx in "" "_"; do 6595 6596 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6597 symxfrm="\\1 $ac_symprfx\\2 \\2" 6598 6599 # Write the raw and C identifiers. 6600 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6601 # Fake it for dumpbin and say T for any non-static function 6602 # and D for any global variable. 6603 # Also find C++ and __fastcall symbols from MSVC++, 6604 # which start with @ or ?. 6605 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6606" {last_section=section; section=\$ 3};"\ 6607" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6608" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6609" \$ 0!~/External *\|/{next};"\ 6610" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6611" {if(hide[section]) next};"\ 6612" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6613" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6614" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6615" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6616" ' prfx=^$ac_symprfx" 6617 else 6618 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6619 fi 6620 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6621 6622 # Check to see that the pipe works correctly. 6623 pipe_works=no 6624 6625 rm -f conftest* 6626 cat > conftest.$ac_ext <<_LT_EOF 6627#ifdef __cplusplus 6628extern "C" { 6629#endif 6630char nm_test_var; 6631void nm_test_func(void); 6632void nm_test_func(void){} 6633#ifdef __cplusplus 6634} 6635#endif 6636int main(){nm_test_var='a';nm_test_func();return(0);} 6637_LT_EOF 6638 6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6640 (eval $ac_compile) 2>&5 6641 ac_status=$? 6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6643 test $ac_status = 0; }; then 6644 # Now try to grab the symbols. 6645 nlist=conftest.nm 6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6647 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6648 ac_status=$? 6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6650 test $ac_status = 0; } && test -s "$nlist"; then 6651 # Try sorting and uniquifying the output. 6652 if sort "$nlist" | uniq > "$nlist"T; then 6653 mv -f "$nlist"T "$nlist" 6654 else 6655 rm -f "$nlist"T 6656 fi 6657 6658 # Make sure that we snagged all the symbols we need. 6659 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6660 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6661 cat <<_LT_EOF > conftest.$ac_ext 6662/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6663#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6664/* DATA imports from DLLs on WIN32 con't be const, because runtime 6665 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6666# define LT_DLSYM_CONST 6667#elif defined(__osf__) 6668/* This system does not cope well with relocations in const data. */ 6669# define LT_DLSYM_CONST 6670#else 6671# define LT_DLSYM_CONST const 6672#endif 6673 6674#ifdef __cplusplus 6675extern "C" { 6676#endif 6677 6678_LT_EOF 6679 # Now generate the symbol file. 6680 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6681 6682 cat <<_LT_EOF >> conftest.$ac_ext 6683 6684/* The mapping between symbol names and symbols. */ 6685LT_DLSYM_CONST struct { 6686 const char *name; 6687 void *address; 6688} 6689lt__PROGRAM__LTX_preloaded_symbols[] = 6690{ 6691 { "@PROGRAM@", (void *) 0 }, 6692_LT_EOF 6693 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6694 cat <<\_LT_EOF >> conftest.$ac_ext 6695 {0, (void *) 0} 6696}; 6697 6698/* This works around a problem in FreeBSD linker */ 6699#ifdef FREEBSD_WORKAROUND 6700static const void *lt_preloaded_setup() { 6701 return lt__PROGRAM__LTX_preloaded_symbols; 6702} 6703#endif 6704 6705#ifdef __cplusplus 6706} 6707#endif 6708_LT_EOF 6709 # Now try linking the two files. 6710 mv conftest.$ac_objext conftstm.$ac_objext 6711 lt_globsym_save_LIBS=$LIBS 6712 lt_globsym_save_CFLAGS=$CFLAGS 6713 LIBS="conftstm.$ac_objext" 6714 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6716 (eval $ac_link) 2>&5 6717 ac_status=$? 6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6719 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6720 pipe_works=yes 6721 fi 6722 LIBS=$lt_globsym_save_LIBS 6723 CFLAGS=$lt_globsym_save_CFLAGS 6724 else 6725 echo "cannot find nm_test_func in $nlist" >&5 6726 fi 6727 else 6728 echo "cannot find nm_test_var in $nlist" >&5 6729 fi 6730 else 6731 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6732 fi 6733 else 6734 echo "$progname: failed program was:" >&5 6735 cat conftest.$ac_ext >&5 6736 fi 6737 rm -rf conftest* conftst* 6738 6739 # Do not use the global_symbol_pipe unless it works. 6740 if test "$pipe_works" = yes; then 6741 break 6742 else 6743 lt_cv_sys_global_symbol_pipe= 6744 fi 6745done 6746 6747fi 6748 6749if test -z "$lt_cv_sys_global_symbol_pipe"; then 6750 lt_cv_sys_global_symbol_to_cdecl= 6751fi 6752if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6754$as_echo "failed" >&6; } 6755else 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6757$as_echo "ok" >&6; } 6758fi 6759 6760# Response file support. 6761if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6762 nm_file_list_spec='@' 6763elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6764 nm_file_list_spec='@' 6765fi 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6794$as_echo_n "checking for sysroot... " >&6; } 6795 6796# Check whether --with-sysroot was given. 6797if test "${with_sysroot+set}" = set; then : 6798 withval=$with_sysroot; 6799else 6800 with_sysroot=no 6801fi 6802 6803 6804lt_sysroot= 6805case ${with_sysroot} in #( 6806 yes) 6807 if test "$GCC" = yes; then 6808 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6809 fi 6810 ;; #( 6811 /*) 6812 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6813 ;; #( 6814 no|'') 6815 ;; #( 6816 *) 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6818$as_echo "${with_sysroot}" >&6; } 6819 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6820 ;; 6821esac 6822 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6824$as_echo "${lt_sysroot:-no}" >&6; } 6825 6826 6827 6828 6829 6830# Check whether --enable-libtool-lock was given. 6831if test "${enable_libtool_lock+set}" = set; then : 6832 enableval=$enable_libtool_lock; 6833fi 6834 6835test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6836 6837# Some flags need to be propagated to the compiler or linker for good 6838# libtool support. 6839case $host in 6840ia64-*-hpux*) 6841 # Find out which ABI we are using. 6842 echo 'int i;' > conftest.$ac_ext 6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6844 (eval $ac_compile) 2>&5 6845 ac_status=$? 6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6847 test $ac_status = 0; }; then 6848 case `/usr/bin/file conftest.$ac_objext` in 6849 *ELF-32*) 6850 HPUX_IA64_MODE="32" 6851 ;; 6852 *ELF-64*) 6853 HPUX_IA64_MODE="64" 6854 ;; 6855 esac 6856 fi 6857 rm -rf conftest* 6858 ;; 6859*-*-irix6*) 6860 # Find out which ABI we are using. 6861 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6863 (eval $ac_compile) 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6866 test $ac_status = 0; }; then 6867 if test "$lt_cv_prog_gnu_ld" = yes; then 6868 case `/usr/bin/file conftest.$ac_objext` in 6869 *32-bit*) 6870 LD="${LD-ld} -melf32bsmip" 6871 ;; 6872 *N32*) 6873 LD="${LD-ld} -melf32bmipn32" 6874 ;; 6875 *64-bit*) 6876 LD="${LD-ld} -melf64bmip" 6877 ;; 6878 esac 6879 else 6880 case `/usr/bin/file conftest.$ac_objext` in 6881 *32-bit*) 6882 LD="${LD-ld} -32" 6883 ;; 6884 *N32*) 6885 LD="${LD-ld} -n32" 6886 ;; 6887 *64-bit*) 6888 LD="${LD-ld} -64" 6889 ;; 6890 esac 6891 fi 6892 fi 6893 rm -rf conftest* 6894 ;; 6895 6896x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6897s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6898 # Find out which ABI we are using. 6899 echo 'int i;' > conftest.$ac_ext 6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6901 (eval $ac_compile) 2>&5 6902 ac_status=$? 6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6904 test $ac_status = 0; }; then 6905 case `/usr/bin/file conftest.o` in 6906 *32-bit*) 6907 case $host in 6908 x86_64-*kfreebsd*-gnu) 6909 LD="${LD-ld} -m elf_i386_fbsd" 6910 ;; 6911 x86_64-*linux*) 6912 LD="${LD-ld} -m elf_i386" 6913 ;; 6914 ppc64-*linux*|powerpc64-*linux*) 6915 LD="${LD-ld} -m elf32ppclinux" 6916 ;; 6917 s390x-*linux*) 6918 LD="${LD-ld} -m elf_s390" 6919 ;; 6920 sparc64-*linux*) 6921 LD="${LD-ld} -m elf32_sparc" 6922 ;; 6923 esac 6924 ;; 6925 *64-bit*) 6926 case $host in 6927 x86_64-*kfreebsd*-gnu) 6928 LD="${LD-ld} -m elf_x86_64_fbsd" 6929 ;; 6930 x86_64-*linux*) 6931 LD="${LD-ld} -m elf_x86_64" 6932 ;; 6933 ppc*-*linux*|powerpc*-*linux*) 6934 LD="${LD-ld} -m elf64ppc" 6935 ;; 6936 s390*-*linux*|s390*-*tpf*) 6937 LD="${LD-ld} -m elf64_s390" 6938 ;; 6939 sparc*-*linux*) 6940 LD="${LD-ld} -m elf64_sparc" 6941 ;; 6942 esac 6943 ;; 6944 esac 6945 fi 6946 rm -rf conftest* 6947 ;; 6948 6949*-*-sco3.2v5*) 6950 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6951 SAVE_CFLAGS="$CFLAGS" 6952 CFLAGS="$CFLAGS -belf" 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6954$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6955if ${lt_cv_cc_needs_belf+:} false; then : 6956 $as_echo_n "(cached) " >&6 6957else 6958 ac_ext=c 6959ac_cpp='$CPP $CPPFLAGS' 6960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6962ac_compiler_gnu=$ac_cv_c_compiler_gnu 6963 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966 6967int 6968main () 6969{ 6970 6971 ; 6972 return 0; 6973} 6974_ACEOF 6975if ac_fn_c_try_link "$LINENO"; then : 6976 lt_cv_cc_needs_belf=yes 6977else 6978 lt_cv_cc_needs_belf=no 6979fi 6980rm -f core conftest.err conftest.$ac_objext \ 6981 conftest$ac_exeext conftest.$ac_ext 6982 ac_ext=c 6983ac_cpp='$CPP $CPPFLAGS' 6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6986ac_compiler_gnu=$ac_cv_c_compiler_gnu 6987 6988fi 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6990$as_echo "$lt_cv_cc_needs_belf" >&6; } 6991 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6993 CFLAGS="$SAVE_CFLAGS" 6994 fi 6995 ;; 6996*-*solaris*) 6997 # Find out which ABI we are using. 6998 echo 'int i;' > conftest.$ac_ext 6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7000 (eval $ac_compile) 2>&5 7001 ac_status=$? 7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7003 test $ac_status = 0; }; then 7004 case `/usr/bin/file conftest.o` in 7005 *64-bit*) 7006 case $lt_cv_prog_gnu_ld in 7007 yes*) 7008 case $host in 7009 i?86-*-solaris*) 7010 LD="${LD-ld} -m elf_x86_64" 7011 ;; 7012 sparc*-*-solaris*) 7013 LD="${LD-ld} -m elf64_sparc" 7014 ;; 7015 esac 7016 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7017 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7018 LD="${LD-ld}_sol2" 7019 fi 7020 ;; 7021 *) 7022 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7023 LD="${LD-ld} -64" 7024 fi 7025 ;; 7026 esac 7027 ;; 7028 esac 7029 fi 7030 rm -rf conftest* 7031 ;; 7032esac 7033 7034need_locks="$enable_libtool_lock" 7035 7036if test -n "$ac_tool_prefix"; then 7037 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7038set dummy ${ac_tool_prefix}mt; ac_word=$2 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7040$as_echo_n "checking for $ac_word... " >&6; } 7041if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7042 $as_echo_n "(cached) " >&6 7043else 7044 if test -n "$MANIFEST_TOOL"; then 7045 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7046else 7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048for as_dir in $PATH 7049do 7050 IFS=$as_save_IFS 7051 test -z "$as_dir" && as_dir=. 7052 for ac_exec_ext in '' $ac_executable_extensions; do 7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7054 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7056 break 2 7057 fi 7058done 7059 done 7060IFS=$as_save_IFS 7061 7062fi 7063fi 7064MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7065if test -n "$MANIFEST_TOOL"; then 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7067$as_echo "$MANIFEST_TOOL" >&6; } 7068else 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7070$as_echo "no" >&6; } 7071fi 7072 7073 7074fi 7075if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7076 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7077 # Extract the first word of "mt", so it can be a program name with args. 7078set dummy mt; ac_word=$2 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7080$as_echo_n "checking for $ac_word... " >&6; } 7081if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 if test -n "$ac_ct_MANIFEST_TOOL"; then 7085 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7086else 7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088for as_dir in $PATH 7089do 7090 IFS=$as_save_IFS 7091 test -z "$as_dir" && as_dir=. 7092 for ac_exec_ext in '' $ac_executable_extensions; do 7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7094 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7096 break 2 7097 fi 7098done 7099 done 7100IFS=$as_save_IFS 7101 7102fi 7103fi 7104ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7105if test -n "$ac_ct_MANIFEST_TOOL"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7107$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7108else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110$as_echo "no" >&6; } 7111fi 7112 7113 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7114 MANIFEST_TOOL=":" 7115 else 7116 case $cross_compiling:$ac_tool_warned in 7117yes:) 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7120ac_tool_warned=yes ;; 7121esac 7122 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7123 fi 7124else 7125 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7126fi 7127 7128test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7130$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7131if ${lt_cv_path_mainfest_tool+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 lt_cv_path_mainfest_tool=no 7135 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7136 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7137 cat conftest.err >&5 7138 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7139 lt_cv_path_mainfest_tool=yes 7140 fi 7141 rm -f conftest* 7142fi 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7144$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7145if test "x$lt_cv_path_mainfest_tool" != xyes; then 7146 MANIFEST_TOOL=: 7147fi 7148 7149 7150 7151 7152 7153 7154 case $host_os in 7155 rhapsody* | darwin*) 7156 if test -n "$ac_tool_prefix"; then 7157 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7158set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7160$as_echo_n "checking for $ac_word... " >&6; } 7161if ${ac_cv_prog_DSYMUTIL+:} false; then : 7162 $as_echo_n "(cached) " >&6 7163else 7164 if test -n "$DSYMUTIL"; then 7165 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7166else 7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7168for as_dir in $PATH 7169do 7170 IFS=$as_save_IFS 7171 test -z "$as_dir" && as_dir=. 7172 for ac_exec_ext in '' $ac_executable_extensions; do 7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7174 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7176 break 2 7177 fi 7178done 7179 done 7180IFS=$as_save_IFS 7181 7182fi 7183fi 7184DSYMUTIL=$ac_cv_prog_DSYMUTIL 7185if test -n "$DSYMUTIL"; then 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7187$as_echo "$DSYMUTIL" >&6; } 7188else 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7190$as_echo "no" >&6; } 7191fi 7192 7193 7194fi 7195if test -z "$ac_cv_prog_DSYMUTIL"; then 7196 ac_ct_DSYMUTIL=$DSYMUTIL 7197 # Extract the first word of "dsymutil", so it can be a program name with args. 7198set dummy dsymutil; ac_word=$2 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7200$as_echo_n "checking for $ac_word... " >&6; } 7201if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 if test -n "$ac_ct_DSYMUTIL"; then 7205 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7206else 7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7208for as_dir in $PATH 7209do 7210 IFS=$as_save_IFS 7211 test -z "$as_dir" && as_dir=. 7212 for ac_exec_ext in '' $ac_executable_extensions; do 7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7214 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7216 break 2 7217 fi 7218done 7219 done 7220IFS=$as_save_IFS 7221 7222fi 7223fi 7224ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7225if test -n "$ac_ct_DSYMUTIL"; then 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7227$as_echo "$ac_ct_DSYMUTIL" >&6; } 7228else 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7230$as_echo "no" >&6; } 7231fi 7232 7233 if test "x$ac_ct_DSYMUTIL" = x; then 7234 DSYMUTIL=":" 7235 else 7236 case $cross_compiling:$ac_tool_warned in 7237yes:) 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7240ac_tool_warned=yes ;; 7241esac 7242 DSYMUTIL=$ac_ct_DSYMUTIL 7243 fi 7244else 7245 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7246fi 7247 7248 if test -n "$ac_tool_prefix"; then 7249 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7250set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7252$as_echo_n "checking for $ac_word... " >&6; } 7253if ${ac_cv_prog_NMEDIT+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 if test -n "$NMEDIT"; then 7257 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7258else 7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7260for as_dir in $PATH 7261do 7262 IFS=$as_save_IFS 7263 test -z "$as_dir" && as_dir=. 7264 for ac_exec_ext in '' $ac_executable_extensions; do 7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7266 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7268 break 2 7269 fi 7270done 7271 done 7272IFS=$as_save_IFS 7273 7274fi 7275fi 7276NMEDIT=$ac_cv_prog_NMEDIT 7277if test -n "$NMEDIT"; then 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7279$as_echo "$NMEDIT" >&6; } 7280else 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7282$as_echo "no" >&6; } 7283fi 7284 7285 7286fi 7287if test -z "$ac_cv_prog_NMEDIT"; then 7288 ac_ct_NMEDIT=$NMEDIT 7289 # Extract the first word of "nmedit", so it can be a program name with args. 7290set dummy nmedit; ac_word=$2 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7292$as_echo_n "checking for $ac_word... " >&6; } 7293if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 if test -n "$ac_ct_NMEDIT"; then 7297 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7298else 7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7300for as_dir in $PATH 7301do 7302 IFS=$as_save_IFS 7303 test -z "$as_dir" && as_dir=. 7304 for ac_exec_ext in '' $ac_executable_extensions; do 7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7306 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7308 break 2 7309 fi 7310done 7311 done 7312IFS=$as_save_IFS 7313 7314fi 7315fi 7316ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7317if test -n "$ac_ct_NMEDIT"; then 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7319$as_echo "$ac_ct_NMEDIT" >&6; } 7320else 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7322$as_echo "no" >&6; } 7323fi 7324 7325 if test "x$ac_ct_NMEDIT" = x; then 7326 NMEDIT=":" 7327 else 7328 case $cross_compiling:$ac_tool_warned in 7329yes:) 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7332ac_tool_warned=yes ;; 7333esac 7334 NMEDIT=$ac_ct_NMEDIT 7335 fi 7336else 7337 NMEDIT="$ac_cv_prog_NMEDIT" 7338fi 7339 7340 if test -n "$ac_tool_prefix"; then 7341 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7342set dummy ${ac_tool_prefix}lipo; ac_word=$2 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7344$as_echo_n "checking for $ac_word... " >&6; } 7345if ${ac_cv_prog_LIPO+:} false; then : 7346 $as_echo_n "(cached) " >&6 7347else 7348 if test -n "$LIPO"; then 7349 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7350else 7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7352for as_dir in $PATH 7353do 7354 IFS=$as_save_IFS 7355 test -z "$as_dir" && as_dir=. 7356 for ac_exec_ext in '' $ac_executable_extensions; do 7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7358 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7360 break 2 7361 fi 7362done 7363 done 7364IFS=$as_save_IFS 7365 7366fi 7367fi 7368LIPO=$ac_cv_prog_LIPO 7369if test -n "$LIPO"; then 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7371$as_echo "$LIPO" >&6; } 7372else 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7374$as_echo "no" >&6; } 7375fi 7376 7377 7378fi 7379if test -z "$ac_cv_prog_LIPO"; then 7380 ac_ct_LIPO=$LIPO 7381 # Extract the first word of "lipo", so it can be a program name with args. 7382set dummy lipo; ac_word=$2 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7384$as_echo_n "checking for $ac_word... " >&6; } 7385if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7386 $as_echo_n "(cached) " >&6 7387else 7388 if test -n "$ac_ct_LIPO"; then 7389 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7390else 7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7392for as_dir in $PATH 7393do 7394 IFS=$as_save_IFS 7395 test -z "$as_dir" && as_dir=. 7396 for ac_exec_ext in '' $ac_executable_extensions; do 7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7398 ac_cv_prog_ac_ct_LIPO="lipo" 7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7400 break 2 7401 fi 7402done 7403 done 7404IFS=$as_save_IFS 7405 7406fi 7407fi 7408ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7409if test -n "$ac_ct_LIPO"; then 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7411$as_echo "$ac_ct_LIPO" >&6; } 7412else 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7414$as_echo "no" >&6; } 7415fi 7416 7417 if test "x$ac_ct_LIPO" = x; then 7418 LIPO=":" 7419 else 7420 case $cross_compiling:$ac_tool_warned in 7421yes:) 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7424ac_tool_warned=yes ;; 7425esac 7426 LIPO=$ac_ct_LIPO 7427 fi 7428else 7429 LIPO="$ac_cv_prog_LIPO" 7430fi 7431 7432 if test -n "$ac_tool_prefix"; then 7433 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7434set dummy ${ac_tool_prefix}otool; ac_word=$2 7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7436$as_echo_n "checking for $ac_word... " >&6; } 7437if ${ac_cv_prog_OTOOL+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 if test -n "$OTOOL"; then 7441 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7442else 7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7444for as_dir in $PATH 7445do 7446 IFS=$as_save_IFS 7447 test -z "$as_dir" && as_dir=. 7448 for ac_exec_ext in '' $ac_executable_extensions; do 7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7450 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7452 break 2 7453 fi 7454done 7455 done 7456IFS=$as_save_IFS 7457 7458fi 7459fi 7460OTOOL=$ac_cv_prog_OTOOL 7461if test -n "$OTOOL"; then 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7463$as_echo "$OTOOL" >&6; } 7464else 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7466$as_echo "no" >&6; } 7467fi 7468 7469 7470fi 7471if test -z "$ac_cv_prog_OTOOL"; then 7472 ac_ct_OTOOL=$OTOOL 7473 # Extract the first word of "otool", so it can be a program name with args. 7474set dummy otool; ac_word=$2 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7476$as_echo_n "checking for $ac_word... " >&6; } 7477if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 if test -n "$ac_ct_OTOOL"; then 7481 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7482else 7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7484for as_dir in $PATH 7485do 7486 IFS=$as_save_IFS 7487 test -z "$as_dir" && as_dir=. 7488 for ac_exec_ext in '' $ac_executable_extensions; do 7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7490 ac_cv_prog_ac_ct_OTOOL="otool" 7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7492 break 2 7493 fi 7494done 7495 done 7496IFS=$as_save_IFS 7497 7498fi 7499fi 7500ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7501if test -n "$ac_ct_OTOOL"; then 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7503$as_echo "$ac_ct_OTOOL" >&6; } 7504else 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7506$as_echo "no" >&6; } 7507fi 7508 7509 if test "x$ac_ct_OTOOL" = x; then 7510 OTOOL=":" 7511 else 7512 case $cross_compiling:$ac_tool_warned in 7513yes:) 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7516ac_tool_warned=yes ;; 7517esac 7518 OTOOL=$ac_ct_OTOOL 7519 fi 7520else 7521 OTOOL="$ac_cv_prog_OTOOL" 7522fi 7523 7524 if test -n "$ac_tool_prefix"; then 7525 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7526set dummy ${ac_tool_prefix}otool64; ac_word=$2 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7528$as_echo_n "checking for $ac_word... " >&6; } 7529if ${ac_cv_prog_OTOOL64+:} false; then : 7530 $as_echo_n "(cached) " >&6 7531else 7532 if test -n "$OTOOL64"; then 7533 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7534else 7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7536for as_dir in $PATH 7537do 7538 IFS=$as_save_IFS 7539 test -z "$as_dir" && as_dir=. 7540 for ac_exec_ext in '' $ac_executable_extensions; do 7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7542 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7544 break 2 7545 fi 7546done 7547 done 7548IFS=$as_save_IFS 7549 7550fi 7551fi 7552OTOOL64=$ac_cv_prog_OTOOL64 7553if test -n "$OTOOL64"; then 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7555$as_echo "$OTOOL64" >&6; } 7556else 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7558$as_echo "no" >&6; } 7559fi 7560 7561 7562fi 7563if test -z "$ac_cv_prog_OTOOL64"; then 7564 ac_ct_OTOOL64=$OTOOL64 7565 # Extract the first word of "otool64", so it can be a program name with args. 7566set dummy otool64; ac_word=$2 7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7568$as_echo_n "checking for $ac_word... " >&6; } 7569if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7570 $as_echo_n "(cached) " >&6 7571else 7572 if test -n "$ac_ct_OTOOL64"; then 7573 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7574else 7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7576for as_dir in $PATH 7577do 7578 IFS=$as_save_IFS 7579 test -z "$as_dir" && as_dir=. 7580 for ac_exec_ext in '' $ac_executable_extensions; do 7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7582 ac_cv_prog_ac_ct_OTOOL64="otool64" 7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7584 break 2 7585 fi 7586done 7587 done 7588IFS=$as_save_IFS 7589 7590fi 7591fi 7592ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7593if test -n "$ac_ct_OTOOL64"; then 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7595$as_echo "$ac_ct_OTOOL64" >&6; } 7596else 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7598$as_echo "no" >&6; } 7599fi 7600 7601 if test "x$ac_ct_OTOOL64" = x; then 7602 OTOOL64=":" 7603 else 7604 case $cross_compiling:$ac_tool_warned in 7605yes:) 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7608ac_tool_warned=yes ;; 7609esac 7610 OTOOL64=$ac_ct_OTOOL64 7611 fi 7612else 7613 OTOOL64="$ac_cv_prog_OTOOL64" 7614fi 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7643$as_echo_n "checking for -single_module linker flag... " >&6; } 7644if ${lt_cv_apple_cc_single_mod+:} false; then : 7645 $as_echo_n "(cached) " >&6 7646else 7647 lt_cv_apple_cc_single_mod=no 7648 if test -z "${LT_MULTI_MODULE}"; then 7649 # By default we will add the -single_module flag. You can override 7650 # by either setting the environment variable LT_MULTI_MODULE 7651 # non-empty at configure time, or by adding -multi_module to the 7652 # link flags. 7653 rm -rf libconftest.dylib* 7654 echo "int foo(void){return 1;}" > conftest.c 7655 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7656-dynamiclib -Wl,-single_module conftest.c" >&5 7657 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7658 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7659 _lt_result=$? 7660 # If there is a non-empty error log, and "single_module" 7661 # appears in it, assume the flag caused a linker warning 7662 if test -s conftest.err && $GREP single_module conftest.err; then 7663 cat conftest.err >&5 7664 # Otherwise, if the output was created with a 0 exit code from 7665 # the compiler, it worked. 7666 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7667 lt_cv_apple_cc_single_mod=yes 7668 else 7669 cat conftest.err >&5 7670 fi 7671 rm -rf libconftest.dylib* 7672 rm -f conftest.* 7673 fi 7674fi 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7676$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7677 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7679$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7680if ${lt_cv_ld_exported_symbols_list+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 lt_cv_ld_exported_symbols_list=no 7684 save_LDFLAGS=$LDFLAGS 7685 echo "_main" > conftest.sym 7686 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7688/* end confdefs.h. */ 7689 7690int 7691main () 7692{ 7693 7694 ; 7695 return 0; 7696} 7697_ACEOF 7698if ac_fn_c_try_link "$LINENO"; then : 7699 lt_cv_ld_exported_symbols_list=yes 7700else 7701 lt_cv_ld_exported_symbols_list=no 7702fi 7703rm -f core conftest.err conftest.$ac_objext \ 7704 conftest$ac_exeext conftest.$ac_ext 7705 LDFLAGS="$save_LDFLAGS" 7706 7707fi 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7709$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7710 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7712$as_echo_n "checking for -force_load linker flag... " >&6; } 7713if ${lt_cv_ld_force_load+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 lt_cv_ld_force_load=no 7717 cat > conftest.c << _LT_EOF 7718int forced_loaded() { return 2;} 7719_LT_EOF 7720 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7721 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7722 echo "$AR cru libconftest.a conftest.o" >&5 7723 $AR cru libconftest.a conftest.o 2>&5 7724 echo "$RANLIB libconftest.a" >&5 7725 $RANLIB libconftest.a 2>&5 7726 cat > conftest.c << _LT_EOF 7727int main() { return 0;} 7728_LT_EOF 7729 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7730 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7731 _lt_result=$? 7732 if test -s conftest.err && $GREP force_load conftest.err; then 7733 cat conftest.err >&5 7734 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7735 lt_cv_ld_force_load=yes 7736 else 7737 cat conftest.err >&5 7738 fi 7739 rm -f conftest.err libconftest.a conftest conftest.c 7740 rm -rf conftest.dSYM 7741 7742fi 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7744$as_echo "$lt_cv_ld_force_load" >&6; } 7745 case $host_os in 7746 rhapsody* | darwin1.[012]) 7747 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7748 darwin1.*) 7749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7750 darwin*) # darwin 5.x on 7751 # if running on 10.5 or later, the deployment target defaults 7752 # to the OS version, if on x86, and 10.4, the deployment 7753 # target defaults to 10.4. Don't you love it? 7754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7755 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7757 10.[012]*) 7758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7759 10.*) 7760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7761 esac 7762 ;; 7763 esac 7764 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7765 _lt_dar_single_mod='$single_module' 7766 fi 7767 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7768 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7769 else 7770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7771 fi 7772 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7773 _lt_dsymutil='~$DSYMUTIL $lib || :' 7774 else 7775 _lt_dsymutil= 7776 fi 7777 ;; 7778 esac 7779 7780for ac_header in dlfcn.h 7781do : 7782 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7783" 7784if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7785 cat >>confdefs.h <<_ACEOF 7786#define HAVE_DLFCN_H 1 7787_ACEOF 7788 7789fi 7790 7791done 7792 7793 7794 7795 7796 7797# Set options 7798 7799 7800 7801 enable_dlopen=no 7802 7803 7804 enable_win32_dll=no 7805 7806 7807 # Check whether --enable-shared was given. 7808if test "${enable_shared+set}" = set; then : 7809 enableval=$enable_shared; p=${PACKAGE-default} 7810 case $enableval in 7811 yes) enable_shared=yes ;; 7812 no) enable_shared=no ;; 7813 *) 7814 enable_shared=no 7815 # Look at the argument we got. We use all the common list separators. 7816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7817 for pkg in $enableval; do 7818 IFS="$lt_save_ifs" 7819 if test "X$pkg" = "X$p"; then 7820 enable_shared=yes 7821 fi 7822 done 7823 IFS="$lt_save_ifs" 7824 ;; 7825 esac 7826else 7827 enable_shared=yes 7828fi 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 # Check whether --enable-static was given. 7839if test "${enable_static+set}" = set; then : 7840 enableval=$enable_static; p=${PACKAGE-default} 7841 case $enableval in 7842 yes) enable_static=yes ;; 7843 no) enable_static=no ;; 7844 *) 7845 enable_static=no 7846 # Look at the argument we got. We use all the common list separators. 7847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7848 for pkg in $enableval; do 7849 IFS="$lt_save_ifs" 7850 if test "X$pkg" = "X$p"; then 7851 enable_static=yes 7852 fi 7853 done 7854 IFS="$lt_save_ifs" 7855 ;; 7856 esac 7857else 7858 enable_static=yes 7859fi 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870# Check whether --with-pic was given. 7871if test "${with_pic+set}" = set; then : 7872 withval=$with_pic; lt_p=${PACKAGE-default} 7873 case $withval in 7874 yes|no) pic_mode=$withval ;; 7875 *) 7876 pic_mode=default 7877 # Look at the argument we got. We use all the common list separators. 7878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7879 for lt_pkg in $withval; do 7880 IFS="$lt_save_ifs" 7881 if test "X$lt_pkg" = "X$lt_p"; then 7882 pic_mode=yes 7883 fi 7884 done 7885 IFS="$lt_save_ifs" 7886 ;; 7887 esac 7888else 7889 pic_mode=default 7890fi 7891 7892 7893test -z "$pic_mode" && pic_mode=default 7894 7895 7896 7897 7898 7899 7900 7901 # Check whether --enable-fast-install was given. 7902if test "${enable_fast_install+set}" = set; then : 7903 enableval=$enable_fast_install; p=${PACKAGE-default} 7904 case $enableval in 7905 yes) enable_fast_install=yes ;; 7906 no) enable_fast_install=no ;; 7907 *) 7908 enable_fast_install=no 7909 # Look at the argument we got. We use all the common list separators. 7910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7911 for pkg in $enableval; do 7912 IFS="$lt_save_ifs" 7913 if test "X$pkg" = "X$p"; then 7914 enable_fast_install=yes 7915 fi 7916 done 7917 IFS="$lt_save_ifs" 7918 ;; 7919 esac 7920else 7921 enable_fast_install=yes 7922fi 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934# This can be used to rebuild libtool when needed 7935LIBTOOL_DEPS="$ltmain" 7936 7937# Always use our own libtool. 7938LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969test -z "$LN_S" && LN_S="ln -s" 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984if test -n "${ZSH_VERSION+set}" ; then 7985 setopt NO_GLOB_SUBST 7986fi 7987 7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7989$as_echo_n "checking for objdir... " >&6; } 7990if ${lt_cv_objdir+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 rm -f .libs 2>/dev/null 7994mkdir .libs 2>/dev/null 7995if test -d .libs; then 7996 lt_cv_objdir=.libs 7997else 7998 # MS-DOS does not allow filenames that begin with a dot. 7999 lt_cv_objdir=_libs 8000fi 8001rmdir .libs 2>/dev/null 8002fi 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8004$as_echo "$lt_cv_objdir" >&6; } 8005objdir=$lt_cv_objdir 8006 8007 8008 8009 8010 8011cat >>confdefs.h <<_ACEOF 8012#define LT_OBJDIR "$lt_cv_objdir/" 8013_ACEOF 8014 8015 8016 8017 8018case $host_os in 8019aix3*) 8020 # AIX sometimes has problems with the GCC collect2 program. For some 8021 # reason, if we set the COLLECT_NAMES environment variable, the problems 8022 # vanish in a puff of smoke. 8023 if test "X${COLLECT_NAMES+set}" != Xset; then 8024 COLLECT_NAMES= 8025 export COLLECT_NAMES 8026 fi 8027 ;; 8028esac 8029 8030# Global variables: 8031ofile=libtool 8032can_build_shared=yes 8033 8034# All known linkers require a `.a' archive for static linking (except MSVC, 8035# which needs '.lib'). 8036libext=a 8037 8038with_gnu_ld="$lt_cv_prog_gnu_ld" 8039 8040old_CC="$CC" 8041old_CFLAGS="$CFLAGS" 8042 8043# Set sane defaults for various variables 8044test -z "$CC" && CC=cc 8045test -z "$LTCC" && LTCC=$CC 8046test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8047test -z "$LD" && LD=ld 8048test -z "$ac_objext" && ac_objext=o 8049 8050for cc_temp in $compiler""; do 8051 case $cc_temp in 8052 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8053 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8054 \-*) ;; 8055 *) break;; 8056 esac 8057done 8058cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8059 8060 8061# Only perform the check for file, if the check method requires it 8062test -z "$MAGIC_CMD" && MAGIC_CMD=file 8063case $deplibs_check_method in 8064file_magic*) 8065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8067$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8068if ${lt_cv_path_MAGIC_CMD+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 case $MAGIC_CMD in 8072[\\/*] | ?:[\\/]*) 8073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8074 ;; 8075*) 8076 lt_save_MAGIC_CMD="$MAGIC_CMD" 8077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8079 for ac_dir in $ac_dummy; do 8080 IFS="$lt_save_ifs" 8081 test -z "$ac_dir" && ac_dir=. 8082 if test -f $ac_dir/${ac_tool_prefix}file; then 8083 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8084 if test -n "$file_magic_test_file"; then 8085 case $deplibs_check_method in 8086 "file_magic "*) 8087 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8090 $EGREP "$file_magic_regex" > /dev/null; then 8091 : 8092 else 8093 cat <<_LT_EOF 1>&2 8094 8095*** Warning: the command libtool uses to detect shared libraries, 8096*** $file_magic_cmd, produces output that libtool cannot recognize. 8097*** The result is that libtool may fail to recognize shared libraries 8098*** as such. This will affect the creation of libtool libraries that 8099*** depend on shared libraries, but programs linked with such libtool 8100*** libraries will work regardless of this problem. Nevertheless, you 8101*** may want to report the problem to your system manager and/or to 8102*** bug-libtool@gnu.org 8103 8104_LT_EOF 8105 fi ;; 8106 esac 8107 fi 8108 break 8109 fi 8110 done 8111 IFS="$lt_save_ifs" 8112 MAGIC_CMD="$lt_save_MAGIC_CMD" 8113 ;; 8114esac 8115fi 8116 8117MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8118if test -n "$MAGIC_CMD"; then 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8120$as_echo "$MAGIC_CMD" >&6; } 8121else 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8123$as_echo "no" >&6; } 8124fi 8125 8126 8127 8128 8129 8130if test -z "$lt_cv_path_MAGIC_CMD"; then 8131 if test -n "$ac_tool_prefix"; then 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8133$as_echo_n "checking for file... " >&6; } 8134if ${lt_cv_path_MAGIC_CMD+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 case $MAGIC_CMD in 8138[\\/*] | ?:[\\/]*) 8139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8140 ;; 8141*) 8142 lt_save_MAGIC_CMD="$MAGIC_CMD" 8143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8145 for ac_dir in $ac_dummy; do 8146 IFS="$lt_save_ifs" 8147 test -z "$ac_dir" && ac_dir=. 8148 if test -f $ac_dir/file; then 8149 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8150 if test -n "$file_magic_test_file"; then 8151 case $deplibs_check_method in 8152 "file_magic "*) 8153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8156 $EGREP "$file_magic_regex" > /dev/null; then 8157 : 8158 else 8159 cat <<_LT_EOF 1>&2 8160 8161*** Warning: the command libtool uses to detect shared libraries, 8162*** $file_magic_cmd, produces output that libtool cannot recognize. 8163*** The result is that libtool may fail to recognize shared libraries 8164*** as such. This will affect the creation of libtool libraries that 8165*** depend on shared libraries, but programs linked with such libtool 8166*** libraries will work regardless of this problem. Nevertheless, you 8167*** may want to report the problem to your system manager and/or to 8168*** bug-libtool@gnu.org 8169 8170_LT_EOF 8171 fi ;; 8172 esac 8173 fi 8174 break 8175 fi 8176 done 8177 IFS="$lt_save_ifs" 8178 MAGIC_CMD="$lt_save_MAGIC_CMD" 8179 ;; 8180esac 8181fi 8182 8183MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8184if test -n "$MAGIC_CMD"; then 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8186$as_echo "$MAGIC_CMD" >&6; } 8187else 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8189$as_echo "no" >&6; } 8190fi 8191 8192 8193 else 8194 MAGIC_CMD=: 8195 fi 8196fi 8197 8198 fi 8199 ;; 8200esac 8201 8202# Use C for the default configuration in the libtool script 8203 8204lt_save_CC="$CC" 8205ac_ext=c 8206ac_cpp='$CPP $CPPFLAGS' 8207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8209ac_compiler_gnu=$ac_cv_c_compiler_gnu 8210 8211 8212# Source file extension for C test sources. 8213ac_ext=c 8214 8215# Object file extension for compiled C test sources. 8216objext=o 8217objext=$objext 8218 8219# Code to be used in simple compile tests 8220lt_simple_compile_test_code="int some_variable = 0;" 8221 8222# Code to be used in simple link tests 8223lt_simple_link_test_code='int main(){return(0);}' 8224 8225 8226 8227 8228 8229 8230 8231# If no C compiler was specified, use CC. 8232LTCC=${LTCC-"$CC"} 8233 8234# If no C compiler flags were specified, use CFLAGS. 8235LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8236 8237# Allow CC to be a program name with arguments. 8238compiler=$CC 8239 8240# Save the default compiler, since it gets overwritten when the other 8241# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8242compiler_DEFAULT=$CC 8243 8244# save warnings/boilerplate of simple test code 8245ac_outfile=conftest.$ac_objext 8246echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8247eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8248_lt_compiler_boilerplate=`cat conftest.err` 8249$RM conftest* 8250 8251ac_outfile=conftest.$ac_objext 8252echo "$lt_simple_link_test_code" >conftest.$ac_ext 8253eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8254_lt_linker_boilerplate=`cat conftest.err` 8255$RM -r conftest* 8256 8257 8258if test -n "$compiler"; then 8259 8260lt_prog_compiler_no_builtin_flag= 8261 8262if test "$GCC" = yes; then 8263 case $cc_basename in 8264 nvcc*) 8265 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8266 *) 8267 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8268 esac 8269 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8271$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8272if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8273 $as_echo_n "(cached) " >&6 8274else 8275 lt_cv_prog_compiler_rtti_exceptions=no 8276 ac_outfile=conftest.$ac_objext 8277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8278 lt_compiler_flag="-fno-rtti -fno-exceptions" 8279 # Insert the option either (1) after the last *FLAGS variable, or 8280 # (2) before a word containing "conftest.", or (3) at the end. 8281 # Note that $ac_compile itself does not contain backslashes and begins 8282 # with a dollar sign (not a hyphen), so the echo should work correctly. 8283 # The option is referenced via a variable to avoid confusing sed. 8284 lt_compile=`echo "$ac_compile" | $SED \ 8285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8287 -e 's:$: $lt_compiler_flag:'` 8288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8289 (eval "$lt_compile" 2>conftest.err) 8290 ac_status=$? 8291 cat conftest.err >&5 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8293 if (exit $ac_status) && test -s "$ac_outfile"; then 8294 # The compiler can only warn and ignore the option if not recognized 8295 # So say no if there are warnings other than the usual output. 8296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8299 lt_cv_prog_compiler_rtti_exceptions=yes 8300 fi 8301 fi 8302 $RM conftest* 8303 8304fi 8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8306$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8307 8308if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8309 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8310else 8311 : 8312fi 8313 8314fi 8315 8316 8317 8318 8319 8320 8321 lt_prog_compiler_wl= 8322lt_prog_compiler_pic= 8323lt_prog_compiler_static= 8324 8325 8326 if test "$GCC" = yes; then 8327 lt_prog_compiler_wl='-Wl,' 8328 lt_prog_compiler_static='-static' 8329 8330 case $host_os in 8331 aix*) 8332 # All AIX code is PIC. 8333 if test "$host_cpu" = ia64; then 8334 # AIX 5 now supports IA64 processor 8335 lt_prog_compiler_static='-Bstatic' 8336 fi 8337 ;; 8338 8339 amigaos*) 8340 case $host_cpu in 8341 powerpc) 8342 # see comment about AmigaOS4 .so support 8343 lt_prog_compiler_pic='-fPIC' 8344 ;; 8345 m68k) 8346 # FIXME: we need at least 68020 code to build shared libraries, but 8347 # adding the `-m68020' flag to GCC prevents building anything better, 8348 # like `-m68040'. 8349 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8350 ;; 8351 esac 8352 ;; 8353 8354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8355 # PIC is the default for these OSes. 8356 ;; 8357 8358 mingw* | cygwin* | pw32* | os2* | cegcc*) 8359 # This hack is so that the source file can tell whether it is being 8360 # built for inclusion in a dll (and should export symbols for example). 8361 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8362 # (--disable-auto-import) libraries 8363 lt_prog_compiler_pic='-DDLL_EXPORT' 8364 ;; 8365 8366 darwin* | rhapsody*) 8367 # PIC is the default on this platform 8368 # Common symbols not allowed in MH_DYLIB files 8369 lt_prog_compiler_pic='-fno-common' 8370 ;; 8371 8372 haiku*) 8373 # PIC is the default for Haiku. 8374 # The "-static" flag exists, but is broken. 8375 lt_prog_compiler_static= 8376 ;; 8377 8378 hpux*) 8379 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8380 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8381 # sets the default TLS model and affects inlining. 8382 case $host_cpu in 8383 hppa*64*) 8384 # +Z the default 8385 ;; 8386 *) 8387 lt_prog_compiler_pic='-fPIC' 8388 ;; 8389 esac 8390 ;; 8391 8392 interix[3-9]*) 8393 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8394 # Instead, we relocate shared libraries at runtime. 8395 ;; 8396 8397 msdosdjgpp*) 8398 # Just because we use GCC doesn't mean we suddenly get shared libraries 8399 # on systems that don't support them. 8400 lt_prog_compiler_can_build_shared=no 8401 enable_shared=no 8402 ;; 8403 8404 *nto* | *qnx*) 8405 # QNX uses GNU C++, but need to define -shared option too, otherwise 8406 # it will coredump. 8407 lt_prog_compiler_pic='-fPIC -shared' 8408 ;; 8409 8410 sysv4*MP*) 8411 if test -d /usr/nec; then 8412 lt_prog_compiler_pic=-Kconform_pic 8413 fi 8414 ;; 8415 8416 *) 8417 lt_prog_compiler_pic='-fPIC' 8418 ;; 8419 esac 8420 8421 case $cc_basename in 8422 nvcc*) # Cuda Compiler Driver 2.2 8423 lt_prog_compiler_wl='-Xlinker ' 8424 if test -n "$lt_prog_compiler_pic"; then 8425 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8426 fi 8427 ;; 8428 esac 8429 else 8430 # PORTME Check for flag to pass linker flags through the system compiler. 8431 case $host_os in 8432 aix*) 8433 lt_prog_compiler_wl='-Wl,' 8434 if test "$host_cpu" = ia64; then 8435 # AIX 5 now supports IA64 processor 8436 lt_prog_compiler_static='-Bstatic' 8437 else 8438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8439 fi 8440 ;; 8441 8442 mingw* | cygwin* | pw32* | os2* | cegcc*) 8443 # This hack is so that the source file can tell whether it is being 8444 # built for inclusion in a dll (and should export symbols for example). 8445 lt_prog_compiler_pic='-DDLL_EXPORT' 8446 ;; 8447 8448 hpux9* | hpux10* | hpux11*) 8449 lt_prog_compiler_wl='-Wl,' 8450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8451 # not for PA HP-UX. 8452 case $host_cpu in 8453 hppa*64*|ia64*) 8454 # +Z the default 8455 ;; 8456 *) 8457 lt_prog_compiler_pic='+Z' 8458 ;; 8459 esac 8460 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8461 lt_prog_compiler_static='${wl}-a ${wl}archive' 8462 ;; 8463 8464 irix5* | irix6* | nonstopux*) 8465 lt_prog_compiler_wl='-Wl,' 8466 # PIC (with -KPIC) is the default. 8467 lt_prog_compiler_static='-non_shared' 8468 ;; 8469 8470 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8471 case $cc_basename in 8472 # old Intel for x86_64 which still supported -KPIC. 8473 ecc*) 8474 lt_prog_compiler_wl='-Wl,' 8475 lt_prog_compiler_pic='-KPIC' 8476 lt_prog_compiler_static='-static' 8477 ;; 8478 # icc used to be incompatible with GCC. 8479 # ICC 10 doesn't accept -KPIC any more. 8480 icc* | ifort*) 8481 lt_prog_compiler_wl='-Wl,' 8482 lt_prog_compiler_pic='-fPIC' 8483 lt_prog_compiler_static='-static' 8484 ;; 8485 # Lahey Fortran 8.1. 8486 lf95*) 8487 lt_prog_compiler_wl='-Wl,' 8488 lt_prog_compiler_pic='--shared' 8489 lt_prog_compiler_static='--static' 8490 ;; 8491 nagfor*) 8492 # NAG Fortran compiler 8493 lt_prog_compiler_wl='-Wl,-Wl,,' 8494 lt_prog_compiler_pic='-PIC' 8495 lt_prog_compiler_static='-Bstatic' 8496 ;; 8497 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8498 # Portland Group compilers (*not* the Pentium gcc compiler, 8499 # which looks to be a dead project) 8500 lt_prog_compiler_wl='-Wl,' 8501 lt_prog_compiler_pic='-fpic' 8502 lt_prog_compiler_static='-Bstatic' 8503 ;; 8504 ccc*) 8505 lt_prog_compiler_wl='-Wl,' 8506 # All Alpha code is PIC. 8507 lt_prog_compiler_static='-non_shared' 8508 ;; 8509 xl* | bgxl* | bgf* | mpixl*) 8510 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8511 lt_prog_compiler_wl='-Wl,' 8512 lt_prog_compiler_pic='-qpic' 8513 lt_prog_compiler_static='-qstaticlink' 8514 ;; 8515 *) 8516 case `$CC -V 2>&1 | sed 5q` in 8517 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8518 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8519 lt_prog_compiler_pic='-KPIC' 8520 lt_prog_compiler_static='-Bstatic' 8521 lt_prog_compiler_wl='' 8522 ;; 8523 *Sun\ F* | *Sun*Fortran*) 8524 lt_prog_compiler_pic='-KPIC' 8525 lt_prog_compiler_static='-Bstatic' 8526 lt_prog_compiler_wl='-Qoption ld ' 8527 ;; 8528 *Sun\ C*) 8529 # Sun C 5.9 8530 lt_prog_compiler_pic='-KPIC' 8531 lt_prog_compiler_static='-Bstatic' 8532 lt_prog_compiler_wl='-Wl,' 8533 ;; 8534 *Intel*\ [CF]*Compiler*) 8535 lt_prog_compiler_wl='-Wl,' 8536 lt_prog_compiler_pic='-fPIC' 8537 lt_prog_compiler_static='-static' 8538 ;; 8539 *Portland\ Group*) 8540 lt_prog_compiler_wl='-Wl,' 8541 lt_prog_compiler_pic='-fpic' 8542 lt_prog_compiler_static='-Bstatic' 8543 ;; 8544 esac 8545 ;; 8546 esac 8547 ;; 8548 8549 newsos6) 8550 lt_prog_compiler_pic='-KPIC' 8551 lt_prog_compiler_static='-Bstatic' 8552 ;; 8553 8554 *nto* | *qnx*) 8555 # QNX uses GNU C++, but need to define -shared option too, otherwise 8556 # it will coredump. 8557 lt_prog_compiler_pic='-fPIC -shared' 8558 ;; 8559 8560 osf3* | osf4* | osf5*) 8561 lt_prog_compiler_wl='-Wl,' 8562 # All OSF/1 code is PIC. 8563 lt_prog_compiler_static='-non_shared' 8564 ;; 8565 8566 rdos*) 8567 lt_prog_compiler_static='-non_shared' 8568 ;; 8569 8570 solaris*) 8571 lt_prog_compiler_pic='-KPIC' 8572 lt_prog_compiler_static='-Bstatic' 8573 case $cc_basename in 8574 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8575 lt_prog_compiler_wl='-Qoption ld ';; 8576 *) 8577 lt_prog_compiler_wl='-Wl,';; 8578 esac 8579 ;; 8580 8581 sunos4*) 8582 lt_prog_compiler_wl='-Qoption ld ' 8583 lt_prog_compiler_pic='-PIC' 8584 lt_prog_compiler_static='-Bstatic' 8585 ;; 8586 8587 sysv4 | sysv4.2uw2* | sysv4.3*) 8588 lt_prog_compiler_wl='-Wl,' 8589 lt_prog_compiler_pic='-KPIC' 8590 lt_prog_compiler_static='-Bstatic' 8591 ;; 8592 8593 sysv4*MP*) 8594 if test -d /usr/nec ;then 8595 lt_prog_compiler_pic='-Kconform_pic' 8596 lt_prog_compiler_static='-Bstatic' 8597 fi 8598 ;; 8599 8600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8601 lt_prog_compiler_wl='-Wl,' 8602 lt_prog_compiler_pic='-KPIC' 8603 lt_prog_compiler_static='-Bstatic' 8604 ;; 8605 8606 unicos*) 8607 lt_prog_compiler_wl='-Wl,' 8608 lt_prog_compiler_can_build_shared=no 8609 ;; 8610 8611 uts4*) 8612 lt_prog_compiler_pic='-pic' 8613 lt_prog_compiler_static='-Bstatic' 8614 ;; 8615 8616 *) 8617 lt_prog_compiler_can_build_shared=no 8618 ;; 8619 esac 8620 fi 8621 8622case $host_os in 8623 # For platforms which do not support PIC, -DPIC is meaningless: 8624 *djgpp*) 8625 lt_prog_compiler_pic= 8626 ;; 8627 *) 8628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8629 ;; 8630esac 8631 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8633$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8634if ${lt_cv_prog_compiler_pic+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8638fi 8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8640$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8641lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8642 8643# 8644# Check to make sure the PIC flag actually works. 8645# 8646if test -n "$lt_prog_compiler_pic"; then 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8648$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8649if ${lt_cv_prog_compiler_pic_works+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 lt_cv_prog_compiler_pic_works=no 8653 ac_outfile=conftest.$ac_objext 8654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8655 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8656 # Insert the option either (1) after the last *FLAGS variable, or 8657 # (2) before a word containing "conftest.", or (3) at the end. 8658 # Note that $ac_compile itself does not contain backslashes and begins 8659 # with a dollar sign (not a hyphen), so the echo should work correctly. 8660 # The option is referenced via a variable to avoid confusing sed. 8661 lt_compile=`echo "$ac_compile" | $SED \ 8662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8664 -e 's:$: $lt_compiler_flag:'` 8665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8666 (eval "$lt_compile" 2>conftest.err) 8667 ac_status=$? 8668 cat conftest.err >&5 8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8670 if (exit $ac_status) && test -s "$ac_outfile"; then 8671 # The compiler can only warn and ignore the option if not recognized 8672 # So say no if there are warnings other than the usual output. 8673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8676 lt_cv_prog_compiler_pic_works=yes 8677 fi 8678 fi 8679 $RM conftest* 8680 8681fi 8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8683$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8684 8685if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8686 case $lt_prog_compiler_pic in 8687 "" | " "*) ;; 8688 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8689 esac 8690else 8691 lt_prog_compiler_pic= 8692 lt_prog_compiler_can_build_shared=no 8693fi 8694 8695fi 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707# 8708# Check to make sure the static flag actually works. 8709# 8710wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8712$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8713if ${lt_cv_prog_compiler_static_works+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 lt_cv_prog_compiler_static_works=no 8717 save_LDFLAGS="$LDFLAGS" 8718 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8719 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8721 # The linker can only warn and ignore the option if not recognized 8722 # So say no if there are warnings 8723 if test -s conftest.err; then 8724 # Append any errors to the config.log. 8725 cat conftest.err 1>&5 8726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8728 if diff conftest.exp conftest.er2 >/dev/null; then 8729 lt_cv_prog_compiler_static_works=yes 8730 fi 8731 else 8732 lt_cv_prog_compiler_static_works=yes 8733 fi 8734 fi 8735 $RM -r conftest* 8736 LDFLAGS="$save_LDFLAGS" 8737 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8740$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8741 8742if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8743 : 8744else 8745 lt_prog_compiler_static= 8746fi 8747 8748 8749 8750 8751 8752 8753 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8755$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8756if ${lt_cv_prog_compiler_c_o+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758else 8759 lt_cv_prog_compiler_c_o=no 8760 $RM -r conftest 2>/dev/null 8761 mkdir conftest 8762 cd conftest 8763 mkdir out 8764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8765 8766 lt_compiler_flag="-o out/conftest2.$ac_objext" 8767 # Insert the option either (1) after the last *FLAGS variable, or 8768 # (2) before a word containing "conftest.", or (3) at the end. 8769 # Note that $ac_compile itself does not contain backslashes and begins 8770 # with a dollar sign (not a hyphen), so the echo should work correctly. 8771 lt_compile=`echo "$ac_compile" | $SED \ 8772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8774 -e 's:$: $lt_compiler_flag:'` 8775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8776 (eval "$lt_compile" 2>out/conftest.err) 8777 ac_status=$? 8778 cat out/conftest.err >&5 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8780 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8781 then 8782 # The compiler can only warn and ignore the option if not recognized 8783 # So say no if there are warnings 8784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8787 lt_cv_prog_compiler_c_o=yes 8788 fi 8789 fi 8790 chmod u+w . 2>&5 8791 $RM conftest* 8792 # SGI C++ compiler will create directory out/ii_files/ for 8793 # template instantiation 8794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8795 $RM out/* && rmdir out 8796 cd .. 8797 $RM -r conftest 8798 $RM conftest* 8799 8800fi 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8802$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8803 8804 8805 8806 8807 8808 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8810$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8811if ${lt_cv_prog_compiler_c_o+:} false; then : 8812 $as_echo_n "(cached) " >&6 8813else 8814 lt_cv_prog_compiler_c_o=no 8815 $RM -r conftest 2>/dev/null 8816 mkdir conftest 8817 cd conftest 8818 mkdir out 8819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8820 8821 lt_compiler_flag="-o out/conftest2.$ac_objext" 8822 # Insert the option either (1) after the last *FLAGS variable, or 8823 # (2) before a word containing "conftest.", or (3) at the end. 8824 # Note that $ac_compile itself does not contain backslashes and begins 8825 # with a dollar sign (not a hyphen), so the echo should work correctly. 8826 lt_compile=`echo "$ac_compile" | $SED \ 8827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8829 -e 's:$: $lt_compiler_flag:'` 8830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8831 (eval "$lt_compile" 2>out/conftest.err) 8832 ac_status=$? 8833 cat out/conftest.err >&5 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8835 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8836 then 8837 # The compiler can only warn and ignore the option if not recognized 8838 # So say no if there are warnings 8839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8842 lt_cv_prog_compiler_c_o=yes 8843 fi 8844 fi 8845 chmod u+w . 2>&5 8846 $RM conftest* 8847 # SGI C++ compiler will create directory out/ii_files/ for 8848 # template instantiation 8849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8850 $RM out/* && rmdir out 8851 cd .. 8852 $RM -r conftest 8853 $RM conftest* 8854 8855fi 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8857$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8858 8859 8860 8861 8862hard_links="nottested" 8863if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8864 # do not overwrite the value of need_locks provided by the user 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8866$as_echo_n "checking if we can lock with hard links... " >&6; } 8867 hard_links=yes 8868 $RM conftest* 8869 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8870 touch conftest.a 8871 ln conftest.a conftest.b 2>&5 || hard_links=no 8872 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8874$as_echo "$hard_links" >&6; } 8875 if test "$hard_links" = no; then 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8877$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8878 need_locks=warn 8879 fi 8880else 8881 need_locks=no 8882fi 8883 8884 8885 8886 8887 8888 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8890$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8891 8892 runpath_var= 8893 allow_undefined_flag= 8894 always_export_symbols=no 8895 archive_cmds= 8896 archive_expsym_cmds= 8897 compiler_needs_object=no 8898 enable_shared_with_static_runtimes=no 8899 export_dynamic_flag_spec= 8900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8901 hardcode_automatic=no 8902 hardcode_direct=no 8903 hardcode_direct_absolute=no 8904 hardcode_libdir_flag_spec= 8905 hardcode_libdir_separator= 8906 hardcode_minus_L=no 8907 hardcode_shlibpath_var=unsupported 8908 inherit_rpath=no 8909 link_all_deplibs=unknown 8910 module_cmds= 8911 module_expsym_cmds= 8912 old_archive_from_new_cmds= 8913 old_archive_from_expsyms_cmds= 8914 thread_safe_flag_spec= 8915 whole_archive_flag_spec= 8916 # include_expsyms should be a list of space-separated symbols to be *always* 8917 # included in the symbol list 8918 include_expsyms= 8919 # exclude_expsyms can be an extended regexp of symbols to exclude 8920 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8921 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8922 # as well as any symbol that contains `d'. 8923 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8925 # platforms (ab)use it in PIC code, but their linkers get confused if 8926 # the symbol is explicitly referenced. Since portable code cannot 8927 # rely on this symbol name, it's probably fine to never include it in 8928 # preloaded symbol tables. 8929 # Exclude shared library initialization/finalization symbols. 8930 extract_expsyms_cmds= 8931 8932 case $host_os in 8933 cygwin* | mingw* | pw32* | cegcc*) 8934 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8935 # When not using gcc, we currently assume that we are using 8936 # Microsoft Visual C++. 8937 if test "$GCC" != yes; then 8938 with_gnu_ld=no 8939 fi 8940 ;; 8941 interix*) 8942 # we just hope/assume this is gcc and not c89 (= MSVC++) 8943 with_gnu_ld=yes 8944 ;; 8945 openbsd*) 8946 with_gnu_ld=no 8947 ;; 8948 esac 8949 8950 ld_shlibs=yes 8951 8952 # On some targets, GNU ld is compatible enough with the native linker 8953 # that we're better off using the native interface for both. 8954 lt_use_gnu_ld_interface=no 8955 if test "$with_gnu_ld" = yes; then 8956 case $host_os in 8957 aix*) 8958 # The AIX port of GNU ld has always aspired to compatibility 8959 # with the native linker. However, as the warning in the GNU ld 8960 # block says, versions before 2.19.5* couldn't really create working 8961 # shared libraries, regardless of the interface used. 8962 case `$LD -v 2>&1` in 8963 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8964 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8965 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8966 *) 8967 lt_use_gnu_ld_interface=yes 8968 ;; 8969 esac 8970 ;; 8971 *) 8972 lt_use_gnu_ld_interface=yes 8973 ;; 8974 esac 8975 fi 8976 8977 if test "$lt_use_gnu_ld_interface" = yes; then 8978 # If archive_cmds runs LD, not CC, wlarc should be empty 8979 wlarc='${wl}' 8980 8981 # Set some defaults for GNU ld with shared library support. These 8982 # are reset later if shared libraries are not supported. Putting them 8983 # here allows them to be overridden if necessary. 8984 runpath_var=LD_RUN_PATH 8985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8986 export_dynamic_flag_spec='${wl}--export-dynamic' 8987 # ancient GNU ld didn't support --whole-archive et. al. 8988 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8989 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8990 else 8991 whole_archive_flag_spec= 8992 fi 8993 supports_anon_versioning=no 8994 case `$LD -v 2>&1` in 8995 *GNU\ gold*) supports_anon_versioning=yes ;; 8996 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8997 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8998 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8999 *\ 2.11.*) ;; # other 2.11 versions 9000 *) supports_anon_versioning=yes ;; 9001 esac 9002 9003 # See if GNU ld supports shared libraries. 9004 case $host_os in 9005 aix[3-9]*) 9006 # On AIX/PPC, the GNU linker is very broken 9007 if test "$host_cpu" != ia64; then 9008 ld_shlibs=no 9009 cat <<_LT_EOF 1>&2 9010 9011*** Warning: the GNU linker, at least up to release 2.19, is reported 9012*** to be unable to reliably create shared libraries on AIX. 9013*** Therefore, libtool is disabling shared libraries support. If you 9014*** really care for shared libraries, you may want to install binutils 9015*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9016*** You will then need to restart the configuration process. 9017 9018_LT_EOF 9019 fi 9020 ;; 9021 9022 amigaos*) 9023 case $host_cpu in 9024 powerpc) 9025 # see comment about AmigaOS4 .so support 9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9027 archive_expsym_cmds='' 9028 ;; 9029 m68k) 9030 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)' 9031 hardcode_libdir_flag_spec='-L$libdir' 9032 hardcode_minus_L=yes 9033 ;; 9034 esac 9035 ;; 9036 9037 beos*) 9038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9039 allow_undefined_flag=unsupported 9040 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9041 # support --undefined. This deserves some investigation. FIXME 9042 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9043 else 9044 ld_shlibs=no 9045 fi 9046 ;; 9047 9048 cygwin* | mingw* | pw32* | cegcc*) 9049 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9050 # as there is no search path for DLLs. 9051 hardcode_libdir_flag_spec='-L$libdir' 9052 export_dynamic_flag_spec='${wl}--export-all-symbols' 9053 allow_undefined_flag=unsupported 9054 always_export_symbols=no 9055 enable_shared_with_static_runtimes=yes 9056 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' 9057 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9058 9059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9061 # If the export-symbols file already is a .def file (1st line 9062 # is EXPORTS), use it as is; otherwise, prepend... 9063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9064 cp $export_symbols $output_objdir/$soname.def; 9065 else 9066 echo EXPORTS > $output_objdir/$soname.def; 9067 cat $export_symbols >> $output_objdir/$soname.def; 9068 fi~ 9069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9070 else 9071 ld_shlibs=no 9072 fi 9073 ;; 9074 9075 haiku*) 9076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9077 link_all_deplibs=yes 9078 ;; 9079 9080 interix[3-9]*) 9081 hardcode_direct=no 9082 hardcode_shlibpath_var=no 9083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9084 export_dynamic_flag_spec='${wl}-E' 9085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9086 # Instead, shared libraries are loaded at an image base (0x10000000 by 9087 # default) and relocated if they conflict, which is a slow very memory 9088 # consuming and fragmenting process. To avoid this, we pick a random, 9089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9090 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9092 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' 9093 ;; 9094 9095 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9096 tmp_diet=no 9097 if test "$host_os" = linux-dietlibc; then 9098 case $cc_basename in 9099 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9100 esac 9101 fi 9102 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9103 && test "$tmp_diet" = no 9104 then 9105 tmp_addflag=' $pic_flag' 9106 tmp_sharedflag='-shared' 9107 case $cc_basename,$host_cpu in 9108 pgcc*) # Portland Group C compiler 9109 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' 9110 tmp_addflag=' $pic_flag' 9111 ;; 9112 pgf77* | pgf90* | pgf95* | pgfortran*) 9113 # Portland Group f77 and f90 compilers 9114 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' 9115 tmp_addflag=' $pic_flag -Mnomain' ;; 9116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9117 tmp_addflag=' -i_dynamic' ;; 9118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9119 tmp_addflag=' -i_dynamic -nofor_main' ;; 9120 ifc* | ifort*) # Intel Fortran compiler 9121 tmp_addflag=' -nofor_main' ;; 9122 lf95*) # Lahey Fortran 8.1 9123 whole_archive_flag_spec= 9124 tmp_sharedflag='--shared' ;; 9125 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9126 tmp_sharedflag='-qmkshrobj' 9127 tmp_addflag= ;; 9128 nvcc*) # Cuda Compiler Driver 2.2 9129 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' 9130 compiler_needs_object=yes 9131 ;; 9132 esac 9133 case `$CC -V 2>&1 | sed 5q` in 9134 *Sun\ C*) # Sun C 5.9 9135 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' 9136 compiler_needs_object=yes 9137 tmp_sharedflag='-G' ;; 9138 *Sun\ F*) # Sun Fortran 8.3 9139 tmp_sharedflag='-G' ;; 9140 esac 9141 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9142 9143 if test "x$supports_anon_versioning" = xyes; then 9144 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9146 echo "local: *; };" >> $output_objdir/$libname.ver~ 9147 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9148 fi 9149 9150 case $cc_basename in 9151 xlf* | bgf* | bgxlf* | mpixlf*) 9152 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9153 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9155 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9156 if test "x$supports_anon_versioning" = xyes; then 9157 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9159 echo "local: *; };" >> $output_objdir/$libname.ver~ 9160 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9161 fi 9162 ;; 9163 esac 9164 else 9165 ld_shlibs=no 9166 fi 9167 ;; 9168 9169 netbsd*) 9170 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9171 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9172 wlarc= 9173 else 9174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9175 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9176 fi 9177 ;; 9178 9179 solaris*) 9180 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9181 ld_shlibs=no 9182 cat <<_LT_EOF 1>&2 9183 9184*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9185*** create shared libraries on Solaris systems. Therefore, libtool 9186*** is disabling shared libraries support. We urge you to upgrade GNU 9187*** binutils to release 2.9.1 or newer. Another option is to modify 9188*** your PATH or compiler configuration so that the native linker is 9189*** used, and then restart. 9190 9191_LT_EOF 9192 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9193 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9194 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9195 else 9196 ld_shlibs=no 9197 fi 9198 ;; 9199 9200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9201 case `$LD -v 2>&1` in 9202 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9203 ld_shlibs=no 9204 cat <<_LT_EOF 1>&2 9205 9206*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9207*** reliably create shared libraries on SCO systems. Therefore, libtool 9208*** is disabling shared libraries support. We urge you to upgrade GNU 9209*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9210*** your PATH or compiler configuration so that the native linker is 9211*** used, and then restart. 9212 9213_LT_EOF 9214 ;; 9215 *) 9216 # For security reasons, it is highly recommended that you always 9217 # use absolute paths for naming shared libraries, and exclude the 9218 # DT_RUNPATH tag from executables and libraries. But doing so 9219 # requires that you compile everything twice, which is a pain. 9220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9224 else 9225 ld_shlibs=no 9226 fi 9227 ;; 9228 esac 9229 ;; 9230 9231 sunos4*) 9232 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9233 wlarc= 9234 hardcode_direct=yes 9235 hardcode_shlibpath_var=no 9236 ;; 9237 9238 *) 9239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9241 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9242 else 9243 ld_shlibs=no 9244 fi 9245 ;; 9246 esac 9247 9248 if test "$ld_shlibs" = no; then 9249 runpath_var= 9250 hardcode_libdir_flag_spec= 9251 export_dynamic_flag_spec= 9252 whole_archive_flag_spec= 9253 fi 9254 else 9255 # PORTME fill in a description of your system's linker (not GNU ld) 9256 case $host_os in 9257 aix3*) 9258 allow_undefined_flag=unsupported 9259 always_export_symbols=yes 9260 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' 9261 # Note: this linker hardcodes the directories in LIBPATH if there 9262 # are no directories specified by -L. 9263 hardcode_minus_L=yes 9264 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9265 # Neither direct hardcoding nor static linking is supported with a 9266 # broken collect2. 9267 hardcode_direct=unsupported 9268 fi 9269 ;; 9270 9271 aix[4-9]*) 9272 if test "$host_cpu" = ia64; then 9273 # On IA64, the linker does run time linking by default, so we don't 9274 # have to do anything special. 9275 aix_use_runtimelinking=no 9276 exp_sym_flag='-Bexport' 9277 no_entry_flag="" 9278 else 9279 # If we're using GNU nm, then we don't want the "-C" option. 9280 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9281 # Also, AIX nm treats weak defined symbols like other global 9282 # defined symbols, whereas GNU nm marks them as "W". 9283 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9284 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' 9285 else 9286 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' 9287 fi 9288 aix_use_runtimelinking=no 9289 9290 # Test if we are trying to use run time linking or normal 9291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9292 # need to do runtime linking. 9293 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9294 for ld_flag in $LDFLAGS; do 9295 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9296 aix_use_runtimelinking=yes 9297 break 9298 fi 9299 done 9300 ;; 9301 esac 9302 9303 exp_sym_flag='-bexport' 9304 no_entry_flag='-bnoentry' 9305 fi 9306 9307 # When large executables or shared objects are built, AIX ld can 9308 # have problems creating the table of contents. If linking a library 9309 # or program results in "error TOC overflow" add -mminimal-toc to 9310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9312 9313 archive_cmds='' 9314 hardcode_direct=yes 9315 hardcode_direct_absolute=yes 9316 hardcode_libdir_separator=':' 9317 link_all_deplibs=yes 9318 file_list_spec='${wl}-f,' 9319 9320 if test "$GCC" = yes; then 9321 case $host_os in aix4.[012]|aix4.[012].*) 9322 # We only want to do this on AIX 4.2 and lower, the check 9323 # below for broken collect2 doesn't work under 4.3+ 9324 collect2name=`${CC} -print-prog-name=collect2` 9325 if test -f "$collect2name" && 9326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9327 then 9328 # We have reworked collect2 9329 : 9330 else 9331 # We have old collect2 9332 hardcode_direct=unsupported 9333 # It fails to find uninstalled libraries when the uninstalled 9334 # path is not listed in the libpath. Setting hardcode_minus_L 9335 # to unsupported forces relinking 9336 hardcode_minus_L=yes 9337 hardcode_libdir_flag_spec='-L$libdir' 9338 hardcode_libdir_separator= 9339 fi 9340 ;; 9341 esac 9342 shared_flag='-shared' 9343 if test "$aix_use_runtimelinking" = yes; then 9344 shared_flag="$shared_flag "'${wl}-G' 9345 fi 9346 else 9347 # not using gcc 9348 if test "$host_cpu" = ia64; then 9349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9350 # chokes on -Wl,-G. The following line is correct: 9351 shared_flag='-G' 9352 else 9353 if test "$aix_use_runtimelinking" = yes; then 9354 shared_flag='${wl}-G' 9355 else 9356 shared_flag='${wl}-bM:SRE' 9357 fi 9358 fi 9359 fi 9360 9361 export_dynamic_flag_spec='${wl}-bexpall' 9362 # It seems that -bexpall does not export symbols beginning with 9363 # underscore (_), so it is better to generate a list of symbols to export. 9364 always_export_symbols=yes 9365 if test "$aix_use_runtimelinking" = yes; then 9366 # Warning - without using the other runtime loading flags (-brtl), 9367 # -berok will link without error, but may produce a broken library. 9368 allow_undefined_flag='-berok' 9369 # Determine the default libpath from the value encoded in an 9370 # empty executable. 9371 if test "${lt_cv_aix_libpath+set}" = set; then 9372 aix_libpath=$lt_cv_aix_libpath 9373else 9374 if ${lt_cv_aix_libpath_+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376else 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378/* end confdefs.h. */ 9379 9380int 9381main () 9382{ 9383 9384 ; 9385 return 0; 9386} 9387_ACEOF 9388if ac_fn_c_try_link "$LINENO"; then : 9389 9390 lt_aix_libpath_sed=' 9391 /Import File Strings/,/^$/ { 9392 /^0/ { 9393 s/^0 *\([^ ]*\) *$/\1/ 9394 p 9395 } 9396 }' 9397 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9398 # Check for a 64-bit object if we didn't find anything. 9399 if test -z "$lt_cv_aix_libpath_"; then 9400 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9401 fi 9402fi 9403rm -f core conftest.err conftest.$ac_objext \ 9404 conftest$ac_exeext conftest.$ac_ext 9405 if test -z "$lt_cv_aix_libpath_"; then 9406 lt_cv_aix_libpath_="/usr/lib:/lib" 9407 fi 9408 9409fi 9410 9411 aix_libpath=$lt_cv_aix_libpath_ 9412fi 9413 9414 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9415 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" 9416 else 9417 if test "$host_cpu" = ia64; then 9418 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9419 allow_undefined_flag="-z nodefs" 9420 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" 9421 else 9422 # Determine the default libpath from the value encoded in an 9423 # empty executable. 9424 if test "${lt_cv_aix_libpath+set}" = set; then 9425 aix_libpath=$lt_cv_aix_libpath 9426else 9427 if ${lt_cv_aix_libpath_+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431/* end confdefs.h. */ 9432 9433int 9434main () 9435{ 9436 9437 ; 9438 return 0; 9439} 9440_ACEOF 9441if ac_fn_c_try_link "$LINENO"; then : 9442 9443 lt_aix_libpath_sed=' 9444 /Import File Strings/,/^$/ { 9445 /^0/ { 9446 s/^0 *\([^ ]*\) *$/\1/ 9447 p 9448 } 9449 }' 9450 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9451 # Check for a 64-bit object if we didn't find anything. 9452 if test -z "$lt_cv_aix_libpath_"; then 9453 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9454 fi 9455fi 9456rm -f core conftest.err conftest.$ac_objext \ 9457 conftest$ac_exeext conftest.$ac_ext 9458 if test -z "$lt_cv_aix_libpath_"; then 9459 lt_cv_aix_libpath_="/usr/lib:/lib" 9460 fi 9461 9462fi 9463 9464 aix_libpath=$lt_cv_aix_libpath_ 9465fi 9466 9467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9468 # Warning - without using the other run time loading flags, 9469 # -berok will link without error, but may produce a broken library. 9470 no_undefined_flag=' ${wl}-bernotok' 9471 allow_undefined_flag=' ${wl}-berok' 9472 if test "$with_gnu_ld" = yes; then 9473 # We only use this code for GNU lds that support --whole-archive. 9474 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9475 else 9476 # Exported symbols can be pulled into shared objects from archives 9477 whole_archive_flag_spec='$convenience' 9478 fi 9479 archive_cmds_need_lc=yes 9480 # This is similar to how AIX traditionally builds its shared libraries. 9481 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' 9482 fi 9483 fi 9484 ;; 9485 9486 amigaos*) 9487 case $host_cpu in 9488 powerpc) 9489 # see comment about AmigaOS4 .so support 9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9491 archive_expsym_cmds='' 9492 ;; 9493 m68k) 9494 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)' 9495 hardcode_libdir_flag_spec='-L$libdir' 9496 hardcode_minus_L=yes 9497 ;; 9498 esac 9499 ;; 9500 9501 bsdi[45]*) 9502 export_dynamic_flag_spec=-rdynamic 9503 ;; 9504 9505 cygwin* | mingw* | pw32* | cegcc*) 9506 # When not using gcc, we currently assume that we are using 9507 # Microsoft Visual C++. 9508 # hardcode_libdir_flag_spec is actually meaningless, as there is 9509 # no search path for DLLs. 9510 case $cc_basename in 9511 cl*) 9512 # Native MSVC 9513 hardcode_libdir_flag_spec=' ' 9514 allow_undefined_flag=unsupported 9515 always_export_symbols=yes 9516 file_list_spec='@' 9517 # Tell ltmain to make .lib files, not .a files. 9518 libext=lib 9519 # Tell ltmain to make .dll files, not .so files. 9520 shrext_cmds=".dll" 9521 # FIXME: Setting linknames here is a bad hack. 9522 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9523 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9524 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9525 else 9526 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9527 fi~ 9528 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9529 linknames=' 9530 # The linker will not automatically build a static lib if we build a DLL. 9531 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9532 enable_shared_with_static_runtimes=yes 9533 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9535 # Don't use ranlib 9536 old_postinstall_cmds='chmod 644 $oldlib' 9537 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9538 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9539 case $lt_outputfile in 9540 *.exe|*.EXE) ;; 9541 *) 9542 lt_outputfile="$lt_outputfile.exe" 9543 lt_tool_outputfile="$lt_tool_outputfile.exe" 9544 ;; 9545 esac~ 9546 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9547 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9548 $RM "$lt_outputfile.manifest"; 9549 fi' 9550 ;; 9551 *) 9552 # Assume MSVC wrapper 9553 hardcode_libdir_flag_spec=' ' 9554 allow_undefined_flag=unsupported 9555 # Tell ltmain to make .lib files, not .a files. 9556 libext=lib 9557 # Tell ltmain to make .dll files, not .so files. 9558 shrext_cmds=".dll" 9559 # FIXME: Setting linknames here is a bad hack. 9560 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9561 # The linker will automatically build a .lib file if we build a DLL. 9562 old_archive_from_new_cmds='true' 9563 # FIXME: Should let the user specify the lib program. 9564 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9565 enable_shared_with_static_runtimes=yes 9566 ;; 9567 esac 9568 ;; 9569 9570 darwin* | rhapsody*) 9571 9572 9573 archive_cmds_need_lc=no 9574 hardcode_direct=no 9575 hardcode_automatic=yes 9576 hardcode_shlibpath_var=unsupported 9577 if test "$lt_cv_ld_force_load" = "yes"; then 9578 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\"`' 9579 9580 else 9581 whole_archive_flag_spec='' 9582 fi 9583 link_all_deplibs=yes 9584 allow_undefined_flag="$_lt_dar_allow_undefined" 9585 case $cc_basename in 9586 ifort*) _lt_dar_can_shared=yes ;; 9587 *) _lt_dar_can_shared=$GCC ;; 9588 esac 9589 if test "$_lt_dar_can_shared" = "yes"; then 9590 output_verbose_link_cmd=func_echo_all 9591 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9592 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9593 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}" 9594 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}" 9595 9596 else 9597 ld_shlibs=no 9598 fi 9599 9600 ;; 9601 9602 dgux*) 9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9604 hardcode_libdir_flag_spec='-L$libdir' 9605 hardcode_shlibpath_var=no 9606 ;; 9607 9608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9609 # support. Future versions do this automatically, but an explicit c++rt0.o 9610 # does not break anything, and helps significantly (at the cost of a little 9611 # extra space). 9612 freebsd2.2*) 9613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9614 hardcode_libdir_flag_spec='-R$libdir' 9615 hardcode_direct=yes 9616 hardcode_shlibpath_var=no 9617 ;; 9618 9619 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9620 freebsd2.*) 9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9622 hardcode_direct=yes 9623 hardcode_minus_L=yes 9624 hardcode_shlibpath_var=no 9625 ;; 9626 9627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9628 freebsd* | dragonfly*) 9629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9630 hardcode_libdir_flag_spec='-R$libdir' 9631 hardcode_direct=yes 9632 hardcode_shlibpath_var=no 9633 ;; 9634 9635 hpux9*) 9636 if test "$GCC" = yes; then 9637 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' 9638 else 9639 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' 9640 fi 9641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9642 hardcode_libdir_separator=: 9643 hardcode_direct=yes 9644 9645 # hardcode_minus_L: Not really in the search PATH, 9646 # but as the default location of the library. 9647 hardcode_minus_L=yes 9648 export_dynamic_flag_spec='${wl}-E' 9649 ;; 9650 9651 hpux10*) 9652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9653 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9654 else 9655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9656 fi 9657 if test "$with_gnu_ld" = no; then 9658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9659 hardcode_libdir_separator=: 9660 hardcode_direct=yes 9661 hardcode_direct_absolute=yes 9662 export_dynamic_flag_spec='${wl}-E' 9663 # hardcode_minus_L: Not really in the search PATH, 9664 # but as the default location of the library. 9665 hardcode_minus_L=yes 9666 fi 9667 ;; 9668 9669 hpux11*) 9670 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9671 case $host_cpu in 9672 hppa*64*) 9673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9674 ;; 9675 ia64*) 9676 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9677 ;; 9678 *) 9679 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9680 ;; 9681 esac 9682 else 9683 case $host_cpu in 9684 hppa*64*) 9685 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9686 ;; 9687 ia64*) 9688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9689 ;; 9690 *) 9691 9692 # Older versions of the 11.00 compiler do not understand -b yet 9693 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9695$as_echo_n "checking if $CC understands -b... " >&6; } 9696if ${lt_cv_prog_compiler__b+:} false; then : 9697 $as_echo_n "(cached) " >&6 9698else 9699 lt_cv_prog_compiler__b=no 9700 save_LDFLAGS="$LDFLAGS" 9701 LDFLAGS="$LDFLAGS -b" 9702 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9704 # The linker can only warn and ignore the option if not recognized 9705 # So say no if there are warnings 9706 if test -s conftest.err; then 9707 # Append any errors to the config.log. 9708 cat conftest.err 1>&5 9709 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9711 if diff conftest.exp conftest.er2 >/dev/null; then 9712 lt_cv_prog_compiler__b=yes 9713 fi 9714 else 9715 lt_cv_prog_compiler__b=yes 9716 fi 9717 fi 9718 $RM -r conftest* 9719 LDFLAGS="$save_LDFLAGS" 9720 9721fi 9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9723$as_echo "$lt_cv_prog_compiler__b" >&6; } 9724 9725if test x"$lt_cv_prog_compiler__b" = xyes; then 9726 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9727else 9728 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9729fi 9730 9731 ;; 9732 esac 9733 fi 9734 if test "$with_gnu_ld" = no; then 9735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9736 hardcode_libdir_separator=: 9737 9738 case $host_cpu in 9739 hppa*64*|ia64*) 9740 hardcode_direct=no 9741 hardcode_shlibpath_var=no 9742 ;; 9743 *) 9744 hardcode_direct=yes 9745 hardcode_direct_absolute=yes 9746 export_dynamic_flag_spec='${wl}-E' 9747 9748 # hardcode_minus_L: Not really in the search PATH, 9749 # but as the default location of the library. 9750 hardcode_minus_L=yes 9751 ;; 9752 esac 9753 fi 9754 ;; 9755 9756 irix5* | irix6* | nonstopux*) 9757 if test "$GCC" = yes; then 9758 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' 9759 # Try to use the -exported_symbol ld option, if it does not 9760 # work, assume that -exports_file does not work either and 9761 # implicitly export all symbols. 9762 # This should be the same for all languages, so no per-tag cache variable. 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9764$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9765if ${lt_cv_irix_exported_symbol+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 save_LDFLAGS="$LDFLAGS" 9769 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9771/* end confdefs.h. */ 9772int foo (void) { return 0; } 9773_ACEOF 9774if ac_fn_c_try_link "$LINENO"; then : 9775 lt_cv_irix_exported_symbol=yes 9776else 9777 lt_cv_irix_exported_symbol=no 9778fi 9779rm -f core conftest.err conftest.$ac_objext \ 9780 conftest$ac_exeext conftest.$ac_ext 9781 LDFLAGS="$save_LDFLAGS" 9782fi 9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9784$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9785 if test "$lt_cv_irix_exported_symbol" = yes; then 9786 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' 9787 fi 9788 else 9789 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' 9790 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' 9791 fi 9792 archive_cmds_need_lc='no' 9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9794 hardcode_libdir_separator=: 9795 inherit_rpath=yes 9796 link_all_deplibs=yes 9797 ;; 9798 9799 netbsd*) 9800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9802 else 9803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9804 fi 9805 hardcode_libdir_flag_spec='-R$libdir' 9806 hardcode_direct=yes 9807 hardcode_shlibpath_var=no 9808 ;; 9809 9810 newsos6) 9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9812 hardcode_direct=yes 9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9814 hardcode_libdir_separator=: 9815 hardcode_shlibpath_var=no 9816 ;; 9817 9818 *nto* | *qnx*) 9819 ;; 9820 9821 openbsd*) 9822 if test -f /usr/libexec/ld.so; then 9823 hardcode_direct=yes 9824 hardcode_shlibpath_var=no 9825 hardcode_direct_absolute=yes 9826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9828 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9830 export_dynamic_flag_spec='${wl}-E' 9831 else 9832 case $host_os in 9833 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9835 hardcode_libdir_flag_spec='-R$libdir' 9836 ;; 9837 *) 9838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9840 ;; 9841 esac 9842 fi 9843 else 9844 ld_shlibs=no 9845 fi 9846 ;; 9847 9848 os2*) 9849 hardcode_libdir_flag_spec='-L$libdir' 9850 hardcode_minus_L=yes 9851 allow_undefined_flag=unsupported 9852 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' 9853 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9854 ;; 9855 9856 osf3*) 9857 if test "$GCC" = yes; then 9858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9859 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' 9860 else 9861 allow_undefined_flag=' -expect_unresolved \*' 9862 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' 9863 fi 9864 archive_cmds_need_lc='no' 9865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9866 hardcode_libdir_separator=: 9867 ;; 9868 9869 osf4* | osf5*) # as osf3* with the addition of -msym flag 9870 if test "$GCC" = yes; then 9871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9872 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' 9873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9874 else 9875 allow_undefined_flag=' -expect_unresolved \*' 9876 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' 9877 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~ 9878 $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' 9879 9880 # Both c and cxx compiler support -rpath directly 9881 hardcode_libdir_flag_spec='-rpath $libdir' 9882 fi 9883 archive_cmds_need_lc='no' 9884 hardcode_libdir_separator=: 9885 ;; 9886 9887 solaris*) 9888 no_undefined_flag=' -z defs' 9889 if test "$GCC" = yes; then 9890 wlarc='${wl}' 9891 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9893 $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' 9894 else 9895 case `$CC -V 2>&1` in 9896 *"Compilers 5.0"*) 9897 wlarc='' 9898 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9901 ;; 9902 *) 9903 wlarc='${wl}' 9904 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9906 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9907 ;; 9908 esac 9909 fi 9910 hardcode_libdir_flag_spec='-R$libdir' 9911 hardcode_shlibpath_var=no 9912 case $host_os in 9913 solaris2.[0-5] | solaris2.[0-5].*) ;; 9914 *) 9915 # The compiler driver will combine and reorder linker options, 9916 # but understands `-z linker_flag'. GCC discards it without `$wl', 9917 # but is careful enough not to reorder. 9918 # Supported since Solaris 2.6 (maybe 2.5.1?) 9919 if test "$GCC" = yes; then 9920 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9921 else 9922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9923 fi 9924 ;; 9925 esac 9926 link_all_deplibs=yes 9927 ;; 9928 9929 sunos4*) 9930 if test "x$host_vendor" = xsequent; then 9931 # Use $CC to link under sequent, because it throws in some extra .o 9932 # files that make .init and .fini sections work. 9933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9934 else 9935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9936 fi 9937 hardcode_libdir_flag_spec='-L$libdir' 9938 hardcode_direct=yes 9939 hardcode_minus_L=yes 9940 hardcode_shlibpath_var=no 9941 ;; 9942 9943 sysv4) 9944 case $host_vendor in 9945 sni) 9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9947 hardcode_direct=yes # is this really true??? 9948 ;; 9949 siemens) 9950 ## LD is ld it makes a PLAMLIB 9951 ## CC just makes a GrossModule. 9952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9953 reload_cmds='$CC -r -o $output$reload_objs' 9954 hardcode_direct=no 9955 ;; 9956 motorola) 9957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9959 ;; 9960 esac 9961 runpath_var='LD_RUN_PATH' 9962 hardcode_shlibpath_var=no 9963 ;; 9964 9965 sysv4.3*) 9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9967 hardcode_shlibpath_var=no 9968 export_dynamic_flag_spec='-Bexport' 9969 ;; 9970 9971 sysv4*MP*) 9972 if test -d /usr/nec; then 9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9974 hardcode_shlibpath_var=no 9975 runpath_var=LD_RUN_PATH 9976 hardcode_runpath_var=yes 9977 ld_shlibs=yes 9978 fi 9979 ;; 9980 9981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9982 no_undefined_flag='${wl}-z,text' 9983 archive_cmds_need_lc=no 9984 hardcode_shlibpath_var=no 9985 runpath_var='LD_RUN_PATH' 9986 9987 if test "$GCC" = yes; then 9988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9990 else 9991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9993 fi 9994 ;; 9995 9996 sysv5* | sco3.2v5* | sco5v6*) 9997 # Note: We can NOT use -z defs as we might desire, because we do not 9998 # link with -lc, and that would cause any symbols used from libc to 9999 # always be unresolved, which means just about no library would 10000 # ever link correctly. If we're not using GNU ld we use -z text 10001 # though, which does catch some bad symbols but isn't as heavy-handed 10002 # as -z defs. 10003 no_undefined_flag='${wl}-z,text' 10004 allow_undefined_flag='${wl}-z,nodefs' 10005 archive_cmds_need_lc=no 10006 hardcode_shlibpath_var=no 10007 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10008 hardcode_libdir_separator=':' 10009 link_all_deplibs=yes 10010 export_dynamic_flag_spec='${wl}-Bexport' 10011 runpath_var='LD_RUN_PATH' 10012 10013 if test "$GCC" = yes; then 10014 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10015 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10016 else 10017 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10018 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10019 fi 10020 ;; 10021 10022 uts4*) 10023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10024 hardcode_libdir_flag_spec='-L$libdir' 10025 hardcode_shlibpath_var=no 10026 ;; 10027 10028 *) 10029 ld_shlibs=no 10030 ;; 10031 esac 10032 10033 if test x$host_vendor = xsni; then 10034 case $host in 10035 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10036 export_dynamic_flag_spec='${wl}-Blargedynsym' 10037 ;; 10038 esac 10039 fi 10040 fi 10041 10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10043$as_echo "$ld_shlibs" >&6; } 10044test "$ld_shlibs" = no && can_build_shared=no 10045 10046with_gnu_ld=$with_gnu_ld 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062# 10063# Do we need to explicitly link libc? 10064# 10065case "x$archive_cmds_need_lc" in 10066x|xyes) 10067 # Assume -lc should be added 10068 archive_cmds_need_lc=yes 10069 10070 if test "$enable_shared" = yes && test "$GCC" = yes; then 10071 case $archive_cmds in 10072 *'~'*) 10073 # FIXME: we may have to deal with multi-command sequences. 10074 ;; 10075 '$CC '*) 10076 # Test whether the compiler implicitly links with -lc since on some 10077 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10078 # to ld, don't add -lc before -lgcc. 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10080$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10081if ${lt_cv_archive_cmds_need_lc+:} false; then : 10082 $as_echo_n "(cached) " >&6 10083else 10084 $RM conftest* 10085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10086 10087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10088 (eval $ac_compile) 2>&5 10089 ac_status=$? 10090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10091 test $ac_status = 0; } 2>conftest.err; then 10092 soname=conftest 10093 lib=conftest 10094 libobjs=conftest.$ac_objext 10095 deplibs= 10096 wl=$lt_prog_compiler_wl 10097 pic_flag=$lt_prog_compiler_pic 10098 compiler_flags=-v 10099 linker_flags=-v 10100 verstring= 10101 output_objdir=. 10102 libname=conftest 10103 lt_save_allow_undefined_flag=$allow_undefined_flag 10104 allow_undefined_flag= 10105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10106 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10107 ac_status=$? 10108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10109 test $ac_status = 0; } 10110 then 10111 lt_cv_archive_cmds_need_lc=no 10112 else 10113 lt_cv_archive_cmds_need_lc=yes 10114 fi 10115 allow_undefined_flag=$lt_save_allow_undefined_flag 10116 else 10117 cat conftest.err 1>&5 10118 fi 10119 $RM conftest* 10120 10121fi 10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10123$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10124 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10125 ;; 10126 esac 10127 fi 10128 ;; 10129esac 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10283$as_echo_n "checking dynamic linker characteristics... " >&6; } 10284 10285if test "$GCC" = yes; then 10286 case $host_os in 10287 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10288 *) lt_awk_arg="/^libraries:/" ;; 10289 esac 10290 case $host_os in 10291 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10292 *) lt_sed_strip_eq="s,=/,/,g" ;; 10293 esac 10294 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10295 case $lt_search_path_spec in 10296 *\;*) 10297 # if the path contains ";" then we assume it to be the separator 10298 # otherwise default to the standard path separator (i.e. ":") - it is 10299 # assumed that no part of a normal pathname contains ";" but that should 10300 # okay in the real world where ";" in dirpaths is itself problematic. 10301 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10302 ;; 10303 *) 10304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10305 ;; 10306 esac 10307 # Ok, now we have the path, separated by spaces, we can step through it 10308 # and add multilib dir if necessary. 10309 lt_tmp_lt_search_path_spec= 10310 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10311 for lt_sys_path in $lt_search_path_spec; do 10312 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10313 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10314 else 10315 test -d "$lt_sys_path" && \ 10316 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10317 fi 10318 done 10319 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10320BEGIN {RS=" "; FS="/|\n";} { 10321 lt_foo=""; 10322 lt_count=0; 10323 for (lt_i = NF; lt_i > 0; lt_i--) { 10324 if ($lt_i != "" && $lt_i != ".") { 10325 if ($lt_i == "..") { 10326 lt_count++; 10327 } else { 10328 if (lt_count == 0) { 10329 lt_foo="/" $lt_i lt_foo; 10330 } else { 10331 lt_count--; 10332 } 10333 } 10334 } 10335 } 10336 if (lt_foo != "") { lt_freq[lt_foo]++; } 10337 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10338}'` 10339 # AWK program above erroneously prepends '/' to C:/dos/paths 10340 # for these hosts. 10341 case $host_os in 10342 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10343 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10344 esac 10345 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10346else 10347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10348fi 10349library_names_spec= 10350libname_spec='lib$name' 10351soname_spec= 10352shrext_cmds=".so" 10353postinstall_cmds= 10354postuninstall_cmds= 10355finish_cmds= 10356finish_eval= 10357shlibpath_var= 10358shlibpath_overrides_runpath=unknown 10359version_type=none 10360dynamic_linker="$host_os ld.so" 10361sys_lib_dlsearch_path_spec="/lib /usr/lib" 10362need_lib_prefix=unknown 10363hardcode_into_libs=no 10364 10365# when you set need_version to no, make sure it does not cause -set_version 10366# flags to be left without arguments 10367need_version=unknown 10368 10369case $host_os in 10370aix3*) 10371 version_type=linux # correct to gnu/linux during the next big refactor 10372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10373 shlibpath_var=LIBPATH 10374 10375 # AIX 3 has no versioning support, so we append a major version to the name. 10376 soname_spec='${libname}${release}${shared_ext}$major' 10377 ;; 10378 10379aix[4-9]*) 10380 version_type=linux # correct to gnu/linux during the next big refactor 10381 need_lib_prefix=no 10382 need_version=no 10383 hardcode_into_libs=yes 10384 if test "$host_cpu" = ia64; then 10385 # AIX 5 supports IA64 10386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10387 shlibpath_var=LD_LIBRARY_PATH 10388 else 10389 # With GCC up to 2.95.x, collect2 would create an import file 10390 # for dependence libraries. The import file would start with 10391 # the line `#! .'. This would cause the generated library to 10392 # depend on `.', always an invalid library. This was fixed in 10393 # development snapshots of GCC prior to 3.0. 10394 case $host_os in 10395 aix4 | aix4.[01] | aix4.[01].*) 10396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10397 echo ' yes ' 10398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10399 : 10400 else 10401 can_build_shared=no 10402 fi 10403 ;; 10404 esac 10405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10406 # soname into executable. Probably we can add versioning support to 10407 # collect2, so additional links can be useful in future. 10408 if test "$aix_use_runtimelinking" = yes; then 10409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10410 # instead of lib<name>.a to let people know that these are not 10411 # typical AIX shared libraries. 10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10413 else 10414 # We preserve .a as extension for shared libraries through AIX4.2 10415 # and later when we are not doing run time linking. 10416 library_names_spec='${libname}${release}.a $libname.a' 10417 soname_spec='${libname}${release}${shared_ext}$major' 10418 fi 10419 shlibpath_var=LIBPATH 10420 fi 10421 ;; 10422 10423amigaos*) 10424 case $host_cpu in 10425 powerpc) 10426 # Since July 2007 AmigaOS4 officially supports .so libraries. 10427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10429 ;; 10430 m68k) 10431 library_names_spec='$libname.ixlibrary $libname.a' 10432 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10433 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' 10434 ;; 10435 esac 10436 ;; 10437 10438beos*) 10439 library_names_spec='${libname}${shared_ext}' 10440 dynamic_linker="$host_os ld.so" 10441 shlibpath_var=LIBRARY_PATH 10442 ;; 10443 10444bsdi[45]*) 10445 version_type=linux # correct to gnu/linux during the next big refactor 10446 need_version=no 10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10448 soname_spec='${libname}${release}${shared_ext}$major' 10449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10450 shlibpath_var=LD_LIBRARY_PATH 10451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10453 # the default ld.so.conf also contains /usr/contrib/lib and 10454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10455 # libtool to hard-code these into programs 10456 ;; 10457 10458cygwin* | mingw* | pw32* | cegcc*) 10459 version_type=windows 10460 shrext_cmds=".dll" 10461 need_version=no 10462 need_lib_prefix=no 10463 10464 case $GCC,$cc_basename in 10465 yes,*) 10466 # gcc 10467 library_names_spec='$libname.dll.a' 10468 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10469 postinstall_cmds='base_file=`basename \${file}`~ 10470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10471 dldir=$destdir/`dirname \$dlpath`~ 10472 test -d \$dldir || mkdir -p \$dldir~ 10473 $install_prog $dir/$dlname \$dldir/$dlname~ 10474 chmod a+x \$dldir/$dlname~ 10475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10477 fi' 10478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10479 dlpath=$dir/\$dldll~ 10480 $RM \$dlpath' 10481 shlibpath_overrides_runpath=yes 10482 10483 case $host_os in 10484 cygwin*) 10485 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10487 10488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10489 ;; 10490 mingw* | cegcc*) 10491 # MinGW DLLs use traditional 'lib' prefix 10492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10493 ;; 10494 pw32*) 10495 # pw32 DLLs use 'pw' prefix rather than 'lib' 10496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10497 ;; 10498 esac 10499 dynamic_linker='Win32 ld.exe' 10500 ;; 10501 10502 *,cl*) 10503 # Native MSVC 10504 libname_spec='$name' 10505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10506 library_names_spec='${libname}.dll.lib' 10507 10508 case $build_os in 10509 mingw*) 10510 sys_lib_search_path_spec= 10511 lt_save_ifs=$IFS 10512 IFS=';' 10513 for lt_path in $LIB 10514 do 10515 IFS=$lt_save_ifs 10516 # Let DOS variable expansion print the short 8.3 style file name. 10517 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10518 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10519 done 10520 IFS=$lt_save_ifs 10521 # Convert to MSYS style. 10522 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10523 ;; 10524 cygwin*) 10525 # Convert to unix form, then to dos form, then back to unix form 10526 # but this time dos style (no spaces!) so that the unix form looks 10527 # like /cygdrive/c/PROGRA~1:/cygdr... 10528 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10529 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10530 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10531 ;; 10532 *) 10533 sys_lib_search_path_spec="$LIB" 10534 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10535 # It is most probably a Windows format PATH. 10536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10537 else 10538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10539 fi 10540 # FIXME: find the short name or the path components, as spaces are 10541 # common. (e.g. "Program Files" -> "PROGRA~1") 10542 ;; 10543 esac 10544 10545 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10546 postinstall_cmds='base_file=`basename \${file}`~ 10547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10548 dldir=$destdir/`dirname \$dlpath`~ 10549 test -d \$dldir || mkdir -p \$dldir~ 10550 $install_prog $dir/$dlname \$dldir/$dlname' 10551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10552 dlpath=$dir/\$dldll~ 10553 $RM \$dlpath' 10554 shlibpath_overrides_runpath=yes 10555 dynamic_linker='Win32 link.exe' 10556 ;; 10557 10558 *) 10559 # Assume MSVC wrapper 10560 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10561 dynamic_linker='Win32 ld.exe' 10562 ;; 10563 esac 10564 # FIXME: first we should search . and the directory the executable is in 10565 shlibpath_var=PATH 10566 ;; 10567 10568darwin* | rhapsody*) 10569 dynamic_linker="$host_os dyld" 10570 version_type=darwin 10571 need_lib_prefix=no 10572 need_version=no 10573 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10574 soname_spec='${libname}${release}${major}$shared_ext' 10575 shlibpath_overrides_runpath=yes 10576 shlibpath_var=DYLD_LIBRARY_PATH 10577 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10578 10579 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10581 ;; 10582 10583dgux*) 10584 version_type=linux # correct to gnu/linux during the next big refactor 10585 need_lib_prefix=no 10586 need_version=no 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 ;; 10591 10592freebsd* | dragonfly*) 10593 # DragonFly does not have aout. When/if they implement a new 10594 # versioning mechanism, adjust this. 10595 if test -x /usr/bin/objformat; then 10596 objformat=`/usr/bin/objformat` 10597 else 10598 case $host_os in 10599 freebsd[23].*) objformat=aout ;; 10600 *) objformat=elf ;; 10601 esac 10602 fi 10603 version_type=freebsd-$objformat 10604 case $version_type in 10605 freebsd-elf*) 10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10607 need_version=no 10608 need_lib_prefix=no 10609 ;; 10610 freebsd-*) 10611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10612 need_version=yes 10613 ;; 10614 esac 10615 shlibpath_var=LD_LIBRARY_PATH 10616 case $host_os in 10617 freebsd2.*) 10618 shlibpath_overrides_runpath=yes 10619 ;; 10620 freebsd3.[01]* | freebsdelf3.[01]*) 10621 shlibpath_overrides_runpath=yes 10622 hardcode_into_libs=yes 10623 ;; 10624 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10625 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10626 shlibpath_overrides_runpath=no 10627 hardcode_into_libs=yes 10628 ;; 10629 *) # from 4.6 on, and DragonFly 10630 shlibpath_overrides_runpath=yes 10631 hardcode_into_libs=yes 10632 ;; 10633 esac 10634 ;; 10635 10636gnu*) 10637 version_type=linux # correct to gnu/linux during the next big refactor 10638 need_lib_prefix=no 10639 need_version=no 10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10641 soname_spec='${libname}${release}${shared_ext}$major' 10642 shlibpath_var=LD_LIBRARY_PATH 10643 shlibpath_overrides_runpath=no 10644 hardcode_into_libs=yes 10645 ;; 10646 10647haiku*) 10648 version_type=linux # correct to gnu/linux during the next big refactor 10649 need_lib_prefix=no 10650 need_version=no 10651 dynamic_linker="$host_os runtime_loader" 10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10653 soname_spec='${libname}${release}${shared_ext}$major' 10654 shlibpath_var=LIBRARY_PATH 10655 shlibpath_overrides_runpath=yes 10656 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10657 hardcode_into_libs=yes 10658 ;; 10659 10660hpux9* | hpux10* | hpux11*) 10661 # Give a soname corresponding to the major version so that dld.sl refuses to 10662 # link against other versions. 10663 version_type=sunos 10664 need_lib_prefix=no 10665 need_version=no 10666 case $host_cpu in 10667 ia64*) 10668 shrext_cmds='.so' 10669 hardcode_into_libs=yes 10670 dynamic_linker="$host_os dld.so" 10671 shlibpath_var=LD_LIBRARY_PATH 10672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10674 soname_spec='${libname}${release}${shared_ext}$major' 10675 if test "X$HPUX_IA64_MODE" = X32; then 10676 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10677 else 10678 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10679 fi 10680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10681 ;; 10682 hppa*64*) 10683 shrext_cmds='.sl' 10684 hardcode_into_libs=yes 10685 dynamic_linker="$host_os dld.sl" 10686 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10687 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10689 soname_spec='${libname}${release}${shared_ext}$major' 10690 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10692 ;; 10693 *) 10694 shrext_cmds='.sl' 10695 dynamic_linker="$host_os dld.sl" 10696 shlibpath_var=SHLIB_PATH 10697 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10699 soname_spec='${libname}${release}${shared_ext}$major' 10700 ;; 10701 esac 10702 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10703 postinstall_cmds='chmod 555 $lib' 10704 # or fails outright, so override atomically: 10705 install_override_mode=555 10706 ;; 10707 10708interix[3-9]*) 10709 version_type=linux # correct to gnu/linux during the next big refactor 10710 need_lib_prefix=no 10711 need_version=no 10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10713 soname_spec='${libname}${release}${shared_ext}$major' 10714 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10715 shlibpath_var=LD_LIBRARY_PATH 10716 shlibpath_overrides_runpath=no 10717 hardcode_into_libs=yes 10718 ;; 10719 10720irix5* | irix6* | nonstopux*) 10721 case $host_os in 10722 nonstopux*) version_type=nonstopux ;; 10723 *) 10724 if test "$lt_cv_prog_gnu_ld" = yes; then 10725 version_type=linux # correct to gnu/linux during the next big refactor 10726 else 10727 version_type=irix 10728 fi ;; 10729 esac 10730 need_lib_prefix=no 10731 need_version=no 10732 soname_spec='${libname}${release}${shared_ext}$major' 10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10734 case $host_os in 10735 irix5* | nonstopux*) 10736 libsuff= shlibsuff= 10737 ;; 10738 *) 10739 case $LD in # libtool.m4 will add one of these switches to LD 10740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10741 libsuff= shlibsuff= libmagic=32-bit;; 10742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10743 libsuff=32 shlibsuff=N32 libmagic=N32;; 10744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10745 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10746 *) libsuff= shlibsuff= libmagic=never-match;; 10747 esac 10748 ;; 10749 esac 10750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10751 shlibpath_overrides_runpath=no 10752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10754 hardcode_into_libs=yes 10755 ;; 10756 10757# No shared lib support for Linux oldld, aout, or coff. 10758linux*oldld* | linux*aout* | linux*coff*) 10759 dynamic_linker=no 10760 ;; 10761 10762# This must be glibc/ELF. 10763linux* | k*bsd*-gnu | kopensolaris*-gnu) 10764 version_type=linux # correct to gnu/linux during the next big refactor 10765 need_lib_prefix=no 10766 need_version=no 10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10768 soname_spec='${libname}${release}${shared_ext}$major' 10769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10770 shlibpath_var=LD_LIBRARY_PATH 10771 shlibpath_overrides_runpath=no 10772 10773 # Some binutils ld are patched to set DT_RUNPATH 10774 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10775 $as_echo_n "(cached) " >&6 10776else 10777 lt_cv_shlibpath_overrides_runpath=no 10778 save_LDFLAGS=$LDFLAGS 10779 save_libdir=$libdir 10780 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10781 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783/* end confdefs.h. */ 10784 10785int 10786main () 10787{ 10788 10789 ; 10790 return 0; 10791} 10792_ACEOF 10793if ac_fn_c_try_link "$LINENO"; then : 10794 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10795 lt_cv_shlibpath_overrides_runpath=yes 10796fi 10797fi 10798rm -f core conftest.err conftest.$ac_objext \ 10799 conftest$ac_exeext conftest.$ac_ext 10800 LDFLAGS=$save_LDFLAGS 10801 libdir=$save_libdir 10802 10803fi 10804 10805 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10806 10807 # This implies no fast_install, which is unacceptable. 10808 # Some rework will be needed to allow for fast_install 10809 # before this can be enabled. 10810 hardcode_into_libs=yes 10811 10812 # Append ld.so.conf contents to the search path 10813 if test -f /etc/ld.so.conf; then 10814 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' ' '` 10815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10816 fi 10817 10818 # We used to test for /lib/ld.so.1 and disable shared libraries on 10819 # powerpc, because MkLinux only supported shared libraries with the 10820 # GNU dynamic linker. Since this was broken with cross compilers, 10821 # most powerpc-linux boxes support dynamic linking these days and 10822 # people can always --disable-shared, the test was removed, and we 10823 # assume the GNU/Linux dynamic linker is in use. 10824 dynamic_linker='GNU/Linux ld.so' 10825 ;; 10826 10827netbsd*) 10828 version_type=sunos 10829 need_lib_prefix=no 10830 need_version=no 10831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10834 dynamic_linker='NetBSD (a.out) ld.so' 10835 else 10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10837 soname_spec='${libname}${release}${shared_ext}$major' 10838 dynamic_linker='NetBSD ld.elf_so' 10839 fi 10840 shlibpath_var=LD_LIBRARY_PATH 10841 shlibpath_overrides_runpath=yes 10842 hardcode_into_libs=yes 10843 ;; 10844 10845newsos6) 10846 version_type=linux # correct to gnu/linux during the next big refactor 10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10848 shlibpath_var=LD_LIBRARY_PATH 10849 shlibpath_overrides_runpath=yes 10850 ;; 10851 10852*nto* | *qnx*) 10853 version_type=qnx 10854 need_lib_prefix=no 10855 need_version=no 10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10857 soname_spec='${libname}${release}${shared_ext}$major' 10858 shlibpath_var=LD_LIBRARY_PATH 10859 shlibpath_overrides_runpath=no 10860 hardcode_into_libs=yes 10861 dynamic_linker='ldqnx.so' 10862 ;; 10863 10864openbsd*) 10865 version_type=sunos 10866 sys_lib_dlsearch_path_spec="/usr/lib" 10867 need_lib_prefix=no 10868 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10869 case $host_os in 10870 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10871 *) need_version=no ;; 10872 esac 10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10875 shlibpath_var=LD_LIBRARY_PATH 10876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10877 case $host_os in 10878 openbsd2.[89] | openbsd2.[89].*) 10879 shlibpath_overrides_runpath=no 10880 ;; 10881 *) 10882 shlibpath_overrides_runpath=yes 10883 ;; 10884 esac 10885 else 10886 shlibpath_overrides_runpath=yes 10887 fi 10888 ;; 10889 10890os2*) 10891 libname_spec='$name' 10892 shrext_cmds=".dll" 10893 need_lib_prefix=no 10894 library_names_spec='$libname${shared_ext} $libname.a' 10895 dynamic_linker='OS/2 ld.exe' 10896 shlibpath_var=LIBPATH 10897 ;; 10898 10899osf3* | osf4* | osf5*) 10900 version_type=osf 10901 need_lib_prefix=no 10902 need_version=no 10903 soname_spec='${libname}${release}${shared_ext}$major' 10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10905 shlibpath_var=LD_LIBRARY_PATH 10906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10907 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10908 ;; 10909 10910rdos*) 10911 dynamic_linker=no 10912 ;; 10913 10914solaris*) 10915 version_type=linux # correct to gnu/linux during the next big refactor 10916 need_lib_prefix=no 10917 need_version=no 10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10919 soname_spec='${libname}${release}${shared_ext}$major' 10920 shlibpath_var=LD_LIBRARY_PATH 10921 shlibpath_overrides_runpath=yes 10922 hardcode_into_libs=yes 10923 # ldd complains unless libraries are executable 10924 postinstall_cmds='chmod +x $lib' 10925 ;; 10926 10927sunos4*) 10928 version_type=sunos 10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10930 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10931 shlibpath_var=LD_LIBRARY_PATH 10932 shlibpath_overrides_runpath=yes 10933 if test "$with_gnu_ld" = yes; then 10934 need_lib_prefix=no 10935 fi 10936 need_version=yes 10937 ;; 10938 10939sysv4 | sysv4.3*) 10940 version_type=linux # correct to gnu/linux during the next big refactor 10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10942 soname_spec='${libname}${release}${shared_ext}$major' 10943 shlibpath_var=LD_LIBRARY_PATH 10944 case $host_vendor in 10945 sni) 10946 shlibpath_overrides_runpath=no 10947 need_lib_prefix=no 10948 runpath_var=LD_RUN_PATH 10949 ;; 10950 siemens) 10951 need_lib_prefix=no 10952 ;; 10953 motorola) 10954 need_lib_prefix=no 10955 need_version=no 10956 shlibpath_overrides_runpath=no 10957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10958 ;; 10959 esac 10960 ;; 10961 10962sysv4*MP*) 10963 if test -d /usr/nec ;then 10964 version_type=linux # correct to gnu/linux during the next big refactor 10965 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10966 soname_spec='$libname${shared_ext}.$major' 10967 shlibpath_var=LD_LIBRARY_PATH 10968 fi 10969 ;; 10970 10971sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10972 version_type=freebsd-elf 10973 need_lib_prefix=no 10974 need_version=no 10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10976 soname_spec='${libname}${release}${shared_ext}$major' 10977 shlibpath_var=LD_LIBRARY_PATH 10978 shlibpath_overrides_runpath=yes 10979 hardcode_into_libs=yes 10980 if test "$with_gnu_ld" = yes; then 10981 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10982 else 10983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10984 case $host_os in 10985 sco3.2v5*) 10986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10987 ;; 10988 esac 10989 fi 10990 sys_lib_dlsearch_path_spec='/usr/lib' 10991 ;; 10992 10993tpf*) 10994 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10995 version_type=linux # correct to gnu/linux during the next big refactor 10996 need_lib_prefix=no 10997 need_version=no 10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10999 shlibpath_var=LD_LIBRARY_PATH 11000 shlibpath_overrides_runpath=no 11001 hardcode_into_libs=yes 11002 ;; 11003 11004uts4*) 11005 version_type=linux # correct to gnu/linux during the next big refactor 11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11007 soname_spec='${libname}${release}${shared_ext}$major' 11008 shlibpath_var=LD_LIBRARY_PATH 11009 ;; 11010 11011*) 11012 dynamic_linker=no 11013 ;; 11014esac 11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11016$as_echo "$dynamic_linker" >&6; } 11017test "$dynamic_linker" = no && can_build_shared=no 11018 11019variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11020if test "$GCC" = yes; then 11021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11022fi 11023 11024if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11025 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11026fi 11027if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11028 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11029fi 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11123$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11124hardcode_action= 11125if test -n "$hardcode_libdir_flag_spec" || 11126 test -n "$runpath_var" || 11127 test "X$hardcode_automatic" = "Xyes" ; then 11128 11129 # We can hardcode non-existent directories. 11130 if test "$hardcode_direct" != no && 11131 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11132 # have to relink, otherwise we might link with an installed library 11133 # when we should be linking with a yet-to-be-installed one 11134 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11135 test "$hardcode_minus_L" != no; then 11136 # Linking always hardcodes the temporary library directory. 11137 hardcode_action=relink 11138 else 11139 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11140 hardcode_action=immediate 11141 fi 11142else 11143 # We cannot hardcode anything, or else we can only hardcode existing 11144 # directories. 11145 hardcode_action=unsupported 11146fi 11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11148$as_echo "$hardcode_action" >&6; } 11149 11150if test "$hardcode_action" = relink || 11151 test "$inherit_rpath" = yes; then 11152 # Fast installation is not supported 11153 enable_fast_install=no 11154elif test "$shlibpath_overrides_runpath" = yes || 11155 test "$enable_shared" = no; then 11156 # Fast installation is not necessary 11157 enable_fast_install=needless 11158fi 11159 11160 11161 11162 11163 11164 11165 if test "x$enable_dlopen" != xyes; then 11166 enable_dlopen=unknown 11167 enable_dlopen_self=unknown 11168 enable_dlopen_self_static=unknown 11169else 11170 lt_cv_dlopen=no 11171 lt_cv_dlopen_libs= 11172 11173 case $host_os in 11174 beos*) 11175 lt_cv_dlopen="load_add_on" 11176 lt_cv_dlopen_libs= 11177 lt_cv_dlopen_self=yes 11178 ;; 11179 11180 mingw* | pw32* | cegcc*) 11181 lt_cv_dlopen="LoadLibrary" 11182 lt_cv_dlopen_libs= 11183 ;; 11184 11185 cygwin*) 11186 lt_cv_dlopen="dlopen" 11187 lt_cv_dlopen_libs= 11188 ;; 11189 11190 darwin*) 11191 # if libdl is installed we need to link against it 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11193$as_echo_n "checking for dlopen in -ldl... " >&6; } 11194if ${ac_cv_lib_dl_dlopen+:} false; then : 11195 $as_echo_n "(cached) " >&6 11196else 11197 ac_check_lib_save_LIBS=$LIBS 11198LIBS="-ldl $LIBS" 11199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11200/* end confdefs.h. */ 11201 11202/* Override any GCC internal prototype to avoid an error. 11203 Use char because int might match the return type of a GCC 11204 builtin and then its argument prototype would still apply. */ 11205#ifdef __cplusplus 11206extern "C" 11207#endif 11208char dlopen (); 11209int 11210main () 11211{ 11212return dlopen (); 11213 ; 11214 return 0; 11215} 11216_ACEOF 11217if ac_fn_c_try_link "$LINENO"; then : 11218 ac_cv_lib_dl_dlopen=yes 11219else 11220 ac_cv_lib_dl_dlopen=no 11221fi 11222rm -f core conftest.err conftest.$ac_objext \ 11223 conftest$ac_exeext conftest.$ac_ext 11224LIBS=$ac_check_lib_save_LIBS 11225fi 11226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11227$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11228if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11229 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11230else 11231 11232 lt_cv_dlopen="dyld" 11233 lt_cv_dlopen_libs= 11234 lt_cv_dlopen_self=yes 11235 11236fi 11237 11238 ;; 11239 11240 *) 11241 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11242if test "x$ac_cv_func_shl_load" = xyes; then : 11243 lt_cv_dlopen="shl_load" 11244else 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11246$as_echo_n "checking for shl_load in -ldld... " >&6; } 11247if ${ac_cv_lib_dld_shl_load+:} false; then : 11248 $as_echo_n "(cached) " >&6 11249else 11250 ac_check_lib_save_LIBS=$LIBS 11251LIBS="-ldld $LIBS" 11252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11253/* end confdefs.h. */ 11254 11255/* Override any GCC internal prototype to avoid an error. 11256 Use char because int might match the return type of a GCC 11257 builtin and then its argument prototype would still apply. */ 11258#ifdef __cplusplus 11259extern "C" 11260#endif 11261char shl_load (); 11262int 11263main () 11264{ 11265return shl_load (); 11266 ; 11267 return 0; 11268} 11269_ACEOF 11270if ac_fn_c_try_link "$LINENO"; then : 11271 ac_cv_lib_dld_shl_load=yes 11272else 11273 ac_cv_lib_dld_shl_load=no 11274fi 11275rm -f core conftest.err conftest.$ac_objext \ 11276 conftest$ac_exeext conftest.$ac_ext 11277LIBS=$ac_check_lib_save_LIBS 11278fi 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11280$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11281if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11282 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11283else 11284 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11285if test "x$ac_cv_func_dlopen" = xyes; then : 11286 lt_cv_dlopen="dlopen" 11287else 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11289$as_echo_n "checking for dlopen in -ldl... " >&6; } 11290if ${ac_cv_lib_dl_dlopen+:} false; then : 11291 $as_echo_n "(cached) " >&6 11292else 11293 ac_check_lib_save_LIBS=$LIBS 11294LIBS="-ldl $LIBS" 11295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11296/* end confdefs.h. */ 11297 11298/* Override any GCC internal prototype to avoid an error. 11299 Use char because int might match the return type of a GCC 11300 builtin and then its argument prototype would still apply. */ 11301#ifdef __cplusplus 11302extern "C" 11303#endif 11304char dlopen (); 11305int 11306main () 11307{ 11308return dlopen (); 11309 ; 11310 return 0; 11311} 11312_ACEOF 11313if ac_fn_c_try_link "$LINENO"; then : 11314 ac_cv_lib_dl_dlopen=yes 11315else 11316 ac_cv_lib_dl_dlopen=no 11317fi 11318rm -f core conftest.err conftest.$ac_objext \ 11319 conftest$ac_exeext conftest.$ac_ext 11320LIBS=$ac_check_lib_save_LIBS 11321fi 11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11323$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11324if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11326else 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11328$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11329if ${ac_cv_lib_svld_dlopen+:} false; then : 11330 $as_echo_n "(cached) " >&6 11331else 11332 ac_check_lib_save_LIBS=$LIBS 11333LIBS="-lsvld $LIBS" 11334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11335/* end confdefs.h. */ 11336 11337/* Override any GCC internal prototype to avoid an error. 11338 Use char because int might match the return type of a GCC 11339 builtin and then its argument prototype would still apply. */ 11340#ifdef __cplusplus 11341extern "C" 11342#endif 11343char dlopen (); 11344int 11345main () 11346{ 11347return dlopen (); 11348 ; 11349 return 0; 11350} 11351_ACEOF 11352if ac_fn_c_try_link "$LINENO"; then : 11353 ac_cv_lib_svld_dlopen=yes 11354else 11355 ac_cv_lib_svld_dlopen=no 11356fi 11357rm -f core conftest.err conftest.$ac_objext \ 11358 conftest$ac_exeext conftest.$ac_ext 11359LIBS=$ac_check_lib_save_LIBS 11360fi 11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11362$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11363if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11365else 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11367$as_echo_n "checking for dld_link in -ldld... " >&6; } 11368if ${ac_cv_lib_dld_dld_link+:} false; then : 11369 $as_echo_n "(cached) " >&6 11370else 11371 ac_check_lib_save_LIBS=$LIBS 11372LIBS="-ldld $LIBS" 11373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11374/* end confdefs.h. */ 11375 11376/* Override any GCC internal prototype to avoid an error. 11377 Use char because int might match the return type of a GCC 11378 builtin and then its argument prototype would still apply. */ 11379#ifdef __cplusplus 11380extern "C" 11381#endif 11382char dld_link (); 11383int 11384main () 11385{ 11386return dld_link (); 11387 ; 11388 return 0; 11389} 11390_ACEOF 11391if ac_fn_c_try_link "$LINENO"; then : 11392 ac_cv_lib_dld_dld_link=yes 11393else 11394 ac_cv_lib_dld_dld_link=no 11395fi 11396rm -f core conftest.err conftest.$ac_objext \ 11397 conftest$ac_exeext conftest.$ac_ext 11398LIBS=$ac_check_lib_save_LIBS 11399fi 11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11401$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11402if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11403 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11404fi 11405 11406 11407fi 11408 11409 11410fi 11411 11412 11413fi 11414 11415 11416fi 11417 11418 11419fi 11420 11421 ;; 11422 esac 11423 11424 if test "x$lt_cv_dlopen" != xno; then 11425 enable_dlopen=yes 11426 else 11427 enable_dlopen=no 11428 fi 11429 11430 case $lt_cv_dlopen in 11431 dlopen) 11432 save_CPPFLAGS="$CPPFLAGS" 11433 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11434 11435 save_LDFLAGS="$LDFLAGS" 11436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11437 11438 save_LIBS="$LIBS" 11439 LIBS="$lt_cv_dlopen_libs $LIBS" 11440 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11442$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11443if ${lt_cv_dlopen_self+:} false; then : 11444 $as_echo_n "(cached) " >&6 11445else 11446 if test "$cross_compiling" = yes; then : 11447 lt_cv_dlopen_self=cross 11448else 11449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11450 lt_status=$lt_dlunknown 11451 cat > conftest.$ac_ext <<_LT_EOF 11452#line $LINENO "configure" 11453#include "confdefs.h" 11454 11455#if HAVE_DLFCN_H 11456#include <dlfcn.h> 11457#endif 11458 11459#include <stdio.h> 11460 11461#ifdef RTLD_GLOBAL 11462# define LT_DLGLOBAL RTLD_GLOBAL 11463#else 11464# ifdef DL_GLOBAL 11465# define LT_DLGLOBAL DL_GLOBAL 11466# else 11467# define LT_DLGLOBAL 0 11468# endif 11469#endif 11470 11471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11472 find out it does not work in some platform. */ 11473#ifndef LT_DLLAZY_OR_NOW 11474# ifdef RTLD_LAZY 11475# define LT_DLLAZY_OR_NOW RTLD_LAZY 11476# else 11477# ifdef DL_LAZY 11478# define LT_DLLAZY_OR_NOW DL_LAZY 11479# else 11480# ifdef RTLD_NOW 11481# define LT_DLLAZY_OR_NOW RTLD_NOW 11482# else 11483# ifdef DL_NOW 11484# define LT_DLLAZY_OR_NOW DL_NOW 11485# else 11486# define LT_DLLAZY_OR_NOW 0 11487# endif 11488# endif 11489# endif 11490# endif 11491#endif 11492 11493/* When -fvisbility=hidden is used, assume the code has been annotated 11494 correspondingly for the symbols needed. */ 11495#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11496int fnord () __attribute__((visibility("default"))); 11497#endif 11498 11499int fnord () { return 42; } 11500int main () 11501{ 11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11503 int status = $lt_dlunknown; 11504 11505 if (self) 11506 { 11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11508 else 11509 { 11510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11511 else puts (dlerror ()); 11512 } 11513 /* dlclose (self); */ 11514 } 11515 else 11516 puts (dlerror ()); 11517 11518 return status; 11519} 11520_LT_EOF 11521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11522 (eval $ac_link) 2>&5 11523 ac_status=$? 11524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11525 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11526 (./conftest; exit; ) >&5 2>/dev/null 11527 lt_status=$? 11528 case x$lt_status in 11529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11532 esac 11533 else : 11534 # compilation failed 11535 lt_cv_dlopen_self=no 11536 fi 11537fi 11538rm -fr conftest* 11539 11540 11541fi 11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11543$as_echo "$lt_cv_dlopen_self" >&6; } 11544 11545 if test "x$lt_cv_dlopen_self" = xyes; then 11546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11548$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11549if ${lt_cv_dlopen_self_static+:} false; then : 11550 $as_echo_n "(cached) " >&6 11551else 11552 if test "$cross_compiling" = yes; then : 11553 lt_cv_dlopen_self_static=cross 11554else 11555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11556 lt_status=$lt_dlunknown 11557 cat > conftest.$ac_ext <<_LT_EOF 11558#line $LINENO "configure" 11559#include "confdefs.h" 11560 11561#if HAVE_DLFCN_H 11562#include <dlfcn.h> 11563#endif 11564 11565#include <stdio.h> 11566 11567#ifdef RTLD_GLOBAL 11568# define LT_DLGLOBAL RTLD_GLOBAL 11569#else 11570# ifdef DL_GLOBAL 11571# define LT_DLGLOBAL DL_GLOBAL 11572# else 11573# define LT_DLGLOBAL 0 11574# endif 11575#endif 11576 11577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11578 find out it does not work in some platform. */ 11579#ifndef LT_DLLAZY_OR_NOW 11580# ifdef RTLD_LAZY 11581# define LT_DLLAZY_OR_NOW RTLD_LAZY 11582# else 11583# ifdef DL_LAZY 11584# define LT_DLLAZY_OR_NOW DL_LAZY 11585# else 11586# ifdef RTLD_NOW 11587# define LT_DLLAZY_OR_NOW RTLD_NOW 11588# else 11589# ifdef DL_NOW 11590# define LT_DLLAZY_OR_NOW DL_NOW 11591# else 11592# define LT_DLLAZY_OR_NOW 0 11593# endif 11594# endif 11595# endif 11596# endif 11597#endif 11598 11599/* When -fvisbility=hidden is used, assume the code has been annotated 11600 correspondingly for the symbols needed. */ 11601#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11602int fnord () __attribute__((visibility("default"))); 11603#endif 11604 11605int fnord () { return 42; } 11606int main () 11607{ 11608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11609 int status = $lt_dlunknown; 11610 11611 if (self) 11612 { 11613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11614 else 11615 { 11616 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11617 else puts (dlerror ()); 11618 } 11619 /* dlclose (self); */ 11620 } 11621 else 11622 puts (dlerror ()); 11623 11624 return status; 11625} 11626_LT_EOF 11627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11628 (eval $ac_link) 2>&5 11629 ac_status=$? 11630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11632 (./conftest; exit; ) >&5 2>/dev/null 11633 lt_status=$? 11634 case x$lt_status in 11635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11637 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11638 esac 11639 else : 11640 # compilation failed 11641 lt_cv_dlopen_self_static=no 11642 fi 11643fi 11644rm -fr conftest* 11645 11646 11647fi 11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11649$as_echo "$lt_cv_dlopen_self_static" >&6; } 11650 fi 11651 11652 CPPFLAGS="$save_CPPFLAGS" 11653 LDFLAGS="$save_LDFLAGS" 11654 LIBS="$save_LIBS" 11655 ;; 11656 esac 11657 11658 case $lt_cv_dlopen_self in 11659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11660 *) enable_dlopen_self=unknown ;; 11661 esac 11662 11663 case $lt_cv_dlopen_self_static in 11664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11665 *) enable_dlopen_self_static=unknown ;; 11666 esac 11667fi 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685striplib= 11686old_striplib= 11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11688$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11689if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11690 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11691 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11693$as_echo "yes" >&6; } 11694else 11695# FIXME - insert some real tests, host_os isn't really good enough 11696 case $host_os in 11697 darwin*) 11698 if test -n "$STRIP" ; then 11699 striplib="$STRIP -x" 11700 old_striplib="$STRIP -S" 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11702$as_echo "yes" >&6; } 11703 else 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11705$as_echo "no" >&6; } 11706 fi 11707 ;; 11708 *) 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11710$as_echo "no" >&6; } 11711 ;; 11712 esac 11713fi 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 # Report which library types will actually be built 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11728$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11730$as_echo "$can_build_shared" >&6; } 11731 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11733$as_echo_n "checking whether to build shared libraries... " >&6; } 11734 test "$can_build_shared" = "no" && enable_shared=no 11735 11736 # On AIX, shared libraries and static libraries use the same namespace, and 11737 # are all built from PIC. 11738 case $host_os in 11739 aix3*) 11740 test "$enable_shared" = yes && enable_static=no 11741 if test -n "$RANLIB"; then 11742 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11743 postinstall_cmds='$RANLIB $lib' 11744 fi 11745 ;; 11746 11747 aix[4-9]*) 11748 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11749 test "$enable_shared" = yes && enable_static=no 11750 fi 11751 ;; 11752 esac 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11754$as_echo "$enable_shared" >&6; } 11755 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11757$as_echo_n "checking whether to build static libraries... " >&6; } 11758 # Make sure either enable_shared or enable_static is yes. 11759 test "$enable_shared" = yes || enable_static=yes 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11761$as_echo "$enable_static" >&6; } 11762 11763 11764 11765 11766fi 11767ac_ext=c 11768ac_cpp='$CPP $CPPFLAGS' 11769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11771ac_compiler_gnu=$ac_cv_c_compiler_gnu 11772 11773CC="$lt_save_CC" 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 ac_config_commands="$ac_config_commands libtool" 11790 11791 11792 11793 11794# Only expand once: 11795 11796 11797 11798# Require xorg-macros minimum of 1.15 for fop minimum version 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11811$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11812if ${ac_cv_prog_cc_c99+:} false; then : 11813 $as_echo_n "(cached) " >&6 11814else 11815 ac_cv_prog_cc_c99=no 11816ac_save_CC=$CC 11817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11818/* end confdefs.h. */ 11819#include <stdarg.h> 11820#include <stdbool.h> 11821#include <stdlib.h> 11822#include <wchar.h> 11823#include <stdio.h> 11824 11825// Check varargs macros. These examples are taken from C99 6.10.3.5. 11826#define debug(...) fprintf (stderr, __VA_ARGS__) 11827#define showlist(...) puts (#__VA_ARGS__) 11828#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11829static void 11830test_varargs_macros (void) 11831{ 11832 int x = 1234; 11833 int y = 5678; 11834 debug ("Flag"); 11835 debug ("X = %d\n", x); 11836 showlist (The first, second, and third items.); 11837 report (x>y, "x is %d but y is %d", x, y); 11838} 11839 11840// Check long long types. 11841#define BIG64 18446744073709551615ull 11842#define BIG32 4294967295ul 11843#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11844#if !BIG_OK 11845 your preprocessor is broken; 11846#endif 11847#if BIG_OK 11848#else 11849 your preprocessor is broken; 11850#endif 11851static long long int bignum = -9223372036854775807LL; 11852static unsigned long long int ubignum = BIG64; 11853 11854struct incomplete_array 11855{ 11856 int datasize; 11857 double data[]; 11858}; 11859 11860struct named_init { 11861 int number; 11862 const wchar_t *name; 11863 double average; 11864}; 11865 11866typedef const char *ccp; 11867 11868static inline int 11869test_restrict (ccp restrict text) 11870{ 11871 // See if C++-style comments work. 11872 // Iterate through items via the restricted pointer. 11873 // Also check for declarations in for loops. 11874 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11875 continue; 11876 return 0; 11877} 11878 11879// Check varargs and va_copy. 11880static void 11881test_varargs (const char *format, ...) 11882{ 11883 va_list args; 11884 va_start (args, format); 11885 va_list args_copy; 11886 va_copy (args_copy, args); 11887 11888 const char *str; 11889 int number; 11890 float fnumber; 11891 11892 while (*format) 11893 { 11894 switch (*format++) 11895 { 11896 case 's': // string 11897 str = va_arg (args_copy, const char *); 11898 break; 11899 case 'd': // int 11900 number = va_arg (args_copy, int); 11901 break; 11902 case 'f': // float 11903 fnumber = va_arg (args_copy, double); 11904 break; 11905 default: 11906 break; 11907 } 11908 } 11909 va_end (args_copy); 11910 va_end (args); 11911} 11912 11913int 11914main () 11915{ 11916 11917 // Check bool. 11918 _Bool success = false; 11919 11920 // Check restrict. 11921 if (test_restrict ("String literal") == 0) 11922 success = true; 11923 char *restrict newvar = "Another string"; 11924 11925 // Check varargs. 11926 test_varargs ("s, d' f .", "string", 65, 34.234); 11927 test_varargs_macros (); 11928 11929 // Check flexible array members. 11930 struct incomplete_array *ia = 11931 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11932 ia->datasize = 10; 11933 for (int i = 0; i < ia->datasize; ++i) 11934 ia->data[i] = i * 1.234; 11935 11936 // Check named initializers. 11937 struct named_init ni = { 11938 .number = 34, 11939 .name = L"Test wide string", 11940 .average = 543.34343, 11941 }; 11942 11943 ni.number = 58; 11944 11945 int dynamic_array[ni.number]; 11946 dynamic_array[ni.number - 1] = 543; 11947 11948 // work around unused variable warnings 11949 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11950 || dynamic_array[ni.number - 1] != 543); 11951 11952 ; 11953 return 0; 11954} 11955_ACEOF 11956for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11957do 11958 CC="$ac_save_CC $ac_arg" 11959 if ac_fn_c_try_compile "$LINENO"; then : 11960 ac_cv_prog_cc_c99=$ac_arg 11961fi 11962rm -f core conftest.err conftest.$ac_objext 11963 test "x$ac_cv_prog_cc_c99" != "xno" && break 11964done 11965rm -f conftest.$ac_ext 11966CC=$ac_save_CC 11967 11968fi 11969# AC_CACHE_VAL 11970case "x$ac_cv_prog_cc_c99" in 11971 x) 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11973$as_echo "none needed" >&6; } ;; 11974 xno) 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11976$as_echo "unsupported" >&6; } ;; 11977 *) 11978 CC="$CC $ac_cv_prog_cc_c99" 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11980$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11981esac 11982if test "x$ac_cv_prog_cc_c99" != xno; then : 11983 11984fi 11985 11986 11987 11988 11989 11990 11991ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11992if test "x$ac_cv_have_decl___clang__" = xyes; then : 11993 CLANGCC="yes" 11994else 11995 CLANGCC="no" 11996fi 11997 11998ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11999if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12000 INTELCC="yes" 12001else 12002 INTELCC="no" 12003fi 12004 12005ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12006if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12007 SUNCC="yes" 12008else 12009 SUNCC="no" 12010fi 12011 12012 12013 12014 12015if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12016 if test -n "$ac_tool_prefix"; then 12017 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12018set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12020$as_echo_n "checking for $ac_word... " >&6; } 12021if ${ac_cv_path_PKG_CONFIG+:} false; then : 12022 $as_echo_n "(cached) " >&6 12023else 12024 case $PKG_CONFIG in 12025 [\\/]* | ?:[\\/]*) 12026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12027 ;; 12028 *) 12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12030for as_dir in $PATH 12031do 12032 IFS=$as_save_IFS 12033 test -z "$as_dir" && as_dir=. 12034 for ac_exec_ext in '' $ac_executable_extensions; do 12035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12036 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12038 break 2 12039 fi 12040done 12041 done 12042IFS=$as_save_IFS 12043 12044 ;; 12045esac 12046fi 12047PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12048if test -n "$PKG_CONFIG"; then 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12050$as_echo "$PKG_CONFIG" >&6; } 12051else 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12053$as_echo "no" >&6; } 12054fi 12055 12056 12057fi 12058if test -z "$ac_cv_path_PKG_CONFIG"; then 12059 ac_pt_PKG_CONFIG=$PKG_CONFIG 12060 # Extract the first word of "pkg-config", so it can be a program name with args. 12061set dummy pkg-config; ac_word=$2 12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12063$as_echo_n "checking for $ac_word... " >&6; } 12064if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12065 $as_echo_n "(cached) " >&6 12066else 12067 case $ac_pt_PKG_CONFIG in 12068 [\\/]* | ?:[\\/]*) 12069 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12070 ;; 12071 *) 12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12073for as_dir in $PATH 12074do 12075 IFS=$as_save_IFS 12076 test -z "$as_dir" && as_dir=. 12077 for ac_exec_ext in '' $ac_executable_extensions; do 12078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12079 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12081 break 2 12082 fi 12083done 12084 done 12085IFS=$as_save_IFS 12086 12087 ;; 12088esac 12089fi 12090ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12091if test -n "$ac_pt_PKG_CONFIG"; then 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12093$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12094else 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12096$as_echo "no" >&6; } 12097fi 12098 12099 if test "x$ac_pt_PKG_CONFIG" = x; then 12100 PKG_CONFIG="" 12101 else 12102 case $cross_compiling:$ac_tool_warned in 12103yes:) 12104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12106ac_tool_warned=yes ;; 12107esac 12108 PKG_CONFIG=$ac_pt_PKG_CONFIG 12109 fi 12110else 12111 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12112fi 12113 12114fi 12115if test -n "$PKG_CONFIG"; then 12116 _pkg_min_version=0.9.0 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12118$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12119 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12121$as_echo "yes" >&6; } 12122 else 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12124$as_echo "no" >&6; } 12125 PKG_CONFIG="" 12126 fi 12127 12128fi 12129 12130 12131 12132 12133 12134# Check whether --enable-selective-werror was given. 12135if test "${enable_selective_werror+set}" = set; then : 12136 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12137else 12138 SELECTIVE_WERROR=yes 12139fi 12140 12141 12142 12143 12144 12145# -v is too short to test reliably with XORG_TESTSET_CFLAG 12146if test "x$SUNCC" = "xyes"; then 12147 BASE_CFLAGS="-v" 12148else 12149 BASE_CFLAGS="" 12150fi 12151 12152# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166xorg_testset_save_CFLAGS="$CFLAGS" 12167 12168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12173 $as_echo_n "(cached) " >&6 12174else 12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12176/* end confdefs.h. */ 12177int i; 12178_ACEOF 12179if ac_fn_c_try_compile "$LINENO"; then : 12180 xorg_cv_cc_flag_unknown_warning_option=yes 12181else 12182 xorg_cv_cc_flag_unknown_warning_option=no 12183fi 12184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12185fi 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12189 CFLAGS="$xorg_testset_save_CFLAGS" 12190fi 12191 12192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12195 fi 12196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12200 $as_echo_n "(cached) " >&6 12201else 12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12203/* end confdefs.h. */ 12204int i; 12205_ACEOF 12206if ac_fn_c_try_compile "$LINENO"; then : 12207 xorg_cv_cc_flag_unused_command_line_argument=yes 12208else 12209 xorg_cv_cc_flag_unused_command_line_argument=no 12210fi 12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12212fi 12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12216 CFLAGS="$xorg_testset_save_CFLAGS" 12217fi 12218 12219found="no" 12220 12221 if test $found = "no" ; then 12222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12224 fi 12225 12226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12228 fi 12229 12230 CFLAGS="$CFLAGS -Wall" 12231 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12233$as_echo_n "checking if $CC supports -Wall... " >&6; } 12234 cacheid=xorg_cv_cc_flag__Wall 12235 if eval \${$cacheid+:} false; then : 12236 $as_echo_n "(cached) " >&6 12237else 12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12239/* end confdefs.h. */ 12240int i; 12241int 12242main () 12243{ 12244 12245 ; 12246 return 0; 12247} 12248_ACEOF 12249if ac_fn_c_try_link "$LINENO"; then : 12250 eval $cacheid=yes 12251else 12252 eval $cacheid=no 12253fi 12254rm -f core conftest.err conftest.$ac_objext \ 12255 conftest$ac_exeext conftest.$ac_ext 12256fi 12257 12258 12259 CFLAGS="$xorg_testset_save_CFLAGS" 12260 12261 eval supported=\$$cacheid 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12263$as_echo "$supported" >&6; } 12264 if test "$supported" = "yes" ; then 12265 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12266 found="yes" 12267 fi 12268 fi 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284xorg_testset_save_CFLAGS="$CFLAGS" 12285 12286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12291 $as_echo_n "(cached) " >&6 12292else 12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12294/* end confdefs.h. */ 12295int i; 12296_ACEOF 12297if ac_fn_c_try_compile "$LINENO"; then : 12298 xorg_cv_cc_flag_unknown_warning_option=yes 12299else 12300 xorg_cv_cc_flag_unknown_warning_option=no 12301fi 12302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12303fi 12304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12307 CFLAGS="$xorg_testset_save_CFLAGS" 12308fi 12309 12310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12313 fi 12314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12318 $as_echo_n "(cached) " >&6 12319else 12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12321/* end confdefs.h. */ 12322int i; 12323_ACEOF 12324if ac_fn_c_try_compile "$LINENO"; then : 12325 xorg_cv_cc_flag_unused_command_line_argument=yes 12326else 12327 xorg_cv_cc_flag_unused_command_line_argument=no 12328fi 12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12330fi 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12334 CFLAGS="$xorg_testset_save_CFLAGS" 12335fi 12336 12337found="no" 12338 12339 if test $found = "no" ; then 12340 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12342 fi 12343 12344 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12346 fi 12347 12348 CFLAGS="$CFLAGS -Wpointer-arith" 12349 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12351$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12352 cacheid=xorg_cv_cc_flag__Wpointer_arith 12353 if eval \${$cacheid+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12357/* end confdefs.h. */ 12358int i; 12359int 12360main () 12361{ 12362 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367if ac_fn_c_try_link "$LINENO"; then : 12368 eval $cacheid=yes 12369else 12370 eval $cacheid=no 12371fi 12372rm -f core conftest.err conftest.$ac_objext \ 12373 conftest$ac_exeext conftest.$ac_ext 12374fi 12375 12376 12377 CFLAGS="$xorg_testset_save_CFLAGS" 12378 12379 eval supported=\$$cacheid 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12381$as_echo "$supported" >&6; } 12382 if test "$supported" = "yes" ; then 12383 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12384 found="yes" 12385 fi 12386 fi 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402xorg_testset_save_CFLAGS="$CFLAGS" 12403 12404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12409 $as_echo_n "(cached) " >&6 12410else 12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12412/* end confdefs.h. */ 12413int i; 12414_ACEOF 12415if ac_fn_c_try_compile "$LINENO"; then : 12416 xorg_cv_cc_flag_unknown_warning_option=yes 12417else 12418 xorg_cv_cc_flag_unknown_warning_option=no 12419fi 12420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12421fi 12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12425 CFLAGS="$xorg_testset_save_CFLAGS" 12426fi 12427 12428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12431 fi 12432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12436 $as_echo_n "(cached) " >&6 12437else 12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12439/* end confdefs.h. */ 12440int i; 12441_ACEOF 12442if ac_fn_c_try_compile "$LINENO"; then : 12443 xorg_cv_cc_flag_unused_command_line_argument=yes 12444else 12445 xorg_cv_cc_flag_unused_command_line_argument=no 12446fi 12447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12448fi 12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12452 CFLAGS="$xorg_testset_save_CFLAGS" 12453fi 12454 12455found="no" 12456 12457 if test $found = "no" ; then 12458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12460 fi 12461 12462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12464 fi 12465 12466 CFLAGS="$CFLAGS -Wmissing-declarations" 12467 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12469$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12470 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12471 if eval \${$cacheid+:} false; then : 12472 $as_echo_n "(cached) " >&6 12473else 12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476int i; 12477int 12478main () 12479{ 12480 12481 ; 12482 return 0; 12483} 12484_ACEOF 12485if ac_fn_c_try_link "$LINENO"; then : 12486 eval $cacheid=yes 12487else 12488 eval $cacheid=no 12489fi 12490rm -f core conftest.err conftest.$ac_objext \ 12491 conftest$ac_exeext conftest.$ac_ext 12492fi 12493 12494 12495 CFLAGS="$xorg_testset_save_CFLAGS" 12496 12497 eval supported=\$$cacheid 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12499$as_echo "$supported" >&6; } 12500 if test "$supported" = "yes" ; then 12501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12502 found="yes" 12503 fi 12504 fi 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520xorg_testset_save_CFLAGS="$CFLAGS" 12521 12522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12527 $as_echo_n "(cached) " >&6 12528else 12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12530/* end confdefs.h. */ 12531int i; 12532_ACEOF 12533if ac_fn_c_try_compile "$LINENO"; then : 12534 xorg_cv_cc_flag_unknown_warning_option=yes 12535else 12536 xorg_cv_cc_flag_unknown_warning_option=no 12537fi 12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12539fi 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12543 CFLAGS="$xorg_testset_save_CFLAGS" 12544fi 12545 12546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12549 fi 12550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555else 12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12557/* end confdefs.h. */ 12558int i; 12559_ACEOF 12560if ac_fn_c_try_compile "$LINENO"; then : 12561 xorg_cv_cc_flag_unused_command_line_argument=yes 12562else 12563 xorg_cv_cc_flag_unused_command_line_argument=no 12564fi 12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12566fi 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12570 CFLAGS="$xorg_testset_save_CFLAGS" 12571fi 12572 12573found="no" 12574 12575 if test $found = "no" ; then 12576 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12578 fi 12579 12580 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12582 fi 12583 12584 CFLAGS="$CFLAGS -Wformat=2" 12585 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12587$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12588 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12589 if eval \${$cacheid+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12593/* end confdefs.h. */ 12594int i; 12595int 12596main () 12597{ 12598 12599 ; 12600 return 0; 12601} 12602_ACEOF 12603if ac_fn_c_try_link "$LINENO"; then : 12604 eval $cacheid=yes 12605else 12606 eval $cacheid=no 12607fi 12608rm -f core conftest.err conftest.$ac_objext \ 12609 conftest$ac_exeext conftest.$ac_ext 12610fi 12611 12612 12613 CFLAGS="$xorg_testset_save_CFLAGS" 12614 12615 eval supported=\$$cacheid 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12617$as_echo "$supported" >&6; } 12618 if test "$supported" = "yes" ; then 12619 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12620 found="yes" 12621 fi 12622 fi 12623 12624 if test $found = "no" ; then 12625 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12627 fi 12628 12629 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12631 fi 12632 12633 CFLAGS="$CFLAGS -Wformat" 12634 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12636$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12637 cacheid=xorg_cv_cc_flag__Wformat 12638 if eval \${$cacheid+:} false; then : 12639 $as_echo_n "(cached) " >&6 12640else 12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12642/* end confdefs.h. */ 12643int i; 12644int 12645main () 12646{ 12647 12648 ; 12649 return 0; 12650} 12651_ACEOF 12652if ac_fn_c_try_link "$LINENO"; then : 12653 eval $cacheid=yes 12654else 12655 eval $cacheid=no 12656fi 12657rm -f core conftest.err conftest.$ac_objext \ 12658 conftest$ac_exeext conftest.$ac_ext 12659fi 12660 12661 12662 CFLAGS="$xorg_testset_save_CFLAGS" 12663 12664 eval supported=\$$cacheid 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12666$as_echo "$supported" >&6; } 12667 if test "$supported" = "yes" ; then 12668 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12669 found="yes" 12670 fi 12671 fi 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689xorg_testset_save_CFLAGS="$CFLAGS" 12690 12691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12694$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12695if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697else 12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12699/* end confdefs.h. */ 12700int i; 12701_ACEOF 12702if ac_fn_c_try_compile "$LINENO"; then : 12703 xorg_cv_cc_flag_unknown_warning_option=yes 12704else 12705 xorg_cv_cc_flag_unknown_warning_option=no 12706fi 12707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12708fi 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12710$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12712 CFLAGS="$xorg_testset_save_CFLAGS" 12713fi 12714 12715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12718 fi 12719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12721$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12722if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12723 $as_echo_n "(cached) " >&6 12724else 12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12726/* end confdefs.h. */ 12727int i; 12728_ACEOF 12729if ac_fn_c_try_compile "$LINENO"; then : 12730 xorg_cv_cc_flag_unused_command_line_argument=yes 12731else 12732 xorg_cv_cc_flag_unused_command_line_argument=no 12733fi 12734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12735fi 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12737$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12739 CFLAGS="$xorg_testset_save_CFLAGS" 12740fi 12741 12742found="no" 12743 12744 if test $found = "no" ; then 12745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12747 fi 12748 12749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12751 fi 12752 12753 CFLAGS="$CFLAGS -Wstrict-prototypes" 12754 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12756$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12757 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12758 if eval \${$cacheid+:} false; then : 12759 $as_echo_n "(cached) " >&6 12760else 12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12762/* end confdefs.h. */ 12763int i; 12764int 12765main () 12766{ 12767 12768 ; 12769 return 0; 12770} 12771_ACEOF 12772if ac_fn_c_try_link "$LINENO"; then : 12773 eval $cacheid=yes 12774else 12775 eval $cacheid=no 12776fi 12777rm -f core conftest.err conftest.$ac_objext \ 12778 conftest$ac_exeext conftest.$ac_ext 12779fi 12780 12781 12782 CFLAGS="$xorg_testset_save_CFLAGS" 12783 12784 eval supported=\$$cacheid 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12786$as_echo "$supported" >&6; } 12787 if test "$supported" = "yes" ; then 12788 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12789 found="yes" 12790 fi 12791 fi 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807xorg_testset_save_CFLAGS="$CFLAGS" 12808 12809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12814 $as_echo_n "(cached) " >&6 12815else 12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12817/* end confdefs.h. */ 12818int i; 12819_ACEOF 12820if ac_fn_c_try_compile "$LINENO"; then : 12821 xorg_cv_cc_flag_unknown_warning_option=yes 12822else 12823 xorg_cv_cc_flag_unknown_warning_option=no 12824fi 12825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12826fi 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12830 CFLAGS="$xorg_testset_save_CFLAGS" 12831fi 12832 12833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12836 fi 12837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12841 $as_echo_n "(cached) " >&6 12842else 12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12844/* end confdefs.h. */ 12845int i; 12846_ACEOF 12847if ac_fn_c_try_compile "$LINENO"; then : 12848 xorg_cv_cc_flag_unused_command_line_argument=yes 12849else 12850 xorg_cv_cc_flag_unused_command_line_argument=no 12851fi 12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12853fi 12854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12857 CFLAGS="$xorg_testset_save_CFLAGS" 12858fi 12859 12860found="no" 12861 12862 if test $found = "no" ; then 12863 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12865 fi 12866 12867 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12869 fi 12870 12871 CFLAGS="$CFLAGS -Wmissing-prototypes" 12872 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12874$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12875 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12876 if eval \${$cacheid+:} false; then : 12877 $as_echo_n "(cached) " >&6 12878else 12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12880/* end confdefs.h. */ 12881int i; 12882int 12883main () 12884{ 12885 12886 ; 12887 return 0; 12888} 12889_ACEOF 12890if ac_fn_c_try_link "$LINENO"; then : 12891 eval $cacheid=yes 12892else 12893 eval $cacheid=no 12894fi 12895rm -f core conftest.err conftest.$ac_objext \ 12896 conftest$ac_exeext conftest.$ac_ext 12897fi 12898 12899 12900 CFLAGS="$xorg_testset_save_CFLAGS" 12901 12902 eval supported=\$$cacheid 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12904$as_echo "$supported" >&6; } 12905 if test "$supported" = "yes" ; then 12906 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12907 found="yes" 12908 fi 12909 fi 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925xorg_testset_save_CFLAGS="$CFLAGS" 12926 12927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12932 $as_echo_n "(cached) " >&6 12933else 12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12935/* end confdefs.h. */ 12936int i; 12937_ACEOF 12938if ac_fn_c_try_compile "$LINENO"; then : 12939 xorg_cv_cc_flag_unknown_warning_option=yes 12940else 12941 xorg_cv_cc_flag_unknown_warning_option=no 12942fi 12943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12944fi 12945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12948 CFLAGS="$xorg_testset_save_CFLAGS" 12949fi 12950 12951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12954 fi 12955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960else 12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12962/* end confdefs.h. */ 12963int i; 12964_ACEOF 12965if ac_fn_c_try_compile "$LINENO"; then : 12966 xorg_cv_cc_flag_unused_command_line_argument=yes 12967else 12968 xorg_cv_cc_flag_unused_command_line_argument=no 12969fi 12970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12971fi 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12975 CFLAGS="$xorg_testset_save_CFLAGS" 12976fi 12977 12978found="no" 12979 12980 if test $found = "no" ; then 12981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12983 fi 12984 12985 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12987 fi 12988 12989 CFLAGS="$CFLAGS -Wnested-externs" 12990 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12992$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12993 cacheid=xorg_cv_cc_flag__Wnested_externs 12994 if eval \${$cacheid+:} false; then : 12995 $as_echo_n "(cached) " >&6 12996else 12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12998/* end confdefs.h. */ 12999int i; 13000int 13001main () 13002{ 13003 13004 ; 13005 return 0; 13006} 13007_ACEOF 13008if ac_fn_c_try_link "$LINENO"; then : 13009 eval $cacheid=yes 13010else 13011 eval $cacheid=no 13012fi 13013rm -f core conftest.err conftest.$ac_objext \ 13014 conftest$ac_exeext conftest.$ac_ext 13015fi 13016 13017 13018 CFLAGS="$xorg_testset_save_CFLAGS" 13019 13020 eval supported=\$$cacheid 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13022$as_echo "$supported" >&6; } 13023 if test "$supported" = "yes" ; then 13024 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13025 found="yes" 13026 fi 13027 fi 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043xorg_testset_save_CFLAGS="$CFLAGS" 13044 13045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054int i; 13055_ACEOF 13056if ac_fn_c_try_compile "$LINENO"; then : 13057 xorg_cv_cc_flag_unknown_warning_option=yes 13058else 13059 xorg_cv_cc_flag_unknown_warning_option=no 13060fi 13061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13062fi 13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13066 CFLAGS="$xorg_testset_save_CFLAGS" 13067fi 13068 13069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13072 fi 13073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13077 $as_echo_n "(cached) " >&6 13078else 13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13080/* end confdefs.h. */ 13081int i; 13082_ACEOF 13083if ac_fn_c_try_compile "$LINENO"; then : 13084 xorg_cv_cc_flag_unused_command_line_argument=yes 13085else 13086 xorg_cv_cc_flag_unused_command_line_argument=no 13087fi 13088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13089fi 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13093 CFLAGS="$xorg_testset_save_CFLAGS" 13094fi 13095 13096found="no" 13097 13098 if test $found = "no" ; then 13099 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13101 fi 13102 13103 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13105 fi 13106 13107 CFLAGS="$CFLAGS -Wbad-function-cast" 13108 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13110$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13111 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13112 if eval \${$cacheid+:} false; then : 13113 $as_echo_n "(cached) " >&6 13114else 13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13116/* end confdefs.h. */ 13117int i; 13118int 13119main () 13120{ 13121 13122 ; 13123 return 0; 13124} 13125_ACEOF 13126if ac_fn_c_try_link "$LINENO"; then : 13127 eval $cacheid=yes 13128else 13129 eval $cacheid=no 13130fi 13131rm -f core conftest.err conftest.$ac_objext \ 13132 conftest$ac_exeext conftest.$ac_ext 13133fi 13134 13135 13136 CFLAGS="$xorg_testset_save_CFLAGS" 13137 13138 eval supported=\$$cacheid 13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13140$as_echo "$supported" >&6; } 13141 if test "$supported" = "yes" ; then 13142 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13143 found="yes" 13144 fi 13145 fi 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161xorg_testset_save_CFLAGS="$CFLAGS" 13162 13163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172int i; 13173_ACEOF 13174if ac_fn_c_try_compile "$LINENO"; then : 13175 xorg_cv_cc_flag_unknown_warning_option=yes 13176else 13177 xorg_cv_cc_flag_unknown_warning_option=no 13178fi 13179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13180fi 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13184 CFLAGS="$xorg_testset_save_CFLAGS" 13185fi 13186 13187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13190 fi 13191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13195 $as_echo_n "(cached) " >&6 13196else 13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13198/* end confdefs.h. */ 13199int i; 13200_ACEOF 13201if ac_fn_c_try_compile "$LINENO"; then : 13202 xorg_cv_cc_flag_unused_command_line_argument=yes 13203else 13204 xorg_cv_cc_flag_unused_command_line_argument=no 13205fi 13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13207fi 13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13211 CFLAGS="$xorg_testset_save_CFLAGS" 13212fi 13213 13214found="no" 13215 13216 if test $found = "no" ; then 13217 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13219 fi 13220 13221 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13223 fi 13224 13225 CFLAGS="$CFLAGS -Wold-style-definition" 13226 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13228$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13229 cacheid=xorg_cv_cc_flag__Wold_style_definition 13230 if eval \${$cacheid+:} false; then : 13231 $as_echo_n "(cached) " >&6 13232else 13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13234/* end confdefs.h. */ 13235int i; 13236int 13237main () 13238{ 13239 13240 ; 13241 return 0; 13242} 13243_ACEOF 13244if ac_fn_c_try_link "$LINENO"; then : 13245 eval $cacheid=yes 13246else 13247 eval $cacheid=no 13248fi 13249rm -f core conftest.err conftest.$ac_objext \ 13250 conftest$ac_exeext conftest.$ac_ext 13251fi 13252 13253 13254 CFLAGS="$xorg_testset_save_CFLAGS" 13255 13256 eval supported=\$$cacheid 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13258$as_echo "$supported" >&6; } 13259 if test "$supported" = "yes" ; then 13260 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13261 found="yes" 13262 fi 13263 fi 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279xorg_testset_save_CFLAGS="$CFLAGS" 13280 13281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13286 $as_echo_n "(cached) " >&6 13287else 13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13289/* end confdefs.h. */ 13290int i; 13291_ACEOF 13292if ac_fn_c_try_compile "$LINENO"; then : 13293 xorg_cv_cc_flag_unknown_warning_option=yes 13294else 13295 xorg_cv_cc_flag_unknown_warning_option=no 13296fi 13297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13298fi 13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13302 CFLAGS="$xorg_testset_save_CFLAGS" 13303fi 13304 13305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13308 fi 13309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314else 13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316/* end confdefs.h. */ 13317int i; 13318_ACEOF 13319if ac_fn_c_try_compile "$LINENO"; then : 13320 xorg_cv_cc_flag_unused_command_line_argument=yes 13321else 13322 xorg_cv_cc_flag_unused_command_line_argument=no 13323fi 13324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13325fi 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13329 CFLAGS="$xorg_testset_save_CFLAGS" 13330fi 13331 13332found="no" 13333 13334 if test $found = "no" ; then 13335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13337 fi 13338 13339 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13341 fi 13342 13343 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13344 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13346$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13347 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13348 if eval \${$cacheid+:} false; then : 13349 $as_echo_n "(cached) " >&6 13350else 13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13352/* end confdefs.h. */ 13353int i; 13354int 13355main () 13356{ 13357 13358 ; 13359 return 0; 13360} 13361_ACEOF 13362if ac_fn_c_try_link "$LINENO"; then : 13363 eval $cacheid=yes 13364else 13365 eval $cacheid=no 13366fi 13367rm -f core conftest.err conftest.$ac_objext \ 13368 conftest$ac_exeext conftest.$ac_ext 13369fi 13370 13371 13372 CFLAGS="$xorg_testset_save_CFLAGS" 13373 13374 eval supported=\$$cacheid 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13376$as_echo "$supported" >&6; } 13377 if test "$supported" = "yes" ; then 13378 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13379 found="yes" 13380 fi 13381 fi 13382 13383 13384 13385 13386 13387# This chunk adds additional warnings that could catch undesired effects. 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401xorg_testset_save_CFLAGS="$CFLAGS" 13402 13403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13408 $as_echo_n "(cached) " >&6 13409else 13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13411/* end confdefs.h. */ 13412int i; 13413_ACEOF 13414if ac_fn_c_try_compile "$LINENO"; then : 13415 xorg_cv_cc_flag_unknown_warning_option=yes 13416else 13417 xorg_cv_cc_flag_unknown_warning_option=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420fi 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13424 CFLAGS="$xorg_testset_save_CFLAGS" 13425fi 13426 13427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13430 fi 13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13435 $as_echo_n "(cached) " >&6 13436else 13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13438/* end confdefs.h. */ 13439int i; 13440_ACEOF 13441if ac_fn_c_try_compile "$LINENO"; then : 13442 xorg_cv_cc_flag_unused_command_line_argument=yes 13443else 13444 xorg_cv_cc_flag_unused_command_line_argument=no 13445fi 13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13447fi 13448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13451 CFLAGS="$xorg_testset_save_CFLAGS" 13452fi 13453 13454found="no" 13455 13456 if test $found = "no" ; then 13457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13459 fi 13460 13461 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13463 fi 13464 13465 CFLAGS="$CFLAGS -Wunused" 13466 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13468$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13469 cacheid=xorg_cv_cc_flag__Wunused 13470 if eval \${$cacheid+:} false; then : 13471 $as_echo_n "(cached) " >&6 13472else 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475int i; 13476int 13477main () 13478{ 13479 13480 ; 13481 return 0; 13482} 13483_ACEOF 13484if ac_fn_c_try_link "$LINENO"; then : 13485 eval $cacheid=yes 13486else 13487 eval $cacheid=no 13488fi 13489rm -f core conftest.err conftest.$ac_objext \ 13490 conftest$ac_exeext conftest.$ac_ext 13491fi 13492 13493 13494 CFLAGS="$xorg_testset_save_CFLAGS" 13495 13496 eval supported=\$$cacheid 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13498$as_echo "$supported" >&6; } 13499 if test "$supported" = "yes" ; then 13500 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13501 found="yes" 13502 fi 13503 fi 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519xorg_testset_save_CFLAGS="$CFLAGS" 13520 13521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13526 $as_echo_n "(cached) " >&6 13527else 13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13529/* end confdefs.h. */ 13530int i; 13531_ACEOF 13532if ac_fn_c_try_compile "$LINENO"; then : 13533 xorg_cv_cc_flag_unknown_warning_option=yes 13534else 13535 xorg_cv_cc_flag_unknown_warning_option=no 13536fi 13537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13538fi 13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13542 CFLAGS="$xorg_testset_save_CFLAGS" 13543fi 13544 13545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13548 fi 13549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13553 $as_echo_n "(cached) " >&6 13554else 13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13556/* end confdefs.h. */ 13557int i; 13558_ACEOF 13559if ac_fn_c_try_compile "$LINENO"; then : 13560 xorg_cv_cc_flag_unused_command_line_argument=yes 13561else 13562 xorg_cv_cc_flag_unused_command_line_argument=no 13563fi 13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13565fi 13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13569 CFLAGS="$xorg_testset_save_CFLAGS" 13570fi 13571 13572found="no" 13573 13574 if test $found = "no" ; then 13575 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13577 fi 13578 13579 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13581 fi 13582 13583 CFLAGS="$CFLAGS -Wuninitialized" 13584 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13586$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13587 cacheid=xorg_cv_cc_flag__Wuninitialized 13588 if eval \${$cacheid+:} false; then : 13589 $as_echo_n "(cached) " >&6 13590else 13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593int i; 13594int 13595main () 13596{ 13597 13598 ; 13599 return 0; 13600} 13601_ACEOF 13602if ac_fn_c_try_link "$LINENO"; then : 13603 eval $cacheid=yes 13604else 13605 eval $cacheid=no 13606fi 13607rm -f core conftest.err conftest.$ac_objext \ 13608 conftest$ac_exeext conftest.$ac_ext 13609fi 13610 13611 13612 CFLAGS="$xorg_testset_save_CFLAGS" 13613 13614 eval supported=\$$cacheid 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13616$as_echo "$supported" >&6; } 13617 if test "$supported" = "yes" ; then 13618 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13619 found="yes" 13620 fi 13621 fi 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637xorg_testset_save_CFLAGS="$CFLAGS" 13638 13639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13644 $as_echo_n "(cached) " >&6 13645else 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648int i; 13649_ACEOF 13650if ac_fn_c_try_compile "$LINENO"; then : 13651 xorg_cv_cc_flag_unknown_warning_option=yes 13652else 13653 xorg_cv_cc_flag_unknown_warning_option=no 13654fi 13655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13656fi 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13660 CFLAGS="$xorg_testset_save_CFLAGS" 13661fi 13662 13663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13666 fi 13667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13671 $as_echo_n "(cached) " >&6 13672else 13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13674/* end confdefs.h. */ 13675int i; 13676_ACEOF 13677if ac_fn_c_try_compile "$LINENO"; then : 13678 xorg_cv_cc_flag_unused_command_line_argument=yes 13679else 13680 xorg_cv_cc_flag_unused_command_line_argument=no 13681fi 13682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13683fi 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13687 CFLAGS="$xorg_testset_save_CFLAGS" 13688fi 13689 13690found="no" 13691 13692 if test $found = "no" ; then 13693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13695 fi 13696 13697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13699 fi 13700 13701 CFLAGS="$CFLAGS -Wshadow" 13702 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13704$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13705 cacheid=xorg_cv_cc_flag__Wshadow 13706 if eval \${$cacheid+:} false; then : 13707 $as_echo_n "(cached) " >&6 13708else 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711int i; 13712int 13713main () 13714{ 13715 13716 ; 13717 return 0; 13718} 13719_ACEOF 13720if ac_fn_c_try_link "$LINENO"; then : 13721 eval $cacheid=yes 13722else 13723 eval $cacheid=no 13724fi 13725rm -f core conftest.err conftest.$ac_objext \ 13726 conftest$ac_exeext conftest.$ac_ext 13727fi 13728 13729 13730 CFLAGS="$xorg_testset_save_CFLAGS" 13731 13732 eval supported=\$$cacheid 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13734$as_echo "$supported" >&6; } 13735 if test "$supported" = "yes" ; then 13736 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13737 found="yes" 13738 fi 13739 fi 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755xorg_testset_save_CFLAGS="$CFLAGS" 13756 13757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13762 $as_echo_n "(cached) " >&6 13763else 13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13765/* end confdefs.h. */ 13766int i; 13767_ACEOF 13768if ac_fn_c_try_compile "$LINENO"; then : 13769 xorg_cv_cc_flag_unknown_warning_option=yes 13770else 13771 xorg_cv_cc_flag_unknown_warning_option=no 13772fi 13773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13774fi 13775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13778 CFLAGS="$xorg_testset_save_CFLAGS" 13779fi 13780 13781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13784 fi 13785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13789 $as_echo_n "(cached) " >&6 13790else 13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13792/* end confdefs.h. */ 13793int i; 13794_ACEOF 13795if ac_fn_c_try_compile "$LINENO"; then : 13796 xorg_cv_cc_flag_unused_command_line_argument=yes 13797else 13798 xorg_cv_cc_flag_unused_command_line_argument=no 13799fi 13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13801fi 13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13805 CFLAGS="$xorg_testset_save_CFLAGS" 13806fi 13807 13808found="no" 13809 13810 if test $found = "no" ; then 13811 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13813 fi 13814 13815 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13817 fi 13818 13819 CFLAGS="$CFLAGS -Wcast-qual" 13820 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13822$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13823 cacheid=xorg_cv_cc_flag__Wcast_qual 13824 if eval \${$cacheid+:} false; then : 13825 $as_echo_n "(cached) " >&6 13826else 13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829int i; 13830int 13831main () 13832{ 13833 13834 ; 13835 return 0; 13836} 13837_ACEOF 13838if ac_fn_c_try_link "$LINENO"; then : 13839 eval $cacheid=yes 13840else 13841 eval $cacheid=no 13842fi 13843rm -f core conftest.err conftest.$ac_objext \ 13844 conftest$ac_exeext conftest.$ac_ext 13845fi 13846 13847 13848 CFLAGS="$xorg_testset_save_CFLAGS" 13849 13850 eval supported=\$$cacheid 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13852$as_echo "$supported" >&6; } 13853 if test "$supported" = "yes" ; then 13854 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13855 found="yes" 13856 fi 13857 fi 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873xorg_testset_save_CFLAGS="$CFLAGS" 13874 13875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13880 $as_echo_n "(cached) " >&6 13881else 13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13883/* end confdefs.h. */ 13884int i; 13885_ACEOF 13886if ac_fn_c_try_compile "$LINENO"; then : 13887 xorg_cv_cc_flag_unknown_warning_option=yes 13888else 13889 xorg_cv_cc_flag_unknown_warning_option=no 13890fi 13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13892fi 13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13896 CFLAGS="$xorg_testset_save_CFLAGS" 13897fi 13898 13899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13902 fi 13903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13907 $as_echo_n "(cached) " >&6 13908else 13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13910/* end confdefs.h. */ 13911int i; 13912_ACEOF 13913if ac_fn_c_try_compile "$LINENO"; then : 13914 xorg_cv_cc_flag_unused_command_line_argument=yes 13915else 13916 xorg_cv_cc_flag_unused_command_line_argument=no 13917fi 13918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13919fi 13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13923 CFLAGS="$xorg_testset_save_CFLAGS" 13924fi 13925 13926found="no" 13927 13928 if test $found = "no" ; then 13929 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13931 fi 13932 13933 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13935 fi 13936 13937 CFLAGS="$CFLAGS -Wmissing-noreturn" 13938 13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13940$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13941 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13942 if eval \${$cacheid+:} false; then : 13943 $as_echo_n "(cached) " >&6 13944else 13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13946/* end confdefs.h. */ 13947int i; 13948int 13949main () 13950{ 13951 13952 ; 13953 return 0; 13954} 13955_ACEOF 13956if ac_fn_c_try_link "$LINENO"; then : 13957 eval $cacheid=yes 13958else 13959 eval $cacheid=no 13960fi 13961rm -f core conftest.err conftest.$ac_objext \ 13962 conftest$ac_exeext conftest.$ac_ext 13963fi 13964 13965 13966 CFLAGS="$xorg_testset_save_CFLAGS" 13967 13968 eval supported=\$$cacheid 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13970$as_echo "$supported" >&6; } 13971 if test "$supported" = "yes" ; then 13972 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13973 found="yes" 13974 fi 13975 fi 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991xorg_testset_save_CFLAGS="$CFLAGS" 13992 13993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13998 $as_echo_n "(cached) " >&6 13999else 14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14001/* end confdefs.h. */ 14002int i; 14003_ACEOF 14004if ac_fn_c_try_compile "$LINENO"; then : 14005 xorg_cv_cc_flag_unknown_warning_option=yes 14006else 14007 xorg_cv_cc_flag_unknown_warning_option=no 14008fi 14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14010fi 14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14014 CFLAGS="$xorg_testset_save_CFLAGS" 14015fi 14016 14017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14020 fi 14021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14025 $as_echo_n "(cached) " >&6 14026else 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029int i; 14030_ACEOF 14031if ac_fn_c_try_compile "$LINENO"; then : 14032 xorg_cv_cc_flag_unused_command_line_argument=yes 14033else 14034 xorg_cv_cc_flag_unused_command_line_argument=no 14035fi 14036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14037fi 14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14041 CFLAGS="$xorg_testset_save_CFLAGS" 14042fi 14043 14044found="no" 14045 14046 if test $found = "no" ; then 14047 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14049 fi 14050 14051 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14053 fi 14054 14055 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14056 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14058$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14059 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14060 if eval \${$cacheid+:} false; then : 14061 $as_echo_n "(cached) " >&6 14062else 14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064/* end confdefs.h. */ 14065int i; 14066int 14067main () 14068{ 14069 14070 ; 14071 return 0; 14072} 14073_ACEOF 14074if ac_fn_c_try_link "$LINENO"; then : 14075 eval $cacheid=yes 14076else 14077 eval $cacheid=no 14078fi 14079rm -f core conftest.err conftest.$ac_objext \ 14080 conftest$ac_exeext conftest.$ac_ext 14081fi 14082 14083 14084 CFLAGS="$xorg_testset_save_CFLAGS" 14085 14086 eval supported=\$$cacheid 14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14088$as_echo "$supported" >&6; } 14089 if test "$supported" = "yes" ; then 14090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14091 found="yes" 14092 fi 14093 fi 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109xorg_testset_save_CFLAGS="$CFLAGS" 14110 14111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14116 $as_echo_n "(cached) " >&6 14117else 14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119/* end confdefs.h. */ 14120int i; 14121_ACEOF 14122if ac_fn_c_try_compile "$LINENO"; then : 14123 xorg_cv_cc_flag_unknown_warning_option=yes 14124else 14125 xorg_cv_cc_flag_unknown_warning_option=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14128fi 14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14132 CFLAGS="$xorg_testset_save_CFLAGS" 14133fi 14134 14135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14138 fi 14139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144else 14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14146/* end confdefs.h. */ 14147int i; 14148_ACEOF 14149if ac_fn_c_try_compile "$LINENO"; then : 14150 xorg_cv_cc_flag_unused_command_line_argument=yes 14151else 14152 xorg_cv_cc_flag_unused_command_line_argument=no 14153fi 14154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14155fi 14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14159 CFLAGS="$xorg_testset_save_CFLAGS" 14160fi 14161 14162found="no" 14163 14164 if test $found = "no" ; then 14165 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14167 fi 14168 14169 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14171 fi 14172 14173 CFLAGS="$CFLAGS -Wredundant-decls" 14174 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14176$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14177 cacheid=xorg_cv_cc_flag__Wredundant_decls 14178 if eval \${$cacheid+:} false; then : 14179 $as_echo_n "(cached) " >&6 14180else 14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14182/* end confdefs.h. */ 14183int i; 14184int 14185main () 14186{ 14187 14188 ; 14189 return 0; 14190} 14191_ACEOF 14192if ac_fn_c_try_link "$LINENO"; then : 14193 eval $cacheid=yes 14194else 14195 eval $cacheid=no 14196fi 14197rm -f core conftest.err conftest.$ac_objext \ 14198 conftest$ac_exeext conftest.$ac_ext 14199fi 14200 14201 14202 CFLAGS="$xorg_testset_save_CFLAGS" 14203 14204 eval supported=\$$cacheid 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14206$as_echo "$supported" >&6; } 14207 if test "$supported" = "yes" ; then 14208 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14209 found="yes" 14210 fi 14211 fi 14212 14213 14214 14215# These are currently disabled because they are noisy. They will be enabled 14216# in the future once the codebase is sufficiently modernized to silence 14217# them. For now, I don't want them to drown out the other warnings. 14218# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14219# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14220# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14221 14222# Turn some warnings into errors, so we don't accidently get successful builds 14223# when there are problems that should be fixed. 14224 14225if test "x$SELECTIVE_WERROR" = "xyes" ; then 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239xorg_testset_save_CFLAGS="$CFLAGS" 14240 14241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14246 $as_echo_n "(cached) " >&6 14247else 14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14249/* end confdefs.h. */ 14250int i; 14251_ACEOF 14252if ac_fn_c_try_compile "$LINENO"; then : 14253 xorg_cv_cc_flag_unknown_warning_option=yes 14254else 14255 xorg_cv_cc_flag_unknown_warning_option=no 14256fi 14257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14258fi 14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14262 CFLAGS="$xorg_testset_save_CFLAGS" 14263fi 14264 14265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14268 fi 14269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14273 $as_echo_n "(cached) " >&6 14274else 14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14276/* end confdefs.h. */ 14277int i; 14278_ACEOF 14279if ac_fn_c_try_compile "$LINENO"; then : 14280 xorg_cv_cc_flag_unused_command_line_argument=yes 14281else 14282 xorg_cv_cc_flag_unused_command_line_argument=no 14283fi 14284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14285fi 14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14289 CFLAGS="$xorg_testset_save_CFLAGS" 14290fi 14291 14292found="no" 14293 14294 if test $found = "no" ; then 14295 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14297 fi 14298 14299 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14301 fi 14302 14303 CFLAGS="$CFLAGS -Werror=implicit" 14304 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14306$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14307 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14308 if eval \${$cacheid+:} false; then : 14309 $as_echo_n "(cached) " >&6 14310else 14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14312/* end confdefs.h. */ 14313int i; 14314int 14315main () 14316{ 14317 14318 ; 14319 return 0; 14320} 14321_ACEOF 14322if ac_fn_c_try_link "$LINENO"; then : 14323 eval $cacheid=yes 14324else 14325 eval $cacheid=no 14326fi 14327rm -f core conftest.err conftest.$ac_objext \ 14328 conftest$ac_exeext conftest.$ac_ext 14329fi 14330 14331 14332 CFLAGS="$xorg_testset_save_CFLAGS" 14333 14334 eval supported=\$$cacheid 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14336$as_echo "$supported" >&6; } 14337 if test "$supported" = "yes" ; then 14338 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14339 found="yes" 14340 fi 14341 fi 14342 14343 if test $found = "no" ; then 14344 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14346 fi 14347 14348 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14350 fi 14351 14352 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14353 14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14355$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14356 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14357 if eval \${$cacheid+:} false; then : 14358 $as_echo_n "(cached) " >&6 14359else 14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362int i; 14363int 14364main () 14365{ 14366 14367 ; 14368 return 0; 14369} 14370_ACEOF 14371if ac_fn_c_try_link "$LINENO"; then : 14372 eval $cacheid=yes 14373else 14374 eval $cacheid=no 14375fi 14376rm -f core conftest.err conftest.$ac_objext \ 14377 conftest$ac_exeext conftest.$ac_ext 14378fi 14379 14380 14381 CFLAGS="$xorg_testset_save_CFLAGS" 14382 14383 eval supported=\$$cacheid 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14385$as_echo "$supported" >&6; } 14386 if test "$supported" = "yes" ; then 14387 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14388 found="yes" 14389 fi 14390 fi 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406xorg_testset_save_CFLAGS="$CFLAGS" 14407 14408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14413 $as_echo_n "(cached) " >&6 14414else 14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14416/* end confdefs.h. */ 14417int i; 14418_ACEOF 14419if ac_fn_c_try_compile "$LINENO"; then : 14420 xorg_cv_cc_flag_unknown_warning_option=yes 14421else 14422 xorg_cv_cc_flag_unknown_warning_option=no 14423fi 14424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14425fi 14426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14429 CFLAGS="$xorg_testset_save_CFLAGS" 14430fi 14431 14432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14435 fi 14436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14440 $as_echo_n "(cached) " >&6 14441else 14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14443/* end confdefs.h. */ 14444int i; 14445_ACEOF 14446if ac_fn_c_try_compile "$LINENO"; then : 14447 xorg_cv_cc_flag_unused_command_line_argument=yes 14448else 14449 xorg_cv_cc_flag_unused_command_line_argument=no 14450fi 14451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14452fi 14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14456 CFLAGS="$xorg_testset_save_CFLAGS" 14457fi 14458 14459found="no" 14460 14461 if test $found = "no" ; then 14462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14464 fi 14465 14466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14468 fi 14469 14470 CFLAGS="$CFLAGS -Werror=nonnull" 14471 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14473$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14474 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14475 if eval \${$cacheid+:} false; then : 14476 $as_echo_n "(cached) " >&6 14477else 14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14479/* end confdefs.h. */ 14480int i; 14481int 14482main () 14483{ 14484 14485 ; 14486 return 0; 14487} 14488_ACEOF 14489if ac_fn_c_try_link "$LINENO"; then : 14490 eval $cacheid=yes 14491else 14492 eval $cacheid=no 14493fi 14494rm -f core conftest.err conftest.$ac_objext \ 14495 conftest$ac_exeext conftest.$ac_ext 14496fi 14497 14498 14499 CFLAGS="$xorg_testset_save_CFLAGS" 14500 14501 eval supported=\$$cacheid 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14503$as_echo "$supported" >&6; } 14504 if test "$supported" = "yes" ; then 14505 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14506 found="yes" 14507 fi 14508 fi 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524xorg_testset_save_CFLAGS="$CFLAGS" 14525 14526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14531 $as_echo_n "(cached) " >&6 14532else 14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14534/* end confdefs.h. */ 14535int i; 14536_ACEOF 14537if ac_fn_c_try_compile "$LINENO"; then : 14538 xorg_cv_cc_flag_unknown_warning_option=yes 14539else 14540 xorg_cv_cc_flag_unknown_warning_option=no 14541fi 14542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14543fi 14544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14547 CFLAGS="$xorg_testset_save_CFLAGS" 14548fi 14549 14550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14553 fi 14554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14558 $as_echo_n "(cached) " >&6 14559else 14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14561/* end confdefs.h. */ 14562int i; 14563_ACEOF 14564if ac_fn_c_try_compile "$LINENO"; then : 14565 xorg_cv_cc_flag_unused_command_line_argument=yes 14566else 14567 xorg_cv_cc_flag_unused_command_line_argument=no 14568fi 14569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14570fi 14571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14574 CFLAGS="$xorg_testset_save_CFLAGS" 14575fi 14576 14577found="no" 14578 14579 if test $found = "no" ; then 14580 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14582 fi 14583 14584 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14586 fi 14587 14588 CFLAGS="$CFLAGS -Werror=init-self" 14589 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14591$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14592 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14593 if eval \${$cacheid+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14597/* end confdefs.h. */ 14598int i; 14599int 14600main () 14601{ 14602 14603 ; 14604 return 0; 14605} 14606_ACEOF 14607if ac_fn_c_try_link "$LINENO"; then : 14608 eval $cacheid=yes 14609else 14610 eval $cacheid=no 14611fi 14612rm -f core conftest.err conftest.$ac_objext \ 14613 conftest$ac_exeext conftest.$ac_ext 14614fi 14615 14616 14617 CFLAGS="$xorg_testset_save_CFLAGS" 14618 14619 eval supported=\$$cacheid 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14621$as_echo "$supported" >&6; } 14622 if test "$supported" = "yes" ; then 14623 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14624 found="yes" 14625 fi 14626 fi 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642xorg_testset_save_CFLAGS="$CFLAGS" 14643 14644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14649 $as_echo_n "(cached) " >&6 14650else 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652/* end confdefs.h. */ 14653int i; 14654_ACEOF 14655if ac_fn_c_try_compile "$LINENO"; then : 14656 xorg_cv_cc_flag_unknown_warning_option=yes 14657else 14658 xorg_cv_cc_flag_unknown_warning_option=no 14659fi 14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14661fi 14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14665 CFLAGS="$xorg_testset_save_CFLAGS" 14666fi 14667 14668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14671 fi 14672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14676 $as_echo_n "(cached) " >&6 14677else 14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14679/* end confdefs.h. */ 14680int i; 14681_ACEOF 14682if ac_fn_c_try_compile "$LINENO"; then : 14683 xorg_cv_cc_flag_unused_command_line_argument=yes 14684else 14685 xorg_cv_cc_flag_unused_command_line_argument=no 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14692 CFLAGS="$xorg_testset_save_CFLAGS" 14693fi 14694 14695found="no" 14696 14697 if test $found = "no" ; then 14698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14700 fi 14701 14702 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14704 fi 14705 14706 CFLAGS="$CFLAGS -Werror=main" 14707 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14709$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14710 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14711 if eval \${$cacheid+:} false; then : 14712 $as_echo_n "(cached) " >&6 14713else 14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14715/* end confdefs.h. */ 14716int i; 14717int 14718main () 14719{ 14720 14721 ; 14722 return 0; 14723} 14724_ACEOF 14725if ac_fn_c_try_link "$LINENO"; then : 14726 eval $cacheid=yes 14727else 14728 eval $cacheid=no 14729fi 14730rm -f core conftest.err conftest.$ac_objext \ 14731 conftest$ac_exeext conftest.$ac_ext 14732fi 14733 14734 14735 CFLAGS="$xorg_testset_save_CFLAGS" 14736 14737 eval supported=\$$cacheid 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14739$as_echo "$supported" >&6; } 14740 if test "$supported" = "yes" ; then 14741 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14742 found="yes" 14743 fi 14744 fi 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760xorg_testset_save_CFLAGS="$CFLAGS" 14761 14762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14767 $as_echo_n "(cached) " >&6 14768else 14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14770/* end confdefs.h. */ 14771int i; 14772_ACEOF 14773if ac_fn_c_try_compile "$LINENO"; then : 14774 xorg_cv_cc_flag_unknown_warning_option=yes 14775else 14776 xorg_cv_cc_flag_unknown_warning_option=no 14777fi 14778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14779fi 14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14783 CFLAGS="$xorg_testset_save_CFLAGS" 14784fi 14785 14786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14789 fi 14790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14794 $as_echo_n "(cached) " >&6 14795else 14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14797/* end confdefs.h. */ 14798int i; 14799_ACEOF 14800if ac_fn_c_try_compile "$LINENO"; then : 14801 xorg_cv_cc_flag_unused_command_line_argument=yes 14802else 14803 xorg_cv_cc_flag_unused_command_line_argument=no 14804fi 14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14806fi 14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14810 CFLAGS="$xorg_testset_save_CFLAGS" 14811fi 14812 14813found="no" 14814 14815 if test $found = "no" ; then 14816 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14818 fi 14819 14820 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14822 fi 14823 14824 CFLAGS="$CFLAGS -Werror=missing-braces" 14825 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14827$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14828 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14829 if eval \${$cacheid+:} false; then : 14830 $as_echo_n "(cached) " >&6 14831else 14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14833/* end confdefs.h. */ 14834int i; 14835int 14836main () 14837{ 14838 14839 ; 14840 return 0; 14841} 14842_ACEOF 14843if ac_fn_c_try_link "$LINENO"; then : 14844 eval $cacheid=yes 14845else 14846 eval $cacheid=no 14847fi 14848rm -f core conftest.err conftest.$ac_objext \ 14849 conftest$ac_exeext conftest.$ac_ext 14850fi 14851 14852 14853 CFLAGS="$xorg_testset_save_CFLAGS" 14854 14855 eval supported=\$$cacheid 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14857$as_echo "$supported" >&6; } 14858 if test "$supported" = "yes" ; then 14859 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14860 found="yes" 14861 fi 14862 fi 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878xorg_testset_save_CFLAGS="$CFLAGS" 14879 14880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14885 $as_echo_n "(cached) " >&6 14886else 14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14888/* end confdefs.h. */ 14889int i; 14890_ACEOF 14891if ac_fn_c_try_compile "$LINENO"; then : 14892 xorg_cv_cc_flag_unknown_warning_option=yes 14893else 14894 xorg_cv_cc_flag_unknown_warning_option=no 14895fi 14896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14897fi 14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14901 CFLAGS="$xorg_testset_save_CFLAGS" 14902fi 14903 14904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14907 fi 14908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14912 $as_echo_n "(cached) " >&6 14913else 14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14915/* end confdefs.h. */ 14916int i; 14917_ACEOF 14918if ac_fn_c_try_compile "$LINENO"; then : 14919 xorg_cv_cc_flag_unused_command_line_argument=yes 14920else 14921 xorg_cv_cc_flag_unused_command_line_argument=no 14922fi 14923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14924fi 14925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14928 CFLAGS="$xorg_testset_save_CFLAGS" 14929fi 14930 14931found="no" 14932 14933 if test $found = "no" ; then 14934 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14936 fi 14937 14938 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14940 fi 14941 14942 CFLAGS="$CFLAGS -Werror=sequence-point" 14943 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14945$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14946 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14947 if eval \${$cacheid+:} false; then : 14948 $as_echo_n "(cached) " >&6 14949else 14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14951/* end confdefs.h. */ 14952int i; 14953int 14954main () 14955{ 14956 14957 ; 14958 return 0; 14959} 14960_ACEOF 14961if ac_fn_c_try_link "$LINENO"; then : 14962 eval $cacheid=yes 14963else 14964 eval $cacheid=no 14965fi 14966rm -f core conftest.err conftest.$ac_objext \ 14967 conftest$ac_exeext conftest.$ac_ext 14968fi 14969 14970 14971 CFLAGS="$xorg_testset_save_CFLAGS" 14972 14973 eval supported=\$$cacheid 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14975$as_echo "$supported" >&6; } 14976 if test "$supported" = "yes" ; then 14977 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14978 found="yes" 14979 fi 14980 fi 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996xorg_testset_save_CFLAGS="$CFLAGS" 14997 14998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15003 $as_echo_n "(cached) " >&6 15004else 15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15006/* end confdefs.h. */ 15007int i; 15008_ACEOF 15009if ac_fn_c_try_compile "$LINENO"; then : 15010 xorg_cv_cc_flag_unknown_warning_option=yes 15011else 15012 xorg_cv_cc_flag_unknown_warning_option=no 15013fi 15014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15015fi 15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15019 CFLAGS="$xorg_testset_save_CFLAGS" 15020fi 15021 15022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15025 fi 15026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15030 $as_echo_n "(cached) " >&6 15031else 15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15033/* end confdefs.h. */ 15034int i; 15035_ACEOF 15036if ac_fn_c_try_compile "$LINENO"; then : 15037 xorg_cv_cc_flag_unused_command_line_argument=yes 15038else 15039 xorg_cv_cc_flag_unused_command_line_argument=no 15040fi 15041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15042fi 15043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15046 CFLAGS="$xorg_testset_save_CFLAGS" 15047fi 15048 15049found="no" 15050 15051 if test $found = "no" ; then 15052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15054 fi 15055 15056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15058 fi 15059 15060 CFLAGS="$CFLAGS -Werror=return-type" 15061 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15063$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15064 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 15065 if eval \${$cacheid+:} false; then : 15066 $as_echo_n "(cached) " >&6 15067else 15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15069/* end confdefs.h. */ 15070int i; 15071int 15072main () 15073{ 15074 15075 ; 15076 return 0; 15077} 15078_ACEOF 15079if ac_fn_c_try_link "$LINENO"; then : 15080 eval $cacheid=yes 15081else 15082 eval $cacheid=no 15083fi 15084rm -f core conftest.err conftest.$ac_objext \ 15085 conftest$ac_exeext conftest.$ac_ext 15086fi 15087 15088 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090 15091 eval supported=\$$cacheid 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15093$as_echo "$supported" >&6; } 15094 if test "$supported" = "yes" ; then 15095 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15096 found="yes" 15097 fi 15098 fi 15099 15100 if test $found = "no" ; then 15101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15103 fi 15104 15105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15107 fi 15108 15109 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15110 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15112$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15113 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 15114 if eval \${$cacheid+:} false; then : 15115 $as_echo_n "(cached) " >&6 15116else 15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15118/* end confdefs.h. */ 15119int i; 15120int 15121main () 15122{ 15123 15124 ; 15125 return 0; 15126} 15127_ACEOF 15128if ac_fn_c_try_link "$LINENO"; then : 15129 eval $cacheid=yes 15130else 15131 eval $cacheid=no 15132fi 15133rm -f core conftest.err conftest.$ac_objext \ 15134 conftest$ac_exeext conftest.$ac_ext 15135fi 15136 15137 15138 CFLAGS="$xorg_testset_save_CFLAGS" 15139 15140 eval supported=\$$cacheid 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15142$as_echo "$supported" >&6; } 15143 if test "$supported" = "yes" ; then 15144 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15145 found="yes" 15146 fi 15147 fi 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163xorg_testset_save_CFLAGS="$CFLAGS" 15164 15165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15170 $as_echo_n "(cached) " >&6 15171else 15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15173/* end confdefs.h. */ 15174int i; 15175_ACEOF 15176if ac_fn_c_try_compile "$LINENO"; then : 15177 xorg_cv_cc_flag_unknown_warning_option=yes 15178else 15179 xorg_cv_cc_flag_unknown_warning_option=no 15180fi 15181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15182fi 15183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15186 CFLAGS="$xorg_testset_save_CFLAGS" 15187fi 15188 15189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15192 fi 15193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15197 $as_echo_n "(cached) " >&6 15198else 15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15200/* end confdefs.h. */ 15201int i; 15202_ACEOF 15203if ac_fn_c_try_compile "$LINENO"; then : 15204 xorg_cv_cc_flag_unused_command_line_argument=yes 15205else 15206 xorg_cv_cc_flag_unused_command_line_argument=no 15207fi 15208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15209fi 15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15213 CFLAGS="$xorg_testset_save_CFLAGS" 15214fi 15215 15216found="no" 15217 15218 if test $found = "no" ; then 15219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15221 fi 15222 15223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15225 fi 15226 15227 CFLAGS="$CFLAGS -Werror=trigraphs" 15228 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15230$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15231 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 15232 if eval \${$cacheid+:} false; then : 15233 $as_echo_n "(cached) " >&6 15234else 15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15236/* end confdefs.h. */ 15237int i; 15238int 15239main () 15240{ 15241 15242 ; 15243 return 0; 15244} 15245_ACEOF 15246if ac_fn_c_try_link "$LINENO"; then : 15247 eval $cacheid=yes 15248else 15249 eval $cacheid=no 15250fi 15251rm -f core conftest.err conftest.$ac_objext \ 15252 conftest$ac_exeext conftest.$ac_ext 15253fi 15254 15255 15256 CFLAGS="$xorg_testset_save_CFLAGS" 15257 15258 eval supported=\$$cacheid 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15260$as_echo "$supported" >&6; } 15261 if test "$supported" = "yes" ; then 15262 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15263 found="yes" 15264 fi 15265 fi 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281xorg_testset_save_CFLAGS="$CFLAGS" 15282 15283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15288 $as_echo_n "(cached) " >&6 15289else 15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15291/* end confdefs.h. */ 15292int i; 15293_ACEOF 15294if ac_fn_c_try_compile "$LINENO"; then : 15295 xorg_cv_cc_flag_unknown_warning_option=yes 15296else 15297 xorg_cv_cc_flag_unknown_warning_option=no 15298fi 15299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15300fi 15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15304 CFLAGS="$xorg_testset_save_CFLAGS" 15305fi 15306 15307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15310 fi 15311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15315 $as_echo_n "(cached) " >&6 15316else 15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15318/* end confdefs.h. */ 15319int i; 15320_ACEOF 15321if ac_fn_c_try_compile "$LINENO"; then : 15322 xorg_cv_cc_flag_unused_command_line_argument=yes 15323else 15324 xorg_cv_cc_flag_unused_command_line_argument=no 15325fi 15326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15327fi 15328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15331 CFLAGS="$xorg_testset_save_CFLAGS" 15332fi 15333 15334found="no" 15335 15336 if test $found = "no" ; then 15337 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15339 fi 15340 15341 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15343 fi 15344 15345 CFLAGS="$CFLAGS -Werror=array-bounds" 15346 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15348$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15349 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15350 if eval \${$cacheid+:} false; then : 15351 $as_echo_n "(cached) " >&6 15352else 15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15354/* end confdefs.h. */ 15355int i; 15356int 15357main () 15358{ 15359 15360 ; 15361 return 0; 15362} 15363_ACEOF 15364if ac_fn_c_try_link "$LINENO"; then : 15365 eval $cacheid=yes 15366else 15367 eval $cacheid=no 15368fi 15369rm -f core conftest.err conftest.$ac_objext \ 15370 conftest$ac_exeext conftest.$ac_ext 15371fi 15372 15373 15374 CFLAGS="$xorg_testset_save_CFLAGS" 15375 15376 eval supported=\$$cacheid 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15378$as_echo "$supported" >&6; } 15379 if test "$supported" = "yes" ; then 15380 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15381 found="yes" 15382 fi 15383 fi 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399xorg_testset_save_CFLAGS="$CFLAGS" 15400 15401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15406 $as_echo_n "(cached) " >&6 15407else 15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15409/* end confdefs.h. */ 15410int i; 15411_ACEOF 15412if ac_fn_c_try_compile "$LINENO"; then : 15413 xorg_cv_cc_flag_unknown_warning_option=yes 15414else 15415 xorg_cv_cc_flag_unknown_warning_option=no 15416fi 15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15418fi 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423fi 15424 15425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15428 fi 15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15433 $as_echo_n "(cached) " >&6 15434else 15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15436/* end confdefs.h. */ 15437int i; 15438_ACEOF 15439if ac_fn_c_try_compile "$LINENO"; then : 15440 xorg_cv_cc_flag_unused_command_line_argument=yes 15441else 15442 xorg_cv_cc_flag_unused_command_line_argument=no 15443fi 15444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15445fi 15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15449 CFLAGS="$xorg_testset_save_CFLAGS" 15450fi 15451 15452found="no" 15453 15454 if test $found = "no" ; then 15455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15457 fi 15458 15459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15461 fi 15462 15463 CFLAGS="$CFLAGS -Werror=write-strings" 15464 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15466$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15467 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15468 if eval \${$cacheid+:} false; then : 15469 $as_echo_n "(cached) " >&6 15470else 15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15472/* end confdefs.h. */ 15473int i; 15474int 15475main () 15476{ 15477 15478 ; 15479 return 0; 15480} 15481_ACEOF 15482if ac_fn_c_try_link "$LINENO"; then : 15483 eval $cacheid=yes 15484else 15485 eval $cacheid=no 15486fi 15487rm -f core conftest.err conftest.$ac_objext \ 15488 conftest$ac_exeext conftest.$ac_ext 15489fi 15490 15491 15492 CFLAGS="$xorg_testset_save_CFLAGS" 15493 15494 eval supported=\$$cacheid 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15496$as_echo "$supported" >&6; } 15497 if test "$supported" = "yes" ; then 15498 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15499 found="yes" 15500 fi 15501 fi 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517xorg_testset_save_CFLAGS="$CFLAGS" 15518 15519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15524 $as_echo_n "(cached) " >&6 15525else 15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15527/* end confdefs.h. */ 15528int i; 15529_ACEOF 15530if ac_fn_c_try_compile "$LINENO"; then : 15531 xorg_cv_cc_flag_unknown_warning_option=yes 15532else 15533 xorg_cv_cc_flag_unknown_warning_option=no 15534fi 15535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15536fi 15537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15540 CFLAGS="$xorg_testset_save_CFLAGS" 15541fi 15542 15543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15546 fi 15547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15551 $as_echo_n "(cached) " >&6 15552else 15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15554/* end confdefs.h. */ 15555int i; 15556_ACEOF 15557if ac_fn_c_try_compile "$LINENO"; then : 15558 xorg_cv_cc_flag_unused_command_line_argument=yes 15559else 15560 xorg_cv_cc_flag_unused_command_line_argument=no 15561fi 15562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15563fi 15564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15567 CFLAGS="$xorg_testset_save_CFLAGS" 15568fi 15569 15570found="no" 15571 15572 if test $found = "no" ; then 15573 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15575 fi 15576 15577 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15579 fi 15580 15581 CFLAGS="$CFLAGS -Werror=address" 15582 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15584$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15585 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15586 if eval \${$cacheid+:} false; then : 15587 $as_echo_n "(cached) " >&6 15588else 15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15590/* end confdefs.h. */ 15591int i; 15592int 15593main () 15594{ 15595 15596 ; 15597 return 0; 15598} 15599_ACEOF 15600if ac_fn_c_try_link "$LINENO"; then : 15601 eval $cacheid=yes 15602else 15603 eval $cacheid=no 15604fi 15605rm -f core conftest.err conftest.$ac_objext \ 15606 conftest$ac_exeext conftest.$ac_ext 15607fi 15608 15609 15610 CFLAGS="$xorg_testset_save_CFLAGS" 15611 15612 eval supported=\$$cacheid 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15614$as_echo "$supported" >&6; } 15615 if test "$supported" = "yes" ; then 15616 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15617 found="yes" 15618 fi 15619 fi 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635xorg_testset_save_CFLAGS="$CFLAGS" 15636 15637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15642 $as_echo_n "(cached) " >&6 15643else 15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15645/* end confdefs.h. */ 15646int i; 15647_ACEOF 15648if ac_fn_c_try_compile "$LINENO"; then : 15649 xorg_cv_cc_flag_unknown_warning_option=yes 15650else 15651 xorg_cv_cc_flag_unknown_warning_option=no 15652fi 15653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15654fi 15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15658 CFLAGS="$xorg_testset_save_CFLAGS" 15659fi 15660 15661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15664 fi 15665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15669 $as_echo_n "(cached) " >&6 15670else 15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15672/* end confdefs.h. */ 15673int i; 15674_ACEOF 15675if ac_fn_c_try_compile "$LINENO"; then : 15676 xorg_cv_cc_flag_unused_command_line_argument=yes 15677else 15678 xorg_cv_cc_flag_unused_command_line_argument=no 15679fi 15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15681fi 15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15685 CFLAGS="$xorg_testset_save_CFLAGS" 15686fi 15687 15688found="no" 15689 15690 if test $found = "no" ; then 15691 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15693 fi 15694 15695 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15697 fi 15698 15699 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15700 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15702$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15703 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15704 if eval \${$cacheid+:} false; then : 15705 $as_echo_n "(cached) " >&6 15706else 15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15708/* end confdefs.h. */ 15709int i; 15710int 15711main () 15712{ 15713 15714 ; 15715 return 0; 15716} 15717_ACEOF 15718if ac_fn_c_try_link "$LINENO"; then : 15719 eval $cacheid=yes 15720else 15721 eval $cacheid=no 15722fi 15723rm -f core conftest.err conftest.$ac_objext \ 15724 conftest$ac_exeext conftest.$ac_ext 15725fi 15726 15727 15728 CFLAGS="$xorg_testset_save_CFLAGS" 15729 15730 eval supported=\$$cacheid 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15732$as_echo "$supported" >&6; } 15733 if test "$supported" = "yes" ; then 15734 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15735 found="yes" 15736 fi 15737 fi 15738 15739 if test $found = "no" ; then 15740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15742 fi 15743 15744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15746 fi 15747 15748 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15749 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15751$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15752 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15753 if eval \${$cacheid+:} false; then : 15754 $as_echo_n "(cached) " >&6 15755else 15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15757/* end confdefs.h. */ 15758int i; 15759int 15760main () 15761{ 15762 15763 ; 15764 return 0; 15765} 15766_ACEOF 15767if ac_fn_c_try_link "$LINENO"; then : 15768 eval $cacheid=yes 15769else 15770 eval $cacheid=no 15771fi 15772rm -f core conftest.err conftest.$ac_objext \ 15773 conftest$ac_exeext conftest.$ac_ext 15774fi 15775 15776 15777 CFLAGS="$xorg_testset_save_CFLAGS" 15778 15779 eval supported=\$$cacheid 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15781$as_echo "$supported" >&6; } 15782 if test "$supported" = "yes" ; then 15783 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15784 found="yes" 15785 fi 15786 fi 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802xorg_testset_save_CFLAGS="$CFLAGS" 15803 15804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15809 $as_echo_n "(cached) " >&6 15810else 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813int i; 15814_ACEOF 15815if ac_fn_c_try_compile "$LINENO"; then : 15816 xorg_cv_cc_flag_unknown_warning_option=yes 15817else 15818 xorg_cv_cc_flag_unknown_warning_option=no 15819fi 15820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15821fi 15822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15825 CFLAGS="$xorg_testset_save_CFLAGS" 15826fi 15827 15828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15831 fi 15832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15836 $as_echo_n "(cached) " >&6 15837else 15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15839/* end confdefs.h. */ 15840int i; 15841_ACEOF 15842if ac_fn_c_try_compile "$LINENO"; then : 15843 xorg_cv_cc_flag_unused_command_line_argument=yes 15844else 15845 xorg_cv_cc_flag_unused_command_line_argument=no 15846fi 15847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15848fi 15849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15852 CFLAGS="$xorg_testset_save_CFLAGS" 15853fi 15854 15855found="no" 15856 15857 if test $found = "no" ; then 15858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15860 fi 15861 15862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15864 fi 15865 15866 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15867 15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15869$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15870 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15871 if eval \${$cacheid+:} false; then : 15872 $as_echo_n "(cached) " >&6 15873else 15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15875/* end confdefs.h. */ 15876int i; 15877int 15878main () 15879{ 15880 15881 ; 15882 return 0; 15883} 15884_ACEOF 15885if ac_fn_c_try_link "$LINENO"; then : 15886 eval $cacheid=yes 15887else 15888 eval $cacheid=no 15889fi 15890rm -f core conftest.err conftest.$ac_objext \ 15891 conftest$ac_exeext conftest.$ac_ext 15892fi 15893 15894 15895 CFLAGS="$xorg_testset_save_CFLAGS" 15896 15897 eval supported=\$$cacheid 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15899$as_echo "$supported" >&6; } 15900 if test "$supported" = "yes" ; then 15901 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15902 found="yes" 15903 fi 15904 fi 15905 15906 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15907else 15908{ $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 15909$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;} 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923xorg_testset_save_CFLAGS="$CFLAGS" 15924 15925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15930 $as_echo_n "(cached) " >&6 15931else 15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15933/* end confdefs.h. */ 15934int i; 15935_ACEOF 15936if ac_fn_c_try_compile "$LINENO"; then : 15937 xorg_cv_cc_flag_unknown_warning_option=yes 15938else 15939 xorg_cv_cc_flag_unknown_warning_option=no 15940fi 15941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15942fi 15943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15946 CFLAGS="$xorg_testset_save_CFLAGS" 15947fi 15948 15949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15952 fi 15953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15957 $as_echo_n "(cached) " >&6 15958else 15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15960/* end confdefs.h. */ 15961int i; 15962_ACEOF 15963if ac_fn_c_try_compile "$LINENO"; then : 15964 xorg_cv_cc_flag_unused_command_line_argument=yes 15965else 15966 xorg_cv_cc_flag_unused_command_line_argument=no 15967fi 15968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15969fi 15970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15973 CFLAGS="$xorg_testset_save_CFLAGS" 15974fi 15975 15976found="no" 15977 15978 if test $found = "no" ; then 15979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15981 fi 15982 15983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15985 fi 15986 15987 CFLAGS="$CFLAGS -Wimplicit" 15988 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15990$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15991 cacheid=xorg_cv_cc_flag__Wimplicit 15992 if eval \${$cacheid+:} false; then : 15993 $as_echo_n "(cached) " >&6 15994else 15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15996/* end confdefs.h. */ 15997int i; 15998int 15999main () 16000{ 16001 16002 ; 16003 return 0; 16004} 16005_ACEOF 16006if ac_fn_c_try_link "$LINENO"; then : 16007 eval $cacheid=yes 16008else 16009 eval $cacheid=no 16010fi 16011rm -f core conftest.err conftest.$ac_objext \ 16012 conftest$ac_exeext conftest.$ac_ext 16013fi 16014 16015 16016 CFLAGS="$xorg_testset_save_CFLAGS" 16017 16018 eval supported=\$$cacheid 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16020$as_echo "$supported" >&6; } 16021 if test "$supported" = "yes" ; then 16022 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16023 found="yes" 16024 fi 16025 fi 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041xorg_testset_save_CFLAGS="$CFLAGS" 16042 16043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16047if ${xorg_cv_cc_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_cc_flag_unknown_warning_option=yes 16056else 16057 xorg_cv_cc_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_cc_flag_unknown_warning_option" >&5 16062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16064 CFLAGS="$xorg_testset_save_CFLAGS" 16065fi 16066 16067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16068 if test "x$xorg_testset_cc_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 $CC supports -Werror=unused-command-line-argument" >&5 16073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16074if ${xorg_cv_cc_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_cc_flag_unused_command_line_argument=yes 16083else 16084 xorg_cv_cc_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_cc_flag_unused_command_line_argument" >&5 16089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_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 -Wnonnull" 16106 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16108$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16109 cacheid=xorg_cv_cc_flag__Wnonnull 16110 if eval \${$cacheid+:} 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 $cacheid=yes 16126else 16127 eval $cacheid=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=\$$cacheid 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 -Wnonnull" 16141 found="yes" 16142 fi 16143 fi 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159xorg_testset_save_CFLAGS="$CFLAGS" 16160 16161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16166 $as_echo_n "(cached) " >&6 16167else 16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16169/* end confdefs.h. */ 16170int i; 16171_ACEOF 16172if ac_fn_c_try_compile "$LINENO"; then : 16173 xorg_cv_cc_flag_unknown_warning_option=yes 16174else 16175 xorg_cv_cc_flag_unknown_warning_option=no 16176fi 16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16178fi 16179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16182 CFLAGS="$xorg_testset_save_CFLAGS" 16183fi 16184 16185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16188 fi 16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16193 $as_echo_n "(cached) " >&6 16194else 16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16196/* end confdefs.h. */ 16197int i; 16198_ACEOF 16199if ac_fn_c_try_compile "$LINENO"; then : 16200 xorg_cv_cc_flag_unused_command_line_argument=yes 16201else 16202 xorg_cv_cc_flag_unused_command_line_argument=no 16203fi 16204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16205fi 16206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16209 CFLAGS="$xorg_testset_save_CFLAGS" 16210fi 16211 16212found="no" 16213 16214 if test $found = "no" ; then 16215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16217 fi 16218 16219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16221 fi 16222 16223 CFLAGS="$CFLAGS -Winit-self" 16224 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16226$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16227 cacheid=xorg_cv_cc_flag__Winit_self 16228 if eval \${$cacheid+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233int i; 16234int 16235main () 16236{ 16237 16238 ; 16239 return 0; 16240} 16241_ACEOF 16242if ac_fn_c_try_link "$LINENO"; then : 16243 eval $cacheid=yes 16244else 16245 eval $cacheid=no 16246fi 16247rm -f core conftest.err conftest.$ac_objext \ 16248 conftest$ac_exeext conftest.$ac_ext 16249fi 16250 16251 16252 CFLAGS="$xorg_testset_save_CFLAGS" 16253 16254 eval supported=\$$cacheid 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16256$as_echo "$supported" >&6; } 16257 if test "$supported" = "yes" ; then 16258 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16259 found="yes" 16260 fi 16261 fi 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277xorg_testset_save_CFLAGS="$CFLAGS" 16278 16279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16284 $as_echo_n "(cached) " >&6 16285else 16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16287/* end confdefs.h. */ 16288int i; 16289_ACEOF 16290if ac_fn_c_try_compile "$LINENO"; then : 16291 xorg_cv_cc_flag_unknown_warning_option=yes 16292else 16293 xorg_cv_cc_flag_unknown_warning_option=no 16294fi 16295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16296fi 16297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16300 CFLAGS="$xorg_testset_save_CFLAGS" 16301fi 16302 16303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16306 fi 16307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16311 $as_echo_n "(cached) " >&6 16312else 16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16314/* end confdefs.h. */ 16315int i; 16316_ACEOF 16317if ac_fn_c_try_compile "$LINENO"; then : 16318 xorg_cv_cc_flag_unused_command_line_argument=yes 16319else 16320 xorg_cv_cc_flag_unused_command_line_argument=no 16321fi 16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16323fi 16324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16327 CFLAGS="$xorg_testset_save_CFLAGS" 16328fi 16329 16330found="no" 16331 16332 if test $found = "no" ; then 16333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16335 fi 16336 16337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16339 fi 16340 16341 CFLAGS="$CFLAGS -Wmain" 16342 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16344$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16345 cacheid=xorg_cv_cc_flag__Wmain 16346 if eval \${$cacheid+:} false; then : 16347 $as_echo_n "(cached) " >&6 16348else 16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16350/* end confdefs.h. */ 16351int i; 16352int 16353main () 16354{ 16355 16356 ; 16357 return 0; 16358} 16359_ACEOF 16360if ac_fn_c_try_link "$LINENO"; then : 16361 eval $cacheid=yes 16362else 16363 eval $cacheid=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext \ 16366 conftest$ac_exeext conftest.$ac_ext 16367fi 16368 16369 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371 16372 eval supported=\$$cacheid 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16374$as_echo "$supported" >&6; } 16375 if test "$supported" = "yes" ; then 16376 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16377 found="yes" 16378 fi 16379 fi 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395xorg_testset_save_CFLAGS="$CFLAGS" 16396 16397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16402 $as_echo_n "(cached) " >&6 16403else 16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16405/* end confdefs.h. */ 16406int i; 16407_ACEOF 16408if ac_fn_c_try_compile "$LINENO"; then : 16409 xorg_cv_cc_flag_unknown_warning_option=yes 16410else 16411 xorg_cv_cc_flag_unknown_warning_option=no 16412fi 16413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16414fi 16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16418 CFLAGS="$xorg_testset_save_CFLAGS" 16419fi 16420 16421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16424 fi 16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16429 $as_echo_n "(cached) " >&6 16430else 16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16432/* end confdefs.h. */ 16433int i; 16434_ACEOF 16435if ac_fn_c_try_compile "$LINENO"; then : 16436 xorg_cv_cc_flag_unused_command_line_argument=yes 16437else 16438 xorg_cv_cc_flag_unused_command_line_argument=no 16439fi 16440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16441fi 16442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16445 CFLAGS="$xorg_testset_save_CFLAGS" 16446fi 16447 16448found="no" 16449 16450 if test $found = "no" ; then 16451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16453 fi 16454 16455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16457 fi 16458 16459 CFLAGS="$CFLAGS -Wmissing-braces" 16460 16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16462$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16463 cacheid=xorg_cv_cc_flag__Wmissing_braces 16464 if eval \${$cacheid+:} false; then : 16465 $as_echo_n "(cached) " >&6 16466else 16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468/* end confdefs.h. */ 16469int i; 16470int 16471main () 16472{ 16473 16474 ; 16475 return 0; 16476} 16477_ACEOF 16478if ac_fn_c_try_link "$LINENO"; then : 16479 eval $cacheid=yes 16480else 16481 eval $cacheid=no 16482fi 16483rm -f core conftest.err conftest.$ac_objext \ 16484 conftest$ac_exeext conftest.$ac_ext 16485fi 16486 16487 16488 CFLAGS="$xorg_testset_save_CFLAGS" 16489 16490 eval supported=\$$cacheid 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16492$as_echo "$supported" >&6; } 16493 if test "$supported" = "yes" ; then 16494 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16495 found="yes" 16496 fi 16497 fi 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513xorg_testset_save_CFLAGS="$CFLAGS" 16514 16515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16520 $as_echo_n "(cached) " >&6 16521else 16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16523/* end confdefs.h. */ 16524int i; 16525_ACEOF 16526if ac_fn_c_try_compile "$LINENO"; then : 16527 xorg_cv_cc_flag_unknown_warning_option=yes 16528else 16529 xorg_cv_cc_flag_unknown_warning_option=no 16530fi 16531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16532fi 16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16536 CFLAGS="$xorg_testset_save_CFLAGS" 16537fi 16538 16539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16542 fi 16543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16547 $as_echo_n "(cached) " >&6 16548else 16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16550/* end confdefs.h. */ 16551int i; 16552_ACEOF 16553if ac_fn_c_try_compile "$LINENO"; then : 16554 xorg_cv_cc_flag_unused_command_line_argument=yes 16555else 16556 xorg_cv_cc_flag_unused_command_line_argument=no 16557fi 16558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16559fi 16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16563 CFLAGS="$xorg_testset_save_CFLAGS" 16564fi 16565 16566found="no" 16567 16568 if test $found = "no" ; then 16569 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16571 fi 16572 16573 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16575 fi 16576 16577 CFLAGS="$CFLAGS -Wsequence-point" 16578 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16580$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16581 cacheid=xorg_cv_cc_flag__Wsequence_point 16582 if eval \${$cacheid+:} false; then : 16583 $as_echo_n "(cached) " >&6 16584else 16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587int i; 16588int 16589main () 16590{ 16591 16592 ; 16593 return 0; 16594} 16595_ACEOF 16596if ac_fn_c_try_link "$LINENO"; then : 16597 eval $cacheid=yes 16598else 16599 eval $cacheid=no 16600fi 16601rm -f core conftest.err conftest.$ac_objext \ 16602 conftest$ac_exeext conftest.$ac_ext 16603fi 16604 16605 16606 CFLAGS="$xorg_testset_save_CFLAGS" 16607 16608 eval supported=\$$cacheid 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16610$as_echo "$supported" >&6; } 16611 if test "$supported" = "yes" ; then 16612 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16613 found="yes" 16614 fi 16615 fi 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631xorg_testset_save_CFLAGS="$CFLAGS" 16632 16633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16638 $as_echo_n "(cached) " >&6 16639else 16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16641/* end confdefs.h. */ 16642int i; 16643_ACEOF 16644if ac_fn_c_try_compile "$LINENO"; then : 16645 xorg_cv_cc_flag_unknown_warning_option=yes 16646else 16647 xorg_cv_cc_flag_unknown_warning_option=no 16648fi 16649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16650fi 16651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16654 CFLAGS="$xorg_testset_save_CFLAGS" 16655fi 16656 16657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16660 fi 16661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16665 $as_echo_n "(cached) " >&6 16666else 16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16668/* end confdefs.h. */ 16669int i; 16670_ACEOF 16671if ac_fn_c_try_compile "$LINENO"; then : 16672 xorg_cv_cc_flag_unused_command_line_argument=yes 16673else 16674 xorg_cv_cc_flag_unused_command_line_argument=no 16675fi 16676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16677fi 16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16681 CFLAGS="$xorg_testset_save_CFLAGS" 16682fi 16683 16684found="no" 16685 16686 if test $found = "no" ; then 16687 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16689 fi 16690 16691 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16693 fi 16694 16695 CFLAGS="$CFLAGS -Wreturn-type" 16696 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16698$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16699 cacheid=xorg_cv_cc_flag__Wreturn_type 16700 if eval \${$cacheid+:} false; then : 16701 $as_echo_n "(cached) " >&6 16702else 16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16704/* end confdefs.h. */ 16705int i; 16706int 16707main () 16708{ 16709 16710 ; 16711 return 0; 16712} 16713_ACEOF 16714if ac_fn_c_try_link "$LINENO"; then : 16715 eval $cacheid=yes 16716else 16717 eval $cacheid=no 16718fi 16719rm -f core conftest.err conftest.$ac_objext \ 16720 conftest$ac_exeext conftest.$ac_ext 16721fi 16722 16723 16724 CFLAGS="$xorg_testset_save_CFLAGS" 16725 16726 eval supported=\$$cacheid 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16728$as_echo "$supported" >&6; } 16729 if test "$supported" = "yes" ; then 16730 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16731 found="yes" 16732 fi 16733 fi 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749xorg_testset_save_CFLAGS="$CFLAGS" 16750 16751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16755if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16756 $as_echo_n "(cached) " >&6 16757else 16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16759/* end confdefs.h. */ 16760int i; 16761_ACEOF 16762if ac_fn_c_try_compile "$LINENO"; then : 16763 xorg_cv_cc_flag_unknown_warning_option=yes 16764else 16765 xorg_cv_cc_flag_unknown_warning_option=no 16766fi 16767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16768fi 16769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16772 CFLAGS="$xorg_testset_save_CFLAGS" 16773fi 16774 16775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16778 fi 16779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16783 $as_echo_n "(cached) " >&6 16784else 16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16786/* end confdefs.h. */ 16787int i; 16788_ACEOF 16789if ac_fn_c_try_compile "$LINENO"; then : 16790 xorg_cv_cc_flag_unused_command_line_argument=yes 16791else 16792 xorg_cv_cc_flag_unused_command_line_argument=no 16793fi 16794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16795fi 16796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16799 CFLAGS="$xorg_testset_save_CFLAGS" 16800fi 16801 16802found="no" 16803 16804 if test $found = "no" ; then 16805 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16807 fi 16808 16809 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16811 fi 16812 16813 CFLAGS="$CFLAGS -Wtrigraphs" 16814 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16816$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16817 cacheid=xorg_cv_cc_flag__Wtrigraphs 16818 if eval \${$cacheid+:} false; then : 16819 $as_echo_n "(cached) " >&6 16820else 16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16822/* end confdefs.h. */ 16823int i; 16824int 16825main () 16826{ 16827 16828 ; 16829 return 0; 16830} 16831_ACEOF 16832if ac_fn_c_try_link "$LINENO"; then : 16833 eval $cacheid=yes 16834else 16835 eval $cacheid=no 16836fi 16837rm -f core conftest.err conftest.$ac_objext \ 16838 conftest$ac_exeext conftest.$ac_ext 16839fi 16840 16841 16842 CFLAGS="$xorg_testset_save_CFLAGS" 16843 16844 eval supported=\$$cacheid 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16846$as_echo "$supported" >&6; } 16847 if test "$supported" = "yes" ; then 16848 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16849 found="yes" 16850 fi 16851 fi 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867xorg_testset_save_CFLAGS="$CFLAGS" 16868 16869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16872$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16873if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16874 $as_echo_n "(cached) " >&6 16875else 16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16877/* end confdefs.h. */ 16878int i; 16879_ACEOF 16880if ac_fn_c_try_compile "$LINENO"; then : 16881 xorg_cv_cc_flag_unknown_warning_option=yes 16882else 16883 xorg_cv_cc_flag_unknown_warning_option=no 16884fi 16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16886fi 16887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16888$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16890 CFLAGS="$xorg_testset_save_CFLAGS" 16891fi 16892 16893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16896 fi 16897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16899$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16900if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16901 $as_echo_n "(cached) " >&6 16902else 16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16904/* end confdefs.h. */ 16905int i; 16906_ACEOF 16907if ac_fn_c_try_compile "$LINENO"; then : 16908 xorg_cv_cc_flag_unused_command_line_argument=yes 16909else 16910 xorg_cv_cc_flag_unused_command_line_argument=no 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16913fi 16914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16915$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16917 CFLAGS="$xorg_testset_save_CFLAGS" 16918fi 16919 16920found="no" 16921 16922 if test $found = "no" ; then 16923 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16925 fi 16926 16927 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16929 fi 16930 16931 CFLAGS="$CFLAGS -Warray-bounds" 16932 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16934$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16935 cacheid=xorg_cv_cc_flag__Warray_bounds 16936 if eval \${$cacheid+:} false; then : 16937 $as_echo_n "(cached) " >&6 16938else 16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16940/* end confdefs.h. */ 16941int i; 16942int 16943main () 16944{ 16945 16946 ; 16947 return 0; 16948} 16949_ACEOF 16950if ac_fn_c_try_link "$LINENO"; then : 16951 eval $cacheid=yes 16952else 16953 eval $cacheid=no 16954fi 16955rm -f core conftest.err conftest.$ac_objext \ 16956 conftest$ac_exeext conftest.$ac_ext 16957fi 16958 16959 16960 CFLAGS="$xorg_testset_save_CFLAGS" 16961 16962 eval supported=\$$cacheid 16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16964$as_echo "$supported" >&6; } 16965 if test "$supported" = "yes" ; then 16966 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16967 found="yes" 16968 fi 16969 fi 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985xorg_testset_save_CFLAGS="$CFLAGS" 16986 16987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16992 $as_echo_n "(cached) " >&6 16993else 16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16995/* end confdefs.h. */ 16996int i; 16997_ACEOF 16998if ac_fn_c_try_compile "$LINENO"; then : 16999 xorg_cv_cc_flag_unknown_warning_option=yes 17000else 17001 xorg_cv_cc_flag_unknown_warning_option=no 17002fi 17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17004fi 17005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17008 CFLAGS="$xorg_testset_save_CFLAGS" 17009fi 17010 17011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17014 fi 17015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17019 $as_echo_n "(cached) " >&6 17020else 17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17022/* end confdefs.h. */ 17023int i; 17024_ACEOF 17025if ac_fn_c_try_compile "$LINENO"; then : 17026 xorg_cv_cc_flag_unused_command_line_argument=yes 17027else 17028 xorg_cv_cc_flag_unused_command_line_argument=no 17029fi 17030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17031fi 17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17035 CFLAGS="$xorg_testset_save_CFLAGS" 17036fi 17037 17038found="no" 17039 17040 if test $found = "no" ; then 17041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17043 fi 17044 17045 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17047 fi 17048 17049 CFLAGS="$CFLAGS -Wwrite-strings" 17050 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17052$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17053 cacheid=xorg_cv_cc_flag__Wwrite_strings 17054 if eval \${$cacheid+:} false; then : 17055 $as_echo_n "(cached) " >&6 17056else 17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17058/* end confdefs.h. */ 17059int i; 17060int 17061main () 17062{ 17063 17064 ; 17065 return 0; 17066} 17067_ACEOF 17068if ac_fn_c_try_link "$LINENO"; then : 17069 eval $cacheid=yes 17070else 17071 eval $cacheid=no 17072fi 17073rm -f core conftest.err conftest.$ac_objext \ 17074 conftest$ac_exeext conftest.$ac_ext 17075fi 17076 17077 17078 CFLAGS="$xorg_testset_save_CFLAGS" 17079 17080 eval supported=\$$cacheid 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17082$as_echo "$supported" >&6; } 17083 if test "$supported" = "yes" ; then 17084 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17085 found="yes" 17086 fi 17087 fi 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103xorg_testset_save_CFLAGS="$CFLAGS" 17104 17105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17110 $as_echo_n "(cached) " >&6 17111else 17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17113/* end confdefs.h. */ 17114int i; 17115_ACEOF 17116if ac_fn_c_try_compile "$LINENO"; then : 17117 xorg_cv_cc_flag_unknown_warning_option=yes 17118else 17119 xorg_cv_cc_flag_unknown_warning_option=no 17120fi 17121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17122fi 17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17126 CFLAGS="$xorg_testset_save_CFLAGS" 17127fi 17128 17129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17132 fi 17133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17137 $as_echo_n "(cached) " >&6 17138else 17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17140/* end confdefs.h. */ 17141int i; 17142_ACEOF 17143if ac_fn_c_try_compile "$LINENO"; then : 17144 xorg_cv_cc_flag_unused_command_line_argument=yes 17145else 17146 xorg_cv_cc_flag_unused_command_line_argument=no 17147fi 17148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17149fi 17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17153 CFLAGS="$xorg_testset_save_CFLAGS" 17154fi 17155 17156found="no" 17157 17158 if test $found = "no" ; then 17159 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17161 fi 17162 17163 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17165 fi 17166 17167 CFLAGS="$CFLAGS -Waddress" 17168 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17170$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17171 cacheid=xorg_cv_cc_flag__Waddress 17172 if eval \${$cacheid+:} false; then : 17173 $as_echo_n "(cached) " >&6 17174else 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17176/* end confdefs.h. */ 17177int i; 17178int 17179main () 17180{ 17181 17182 ; 17183 return 0; 17184} 17185_ACEOF 17186if ac_fn_c_try_link "$LINENO"; then : 17187 eval $cacheid=yes 17188else 17189 eval $cacheid=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext \ 17192 conftest$ac_exeext conftest.$ac_ext 17193fi 17194 17195 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197 17198 eval supported=\$$cacheid 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17200$as_echo "$supported" >&6; } 17201 if test "$supported" = "yes" ; then 17202 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17203 found="yes" 17204 fi 17205 fi 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221xorg_testset_save_CFLAGS="$CFLAGS" 17222 17223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17228 $as_echo_n "(cached) " >&6 17229else 17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17231/* end confdefs.h. */ 17232int i; 17233_ACEOF 17234if ac_fn_c_try_compile "$LINENO"; then : 17235 xorg_cv_cc_flag_unknown_warning_option=yes 17236else 17237 xorg_cv_cc_flag_unknown_warning_option=no 17238fi 17239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17240fi 17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17244 CFLAGS="$xorg_testset_save_CFLAGS" 17245fi 17246 17247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17250 fi 17251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17255 $as_echo_n "(cached) " >&6 17256else 17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17258/* end confdefs.h. */ 17259int i; 17260_ACEOF 17261if ac_fn_c_try_compile "$LINENO"; then : 17262 xorg_cv_cc_flag_unused_command_line_argument=yes 17263else 17264 xorg_cv_cc_flag_unused_command_line_argument=no 17265fi 17266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17267fi 17268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17271 CFLAGS="$xorg_testset_save_CFLAGS" 17272fi 17273 17274found="no" 17275 17276 if test $found = "no" ; then 17277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17279 fi 17280 17281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17283 fi 17284 17285 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17286 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17288$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17289 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17290 if eval \${$cacheid+:} false; then : 17291 $as_echo_n "(cached) " >&6 17292else 17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17294/* end confdefs.h. */ 17295int i; 17296int 17297main () 17298{ 17299 17300 ; 17301 return 0; 17302} 17303_ACEOF 17304if ac_fn_c_try_link "$LINENO"; then : 17305 eval $cacheid=yes 17306else 17307 eval $cacheid=no 17308fi 17309rm -f core conftest.err conftest.$ac_objext \ 17310 conftest$ac_exeext conftest.$ac_ext 17311fi 17312 17313 17314 CFLAGS="$xorg_testset_save_CFLAGS" 17315 17316 eval supported=\$$cacheid 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17318$as_echo "$supported" >&6; } 17319 if test "$supported" = "yes" ; then 17320 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17321 found="yes" 17322 fi 17323 fi 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339xorg_testset_save_CFLAGS="$CFLAGS" 17340 17341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17346 $as_echo_n "(cached) " >&6 17347else 17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17349/* end confdefs.h. */ 17350int i; 17351_ACEOF 17352if ac_fn_c_try_compile "$LINENO"; then : 17353 xorg_cv_cc_flag_unknown_warning_option=yes 17354else 17355 xorg_cv_cc_flag_unknown_warning_option=no 17356fi 17357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17358fi 17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17362 CFLAGS="$xorg_testset_save_CFLAGS" 17363fi 17364 17365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17368 fi 17369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17373 $as_echo_n "(cached) " >&6 17374else 17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17376/* end confdefs.h. */ 17377int i; 17378_ACEOF 17379if ac_fn_c_try_compile "$LINENO"; then : 17380 xorg_cv_cc_flag_unused_command_line_argument=yes 17381else 17382 xorg_cv_cc_flag_unused_command_line_argument=no 17383fi 17384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17385fi 17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17389 CFLAGS="$xorg_testset_save_CFLAGS" 17390fi 17391 17392found="no" 17393 17394 if test $found = "no" ; then 17395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17397 fi 17398 17399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17401 fi 17402 17403 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17404 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17406$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17407 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17408 if eval \${$cacheid+:} false; then : 17409 $as_echo_n "(cached) " >&6 17410else 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413int i; 17414int 17415main () 17416{ 17417 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422if ac_fn_c_try_link "$LINENO"; then : 17423 eval $cacheid=yes 17424else 17425 eval $cacheid=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext \ 17428 conftest$ac_exeext conftest.$ac_ext 17429fi 17430 17431 17432 CFLAGS="$xorg_testset_save_CFLAGS" 17433 17434 eval supported=\$$cacheid 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17436$as_echo "$supported" >&6; } 17437 if test "$supported" = "yes" ; then 17438 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17439 found="yes" 17440 fi 17441 fi 17442 17443 17444fi 17445 17446 17447 17448 17449 17450 17451 17452 CWARNFLAGS="$BASE_CFLAGS" 17453 if test "x$GCC" = xyes ; then 17454 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17455 fi 17456 17457 17458 17459 17460 17461 17462 17463 17464# Check whether --enable-strict-compilation was given. 17465if test "${enable_strict_compilation+set}" = set; then : 17466 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17467else 17468 STRICT_COMPILE=no 17469fi 17470 17471 17472 17473 17474 17475 17476STRICT_CFLAGS="" 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490xorg_testset_save_CFLAGS="$CFLAGS" 17491 17492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17497 $as_echo_n "(cached) " >&6 17498else 17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17500/* end confdefs.h. */ 17501int i; 17502_ACEOF 17503if ac_fn_c_try_compile "$LINENO"; then : 17504 xorg_cv_cc_flag_unknown_warning_option=yes 17505else 17506 xorg_cv_cc_flag_unknown_warning_option=no 17507fi 17508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17509fi 17510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17513 CFLAGS="$xorg_testset_save_CFLAGS" 17514fi 17515 17516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17519 fi 17520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17524 $as_echo_n "(cached) " >&6 17525else 17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17527/* end confdefs.h. */ 17528int i; 17529_ACEOF 17530if ac_fn_c_try_compile "$LINENO"; then : 17531 xorg_cv_cc_flag_unused_command_line_argument=yes 17532else 17533 xorg_cv_cc_flag_unused_command_line_argument=no 17534fi 17535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17536fi 17537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17540 CFLAGS="$xorg_testset_save_CFLAGS" 17541fi 17542 17543found="no" 17544 17545 if test $found = "no" ; then 17546 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 17550 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17552 fi 17553 17554 CFLAGS="$CFLAGS -pedantic" 17555 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17557$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17558 cacheid=xorg_cv_cc_flag__pedantic 17559 if eval \${$cacheid+:} false; then : 17560 $as_echo_n "(cached) " >&6 17561else 17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17563/* end confdefs.h. */ 17564int i; 17565int 17566main () 17567{ 17568 17569 ; 17570 return 0; 17571} 17572_ACEOF 17573if ac_fn_c_try_link "$LINENO"; then : 17574 eval $cacheid=yes 17575else 17576 eval $cacheid=no 17577fi 17578rm -f core conftest.err conftest.$ac_objext \ 17579 conftest$ac_exeext conftest.$ac_ext 17580fi 17581 17582 17583 CFLAGS="$xorg_testset_save_CFLAGS" 17584 17585 eval supported=\$$cacheid 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17587$as_echo "$supported" >&6; } 17588 if test "$supported" = "yes" ; then 17589 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17590 found="yes" 17591 fi 17592 fi 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608xorg_testset_save_CFLAGS="$CFLAGS" 17609 17610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17615 $as_echo_n "(cached) " >&6 17616else 17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17618/* end confdefs.h. */ 17619int i; 17620_ACEOF 17621if ac_fn_c_try_compile "$LINENO"; then : 17622 xorg_cv_cc_flag_unknown_warning_option=yes 17623else 17624 xorg_cv_cc_flag_unknown_warning_option=no 17625fi 17626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17627fi 17628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17631 CFLAGS="$xorg_testset_save_CFLAGS" 17632fi 17633 17634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17637 fi 17638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17642 $as_echo_n "(cached) " >&6 17643else 17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17645/* end confdefs.h. */ 17646int i; 17647_ACEOF 17648if ac_fn_c_try_compile "$LINENO"; then : 17649 xorg_cv_cc_flag_unused_command_line_argument=yes 17650else 17651 xorg_cv_cc_flag_unused_command_line_argument=no 17652fi 17653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17654fi 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17658 CFLAGS="$xorg_testset_save_CFLAGS" 17659fi 17660 17661found="no" 17662 17663 if test $found = "no" ; then 17664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17666 fi 17667 17668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17670 fi 17671 17672 CFLAGS="$CFLAGS -Werror" 17673 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17675$as_echo_n "checking if $CC supports -Werror... " >&6; } 17676 cacheid=xorg_cv_cc_flag__Werror 17677 if eval \${$cacheid+:} false; then : 17678 $as_echo_n "(cached) " >&6 17679else 17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17681/* end confdefs.h. */ 17682int i; 17683int 17684main () 17685{ 17686 17687 ; 17688 return 0; 17689} 17690_ACEOF 17691if ac_fn_c_try_link "$LINENO"; then : 17692 eval $cacheid=yes 17693else 17694 eval $cacheid=no 17695fi 17696rm -f core conftest.err conftest.$ac_objext \ 17697 conftest$ac_exeext conftest.$ac_ext 17698fi 17699 17700 17701 CFLAGS="$xorg_testset_save_CFLAGS" 17702 17703 eval supported=\$$cacheid 17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17705$as_echo "$supported" >&6; } 17706 if test "$supported" = "yes" ; then 17707 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17708 found="yes" 17709 fi 17710 fi 17711 17712 if test $found = "no" ; then 17713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17715 fi 17716 17717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17719 fi 17720 17721 CFLAGS="$CFLAGS -errwarn" 17722 17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17724$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17725 cacheid=xorg_cv_cc_flag__errwarn 17726 if eval \${$cacheid+:} false; then : 17727 $as_echo_n "(cached) " >&6 17728else 17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17730/* end confdefs.h. */ 17731int i; 17732int 17733main () 17734{ 17735 17736 ; 17737 return 0; 17738} 17739_ACEOF 17740if ac_fn_c_try_link "$LINENO"; then : 17741 eval $cacheid=yes 17742else 17743 eval $cacheid=no 17744fi 17745rm -f core conftest.err conftest.$ac_objext \ 17746 conftest$ac_exeext conftest.$ac_ext 17747fi 17748 17749 17750 CFLAGS="$xorg_testset_save_CFLAGS" 17751 17752 eval supported=\$$cacheid 17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17754$as_echo "$supported" >&6; } 17755 if test "$supported" = "yes" ; then 17756 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17757 found="yes" 17758 fi 17759 fi 17760 17761 17762 17763# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17764# activate it with -Werror, so we add it here explicitly. 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778xorg_testset_save_CFLAGS="$CFLAGS" 17779 17780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17785 $as_echo_n "(cached) " >&6 17786else 17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17788/* end confdefs.h. */ 17789int i; 17790_ACEOF 17791if ac_fn_c_try_compile "$LINENO"; then : 17792 xorg_cv_cc_flag_unknown_warning_option=yes 17793else 17794 xorg_cv_cc_flag_unknown_warning_option=no 17795fi 17796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17797fi 17798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17801 CFLAGS="$xorg_testset_save_CFLAGS" 17802fi 17803 17804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17807 fi 17808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17812 $as_echo_n "(cached) " >&6 17813else 17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17815/* end confdefs.h. */ 17816int i; 17817_ACEOF 17818if ac_fn_c_try_compile "$LINENO"; then : 17819 xorg_cv_cc_flag_unused_command_line_argument=yes 17820else 17821 xorg_cv_cc_flag_unused_command_line_argument=no 17822fi 17823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17824fi 17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17828 CFLAGS="$xorg_testset_save_CFLAGS" 17829fi 17830 17831found="no" 17832 17833 if test $found = "no" ; then 17834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17836 fi 17837 17838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17840 fi 17841 17842 CFLAGS="$CFLAGS -Werror=attributes" 17843 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17845$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17846 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17847 if eval \${$cacheid+:} false; then : 17848 $as_echo_n "(cached) " >&6 17849else 17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17851/* end confdefs.h. */ 17852int i; 17853int 17854main () 17855{ 17856 17857 ; 17858 return 0; 17859} 17860_ACEOF 17861if ac_fn_c_try_link "$LINENO"; then : 17862 eval $cacheid=yes 17863else 17864 eval $cacheid=no 17865fi 17866rm -f core conftest.err conftest.$ac_objext \ 17867 conftest$ac_exeext conftest.$ac_ext 17868fi 17869 17870 17871 CFLAGS="$xorg_testset_save_CFLAGS" 17872 17873 eval supported=\$$cacheid 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17875$as_echo "$supported" >&6; } 17876 if test "$supported" = "yes" ; then 17877 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17878 found="yes" 17879 fi 17880 fi 17881 17882 17883 17884if test "x$STRICT_COMPILE" = "xyes"; then 17885 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17886 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17887fi 17888 17889 17890 17891 17892 17893 17894cat >>confdefs.h <<_ACEOF 17895#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17896_ACEOF 17897 17898 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17899 if test "x$PVM" = "x"; then 17900 PVM="0" 17901 fi 17902 17903cat >>confdefs.h <<_ACEOF 17904#define PACKAGE_VERSION_MINOR $PVM 17905_ACEOF 17906 17907 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17908 if test "x$PVP" = "x"; then 17909 PVP="0" 17910 fi 17911 17912cat >>confdefs.h <<_ACEOF 17913#define PACKAGE_VERSION_PATCHLEVEL $PVP 17914_ACEOF 17915 17916 17917 17918CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17919mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17920|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17921echo 'git directory not found: installing possibly empty changelog.' >&2)" 17922 17923 17924 17925 17926macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17927INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17928mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17929|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17930echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17931 17932 17933 17934 17935 17936 17937if test x$APP_MAN_SUFFIX = x ; then 17938 APP_MAN_SUFFIX=1 17939fi 17940if test x$APP_MAN_DIR = x ; then 17941 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17942fi 17943 17944if test x$LIB_MAN_SUFFIX = x ; then 17945 LIB_MAN_SUFFIX=3 17946fi 17947if test x$LIB_MAN_DIR = x ; then 17948 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17949fi 17950 17951if test x$FILE_MAN_SUFFIX = x ; then 17952 case $host_os in 17953 solaris*) FILE_MAN_SUFFIX=4 ;; 17954 *) FILE_MAN_SUFFIX=5 ;; 17955 esac 17956fi 17957if test x$FILE_MAN_DIR = x ; then 17958 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17959fi 17960 17961if test x$MISC_MAN_SUFFIX = x ; then 17962 case $host_os in 17963 solaris*) MISC_MAN_SUFFIX=5 ;; 17964 *) MISC_MAN_SUFFIX=7 ;; 17965 esac 17966fi 17967if test x$MISC_MAN_DIR = x ; then 17968 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17969fi 17970 17971if test x$DRIVER_MAN_SUFFIX = x ; then 17972 case $host_os in 17973 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17974 *) DRIVER_MAN_SUFFIX=4 ;; 17975 esac 17976fi 17977if test x$DRIVER_MAN_DIR = x ; then 17978 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17979fi 17980 17981if test x$ADMIN_MAN_SUFFIX = x ; then 17982 case $host_os in 17983 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17984 *) ADMIN_MAN_SUFFIX=8 ;; 17985 esac 17986fi 17987if test x$ADMIN_MAN_DIR = x ; then 17988 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17989fi 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005XORG_MAN_PAGE="X Version 11" 18006 18007MAN_SUBSTS="\ 18008 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18009 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18010 -e 's|__xservername__|Xorg|g' \ 18011 -e 's|__xconfigfile__|xorg.conf|g' \ 18012 -e 's|__projectroot__|\$(prefix)|g' \ 18013 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18014 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18015 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18016 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18017 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18018 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18019 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18020 18021 18022 18023# Check whether --enable-silent-rules was given. 18024if test "${enable_silent_rules+set}" = set; then : 18025 enableval=$enable_silent_rules; 18026fi 18027 18028case $enable_silent_rules in # ((( 18029 yes) AM_DEFAULT_VERBOSITY=0;; 18030 no) AM_DEFAULT_VERBOSITY=1;; 18031 *) AM_DEFAULT_VERBOSITY=0;; 18032esac 18033am_make=${MAKE-make} 18034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18035$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18036if ${am_cv_make_support_nested_variables+:} false; then : 18037 $as_echo_n "(cached) " >&6 18038else 18039 if $as_echo 'TRUE=$(BAR$(V)) 18040BAR0=false 18041BAR1=true 18042V=1 18043am__doit: 18044 @$(TRUE) 18045.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18046 am_cv_make_support_nested_variables=yes 18047else 18048 am_cv_make_support_nested_variables=no 18049fi 18050fi 18051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18052$as_echo "$am_cv_make_support_nested_variables" >&6; } 18053if test $am_cv_make_support_nested_variables = yes; then 18054 AM_V='$(V)' 18055 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18056else 18057 AM_V=$AM_DEFAULT_VERBOSITY 18058 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18059fi 18060AM_BACKSLASH='\' 18061 18062 18063 18064 18065# Check whether --enable-specs was given. 18066if test "${enable_specs+set}" = set; then : 18067 enableval=$enable_specs; build_specs=$enableval 18068else 18069 build_specs=yes 18070fi 18071 18072 18073 if test x$build_specs = xyes; then 18074 ENABLE_SPECS_TRUE= 18075 ENABLE_SPECS_FALSE='#' 18076else 18077 ENABLE_SPECS_TRUE='#' 18078 ENABLE_SPECS_FALSE= 18079fi 18080 18081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18082$as_echo_n "checking whether to build functional specifications... " >&6; } 18083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18084$as_echo "$build_specs" >&6; } 18085 18086 18087 18088 18089 18090# Check whether --with-xmlto was given. 18091if test "${with_xmlto+set}" = set; then : 18092 withval=$with_xmlto; use_xmlto=$withval 18093else 18094 use_xmlto=auto 18095fi 18096 18097 18098 18099if test "x$use_xmlto" = x"auto"; then 18100 # Extract the first word of "xmlto", so it can be a program name with args. 18101set dummy xmlto; ac_word=$2 18102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18103$as_echo_n "checking for $ac_word... " >&6; } 18104if ${ac_cv_path_XMLTO+:} false; then : 18105 $as_echo_n "(cached) " >&6 18106else 18107 case $XMLTO in 18108 [\\/]* | ?:[\\/]*) 18109 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18110 ;; 18111 *) 18112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18113for as_dir in $PATH 18114do 18115 IFS=$as_save_IFS 18116 test -z "$as_dir" && as_dir=. 18117 for ac_exec_ext in '' $ac_executable_extensions; do 18118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18119 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18121 break 2 18122 fi 18123done 18124 done 18125IFS=$as_save_IFS 18126 18127 ;; 18128esac 18129fi 18130XMLTO=$ac_cv_path_XMLTO 18131if test -n "$XMLTO"; then 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18133$as_echo "$XMLTO" >&6; } 18134else 18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18136$as_echo "no" >&6; } 18137fi 18138 18139 18140 if test "x$XMLTO" = "x"; then 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18142$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18143 have_xmlto=no 18144 else 18145 have_xmlto=yes 18146 fi 18147elif test "x$use_xmlto" = x"yes" ; then 18148 # Extract the first word of "xmlto", so it can be a program name with args. 18149set dummy xmlto; ac_word=$2 18150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18151$as_echo_n "checking for $ac_word... " >&6; } 18152if ${ac_cv_path_XMLTO+:} false; then : 18153 $as_echo_n "(cached) " >&6 18154else 18155 case $XMLTO in 18156 [\\/]* | ?:[\\/]*) 18157 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18158 ;; 18159 *) 18160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18161for as_dir in $PATH 18162do 18163 IFS=$as_save_IFS 18164 test -z "$as_dir" && as_dir=. 18165 for ac_exec_ext in '' $ac_executable_extensions; do 18166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18167 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18169 break 2 18170 fi 18171done 18172 done 18173IFS=$as_save_IFS 18174 18175 ;; 18176esac 18177fi 18178XMLTO=$ac_cv_path_XMLTO 18179if test -n "$XMLTO"; then 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18181$as_echo "$XMLTO" >&6; } 18182else 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18184$as_echo "no" >&6; } 18185fi 18186 18187 18188 if test "x$XMLTO" = "x"; then 18189 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18190 fi 18191 have_xmlto=yes 18192elif test "x$use_xmlto" = x"no" ; then 18193 if test "x$XMLTO" != "x"; then 18194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18195$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18196 fi 18197 have_xmlto=no 18198else 18199 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18200fi 18201 18202# Test for a minimum version of xmlto, if provided. 18203if test "$have_xmlto" = yes; then 18204 # scrape the xmlto version 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18206$as_echo_n "checking the xmlto version... " >&6; } 18207 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18209$as_echo "$xmlto_version" >&6; } 18210 as_arg_v1=$xmlto_version 18211as_arg_v2=0.0.22 18212awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18213case $? in #( 18214 1) : 18215 if test "x$use_xmlto" = xauto; then 18216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18217$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18218 have_xmlto=no 18219 else 18220 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18221 fi ;; #( 18222 0) : 18223 ;; #( 18224 2) : 18225 ;; #( 18226 *) : 18227 ;; 18228esac 18229fi 18230 18231# Test for the ability of xmlto to generate a text target 18232have_xmlto_text=no 18233cat > conftest.xml << "EOF" 18234EOF 18235if test "$have_xmlto" = yes; then : 18236 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18237 have_xmlto_text=yes 18238else 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18240$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18241fi 18242fi 18243rm -f conftest.xml 18244 if test $have_xmlto_text = yes; then 18245 HAVE_XMLTO_TEXT_TRUE= 18246 HAVE_XMLTO_TEXT_FALSE='#' 18247else 18248 HAVE_XMLTO_TEXT_TRUE='#' 18249 HAVE_XMLTO_TEXT_FALSE= 18250fi 18251 18252 if test "$have_xmlto" = yes; then 18253 HAVE_XMLTO_TRUE= 18254 HAVE_XMLTO_FALSE='#' 18255else 18256 HAVE_XMLTO_TRUE='#' 18257 HAVE_XMLTO_FALSE= 18258fi 18259 18260 18261 18262 18263 18264 18265# Check whether --with-fop was given. 18266if test "${with_fop+set}" = set; then : 18267 withval=$with_fop; use_fop=$withval 18268else 18269 use_fop=no 18270fi 18271 18272 18273 18274if test "x$use_fop" = x"auto"; then 18275 # Extract the first word of "fop", so it can be a program name with args. 18276set dummy fop; ac_word=$2 18277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18278$as_echo_n "checking for $ac_word... " >&6; } 18279if ${ac_cv_path_FOP+:} false; then : 18280 $as_echo_n "(cached) " >&6 18281else 18282 case $FOP in 18283 [\\/]* | ?:[\\/]*) 18284 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18285 ;; 18286 *) 18287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18288for as_dir in $PATH 18289do 18290 IFS=$as_save_IFS 18291 test -z "$as_dir" && as_dir=. 18292 for ac_exec_ext in '' $ac_executable_extensions; do 18293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18294 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18296 break 2 18297 fi 18298done 18299 done 18300IFS=$as_save_IFS 18301 18302 ;; 18303esac 18304fi 18305FOP=$ac_cv_path_FOP 18306if test -n "$FOP"; then 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18308$as_echo "$FOP" >&6; } 18309else 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18311$as_echo "no" >&6; } 18312fi 18313 18314 18315 if test "x$FOP" = "x"; then 18316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18317$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18318 have_fop=no 18319 else 18320 have_fop=yes 18321 fi 18322elif test "x$use_fop" = x"yes" ; then 18323 # Extract the first word of "fop", so it can be a program name with args. 18324set dummy fop; ac_word=$2 18325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18326$as_echo_n "checking for $ac_word... " >&6; } 18327if ${ac_cv_path_FOP+:} false; then : 18328 $as_echo_n "(cached) " >&6 18329else 18330 case $FOP in 18331 [\\/]* | ?:[\\/]*) 18332 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18333 ;; 18334 *) 18335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18336for as_dir in $PATH 18337do 18338 IFS=$as_save_IFS 18339 test -z "$as_dir" && as_dir=. 18340 for ac_exec_ext in '' $ac_executable_extensions; do 18341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18342 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18344 break 2 18345 fi 18346done 18347 done 18348IFS=$as_save_IFS 18349 18350 ;; 18351esac 18352fi 18353FOP=$ac_cv_path_FOP 18354if test -n "$FOP"; then 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18356$as_echo "$FOP" >&6; } 18357else 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18359$as_echo "no" >&6; } 18360fi 18361 18362 18363 if test "x$FOP" = "x"; then 18364 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18365 fi 18366 have_fop=yes 18367elif test "x$use_fop" = x"no" ; then 18368 if test "x$FOP" != "x"; then 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18370$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18371 fi 18372 have_fop=no 18373else 18374 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18375fi 18376 18377# Test for a minimum version of fop, if provided. 18378 18379 if test "$have_fop" = yes; then 18380 HAVE_FOP_TRUE= 18381 HAVE_FOP_FALSE='#' 18382else 18383 HAVE_FOP_TRUE='#' 18384 HAVE_FOP_FALSE= 18385fi 18386 18387 18388 18389 18390# Preserves the interface, should it be implemented later 18391 18392 18393 18394# Check whether --with-xsltproc was given. 18395if test "${with_xsltproc+set}" = set; then : 18396 withval=$with_xsltproc; use_xsltproc=$withval 18397else 18398 use_xsltproc=auto 18399fi 18400 18401 18402 18403if test "x$use_xsltproc" = x"auto"; then 18404 # Extract the first word of "xsltproc", so it can be a program name with args. 18405set dummy xsltproc; ac_word=$2 18406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18407$as_echo_n "checking for $ac_word... " >&6; } 18408if ${ac_cv_path_XSLTPROC+:} false; then : 18409 $as_echo_n "(cached) " >&6 18410else 18411 case $XSLTPROC in 18412 [\\/]* | ?:[\\/]*) 18413 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18414 ;; 18415 *) 18416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18417for as_dir in $PATH 18418do 18419 IFS=$as_save_IFS 18420 test -z "$as_dir" && as_dir=. 18421 for ac_exec_ext in '' $ac_executable_extensions; do 18422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18423 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18425 break 2 18426 fi 18427done 18428 done 18429IFS=$as_save_IFS 18430 18431 ;; 18432esac 18433fi 18434XSLTPROC=$ac_cv_path_XSLTPROC 18435if test -n "$XSLTPROC"; then 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18437$as_echo "$XSLTPROC" >&6; } 18438else 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18440$as_echo "no" >&6; } 18441fi 18442 18443 18444 if test "x$XSLTPROC" = "x"; then 18445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18446$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18447 have_xsltproc=no 18448 else 18449 have_xsltproc=yes 18450 fi 18451elif test "x$use_xsltproc" = x"yes" ; then 18452 # Extract the first word of "xsltproc", so it can be a program name with args. 18453set dummy xsltproc; ac_word=$2 18454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18455$as_echo_n "checking for $ac_word... " >&6; } 18456if ${ac_cv_path_XSLTPROC+:} false; then : 18457 $as_echo_n "(cached) " >&6 18458else 18459 case $XSLTPROC in 18460 [\\/]* | ?:[\\/]*) 18461 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18462 ;; 18463 *) 18464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18465for as_dir in $PATH 18466do 18467 IFS=$as_save_IFS 18468 test -z "$as_dir" && as_dir=. 18469 for ac_exec_ext in '' $ac_executable_extensions; do 18470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18471 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18473 break 2 18474 fi 18475done 18476 done 18477IFS=$as_save_IFS 18478 18479 ;; 18480esac 18481fi 18482XSLTPROC=$ac_cv_path_XSLTPROC 18483if test -n "$XSLTPROC"; then 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18485$as_echo "$XSLTPROC" >&6; } 18486else 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18488$as_echo "no" >&6; } 18489fi 18490 18491 18492 if test "x$XSLTPROC" = "x"; then 18493 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18494 fi 18495 have_xsltproc=yes 18496elif test "x$use_xsltproc" = x"no" ; then 18497 if test "x$XSLTPROC" != "x"; then 18498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18499$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18500 fi 18501 have_xsltproc=no 18502else 18503 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18504fi 18505 18506 if test "$have_xsltproc" = yes; then 18507 HAVE_XSLTPROC_TRUE= 18508 HAVE_XSLTPROC_FALSE='#' 18509else 18510 HAVE_XSLTPROC_TRUE='#' 18511 HAVE_XSLTPROC_FALSE= 18512fi 18513 18514 18515 18516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 18517$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; } 18518XORG_SGML_PATH= 18519if test -n "$PKG_CONFIG" && \ 18520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 18521 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 18522 ac_status=$? 18523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18524 test $ac_status = 0; }; then 18525 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18526else 18527 : 18528 18529fi 18530 18531# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18532# the path and the name of the doc stylesheet 18533if test "x$XORG_SGML_PATH" != "x" ; then 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18535$as_echo "$XORG_SGML_PATH" >&6; } 18536 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18537 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18538else 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18540$as_echo "no" >&6; } 18541fi 18542 18543 18544 18545 18546 if test "x$XSL_STYLESHEET" != "x"; then 18547 HAVE_STYLESHEETS_TRUE= 18548 HAVE_STYLESHEETS_FALSE='#' 18549else 18550 HAVE_STYLESHEETS_TRUE='#' 18551 HAVE_STYLESHEETS_FALSE= 18552fi 18553 18554 18555 18556 18557for ac_prog in cpp 18558do 18559 # Extract the first word of "$ac_prog", so it can be a program name with args. 18560set dummy $ac_prog; ac_word=$2 18561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18562$as_echo_n "checking for $ac_word... " >&6; } 18563if ${ac_cv_path_RAWCPP+:} false; then : 18564 $as_echo_n "(cached) " >&6 18565else 18566 case $RAWCPP in 18567 [\\/]* | ?:[\\/]*) 18568 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 18569 ;; 18570 *) 18571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18572as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 18573for as_dir in $as_dummy 18574do 18575 IFS=$as_save_IFS 18576 test -z "$as_dir" && as_dir=. 18577 for ac_exec_ext in '' $ac_executable_extensions; do 18578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18579 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 18580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18581 break 2 18582 fi 18583done 18584 done 18585IFS=$as_save_IFS 18586 18587 ;; 18588esac 18589fi 18590RAWCPP=$ac_cv_path_RAWCPP 18591if test -n "$RAWCPP"; then 18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 18593$as_echo "$RAWCPP" >&6; } 18594else 18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18596$as_echo "no" >&6; } 18597fi 18598 18599 18600 test -n "$RAWCPP" && break 18601done 18602test -n "$RAWCPP" || RAWCPP="${CPP}" 18603 18604 18605# Check for flag to avoid builtin definitions - assumes unix is predefined, 18606# which is not the best choice for supporting other OS'es, but covers most 18607# of the ones we need for now. 18608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 18609$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 18610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18611/* end confdefs.h. */ 18612Does cpp redefine unix ? 18613_ACEOF 18614if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18616$as_echo "no" >&6; } 18617else 18618 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18619 RAWCPPFLAGS=-undef 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18621$as_echo "yes" >&6; } 18622 # under Cygwin unix is still defined even with -undef 18623 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18624 RAWCPPFLAGS="-undef -ansi" 18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 18626$as_echo "yes, with -ansi" >&6; } 18627 else 18628 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 18629 fi 18630fi 18631rm -f conftest.$ac_ext 18632 18633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 18634$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 18635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636/* end confdefs.h. */ 18637Does cpp preserve "whitespace"? 18638_ACEOF 18639if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18641$as_echo "no" >&6; } 18642else 18643 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18644 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18646$as_echo "yes" >&6; } 18647 else 18648 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 18649 fi 18650fi 18651rm -f conftest.$ac_ext 18652 18653 18654 18655 18656# Preserves the interface, should it be implemented later 18657 18658 18659 18660# Check whether --with-perl was given. 18661if test "${with_perl+set}" = set; then : 18662 withval=$with_perl; use_perl=$withval 18663else 18664 use_perl=auto 18665fi 18666 18667 18668 18669if test "x$use_perl" = x"auto"; then 18670 # Extract the first word of "perl", so it can be a program name with args. 18671set dummy perl; ac_word=$2 18672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18673$as_echo_n "checking for $ac_word... " >&6; } 18674if ${ac_cv_path_PERL+:} false; then : 18675 $as_echo_n "(cached) " >&6 18676else 18677 case $PERL in 18678 [\\/]* | ?:[\\/]*) 18679 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18680 ;; 18681 *) 18682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18683for as_dir in $PATH 18684do 18685 IFS=$as_save_IFS 18686 test -z "$as_dir" && as_dir=. 18687 for ac_exec_ext in '' $ac_executable_extensions; do 18688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18689 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18691 break 2 18692 fi 18693done 18694 done 18695IFS=$as_save_IFS 18696 18697 ;; 18698esac 18699fi 18700PERL=$ac_cv_path_PERL 18701if test -n "$PERL"; then 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18703$as_echo "$PERL" >&6; } 18704else 18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18706$as_echo "no" >&6; } 18707fi 18708 18709 18710 if test "x$PERL" = "x"; then 18711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 18712$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 18713 have_perl=no 18714 else 18715 have_perl=yes 18716 fi 18717elif test "x$use_perl" = x"yes" ; then 18718 # Extract the first word of "perl", so it can be a program name with args. 18719set dummy perl; ac_word=$2 18720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18721$as_echo_n "checking for $ac_word... " >&6; } 18722if ${ac_cv_path_PERL+:} false; then : 18723 $as_echo_n "(cached) " >&6 18724else 18725 case $PERL in 18726 [\\/]* | ?:[\\/]*) 18727 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18728 ;; 18729 *) 18730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18731for as_dir in $PATH 18732do 18733 IFS=$as_save_IFS 18734 test -z "$as_dir" && as_dir=. 18735 for ac_exec_ext in '' $ac_executable_extensions; do 18736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18737 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18739 break 2 18740 fi 18741done 18742 done 18743IFS=$as_save_IFS 18744 18745 ;; 18746esac 18747fi 18748PERL=$ac_cv_path_PERL 18749if test -n "$PERL"; then 18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18751$as_echo "$PERL" >&6; } 18752else 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18754$as_echo "no" >&6; } 18755fi 18756 18757 18758 if test "x$PERL" = "x"; then 18759 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 18760 fi 18761 have_perl=yes 18762elif test "x$use_perl" = x"no" ; then 18763 if test "x$PERL" != "x"; then 18764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 18765$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 18766 fi 18767 have_perl=no 18768else 18769 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 18770fi 18771 18772 if test "$have_perl" = yes; then 18773 HAVE_PERL_TRUE= 18774 HAVE_PERL_FALSE='#' 18775else 18776 HAVE_PERL_TRUE='#' 18777 HAVE_PERL_FALSE= 18778fi 18779 18780 18781 18782# Required when PKG_CHECK_MODULES called within an if statement 18783 18784 18785if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18786 if test -n "$ac_tool_prefix"; then 18787 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18788set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18790$as_echo_n "checking for $ac_word... " >&6; } 18791if ${ac_cv_path_PKG_CONFIG+:} false; then : 18792 $as_echo_n "(cached) " >&6 18793else 18794 case $PKG_CONFIG in 18795 [\\/]* | ?:[\\/]*) 18796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18797 ;; 18798 *) 18799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18800for as_dir in $PATH 18801do 18802 IFS=$as_save_IFS 18803 test -z "$as_dir" && as_dir=. 18804 for ac_exec_ext in '' $ac_executable_extensions; do 18805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18808 break 2 18809 fi 18810done 18811 done 18812IFS=$as_save_IFS 18813 18814 ;; 18815esac 18816fi 18817PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18818if test -n "$PKG_CONFIG"; then 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18820$as_echo "$PKG_CONFIG" >&6; } 18821else 18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18823$as_echo "no" >&6; } 18824fi 18825 18826 18827fi 18828if test -z "$ac_cv_path_PKG_CONFIG"; then 18829 ac_pt_PKG_CONFIG=$PKG_CONFIG 18830 # Extract the first word of "pkg-config", so it can be a program name with args. 18831set dummy pkg-config; ac_word=$2 18832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18833$as_echo_n "checking for $ac_word... " >&6; } 18834if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18835 $as_echo_n "(cached) " >&6 18836else 18837 case $ac_pt_PKG_CONFIG in 18838 [\\/]* | ?:[\\/]*) 18839 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18840 ;; 18841 *) 18842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18843for as_dir in $PATH 18844do 18845 IFS=$as_save_IFS 18846 test -z "$as_dir" && as_dir=. 18847 for ac_exec_ext in '' $ac_executable_extensions; do 18848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18849 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18851 break 2 18852 fi 18853done 18854 done 18855IFS=$as_save_IFS 18856 18857 ;; 18858esac 18859fi 18860ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18861if test -n "$ac_pt_PKG_CONFIG"; then 18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18863$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18864else 18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18866$as_echo "no" >&6; } 18867fi 18868 18869 if test "x$ac_pt_PKG_CONFIG" = x; then 18870 PKG_CONFIG="" 18871 else 18872 case $cross_compiling:$ac_tool_warned in 18873yes:) 18874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18876ac_tool_warned=yes ;; 18877esac 18878 PKG_CONFIG=$ac_pt_PKG_CONFIG 18879 fi 18880else 18881 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18882fi 18883 18884fi 18885if test -n "$PKG_CONFIG"; then 18886 _pkg_min_version=0.9.0 18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18888$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18889 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18891$as_echo "yes" >&6; } 18892 else 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18894$as_echo "no" >&6; } 18895 PKG_CONFIG="" 18896 fi 18897 18898fi 18899 18900if test x"$CC_FOR_BUILD" = x; then 18901 if test x"$cross_compiling" = xyes; then 18902 for ac_prog in gcc cc 18903do 18904 # Extract the first word of "$ac_prog", so it can be a program name with args. 18905set dummy $ac_prog; ac_word=$2 18906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18907$as_echo_n "checking for $ac_word... " >&6; } 18908if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 18909 $as_echo_n "(cached) " >&6 18910else 18911 if test -n "$CC_FOR_BUILD"; then 18912 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 18913else 18914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18915for as_dir in $PATH 18916do 18917 IFS=$as_save_IFS 18918 test -z "$as_dir" && as_dir=. 18919 for ac_exec_ext in '' $ac_executable_extensions; do 18920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18921 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 18922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18923 break 2 18924 fi 18925done 18926 done 18927IFS=$as_save_IFS 18928 18929fi 18930fi 18931CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 18932if test -n "$CC_FOR_BUILD"; then 18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 18934$as_echo "$CC_FOR_BUILD" >&6; } 18935else 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18937$as_echo "no" >&6; } 18938fi 18939 18940 18941 test -n "$CC_FOR_BUILD" && break 18942done 18943 18944 else 18945 CC_FOR_BUILD="$CC" 18946 fi 18947fi 18948 18949 18950if test x"$CPPFLAGS_FOR_BUILD" = x; then 18951 if test ! x"$cross_compiling" = xyes; then 18952 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 18953 fi 18954fi 18955 18956 18957if test x"$CFLAGS_FOR_BUILD" = x; then 18958 if test ! x"$cross_compiling" = xyes; then 18959 CFLAGS_FOR_BUILD=${CFLAGS} 18960 fi 18961fi 18962 18963 18964if test x"$LDFLAGS_FOR_BUILD" = x; then 18965 if test ! x"$cross_compiling" = xyes; then 18966 LDFLAGS_FOR_BUILD=${LDFLAGS} 18967 fi 18968fi 18969 18970 18971# Checks for pkg-config packages 18972 18973# Always required 18974X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92' 18975X11_EXTRA_DEPS="xcb >= 1.1.92" 18976 18977 18978 18979if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18980 if test -n "$ac_tool_prefix"; then 18981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18982set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18984$as_echo_n "checking for $ac_word... " >&6; } 18985if ${ac_cv_path_PKG_CONFIG+:} false; then : 18986 $as_echo_n "(cached) " >&6 18987else 18988 case $PKG_CONFIG in 18989 [\\/]* | ?:[\\/]*) 18990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18991 ;; 18992 *) 18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18994for as_dir in $PATH 18995do 18996 IFS=$as_save_IFS 18997 test -z "$as_dir" && as_dir=. 18998 for ac_exec_ext in '' $ac_executable_extensions; do 18999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19002 break 2 19003 fi 19004done 19005 done 19006IFS=$as_save_IFS 19007 19008 ;; 19009esac 19010fi 19011PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19012if test -n "$PKG_CONFIG"; then 19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19014$as_echo "$PKG_CONFIG" >&6; } 19015else 19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19017$as_echo "no" >&6; } 19018fi 19019 19020 19021fi 19022if test -z "$ac_cv_path_PKG_CONFIG"; then 19023 ac_pt_PKG_CONFIG=$PKG_CONFIG 19024 # Extract the first word of "pkg-config", so it can be a program name with args. 19025set dummy pkg-config; ac_word=$2 19026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19027$as_echo_n "checking for $ac_word... " >&6; } 19028if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19029 $as_echo_n "(cached) " >&6 19030else 19031 case $ac_pt_PKG_CONFIG in 19032 [\\/]* | ?:[\\/]*) 19033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19034 ;; 19035 *) 19036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19037for as_dir in $PATH 19038do 19039 IFS=$as_save_IFS 19040 test -z "$as_dir" && as_dir=. 19041 for ac_exec_ext in '' $ac_executable_extensions; do 19042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19043 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19045 break 2 19046 fi 19047done 19048 done 19049IFS=$as_save_IFS 19050 19051 ;; 19052esac 19053fi 19054ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19055if test -n "$ac_pt_PKG_CONFIG"; then 19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19057$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19058else 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19060$as_echo "no" >&6; } 19061fi 19062 19063 if test "x$ac_pt_PKG_CONFIG" = x; then 19064 PKG_CONFIG="" 19065 else 19066 case $cross_compiling:$ac_tool_warned in 19067yes:) 19068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19070ac_tool_warned=yes ;; 19071esac 19072 PKG_CONFIG=$ac_pt_PKG_CONFIG 19073 fi 19074else 19075 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19076fi 19077 19078fi 19079if test -n "$PKG_CONFIG"; then 19080 _pkg_min_version=0.9.0 19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19082$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19083 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19085$as_echo "yes" >&6; } 19086 else 19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19088$as_echo "no" >&6; } 19089 PKG_CONFIG="" 19090 fi 19091 19092fi 19093 19094 19095 19096# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 19097# was not expanded, since libX11 with no transport types is rather useless. 19098# 19099# If you're seeing an error here, be sure you installed the lib/xtrans module 19100# first and if it's not in the default location, that you set the ACLOCAL 19101# environment variable to find it, such as: 19102# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 19103 19104 19105# Transport selection macro from xtrans.m4 19106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 19107$as_echo_n "checking return type of signal handlers... " >&6; } 19108if ${ac_cv_type_signal+:} false; then : 19109 $as_echo_n "(cached) " >&6 19110else 19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19112/* end confdefs.h. */ 19113#include <sys/types.h> 19114#include <signal.h> 19115 19116int 19117main () 19118{ 19119return *(signal (0, 0)) (0) == 1; 19120 ; 19121 return 0; 19122} 19123_ACEOF 19124if ac_fn_c_try_compile "$LINENO"; then : 19125 ac_cv_type_signal=int 19126else 19127 ac_cv_type_signal=void 19128fi 19129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19130fi 19131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 19132$as_echo "$ac_cv_type_signal" >&6; } 19133 19134cat >>confdefs.h <<_ACEOF 19135#define RETSIGTYPE $ac_cv_type_signal 19136_ACEOF 19137 19138 19139 19140 19141 19142 case $host_os in 19143 mingw*) unixdef="no" ;; 19144 *) unixdef="yes" ;; 19145 esac 19146 # Check whether --enable-unix-transport was given. 19147if test "${enable_unix_transport+set}" = set; then : 19148 enableval=$enable_unix_transport; UNIXCONN=$enableval 19149else 19150 UNIXCONN=$unixdef 19151fi 19152 19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 19154$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 19155 if test "$UNIXCONN" = "yes"; then 19156 19157$as_echo "#define UNIXCONN 1" >>confdefs.h 19158 19159 fi 19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 19161$as_echo "$UNIXCONN" >&6; } 19162 # Check whether --enable-tcp-transport was given. 19163if test "${enable_tcp_transport+set}" = set; then : 19164 enableval=$enable_tcp_transport; TCPCONN=$enableval 19165else 19166 TCPCONN=yes 19167fi 19168 19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 19170$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 19172$as_echo "$TCPCONN" >&6; } 19173 if test "$TCPCONN" = "yes"; then 19174 19175$as_echo "#define TCPCONN 1" >>confdefs.h 19176 19177 19178 # SVR4 hides these in libraries other than libc 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19180$as_echo_n "checking for library containing socket... " >&6; } 19181if ${ac_cv_search_socket+:} false; then : 19182 $as_echo_n "(cached) " >&6 19183else 19184 ac_func_search_save_LIBS=$LIBS 19185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19186/* end confdefs.h. */ 19187 19188/* Override any GCC internal prototype to avoid an error. 19189 Use char because int might match the return type of a GCC 19190 builtin and then its argument prototype would still apply. */ 19191#ifdef __cplusplus 19192extern "C" 19193#endif 19194char socket (); 19195int 19196main () 19197{ 19198return socket (); 19199 ; 19200 return 0; 19201} 19202_ACEOF 19203for ac_lib in '' socket; do 19204 if test -z "$ac_lib"; then 19205 ac_res="none required" 19206 else 19207 ac_res=-l$ac_lib 19208 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19209 fi 19210 if ac_fn_c_try_link "$LINENO"; then : 19211 ac_cv_search_socket=$ac_res 19212fi 19213rm -f core conftest.err conftest.$ac_objext \ 19214 conftest$ac_exeext 19215 if ${ac_cv_search_socket+:} false; then : 19216 break 19217fi 19218done 19219if ${ac_cv_search_socket+:} false; then : 19220 19221else 19222 ac_cv_search_socket=no 19223fi 19224rm conftest.$ac_ext 19225LIBS=$ac_func_search_save_LIBS 19226fi 19227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19228$as_echo "$ac_cv_search_socket" >&6; } 19229ac_res=$ac_cv_search_socket 19230if test "$ac_res" != no; then : 19231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19232 19233fi 19234 19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19236$as_echo_n "checking for library containing gethostbyname... " >&6; } 19237if ${ac_cv_search_gethostbyname+:} false; then : 19238 $as_echo_n "(cached) " >&6 19239else 19240 ac_func_search_save_LIBS=$LIBS 19241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19242/* end confdefs.h. */ 19243 19244/* Override any GCC internal prototype to avoid an error. 19245 Use char because int might match the return type of a GCC 19246 builtin and then its argument prototype would still apply. */ 19247#ifdef __cplusplus 19248extern "C" 19249#endif 19250char gethostbyname (); 19251int 19252main () 19253{ 19254return gethostbyname (); 19255 ; 19256 return 0; 19257} 19258_ACEOF 19259for ac_lib in '' nsl; do 19260 if test -z "$ac_lib"; then 19261 ac_res="none required" 19262 else 19263 ac_res=-l$ac_lib 19264 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19265 fi 19266 if ac_fn_c_try_link "$LINENO"; then : 19267 ac_cv_search_gethostbyname=$ac_res 19268fi 19269rm -f core conftest.err conftest.$ac_objext \ 19270 conftest$ac_exeext 19271 if ${ac_cv_search_gethostbyname+:} false; then : 19272 break 19273fi 19274done 19275if ${ac_cv_search_gethostbyname+:} false; then : 19276 19277else 19278 ac_cv_search_gethostbyname=no 19279fi 19280rm conftest.$ac_ext 19281LIBS=$ac_func_search_save_LIBS 19282fi 19283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19284$as_echo "$ac_cv_search_gethostbyname" >&6; } 19285ac_res=$ac_cv_search_gethostbyname 19286if test "$ac_res" != no; then : 19287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19288 19289fi 19290 19291 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19293$as_echo_n "checking for main in -lws2_32... " >&6; } 19294if ${ac_cv_lib_ws2_32_main+:} false; then : 19295 $as_echo_n "(cached) " >&6 19296else 19297 ac_check_lib_save_LIBS=$LIBS 19298LIBS="-lws2_32 $LIBS" 19299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19300/* end confdefs.h. */ 19301 19302 19303int 19304main () 19305{ 19306return main (); 19307 ; 19308 return 0; 19309} 19310_ACEOF 19311if ac_fn_c_try_link "$LINENO"; then : 19312 ac_cv_lib_ws2_32_main=yes 19313else 19314 ac_cv_lib_ws2_32_main=no 19315fi 19316rm -f core conftest.err conftest.$ac_objext \ 19317 conftest$ac_exeext conftest.$ac_ext 19318LIBS=$ac_check_lib_save_LIBS 19319fi 19320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19321$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19322if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19323 cat >>confdefs.h <<_ACEOF 19324#define HAVE_LIBWS2_32 1 19325_ACEOF 19326 19327 LIBS="-lws2_32 $LIBS" 19328 19329fi 19330ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 19331 19332 fi 19333 19334 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 19335 # Check whether --enable-ipv6 was given. 19336if test "${enable_ipv6+set}" = set; then : 19337 enableval=$enable_ipv6; IPV6CONN=$enableval 19338else 19339 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19340if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19341 IPV6CONN=yes 19342else 19343 IPV6CONN=no 19344fi 19345 19346fi 19347 19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 19349$as_echo_n "checking if IPv6 support should be built... " >&6; } 19350 if test "$IPV6CONN" = "yes"; then 19351 19352$as_echo "#define IPv6 1" >>confdefs.h 19353 19354 fi 19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 19356$as_echo "$IPV6CONN" >&6; } 19357 19358 # 4.3BSD-Reno added a new member to struct sockaddr_in 19359 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 19360#include <sys/types.h> 19361#include <sys/socket.h> 19362#include <netinet/in.h> 19363 19364" 19365if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 19366 19367$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 19368 19369fi 19370 19371 19372 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 19373 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 19374$ac_includes_default 19375#include <sys/socket.h> 19376" 19377if test "x$ac_cv_type_socklen_t" = xyes; then : 19378 19379cat >>confdefs.h <<_ACEOF 19380#define HAVE_SOCKLEN_T 1 19381_ACEOF 19382 19383 19384fi 19385 19386 19387 19388 fi 19389 case $host_os in 19390 solaris*|sco*|sysv4*) localdef="yes" ;; 19391 *) localdef="no" ;; 19392 esac 19393 # Check whether --enable-local-transport was given. 19394if test "${enable_local_transport+set}" = set; then : 19395 enableval=$enable_local_transport; LOCALCONN=$enableval 19396else 19397 LOCALCONN=$localdef 19398fi 19399 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 19401$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 19403$as_echo "$LOCALCONN" >&6; } 19404 if test "$LOCALCONN" = "yes"; then 19405 19406$as_echo "#define LOCALCONN 1" >>confdefs.h 19407 19408 fi 19409 19410 19411 19412# Secure RPC detection macro from xtrans.m4 19413 19414 # Check whether --enable-secure-rpc was given. 19415if test "${enable_secure_rpc+set}" = set; then : 19416 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 19417else 19418 SECURE_RPC="try" 19419fi 19420 19421 19422 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 19423 FOUND_SECURE_RPC="no" 19424 for ac_func in authdes_seccreate authdes_create 19425do : 19426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19427ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19428if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19429 cat >>confdefs.h <<_ACEOF 19430#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19431_ACEOF 19432 FOUND_SECURE_RPC="yes" 19433fi 19434done 19435 19436 if test "x$FOUND_SECURE_RPC" = "xno" ; then 19437 if test "x$SECURE_RPC" = "xyes" ; then 19438 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 19439 fi 19440 SECURE_RPC="no" 19441 else 19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 19443$as_echo_n "checking for library containing getsecretkey... " >&6; } 19444if ${ac_cv_search_getsecretkey+:} false; then : 19445 $as_echo_n "(cached) " >&6 19446else 19447 ac_func_search_save_LIBS=$LIBS 19448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19449/* end confdefs.h. */ 19450 19451/* Override any GCC internal prototype to avoid an error. 19452 Use char because int might match the return type of a GCC 19453 builtin and then its argument prototype would still apply. */ 19454#ifdef __cplusplus 19455extern "C" 19456#endif 19457char getsecretkey (); 19458int 19459main () 19460{ 19461return getsecretkey (); 19462 ; 19463 return 0; 19464} 19465_ACEOF 19466for ac_lib in '' rpcsvc; do 19467 if test -z "$ac_lib"; then 19468 ac_res="none required" 19469 else 19470 ac_res=-l$ac_lib 19471 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19472 fi 19473 if ac_fn_c_try_link "$LINENO"; then : 19474 ac_cv_search_getsecretkey=$ac_res 19475fi 19476rm -f core conftest.err conftest.$ac_objext \ 19477 conftest$ac_exeext 19478 if ${ac_cv_search_getsecretkey+:} false; then : 19479 break 19480fi 19481done 19482if ${ac_cv_search_getsecretkey+:} false; then : 19483 19484else 19485 ac_cv_search_getsecretkey=no 19486fi 19487rm conftest.$ac_ext 19488LIBS=$ac_func_search_save_LIBS 19489fi 19490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 19491$as_echo "$ac_cv_search_getsecretkey" >&6; } 19492ac_res=$ac_cv_search_getsecretkey 19493if test "$ac_res" != no; then : 19494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19495 19496fi 19497 19498 SECURE_RPC="yes" 19499 fi 19500 fi 19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 19502$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 19503 if test "x$SECURE_RPC" = "xyes" ; then 19504 19505$as_echo "#define SECURE_RPC 1" >>confdefs.h 19506 19507 fi 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 19509$as_echo "$SECURE_RPC" >&6; } 19510 19511 19512# Preferred order to try transports for local connections 19513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5 19514$as_echo_n "checking what order to try transports in for local connections... " >&6; } 19515DEFAULT_LOCAL_TRANS="" 19516case $host_os in 19517 solaris*) 19518 # On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were 19519 # faster than Unix domain sockets, but on Solaris 10 & later, 19520 # Unix domain sockets are faster now. 19521 if test "$UNIXCONN" = "yes" ; then 19522 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19523 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19524 fi 19525 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 19526 fi 19527 if test "$LOCALCONN" = "yes" ; then 19528 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19529 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19530 fi 19531 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 19532 fi 19533 if test "$TCPCONN" = "yes" ; then 19534 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19535 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19536 fi 19537 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19538 fi 19539 ;; 19540 linux*) 19541 # LOCAL_TRANS is used for abstract sockets. 19542 if test "$UNIXCONN" = "yes" ; then 19543 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19544 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19545 fi 19546 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS" 19547 fi 19548 if test "$TCPCONN" = "yes" ; then 19549 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19550 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19551 fi 19552 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19553 fi 19554 ;; 19555 *) 19556 if test "$LOCALCONN" = "yes" ; then 19557 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19558 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19559 fi 19560 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 19561 fi 19562 if test "$UNIXCONN" = "yes" ; then 19563 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19564 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19565 fi 19566 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 19567 fi 19568 if test "$TCPCONN" = "yes" ; then 19569 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19570 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19571 fi 19572 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19573 fi 19574 ;; 19575esac 19576 19577 19578# Check whether --with-local-transport-order was given. 19579if test "${with_local_transport_order+set}" = set; then : 19580 withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval 19581else 19582 LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS 19583fi 19584 19585 19586cat >>confdefs.h <<_ACEOF 19587#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST 19588_ACEOF 19589 19590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5 19591$as_echo "$LOCAL_TRANSPORT_LIST" >&6; } 19592 19593# Check for dlopen 19594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 19595$as_echo_n "checking if run-time linking is supported... " >&6; } 19596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 19597$as_echo_n "checking for library containing dlopen... " >&6; } 19598if ${ac_cv_search_dlopen+:} false; then : 19599 $as_echo_n "(cached) " >&6 19600else 19601 ac_func_search_save_LIBS=$LIBS 19602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19603/* end confdefs.h. */ 19604 19605/* Override any GCC internal prototype to avoid an error. 19606 Use char because int might match the return type of a GCC 19607 builtin and then its argument prototype would still apply. */ 19608#ifdef __cplusplus 19609extern "C" 19610#endif 19611char dlopen (); 19612int 19613main () 19614{ 19615return dlopen (); 19616 ; 19617 return 0; 19618} 19619_ACEOF 19620for ac_lib in '' dl svld; do 19621 if test -z "$ac_lib"; then 19622 ac_res="none required" 19623 else 19624 ac_res=-l$ac_lib 19625 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19626 fi 19627 if ac_fn_c_try_link "$LINENO"; then : 19628 ac_cv_search_dlopen=$ac_res 19629fi 19630rm -f core conftest.err conftest.$ac_objext \ 19631 conftest$ac_exeext 19632 if ${ac_cv_search_dlopen+:} false; then : 19633 break 19634fi 19635done 19636if ${ac_cv_search_dlopen+:} false; then : 19637 19638else 19639 ac_cv_search_dlopen=no 19640fi 19641rm conftest.$ac_ext 19642LIBS=$ac_func_search_save_LIBS 19643fi 19644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 19645$as_echo "$ac_cv_search_dlopen" >&6; } 19646ac_res=$ac_cv_search_dlopen 19647if test "$ac_res" != no; then : 19648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19649 19650fi 19651 19652if test "x$ac_cv_search_dlopen" = xno; then 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 19654$as_echo_n "checking for library containing shl_load... " >&6; } 19655if ${ac_cv_search_shl_load+:} false; then : 19656 $as_echo_n "(cached) " >&6 19657else 19658 ac_func_search_save_LIBS=$LIBS 19659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19660/* end confdefs.h. */ 19661 19662/* Override any GCC internal prototype to avoid an error. 19663 Use char because int might match the return type of a GCC 19664 builtin and then its argument prototype would still apply. */ 19665#ifdef __cplusplus 19666extern "C" 19667#endif 19668char shl_load (); 19669int 19670main () 19671{ 19672return shl_load (); 19673 ; 19674 return 0; 19675} 19676_ACEOF 19677for ac_lib in '' dld; do 19678 if test -z "$ac_lib"; then 19679 ac_res="none required" 19680 else 19681 ac_res=-l$ac_lib 19682 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19683 fi 19684 if ac_fn_c_try_link "$LINENO"; then : 19685 ac_cv_search_shl_load=$ac_res 19686fi 19687rm -f core conftest.err conftest.$ac_objext \ 19688 conftest$ac_exeext 19689 if ${ac_cv_search_shl_load+:} false; then : 19690 break 19691fi 19692done 19693if ${ac_cv_search_shl_load+:} false; then : 19694 19695else 19696 ac_cv_search_shl_load=no 19697fi 19698rm conftest.$ac_ext 19699LIBS=$ac_func_search_save_LIBS 19700fi 19701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 19702$as_echo "$ac_cv_search_shl_load" >&6; } 19703ac_res=$ac_cv_search_shl_load 19704if test "$ac_res" != no; then : 19705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19706 19707fi 19708 19709 if test "x$ac_cv_search_shl_load" != xno; then 19710 19711$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 19712 19713 for ac_header in dl.h 19714do : 19715 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 19716if test "x$ac_cv_header_dl_h" = xyes; then : 19717 cat >>confdefs.h <<_ACEOF 19718#define HAVE_DL_H 1 19719_ACEOF 19720 19721fi 19722 19723done 19724 19725 fi 19726else 19727 19728$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 19729 19730 for ac_header in dlfcn.h 19731do : 19732 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 19733if test "x$ac_cv_header_dlfcn_h" = xyes; then : 19734 cat >>confdefs.h <<_ACEOF 19735#define HAVE_DLFCN_H 1 19736_ACEOF 19737 19738fi 19739 19740done 19741 19742fi 19743if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then 19744 HAVE_LOADABLE_MODULES=yes 19745else 19746 HAVE_LOADABLE_MODULES=no 19747fi 19748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 19749$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 19750 19751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 19752$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 19753# Check whether --enable-loadable-i18n was given. 19754if test "${enable_loadable_i18n+set}" = set; then : 19755 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 19756else 19757 XLIB_LOADABLE_I18N="no" 19758fi 19759 19760if test x$XLIB_LOADABLE_I18N = xyes; then 19761 if test x$HAVE_LOADABLE_MODULES = xno; then 19762 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 19763 fi 19764 19765$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 19766 19767 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 19768 19769fi 19770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 19771$as_echo "$XLIB_LOADABLE_I18N" >&6; } 19772 19773 if test x$XLIB_LOADABLE_I18N = xyes; then 19774 XLIB_LOADABLE_I18N_TRUE= 19775 XLIB_LOADABLE_I18N_FALSE='#' 19776else 19777 XLIB_LOADABLE_I18N_TRUE='#' 19778 XLIB_LOADABLE_I18N_FALSE= 19779fi 19780 19781 19782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 19783$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 19784# Check whether --enable-loadable-xcursor was given. 19785if test "${enable_loadable_xcursor+set}" = set; then : 19786 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 19787else 19788 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 19789fi 19790 19791if test x$XLIB_LOADABLE_XCURSOR = xyes; then 19792 19793$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 19794 19795fi 19796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 19797$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 19798 19799# Checks for header files. 19800for ac_header in sys/select.h 19801do : 19802 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 19803if test "x$ac_cv_header_sys_select_h" = xyes; then : 19804 cat >>confdefs.h <<_ACEOF 19805#define HAVE_SYS_SELECT_H 1 19806_ACEOF 19807 19808fi 19809 19810done 19811 19812 19813# Checks for typedefs, structures, and compiler characteristics. 19814 19815# Checks for library functions. 19816for ac_func in strtol seteuid 19817do : 19818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19819ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19820if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19821 cat >>confdefs.h <<_ACEOF 19822#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19823_ACEOF 19824 19825fi 19826done 19827 19828# Used in lcFile.c (see also --enable-xlocaledir settings below) 19829XLOCALEDIR_IS_SAFE="no" 19830ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" 19831if test "x$ac_cv_have_decl_issetugid" = xyes; then : 19832 19833fi 19834 19835ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 19836if test "x$ac_cv_func_issetugid" = xyes; then : 19837 19838fi 19839 19840if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 19841 XLOCALEDIR_IS_SAFE="yes" 19842 19843$as_echo "#define HASSETUGID 1" >>confdefs.h 19844 19845fi 19846ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 19847if test "x$ac_cv_func_getresuid" = xyes; then : 19848 XLOCALEDIR_IS_SAFE="yes" 19849 19850$as_echo "#define HASGETRESUID 1" >>confdefs.h 19851 19852fi 19853 19854# Used in Font.c 19855ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19856if test "x$ac_cv_func_shmat" = xyes; then : 19857 19858$as_echo "#define HAS_SHM 1" >>confdefs.h 19859 19860fi 19861 19862 19863# Checks for system services 19864# AC_PATH_XTRA 19865 19866# arch specific things 19867WCHAR32="1" 19868case $host_os in 19869 os2*) os2="true" ; WCHAR32="0" ;; 19870 *) ;; 19871esac 19872 19873 19874 if test x$os2 = xtrue; then 19875 OS2_TRUE= 19876 OS2_FALSE='#' 19877else 19878 OS2_TRUE='#' 19879 OS2_FALSE= 19880fi 19881 19882 19883 19884# Check whether --with-launchd was given. 19885if test "${with_launchd+set}" = set; then : 19886 withval=$with_launchd; LAUNCHD=$withval 19887else 19888 LAUNCHD=auto 19889fi 19890 19891if test "x$LAUNCHD" = xauto; then 19892 unset LAUNCHD 19893 # Extract the first word of "launchd", so it can be a program name with args. 19894set dummy launchd; ac_word=$2 19895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19896$as_echo_n "checking for $ac_word... " >&6; } 19897if ${ac_cv_prog_LAUNCHD+:} false; then : 19898 $as_echo_n "(cached) " >&6 19899else 19900 if test -n "$LAUNCHD"; then 19901 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 19902else 19903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19904for as_dir in $PATH$PATH_SEPARATOR/sbin 19905do 19906 IFS=$as_save_IFS 19907 test -z "$as_dir" && as_dir=. 19908 for ac_exec_ext in '' $ac_executable_extensions; do 19909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19910 ac_cv_prog_LAUNCHD="yes" 19911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19912 break 2 19913 fi 19914done 19915 done 19916IFS=$as_save_IFS 19917 19918 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 19919fi 19920fi 19921LAUNCHD=$ac_cv_prog_LAUNCHD 19922if test -n "$LAUNCHD"; then 19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 19924$as_echo "$LAUNCHD" >&6; } 19925else 19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19927$as_echo "no" >&6; } 19928fi 19929 19930 19931fi 19932 19933if test "x$LAUNCHD" = xyes ; then 19934 19935$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 19936 19937 19938$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 19939 19940fi 19941 19942# Check whether --enable-xthreads was given. 19943if test "${enable_xthreads+set}" = set; then : 19944 enableval=$enable_xthreads; xthreads=$enableval 19945else 19946 xthreads=yes 19947fi 19948 19949 19950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 19951$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 19952if ${ac_cv_lib_c_getpwuid_r+:} false; then : 19953 $as_echo_n "(cached) " >&6 19954else 19955 ac_check_lib_save_LIBS=$LIBS 19956LIBS="-lc $LIBS" 19957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19958/* end confdefs.h. */ 19959 19960/* Override any GCC internal prototype to avoid an error. 19961 Use char because int might match the return type of a GCC 19962 builtin and then its argument prototype would still apply. */ 19963#ifdef __cplusplus 19964extern "C" 19965#endif 19966char getpwuid_r (); 19967int 19968main () 19969{ 19970return getpwuid_r (); 19971 ; 19972 return 0; 19973} 19974_ACEOF 19975if ac_fn_c_try_link "$LINENO"; then : 19976 ac_cv_lib_c_getpwuid_r=yes 19977else 19978 ac_cv_lib_c_getpwuid_r=no 19979fi 19980rm -f core conftest.err conftest.$ac_objext \ 19981 conftest$ac_exeext conftest.$ac_ext 19982LIBS=$ac_check_lib_save_LIBS 19983fi 19984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 19985$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 19986if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then : 19987 mtsafeapi="yes" 19988else 19989 mtsafeapi="no" 19990fi 19991 19992 19993case x$xthreads in 19994xyes) 19995 19996$as_echo "#define XTHREADS 1" >>confdefs.h 19997 19998 if test x$mtsafeapi = xyes 19999 then 20000 20001$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 20002 20003 fi 20004 ;; 20005*) 20006 ;; 20007esac 20008 20009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 20010$as_echo_n "checking for pthread_self in -lc... " >&6; } 20011if ${ac_cv_lib_c_pthread_self+:} false; then : 20012 $as_echo_n "(cached) " >&6 20013else 20014 ac_check_lib_save_LIBS=$LIBS 20015LIBS="-lc $LIBS" 20016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20017/* end confdefs.h. */ 20018 20019/* Override any GCC internal prototype to avoid an error. 20020 Use char because int might match the return type of a GCC 20021 builtin and then its argument prototype would still apply. */ 20022#ifdef __cplusplus 20023extern "C" 20024#endif 20025char pthread_self (); 20026int 20027main () 20028{ 20029return pthread_self (); 20030 ; 20031 return 0; 20032} 20033_ACEOF 20034if ac_fn_c_try_link "$LINENO"; then : 20035 ac_cv_lib_c_pthread_self=yes 20036else 20037 ac_cv_lib_c_pthread_self=no 20038fi 20039rm -f core conftest.err conftest.$ac_objext \ 20040 conftest$ac_exeext conftest.$ac_ext 20041LIBS=$ac_check_lib_save_LIBS 20042fi 20043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 20044$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 20045if test "x$ac_cv_lib_c_pthread_self" = xyes; then : 20046 thrstubs="no" 20047else 20048 thrstubs="yes" 20049fi 20050 20051 if test x$thrstubs = xyes; then 20052 THRSTUBS_TRUE= 20053 THRSTUBS_FALSE='#' 20054else 20055 THRSTUBS_TRUE='#' 20056 THRSTUBS_FALSE= 20057fi 20058 20059 20060# XXX incomplete, please fill this in 20061if test x$xthreads = xyes ; then 20062 case $host_os in 20063 linux*|gnu*|k*bsd*-gnu) 20064 XTHREADLIB=-lpthread ;; 20065 netbsd*) 20066 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 20067 XTHREADLIB="-lpthread" ;; 20068 freebsd*) 20069 XTHREAD_CFLAGS="-D_THREAD_SAFE" 20070 XTHREADLIB="-pthread" ;; 20071 dragonfly*|openbsd*) 20072 XTHREADLIB="-pthread" ;; 20073 solaris*) 20074 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 20075 esac 20076fi 20077 20078 20079 20080ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20081if test "x$ac_cv_func_poll" = xyes; then : 20082 20083$as_echo "#define USE_POLL 1" >>confdefs.h 20084 20085fi 20086 20087 20088# 20089# Find keysymdef.h 20090# 20091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 20092$as_echo_n "checking keysym definitions... " >&6; } 20093 20094# Check whether --with-keysymdefdir was given. 20095if test "${with_keysymdefdir+set}" = set; then : 20096 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 20097else 20098 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 20099fi 20100 20101 20102if test ! -d "$KEYSYMDEFDIR"; then 20103 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 20104fi 20105 20106FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 20107for i in $FILES; do 20108 if test -f "$KEYSYMDEFDIR/$i"; then 20109 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 20110 elif test "x$i" = "xkeysymdef.h"; then 20111 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 20112 fi 20113done 20114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 20115$as_echo "$KEYSYMDEFS" >&6; } 20116 20117 20118 if test xfalse = xtrue; then 20119 UDC_TRUE= 20120 UDC_FALSE='#' 20121else 20122 UDC_TRUE='#' 20123 UDC_FALSE= 20124fi 20125 20126 20127# Check whether --enable-xcms was given. 20128if test "${enable_xcms+set}" = set; then : 20129 enableval=$enable_xcms; XCMS=$enableval 20130else 20131 XCMS=yes 20132fi 20133 20134 if test x$XCMS = xyes ; then 20135 XCMS_TRUE= 20136 XCMS_FALSE='#' 20137else 20138 XCMS_TRUE='#' 20139 XCMS_FALSE= 20140fi 20141 20142if test x"$XCMS" = "xyes"; then 20143 20144$as_echo "#define XCMS 1" >>confdefs.h 20145 20146fi 20147 20148# Check whether --enable-xlocale was given. 20149if test "${enable_xlocale+set}" = set; then : 20150 enableval=$enable_xlocale; XLOCALE=$enableval 20151else 20152 XLOCALE=yes 20153fi 20154 20155 20156 if test x$XLOCALE = xyes ; then 20157 XLOCALE_TRUE= 20158 XLOCALE_FALSE='#' 20159else 20160 XLOCALE_TRUE='#' 20161 XLOCALE_FALSE= 20162fi 20163 20164if test x"$XLOCALE" = "xyes"; then 20165 20166$as_echo "#define XLOCALE 1" >>confdefs.h 20167 20168fi 20169 20170# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 20171# don't have either issetugid() or getresuid(), and you need to protect 20172# clients that are setgid or setuid to an id other than 0. 20173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 20174$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 20175# Check whether --enable-xlocaledir was given. 20176if test "${enable_xlocaledir+set}" = set; then : 20177 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 20178else 20179 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 20180fi 20181 20182if test "x$ENABLE_XLOCALEDIR" = "xno"; then 20183 20184$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 20185 20186fi 20187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 20188$as_echo "$ENABLE_XLOCALEDIR" >&6; } 20189 20190# Check whether --enable-xf86bigfont was given. 20191if test "${enable_xf86bigfont+set}" = set; then : 20192 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 20193else 20194 XF86BIGFONT="yes" 20195fi 20196 20197if test "x$XF86BIGFONT" = "xyes"; then 20198 20199pkg_failed=no 20200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 20201$as_echo_n "checking for BIGFONT... " >&6; } 20202 20203if test -n "$BIGFONT_CFLAGS"; then 20204 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 20205 elif test -n "$PKG_CONFIG"; then 20206 if test -n "$PKG_CONFIG" && \ 20207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 20208 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 20209 ac_status=$? 20210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20211 test $ac_status = 0; }; then 20212 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 20213else 20214 pkg_failed=yes 20215fi 20216 else 20217 pkg_failed=untried 20218fi 20219if test -n "$BIGFONT_LIBS"; then 20220 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 20221 elif test -n "$PKG_CONFIG"; then 20222 if test -n "$PKG_CONFIG" && \ 20223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 20224 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 20225 ac_status=$? 20226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20227 test $ac_status = 0; }; then 20228 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 20229else 20230 pkg_failed=yes 20231fi 20232 else 20233 pkg_failed=untried 20234fi 20235 20236 20237 20238if test $pkg_failed = yes; then 20239 20240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20241 _pkg_short_errors_supported=yes 20242else 20243 _pkg_short_errors_supported=no 20244fi 20245 if test $_pkg_short_errors_supported = yes; then 20246 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto >= 1.2.0" 2>&1` 20247 else 20248 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto >= 1.2.0" 2>&1` 20249 fi 20250 # Put the nasty error message in config.log where it belongs 20251 echo "$BIGFONT_PKG_ERRORS" >&5 20252 20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20254$as_echo "no" >&6; } 20255 XF86BIGFONT="no" 20256elif test $pkg_failed = untried; then 20257 XF86BIGFONT="no" 20258else 20259 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 20260 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20262$as_echo "yes" >&6; } 20263 20264$as_echo "#define XF86BIGFONT 1" >>confdefs.h 20265 20266fi 20267fi 20268 20269# Check whether --enable-xkb was given. 20270if test "${enable_xkb+set}" = set; then : 20271 enableval=$enable_xkb; XKB=$enableval 20272else 20273 XKB=yes 20274fi 20275 20276 20277 if test x$XKB = xyes ; then 20278 XKB_TRUE= 20279 XKB_FALSE='#' 20280else 20281 XKB_TRUE='#' 20282 XKB_FALSE= 20283fi 20284 20285if test x"$XKB" = "xyes"; then 20286 XKBPROTO_REQUIRES="kbproto" 20287 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 20288 20289$as_echo "#define XKB 1" >>confdefs.h 20290 20291else 20292 XKBPROTO_REQUIRES="" 20293fi 20294 20295 20296 20297 20298 20299 for ac_header in $ac_header_list 20300do : 20301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 20303" 20304if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20305 cat >>confdefs.h <<_ACEOF 20306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20307_ACEOF 20308 20309fi 20310 20311done 20312 20313 20314 20315 20316 20317 20318 20319 20320for ac_func in getpagesize 20321do : 20322 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 20323if test "x$ac_cv_func_getpagesize" = xyes; then : 20324 cat >>confdefs.h <<_ACEOF 20325#define HAVE_GETPAGESIZE 1 20326_ACEOF 20327 20328fi 20329done 20330 20331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 20332$as_echo_n "checking for working mmap... " >&6; } 20333if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 20334 $as_echo_n "(cached) " >&6 20335else 20336 if test "$cross_compiling" = yes; then : 20337 ac_cv_func_mmap_fixed_mapped=no 20338else 20339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20340/* end confdefs.h. */ 20341$ac_includes_default 20342/* malloc might have been renamed as rpl_malloc. */ 20343#undef malloc 20344 20345/* Thanks to Mike Haertel and Jim Avera for this test. 20346 Here is a matrix of mmap possibilities: 20347 mmap private not fixed 20348 mmap private fixed at somewhere currently unmapped 20349 mmap private fixed at somewhere already mapped 20350 mmap shared not fixed 20351 mmap shared fixed at somewhere currently unmapped 20352 mmap shared fixed at somewhere already mapped 20353 For private mappings, we should verify that changes cannot be read() 20354 back from the file, nor mmap's back from the file at a different 20355 address. (There have been systems where private was not correctly 20356 implemented like the infamous i386 svr4.0, and systems where the 20357 VM page cache was not coherent with the file system buffer cache 20358 like early versions of FreeBSD and possibly contemporary NetBSD.) 20359 For shared mappings, we should conversely verify that changes get 20360 propagated back to all the places they're supposed to be. 20361 20362 Grep wants private fixed already mapped. 20363 The main things grep needs to know about mmap are: 20364 * does it exist and is it safe to write into the mmap'd area 20365 * how to use it (BSD variants) */ 20366 20367#include <fcntl.h> 20368#include <sys/mman.h> 20369 20370#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 20371char *malloc (); 20372#endif 20373 20374/* This mess was copied from the GNU getpagesize.h. */ 20375#ifndef HAVE_GETPAGESIZE 20376# ifdef _SC_PAGESIZE 20377# define getpagesize() sysconf(_SC_PAGESIZE) 20378# else /* no _SC_PAGESIZE */ 20379# ifdef HAVE_SYS_PARAM_H 20380# include <sys/param.h> 20381# ifdef EXEC_PAGESIZE 20382# define getpagesize() EXEC_PAGESIZE 20383# else /* no EXEC_PAGESIZE */ 20384# ifdef NBPG 20385# define getpagesize() NBPG * CLSIZE 20386# ifndef CLSIZE 20387# define CLSIZE 1 20388# endif /* no CLSIZE */ 20389# else /* no NBPG */ 20390# ifdef NBPC 20391# define getpagesize() NBPC 20392# else /* no NBPC */ 20393# ifdef PAGESIZE 20394# define getpagesize() PAGESIZE 20395# endif /* PAGESIZE */ 20396# endif /* no NBPC */ 20397# endif /* no NBPG */ 20398# endif /* no EXEC_PAGESIZE */ 20399# else /* no HAVE_SYS_PARAM_H */ 20400# define getpagesize() 8192 /* punt totally */ 20401# endif /* no HAVE_SYS_PARAM_H */ 20402# endif /* no _SC_PAGESIZE */ 20403 20404#endif /* no HAVE_GETPAGESIZE */ 20405 20406int 20407main () 20408{ 20409 char *data, *data2, *data3; 20410 const char *cdata2; 20411 int i, pagesize; 20412 int fd, fd2; 20413 20414 pagesize = getpagesize (); 20415 20416 /* First, make a file with some known garbage in it. */ 20417 data = (char *) malloc (pagesize); 20418 if (!data) 20419 return 1; 20420 for (i = 0; i < pagesize; ++i) 20421 *(data + i) = rand (); 20422 umask (0); 20423 fd = creat ("conftest.mmap", 0600); 20424 if (fd < 0) 20425 return 2; 20426 if (write (fd, data, pagesize) != pagesize) 20427 return 3; 20428 close (fd); 20429 20430 /* Next, check that the tail of a page is zero-filled. File must have 20431 non-zero length, otherwise we risk SIGBUS for entire page. */ 20432 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 20433 if (fd2 < 0) 20434 return 4; 20435 cdata2 = ""; 20436 if (write (fd2, cdata2, 1) != 1) 20437 return 5; 20438 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 20439 if (data2 == MAP_FAILED) 20440 return 6; 20441 for (i = 0; i < pagesize; ++i) 20442 if (*(data2 + i)) 20443 return 7; 20444 close (fd2); 20445 if (munmap (data2, pagesize)) 20446 return 8; 20447 20448 /* Next, try to mmap the file at a fixed address which already has 20449 something else allocated at it. If we can, also make sure that 20450 we see the same garbage. */ 20451 fd = open ("conftest.mmap", O_RDWR); 20452 if (fd < 0) 20453 return 9; 20454 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20455 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20456 return 10; 20457 for (i = 0; i < pagesize; ++i) 20458 if (*(data + i) != *(data2 + i)) 20459 return 11; 20460 20461 /* Finally, make sure that changes to the mapped area do not 20462 percolate back to the file as seen by read(). (This is a bug on 20463 some variants of i386 svr4.0.) */ 20464 for (i = 0; i < pagesize; ++i) 20465 *(data2 + i) = *(data2 + i) + 1; 20466 data3 = (char *) malloc (pagesize); 20467 if (!data3) 20468 return 12; 20469 if (read (fd, data3, pagesize) != pagesize) 20470 return 13; 20471 for (i = 0; i < pagesize; ++i) 20472 if (*(data + i) != *(data3 + i)) 20473 return 14; 20474 close (fd); 20475 return 0; 20476} 20477_ACEOF 20478if ac_fn_c_try_run "$LINENO"; then : 20479 ac_cv_func_mmap_fixed_mapped=yes 20480else 20481 ac_cv_func_mmap_fixed_mapped=no 20482fi 20483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20484 conftest.$ac_objext conftest.beam conftest.$ac_ext 20485fi 20486 20487fi 20488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 20489$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 20490if test $ac_cv_func_mmap_fixed_mapped = yes; then 20491 20492$as_echo "#define HAVE_MMAP 1" >>confdefs.h 20493 20494fi 20495rm -f conftest.mmap conftest.txt 20496 20497composecache_default=$ac_cv_func_mmap_fixed_mapped 20498ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 20499if test "x$ac_cv_func_nl_langinfo" = xyes; then : 20500 20501else 20502 composecache_default=no 20503fi 20504 20505# Check whether --enable-composecache was given. 20506if test "${enable_composecache+set}" = set; then : 20507 enableval=$enable_composecache; COMPOSECACHE=$enableval 20508else 20509 COMPOSECACHE=$composecache_default 20510fi 20511 20512if test x"$COMPOSECACHE" = "xyes"; then 20513 20514$as_echo "#define COMPOSECACHE 1" >>confdefs.h 20515 20516fi 20517 20518# Allow checking code with lint, sparse, etc. 20519 20520 20521 20522 20523 20524# Check whether --with-lint was given. 20525if test "${with_lint+set}" = set; then : 20526 withval=$with_lint; use_lint=$withval 20527else 20528 use_lint=no 20529fi 20530 20531 20532# Obtain platform specific info like program name and options 20533# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20534case $host_os in 20535 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20536 lint_name=splint 20537 lint_options="-badflag" 20538 ;; 20539 *freebsd* | *netbsd*) 20540 lint_name=lint 20541 lint_options="-u -b" 20542 ;; 20543 *solaris*) 20544 lint_name=lint 20545 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20546 ;; 20547esac 20548 20549# Test for the presence of the program (either guessed by the code or spelled out by the user) 20550if test "x$use_lint" = x"yes" ; then 20551 # Extract the first word of "$lint_name", so it can be a program name with args. 20552set dummy $lint_name; ac_word=$2 20553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20554$as_echo_n "checking for $ac_word... " >&6; } 20555if ${ac_cv_path_LINT+:} false; then : 20556 $as_echo_n "(cached) " >&6 20557else 20558 case $LINT in 20559 [\\/]* | ?:[\\/]*) 20560 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20561 ;; 20562 *) 20563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20564for as_dir in $PATH 20565do 20566 IFS=$as_save_IFS 20567 test -z "$as_dir" && as_dir=. 20568 for ac_exec_ext in '' $ac_executable_extensions; do 20569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20570 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 20571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20572 break 2 20573 fi 20574done 20575 done 20576IFS=$as_save_IFS 20577 20578 ;; 20579esac 20580fi 20581LINT=$ac_cv_path_LINT 20582if test -n "$LINT"; then 20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20584$as_echo "$LINT" >&6; } 20585else 20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20587$as_echo "no" >&6; } 20588fi 20589 20590 20591 if test "x$LINT" = "x"; then 20592 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20593 fi 20594elif test "x$use_lint" = x"no" ; then 20595 if test "x$LINT" != "x"; then 20596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20597$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20598 fi 20599else 20600 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20601fi 20602 20603# User supplied flags override default flags 20604if test "x$LINT_FLAGS" != "x"; then 20605 lint_options=$LINT_FLAGS 20606fi 20607 20608LINT_FLAGS=$lint_options 20609 20610 if test "x$LINT" != x; then 20611 LINT_TRUE= 20612 LINT_FALSE='#' 20613else 20614 LINT_TRUE='#' 20615 LINT_FALSE= 20616fi 20617 20618 20619 20620 20621 20622# Check whether --enable-lint-library was given. 20623if test "${enable_lint_library+set}" = set; then : 20624 enableval=$enable_lint_library; make_lint_lib=$enableval 20625else 20626 make_lint_lib=no 20627fi 20628 20629 20630if test "x$make_lint_lib" = x"yes" ; then 20631 LINTLIB=llib-lX11.ln 20632 if test "x$LINT" = "x"; then 20633 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20634 fi 20635elif test "x$make_lint_lib" != x"no" ; then 20636 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20637fi 20638 20639 20640 if test x$make_lint_lib != xno; then 20641 MAKE_LINT_LIB_TRUE= 20642 MAKE_LINT_LIB_FALSE='#' 20643else 20644 MAKE_LINT_LIB_TRUE='#' 20645 MAKE_LINT_LIB_FALSE= 20646fi 20647 20648 20649 20650 20651X11_DATADIR="${datadir}/X11" 20652 20653 prefix_NONE= 20654 exec_prefix_NONE= 20655 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20656 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20657 eval ax_define_dir="\"$X11_DATADIR\"" 20658 eval ax_define_dir="\"$ax_define_dir\"" 20659 X11_DATADIR="$ax_define_dir" 20660 20661 20662cat >>confdefs.h <<_ACEOF 20663#define X11_DATADIR "$ax_define_dir" 20664_ACEOF 20665 20666 test "$prefix_NONE" && prefix=NONE 20667 test "$exec_prefix_NONE" && exec_prefix=NONE 20668 20669 20670 20671X11_LIBDIR="${libdir}/X11" 20672 20673 prefix_NONE= 20674 exec_prefix_NONE= 20675 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20676 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20677 eval ax_define_dir="\"$X11_LIBDIR\"" 20678 eval ax_define_dir="\"$ax_define_dir\"" 20679 X11_LIBDIR="$ax_define_dir" 20680 20681 20682cat >>confdefs.h <<_ACEOF 20683#define X11_LIBDIR "$ax_define_dir" 20684_ACEOF 20685 20686 test "$prefix_NONE" && prefix=NONE 20687 test "$exec_prefix_NONE" && exec_prefix=NONE 20688 20689 20690 20691 20692pkg_failed=no 20693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 20694$as_echo_n "checking for X11... " >&6; } 20695 20696if test -n "$X11_CFLAGS"; then 20697 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 20698 elif test -n "$PKG_CONFIG"; then 20699 if test -n "$PKG_CONFIG" && \ 20700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 20701 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 20702 ac_status=$? 20703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20704 test $ac_status = 0; }; then 20705 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 20706else 20707 pkg_failed=yes 20708fi 20709 else 20710 pkg_failed=untried 20711fi 20712if test -n "$X11_LIBS"; then 20713 pkg_cv_X11_LIBS="$X11_LIBS" 20714 elif test -n "$PKG_CONFIG"; then 20715 if test -n "$PKG_CONFIG" && \ 20716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 20717 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 20718 ac_status=$? 20719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20720 test $ac_status = 0; }; then 20721 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 20722else 20723 pkg_failed=yes 20724fi 20725 else 20726 pkg_failed=untried 20727fi 20728 20729 20730 20731if test $pkg_failed = yes; then 20732 20733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20734 _pkg_short_errors_supported=yes 20735else 20736 _pkg_short_errors_supported=no 20737fi 20738 if test $_pkg_short_errors_supported = yes; then 20739 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1` 20740 else 20741 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1` 20742 fi 20743 # Put the nasty error message in config.log where it belongs 20744 echo "$X11_PKG_ERRORS" >&5 20745 20746 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 20747 20748$X11_PKG_ERRORS 20749 20750Consider adjusting the PKG_CONFIG_PATH environment variable if you 20751installed software in a non-standard prefix. 20752 20753Alternatively, you may set the environment variables X11_CFLAGS 20754and X11_LIBS to avoid the need to call pkg-config. 20755See the pkg-config man page for more details. 20756" "$LINENO" 5 20757elif test $pkg_failed = untried; then 20758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20760as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20761is in your PATH or set the PKG_CONFIG environment variable to the full 20762path to pkg-config. 20763 20764Alternatively, you may set the environment variables X11_CFLAGS 20765and X11_LIBS to avoid the need to call pkg-config. 20766See the pkg-config man page for more details. 20767 20768To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20769See \`config.log' for more details" "$LINENO" 5; } 20770else 20771 X11_CFLAGS=$pkg_cv_X11_CFLAGS 20772 X11_LIBS=$pkg_cv_X11_LIBS 20773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20774$as_echo "yes" >&6; } 20775 : 20776fi 20777X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 20778 20779# 20780# Yes, it would be nice to put the locale data in 20781# /usr/share, but the locale stuff includes loadable 20782# libraries which must be located in the same directory 20783# as the other locale data, so for now, everything lives 20784# in ${libdir} 20785# 20786 20787X11_LOCALEDATADIR="${X11_DATADIR}/locale" 20788 20789 prefix_NONE= 20790 exec_prefix_NONE= 20791 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20792 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20793 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 20794 eval ax_define_dir="\"$ax_define_dir\"" 20795 XLOCALEDATADIR="$ax_define_dir" 20796 20797 20798cat >>confdefs.h <<_ACEOF 20799#define XLOCALEDATADIR "$ax_define_dir" 20800_ACEOF 20801 20802 test "$prefix_NONE" && prefix=NONE 20803 test "$exec_prefix_NONE" && exec_prefix=NONE 20804 20805 20806 20807 20808# Check whether --with-locale-lib-dir was given. 20809if test "${with_locale_lib_dir+set}" = set; then : 20810 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 20811else 20812 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 20813fi 20814 20815 20816 prefix_NONE= 20817 exec_prefix_NONE= 20818 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20819 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20820 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 20821 eval ax_define_dir="\"$ax_define_dir\"" 20822 XLOCALELIBDIR="$ax_define_dir" 20823 20824 20825cat >>confdefs.h <<_ACEOF 20826#define XLOCALELIBDIR "$ax_define_dir" 20827_ACEOF 20828 20829 test "$prefix_NONE" && prefix=NONE 20830 test "$exec_prefix_NONE" && exec_prefix=NONE 20831 20832 20833 20834X11_LOCALEDIR="${X11_LOCALEDATADIR}" 20835 20836 prefix_NONE= 20837 exec_prefix_NONE= 20838 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20839 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20840 eval ax_define_dir="\"$X11_LOCALEDIR\"" 20841 eval ax_define_dir="\"$ax_define_dir\"" 20842 XLOCALEDIR="$ax_define_dir" 20843 20844 20845cat >>confdefs.h <<_ACEOF 20846#define XLOCALEDIR "$ax_define_dir" 20847_ACEOF 20848 20849 test "$prefix_NONE" && prefix=NONE 20850 test "$exec_prefix_NONE" && exec_prefix=NONE 20851 20852 20853 20854locales="\ 20855 am_ET.UTF-8 armscii-8 C el_GR.UTF-8 en_US.UTF-8 fi_FI.UTF-8 \ 20856 georgian-academy georgian-ps ibm-cp1133 iscii-dev isiri-3342 \ 20857 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 iso8859-15 \ 20858 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 iso8859-7 \ 20859 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS ja_JP.UTF-8\ 20860 ja.SJIS ko koi8-c koi8-r \ 20861 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \ 20862 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 ru_RU.UTF-8 \ 20863 tatar-cyr th_TH th_TH.UTF-8 tscii-0 vi_VN.tcvn vi_VN.viscii \ 20864 zh_CN zh_CN.gb18030 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 \ 20865 zh_HK.big5hkscs zh_HK.UTF-8 zh_TW zh_TW.big5 zh_TW.UTF-8" 20866 20867 20868XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 20869 20870 prefix_NONE= 20871 exec_prefix_NONE= 20872 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20873 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20874 eval ax_define_dir="\"$XKEYSYMDB\"" 20875 eval ax_define_dir="\"$ax_define_dir\"" 20876 XKEYSYMDB="$ax_define_dir" 20877 20878 20879cat >>confdefs.h <<_ACEOF 20880#define XKEYSYMDB "$ax_define_dir" 20881_ACEOF 20882 20883 test "$prefix_NONE" && prefix=NONE 20884 test "$exec_prefix_NONE" && exec_prefix=NONE 20885 20886 20887XERRORDB="${X11_DATADIR}/XErrorDB" 20888 20889 prefix_NONE= 20890 exec_prefix_NONE= 20891 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20892 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20893 eval ax_define_dir="\"$XERRORDB\"" 20894 eval ax_define_dir="\"$ax_define_dir\"" 20895 XERRORDB="$ax_define_dir" 20896 20897 20898cat >>confdefs.h <<_ACEOF 20899#define XERRORDB "$ax_define_dir" 20900_ACEOF 20901 20902 test "$prefix_NONE" && prefix=NONE 20903 test "$exec_prefix_NONE" && exec_prefix=NONE 20904 20905 20906 20907# Check whether --enable-malloc0returnsnull was given. 20908if test "${enable_malloc0returnsnull+set}" = set; then : 20909 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20910else 20911 MALLOC_ZERO_RETURNS_NULL=auto 20912fi 20913 20914 20915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 20916$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 20917if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20918 if test "$cross_compiling" = yes; then : 20919 MALLOC_ZERO_RETURNS_NULL=yes 20920else 20921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20922/* end confdefs.h. */ 20923 20924#include <stdlib.h> 20925 20926int 20927main () 20928{ 20929 20930 char *m0, *r0, *c0, *p; 20931 m0 = malloc(0); 20932 p = malloc(10); 20933 r0 = realloc(p,0); 20934 c0 = calloc(0,10); 20935 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 20936 20937 ; 20938 return 0; 20939} 20940_ACEOF 20941if ac_fn_c_try_run "$LINENO"; then : 20942 MALLOC_ZERO_RETURNS_NULL=yes 20943else 20944 MALLOC_ZERO_RETURNS_NULL=no 20945fi 20946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20947 conftest.$ac_objext conftest.beam conftest.$ac_ext 20948fi 20949 20950fi 20951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20952$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20953 20954if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20955 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20956 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20957 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20958else 20959 MALLOC_ZERO_CFLAGS="" 20960 XMALLOC_ZERO_CFLAGS="" 20961 XTMALLOC_ZERO_CFLAGS="" 20962fi 20963 20964 20965 20966 20967 20968 20969ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc" 20970 20971cat >confcache <<\_ACEOF 20972# This file is a shell script that caches the results of configure 20973# tests run on this system so they can be shared between configure 20974# scripts and configure runs, see configure's option --config-cache. 20975# It is not useful on other systems. If it contains results you don't 20976# want to keep, you may remove or edit it. 20977# 20978# config.status only pays attention to the cache file if you give it 20979# the --recheck option to rerun configure. 20980# 20981# `ac_cv_env_foo' variables (set or unset) will be overridden when 20982# loading this file, other *unset* `ac_cv_foo' will be assigned the 20983# following values. 20984 20985_ACEOF 20986 20987# The following way of writing the cache mishandles newlines in values, 20988# but we know of no workaround that is simple, portable, and efficient. 20989# So, we kill variables containing newlines. 20990# Ultrix sh set writes to stderr and can't be redirected directly, 20991# and sets the high bit in the cache file unless we assign to the vars. 20992( 20993 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20994 eval ac_val=\$$ac_var 20995 case $ac_val in #( 20996 *${as_nl}*) 20997 case $ac_var in #( 20998 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20999$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21000 esac 21001 case $ac_var in #( 21002 _ | IFS | as_nl) ;; #( 21003 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21004 *) { eval $ac_var=; unset $ac_var;} ;; 21005 esac ;; 21006 esac 21007 done 21008 21009 (set) 2>&1 | 21010 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21011 *${as_nl}ac_space=\ *) 21012 # `set' does not quote correctly, so add quotes: double-quote 21013 # substitution turns \\\\ into \\, and sed turns \\ into \. 21014 sed -n \ 21015 "s/'/'\\\\''/g; 21016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21017 ;; #( 21018 *) 21019 # `set' quotes correctly as required by POSIX, so do not add quotes. 21020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21021 ;; 21022 esac | 21023 sort 21024) | 21025 sed ' 21026 /^ac_cv_env_/b end 21027 t clear 21028 :clear 21029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21030 t end 21031 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21032 :end' >>confcache 21033if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21034 if test -w "$cache_file"; then 21035 if test "x$cache_file" != "x/dev/null"; then 21036 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21037$as_echo "$as_me: updating cache $cache_file" >&6;} 21038 if test ! -f "$cache_file" || test -h "$cache_file"; then 21039 cat confcache >"$cache_file" 21040 else 21041 case $cache_file in #( 21042 */* | ?:*) 21043 mv -f confcache "$cache_file"$$ && 21044 mv -f "$cache_file"$$ "$cache_file" ;; #( 21045 *) 21046 mv -f confcache "$cache_file" ;; 21047 esac 21048 fi 21049 fi 21050 else 21051 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21052$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21053 fi 21054fi 21055rm -f confcache 21056 21057test "x$prefix" = xNONE && prefix=$ac_default_prefix 21058# Let make expand exec_prefix. 21059test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21060 21061DEFS=-DHAVE_CONFIG_H 21062 21063ac_libobjs= 21064ac_ltlibobjs= 21065U= 21066for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21067 # 1. Remove the extension, and $U if already installed. 21068 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21069 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21071 # will be set to the directory where LIBOBJS objects are built. 21072 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21073 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21074done 21075LIBOBJS=$ac_libobjs 21076 21077LTLIBOBJS=$ac_ltlibobjs 21078 21079 21080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21081$as_echo_n "checking that generated files are newer than configure... " >&6; } 21082 if test -n "$am_sleep_pid"; then 21083 # Hide warnings about reused PIDs. 21084 wait $am_sleep_pid 2>/dev/null 21085 fi 21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21087$as_echo "done" >&6; } 21088if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21089 as_fn_error $? "conditional \"AMDEP\" was never defined. 21090Usually this means the macro was only invoked conditionally." "$LINENO" 5 21091fi 21092if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21093 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21094Usually this means the macro was only invoked conditionally." "$LINENO" 5 21095fi 21096 if test -n "$EXEEXT"; then 21097 am__EXEEXT_TRUE= 21098 am__EXEEXT_FALSE='#' 21099else 21100 am__EXEEXT_TRUE='#' 21101 am__EXEEXT_FALSE= 21102fi 21103 21104if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21105 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21106Usually this means the macro was only invoked conditionally." "$LINENO" 5 21107fi 21108if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21109 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21110Usually this means the macro was only invoked conditionally." "$LINENO" 5 21111fi 21112if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21113 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21114Usually this means the macro was only invoked conditionally." "$LINENO" 5 21115fi 21116if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21117 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21118Usually this means the macro was only invoked conditionally." "$LINENO" 5 21119fi 21120if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21121 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21122Usually this means the macro was only invoked conditionally." "$LINENO" 5 21123fi 21124if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21125 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21126Usually this means the macro was only invoked conditionally." "$LINENO" 5 21127fi 21128if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 21129 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 21130Usually this means the macro was only invoked conditionally." "$LINENO" 5 21131fi 21132if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 21133 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 21134Usually this means the macro was only invoked conditionally." "$LINENO" 5 21135fi 21136if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 21137 as_fn_error $? "conditional \"OS2\" was never defined. 21138Usually this means the macro was only invoked conditionally." "$LINENO" 5 21139fi 21140if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 21141 as_fn_error $? "conditional \"THRSTUBS\" was never defined. 21142Usually this means the macro was only invoked conditionally." "$LINENO" 5 21143fi 21144if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then 21145 as_fn_error $? "conditional \"UDC\" was never defined. 21146Usually this means the macro was only invoked conditionally." "$LINENO" 5 21147fi 21148if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 21149 as_fn_error $? "conditional \"XCMS\" was never defined. 21150Usually this means the macro was only invoked conditionally." "$LINENO" 5 21151fi 21152if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 21153 as_fn_error $? "conditional \"XLOCALE\" was never defined. 21154Usually this means the macro was only invoked conditionally." "$LINENO" 5 21155fi 21156if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 21157 as_fn_error $? "conditional \"XKB\" was never defined. 21158Usually this means the macro was only invoked conditionally." "$LINENO" 5 21159fi 21160if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21161 as_fn_error $? "conditional \"LINT\" was never defined. 21162Usually this means the macro was only invoked conditionally." "$LINENO" 5 21163fi 21164if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21165 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21166Usually this means the macro was only invoked conditionally." "$LINENO" 5 21167fi 21168 21169: "${CONFIG_STATUS=./config.status}" 21170ac_write_fail=0 21171ac_clean_files_save=$ac_clean_files 21172ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21173{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21175as_write_fail=0 21176cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21177#! $SHELL 21178# Generated by $as_me. 21179# Run this file to recreate the current configuration. 21180# Compiler output produced by configure, useful for debugging 21181# configure, is in config.log if it exists. 21182 21183debug=false 21184ac_cs_recheck=false 21185ac_cs_silent=false 21186 21187SHELL=\${CONFIG_SHELL-$SHELL} 21188export SHELL 21189_ASEOF 21190cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21191## -------------------- ## 21192## M4sh Initialization. ## 21193## -------------------- ## 21194 21195# Be more Bourne compatible 21196DUALCASE=1; export DUALCASE # for MKS sh 21197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21198 emulate sh 21199 NULLCMD=: 21200 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21201 # is contrary to our usage. Disable this feature. 21202 alias -g '${1+"$@"}'='"$@"' 21203 setopt NO_GLOB_SUBST 21204else 21205 case `(set -o) 2>/dev/null` in #( 21206 *posix*) : 21207 set -o posix ;; #( 21208 *) : 21209 ;; 21210esac 21211fi 21212 21213 21214as_nl=' 21215' 21216export as_nl 21217# Printing a long string crashes Solaris 7 /usr/bin/printf. 21218as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21221# Prefer a ksh shell builtin over an external printf program on Solaris, 21222# but without wasting forks for bash or zsh. 21223if test -z "$BASH_VERSION$ZSH_VERSION" \ 21224 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21225 as_echo='print -r --' 21226 as_echo_n='print -rn --' 21227elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21228 as_echo='printf %s\n' 21229 as_echo_n='printf %s' 21230else 21231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21233 as_echo_n='/usr/ucb/echo -n' 21234 else 21235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21236 as_echo_n_body='eval 21237 arg=$1; 21238 case $arg in #( 21239 *"$as_nl"*) 21240 expr "X$arg" : "X\\(.*\\)$as_nl"; 21241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21242 esac; 21243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21244 ' 21245 export as_echo_n_body 21246 as_echo_n='sh -c $as_echo_n_body as_echo' 21247 fi 21248 export as_echo_body 21249 as_echo='sh -c $as_echo_body as_echo' 21250fi 21251 21252# The user is always right. 21253if test "${PATH_SEPARATOR+set}" != set; then 21254 PATH_SEPARATOR=: 21255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21257 PATH_SEPARATOR=';' 21258 } 21259fi 21260 21261 21262# IFS 21263# We need space, tab and new line, in precisely that order. Quoting is 21264# there to prevent editors from complaining about space-tab. 21265# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21266# splitting by setting IFS to empty value.) 21267IFS=" "" $as_nl" 21268 21269# Find who we are. Look in the path if we contain no directory separator. 21270as_myself= 21271case $0 in #(( 21272 *[\\/]* ) as_myself=$0 ;; 21273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21274for as_dir in $PATH 21275do 21276 IFS=$as_save_IFS 21277 test -z "$as_dir" && as_dir=. 21278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21279 done 21280IFS=$as_save_IFS 21281 21282 ;; 21283esac 21284# We did not find ourselves, most probably we were run as `sh COMMAND' 21285# in which case we are not to be found in the path. 21286if test "x$as_myself" = x; then 21287 as_myself=$0 21288fi 21289if test ! -f "$as_myself"; then 21290 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21291 exit 1 21292fi 21293 21294# Unset variables that we do not need and which cause bugs (e.g. in 21295# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21296# suppresses any "Segmentation fault" message there. '((' could 21297# trigger a bug in pdksh 5.2.14. 21298for as_var in BASH_ENV ENV MAIL MAILPATH 21299do eval test x\${$as_var+set} = xset \ 21300 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21301done 21302PS1='$ ' 21303PS2='> ' 21304PS4='+ ' 21305 21306# NLS nuisances. 21307LC_ALL=C 21308export LC_ALL 21309LANGUAGE=C 21310export LANGUAGE 21311 21312# CDPATH. 21313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21314 21315 21316# as_fn_error STATUS ERROR [LINENO LOG_FD] 21317# ---------------------------------------- 21318# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21319# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21320# script with STATUS, using 1 if that was 0. 21321as_fn_error () 21322{ 21323 as_status=$1; test $as_status -eq 0 && as_status=1 21324 if test "$4"; then 21325 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21326 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21327 fi 21328 $as_echo "$as_me: error: $2" >&2 21329 as_fn_exit $as_status 21330} # as_fn_error 21331 21332 21333# as_fn_set_status STATUS 21334# ----------------------- 21335# Set $? to STATUS, without forking. 21336as_fn_set_status () 21337{ 21338 return $1 21339} # as_fn_set_status 21340 21341# as_fn_exit STATUS 21342# ----------------- 21343# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21344as_fn_exit () 21345{ 21346 set +e 21347 as_fn_set_status $1 21348 exit $1 21349} # as_fn_exit 21350 21351# as_fn_unset VAR 21352# --------------- 21353# Portably unset VAR. 21354as_fn_unset () 21355{ 21356 { eval $1=; unset $1;} 21357} 21358as_unset=as_fn_unset 21359# as_fn_append VAR VALUE 21360# ---------------------- 21361# Append the text in VALUE to the end of the definition contained in VAR. Take 21362# advantage of any shell optimizations that allow amortized linear growth over 21363# repeated appends, instead of the typical quadratic growth present in naive 21364# implementations. 21365if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21366 eval 'as_fn_append () 21367 { 21368 eval $1+=\$2 21369 }' 21370else 21371 as_fn_append () 21372 { 21373 eval $1=\$$1\$2 21374 } 21375fi # as_fn_append 21376 21377# as_fn_arith ARG... 21378# ------------------ 21379# Perform arithmetic evaluation on the ARGs, and store the result in the 21380# global $as_val. Take advantage of shells that can avoid forks. The arguments 21381# must be portable across $(()) and expr. 21382if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21383 eval 'as_fn_arith () 21384 { 21385 as_val=$(( $* )) 21386 }' 21387else 21388 as_fn_arith () 21389 { 21390 as_val=`expr "$@" || test $? -eq 1` 21391 } 21392fi # as_fn_arith 21393 21394 21395if expr a : '\(a\)' >/dev/null 2>&1 && 21396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21397 as_expr=expr 21398else 21399 as_expr=false 21400fi 21401 21402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21403 as_basename=basename 21404else 21405 as_basename=false 21406fi 21407 21408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21409 as_dirname=dirname 21410else 21411 as_dirname=false 21412fi 21413 21414as_me=`$as_basename -- "$0" || 21415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21416 X"$0" : 'X\(//\)$' \| \ 21417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21418$as_echo X/"$0" | 21419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21420 s//\1/ 21421 q 21422 } 21423 /^X\/\(\/\/\)$/{ 21424 s//\1/ 21425 q 21426 } 21427 /^X\/\(\/\).*/{ 21428 s//\1/ 21429 q 21430 } 21431 s/.*/./; q'` 21432 21433# Avoid depending upon Character Ranges. 21434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21437as_cr_digits='0123456789' 21438as_cr_alnum=$as_cr_Letters$as_cr_digits 21439 21440ECHO_C= ECHO_N= ECHO_T= 21441case `echo -n x` in #((((( 21442-n*) 21443 case `echo 'xy\c'` in 21444 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21445 xy) ECHO_C='\c';; 21446 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21447 ECHO_T=' ';; 21448 esac;; 21449*) 21450 ECHO_N='-n';; 21451esac 21452 21453rm -f conf$$ conf$$.exe conf$$.file 21454if test -d conf$$.dir; then 21455 rm -f conf$$.dir/conf$$.file 21456else 21457 rm -f conf$$.dir 21458 mkdir conf$$.dir 2>/dev/null 21459fi 21460if (echo >conf$$.file) 2>/dev/null; then 21461 if ln -s conf$$.file conf$$ 2>/dev/null; then 21462 as_ln_s='ln -s' 21463 # ... but there are two gotchas: 21464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21466 # In both cases, we have to default to `cp -p'. 21467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21468 as_ln_s='cp -p' 21469 elif ln conf$$.file conf$$ 2>/dev/null; then 21470 as_ln_s=ln 21471 else 21472 as_ln_s='cp -p' 21473 fi 21474else 21475 as_ln_s='cp -p' 21476fi 21477rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21478rmdir conf$$.dir 2>/dev/null 21479 21480 21481# as_fn_mkdir_p 21482# ------------- 21483# Create "$as_dir" as a directory, including parents if necessary. 21484as_fn_mkdir_p () 21485{ 21486 21487 case $as_dir in #( 21488 -*) as_dir=./$as_dir;; 21489 esac 21490 test -d "$as_dir" || eval $as_mkdir_p || { 21491 as_dirs= 21492 while :; do 21493 case $as_dir in #( 21494 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21495 *) as_qdir=$as_dir;; 21496 esac 21497 as_dirs="'$as_qdir' $as_dirs" 21498 as_dir=`$as_dirname -- "$as_dir" || 21499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21500 X"$as_dir" : 'X\(//\)[^/]' \| \ 21501 X"$as_dir" : 'X\(//\)$' \| \ 21502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21503$as_echo X"$as_dir" | 21504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21505 s//\1/ 21506 q 21507 } 21508 /^X\(\/\/\)[^/].*/{ 21509 s//\1/ 21510 q 21511 } 21512 /^X\(\/\/\)$/{ 21513 s//\1/ 21514 q 21515 } 21516 /^X\(\/\).*/{ 21517 s//\1/ 21518 q 21519 } 21520 s/.*/./; q'` 21521 test -d "$as_dir" && break 21522 done 21523 test -z "$as_dirs" || eval "mkdir $as_dirs" 21524 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21525 21526 21527} # as_fn_mkdir_p 21528if mkdir -p . 2>/dev/null; then 21529 as_mkdir_p='mkdir -p "$as_dir"' 21530else 21531 test -d ./-p && rmdir ./-p 21532 as_mkdir_p=false 21533fi 21534 21535if test -x / >/dev/null 2>&1; then 21536 as_test_x='test -x' 21537else 21538 if ls -dL / >/dev/null 2>&1; then 21539 as_ls_L_option=L 21540 else 21541 as_ls_L_option= 21542 fi 21543 as_test_x=' 21544 eval sh -c '\'' 21545 if test -d "$1"; then 21546 test -d "$1/."; 21547 else 21548 case $1 in #( 21549 -*)set "./$1";; 21550 esac; 21551 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 21552 ???[sx]*):;;*)false;;esac;fi 21553 '\'' sh 21554 ' 21555fi 21556as_executable_p=$as_test_x 21557 21558# Sed expression to map a string onto a valid CPP name. 21559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21560 21561# Sed expression to map a string onto a valid variable name. 21562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21563 21564 21565exec 6>&1 21566## ----------------------------------- ## 21567## Main body of $CONFIG_STATUS script. ## 21568## ----------------------------------- ## 21569_ASEOF 21570test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21571 21572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21573# Save the log message, to keep $0 and so on meaningful, and to 21574# report actual input values of CONFIG_FILES etc. instead of their 21575# values after options handling. 21576ac_log=" 21577This file was extended by libX11 $as_me 1.6.0, which was 21578generated by GNU Autoconf 2.68. Invocation command line was 21579 21580 CONFIG_FILES = $CONFIG_FILES 21581 CONFIG_HEADERS = $CONFIG_HEADERS 21582 CONFIG_LINKS = $CONFIG_LINKS 21583 CONFIG_COMMANDS = $CONFIG_COMMANDS 21584 $ $0 $@ 21585 21586on `(hostname || uname -n) 2>/dev/null | sed 1q` 21587" 21588 21589_ACEOF 21590 21591case $ac_config_files in *" 21592"*) set x $ac_config_files; shift; ac_config_files=$*;; 21593esac 21594 21595case $ac_config_headers in *" 21596"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21597esac 21598 21599 21600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21601# Files that config.status was made for. 21602config_files="$ac_config_files" 21603config_headers="$ac_config_headers" 21604config_commands="$ac_config_commands" 21605 21606_ACEOF 21607 21608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21609ac_cs_usage="\ 21610\`$as_me' instantiates files and other configuration actions 21611from templates according to the current configuration. Unless the files 21612and actions are specified as TAGs, all are instantiated by default. 21613 21614Usage: $0 [OPTION]... [TAG]... 21615 21616 -h, --help print this help, then exit 21617 -V, --version print version number and configuration settings, then exit 21618 --config print configuration, then exit 21619 -q, --quiet, --silent 21620 do not print progress messages 21621 -d, --debug don't remove temporary files 21622 --recheck update $as_me by reconfiguring in the same conditions 21623 --file=FILE[:TEMPLATE] 21624 instantiate the configuration file FILE 21625 --header=FILE[:TEMPLATE] 21626 instantiate the configuration header FILE 21627 21628Configuration files: 21629$config_files 21630 21631Configuration headers: 21632$config_headers 21633 21634Configuration commands: 21635$config_commands 21636 21637Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 21638 21639_ACEOF 21640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21641ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21642ac_cs_version="\\ 21643libX11 config.status 1.6.0 21644configured by $0, generated by GNU Autoconf 2.68, 21645 with options \\"\$ac_cs_config\\" 21646 21647Copyright (C) 2010 Free Software Foundation, Inc. 21648This config.status script is free software; the Free Software Foundation 21649gives unlimited permission to copy, distribute and modify it." 21650 21651ac_pwd='$ac_pwd' 21652srcdir='$srcdir' 21653INSTALL='$INSTALL' 21654MKDIR_P='$MKDIR_P' 21655AWK='$AWK' 21656test -n "\$AWK" || AWK=awk 21657_ACEOF 21658 21659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21660# The default lists apply if the user does not specify any file. 21661ac_need_defaults=: 21662while test $# != 0 21663do 21664 case $1 in 21665 --*=?*) 21666 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21667 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21668 ac_shift=: 21669 ;; 21670 --*=) 21671 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21672 ac_optarg= 21673 ac_shift=: 21674 ;; 21675 *) 21676 ac_option=$1 21677 ac_optarg=$2 21678 ac_shift=shift 21679 ;; 21680 esac 21681 21682 case $ac_option in 21683 # Handling of the options. 21684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21685 ac_cs_recheck=: ;; 21686 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21687 $as_echo "$ac_cs_version"; exit ;; 21688 --config | --confi | --conf | --con | --co | --c ) 21689 $as_echo "$ac_cs_config"; exit ;; 21690 --debug | --debu | --deb | --de | --d | -d ) 21691 debug=: ;; 21692 --file | --fil | --fi | --f ) 21693 $ac_shift 21694 case $ac_optarg in 21695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21696 '') as_fn_error $? "missing file argument" ;; 21697 esac 21698 as_fn_append CONFIG_FILES " '$ac_optarg'" 21699 ac_need_defaults=false;; 21700 --header | --heade | --head | --hea ) 21701 $ac_shift 21702 case $ac_optarg in 21703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21704 esac 21705 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21706 ac_need_defaults=false;; 21707 --he | --h) 21708 # Conflict between --help and --header 21709 as_fn_error $? "ambiguous option: \`$1' 21710Try \`$0 --help' for more information.";; 21711 --help | --hel | -h ) 21712 $as_echo "$ac_cs_usage"; exit ;; 21713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21714 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21715 ac_cs_silent=: ;; 21716 21717 # This is an error. 21718 -*) as_fn_error $? "unrecognized option: \`$1' 21719Try \`$0 --help' for more information." ;; 21720 21721 *) as_fn_append ac_config_targets " $1" 21722 ac_need_defaults=false ;; 21723 21724 esac 21725 shift 21726done 21727 21728ac_configure_extra_args= 21729 21730if $ac_cs_silent; then 21731 exec 6>/dev/null 21732 ac_configure_extra_args="$ac_configure_extra_args --silent" 21733fi 21734 21735_ACEOF 21736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21737if \$ac_cs_recheck; then 21738 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21739 shift 21740 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21741 CONFIG_SHELL='$SHELL' 21742 export CONFIG_SHELL 21743 exec "\$@" 21744fi 21745 21746_ACEOF 21747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21748exec 5>>config.log 21749{ 21750 echo 21751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21752## Running $as_me. ## 21753_ASBOX 21754 $as_echo "$ac_log" 21755} >&5 21756 21757_ACEOF 21758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21759# 21760# INIT-COMMANDS 21761# 21762AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21763 21764 21765# The HP-UX ksh and POSIX shell print the target directory to stdout 21766# if CDPATH is set. 21767(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21768 21769sed_quote_subst='$sed_quote_subst' 21770double_quote_subst='$double_quote_subst' 21771delay_variable_subst='$delay_variable_subst' 21772macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21773macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21774enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21775enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21776pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21777enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21778SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21779ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21780PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21781host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21782host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21783host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21784build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21785build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21786build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21787SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21788Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21789GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21790EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21791FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21792LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21793NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21794LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21795max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21796ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21797exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21798lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21799lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21800lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21801lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21802lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21803reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21804reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21805OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21806deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21807file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21808file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21809want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21810DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21811sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21812AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21813AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21814archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21815STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21816RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21817old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21818old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21819old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21820lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21821CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21822CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21823compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21824GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21825lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21826lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21827lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21828lt_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"`' 21829nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21830lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21831objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21832MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21833lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21834lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21835lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21836lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21837lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21838need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21839MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21840DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21841NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21842LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21843OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21844OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21845libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21846shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21847extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21848archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21849enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21850export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21851whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21852compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21853old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21854old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21855archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21856archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21857module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21858module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21859with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21860allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21861no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21862hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21863hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21864hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21865hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21866hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21867hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21868hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21869inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21870link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21871always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21872export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21873exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21874include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21875prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21876postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21877file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21878variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21879need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21880need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21881version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21882runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21883shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21884shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21885libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21886library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21887soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21888install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21889postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21890postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21891finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21892finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21893hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21894sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21895sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21896hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21897enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21898enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21899enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21900old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21901striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21902 21903LTCC='$LTCC' 21904LTCFLAGS='$LTCFLAGS' 21905compiler='$compiler_DEFAULT' 21906 21907# A function that is used when there is no print builtin or printf. 21908func_fallback_echo () 21909{ 21910 eval 'cat <<_LTECHO_EOF 21911\$1 21912_LTECHO_EOF' 21913} 21914 21915# Quote evaled strings. 21916for var in SHELL \ 21917ECHO \ 21918PATH_SEPARATOR \ 21919SED \ 21920GREP \ 21921EGREP \ 21922FGREP \ 21923LD \ 21924NM \ 21925LN_S \ 21926lt_SP2NL \ 21927lt_NL2SP \ 21928reload_flag \ 21929OBJDUMP \ 21930deplibs_check_method \ 21931file_magic_cmd \ 21932file_magic_glob \ 21933want_nocaseglob \ 21934DLLTOOL \ 21935sharedlib_from_linklib_cmd \ 21936AR \ 21937AR_FLAGS \ 21938archiver_list_spec \ 21939STRIP \ 21940RANLIB \ 21941CC \ 21942CFLAGS \ 21943compiler \ 21944lt_cv_sys_global_symbol_pipe \ 21945lt_cv_sys_global_symbol_to_cdecl \ 21946lt_cv_sys_global_symbol_to_c_name_address \ 21947lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21948nm_file_list_spec \ 21949lt_prog_compiler_no_builtin_flag \ 21950lt_prog_compiler_pic \ 21951lt_prog_compiler_wl \ 21952lt_prog_compiler_static \ 21953lt_cv_prog_compiler_c_o \ 21954need_locks \ 21955MANIFEST_TOOL \ 21956DSYMUTIL \ 21957NMEDIT \ 21958LIPO \ 21959OTOOL \ 21960OTOOL64 \ 21961shrext_cmds \ 21962export_dynamic_flag_spec \ 21963whole_archive_flag_spec \ 21964compiler_needs_object \ 21965with_gnu_ld \ 21966allow_undefined_flag \ 21967no_undefined_flag \ 21968hardcode_libdir_flag_spec \ 21969hardcode_libdir_separator \ 21970exclude_expsyms \ 21971include_expsyms \ 21972file_list_spec \ 21973variables_saved_for_relink \ 21974libname_spec \ 21975library_names_spec \ 21976soname_spec \ 21977install_override_mode \ 21978finish_eval \ 21979old_striplib \ 21980striplib; do 21981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21982 *[\\\\\\\`\\"\\\$]*) 21983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 21984 ;; 21985 *) 21986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21987 ;; 21988 esac 21989done 21990 21991# Double-quote double-evaled strings. 21992for var in reload_cmds \ 21993old_postinstall_cmds \ 21994old_postuninstall_cmds \ 21995old_archive_cmds \ 21996extract_expsyms_cmds \ 21997old_archive_from_new_cmds \ 21998old_archive_from_expsyms_cmds \ 21999archive_cmds \ 22000archive_expsym_cmds \ 22001module_cmds \ 22002module_expsym_cmds \ 22003export_symbols_cmds \ 22004prelink_cmds \ 22005postlink_cmds \ 22006postinstall_cmds \ 22007postuninstall_cmds \ 22008finish_cmds \ 22009sys_lib_search_path_spec \ 22010sys_lib_dlsearch_path_spec; do 22011 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22012 *[\\\\\\\`\\"\\\$]*) 22013 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22014 ;; 22015 *) 22016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22017 ;; 22018 esac 22019done 22020 22021ac_aux_dir='$ac_aux_dir' 22022xsi_shell='$xsi_shell' 22023lt_shell_append='$lt_shell_append' 22024 22025# See if we are running on zsh, and set the options which allow our 22026# commands through without removal of \ escapes INIT. 22027if test -n "\${ZSH_VERSION+set}" ; then 22028 setopt NO_GLOB_SUBST 22029fi 22030 22031 22032 PACKAGE='$PACKAGE' 22033 VERSION='$VERSION' 22034 TIMESTAMP='$TIMESTAMP' 22035 RM='$RM' 22036 ofile='$ofile' 22037 22038 22039 22040 22041_ACEOF 22042 22043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22044 22045# Handling of arguments. 22046for ac_config_target in $ac_config_targets 22047do 22048 case $ac_config_target in 22049 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22050 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 22051 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22052 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22054 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22055 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22056 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 22057 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22058 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 22059 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 22060 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 22061 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 22062 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 22063 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 22064 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 22065 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 22066 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 22067 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 22068 "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;; 22069 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 22070 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 22071 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 22072 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 22073 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22074 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 22075 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 22076 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 22077 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 22078 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 22079 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 22080 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 22081 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 22082 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 22083 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 22084 22085 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22086 esac 22087done 22088 22089 22090# If the user did not use the arguments to specify the items to instantiate, 22091# then the envvar interface is used. Set only those that are not. 22092# We use the long form for the default assignment because of an extremely 22093# bizarre bug on SunOS 4.1.3. 22094if $ac_need_defaults; then 22095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22097 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22098fi 22099 22100# Have a temporary directory for convenience. Make it in the build tree 22101# simply because there is no reason against having it here, and in addition, 22102# creating and moving files from /tmp can sometimes cause problems. 22103# Hook for its removal unless debugging. 22104# Note that there is a small window in which the directory will not be cleaned: 22105# after its creation but before its name has been assigned to `$tmp'. 22106$debug || 22107{ 22108 tmp= ac_tmp= 22109 trap 'exit_status=$? 22110 : "${ac_tmp:=$tmp}" 22111 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22112' 0 22113 trap 'as_fn_exit 1' 1 2 13 15 22114} 22115# Create a (secure) tmp directory for tmp files. 22116 22117{ 22118 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22119 test -d "$tmp" 22120} || 22121{ 22122 tmp=./conf$$-$RANDOM 22123 (umask 077 && mkdir "$tmp") 22124} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22125ac_tmp=$tmp 22126 22127# Set up the scripts for CONFIG_FILES section. 22128# No need to generate them if there are no CONFIG_FILES. 22129# This happens for instance with `./config.status config.h'. 22130if test -n "$CONFIG_FILES"; then 22131 22132 22133ac_cr=`echo X | tr X '\015'` 22134# On cygwin, bash can eat \r inside `` if the user requested igncr. 22135# But we know of no other shell where ac_cr would be empty at this 22136# point, so we can use a bashism as a fallback. 22137if test "x$ac_cr" = x; then 22138 eval ac_cr=\$\'\\r\' 22139fi 22140ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22141if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22142 ac_cs_awk_cr='\\r' 22143else 22144 ac_cs_awk_cr=$ac_cr 22145fi 22146 22147echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22148_ACEOF 22149 22150 22151{ 22152 echo "cat >conf$$subs.awk <<_ACEOF" && 22153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22154 echo "_ACEOF" 22155} >conf$$subs.sh || 22156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22157ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22158ac_delim='%!_!# ' 22159for ac_last_try in false false false false false :; do 22160 . ./conf$$subs.sh || 22161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22162 22163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22164 if test $ac_delim_n = $ac_delim_num; then 22165 break 22166 elif $ac_last_try; then 22167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22168 else 22169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22170 fi 22171done 22172rm -f conf$$subs.sh 22173 22174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22175cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22176_ACEOF 22177sed -n ' 22178h 22179s/^/S["/; s/!.*/"]=/ 22180p 22181g 22182s/^[^!]*!// 22183:repl 22184t repl 22185s/'"$ac_delim"'$// 22186t delim 22187:nl 22188h 22189s/\(.\{148\}\)..*/\1/ 22190t more1 22191s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22192p 22193n 22194b repl 22195:more1 22196s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22197p 22198g 22199s/.\{148\}// 22200t nl 22201:delim 22202h 22203s/\(.\{148\}\)..*/\1/ 22204t more2 22205s/["\\]/\\&/g; s/^/"/; s/$/"/ 22206p 22207b 22208:more2 22209s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22210p 22211g 22212s/.\{148\}// 22213t delim 22214' <conf$$subs.awk | sed ' 22215/^[^""]/{ 22216 N 22217 s/\n// 22218} 22219' >>$CONFIG_STATUS || ac_write_fail=1 22220rm -f conf$$subs.awk 22221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22222_ACAWK 22223cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22224 for (key in S) S_is_set[key] = 1 22225 FS = "" 22226 22227} 22228{ 22229 line = $ 0 22230 nfields = split(line, field, "@") 22231 substed = 0 22232 len = length(field[1]) 22233 for (i = 2; i < nfields; i++) { 22234 key = field[i] 22235 keylen = length(key) 22236 if (S_is_set[key]) { 22237 value = S[key] 22238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22239 len += length(value) + length(field[++i]) 22240 substed = 1 22241 } else 22242 len += 1 + keylen 22243 } 22244 22245 print line 22246} 22247 22248_ACAWK 22249_ACEOF 22250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22251if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22253else 22254 cat 22255fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22256 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22257_ACEOF 22258 22259# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22260# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22261# trailing colons and then remove the whole line if VPATH becomes empty 22262# (actually we leave an empty line to preserve line numbers). 22263if test "x$srcdir" = x.; then 22264 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22265h 22266s/// 22267s/^/:/ 22268s/[ ]*$/:/ 22269s/:\$(srcdir):/:/g 22270s/:\${srcdir}:/:/g 22271s/:@srcdir@:/:/g 22272s/^:*// 22273s/:*$// 22274x 22275s/\(=[ ]*\).*/\1/ 22276G 22277s/\n// 22278s/^[^=]*=[ ]*$// 22279}' 22280fi 22281 22282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22283fi # test -n "$CONFIG_FILES" 22284 22285# Set up the scripts for CONFIG_HEADERS section. 22286# No need to generate them if there are no CONFIG_HEADERS. 22287# This happens for instance with `./config.status Makefile'. 22288if test -n "$CONFIG_HEADERS"; then 22289cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22290BEGIN { 22291_ACEOF 22292 22293# Transform confdefs.h into an awk script `defines.awk', embedded as 22294# here-document in config.status, that substitutes the proper values into 22295# config.h.in to produce config.h. 22296 22297# Create a delimiter string that does not exist in confdefs.h, to ease 22298# handling of long lines. 22299ac_delim='%!_!# ' 22300for ac_last_try in false false :; do 22301 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22302 if test -z "$ac_tt"; then 22303 break 22304 elif $ac_last_try; then 22305 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22306 else 22307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22308 fi 22309done 22310 22311# For the awk script, D is an array of macro values keyed by name, 22312# likewise P contains macro parameters if any. Preserve backslash 22313# newline sequences. 22314 22315ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22316sed -n ' 22317s/.\{148\}/&'"$ac_delim"'/g 22318t rset 22319:rset 22320s/^[ ]*#[ ]*define[ ][ ]*/ / 22321t def 22322d 22323:def 22324s/\\$// 22325t bsnl 22326s/["\\]/\\&/g 22327s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22328D["\1"]=" \3"/p 22329s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22330d 22331:bsnl 22332s/["\\]/\\&/g 22333s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22334D["\1"]=" \3\\\\\\n"\\/p 22335t cont 22336s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22337t cont 22338d 22339:cont 22340n 22341s/.\{148\}/&'"$ac_delim"'/g 22342t clear 22343:clear 22344s/\\$// 22345t bsnlc 22346s/["\\]/\\&/g; s/^/"/; s/$/"/p 22347d 22348:bsnlc 22349s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22350b cont 22351' <confdefs.h | sed ' 22352s/'"$ac_delim"'/"\\\ 22353"/g' >>$CONFIG_STATUS || ac_write_fail=1 22354 22355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22356 for (key in D) D_is_set[key] = 1 22357 FS = "" 22358} 22359/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22360 line = \$ 0 22361 split(line, arg, " ") 22362 if (arg[1] == "#") { 22363 defundef = arg[2] 22364 mac1 = arg[3] 22365 } else { 22366 defundef = substr(arg[1], 2) 22367 mac1 = arg[2] 22368 } 22369 split(mac1, mac2, "(") #) 22370 macro = mac2[1] 22371 prefix = substr(line, 1, index(line, defundef) - 1) 22372 if (D_is_set[macro]) { 22373 # Preserve the white space surrounding the "#". 22374 print prefix "define", macro P[macro] D[macro] 22375 next 22376 } else { 22377 # Replace #undef with comments. This is necessary, for example, 22378 # in the case of _POSIX_SOURCE, which is predefined and required 22379 # on some systems where configure will not decide to define it. 22380 if (defundef == "undef") { 22381 print "/*", prefix defundef, macro, "*/" 22382 next 22383 } 22384 } 22385} 22386{ print } 22387_ACAWK 22388_ACEOF 22389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22390 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22391fi # test -n "$CONFIG_HEADERS" 22392 22393 22394eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22395shift 22396for ac_tag 22397do 22398 case $ac_tag in 22399 :[FHLC]) ac_mode=$ac_tag; continue;; 22400 esac 22401 case $ac_mode$ac_tag in 22402 :[FHL]*:*);; 22403 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22404 :[FH]-) ac_tag=-:-;; 22405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22406 esac 22407 ac_save_IFS=$IFS 22408 IFS=: 22409 set x $ac_tag 22410 IFS=$ac_save_IFS 22411 shift 22412 ac_file=$1 22413 shift 22414 22415 case $ac_mode in 22416 :L) ac_source=$1;; 22417 :[FH]) 22418 ac_file_inputs= 22419 for ac_f 22420 do 22421 case $ac_f in 22422 -) ac_f="$ac_tmp/stdin";; 22423 *) # Look for the file first in the build tree, then in the source tree 22424 # (if the path is not absolute). The absolute path cannot be DOS-style, 22425 # because $ac_f cannot contain `:'. 22426 test -f "$ac_f" || 22427 case $ac_f in 22428 [\\/$]*) false;; 22429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22430 esac || 22431 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22432 esac 22433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22434 as_fn_append ac_file_inputs " '$ac_f'" 22435 done 22436 22437 # Let's still pretend it is `configure' which instantiates (i.e., don't 22438 # use $as_me), people would be surprised to read: 22439 # /* config.h. Generated by config.status. */ 22440 configure_input='Generated from '` 22441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22442 `' by configure.' 22443 if test x"$ac_file" != x-; then 22444 configure_input="$ac_file. $configure_input" 22445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22446$as_echo "$as_me: creating $ac_file" >&6;} 22447 fi 22448 # Neutralize special characters interpreted by sed in replacement strings. 22449 case $configure_input in #( 22450 *\&* | *\|* | *\\* ) 22451 ac_sed_conf_input=`$as_echo "$configure_input" | 22452 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22453 *) ac_sed_conf_input=$configure_input;; 22454 esac 22455 22456 case $ac_tag in 22457 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22459 esac 22460 ;; 22461 esac 22462 22463 ac_dir=`$as_dirname -- "$ac_file" || 22464$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22465 X"$ac_file" : 'X\(//\)[^/]' \| \ 22466 X"$ac_file" : 'X\(//\)$' \| \ 22467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22468$as_echo X"$ac_file" | 22469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22470 s//\1/ 22471 q 22472 } 22473 /^X\(\/\/\)[^/].*/{ 22474 s//\1/ 22475 q 22476 } 22477 /^X\(\/\/\)$/{ 22478 s//\1/ 22479 q 22480 } 22481 /^X\(\/\).*/{ 22482 s//\1/ 22483 q 22484 } 22485 s/.*/./; q'` 22486 as_dir="$ac_dir"; as_fn_mkdir_p 22487 ac_builddir=. 22488 22489case "$ac_dir" in 22490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22491*) 22492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22493 # A ".." for each directory in $ac_dir_suffix. 22494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22495 case $ac_top_builddir_sub in 22496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22498 esac ;; 22499esac 22500ac_abs_top_builddir=$ac_pwd 22501ac_abs_builddir=$ac_pwd$ac_dir_suffix 22502# for backward compatibility: 22503ac_top_builddir=$ac_top_build_prefix 22504 22505case $srcdir in 22506 .) # We are building in place. 22507 ac_srcdir=. 22508 ac_top_srcdir=$ac_top_builddir_sub 22509 ac_abs_top_srcdir=$ac_pwd ;; 22510 [\\/]* | ?:[\\/]* ) # Absolute name. 22511 ac_srcdir=$srcdir$ac_dir_suffix; 22512 ac_top_srcdir=$srcdir 22513 ac_abs_top_srcdir=$srcdir ;; 22514 *) # Relative name. 22515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22516 ac_top_srcdir=$ac_top_build_prefix$srcdir 22517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22518esac 22519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22520 22521 22522 case $ac_mode in 22523 :F) 22524 # 22525 # CONFIG_FILE 22526 # 22527 22528 case $INSTALL in 22529 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22530 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22531 esac 22532 ac_MKDIR_P=$MKDIR_P 22533 case $MKDIR_P in 22534 [\\/$]* | ?:[\\/]* ) ;; 22535 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22536 esac 22537_ACEOF 22538 22539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22540# If the template does not know about datarootdir, expand it. 22541# FIXME: This hack should be removed a few years after 2.60. 22542ac_datarootdir_hack=; ac_datarootdir_seen= 22543ac_sed_dataroot=' 22544/datarootdir/ { 22545 p 22546 q 22547} 22548/@datadir@/p 22549/@docdir@/p 22550/@infodir@/p 22551/@localedir@/p 22552/@mandir@/p' 22553case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22554*datarootdir*) ac_datarootdir_seen=yes;; 22555*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22557$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22558_ACEOF 22559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22560 ac_datarootdir_hack=' 22561 s&@datadir@&$datadir&g 22562 s&@docdir@&$docdir&g 22563 s&@infodir@&$infodir&g 22564 s&@localedir@&$localedir&g 22565 s&@mandir@&$mandir&g 22566 s&\\\${datarootdir}&$datarootdir&g' ;; 22567esac 22568_ACEOF 22569 22570# Neutralize VPATH when `$srcdir' = `.'. 22571# Shell code in configure.ac might set extrasub. 22572# FIXME: do we really want to maintain this feature? 22573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22574ac_sed_extra="$ac_vpsub 22575$extrasub 22576_ACEOF 22577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22578:t 22579/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22580s|@configure_input@|$ac_sed_conf_input|;t t 22581s&@top_builddir@&$ac_top_builddir_sub&;t t 22582s&@top_build_prefix@&$ac_top_build_prefix&;t t 22583s&@srcdir@&$ac_srcdir&;t t 22584s&@abs_srcdir@&$ac_abs_srcdir&;t t 22585s&@top_srcdir@&$ac_top_srcdir&;t t 22586s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22587s&@builddir@&$ac_builddir&;t t 22588s&@abs_builddir@&$ac_abs_builddir&;t t 22589s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22590s&@INSTALL@&$ac_INSTALL&;t t 22591s&@MKDIR_P@&$ac_MKDIR_P&;t t 22592$ac_datarootdir_hack 22593" 22594eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22595 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22596 22597test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22598 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22600 "$ac_tmp/out"`; test -z "$ac_out"; } && 22601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22602which seems to be undefined. Please make sure it is defined" >&5 22603$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22604which seems to be undefined. Please make sure it is defined" >&2;} 22605 22606 rm -f "$ac_tmp/stdin" 22607 case $ac_file in 22608 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22609 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22610 esac \ 22611 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22612 ;; 22613 :H) 22614 # 22615 # CONFIG_HEADER 22616 # 22617 if test x"$ac_file" != x-; then 22618 { 22619 $as_echo "/* $configure_input */" \ 22620 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22621 } >"$ac_tmp/config.h" \ 22622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22623 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22625$as_echo "$as_me: $ac_file is unchanged" >&6;} 22626 else 22627 rm -f "$ac_file" 22628 mv "$ac_tmp/config.h" "$ac_file" \ 22629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22630 fi 22631 else 22632 $as_echo "/* $configure_input */" \ 22633 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22634 || as_fn_error $? "could not create -" "$LINENO" 5 22635 fi 22636# Compute "$ac_file"'s index in $config_headers. 22637_am_arg="$ac_file" 22638_am_stamp_count=1 22639for _am_header in $config_headers :; do 22640 case $_am_header in 22641 $_am_arg | $_am_arg:* ) 22642 break ;; 22643 * ) 22644 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22645 esac 22646done 22647echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22648$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22649 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22650 X"$_am_arg" : 'X\(//\)$' \| \ 22651 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22652$as_echo X"$_am_arg" | 22653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22654 s//\1/ 22655 q 22656 } 22657 /^X\(\/\/\)[^/].*/{ 22658 s//\1/ 22659 q 22660 } 22661 /^X\(\/\/\)$/{ 22662 s//\1/ 22663 q 22664 } 22665 /^X\(\/\).*/{ 22666 s//\1/ 22667 q 22668 } 22669 s/.*/./; q'`/stamp-h$_am_stamp_count 22670 ;; 22671 22672 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22673$as_echo "$as_me: executing $ac_file commands" >&6;} 22674 ;; 22675 esac 22676 22677 22678 case $ac_file$ac_mode in 22679 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22680 # Older Autoconf quotes --file arguments for eval, but not when files 22681 # are listed without --file. Let's play safe and only enable the eval 22682 # if we detect the quoting. 22683 case $CONFIG_FILES in 22684 *\'*) eval set x "$CONFIG_FILES" ;; 22685 *) set x $CONFIG_FILES ;; 22686 esac 22687 shift 22688 for mf 22689 do 22690 # Strip MF so we end up with the name of the file. 22691 mf=`echo "$mf" | sed -e 's/:.*$//'` 22692 # Check whether this is an Automake generated Makefile or not. 22693 # We used to match only the files named 'Makefile.in', but 22694 # some people rename them; so instead we look at the file content. 22695 # Grep'ing the first line is not enough: some people post-process 22696 # each Makefile.in and add a new line on top of each file to say so. 22697 # Grep'ing the whole file is not good either: AIX grep has a line 22698 # limit of 2048, but all sed's we know have understand at least 4000. 22699 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22700 dirpart=`$as_dirname -- "$mf" || 22701$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22702 X"$mf" : 'X\(//\)[^/]' \| \ 22703 X"$mf" : 'X\(//\)$' \| \ 22704 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22705$as_echo X"$mf" | 22706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22707 s//\1/ 22708 q 22709 } 22710 /^X\(\/\/\)[^/].*/{ 22711 s//\1/ 22712 q 22713 } 22714 /^X\(\/\/\)$/{ 22715 s//\1/ 22716 q 22717 } 22718 /^X\(\/\).*/{ 22719 s//\1/ 22720 q 22721 } 22722 s/.*/./; q'` 22723 else 22724 continue 22725 fi 22726 # Extract the definition of DEPDIR, am__include, and am__quote 22727 # from the Makefile without running 'make'. 22728 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22729 test -z "$DEPDIR" && continue 22730 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22731 test -z "$am__include" && continue 22732 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22733 # Find all dependency output files, they are included files with 22734 # $(DEPDIR) in their names. We invoke sed twice because it is the 22735 # simplest approach to changing $(DEPDIR) to its actual value in the 22736 # expansion. 22737 for file in `sed -n " 22738 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22739 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22740 # Make sure the directory exists. 22741 test -f "$dirpart/$file" && continue 22742 fdir=`$as_dirname -- "$file" || 22743$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22744 X"$file" : 'X\(//\)[^/]' \| \ 22745 X"$file" : 'X\(//\)$' \| \ 22746 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22747$as_echo X"$file" | 22748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22749 s//\1/ 22750 q 22751 } 22752 /^X\(\/\/\)[^/].*/{ 22753 s//\1/ 22754 q 22755 } 22756 /^X\(\/\/\)$/{ 22757 s//\1/ 22758 q 22759 } 22760 /^X\(\/\).*/{ 22761 s//\1/ 22762 q 22763 } 22764 s/.*/./; q'` 22765 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22766 # echo "creating $dirpart/$file" 22767 echo '# dummy' > "$dirpart/$file" 22768 done 22769 done 22770} 22771 ;; 22772 "libtool":C) 22773 22774 # See if we are running on zsh, and set the options which allow our 22775 # commands through without removal of \ escapes. 22776 if test -n "${ZSH_VERSION+set}" ; then 22777 setopt NO_GLOB_SUBST 22778 fi 22779 22780 cfgfile="${ofile}T" 22781 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22782 $RM "$cfgfile" 22783 22784 cat <<_LT_EOF >> "$cfgfile" 22785#! $SHELL 22786 22787# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22788# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22790# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22791# 22792# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22793# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 22794# Foundation, Inc. 22795# Written by Gordon Matzigkeit, 1996 22796# 22797# This file is part of GNU Libtool. 22798# 22799# GNU Libtool is free software; you can redistribute it and/or 22800# modify it under the terms of the GNU General Public License as 22801# published by the Free Software Foundation; either version 2 of 22802# the License, or (at your option) any later version. 22803# 22804# As a special exception to the GNU General Public License, 22805# if you distribute this file as part of a program or library that 22806# is built using GNU Libtool, you may include this file under the 22807# same distribution terms that you use for the rest of that program. 22808# 22809# GNU Libtool is distributed in the hope that it will be useful, 22810# but WITHOUT ANY WARRANTY; without even the implied warranty of 22811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22812# GNU General Public License for more details. 22813# 22814# You should have received a copy of the GNU General Public License 22815# along with GNU Libtool; see the file COPYING. If not, a copy 22816# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22817# obtained by writing to the Free Software Foundation, Inc., 22818# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22819 22820 22821# The names of the tagged configurations supported by this script. 22822available_tags="" 22823 22824# ### BEGIN LIBTOOL CONFIG 22825 22826# Which release of libtool.m4 was used? 22827macro_version=$macro_version 22828macro_revision=$macro_revision 22829 22830# Whether or not to build shared libraries. 22831build_libtool_libs=$enable_shared 22832 22833# Whether or not to build static libraries. 22834build_old_libs=$enable_static 22835 22836# What type of objects to build. 22837pic_mode=$pic_mode 22838 22839# Whether or not to optimize for fast installation. 22840fast_install=$enable_fast_install 22841 22842# Shell to use when invoking shell scripts. 22843SHELL=$lt_SHELL 22844 22845# An echo program that protects backslashes. 22846ECHO=$lt_ECHO 22847 22848# The PATH separator for the build system. 22849PATH_SEPARATOR=$lt_PATH_SEPARATOR 22850 22851# The host system. 22852host_alias=$host_alias 22853host=$host 22854host_os=$host_os 22855 22856# The build system. 22857build_alias=$build_alias 22858build=$build 22859build_os=$build_os 22860 22861# A sed program that does not truncate output. 22862SED=$lt_SED 22863 22864# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22865Xsed="\$SED -e 1s/^X//" 22866 22867# A grep program that handles long lines. 22868GREP=$lt_GREP 22869 22870# An ERE matcher. 22871EGREP=$lt_EGREP 22872 22873# A literal string matcher. 22874FGREP=$lt_FGREP 22875 22876# A BSD- or MS-compatible name lister. 22877NM=$lt_NM 22878 22879# Whether we need soft or hard links. 22880LN_S=$lt_LN_S 22881 22882# What is the maximum length of a command? 22883max_cmd_len=$max_cmd_len 22884 22885# Object file suffix (normally "o"). 22886objext=$ac_objext 22887 22888# Executable file suffix (normally ""). 22889exeext=$exeext 22890 22891# whether the shell understands "unset". 22892lt_unset=$lt_unset 22893 22894# turn spaces into newlines. 22895SP2NL=$lt_lt_SP2NL 22896 22897# turn newlines into spaces. 22898NL2SP=$lt_lt_NL2SP 22899 22900# convert \$build file names to \$host format. 22901to_host_file_cmd=$lt_cv_to_host_file_cmd 22902 22903# convert \$build files to toolchain format. 22904to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22905 22906# An object symbol dumper. 22907OBJDUMP=$lt_OBJDUMP 22908 22909# Method to check whether dependent libraries are shared objects. 22910deplibs_check_method=$lt_deplibs_check_method 22911 22912# Command to use when deplibs_check_method = "file_magic". 22913file_magic_cmd=$lt_file_magic_cmd 22914 22915# How to find potential files when deplibs_check_method = "file_magic". 22916file_magic_glob=$lt_file_magic_glob 22917 22918# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22919want_nocaseglob=$lt_want_nocaseglob 22920 22921# DLL creation program. 22922DLLTOOL=$lt_DLLTOOL 22923 22924# Command to associate shared and link libraries. 22925sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22926 22927# The archiver. 22928AR=$lt_AR 22929 22930# Flags to create an archive. 22931AR_FLAGS=$lt_AR_FLAGS 22932 22933# How to feed a file listing to the archiver. 22934archiver_list_spec=$lt_archiver_list_spec 22935 22936# A symbol stripping program. 22937STRIP=$lt_STRIP 22938 22939# Commands used to install an old-style archive. 22940RANLIB=$lt_RANLIB 22941old_postinstall_cmds=$lt_old_postinstall_cmds 22942old_postuninstall_cmds=$lt_old_postuninstall_cmds 22943 22944# Whether to use a lock for old archive extraction. 22945lock_old_archive_extraction=$lock_old_archive_extraction 22946 22947# A C compiler. 22948LTCC=$lt_CC 22949 22950# LTCC compiler flags. 22951LTCFLAGS=$lt_CFLAGS 22952 22953# Take the output of nm and produce a listing of raw symbols and C names. 22954global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22955 22956# Transform the output of nm in a proper C declaration. 22957global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22958 22959# Transform the output of nm in a C name address pair. 22960global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22961 22962# Transform the output of nm in a C name address pair when lib prefix is needed. 22963global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22964 22965# Specify filename containing input files for \$NM. 22966nm_file_list_spec=$lt_nm_file_list_spec 22967 22968# The root where to search for dependent libraries,and in which our libraries should be installed. 22969lt_sysroot=$lt_sysroot 22970 22971# The name of the directory that contains temporary libtool files. 22972objdir=$objdir 22973 22974# Used to examine libraries when file_magic_cmd begins with "file". 22975MAGIC_CMD=$MAGIC_CMD 22976 22977# Must we lock files when doing compilation? 22978need_locks=$lt_need_locks 22979 22980# Manifest tool. 22981MANIFEST_TOOL=$lt_MANIFEST_TOOL 22982 22983# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22984DSYMUTIL=$lt_DSYMUTIL 22985 22986# Tool to change global to local symbols on Mac OS X. 22987NMEDIT=$lt_NMEDIT 22988 22989# Tool to manipulate fat objects and archives on Mac OS X. 22990LIPO=$lt_LIPO 22991 22992# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22993OTOOL=$lt_OTOOL 22994 22995# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22996OTOOL64=$lt_OTOOL64 22997 22998# Old archive suffix (normally "a"). 22999libext=$libext 23000 23001# Shared library suffix (normally ".so"). 23002shrext_cmds=$lt_shrext_cmds 23003 23004# The commands to extract the exported symbol list from a shared archive. 23005extract_expsyms_cmds=$lt_extract_expsyms_cmds 23006 23007# Variables whose values should be saved in libtool wrapper scripts and 23008# restored at link time. 23009variables_saved_for_relink=$lt_variables_saved_for_relink 23010 23011# Do we need the "lib" prefix for modules? 23012need_lib_prefix=$need_lib_prefix 23013 23014# Do we need a version for libraries? 23015need_version=$need_version 23016 23017# Library versioning type. 23018version_type=$version_type 23019 23020# Shared library runtime path variable. 23021runpath_var=$runpath_var 23022 23023# Shared library path variable. 23024shlibpath_var=$shlibpath_var 23025 23026# Is shlibpath searched before the hard-coded library search path? 23027shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23028 23029# Format of library name prefix. 23030libname_spec=$lt_libname_spec 23031 23032# List of archive names. First name is the real one, the rest are links. 23033# The last name is the one that the linker finds with -lNAME 23034library_names_spec=$lt_library_names_spec 23035 23036# The coded name of the library, if different from the real name. 23037soname_spec=$lt_soname_spec 23038 23039# Permission mode override for installation of shared libraries. 23040install_override_mode=$lt_install_override_mode 23041 23042# Command to use after installation of a shared archive. 23043postinstall_cmds=$lt_postinstall_cmds 23044 23045# Command to use after uninstallation of a shared archive. 23046postuninstall_cmds=$lt_postuninstall_cmds 23047 23048# Commands used to finish a libtool library installation in a directory. 23049finish_cmds=$lt_finish_cmds 23050 23051# As "finish_cmds", except a single script fragment to be evaled but 23052# not shown. 23053finish_eval=$lt_finish_eval 23054 23055# Whether we should hardcode library paths into libraries. 23056hardcode_into_libs=$hardcode_into_libs 23057 23058# Compile-time system search path for libraries. 23059sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23060 23061# Run-time system search path for libraries. 23062sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23063 23064# Whether dlopen is supported. 23065dlopen_support=$enable_dlopen 23066 23067# Whether dlopen of programs is supported. 23068dlopen_self=$enable_dlopen_self 23069 23070# Whether dlopen of statically linked programs is supported. 23071dlopen_self_static=$enable_dlopen_self_static 23072 23073# Commands to strip libraries. 23074old_striplib=$lt_old_striplib 23075striplib=$lt_striplib 23076 23077 23078# The linker used to build libraries. 23079LD=$lt_LD 23080 23081# How to create reloadable object files. 23082reload_flag=$lt_reload_flag 23083reload_cmds=$lt_reload_cmds 23084 23085# Commands used to build an old-style archive. 23086old_archive_cmds=$lt_old_archive_cmds 23087 23088# A language specific compiler. 23089CC=$lt_compiler 23090 23091# Is the compiler the GNU compiler? 23092with_gcc=$GCC 23093 23094# Compiler flag to turn off builtin functions. 23095no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23096 23097# Additional compiler flags for building library objects. 23098pic_flag=$lt_lt_prog_compiler_pic 23099 23100# How to pass a linker flag through the compiler. 23101wl=$lt_lt_prog_compiler_wl 23102 23103# Compiler flag to prevent dynamic linking. 23104link_static_flag=$lt_lt_prog_compiler_static 23105 23106# Does compiler simultaneously support -c and -o options? 23107compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23108 23109# Whether or not to add -lc for building shared libraries. 23110build_libtool_need_lc=$archive_cmds_need_lc 23111 23112# Whether or not to disallow shared libs when runtime libs are static. 23113allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23114 23115# Compiler flag to allow reflexive dlopens. 23116export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23117 23118# Compiler flag to generate shared objects directly from archives. 23119whole_archive_flag_spec=$lt_whole_archive_flag_spec 23120 23121# Whether the compiler copes with passing no objects directly. 23122compiler_needs_object=$lt_compiler_needs_object 23123 23124# Create an old-style archive from a shared archive. 23125old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23126 23127# Create a temporary old-style archive to link instead of a shared archive. 23128old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23129 23130# Commands used to build a shared archive. 23131archive_cmds=$lt_archive_cmds 23132archive_expsym_cmds=$lt_archive_expsym_cmds 23133 23134# Commands used to build a loadable module if different from building 23135# a shared archive. 23136module_cmds=$lt_module_cmds 23137module_expsym_cmds=$lt_module_expsym_cmds 23138 23139# Whether we are building with GNU ld or not. 23140with_gnu_ld=$lt_with_gnu_ld 23141 23142# Flag that allows shared libraries with undefined symbols to be built. 23143allow_undefined_flag=$lt_allow_undefined_flag 23144 23145# Flag that enforces no undefined symbols. 23146no_undefined_flag=$lt_no_undefined_flag 23147 23148# Flag to hardcode \$libdir into a binary during linking. 23149# This must work even if \$libdir does not exist 23150hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23151 23152# Whether we need a single "-rpath" flag with a separated argument. 23153hardcode_libdir_separator=$lt_hardcode_libdir_separator 23154 23155# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23156# DIR into the resulting binary. 23157hardcode_direct=$hardcode_direct 23158 23159# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23160# DIR into the resulting binary and the resulting library dependency is 23161# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23162# library is relocated. 23163hardcode_direct_absolute=$hardcode_direct_absolute 23164 23165# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23166# into the resulting binary. 23167hardcode_minus_L=$hardcode_minus_L 23168 23169# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23170# into the resulting binary. 23171hardcode_shlibpath_var=$hardcode_shlibpath_var 23172 23173# Set to "yes" if building a shared library automatically hardcodes DIR 23174# into the library and all subsequent libraries and executables linked 23175# against it. 23176hardcode_automatic=$hardcode_automatic 23177 23178# Set to yes if linker adds runtime paths of dependent libraries 23179# to runtime path list. 23180inherit_rpath=$inherit_rpath 23181 23182# Whether libtool must link a program against all its dependency libraries. 23183link_all_deplibs=$link_all_deplibs 23184 23185# Set to "yes" if exported symbols are required. 23186always_export_symbols=$always_export_symbols 23187 23188# The commands to list exported symbols. 23189export_symbols_cmds=$lt_export_symbols_cmds 23190 23191# Symbols that should not be listed in the preloaded symbols. 23192exclude_expsyms=$lt_exclude_expsyms 23193 23194# Symbols that must always be exported. 23195include_expsyms=$lt_include_expsyms 23196 23197# Commands necessary for linking programs (against libraries) with templates. 23198prelink_cmds=$lt_prelink_cmds 23199 23200# Commands necessary for finishing linking programs. 23201postlink_cmds=$lt_postlink_cmds 23202 23203# Specify filename containing input files. 23204file_list_spec=$lt_file_list_spec 23205 23206# How to hardcode a shared library path into an executable. 23207hardcode_action=$hardcode_action 23208 23209# ### END LIBTOOL CONFIG 23210 23211_LT_EOF 23212 23213 case $host_os in 23214 aix3*) 23215 cat <<\_LT_EOF >> "$cfgfile" 23216# AIX sometimes has problems with the GCC collect2 program. For some 23217# reason, if we set the COLLECT_NAMES environment variable, the problems 23218# vanish in a puff of smoke. 23219if test "X${COLLECT_NAMES+set}" != Xset; then 23220 COLLECT_NAMES= 23221 export COLLECT_NAMES 23222fi 23223_LT_EOF 23224 ;; 23225 esac 23226 23227 23228ltmain="$ac_aux_dir/ltmain.sh" 23229 23230 23231 # We use sed instead of cat because bash on DJGPP gets confused if 23232 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23233 # text mode, it properly converts lines to CR/LF. This bash problem 23234 # is reportedly fixed, but why not run on old versions too? 23235 sed '$q' "$ltmain" >> "$cfgfile" \ 23236 || (rm -f "$cfgfile"; exit 1) 23237 23238 if test x"$xsi_shell" = xyes; then 23239 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 23240func_dirname ()\ 23241{\ 23242\ case ${1} in\ 23243\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23244\ * ) func_dirname_result="${3}" ;;\ 23245\ esac\ 23246} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 23247 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23249test 0 -eq $? || _lt_function_replace_fail=: 23250 23251 23252 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 23253func_basename ()\ 23254{\ 23255\ func_basename_result="${1##*/}"\ 23256} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23257 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23259test 0 -eq $? || _lt_function_replace_fail=: 23260 23261 23262 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 23263func_dirname_and_basename ()\ 23264{\ 23265\ case ${1} in\ 23266\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23267\ * ) func_dirname_result="${3}" ;;\ 23268\ esac\ 23269\ func_basename_result="${1##*/}"\ 23270} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23271 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23273test 0 -eq $? || _lt_function_replace_fail=: 23274 23275 23276 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 23277func_stripname ()\ 23278{\ 23279\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 23280\ # positional parameters, so assign one to ordinary parameter first.\ 23281\ func_stripname_result=${3}\ 23282\ func_stripname_result=${func_stripname_result#"${1}"}\ 23283\ func_stripname_result=${func_stripname_result%"${2}"}\ 23284} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 23285 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23287test 0 -eq $? || _lt_function_replace_fail=: 23288 23289 23290 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 23291func_split_long_opt ()\ 23292{\ 23293\ func_split_long_opt_name=${1%%=*}\ 23294\ func_split_long_opt_arg=${1#*=}\ 23295} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23296 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23298test 0 -eq $? || _lt_function_replace_fail=: 23299 23300 23301 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 23302func_split_short_opt ()\ 23303{\ 23304\ func_split_short_opt_arg=${1#??}\ 23305\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 23306} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23307 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23309test 0 -eq $? || _lt_function_replace_fail=: 23310 23311 23312 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 23313func_lo2o ()\ 23314{\ 23315\ case ${1} in\ 23316\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 23317\ *) func_lo2o_result=${1} ;;\ 23318\ esac\ 23319} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 23320 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23322test 0 -eq $? || _lt_function_replace_fail=: 23323 23324 23325 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 23326func_xform ()\ 23327{\ 23328 func_xform_result=${1%.*}.lo\ 23329} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 23330 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23332test 0 -eq $? || _lt_function_replace_fail=: 23333 23334 23335 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 23336func_arith ()\ 23337{\ 23338 func_arith_result=$(( $* ))\ 23339} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 23340 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23342test 0 -eq $? || _lt_function_replace_fail=: 23343 23344 23345 sed -e '/^func_len ()$/,/^} # func_len /c\ 23346func_len ()\ 23347{\ 23348 func_len_result=${#1}\ 23349} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 23350 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23351 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23352test 0 -eq $? || _lt_function_replace_fail=: 23353 23354fi 23355 23356if test x"$lt_shell_append" = xyes; then 23357 sed -e '/^func_append ()$/,/^} # func_append /c\ 23358func_append ()\ 23359{\ 23360 eval "${1}+=\\${2}"\ 23361} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 23362 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23364test 0 -eq $? || _lt_function_replace_fail=: 23365 23366 23367 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 23368func_append_quoted ()\ 23369{\ 23370\ func_quote_for_eval "${2}"\ 23371\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 23372} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 23373 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23375test 0 -eq $? || _lt_function_replace_fail=: 23376 23377 23378 # Save a `func_append' function call where possible by direct use of '+=' 23379 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 23380 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23382 test 0 -eq $? || _lt_function_replace_fail=: 23383else 23384 # Save a `func_append' function call even when '+=' is not available 23385 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 23386 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23388 test 0 -eq $? || _lt_function_replace_fail=: 23389fi 23390 23391if test x"$_lt_function_replace_fail" = x":"; then 23392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 23393$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 23394fi 23395 23396 23397 mv -f "$cfgfile" "$ofile" || 23398 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23399 chmod +x "$ofile" 23400 23401 ;; 23402 23403 esac 23404done # for ac_tag 23405 23406 23407as_fn_exit 0 23408_ACEOF 23409ac_clean_files=$ac_clean_files_save 23410 23411test $ac_write_fail = 0 || 23412 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23413 23414 23415# configure is writing to config.log, and then calls config.status. 23416# config.status does its own redirection, appending to config.log. 23417# Unfortunately, on DOS this fails, as config.log is still kept open 23418# by configure, so config.status won't be able to write to it; its 23419# output is simply discarded. So we exec the FD to /dev/null, 23420# effectively closing config.log, so it can be properly (re)opened and 23421# appended to by config.status. When coming back to configure, we 23422# need to make the FD available again. 23423if test "$no_create" != yes; then 23424 ac_cs_success=: 23425 ac_config_status_args= 23426 test "$silent" = yes && 23427 ac_config_status_args="$ac_config_status_args --quiet" 23428 exec 5>/dev/null 23429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23430 exec 5>>config.log 23431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23432 # would make configure fail if this is the last instruction. 23433 $ac_cs_success || as_fn_exit 1 23434fi 23435if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23437$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23438fi 23439 23440 23441echo "" 23442echo "X11 will be built with the following settings:" 23443echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 23444echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 23445echo " Threading support: "$xthreads 23446echo " Use Threads safe API: "$mtsafeapi 23447echo " Threads stubs in libX11: "$thrstubs 23448echo " XCMS: "$XCMS 23449echo " Internationalization support: "$XLOCALE 23450echo " XF86BigFont support: "$XF86BIGFONT 23451echo " XKB support: "$XKB 23452echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 23453echo " Compose table cache enabled: "$COMPOSECACHE 23454echo " Functional specs building enabled: "$build_specs 23455echo "" 23456