configure revision 818534a1
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libX11 1.6.2. 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.2' 635PACKAGE_STRING='libX11 1.6.2' 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 713KEYSYMDEFS 714XTHREAD_CFLAGS 715XTHREADLIB 716THRSTUBS_FALSE 717THRSTUBS_TRUE 718LAUNCHD 719OS2_FALSE 720OS2_TRUE 721WCHAR32 722XLIB_LOADABLE_I18N_FALSE 723XLIB_LOADABLE_I18N_TRUE 724I18N_MODULE_LIBS 725X11_EXTRA_DEPS 726LDFLAGS_FOR_BUILD 727CFLAGS_FOR_BUILD 728CPPFLAGS_FOR_BUILD 729CC_FOR_BUILD 730HAVE_PERL_FALSE 731HAVE_PERL_TRUE 732PERL 733RAWCPPFLAGS 734RAWCPP 735HAVE_STYLESHEETS_FALSE 736HAVE_STYLESHEETS_TRUE 737XSL_STYLESHEET 738STYLESHEET_SRCDIR 739XORG_SGML_PATH 740HAVE_XSLTPROC_FALSE 741HAVE_XSLTPROC_TRUE 742XSLTPROC 743HAVE_FOP_FALSE 744HAVE_FOP_TRUE 745FOP 746HAVE_XMLTO_FALSE 747HAVE_XMLTO_TRUE 748HAVE_XMLTO_TEXT_FALSE 749HAVE_XMLTO_TEXT_TRUE 750XMLTO 751ENABLE_SPECS_FALSE 752ENABLE_SPECS_TRUE 753MAN_SUBSTS 754XORG_MAN_PAGE 755ADMIN_MAN_DIR 756DRIVER_MAN_DIR 757MISC_MAN_DIR 758FILE_MAN_DIR 759LIB_MAN_DIR 760APP_MAN_DIR 761ADMIN_MAN_SUFFIX 762DRIVER_MAN_SUFFIX 763MISC_MAN_SUFFIX 764FILE_MAN_SUFFIX 765LIB_MAN_SUFFIX 766APP_MAN_SUFFIX 767INSTALL_CMD 768PKG_CONFIG 769CHANGELOG_CMD 770STRICT_CFLAGS 771CWARNFLAGS 772BASE_CFLAGS 773OTOOL64 774OTOOL 775LIPO 776NMEDIT 777DSYMUTIL 778MANIFEST_TOOL 779RANLIB 780ac_ct_AR 781AR 782DLLTOOL 783OBJDUMP 784LN_S 785NM 786ac_ct_DUMPBIN 787DUMPBIN 788LD 789FGREP 790SED 791LIBTOOL 792AM_BACKSLASH 793AM_DEFAULT_VERBOSITY 794AM_DEFAULT_V 795AM_V 796am__fastdepCC_FALSE 797am__fastdepCC_TRUE 798CCDEPMODE 799am__nodep 800AMDEPBACKSLASH 801AMDEP_FALSE 802AMDEP_TRUE 803am__quote 804am__include 805DEPDIR 806am__untar 807am__tar 808AMTAR 809am__leading_dot 810SET_MAKE 811AWK 812mkdir_p 813MKDIR_P 814INSTALL_STRIP_PROGRAM 815STRIP 816install_sh 817MAKEINFO 818AUTOHEADER 819AUTOMAKE 820AUTOCONF 821ACLOCAL 822VERSION 823PACKAGE 824CYGPATH_W 825am__isrc 826INSTALL_DATA 827INSTALL_SCRIPT 828INSTALL_PROGRAM 829EGREP 830GREP 831CPP 832OBJEXT 833EXEEXT 834ac_ct_CC 835CPPFLAGS 836LDFLAGS 837CFLAGS 838CC 839host_os 840host_vendor 841host_cpu 842host 843build_os 844build_vendor 845build_cpu 846build 847target_alias 848host_alias 849build_alias 850LIBS 851ECHO_T 852ECHO_N 853ECHO_C 854DEFS 855mandir 856localedir 857libdir 858psdir 859pdfdir 860dvidir 861htmldir 862infodir 863docdir 864oldincludedir 865includedir 866localstatedir 867sharedstatedir 868sysconfdir 869datadir 870datarootdir 871libexecdir 872sbindir 873bindir 874program_transform_name 875prefix 876exec_prefix 877PACKAGE_URL 878PACKAGE_BUGREPORT 879PACKAGE_STRING 880PACKAGE_VERSION 881PACKAGE_TARNAME 882PACKAGE_NAME 883PATH_SEPARATOR 884SHELL' 885ac_subst_files='' 886ac_user_opts=' 887enable_option_checking 888enable_dependency_tracking 889enable_silent_rules 890enable_shared 891enable_static 892with_pic 893enable_fast_install 894with_gnu_ld 895with_sysroot 896enable_libtool_lock 897enable_selective_werror 898enable_strict_compilation 899enable_specs 900with_xmlto 901with_fop 902with_xsltproc 903with_perl 904enable_unix_transport 905enable_tcp_transport 906enable_ipv6 907enable_local_transport 908enable_secure_rpc 909with_local_transport_order 910enable_loadable_i18n 911enable_loadable_xcursor 912with_launchd 913enable_xthreads 914with_keysymdefdir 915enable_xcms 916enable_xlocale 917enable_xlocaledir 918enable_xf86bigfont 919enable_xkb 920enable_composecache 921with_lint 922enable_lint_library 923with_locale_lib_dir 924enable_malloc0returnsnull 925' 926 ac_precious_vars='build_alias 927host_alias 928target_alias 929CC 930CFLAGS 931LDFLAGS 932LIBS 933CPPFLAGS 934CPP 935PKG_CONFIG 936XMLTO 937FOP 938XSLTPROC 939PERL 940BIGFONT_CFLAGS 941BIGFONT_LIBS 942LINT 943LINT_FLAGS 944X11_CFLAGS 945X11_LIBS' 946 947 948# Initialize some variables set by options. 949ac_init_help= 950ac_init_version=false 951ac_unrecognized_opts= 952ac_unrecognized_sep= 953# The variables have the same names as the options, with 954# dashes changed to underlines. 955cache_file=/dev/null 956exec_prefix=NONE 957no_create= 958no_recursion= 959prefix=NONE 960program_prefix=NONE 961program_suffix=NONE 962program_transform_name=s,x,x, 963silent= 964site= 965srcdir= 966verbose= 967x_includes=NONE 968x_libraries=NONE 969 970# Installation directory options. 971# These are left unexpanded so users can "make install exec_prefix=/foo" 972# and all the variables that are supposed to be based on exec_prefix 973# by default will actually change. 974# Use braces instead of parens because sh, perl, etc. also accept them. 975# (The list follows the same order as the GNU Coding Standards.) 976bindir='${exec_prefix}/bin' 977sbindir='${exec_prefix}/sbin' 978libexecdir='${exec_prefix}/libexec' 979datarootdir='${prefix}/share' 980datadir='${datarootdir}' 981sysconfdir='${prefix}/etc' 982sharedstatedir='${prefix}/com' 983localstatedir='${prefix}/var' 984includedir='${prefix}/include' 985oldincludedir='/usr/include' 986docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 987infodir='${datarootdir}/info' 988htmldir='${docdir}' 989dvidir='${docdir}' 990pdfdir='${docdir}' 991psdir='${docdir}' 992libdir='${exec_prefix}/lib' 993localedir='${datarootdir}/locale' 994mandir='${datarootdir}/man' 995 996ac_prev= 997ac_dashdash= 998for ac_option 999do 1000 # If the previous option needs an argument, assign it. 1001 if test -n "$ac_prev"; then 1002 eval $ac_prev=\$ac_option 1003 ac_prev= 1004 continue 1005 fi 1006 1007 case $ac_option in 1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1009 *=) ac_optarg= ;; 1010 *) ac_optarg=yes ;; 1011 esac 1012 1013 # Accept the important Cygnus configure options, so we can diagnose typos. 1014 1015 case $ac_dashdash$ac_option in 1016 --) 1017 ac_dashdash=yes ;; 1018 1019 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1020 ac_prev=bindir ;; 1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1022 bindir=$ac_optarg ;; 1023 1024 -build | --build | --buil | --bui | --bu) 1025 ac_prev=build_alias ;; 1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1027 build_alias=$ac_optarg ;; 1028 1029 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1031 ac_prev=cache_file ;; 1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1034 cache_file=$ac_optarg ;; 1035 1036 --config-cache | -C) 1037 cache_file=config.cache ;; 1038 1039 -datadir | --datadir | --datadi | --datad) 1040 ac_prev=datadir ;; 1041 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1042 datadir=$ac_optarg ;; 1043 1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1045 | --dataroo | --dataro | --datar) 1046 ac_prev=datarootdir ;; 1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1049 datarootdir=$ac_optarg ;; 1050 1051 -disable-* | --disable-*) 1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1053 # Reject names that are not valid shell variable names. 1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1055 as_fn_error $? "invalid feature name: $ac_useropt" 1056 ac_useropt_orig=$ac_useropt 1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1058 case $ac_user_opts in 1059 *" 1060"enable_$ac_useropt" 1061"*) ;; 1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1063 ac_unrecognized_sep=', ';; 1064 esac 1065 eval enable_$ac_useropt=no ;; 1066 1067 -docdir | --docdir | --docdi | --doc | --do) 1068 ac_prev=docdir ;; 1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1070 docdir=$ac_optarg ;; 1071 1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1073 ac_prev=dvidir ;; 1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1075 dvidir=$ac_optarg ;; 1076 1077 -enable-* | --enable-*) 1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1079 # Reject names that are not valid shell variable names. 1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1081 as_fn_error $? "invalid feature name: $ac_useropt" 1082 ac_useropt_orig=$ac_useropt 1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1084 case $ac_user_opts in 1085 *" 1086"enable_$ac_useropt" 1087"*) ;; 1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1089 ac_unrecognized_sep=', ';; 1090 esac 1091 eval enable_$ac_useropt=\$ac_optarg ;; 1092 1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1095 | --exec | --exe | --ex) 1096 ac_prev=exec_prefix ;; 1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1099 | --exec=* | --exe=* | --ex=*) 1100 exec_prefix=$ac_optarg ;; 1101 1102 -gas | --gas | --ga | --g) 1103 # Obsolete; use --with-gas. 1104 with_gas=yes ;; 1105 1106 -help | --help | --hel | --he | -h) 1107 ac_init_help=long ;; 1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1109 ac_init_help=recursive ;; 1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1111 ac_init_help=short ;; 1112 1113 -host | --host | --hos | --ho) 1114 ac_prev=host_alias ;; 1115 -host=* | --host=* | --hos=* | --ho=*) 1116 host_alias=$ac_optarg ;; 1117 1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1119 ac_prev=htmldir ;; 1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1121 | --ht=*) 1122 htmldir=$ac_optarg ;; 1123 1124 -includedir | --includedir | --includedi | --included | --include \ 1125 | --includ | --inclu | --incl | --inc) 1126 ac_prev=includedir ;; 1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1128 | --includ=* | --inclu=* | --incl=* | --inc=*) 1129 includedir=$ac_optarg ;; 1130 1131 -infodir | --infodir | --infodi | --infod | --info | --inf) 1132 ac_prev=infodir ;; 1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1134 infodir=$ac_optarg ;; 1135 1136 -libdir | --libdir | --libdi | --libd) 1137 ac_prev=libdir ;; 1138 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1139 libdir=$ac_optarg ;; 1140 1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1142 | --libexe | --libex | --libe) 1143 ac_prev=libexecdir ;; 1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1145 | --libexe=* | --libex=* | --libe=*) 1146 libexecdir=$ac_optarg ;; 1147 1148 -localedir | --localedir | --localedi | --localed | --locale) 1149 ac_prev=localedir ;; 1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1151 localedir=$ac_optarg ;; 1152 1153 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1154 | --localstate | --localstat | --localsta | --localst | --locals) 1155 ac_prev=localstatedir ;; 1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1158 localstatedir=$ac_optarg ;; 1159 1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1161 ac_prev=mandir ;; 1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1163 mandir=$ac_optarg ;; 1164 1165 -nfp | --nfp | --nf) 1166 # Obsolete; use --without-fp. 1167 with_fp=no ;; 1168 1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1170 | --no-cr | --no-c | -n) 1171 no_create=yes ;; 1172 1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1175 no_recursion=yes ;; 1176 1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1179 | --oldin | --oldi | --old | --ol | --o) 1180 ac_prev=oldincludedir ;; 1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1184 oldincludedir=$ac_optarg ;; 1185 1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1187 ac_prev=prefix ;; 1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1189 prefix=$ac_optarg ;; 1190 1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1192 | --program-pre | --program-pr | --program-p) 1193 ac_prev=program_prefix ;; 1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1196 program_prefix=$ac_optarg ;; 1197 1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1199 | --program-suf | --program-su | --program-s) 1200 ac_prev=program_suffix ;; 1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1203 program_suffix=$ac_optarg ;; 1204 1205 -program-transform-name | --program-transform-name \ 1206 | --program-transform-nam | --program-transform-na \ 1207 | --program-transform-n | --program-transform- \ 1208 | --program-transform | --program-transfor \ 1209 | --program-transfo | --program-transf \ 1210 | --program-trans | --program-tran \ 1211 | --progr-tra | --program-tr | --program-t) 1212 ac_prev=program_transform_name ;; 1213 -program-transform-name=* | --program-transform-name=* \ 1214 | --program-transform-nam=* | --program-transform-na=* \ 1215 | --program-transform-n=* | --program-transform-=* \ 1216 | --program-transform=* | --program-transfor=* \ 1217 | --program-transfo=* | --program-transf=* \ 1218 | --program-trans=* | --program-tran=* \ 1219 | --progr-tra=* | --program-tr=* | --program-t=*) 1220 program_transform_name=$ac_optarg ;; 1221 1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1223 ac_prev=pdfdir ;; 1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1225 pdfdir=$ac_optarg ;; 1226 1227 -psdir | --psdir | --psdi | --psd | --ps) 1228 ac_prev=psdir ;; 1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1230 psdir=$ac_optarg ;; 1231 1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1233 | -silent | --silent | --silen | --sile | --sil) 1234 silent=yes ;; 1235 1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1237 ac_prev=sbindir ;; 1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1239 | --sbi=* | --sb=*) 1240 sbindir=$ac_optarg ;; 1241 1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1244 | --sharedst | --shareds | --shared | --share | --shar \ 1245 | --sha | --sh) 1246 ac_prev=sharedstatedir ;; 1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1250 | --sha=* | --sh=*) 1251 sharedstatedir=$ac_optarg ;; 1252 1253 -site | --site | --sit) 1254 ac_prev=site ;; 1255 -site=* | --site=* | --sit=*) 1256 site=$ac_optarg ;; 1257 1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1259 ac_prev=srcdir ;; 1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1261 srcdir=$ac_optarg ;; 1262 1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1264 | --syscon | --sysco | --sysc | --sys | --sy) 1265 ac_prev=sysconfdir ;; 1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1268 sysconfdir=$ac_optarg ;; 1269 1270 -target | --target | --targe | --targ | --tar | --ta | --t) 1271 ac_prev=target_alias ;; 1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1273 target_alias=$ac_optarg ;; 1274 1275 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1276 verbose=yes ;; 1277 1278 -version | --version | --versio | --versi | --vers | -V) 1279 ac_init_version=: ;; 1280 1281 -with-* | --with-*) 1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1283 # Reject names that are not valid shell variable names. 1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1285 as_fn_error $? "invalid package name: $ac_useropt" 1286 ac_useropt_orig=$ac_useropt 1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1288 case $ac_user_opts in 1289 *" 1290"with_$ac_useropt" 1291"*) ;; 1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1293 ac_unrecognized_sep=', ';; 1294 esac 1295 eval with_$ac_useropt=\$ac_optarg ;; 1296 1297 -without-* | --without-*) 1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1299 # Reject names that are not valid shell variable names. 1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1301 as_fn_error $? "invalid package name: $ac_useropt" 1302 ac_useropt_orig=$ac_useropt 1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1304 case $ac_user_opts in 1305 *" 1306"with_$ac_useropt" 1307"*) ;; 1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1309 ac_unrecognized_sep=', ';; 1310 esac 1311 eval with_$ac_useropt=no ;; 1312 1313 --x) 1314 # Obsolete; use --with-x. 1315 with_x=yes ;; 1316 1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1318 | --x-incl | --x-inc | --x-in | --x-i) 1319 ac_prev=x_includes ;; 1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1322 x_includes=$ac_optarg ;; 1323 1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1326 ac_prev=x_libraries ;; 1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1329 x_libraries=$ac_optarg ;; 1330 1331 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1332Try \`$0 --help' for more information" 1333 ;; 1334 1335 *=*) 1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1337 # Reject names that are not valid shell variable names. 1338 case $ac_envvar in #( 1339 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1340 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1341 esac 1342 eval $ac_envvar=\$ac_optarg 1343 export $ac_envvar ;; 1344 1345 *) 1346 # FIXME: should be removed in autoconf 3.0. 1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1350 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1351 ;; 1352 1353 esac 1354done 1355 1356if test -n "$ac_prev"; then 1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1358 as_fn_error $? "missing argument to $ac_option" 1359fi 1360 1361if test -n "$ac_unrecognized_opts"; then 1362 case $enable_option_checking in 1363 no) ;; 1364 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1366 esac 1367fi 1368 1369# Check all directory arguments for consistency. 1370for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1371 datadir sysconfdir sharedstatedir localstatedir includedir \ 1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1373 libdir localedir mandir 1374do 1375 eval ac_val=\$$ac_var 1376 # Remove trailing slashes. 1377 case $ac_val in 1378 */ ) 1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1380 eval $ac_var=\$ac_val;; 1381 esac 1382 # Be sure to have absolute directory names. 1383 case $ac_val in 1384 [\\/$]* | ?:[\\/]* ) continue;; 1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1386 esac 1387 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1388done 1389 1390# There might be people who depend on the old broken behavior: `$host' 1391# used to hold the argument of --host etc. 1392# FIXME: To remove some day. 1393build=$build_alias 1394host=$host_alias 1395target=$target_alias 1396 1397# FIXME: To remove some day. 1398if test "x$host_alias" != x; then 1399 if test "x$build_alias" = x; then 1400 cross_compiling=maybe 1401 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1402 If a cross compiler is detected then cross compile mode will be used" >&2 1403 elif test "x$build_alias" != "x$host_alias"; then 1404 cross_compiling=yes 1405 fi 1406fi 1407 1408ac_tool_prefix= 1409test -n "$host_alias" && ac_tool_prefix=$host_alias- 1410 1411test "$silent" = yes && exec 6>/dev/null 1412 1413 1414ac_pwd=`pwd` && test -n "$ac_pwd" && 1415ac_ls_di=`ls -di .` && 1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1417 as_fn_error $? "working directory cannot be determined" 1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1419 as_fn_error $? "pwd does not report name of working directory" 1420 1421 1422# Find the source files, if location was not specified. 1423if test -z "$srcdir"; then 1424 ac_srcdir_defaulted=yes 1425 # Try the directory containing this script, then the parent directory. 1426 ac_confdir=`$as_dirname -- "$as_myself" || 1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1428 X"$as_myself" : 'X\(//\)[^/]' \| \ 1429 X"$as_myself" : 'X\(//\)$' \| \ 1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1431$as_echo X"$as_myself" | 1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)[^/].*/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\/\)$/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\).*/{ 1445 s//\1/ 1446 q 1447 } 1448 s/.*/./; q'` 1449 srcdir=$ac_confdir 1450 if test ! -r "$srcdir/$ac_unique_file"; then 1451 srcdir=.. 1452 fi 1453else 1454 ac_srcdir_defaulted=no 1455fi 1456if test ! -r "$srcdir/$ac_unique_file"; then 1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1459fi 1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1461ac_abs_confdir=`( 1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1463 pwd)` 1464# When building in place, set srcdir=. 1465if test "$ac_abs_confdir" = "$ac_pwd"; then 1466 srcdir=. 1467fi 1468# Remove unnecessary trailing slashes from srcdir. 1469# Double slashes in file names in object file debugging info 1470# mess up M-x gdb in Emacs. 1471case $srcdir in 1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1473esac 1474for ac_var in $ac_precious_vars; do 1475 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1476 eval ac_env_${ac_var}_value=\$${ac_var} 1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1478 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1479done 1480 1481# 1482# Report the --help message. 1483# 1484if test "$ac_init_help" = "long"; then 1485 # Omit some internal or obsolete options to make the list less imposing. 1486 # This message is too long to be a string in the A/UX 3.1 sh. 1487 cat <<_ACEOF 1488\`configure' configures libX11 1.6.2 to adapt to many kinds of systems. 1489 1490Usage: $0 [OPTION]... [VAR=VALUE]... 1491 1492To assign environment variables (e.g., CC, CFLAGS...), specify them as 1493VAR=VALUE. See below for descriptions of some of the useful variables. 1494 1495Defaults for the options are specified in brackets. 1496 1497Configuration: 1498 -h, --help display this help and exit 1499 --help=short display options specific to this package 1500 --help=recursive display the short help of all the included packages 1501 -V, --version display version information and exit 1502 -q, --quiet, --silent do not print \`checking ...' messages 1503 --cache-file=FILE cache test results in FILE [disabled] 1504 -C, --config-cache alias for \`--cache-file=config.cache' 1505 -n, --no-create do not create output files 1506 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1507 1508Installation directories: 1509 --prefix=PREFIX install architecture-independent files in PREFIX 1510 [$ac_default_prefix] 1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1512 [PREFIX] 1513 1514By default, \`make install' will install all the files in 1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1516an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1517for instance \`--prefix=\$HOME'. 1518 1519For better control, use the options below. 1520 1521Fine tuning of the installation directories: 1522 --bindir=DIR user executables [EPREFIX/bin] 1523 --sbindir=DIR system admin executables [EPREFIX/sbin] 1524 --libexecdir=DIR program executables [EPREFIX/libexec] 1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1528 --libdir=DIR object code libraries [EPREFIX/lib] 1529 --includedir=DIR C header files [PREFIX/include] 1530 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1533 --infodir=DIR info documentation [DATAROOTDIR/info] 1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1535 --mandir=DIR man documentation [DATAROOTDIR/man] 1536 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1537 --htmldir=DIR html documentation [DOCDIR] 1538 --dvidir=DIR dvi documentation [DOCDIR] 1539 --pdfdir=DIR pdf documentation [DOCDIR] 1540 --psdir=DIR ps documentation [DOCDIR] 1541_ACEOF 1542 1543 cat <<\_ACEOF 1544 1545Program names: 1546 --program-prefix=PREFIX prepend PREFIX to installed program names 1547 --program-suffix=SUFFIX append SUFFIX to installed program names 1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1549 1550System types: 1551 --build=BUILD configure for building on BUILD [guessed] 1552 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1553_ACEOF 1554fi 1555 1556if test -n "$ac_init_help"; then 1557 case $ac_init_help in 1558 short | recursive ) echo "Configuration of libX11 1.6.2:";; 1559 esac 1560 cat <<\_ACEOF 1561 1562Optional Features: 1563 --disable-option-checking ignore unrecognized --enable/--with options 1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1566 --enable-dependency-tracking 1567 do not reject slow dependency extractors 1568 --disable-dependency-tracking 1569 speeds up one-time build 1570 --enable-silent-rules less verbose build output (undo: "make V=1") 1571 --disable-silent-rules verbose build output (undo: "make V=0") 1572 --enable-shared[=PKGS] build shared libraries [default=yes] 1573 --enable-static[=PKGS] build static libraries [default=yes] 1574 --enable-fast-install[=PKGS] 1575 optimize for fast installation [default=yes] 1576 --disable-libtool-lock avoid locking (might break parallel builds) 1577 --disable-selective-werror 1578 Turn off selective compiler errors. (default: 1579 enabled) 1580 --enable-strict-compilation 1581 Enable all warnings from compiler and make them 1582 errors (default: disabled) 1583 --enable-specs Enable building the specs (default: yes) 1584 --enable-unix-transport Enable UNIX domain socket transport 1585 --enable-tcp-transport Enable TCP socket transport 1586 --enable-ipv6 Enable IPv6 support 1587 --enable-local-transport 1588 Enable os-specific local transport 1589 --enable-secure-rpc Enable Secure RPC 1590 --enable-loadable-i18n Controls loadable i18n module support 1591 --disable-loadable-xcursor 1592 Controls loadable xcursor library support 1593 --disable-xthreads Disable Xlib support for Multithreading 1594 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1595 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1596 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1597 --disable-xf86bigfont Disable XF86BigFont extension support 1598 --disable-xkb Disable XKB support *EXPERIMENTAL* 1599 --disable-composecache Disable compose table cache support 1600 --enable-lint-library Create lint library (default: disabled) 1601 --enable-malloc0returnsnull 1602 malloc(0) returns NULL (default: auto) 1603 1604Optional Packages: 1605 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1606 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1607 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1608 both] 1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1610 --with-sysroot=DIR Search for dependent libraries within DIR 1611 (or the compiler's sysroot if not specified). 1612 --with-xmlto Use xmlto to regenerate documentation (default: 1613 auto) 1614 --with-fop Use fop to regenerate documentation (default: no) 1615 --with-xsltproc Use xsltproc for the transformation of XML documents 1616 (default: auto) 1617 --with-perl Use perl for extracting information from files 1618 (default: auto) 1619 --with-local-transport-order=LIST 1620 preference sorted list of transport types to try for 1621 local connections 1622 --with-launchd Build with support for Apple's launchd (default: 1623 auto) 1624 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1625 include dir) 1626 --with-lint Use a lint-style source code checker (default: 1627 disabled) 1628 --with-locale-lib-dir=DIR 1629 Directory where locale libraries files are installed 1630 (default: $libdir/X11/locale) 1631 1632Some influential environment variables: 1633 CC C compiler command 1634 CFLAGS C compiler flags 1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1636 nonstandard directory <lib dir> 1637 LIBS libraries to pass to the linker, e.g. -l<library> 1638 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1639 you have headers in a nonstandard directory <include dir> 1640 CPP C preprocessor 1641 PKG_CONFIG path to pkg-config utility 1642 XMLTO Path to xmlto command 1643 FOP Path to fop command 1644 XSLTPROC Path to xsltproc command 1645 PERL Path to perl command 1646 BIGFONT_CFLAGS 1647 C compiler flags for BIGFONT, overriding pkg-config 1648 BIGFONT_LIBS 1649 linker flags for BIGFONT, overriding pkg-config 1650 LINT Path to a lint-style command 1651 LINT_FLAGS Flags for the lint-style command 1652 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1653 X11_LIBS linker flags for X11, overriding pkg-config 1654 1655Use these variables to override the choices made by `configure' or to help 1656it to find libraries and programs with nonstandard names/locations. 1657 1658Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1659_ACEOF 1660ac_status=$? 1661fi 1662 1663if test "$ac_init_help" = "recursive"; then 1664 # If there are subdirs, report their specific --help. 1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1666 test -d "$ac_dir" || 1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1668 continue 1669 ac_builddir=. 1670 1671case "$ac_dir" in 1672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1673*) 1674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1675 # A ".." for each directory in $ac_dir_suffix. 1676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1677 case $ac_top_builddir_sub in 1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1680 esac ;; 1681esac 1682ac_abs_top_builddir=$ac_pwd 1683ac_abs_builddir=$ac_pwd$ac_dir_suffix 1684# for backward compatibility: 1685ac_top_builddir=$ac_top_build_prefix 1686 1687case $srcdir in 1688 .) # We are building in place. 1689 ac_srcdir=. 1690 ac_top_srcdir=$ac_top_builddir_sub 1691 ac_abs_top_srcdir=$ac_pwd ;; 1692 [\\/]* | ?:[\\/]* ) # Absolute name. 1693 ac_srcdir=$srcdir$ac_dir_suffix; 1694 ac_top_srcdir=$srcdir 1695 ac_abs_top_srcdir=$srcdir ;; 1696 *) # Relative name. 1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1698 ac_top_srcdir=$ac_top_build_prefix$srcdir 1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1700esac 1701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1702 1703 cd "$ac_dir" || { ac_status=$?; continue; } 1704 # Check for guested configure. 1705 if test -f "$ac_srcdir/configure.gnu"; then 1706 echo && 1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1708 elif test -f "$ac_srcdir/configure"; then 1709 echo && 1710 $SHELL "$ac_srcdir/configure" --help=recursive 1711 else 1712 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1713 fi || ac_status=$? 1714 cd "$ac_pwd" || { ac_status=$?; break; } 1715 done 1716fi 1717 1718test -n "$ac_init_help" && exit $ac_status 1719if $ac_init_version; then 1720 cat <<\_ACEOF 1721libX11 configure 1.6.2 1722generated by GNU Autoconf 2.68 1723 1724Copyright (C) 2010 Free Software Foundation, Inc. 1725This configure script is free software; the Free Software Foundation 1726gives unlimited permission to copy, distribute and modify it. 1727_ACEOF 1728 exit 1729fi 1730 1731## ------------------------ ## 1732## Autoconf initialization. ## 1733## ------------------------ ## 1734 1735# ac_fn_c_try_compile LINENO 1736# -------------------------- 1737# Try to compile conftest.$ac_ext, and return whether this succeeded. 1738ac_fn_c_try_compile () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 rm -f conftest.$ac_objext 1742 if { { ac_try="$ac_compile" 1743case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748$as_echo "$ac_try_echo"; } >&5 1749 (eval "$ac_compile") 2>conftest.err 1750 ac_status=$? 1751 if test -s conftest.err; then 1752 grep -v '^ *+' conftest.err >conftest.er1 1753 cat conftest.er1 >&5 1754 mv -f conftest.er1 conftest.err 1755 fi 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; } && { 1758 test -z "$ac_c_werror_flag" || 1759 test ! -s conftest.err 1760 } && test -s conftest.$ac_objext; then : 1761 ac_retval=0 1762else 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=1 1767fi 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 as_fn_set_status $ac_retval 1770 1771} # ac_fn_c_try_compile 1772 1773# ac_fn_c_try_cpp LINENO 1774# ---------------------- 1775# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1776ac_fn_c_try_cpp () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 if { { ac_try="$ac_cpp conftest.$ac_ext" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } > conftest.i && { 1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 }; then : 1798 ac_retval=0 1799else 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=1 1804fi 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808} # ac_fn_c_try_cpp 1809 1810# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1811# ------------------------------------------------------- 1812# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1813# the include files in INCLUDES and setting the cache variable VAR 1814# accordingly. 1815ac_fn_c_check_header_mongrel () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 if eval \${$3+:} false; then : 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1820$as_echo_n "checking for $2... " >&6; } 1821if eval \${$3+:} false; then : 1822 $as_echo_n "(cached) " >&6 1823fi 1824eval ac_res=\$$3 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826$as_echo "$ac_res" >&6; } 1827else 1828 # Is the header compilable? 1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1830$as_echo_n "checking $2 usability... " >&6; } 1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832/* end confdefs.h. */ 1833$4 1834#include <$2> 1835_ACEOF 1836if ac_fn_c_try_compile "$LINENO"; then : 1837 ac_header_compiler=yes 1838else 1839 ac_header_compiler=no 1840fi 1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1843$as_echo "$ac_header_compiler" >&6; } 1844 1845# Is the header present? 1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1847$as_echo_n "checking $2 presence... " >&6; } 1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850#include <$2> 1851_ACEOF 1852if ac_fn_c_try_cpp "$LINENO"; then : 1853 ac_header_preproc=yes 1854else 1855 ac_header_preproc=no 1856fi 1857rm -f conftest.err conftest.i conftest.$ac_ext 1858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1859$as_echo "$ac_header_preproc" >&6; } 1860 1861# So? What about this header? 1862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1863 yes:no: ) 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1865$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1868 ;; 1869 no:yes:* ) 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1871$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1873$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1875$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1877$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1880( $as_echo "## ---------------------------------------------------------------------- ## 1881## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1882## ---------------------------------------------------------------------- ##" 1883 ) | sed "s/^/$as_me: WARNING: /" >&2 1884 ;; 1885esac 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1887$as_echo_n "checking for $2... " >&6; } 1888if eval \${$3+:} false; then : 1889 $as_echo_n "(cached) " >&6 1890else 1891 eval "$3=\$ac_header_compiler" 1892fi 1893eval ac_res=\$$3 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895$as_echo "$ac_res" >&6; } 1896fi 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 1899} # ac_fn_c_check_header_mongrel 1900 1901# ac_fn_c_try_run LINENO 1902# ---------------------- 1903# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1904# that executables *can* be run. 1905ac_fn_c_try_run () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 if { { ac_try="$ac_link" 1909case "(($ac_try" in 1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1911 *) ac_try_echo=$ac_try;; 1912esac 1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1914$as_echo "$ac_try_echo"; } >&5 1915 (eval "$ac_link") 2>&5 1916 ac_status=$? 1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1919 { { case "(($ac_try" in 1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1921 *) ac_try_echo=$ac_try;; 1922esac 1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1924$as_echo "$ac_try_echo"; } >&5 1925 (eval "$ac_try") 2>&5 1926 ac_status=$? 1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1928 test $ac_status = 0; }; }; then : 1929 ac_retval=0 1930else 1931 $as_echo "$as_me: program exited with status $ac_status" >&5 1932 $as_echo "$as_me: failed program was:" >&5 1933sed 's/^/| /' conftest.$ac_ext >&5 1934 1935 ac_retval=$ac_status 1936fi 1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 as_fn_set_status $ac_retval 1940 1941} # ac_fn_c_try_run 1942 1943# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1944# ------------------------------------------------------- 1945# Tests whether HEADER exists and can be compiled using the include files in 1946# INCLUDES, setting the cache variable VAR accordingly. 1947ac_fn_c_check_header_compile () 1948{ 1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1951$as_echo_n "checking for $2... " >&6; } 1952if eval \${$3+:} false; then : 1953 $as_echo_n "(cached) " >&6 1954else 1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956/* end confdefs.h. */ 1957$4 1958#include <$2> 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO"; then : 1961 eval "$3=yes" 1962else 1963 eval "$3=no" 1964fi 1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972} # ac_fn_c_check_header_compile 1973 1974# ac_fn_c_try_link LINENO 1975# ----------------------- 1976# Try to link conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_c_try_link () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 rm -f conftest.$ac_objext conftest$ac_exeext 1981 if { { ac_try="$ac_link" 1982case "(($ac_try" in 1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1984 *) ac_try_echo=$ac_try;; 1985esac 1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1987$as_echo "$ac_try_echo"; } >&5 1988 (eval "$ac_link") 2>conftest.err 1989 ac_status=$? 1990 if test -s conftest.err; then 1991 grep -v '^ *+' conftest.err >conftest.er1 1992 cat conftest.er1 >&5 1993 mv -f conftest.er1 conftest.err 1994 fi 1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1996 test $ac_status = 0; } && { 1997 test -z "$ac_c_werror_flag" || 1998 test ! -s conftest.err 1999 } && test -s conftest$ac_exeext && { 2000 test "$cross_compiling" = yes || 2001 $as_test_x conftest$ac_exeext 2002 }; then : 2003 ac_retval=0 2004else 2005 $as_echo "$as_me: failed program was:" >&5 2006sed 's/^/| /' conftest.$ac_ext >&5 2007 2008 ac_retval=1 2009fi 2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2012 # interfere with the next link command; also delete a directory that is 2013 # left behind by Apple's compiler. We do this before executing the actions. 2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 as_fn_set_status $ac_retval 2017 2018} # ac_fn_c_try_link 2019 2020# ac_fn_c_check_func LINENO FUNC VAR 2021# ---------------------------------- 2022# Tests whether FUNC exists, setting the cache variable VAR accordingly 2023ac_fn_c_check_func () 2024{ 2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2027$as_echo_n "checking for $2... " >&6; } 2028if eval \${$3+:} false; then : 2029 $as_echo_n "(cached) " >&6 2030else 2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032/* end confdefs.h. */ 2033/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2034 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2035#define $2 innocuous_$2 2036 2037/* System header to define __stub macros and hopefully few prototypes, 2038 which can conflict with char $2 (); below. 2039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2040 <limits.h> exists even on freestanding compilers. */ 2041 2042#ifdef __STDC__ 2043# include <limits.h> 2044#else 2045# include <assert.h> 2046#endif 2047 2048#undef $2 2049 2050/* Override any GCC internal prototype to avoid an error. 2051 Use char because int might match the return type of a GCC 2052 builtin and then its argument prototype would still apply. */ 2053#ifdef __cplusplus 2054extern "C" 2055#endif 2056char $2 (); 2057/* The GNU C library defines this for functions which it implements 2058 to always fail with ENOSYS. Some functions are actually named 2059 something starting with __ and the normal name is an alias. */ 2060#if defined __stub_$2 || defined __stub___$2 2061choke me 2062#endif 2063 2064int 2065main () 2066{ 2067return $2 (); 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_link "$LINENO"; then : 2073 eval "$3=yes" 2074else 2075 eval "$3=no" 2076fi 2077rm -f core conftest.err conftest.$ac_objext \ 2078 conftest$ac_exeext conftest.$ac_ext 2079fi 2080eval ac_res=\$$3 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2082$as_echo "$ac_res" >&6; } 2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2084 2085} # ac_fn_c_check_func 2086 2087# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2088# --------------------------------------------- 2089# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2090# accordingly. 2091ac_fn_c_check_decl () 2092{ 2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2094 as_decl_name=`echo $2|sed 's/ *(.*//'` 2095 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2097$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2098if eval \${$3+:} false; then : 2099 $as_echo_n "(cached) " >&6 2100else 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2102/* end confdefs.h. */ 2103$4 2104int 2105main () 2106{ 2107#ifndef $as_decl_name 2108#ifdef __cplusplus 2109 (void) $as_decl_use; 2110#else 2111 (void) $as_decl_name; 2112#endif 2113#endif 2114 2115 ; 2116 return 0; 2117} 2118_ACEOF 2119if ac_fn_c_try_compile "$LINENO"; then : 2120 eval "$3=yes" 2121else 2122 eval "$3=no" 2123fi 2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2125fi 2126eval ac_res=\$$3 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2128$as_echo "$ac_res" >&6; } 2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2130 2131} # ac_fn_c_check_decl 2132 2133# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2134# ---------------------------------------------------- 2135# Tries to find if the field MEMBER exists in type AGGR, after including 2136# INCLUDES, setting cache variable VAR accordingly. 2137ac_fn_c_check_member () 2138{ 2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2141$as_echo_n "checking for $2.$3... " >&6; } 2142if eval \${$4+:} false; then : 2143 $as_echo_n "(cached) " >&6 2144else 2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146/* end confdefs.h. */ 2147$5 2148int 2149main () 2150{ 2151static $2 ac_aggr; 2152if (ac_aggr.$3) 2153return 0; 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158if ac_fn_c_try_compile "$LINENO"; then : 2159 eval "$4=yes" 2160else 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$5 2164int 2165main () 2166{ 2167static $2 ac_aggr; 2168if (sizeof ac_aggr.$3) 2169return 0; 2170 ; 2171 return 0; 2172} 2173_ACEOF 2174if ac_fn_c_try_compile "$LINENO"; then : 2175 eval "$4=yes" 2176else 2177 eval "$4=no" 2178fi 2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2182fi 2183eval ac_res=\$$4 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2185$as_echo "$ac_res" >&6; } 2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2187 2188} # ac_fn_c_check_member 2189 2190# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2191# ------------------------------------------- 2192# Tests whether TYPE exists after having included INCLUDES, setting cache 2193# variable VAR accordingly. 2194ac_fn_c_check_type () 2195{ 2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2198$as_echo_n "checking for $2... " >&6; } 2199if eval \${$3+:} false; then : 2200 $as_echo_n "(cached) " >&6 2201else 2202 eval "$3=no" 2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2204/* end confdefs.h. */ 2205$4 2206int 2207main () 2208{ 2209if (sizeof ($2)) 2210 return 0; 2211 ; 2212 return 0; 2213} 2214_ACEOF 2215if ac_fn_c_try_compile "$LINENO"; then : 2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2217/* end confdefs.h. */ 2218$4 2219int 2220main () 2221{ 2222if (sizeof (($2))) 2223 return 0; 2224 ; 2225 return 0; 2226} 2227_ACEOF 2228if ac_fn_c_try_compile "$LINENO"; then : 2229 2230else 2231 eval "$3=yes" 2232fi 2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2234fi 2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2236fi 2237eval ac_res=\$$3 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2239$as_echo "$ac_res" >&6; } 2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2241 2242} # ac_fn_c_check_type 2243cat >config.log <<_ACEOF 2244This file contains any messages produced by compilers while 2245running configure, to aid debugging if configure makes a mistake. 2246 2247It was created by libX11 $as_me 1.6.2, which was 2248generated by GNU Autoconf 2.68. Invocation command line was 2249 2250 $ $0 $@ 2251 2252_ACEOF 2253exec 5>>config.log 2254{ 2255cat <<_ASUNAME 2256## --------- ## 2257## Platform. ## 2258## --------- ## 2259 2260hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2261uname -m = `(uname -m) 2>/dev/null || echo unknown` 2262uname -r = `(uname -r) 2>/dev/null || echo unknown` 2263uname -s = `(uname -s) 2>/dev/null || echo unknown` 2264uname -v = `(uname -v) 2>/dev/null || echo unknown` 2265 2266/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2267/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2268 2269/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2270/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2271/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2272/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2273/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2274/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2275/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2276 2277_ASUNAME 2278 2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2280for as_dir in $PATH 2281do 2282 IFS=$as_save_IFS 2283 test -z "$as_dir" && as_dir=. 2284 $as_echo "PATH: $as_dir" 2285 done 2286IFS=$as_save_IFS 2287 2288} >&5 2289 2290cat >&5 <<_ACEOF 2291 2292 2293## ----------- ## 2294## Core tests. ## 2295## ----------- ## 2296 2297_ACEOF 2298 2299 2300# Keep a trace of the command line. 2301# Strip out --no-create and --no-recursion so they do not pile up. 2302# Strip out --silent because we don't want to record it for future runs. 2303# Also quote any args containing shell meta-characters. 2304# Make two passes to allow for proper duplicate-argument suppression. 2305ac_configure_args= 2306ac_configure_args0= 2307ac_configure_args1= 2308ac_must_keep_next=false 2309for ac_pass in 1 2 2310do 2311 for ac_arg 2312 do 2313 case $ac_arg in 2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2316 | -silent | --silent | --silen | --sile | --sil) 2317 continue ;; 2318 *\'*) 2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2320 esac 2321 case $ac_pass in 2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2323 2) 2324 as_fn_append ac_configure_args1 " '$ac_arg'" 2325 if test $ac_must_keep_next = true; then 2326 ac_must_keep_next=false # Got value, back to normal. 2327 else 2328 case $ac_arg in 2329 *=* | --config-cache | -C | -disable-* | --disable-* \ 2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2332 | -with-* | --with-* | -without-* | --without-* | --x) 2333 case "$ac_configure_args0 " in 2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2335 esac 2336 ;; 2337 -* ) ac_must_keep_next=true ;; 2338 esac 2339 fi 2340 as_fn_append ac_configure_args " '$ac_arg'" 2341 ;; 2342 esac 2343 done 2344done 2345{ ac_configure_args0=; unset ac_configure_args0;} 2346{ ac_configure_args1=; unset ac_configure_args1;} 2347 2348# When interrupted or exit'd, cleanup temporary files, and complete 2349# config.log. We remove comments because anyway the quotes in there 2350# would cause problems or look ugly. 2351# WARNING: Use '\'' to represent an apostrophe within the trap. 2352# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2353trap 'exit_status=$? 2354 # Save into config.log some information that might help in debugging. 2355 { 2356 echo 2357 2358 $as_echo "## ---------------- ## 2359## Cache variables. ## 2360## ---------------- ##" 2361 echo 2362 # The following way of writing the cache mishandles newlines in values, 2363( 2364 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2365 eval ac_val=\$$ac_var 2366 case $ac_val in #( 2367 *${as_nl}*) 2368 case $ac_var in #( 2369 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2370$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2371 esac 2372 case $ac_var in #( 2373 _ | IFS | as_nl) ;; #( 2374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2375 *) { eval $ac_var=; unset $ac_var;} ;; 2376 esac ;; 2377 esac 2378 done 2379 (set) 2>&1 | 2380 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2381 *${as_nl}ac_space=\ *) 2382 sed -n \ 2383 "s/'\''/'\''\\\\'\'''\''/g; 2384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2385 ;; #( 2386 *) 2387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2388 ;; 2389 esac | 2390 sort 2391) 2392 echo 2393 2394 $as_echo "## ----------------- ## 2395## Output variables. ## 2396## ----------------- ##" 2397 echo 2398 for ac_var in $ac_subst_vars 2399 do 2400 eval ac_val=\$$ac_var 2401 case $ac_val in 2402 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2403 esac 2404 $as_echo "$ac_var='\''$ac_val'\''" 2405 done | sort 2406 echo 2407 2408 if test -n "$ac_subst_files"; then 2409 $as_echo "## ------------------- ## 2410## File substitutions. ## 2411## ------------------- ##" 2412 echo 2413 for ac_var in $ac_subst_files 2414 do 2415 eval ac_val=\$$ac_var 2416 case $ac_val in 2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2418 esac 2419 $as_echo "$ac_var='\''$ac_val'\''" 2420 done | sort 2421 echo 2422 fi 2423 2424 if test -s confdefs.h; then 2425 $as_echo "## ----------- ## 2426## confdefs.h. ## 2427## ----------- ##" 2428 echo 2429 cat confdefs.h 2430 echo 2431 fi 2432 test "$ac_signal" != 0 && 2433 $as_echo "$as_me: caught signal $ac_signal" 2434 $as_echo "$as_me: exit $exit_status" 2435 } >&5 2436 rm -f core *.core core.conftest.* && 2437 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2438 exit $exit_status 2439' 0 2440for ac_signal in 1 2 13 15; do 2441 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2442done 2443ac_signal=0 2444 2445# confdefs.h avoids OS command line length limits that DEFS can exceed. 2446rm -f -r conftest* confdefs.h 2447 2448$as_echo "/* confdefs.h */" > confdefs.h 2449 2450# Predefined preprocessor variables. 2451 2452cat >>confdefs.h <<_ACEOF 2453#define PACKAGE_NAME "$PACKAGE_NAME" 2454_ACEOF 2455 2456cat >>confdefs.h <<_ACEOF 2457#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2458_ACEOF 2459 2460cat >>confdefs.h <<_ACEOF 2461#define PACKAGE_VERSION "$PACKAGE_VERSION" 2462_ACEOF 2463 2464cat >>confdefs.h <<_ACEOF 2465#define PACKAGE_STRING "$PACKAGE_STRING" 2466_ACEOF 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2470_ACEOF 2471 2472cat >>confdefs.h <<_ACEOF 2473#define PACKAGE_URL "$PACKAGE_URL" 2474_ACEOF 2475 2476 2477# Let the site file select an alternate cache file if it wants to. 2478# Prefer an explicitly selected file to automatically selected ones. 2479ac_site_file1=NONE 2480ac_site_file2=NONE 2481if test -n "$CONFIG_SITE"; then 2482 # We do not want a PATH search for config.site. 2483 case $CONFIG_SITE in #(( 2484 -*) ac_site_file1=./$CONFIG_SITE;; 2485 */*) ac_site_file1=$CONFIG_SITE;; 2486 *) ac_site_file1=./$CONFIG_SITE;; 2487 esac 2488elif test "x$prefix" != xNONE; then 2489 ac_site_file1=$prefix/share/config.site 2490 ac_site_file2=$prefix/etc/config.site 2491else 2492 ac_site_file1=$ac_default_prefix/share/config.site 2493 ac_site_file2=$ac_default_prefix/etc/config.site 2494fi 2495for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2496do 2497 test "x$ac_site_file" = xNONE && continue 2498 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2500$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2501 sed 's/^/| /' "$ac_site_file" >&5 2502 . "$ac_site_file" \ 2503 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2505as_fn_error $? "failed to load site script $ac_site_file 2506See \`config.log' for more details" "$LINENO" 5; } 2507 fi 2508done 2509 2510if test -r "$cache_file"; then 2511 # Some versions of bash will fail to source /dev/null (special files 2512 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2513 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2515$as_echo "$as_me: loading cache $cache_file" >&6;} 2516 case $cache_file in 2517 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2518 *) . "./$cache_file";; 2519 esac 2520 fi 2521else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2523$as_echo "$as_me: creating cache $cache_file" >&6;} 2524 >$cache_file 2525fi 2526 2527as_fn_append ac_header_list " stdlib.h" 2528as_fn_append ac_header_list " unistd.h" 2529as_fn_append ac_header_list " sys/param.h" 2530# Check that the precious variables saved in the cache have kept the same 2531# value. 2532ac_cache_corrupted=false 2533for ac_var in $ac_precious_vars; do 2534 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2535 eval ac_new_set=\$ac_env_${ac_var}_set 2536 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2537 eval ac_new_val=\$ac_env_${ac_var}_value 2538 case $ac_old_set,$ac_new_set in 2539 set,) 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2541$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2542 ac_cache_corrupted=: ;; 2543 ,set) 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2545$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2546 ac_cache_corrupted=: ;; 2547 ,);; 2548 *) 2549 if test "x$ac_old_val" != "x$ac_new_val"; then 2550 # differences in whitespace do not lead to failure. 2551 ac_old_val_w=`echo x $ac_old_val` 2552 ac_new_val_w=`echo x $ac_new_val` 2553 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2555$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2556 ac_cache_corrupted=: 2557 else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2559$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2560 eval $ac_var=\$ac_old_val 2561 fi 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2563$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2565$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2566 fi;; 2567 esac 2568 # Pass precious variables to config.status. 2569 if test "$ac_new_set" = set; then 2570 case $ac_new_val in 2571 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2572 *) ac_arg=$ac_var=$ac_new_val ;; 2573 esac 2574 case " $ac_configure_args " in 2575 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2576 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2577 esac 2578 fi 2579done 2580if $ac_cache_corrupted; then 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2584$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2585 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2586fi 2587## -------------------- ## 2588## Main body of script. ## 2589## -------------------- ## 2590 2591ac_ext=c 2592ac_cpp='$CPP $CPPFLAGS' 2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2595ac_compiler_gnu=$ac_cv_c_compiler_gnu 2596 2597 2598 2599ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 2600 2601 2602ac_aux_dir= 2603for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2604 if test -f "$ac_dir/install-sh"; then 2605 ac_aux_dir=$ac_dir 2606 ac_install_sh="$ac_aux_dir/install-sh -c" 2607 break 2608 elif test -f "$ac_dir/install.sh"; then 2609 ac_aux_dir=$ac_dir 2610 ac_install_sh="$ac_aux_dir/install.sh -c" 2611 break 2612 elif test -f "$ac_dir/shtool"; then 2613 ac_aux_dir=$ac_dir 2614 ac_install_sh="$ac_aux_dir/shtool install -c" 2615 break 2616 fi 2617done 2618if test -z "$ac_aux_dir"; then 2619 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2620fi 2621 2622# These three variables are undocumented and unsupported, 2623# and are intended to be withdrawn in a future Autoconf release. 2624# They can cause serious problems if a builder's source tree is in a directory 2625# whose full name contains unusual characters. 2626ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2627ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2628ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2629 2630 2631# Make sure we can run config.sub. 2632$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2633 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2634 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2636$as_echo_n "checking build system type... " >&6; } 2637if ${ac_cv_build+:} false; then : 2638 $as_echo_n "(cached) " >&6 2639else 2640 ac_build_alias=$build_alias 2641test "x$ac_build_alias" = x && 2642 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2643test "x$ac_build_alias" = x && 2644 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2645ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2646 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2647 2648fi 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2650$as_echo "$ac_cv_build" >&6; } 2651case $ac_cv_build in 2652*-*-*) ;; 2653*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2654esac 2655build=$ac_cv_build 2656ac_save_IFS=$IFS; IFS='-' 2657set x $ac_cv_build 2658shift 2659build_cpu=$1 2660build_vendor=$2 2661shift; shift 2662# Remember, the first character of IFS is used to create $*, 2663# except with old shells: 2664build_os=$* 2665IFS=$ac_save_IFS 2666case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2667 2668 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2670$as_echo_n "checking host system type... " >&6; } 2671if ${ac_cv_host+:} false; then : 2672 $as_echo_n "(cached) " >&6 2673else 2674 if test "x$host_alias" = x; then 2675 ac_cv_host=$ac_cv_build 2676else 2677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2678 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2679fi 2680 2681fi 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2683$as_echo "$ac_cv_host" >&6; } 2684case $ac_cv_host in 2685*-*-*) ;; 2686*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2687esac 2688host=$ac_cv_host 2689ac_save_IFS=$IFS; IFS='-' 2690set x $ac_cv_host 2691shift 2692host_cpu=$1 2693host_vendor=$2 2694shift; shift 2695# Remember, the first character of IFS is used to create $*, 2696# except with old shells: 2697host_os=$* 2698IFS=$ac_save_IFS 2699case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2700 2701 2702# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2703# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2704# to avoid autoconf errors. 2705# expand $ac_aux_dir to an absolute path 2706am_aux_dir=`cd $ac_aux_dir && pwd` 2707 2708ac_ext=c 2709ac_cpp='$CPP $CPPFLAGS' 2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2712ac_compiler_gnu=$ac_cv_c_compiler_gnu 2713if test -n "$ac_tool_prefix"; then 2714 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2715set dummy ${ac_tool_prefix}gcc; ac_word=$2 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2717$as_echo_n "checking for $ac_word... " >&6; } 2718if ${ac_cv_prog_CC+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 if test -n "$CC"; then 2722 ac_cv_prog_CC="$CC" # Let the user override the test. 2723else 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2731 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2733 break 2 2734 fi 2735done 2736 done 2737IFS=$as_save_IFS 2738 2739fi 2740fi 2741CC=$ac_cv_prog_CC 2742if test -n "$CC"; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2744$as_echo "$CC" >&6; } 2745else 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2747$as_echo "no" >&6; } 2748fi 2749 2750 2751fi 2752if test -z "$ac_cv_prog_CC"; then 2753 ac_ct_CC=$CC 2754 # Extract the first word of "gcc", so it can be a program name with args. 2755set dummy gcc; ac_word=$2 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2757$as_echo_n "checking for $ac_word... " >&6; } 2758if ${ac_cv_prog_ac_ct_CC+:} false; then : 2759 $as_echo_n "(cached) " >&6 2760else 2761 if test -n "$ac_ct_CC"; then 2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2771 ac_cv_prog_ac_ct_CC="gcc" 2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776 done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781ac_ct_CC=$ac_cv_prog_ac_ct_CC 2782if test -n "$ac_ct_CC"; then 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2784$as_echo "$ac_ct_CC" >&6; } 2785else 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2787$as_echo "no" >&6; } 2788fi 2789 2790 if test "x$ac_ct_CC" = x; then 2791 CC="" 2792 else 2793 case $cross_compiling:$ac_tool_warned in 2794yes:) 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2797ac_tool_warned=yes ;; 2798esac 2799 CC=$ac_ct_CC 2800 fi 2801else 2802 CC="$ac_cv_prog_CC" 2803fi 2804 2805if test -z "$CC"; then 2806 if test -n "$ac_tool_prefix"; then 2807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2808set dummy ${ac_tool_prefix}cc; ac_word=$2 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if ${ac_cv_prog_CC+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_CC="${ac_tool_prefix}cc" 2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829 done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834CC=$ac_cv_prog_CC 2835if test -n "$CC"; then 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2837$as_echo "$CC" >&6; } 2838else 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2840$as_echo "no" >&6; } 2841fi 2842 2843 2844 fi 2845fi 2846if test -z "$CC"; then 2847 # Extract the first word of "cc", so it can be a program name with args. 2848set dummy cc; ac_word=$2 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2850$as_echo_n "checking for $ac_word... " >&6; } 2851if ${ac_cv_prog_CC+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857 ac_prog_rejected=no 2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859for as_dir in $PATH 2860do 2861 IFS=$as_save_IFS 2862 test -z "$as_dir" && as_dir=. 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2866 ac_prog_rejected=yes 2867 continue 2868 fi 2869 ac_cv_prog_CC="cc" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877if test $ac_prog_rejected = yes; then 2878 # We found a bogon in the path, so make sure we never use it. 2879 set dummy $ac_cv_prog_CC 2880 shift 2881 if test $# != 0; then 2882 # We chose a different compiler from the bogus one. 2883 # However, it has the same basename, so the bogon will be chosen 2884 # first if we set CC to just the basename; use the full file name. 2885 shift 2886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2887 fi 2888fi 2889fi 2890fi 2891CC=$ac_cv_prog_CC 2892if test -n "$CC"; then 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2894$as_echo "$CC" >&6; } 2895else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901fi 2902if test -z "$CC"; then 2903 if test -n "$ac_tool_prefix"; then 2904 for ac_prog in cl.exe 2905 do 2906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2909$as_echo_n "checking for $ac_word... " >&6; } 2910if ${ac_cv_prog_CC+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 if test -n "$CC"; then 2914 ac_cv_prog_CC="$CC" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 test -z "$as_dir" && as_dir=. 2921 for ac_exec_ext in '' $ac_executable_extensions; do 2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2925 break 2 2926 fi 2927done 2928 done 2929IFS=$as_save_IFS 2930 2931fi 2932fi 2933CC=$ac_cv_prog_CC 2934if test -n "$CC"; then 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2936$as_echo "$CC" >&6; } 2937else 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2939$as_echo "no" >&6; } 2940fi 2941 2942 2943 test -n "$CC" && break 2944 done 2945fi 2946if test -z "$CC"; then 2947 ac_ct_CC=$CC 2948 for ac_prog in cl.exe 2949do 2950 # Extract the first word of "$ac_prog", so it can be a program name with args. 2951set dummy $ac_prog; ac_word=$2 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2953$as_echo_n "checking for $ac_word... " >&6; } 2954if ${ac_cv_prog_ac_ct_CC+:} false; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 if test -n "$ac_ct_CC"; then 2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_prog_ac_ct_CC="$ac_prog" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977ac_ct_CC=$ac_cv_prog_ac_ct_CC 2978if test -n "$ac_ct_CC"; then 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2980$as_echo "$ac_ct_CC" >&6; } 2981else 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983$as_echo "no" >&6; } 2984fi 2985 2986 2987 test -n "$ac_ct_CC" && break 2988done 2989 2990 if test "x$ac_ct_CC" = x; then 2991 CC="" 2992 else 2993 case $cross_compiling:$ac_tool_warned in 2994yes:) 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2997ac_tool_warned=yes ;; 2998esac 2999 CC=$ac_ct_CC 3000 fi 3001fi 3002 3003fi 3004 3005 3006test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3008as_fn_error $? "no acceptable C compiler found in \$PATH 3009See \`config.log' for more details" "$LINENO" 5; } 3010 3011# Provide some information about the compiler. 3012$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3013set X $ac_compile 3014ac_compiler=$2 3015for ac_option in --version -v -V -qversion; do 3016 { { ac_try="$ac_compiler $ac_option >&5" 3017case "(($ac_try" in 3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3019 *) ac_try_echo=$ac_try;; 3020esac 3021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3022$as_echo "$ac_try_echo"; } >&5 3023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3024 ac_status=$? 3025 if test -s conftest.err; then 3026 sed '10a\ 3027... rest of stderr output deleted ... 3028 10q' conftest.err >conftest.er1 3029 cat conftest.er1 >&5 3030 fi 3031 rm -f conftest.er1 conftest.err 3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3033 test $ac_status = 0; } 3034done 3035 3036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037/* end confdefs.h. */ 3038 3039int 3040main () 3041{ 3042 3043 ; 3044 return 0; 3045} 3046_ACEOF 3047ac_clean_files_save=$ac_clean_files 3048ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3049# Try to create an executable without -o first, disregard a.out. 3050# It will help us diagnose broken compilers, and finding out an intuition 3051# of exeext. 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3053$as_echo_n "checking whether the C compiler works... " >&6; } 3054ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3055 3056# The possible output files: 3057ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3058 3059ac_rmfiles= 3060for ac_file in $ac_files 3061do 3062 case $ac_file in 3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3064 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3065 esac 3066done 3067rm -f $ac_rmfiles 3068 3069if { { ac_try="$ac_link_default" 3070case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073esac 3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3075$as_echo "$ac_try_echo"; } >&5 3076 (eval "$ac_link_default") 2>&5 3077 ac_status=$? 3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3079 test $ac_status = 0; }; then : 3080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3081# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3082# in a Makefile. We should not override ac_cv_exeext if it was cached, 3083# so that the user can short-circuit this test for compilers unknown to 3084# Autoconf. 3085for ac_file in $ac_files '' 3086do 3087 test -f "$ac_file" || continue 3088 case $ac_file in 3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3090 ;; 3091 [ab].out ) 3092 # We found the default executable, but exeext='' is most 3093 # certainly right. 3094 break;; 3095 *.* ) 3096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3097 then :; else 3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3099 fi 3100 # We set ac_cv_exeext here because the later test for it is not 3101 # safe: cross compilers may not add the suffix if given an `-o' 3102 # argument, so we may need to know it at that point already. 3103 # Even if this section looks crufty: it has the advantage of 3104 # actually working. 3105 break;; 3106 * ) 3107 break;; 3108 esac 3109done 3110test "$ac_cv_exeext" = no && ac_cv_exeext= 3111 3112else 3113 ac_file='' 3114fi 3115if test -z "$ac_file"; then : 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117$as_echo "no" >&6; } 3118$as_echo "$as_me: failed program was:" >&5 3119sed 's/^/| /' conftest.$ac_ext >&5 3120 3121{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3123as_fn_error 77 "C compiler cannot create executables 3124See \`config.log' for more details" "$LINENO" 5; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3127$as_echo "yes" >&6; } 3128fi 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3130$as_echo_n "checking for C compiler default output file name... " >&6; } 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3132$as_echo "$ac_file" >&6; } 3133ac_exeext=$ac_cv_exeext 3134 3135rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3136ac_clean_files=$ac_clean_files_save 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3138$as_echo_n "checking for suffix of executables... " >&6; } 3139if { { ac_try="$ac_link" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145$as_echo "$ac_try_echo"; } >&5 3146 (eval "$ac_link") 2>&5 3147 ac_status=$? 3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; }; then : 3150 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3151# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3152# work properly (i.e., refer to `conftest.exe'), while it won't with 3153# `rm'. 3154for ac_file in conftest.exe conftest conftest.*; do 3155 test -f "$ac_file" || continue 3156 case $ac_file in 3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3159 break;; 3160 * ) break;; 3161 esac 3162done 3163else 3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3166as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3167See \`config.log' for more details" "$LINENO" 5; } 3168fi 3169rm -f conftest conftest$ac_cv_exeext 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3171$as_echo "$ac_cv_exeext" >&6; } 3172 3173rm -f conftest.$ac_ext 3174EXEEXT=$ac_cv_exeext 3175ac_exeext=$EXEEXT 3176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177/* end confdefs.h. */ 3178#include <stdio.h> 3179int 3180main () 3181{ 3182FILE *f = fopen ("conftest.out", "w"); 3183 return ferror (f) || fclose (f) != 0; 3184 3185 ; 3186 return 0; 3187} 3188_ACEOF 3189ac_clean_files="$ac_clean_files conftest.out" 3190# Check that the compiler produces executables we can run. If not, either 3191# the compiler is broken, or we cross compile. 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3193$as_echo_n "checking whether we are cross compiling... " >&6; } 3194if test "$cross_compiling" != yes; then 3195 { { ac_try="$ac_link" 3196case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3201$as_echo "$ac_try_echo"; } >&5 3202 (eval "$ac_link") 2>&5 3203 ac_status=$? 3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3205 test $ac_status = 0; } 3206 if { ac_try='./conftest$ac_cv_exeext' 3207 { { case "(($ac_try" in 3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3209 *) ac_try_echo=$ac_try;; 3210esac 3211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3212$as_echo "$ac_try_echo"; } >&5 3213 (eval "$ac_try") 2>&5 3214 ac_status=$? 3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3216 test $ac_status = 0; }; }; then 3217 cross_compiling=no 3218 else 3219 if test "$cross_compiling" = maybe; then 3220 cross_compiling=yes 3221 else 3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3224as_fn_error $? "cannot run C compiled programs. 3225If you meant to cross compile, use \`--host'. 3226See \`config.log' for more details" "$LINENO" 5; } 3227 fi 3228 fi 3229fi 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3231$as_echo "$cross_compiling" >&6; } 3232 3233rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3234ac_clean_files=$ac_clean_files_save 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3236$as_echo_n "checking for suffix of object files... " >&6; } 3237if ${ac_cv_objext+:} false; then : 3238 $as_echo_n "(cached) " >&6 3239else 3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241/* end confdefs.h. */ 3242 3243int 3244main () 3245{ 3246 3247 ; 3248 return 0; 3249} 3250_ACEOF 3251rm -f conftest.o conftest.obj 3252if { { ac_try="$ac_compile" 3253case "(($ac_try" in 3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3255 *) ac_try_echo=$ac_try;; 3256esac 3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3258$as_echo "$ac_try_echo"; } >&5 3259 (eval "$ac_compile") 2>&5 3260 ac_status=$? 3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3262 test $ac_status = 0; }; then : 3263 for ac_file in conftest.o conftest.obj conftest.*; do 3264 test -f "$ac_file" || continue; 3265 case $ac_file in 3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3268 break;; 3269 esac 3270done 3271else 3272 $as_echo "$as_me: failed program was:" >&5 3273sed 's/^/| /' conftest.$ac_ext >&5 3274 3275{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3277as_fn_error $? "cannot compute suffix of object files: cannot compile 3278See \`config.log' for more details" "$LINENO" 5; } 3279fi 3280rm -f conftest.$ac_cv_objext conftest.$ac_ext 3281fi 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3283$as_echo "$ac_cv_objext" >&6; } 3284OBJEXT=$ac_cv_objext 3285ac_objext=$OBJEXT 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3287$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3288if ${ac_cv_c_compiler_gnu+:} false; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3292/* end confdefs.h. */ 3293 3294int 3295main () 3296{ 3297#ifndef __GNUC__ 3298 choke me 3299#endif 3300 3301 ; 3302 return 0; 3303} 3304_ACEOF 3305if ac_fn_c_try_compile "$LINENO"; then : 3306 ac_compiler_gnu=yes 3307else 3308 ac_compiler_gnu=no 3309fi 3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3311ac_cv_c_compiler_gnu=$ac_compiler_gnu 3312 3313fi 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3315$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3316if test $ac_compiler_gnu = yes; then 3317 GCC=yes 3318else 3319 GCC= 3320fi 3321ac_test_CFLAGS=${CFLAGS+set} 3322ac_save_CFLAGS=$CFLAGS 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3324$as_echo_n "checking whether $CC accepts -g... " >&6; } 3325if ${ac_cv_prog_cc_g+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 ac_save_c_werror_flag=$ac_c_werror_flag 3329 ac_c_werror_flag=yes 3330 ac_cv_prog_cc_g=no 3331 CFLAGS="-g" 3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3333/* end confdefs.h. */ 3334 3335int 3336main () 3337{ 3338 3339 ; 3340 return 0; 3341} 3342_ACEOF 3343if ac_fn_c_try_compile "$LINENO"; then : 3344 ac_cv_prog_cc_g=yes 3345else 3346 CFLAGS="" 3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358if ac_fn_c_try_compile "$LINENO"; then : 3359 3360else 3361 ac_c_werror_flag=$ac_save_c_werror_flag 3362 CFLAGS="-g" 3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3364/* end confdefs.h. */ 3365 3366int 3367main () 3368{ 3369 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374if ac_fn_c_try_compile "$LINENO"; then : 3375 ac_cv_prog_cc_g=yes 3376fi 3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3378fi 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3380fi 3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3382 ac_c_werror_flag=$ac_save_c_werror_flag 3383fi 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3385$as_echo "$ac_cv_prog_cc_g" >&6; } 3386if test "$ac_test_CFLAGS" = set; then 3387 CFLAGS=$ac_save_CFLAGS 3388elif test $ac_cv_prog_cc_g = yes; then 3389 if test "$GCC" = yes; then 3390 CFLAGS="-g -O2" 3391 else 3392 CFLAGS="-g" 3393 fi 3394else 3395 if test "$GCC" = yes; then 3396 CFLAGS="-O2" 3397 else 3398 CFLAGS= 3399 fi 3400fi 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3402$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3403if ${ac_cv_prog_cc_c89+:} false; then : 3404 $as_echo_n "(cached) " >&6 3405else 3406 ac_cv_prog_cc_c89=no 3407ac_save_CC=$CC 3408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3409/* end confdefs.h. */ 3410#include <stdarg.h> 3411#include <stdio.h> 3412#include <sys/types.h> 3413#include <sys/stat.h> 3414/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3415struct buf { int x; }; 3416FILE * (*rcsopen) (struct buf *, struct stat *, int); 3417static char *e (p, i) 3418 char **p; 3419 int i; 3420{ 3421 return p[i]; 3422} 3423static char *f (char * (*g) (char **, int), char **p, ...) 3424{ 3425 char *s; 3426 va_list v; 3427 va_start (v,p); 3428 s = g (p, va_arg (v,int)); 3429 va_end (v); 3430 return s; 3431} 3432 3433/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3434 function prototypes and stuff, but not '\xHH' hex character constants. 3435 These don't provoke an error unfortunately, instead are silently treated 3436 as 'x'. The following induces an error, until -std is added to get 3437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3438 array size at least. It's necessary to write '\x00'==0 to get something 3439 that's true only with -std. */ 3440int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3441 3442/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3443 inside strings and character constants. */ 3444#define FOO(x) 'x' 3445int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3446 3447int test (int i, double x); 3448struct s1 {int (*f) (int a);}; 3449struct s2 {int (*f) (double a);}; 3450int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3451int argc; 3452char **argv; 3453int 3454main () 3455{ 3456return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3457 ; 3458 return 0; 3459} 3460_ACEOF 3461for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3463do 3464 CC="$ac_save_CC $ac_arg" 3465 if ac_fn_c_try_compile "$LINENO"; then : 3466 ac_cv_prog_cc_c89=$ac_arg 3467fi 3468rm -f core conftest.err conftest.$ac_objext 3469 test "x$ac_cv_prog_cc_c89" != "xno" && break 3470done 3471rm -f conftest.$ac_ext 3472CC=$ac_save_CC 3473 3474fi 3475# AC_CACHE_VAL 3476case "x$ac_cv_prog_cc_c89" in 3477 x) 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3479$as_echo "none needed" >&6; } ;; 3480 xno) 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3482$as_echo "unsupported" >&6; } ;; 3483 *) 3484 CC="$CC $ac_cv_prog_cc_c89" 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3486$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3487esac 3488if test "x$ac_cv_prog_cc_c89" != xno; then : 3489 3490fi 3491 3492ac_ext=c 3493ac_cpp='$CPP $CPPFLAGS' 3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3496ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 whether $CC understands -c and -o together" >&5 3504$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3505if ${am_cv_prog_cc_c_o+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510 3511int 3512main () 3513{ 3514 3515 ; 3516 return 0; 3517} 3518_ACEOF 3519 # Make sure it works both with $CC and with simple cc. 3520 # Following AC_PROG_CC_C_O, we do the test twice because some 3521 # compilers refuse to overwrite an existing .o file with -o, 3522 # though they will create one. 3523 am_cv_prog_cc_c_o=yes 3524 for am_i in 1 2; do 3525 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3526 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3527 ac_status=$? 3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3529 (exit $ac_status); } \ 3530 && test -f conftest2.$ac_objext; then 3531 : OK 3532 else 3533 am_cv_prog_cc_c_o=no 3534 break 3535 fi 3536 done 3537 rm -f core conftest* 3538 unset am_i 3539fi 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3541$as_echo "$am_cv_prog_cc_c_o" >&6; } 3542if test "$am_cv_prog_cc_c_o" != yes; then 3543 # Losing compiler, so override with the script. 3544 # FIXME: It is wrong to rewrite CC. 3545 # But if we don't then we get into trouble of one sort or another. 3546 # A longer-term fix would be to have automake use am__CC in this case, 3547 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3548 CC="$am_aux_dir/compile $CC" 3549fi 3550ac_ext=c 3551ac_cpp='$CPP $CPPFLAGS' 3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3554ac_compiler_gnu=$ac_cv_c_compiler_gnu 3555 3556 3557 3558ac_ext=c 3559ac_cpp='$CPP $CPPFLAGS' 3560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3562ac_compiler_gnu=$ac_cv_c_compiler_gnu 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3564$as_echo_n "checking how to run the C preprocessor... " >&6; } 3565# On Suns, sometimes $CPP names a directory. 3566if test -n "$CPP" && test -d "$CPP"; then 3567 CPP= 3568fi 3569if test -z "$CPP"; then 3570 if ${ac_cv_prog_CPP+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 # Double quotes because CPP needs to be expanded 3574 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3575 do 3576 ac_preproc_ok=false 3577for ac_c_preproc_warn_flag in '' yes 3578do 3579 # Use a header file that comes with gcc, so configuring glibc 3580 # with a fresh cross-compiler works. 3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3582 # <limits.h> exists even on freestanding compilers. 3583 # On the NeXT, cc -E runs the code through the compiler's parser, 3584 # not just through cpp. "Syntax error" is here to catch this case. 3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3586/* end confdefs.h. */ 3587#ifdef __STDC__ 3588# include <limits.h> 3589#else 3590# include <assert.h> 3591#endif 3592 Syntax error 3593_ACEOF 3594if ac_fn_c_try_cpp "$LINENO"; then : 3595 3596else 3597 # Broken: fails on valid input. 3598continue 3599fi 3600rm -f conftest.err conftest.i conftest.$ac_ext 3601 3602 # OK, works on sane cases. Now check whether nonexistent headers 3603 # can be detected and how. 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3605/* end confdefs.h. */ 3606#include <ac_nonexistent.h> 3607_ACEOF 3608if ac_fn_c_try_cpp "$LINENO"; then : 3609 # Broken: success on invalid input. 3610continue 3611else 3612 # Passes both tests. 3613ac_preproc_ok=: 3614break 3615fi 3616rm -f conftest.err conftest.i conftest.$ac_ext 3617 3618done 3619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3620rm -f conftest.i conftest.err conftest.$ac_ext 3621if $ac_preproc_ok; then : 3622 break 3623fi 3624 3625 done 3626 ac_cv_prog_CPP=$CPP 3627 3628fi 3629 CPP=$ac_cv_prog_CPP 3630else 3631 ac_cv_prog_CPP=$CPP 3632fi 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3634$as_echo "$CPP" >&6; } 3635ac_preproc_ok=false 3636for ac_c_preproc_warn_flag in '' yes 3637do 3638 # Use a header file that comes with gcc, so configuring glibc 3639 # with a fresh cross-compiler works. 3640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3641 # <limits.h> exists even on freestanding compilers. 3642 # On the NeXT, cc -E runs the code through the compiler's parser, 3643 # not just through cpp. "Syntax error" is here to catch this case. 3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3645/* end confdefs.h. */ 3646#ifdef __STDC__ 3647# include <limits.h> 3648#else 3649# include <assert.h> 3650#endif 3651 Syntax error 3652_ACEOF 3653if ac_fn_c_try_cpp "$LINENO"; then : 3654 3655else 3656 # Broken: fails on valid input. 3657continue 3658fi 3659rm -f conftest.err conftest.i conftest.$ac_ext 3660 3661 # OK, works on sane cases. Now check whether nonexistent headers 3662 # can be detected and how. 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665#include <ac_nonexistent.h> 3666_ACEOF 3667if ac_fn_c_try_cpp "$LINENO"; then : 3668 # Broken: success on invalid input. 3669continue 3670else 3671 # Passes both tests. 3672ac_preproc_ok=: 3673break 3674fi 3675rm -f conftest.err conftest.i conftest.$ac_ext 3676 3677done 3678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3679rm -f conftest.i conftest.err conftest.$ac_ext 3680if $ac_preproc_ok; then : 3681 3682else 3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3685as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3686See \`config.log' for more details" "$LINENO" 5; } 3687fi 3688 3689ac_ext=c 3690ac_cpp='$CPP $CPPFLAGS' 3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3693ac_compiler_gnu=$ac_cv_c_compiler_gnu 3694 3695 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3697$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3698if ${ac_cv_path_GREP+:} false; then : 3699 $as_echo_n "(cached) " >&6 3700else 3701 if test -z "$GREP"; then 3702 ac_path_GREP_found=false 3703 # Loop through the user's path and test for each of PROGNAME-LIST 3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3706do 3707 IFS=$as_save_IFS 3708 test -z "$as_dir" && as_dir=. 3709 for ac_prog in grep ggrep; do 3710 for ac_exec_ext in '' $ac_executable_extensions; do 3711 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3712 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3713# Check for GNU ac_path_GREP and select it if it is found. 3714 # Check for GNU $ac_path_GREP 3715case `"$ac_path_GREP" --version 2>&1` in 3716*GNU*) 3717 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3718*) 3719 ac_count=0 3720 $as_echo_n 0123456789 >"conftest.in" 3721 while : 3722 do 3723 cat "conftest.in" "conftest.in" >"conftest.tmp" 3724 mv "conftest.tmp" "conftest.in" 3725 cp "conftest.in" "conftest.nl" 3726 $as_echo 'GREP' >> "conftest.nl" 3727 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3729 as_fn_arith $ac_count + 1 && ac_count=$as_val 3730 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3731 # Best one so far, save it but keep looking for a better one 3732 ac_cv_path_GREP="$ac_path_GREP" 3733 ac_path_GREP_max=$ac_count 3734 fi 3735 # 10*(2^10) chars as input seems more than enough 3736 test $ac_count -gt 10 && break 3737 done 3738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3739esac 3740 3741 $ac_path_GREP_found && break 3 3742 done 3743 done 3744 done 3745IFS=$as_save_IFS 3746 if test -z "$ac_cv_path_GREP"; then 3747 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3748 fi 3749else 3750 ac_cv_path_GREP=$GREP 3751fi 3752 3753fi 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3755$as_echo "$ac_cv_path_GREP" >&6; } 3756 GREP="$ac_cv_path_GREP" 3757 3758 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3760$as_echo_n "checking for egrep... " >&6; } 3761if ${ac_cv_path_EGREP+:} false; then : 3762 $as_echo_n "(cached) " >&6 3763else 3764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3765 then ac_cv_path_EGREP="$GREP -E" 3766 else 3767 if test -z "$EGREP"; then 3768 ac_path_EGREP_found=false 3769 # Loop through the user's path and test for each of PROGNAME-LIST 3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3772do 3773 IFS=$as_save_IFS 3774 test -z "$as_dir" && as_dir=. 3775 for ac_prog in egrep; do 3776 for ac_exec_ext in '' $ac_executable_extensions; do 3777 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3778 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3779# Check for GNU ac_path_EGREP and select it if it is found. 3780 # Check for GNU $ac_path_EGREP 3781case `"$ac_path_EGREP" --version 2>&1` in 3782*GNU*) 3783 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3784*) 3785 ac_count=0 3786 $as_echo_n 0123456789 >"conftest.in" 3787 while : 3788 do 3789 cat "conftest.in" "conftest.in" >"conftest.tmp" 3790 mv "conftest.tmp" "conftest.in" 3791 cp "conftest.in" "conftest.nl" 3792 $as_echo 'EGREP' >> "conftest.nl" 3793 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3795 as_fn_arith $ac_count + 1 && ac_count=$as_val 3796 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3797 # Best one so far, save it but keep looking for a better one 3798 ac_cv_path_EGREP="$ac_path_EGREP" 3799 ac_path_EGREP_max=$ac_count 3800 fi 3801 # 10*(2^10) chars as input seems more than enough 3802 test $ac_count -gt 10 && break 3803 done 3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3805esac 3806 3807 $ac_path_EGREP_found && break 3 3808 done 3809 done 3810 done 3811IFS=$as_save_IFS 3812 if test -z "$ac_cv_path_EGREP"; then 3813 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3814 fi 3815else 3816 ac_cv_path_EGREP=$EGREP 3817fi 3818 3819 fi 3820fi 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3822$as_echo "$ac_cv_path_EGREP" >&6; } 3823 EGREP="$ac_cv_path_EGREP" 3824 3825 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3827$as_echo_n "checking for ANSI C header files... " >&6; } 3828if ${ac_cv_header_stdc+:} false; then : 3829 $as_echo_n "(cached) " >&6 3830else 3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3832/* end confdefs.h. */ 3833#include <stdlib.h> 3834#include <stdarg.h> 3835#include <string.h> 3836#include <float.h> 3837 3838int 3839main () 3840{ 3841 3842 ; 3843 return 0; 3844} 3845_ACEOF 3846if ac_fn_c_try_compile "$LINENO"; then : 3847 ac_cv_header_stdc=yes 3848else 3849 ac_cv_header_stdc=no 3850fi 3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3852 3853if test $ac_cv_header_stdc = yes; then 3854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3856/* end confdefs.h. */ 3857#include <string.h> 3858 3859_ACEOF 3860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3861 $EGREP "memchr" >/dev/null 2>&1; then : 3862 3863else 3864 ac_cv_header_stdc=no 3865fi 3866rm -f conftest* 3867 3868fi 3869 3870if test $ac_cv_header_stdc = yes; then 3871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874#include <stdlib.h> 3875 3876_ACEOF 3877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3878 $EGREP "free" >/dev/null 2>&1; then : 3879 3880else 3881 ac_cv_header_stdc=no 3882fi 3883rm -f conftest* 3884 3885fi 3886 3887if test $ac_cv_header_stdc = yes; then 3888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3889 if test "$cross_compiling" = yes; then : 3890 : 3891else 3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893/* end confdefs.h. */ 3894#include <ctype.h> 3895#include <stdlib.h> 3896#if ((' ' & 0x0FF) == 0x020) 3897# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3898# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3899#else 3900# define ISLOWER(c) \ 3901 (('a' <= (c) && (c) <= 'i') \ 3902 || ('j' <= (c) && (c) <= 'r') \ 3903 || ('s' <= (c) && (c) <= 'z')) 3904# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3905#endif 3906 3907#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3908int 3909main () 3910{ 3911 int i; 3912 for (i = 0; i < 256; i++) 3913 if (XOR (islower (i), ISLOWER (i)) 3914 || toupper (i) != TOUPPER (i)) 3915 return 2; 3916 return 0; 3917} 3918_ACEOF 3919if ac_fn_c_try_run "$LINENO"; then : 3920 3921else 3922 ac_cv_header_stdc=no 3923fi 3924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3925 conftest.$ac_objext conftest.beam conftest.$ac_ext 3926fi 3927 3928fi 3929fi 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3931$as_echo "$ac_cv_header_stdc" >&6; } 3932if test $ac_cv_header_stdc = yes; then 3933 3934$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3935 3936fi 3937 3938# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3939for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3940 inttypes.h stdint.h unistd.h 3941do : 3942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3943ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3944" 3945if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3946 cat >>confdefs.h <<_ACEOF 3947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3948_ACEOF 3949 3950fi 3951 3952done 3953 3954 3955 3956 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3957if test "x$ac_cv_header_minix_config_h" = xyes; then : 3958 MINIX=yes 3959else 3960 MINIX= 3961fi 3962 3963 3964 if test "$MINIX" = yes; then 3965 3966$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3967 3968 3969$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3970 3971 3972$as_echo "#define _MINIX 1" >>confdefs.h 3973 3974 fi 3975 3976 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3978$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3979if ${ac_cv_safe_to_define___extensions__+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985# define __EXTENSIONS__ 1 3986 $ac_includes_default 3987int 3988main () 3989{ 3990 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995if ac_fn_c_try_compile "$LINENO"; then : 3996 ac_cv_safe_to_define___extensions__=yes 3997else 3998 ac_cv_safe_to_define___extensions__=no 3999fi 4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4001fi 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4003$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4004 test $ac_cv_safe_to_define___extensions__ = yes && 4005 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4006 4007 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4008 4009 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4010 4011 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4012 4013 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4014 4015 4016 4017# Initialize Automake 4018am__api_version='1.14' 4019 4020# Find a good install program. We prefer a C program (faster), 4021# so one script is as good as another. But avoid the broken or 4022# incompatible versions: 4023# SysV /etc/install, /usr/sbin/install 4024# SunOS /usr/etc/install 4025# IRIX /sbin/install 4026# AIX /bin/install 4027# AmigaOS /C/install, which installs bootblocks on floppy discs 4028# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4029# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4030# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4031# OS/2's system install, which has a completely different semantic 4032# ./install, which can be erroneously created by make from ./install.sh. 4033# Reject install programs that cannot install multiple files. 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4035$as_echo_n "checking for a BSD-compatible install... " >&6; } 4036if test -z "$INSTALL"; then 4037if ${ac_cv_path_install+:} false; then : 4038 $as_echo_n "(cached) " >&6 4039else 4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4041for as_dir in $PATH 4042do 4043 IFS=$as_save_IFS 4044 test -z "$as_dir" && as_dir=. 4045 # Account for people who put trailing slashes in PATH elements. 4046case $as_dir/ in #(( 4047 ./ | .// | /[cC]/* | \ 4048 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4049 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4050 /usr/ucb/* ) ;; 4051 *) 4052 # OSF1 and SCO ODT 3.0 have their own names for install. 4053 # Don't use installbsd from OSF since it installs stuff as root 4054 # by default. 4055 for ac_prog in ginstall scoinst install; do 4056 for ac_exec_ext in '' $ac_executable_extensions; do 4057 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4058 if test $ac_prog = install && 4059 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4060 # AIX install. It has an incompatible calling convention. 4061 : 4062 elif test $ac_prog = install && 4063 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4064 # program-specific install script used by HP pwplus--don't use. 4065 : 4066 else 4067 rm -rf conftest.one conftest.two conftest.dir 4068 echo one > conftest.one 4069 echo two > conftest.two 4070 mkdir conftest.dir 4071 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4072 test -s conftest.one && test -s conftest.two && 4073 test -s conftest.dir/conftest.one && 4074 test -s conftest.dir/conftest.two 4075 then 4076 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4077 break 3 4078 fi 4079 fi 4080 fi 4081 done 4082 done 4083 ;; 4084esac 4085 4086 done 4087IFS=$as_save_IFS 4088 4089rm -rf conftest.one conftest.two conftest.dir 4090 4091fi 4092 if test "${ac_cv_path_install+set}" = set; then 4093 INSTALL=$ac_cv_path_install 4094 else 4095 # As a last resort, use the slow shell script. Don't cache a 4096 # value for INSTALL within a source directory, because that will 4097 # break other packages using the cache if that directory is 4098 # removed, or if the value is a relative name. 4099 INSTALL=$ac_install_sh 4100 fi 4101fi 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4103$as_echo "$INSTALL" >&6; } 4104 4105# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4106# It thinks the first close brace ends the variable substitution. 4107test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4108 4109test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4110 4111test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4112 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4114$as_echo_n "checking whether build environment is sane... " >&6; } 4115# Reject unsafe characters in $srcdir or the absolute working directory 4116# name. Accept space and tab only in the latter. 4117am_lf=' 4118' 4119case `pwd` in 4120 *[\\\"\#\$\&\'\`$am_lf]*) 4121 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4122esac 4123case $srcdir in 4124 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4125 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4126esac 4127 4128# Do 'set' in a subshell so we don't clobber the current shell's 4129# arguments. Must try -L first in case configure is actually a 4130# symlink; some systems play weird games with the mod time of symlinks 4131# (eg FreeBSD returns the mod time of the symlink's containing 4132# directory). 4133if ( 4134 am_has_slept=no 4135 for am_try in 1 2; do 4136 echo "timestamp, slept: $am_has_slept" > conftest.file 4137 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4138 if test "$*" = "X"; then 4139 # -L didn't work. 4140 set X `ls -t "$srcdir/configure" conftest.file` 4141 fi 4142 if test "$*" != "X $srcdir/configure conftest.file" \ 4143 && test "$*" != "X conftest.file $srcdir/configure"; then 4144 4145 # If neither matched, then we have a broken ls. This can happen 4146 # if, for instance, CONFIG_SHELL is bash and it inherits a 4147 # broken ls alias from the environment. This has actually 4148 # happened. Such a system could not be considered "sane". 4149 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4150 alias in your environment" "$LINENO" 5 4151 fi 4152 if test "$2" = conftest.file || test $am_try -eq 2; then 4153 break 4154 fi 4155 # Just in case. 4156 sleep 1 4157 am_has_slept=yes 4158 done 4159 test "$2" = conftest.file 4160 ) 4161then 4162 # Ok. 4163 : 4164else 4165 as_fn_error $? "newly created file is older than distributed files! 4166Check your system clock" "$LINENO" 5 4167fi 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4169$as_echo "yes" >&6; } 4170# If we didn't sleep, we still need to ensure time stamps of config.status and 4171# generated files are strictly newer. 4172am_sleep_pid= 4173if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4174 ( sleep 1 ) & 4175 am_sleep_pid=$! 4176fi 4177 4178rm -f conftest.file 4179 4180test "$program_prefix" != NONE && 4181 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4182# Use a double $ so make ignores it. 4183test "$program_suffix" != NONE && 4184 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4185# Double any \ or $. 4186# By default was `s,x,x', remove it if useless. 4187ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4188program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4189 4190if test x"${MISSING+set}" != xset; then 4191 case $am_aux_dir in 4192 *\ * | *\ *) 4193 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4194 *) 4195 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4196 esac 4197fi 4198# Use eval to expand $SHELL 4199if eval "$MISSING --is-lightweight"; then 4200 am_missing_run="$MISSING " 4201else 4202 am_missing_run= 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4204$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4205fi 4206 4207if test x"${install_sh}" != xset; then 4208 case $am_aux_dir in 4209 *\ * | *\ *) 4210 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4211 *) 4212 install_sh="\${SHELL} $am_aux_dir/install-sh" 4213 esac 4214fi 4215 4216# Installed binaries are usually stripped using 'strip' when the user 4217# run "make install-strip". However 'strip' might not be the right 4218# tool to use in cross-compilation environments, therefore Automake 4219# will honor the 'STRIP' environment variable to overrule this program. 4220if test "$cross_compiling" != no; then 4221 if test -n "$ac_tool_prefix"; then 4222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4223set dummy ${ac_tool_prefix}strip; ac_word=$2 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4225$as_echo_n "checking for $ac_word... " >&6; } 4226if ${ac_cv_prog_STRIP+:} false; then : 4227 $as_echo_n "(cached) " >&6 4228else 4229 if test -n "$STRIP"; then 4230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4231else 4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4233for as_dir in $PATH 4234do 4235 IFS=$as_save_IFS 4236 test -z "$as_dir" && as_dir=. 4237 for ac_exec_ext in '' $ac_executable_extensions; do 4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4239 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4241 break 2 4242 fi 4243done 4244 done 4245IFS=$as_save_IFS 4246 4247fi 4248fi 4249STRIP=$ac_cv_prog_STRIP 4250if test -n "$STRIP"; then 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4252$as_echo "$STRIP" >&6; } 4253else 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4255$as_echo "no" >&6; } 4256fi 4257 4258 4259fi 4260if test -z "$ac_cv_prog_STRIP"; then 4261 ac_ct_STRIP=$STRIP 4262 # Extract the first word of "strip", so it can be a program name with args. 4263set dummy strip; ac_word=$2 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4265$as_echo_n "checking for $ac_word... " >&6; } 4266if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 if test -n "$ac_ct_STRIP"; then 4270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4271else 4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4273for as_dir in $PATH 4274do 4275 IFS=$as_save_IFS 4276 test -z "$as_dir" && as_dir=. 4277 for ac_exec_ext in '' $ac_executable_extensions; do 4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4279 ac_cv_prog_ac_ct_STRIP="strip" 4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4281 break 2 4282 fi 4283done 4284 done 4285IFS=$as_save_IFS 4286 4287fi 4288fi 4289ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4290if test -n "$ac_ct_STRIP"; then 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4292$as_echo "$ac_ct_STRIP" >&6; } 4293else 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4295$as_echo "no" >&6; } 4296fi 4297 4298 if test "x$ac_ct_STRIP" = x; then 4299 STRIP=":" 4300 else 4301 case $cross_compiling:$ac_tool_warned in 4302yes:) 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4305ac_tool_warned=yes ;; 4306esac 4307 STRIP=$ac_ct_STRIP 4308 fi 4309else 4310 STRIP="$ac_cv_prog_STRIP" 4311fi 4312 4313fi 4314INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4315 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4317$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4318if test -z "$MKDIR_P"; then 4319 if ${ac_cv_path_mkdir+:} false; then : 4320 $as_echo_n "(cached) " >&6 4321else 4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4323for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4324do 4325 IFS=$as_save_IFS 4326 test -z "$as_dir" && as_dir=. 4327 for ac_prog in mkdir gmkdir; do 4328 for ac_exec_ext in '' $ac_executable_extensions; do 4329 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4330 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4331 'mkdir (GNU coreutils) '* | \ 4332 'mkdir (coreutils) '* | \ 4333 'mkdir (fileutils) '4.1*) 4334 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4335 break 3;; 4336 esac 4337 done 4338 done 4339 done 4340IFS=$as_save_IFS 4341 4342fi 4343 4344 test -d ./--version && rmdir ./--version 4345 if test "${ac_cv_path_mkdir+set}" = set; then 4346 MKDIR_P="$ac_cv_path_mkdir -p" 4347 else 4348 # As a last resort, use the slow shell script. Don't cache a 4349 # value for MKDIR_P within a source directory, because that will 4350 # break other packages using the cache if that directory is 4351 # removed, or if the value is a relative name. 4352 MKDIR_P="$ac_install_sh -d" 4353 fi 4354fi 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4356$as_echo "$MKDIR_P" >&6; } 4357 4358for ac_prog in gawk mawk nawk awk 4359do 4360 # Extract the first word of "$ac_prog", so it can be a program name with args. 4361set dummy $ac_prog; ac_word=$2 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4363$as_echo_n "checking for $ac_word... " >&6; } 4364if ${ac_cv_prog_AWK+:} false; then : 4365 $as_echo_n "(cached) " >&6 4366else 4367 if test -n "$AWK"; then 4368 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4369else 4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4371for as_dir in $PATH 4372do 4373 IFS=$as_save_IFS 4374 test -z "$as_dir" && as_dir=. 4375 for ac_exec_ext in '' $ac_executable_extensions; do 4376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4377 ac_cv_prog_AWK="$ac_prog" 4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4379 break 2 4380 fi 4381done 4382 done 4383IFS=$as_save_IFS 4384 4385fi 4386fi 4387AWK=$ac_cv_prog_AWK 4388if test -n "$AWK"; then 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4390$as_echo "$AWK" >&6; } 4391else 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4393$as_echo "no" >&6; } 4394fi 4395 4396 4397 test -n "$AWK" && break 4398done 4399 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4401$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4402set x ${MAKE-make} 4403ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4404if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4405 $as_echo_n "(cached) " >&6 4406else 4407 cat >conftest.make <<\_ACEOF 4408SHELL = /bin/sh 4409all: 4410 @echo '@@@%%%=$(MAKE)=@@@%%%' 4411_ACEOF 4412# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4413case `${MAKE-make} -f conftest.make 2>/dev/null` in 4414 *@@@%%%=?*=@@@%%%*) 4415 eval ac_cv_prog_make_${ac_make}_set=yes;; 4416 *) 4417 eval ac_cv_prog_make_${ac_make}_set=no;; 4418esac 4419rm -f conftest.make 4420fi 4421if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4423$as_echo "yes" >&6; } 4424 SET_MAKE= 4425else 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4427$as_echo "no" >&6; } 4428 SET_MAKE="MAKE=${MAKE-make}" 4429fi 4430 4431rm -rf .tst 2>/dev/null 4432mkdir .tst 2>/dev/null 4433if test -d .tst; then 4434 am__leading_dot=. 4435else 4436 am__leading_dot=_ 4437fi 4438rmdir .tst 2>/dev/null 4439 4440DEPDIR="${am__leading_dot}deps" 4441 4442ac_config_commands="$ac_config_commands depfiles" 4443 4444 4445am_make=${MAKE-make} 4446cat > confinc << 'END' 4447am__doit: 4448 @echo this is the am__doit target 4449.PHONY: am__doit 4450END 4451# If we don't find an include directive, just comment out the code. 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4453$as_echo_n "checking for style of include used by $am_make... " >&6; } 4454am__include="#" 4455am__quote= 4456_am_result=none 4457# First try GNU make style include. 4458echo "include confinc" > confmf 4459# Ignore all kinds of additional output from 'make'. 4460case `$am_make -s -f confmf 2> /dev/null` in #( 4461*the\ am__doit\ target*) 4462 am__include=include 4463 am__quote= 4464 _am_result=GNU 4465 ;; 4466esac 4467# Now try BSD make style include. 4468if test "$am__include" = "#"; then 4469 echo '.include "confinc"' > confmf 4470 case `$am_make -s -f confmf 2> /dev/null` in #( 4471 *the\ am__doit\ target*) 4472 am__include=.include 4473 am__quote="\"" 4474 _am_result=BSD 4475 ;; 4476 esac 4477fi 4478 4479 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4481$as_echo "$_am_result" >&6; } 4482rm -f confinc confmf 4483 4484# Check whether --enable-dependency-tracking was given. 4485if test "${enable_dependency_tracking+set}" = set; then : 4486 enableval=$enable_dependency_tracking; 4487fi 4488 4489if test "x$enable_dependency_tracking" != xno; then 4490 am_depcomp="$ac_aux_dir/depcomp" 4491 AMDEPBACKSLASH='\' 4492 am__nodep='_no' 4493fi 4494 if test "x$enable_dependency_tracking" != xno; then 4495 AMDEP_TRUE= 4496 AMDEP_FALSE='#' 4497else 4498 AMDEP_TRUE='#' 4499 AMDEP_FALSE= 4500fi 4501 4502 4503# Check whether --enable-silent-rules was given. 4504if test "${enable_silent_rules+set}" = set; then : 4505 enableval=$enable_silent_rules; 4506fi 4507 4508case $enable_silent_rules in # ((( 4509 yes) AM_DEFAULT_VERBOSITY=0;; 4510 no) AM_DEFAULT_VERBOSITY=1;; 4511 *) AM_DEFAULT_VERBOSITY=1;; 4512esac 4513am_make=${MAKE-make} 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4515$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4516if ${am_cv_make_support_nested_variables+:} false; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 if $as_echo 'TRUE=$(BAR$(V)) 4520BAR0=false 4521BAR1=true 4522V=1 4523am__doit: 4524 @$(TRUE) 4525.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4526 am_cv_make_support_nested_variables=yes 4527else 4528 am_cv_make_support_nested_variables=no 4529fi 4530fi 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4532$as_echo "$am_cv_make_support_nested_variables" >&6; } 4533if test $am_cv_make_support_nested_variables = yes; then 4534 AM_V='$(V)' 4535 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4536else 4537 AM_V=$AM_DEFAULT_VERBOSITY 4538 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4539fi 4540AM_BACKSLASH='\' 4541 4542if test "`cd $srcdir && pwd`" != "`pwd`"; then 4543 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4544 # is not polluted with repeated "-I." 4545 am__isrc=' -I$(srcdir)' 4546 # test to see if srcdir already configured 4547 if test -f $srcdir/config.status; then 4548 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4549 fi 4550fi 4551 4552# test whether we have cygpath 4553if test -z "$CYGPATH_W"; then 4554 if (cygpath --version) >/dev/null 2>/dev/null; then 4555 CYGPATH_W='cygpath -w' 4556 else 4557 CYGPATH_W=echo 4558 fi 4559fi 4560 4561 4562# Define the identity of the package. 4563 PACKAGE='libX11' 4564 VERSION='1.6.2' 4565 4566 4567cat >>confdefs.h <<_ACEOF 4568#define PACKAGE "$PACKAGE" 4569_ACEOF 4570 4571 4572cat >>confdefs.h <<_ACEOF 4573#define VERSION "$VERSION" 4574_ACEOF 4575 4576# Some tools Automake needs. 4577 4578ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4579 4580 4581AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4582 4583 4584AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4585 4586 4587AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4588 4589 4590MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4591 4592# For better backward compatibility. To be removed once Automake 1.9.x 4593# dies out for good. For more background, see: 4594# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4595# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4596mkdir_p='$(MKDIR_P)' 4597 4598# We need awk for the "check" target. The system "awk" is bad on 4599# some platforms. 4600# Always define AMTAR for backward compatibility. Yes, it's still used 4601# in the wild :-( We should find a proper way to deprecate it ... 4602AMTAR='$${TAR-tar}' 4603 4604 4605# We'll loop over all known methods to create a tar archive until one works. 4606_am_tools='gnutar pax cpio none' 4607 4608am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4609 4610 4611 4612 4613 4614depcc="$CC" am_compiler_list= 4615 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4617$as_echo_n "checking dependency style of $depcc... " >&6; } 4618if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4622 # We make a subdir and do the tests there. Otherwise we can end up 4623 # making bogus files that we don't know about and never remove. For 4624 # instance it was reported that on HP-UX the gcc test will end up 4625 # making a dummy file named 'D' -- because '-MD' means "put the output 4626 # in D". 4627 rm -rf conftest.dir 4628 mkdir conftest.dir 4629 # Copy depcomp to subdir because otherwise we won't find it if we're 4630 # using a relative directory. 4631 cp "$am_depcomp" conftest.dir 4632 cd conftest.dir 4633 # We will build objects and dependencies in a subdirectory because 4634 # it helps to detect inapplicable dependency modes. For instance 4635 # both Tru64's cc and ICC support -MD to output dependencies as a 4636 # side effect of compilation, but ICC will put the dependencies in 4637 # the current directory while Tru64 will put them in the object 4638 # directory. 4639 mkdir sub 4640 4641 am_cv_CC_dependencies_compiler_type=none 4642 if test "$am_compiler_list" = ""; then 4643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4644 fi 4645 am__universal=false 4646 case " $depcc " in #( 4647 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4648 esac 4649 4650 for depmode in $am_compiler_list; do 4651 # Setup a source with many dependencies, because some compilers 4652 # like to wrap large dependency lists on column 80 (with \), and 4653 # we should not choose a depcomp mode which is confused by this. 4654 # 4655 # We need to recreate these files for each test, as the compiler may 4656 # overwrite some of them when testing with obscure command lines. 4657 # This happens at least with the AIX C compiler. 4658 : > sub/conftest.c 4659 for i in 1 2 3 4 5 6; do 4660 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4661 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4662 # Solaris 10 /bin/sh. 4663 echo '/* dummy */' > sub/conftst$i.h 4664 done 4665 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4666 4667 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4668 # mode. It turns out that the SunPro C++ compiler does not properly 4669 # handle '-M -o', and we need to detect this. Also, some Intel 4670 # versions had trouble with output in subdirs. 4671 am__obj=sub/conftest.${OBJEXT-o} 4672 am__minus_obj="-o $am__obj" 4673 case $depmode in 4674 gcc) 4675 # This depmode causes a compiler race in universal mode. 4676 test "$am__universal" = false || continue 4677 ;; 4678 nosideeffect) 4679 # After this tag, mechanisms are not by side-effect, so they'll 4680 # only be used when explicitly requested. 4681 if test "x$enable_dependency_tracking" = xyes; then 4682 continue 4683 else 4684 break 4685 fi 4686 ;; 4687 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4688 # This compiler won't grok '-c -o', but also, the minuso test has 4689 # not run yet. These depmodes are late enough in the game, and 4690 # so weak that their functioning should not be impacted. 4691 am__obj=conftest.${OBJEXT-o} 4692 am__minus_obj= 4693 ;; 4694 none) break ;; 4695 esac 4696 if depmode=$depmode \ 4697 source=sub/conftest.c object=$am__obj \ 4698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4699 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4700 >/dev/null 2>conftest.err && 4701 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4702 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4703 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4704 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4705 # icc doesn't choke on unknown options, it will just issue warnings 4706 # or remarks (even with -Werror). So we grep stderr for any message 4707 # that says an option was ignored or not supported. 4708 # When given -MP, icc 7.0 and 7.1 complain thusly: 4709 # icc: Command line warning: ignoring option '-M'; no argument required 4710 # The diagnosis changed in icc 8.0: 4711 # icc: Command line remark: option '-MP' not supported 4712 if (grep 'ignoring option' conftest.err || 4713 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4714 am_cv_CC_dependencies_compiler_type=$depmode 4715 break 4716 fi 4717 fi 4718 done 4719 4720 cd .. 4721 rm -rf conftest.dir 4722else 4723 am_cv_CC_dependencies_compiler_type=none 4724fi 4725 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4728$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4729CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4730 4731 if 4732 test "x$enable_dependency_tracking" != xno \ 4733 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4734 am__fastdepCC_TRUE= 4735 am__fastdepCC_FALSE='#' 4736else 4737 am__fastdepCC_TRUE='#' 4738 am__fastdepCC_FALSE= 4739fi 4740 4741 4742 4743# POSIX will say in a future version that running "rm -f" with no argument 4744# is OK; and we want to be able to make that assumption in our Makefile 4745# recipes. So use an aggressive probe to check that the usage we want is 4746# actually supported "in the wild" to an acceptable degree. 4747# See automake bug#10828. 4748# To make any issue more visible, cause the running configure to be aborted 4749# by default if the 'rm' program in use doesn't match our expectations; the 4750# user can still override this though. 4751if rm -f && rm -fr && rm -rf; then : OK; else 4752 cat >&2 <<'END' 4753Oops! 4754 4755Your 'rm' program seems unable to run without file operands specified 4756on the command line, even when the '-f' option is present. This is contrary 4757to the behaviour of most rm programs out there, and not conforming with 4758the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4759 4760Please tell bug-automake@gnu.org about your system, including the value 4761of your $PATH and any error possibly output before this message. This 4762can help us improve future automake versions. 4763 4764END 4765 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4766 echo 'Configuration will proceed anyway, since you have set the' >&2 4767 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4768 echo >&2 4769 else 4770 cat >&2 <<'END' 4771Aborting the configuration process, to ensure you take notice of the issue. 4772 4773You can download and install GNU coreutils to get an 'rm' implementation 4774that behaves properly: <http://www.gnu.org/software/coreutils/>. 4775 4776If you want to complete the configuration process using your problematic 4777'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4778to "yes", and re-run configure. 4779 4780END 4781 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4782 fi 4783fi 4784 4785# Initialize libtool 4786case `pwd` in 4787 *\ * | *\ *) 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4789$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4790esac 4791 4792 4793 4794macro_version='2.4.2' 4795macro_revision='1.3337' 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809ltmain="$ac_aux_dir/ltmain.sh" 4810 4811# Backslashify metacharacters that are still active within 4812# double-quoted strings. 4813sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4814 4815# Same as above, but do not quote variable references. 4816double_quote_subst='s/\(["`\\]\)/\\\1/g' 4817 4818# Sed substitution to delay expansion of an escaped shell variable in a 4819# double_quote_subst'ed string. 4820delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4821 4822# Sed substitution to delay expansion of an escaped single quote. 4823delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4824 4825# Sed substitution to avoid accidental globbing in evaled expressions 4826no_glob_subst='s/\*/\\\*/g' 4827 4828ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4829ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4830ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4831 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4833$as_echo_n "checking how to print strings... " >&6; } 4834# Test print first, because it will be a builtin if present. 4835if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4836 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4837 ECHO='print -r --' 4838elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4839 ECHO='printf %s\n' 4840else 4841 # Use this function as a fallback that always works. 4842 func_fallback_echo () 4843 { 4844 eval 'cat <<_LTECHO_EOF 4845$1 4846_LTECHO_EOF' 4847 } 4848 ECHO='func_fallback_echo' 4849fi 4850 4851# func_echo_all arg... 4852# Invoke $ECHO with all args, space-separated. 4853func_echo_all () 4854{ 4855 $ECHO "" 4856} 4857 4858case "$ECHO" in 4859 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4860$as_echo "printf" >&6; } ;; 4861 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4862$as_echo "print -r" >&6; } ;; 4863 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4864$as_echo "cat" >&6; } ;; 4865esac 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4881$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4882if ${ac_cv_path_SED+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4886 for ac_i in 1 2 3 4 5 6 7; do 4887 ac_script="$ac_script$as_nl$ac_script" 4888 done 4889 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4890 { ac_script=; unset ac_script;} 4891 if test -z "$SED"; then 4892 ac_path_SED_found=false 4893 # Loop through the user's path and test for each of PROGNAME-LIST 4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4895for as_dir in $PATH 4896do 4897 IFS=$as_save_IFS 4898 test -z "$as_dir" && as_dir=. 4899 for ac_prog in sed gsed; do 4900 for ac_exec_ext in '' $ac_executable_extensions; do 4901 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4902 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4903# Check for GNU ac_path_SED and select it if it is found. 4904 # Check for GNU $ac_path_SED 4905case `"$ac_path_SED" --version 2>&1` in 4906*GNU*) 4907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4908*) 4909 ac_count=0 4910 $as_echo_n 0123456789 >"conftest.in" 4911 while : 4912 do 4913 cat "conftest.in" "conftest.in" >"conftest.tmp" 4914 mv "conftest.tmp" "conftest.in" 4915 cp "conftest.in" "conftest.nl" 4916 $as_echo '' >> "conftest.nl" 4917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4919 as_fn_arith $ac_count + 1 && ac_count=$as_val 4920 if test $ac_count -gt ${ac_path_SED_max-0}; then 4921 # Best one so far, save it but keep looking for a better one 4922 ac_cv_path_SED="$ac_path_SED" 4923 ac_path_SED_max=$ac_count 4924 fi 4925 # 10*(2^10) chars as input seems more than enough 4926 test $ac_count -gt 10 && break 4927 done 4928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4929esac 4930 4931 $ac_path_SED_found && break 3 4932 done 4933 done 4934 done 4935IFS=$as_save_IFS 4936 if test -z "$ac_cv_path_SED"; then 4937 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4938 fi 4939else 4940 ac_cv_path_SED=$SED 4941fi 4942 4943fi 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4945$as_echo "$ac_cv_path_SED" >&6; } 4946 SED="$ac_cv_path_SED" 4947 rm -f conftest.sed 4948 4949test -z "$SED" && SED=sed 4950Xsed="$SED -e 1s/^X//" 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4963$as_echo_n "checking for fgrep... " >&6; } 4964if ${ac_cv_path_FGREP+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4968 then ac_cv_path_FGREP="$GREP -F" 4969 else 4970 if test -z "$FGREP"; then 4971 ac_path_FGREP_found=false 4972 # Loop through the user's path and test for each of PROGNAME-LIST 4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4975do 4976 IFS=$as_save_IFS 4977 test -z "$as_dir" && as_dir=. 4978 for ac_prog in fgrep; do 4979 for ac_exec_ext in '' $ac_executable_extensions; do 4980 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4981 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4982# Check for GNU ac_path_FGREP and select it if it is found. 4983 # Check for GNU $ac_path_FGREP 4984case `"$ac_path_FGREP" --version 2>&1` in 4985*GNU*) 4986 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4987*) 4988 ac_count=0 4989 $as_echo_n 0123456789 >"conftest.in" 4990 while : 4991 do 4992 cat "conftest.in" "conftest.in" >"conftest.tmp" 4993 mv "conftest.tmp" "conftest.in" 4994 cp "conftest.in" "conftest.nl" 4995 $as_echo 'FGREP' >> "conftest.nl" 4996 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4998 as_fn_arith $ac_count + 1 && ac_count=$as_val 4999 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5000 # Best one so far, save it but keep looking for a better one 5001 ac_cv_path_FGREP="$ac_path_FGREP" 5002 ac_path_FGREP_max=$ac_count 5003 fi 5004 # 10*(2^10) chars as input seems more than enough 5005 test $ac_count -gt 10 && break 5006 done 5007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5008esac 5009 5010 $ac_path_FGREP_found && break 3 5011 done 5012 done 5013 done 5014IFS=$as_save_IFS 5015 if test -z "$ac_cv_path_FGREP"; then 5016 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5017 fi 5018else 5019 ac_cv_path_FGREP=$FGREP 5020fi 5021 5022 fi 5023fi 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5025$as_echo "$ac_cv_path_FGREP" >&6; } 5026 FGREP="$ac_cv_path_FGREP" 5027 5028 5029test -z "$GREP" && GREP=grep 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049# Check whether --with-gnu-ld was given. 5050if test "${with_gnu_ld+set}" = set; then : 5051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5052else 5053 with_gnu_ld=no 5054fi 5055 5056ac_prog=ld 5057if test "$GCC" = yes; then 5058 # Check if gcc -print-prog-name=ld gives a path. 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5060$as_echo_n "checking for ld used by $CC... " >&6; } 5061 case $host in 5062 *-*-mingw*) 5063 # gcc leaves a trailing carriage return which upsets mingw 5064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5065 *) 5066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5067 esac 5068 case $ac_prog in 5069 # Accept absolute paths. 5070 [\\/]* | ?:[\\/]*) 5071 re_direlt='/[^/][^/]*/\.\./' 5072 # Canonicalize the pathname of ld 5073 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5074 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5075 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5076 done 5077 test -z "$LD" && LD="$ac_prog" 5078 ;; 5079 "") 5080 # If it fails, then pretend we aren't using GCC. 5081 ac_prog=ld 5082 ;; 5083 *) 5084 # If it is relative, then search for the first ld in PATH. 5085 with_gnu_ld=unknown 5086 ;; 5087 esac 5088elif test "$with_gnu_ld" = yes; then 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5090$as_echo_n "checking for GNU ld... " >&6; } 5091else 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5093$as_echo_n "checking for non-GNU ld... " >&6; } 5094fi 5095if ${lt_cv_path_LD+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097else 5098 if test -z "$LD"; then 5099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5100 for ac_dir in $PATH; do 5101 IFS="$lt_save_ifs" 5102 test -z "$ac_dir" && ac_dir=. 5103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5104 lt_cv_path_LD="$ac_dir/$ac_prog" 5105 # Check to see if the program is GNU ld. I'd rather use --version, 5106 # but apparently some variants of GNU ld only accept -v. 5107 # Break only if it was the GNU/non-GNU ld that we prefer. 5108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5109 *GNU* | *'with BFD'*) 5110 test "$with_gnu_ld" != no && break 5111 ;; 5112 *) 5113 test "$with_gnu_ld" != yes && break 5114 ;; 5115 esac 5116 fi 5117 done 5118 IFS="$lt_save_ifs" 5119else 5120 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5121fi 5122fi 5123 5124LD="$lt_cv_path_LD" 5125if test -n "$LD"; then 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5127$as_echo "$LD" >&6; } 5128else 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5130$as_echo "no" >&6; } 5131fi 5132test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5134$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5135if ${lt_cv_prog_gnu_ld+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5139case `$LD -v 2>&1 </dev/null` in 5140*GNU* | *'with BFD'*) 5141 lt_cv_prog_gnu_ld=yes 5142 ;; 5143*) 5144 lt_cv_prog_gnu_ld=no 5145 ;; 5146esac 5147fi 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5149$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5150with_gnu_ld=$lt_cv_prog_gnu_ld 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5161$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5162if ${lt_cv_path_NM+:} false; then : 5163 $as_echo_n "(cached) " >&6 5164else 5165 if test -n "$NM"; then 5166 # Let the user override the test. 5167 lt_cv_path_NM="$NM" 5168else 5169 lt_nm_to_check="${ac_tool_prefix}nm" 5170 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5171 lt_nm_to_check="$lt_nm_to_check nm" 5172 fi 5173 for lt_tmp_nm in $lt_nm_to_check; do 5174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5175 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5176 IFS="$lt_save_ifs" 5177 test -z "$ac_dir" && ac_dir=. 5178 tmp_nm="$ac_dir/$lt_tmp_nm" 5179 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5180 # Check to see if the nm accepts a BSD-compat flag. 5181 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5182 # nm: unknown option "B" ignored 5183 # Tru64's nm complains that /dev/null is an invalid object file 5184 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5185 */dev/null* | *'Invalid file or object type'*) 5186 lt_cv_path_NM="$tmp_nm -B" 5187 break 5188 ;; 5189 *) 5190 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5191 */dev/null*) 5192 lt_cv_path_NM="$tmp_nm -p" 5193 break 5194 ;; 5195 *) 5196 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5197 continue # so that we can try to find one that supports BSD flags 5198 ;; 5199 esac 5200 ;; 5201 esac 5202 fi 5203 done 5204 IFS="$lt_save_ifs" 5205 done 5206 : ${lt_cv_path_NM=no} 5207fi 5208fi 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5210$as_echo "$lt_cv_path_NM" >&6; } 5211if test "$lt_cv_path_NM" != "no"; then 5212 NM="$lt_cv_path_NM" 5213else 5214 # Didn't find any BSD compatible name lister, look for dumpbin. 5215 if test -n "$DUMPBIN"; then : 5216 # Let the user override the test. 5217 else 5218 if test -n "$ac_tool_prefix"; then 5219 for ac_prog in dumpbin "link -dump" 5220 do 5221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5222set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5224$as_echo_n "checking for $ac_word... " >&6; } 5225if ${ac_cv_prog_DUMPBIN+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 if test -n "$DUMPBIN"; then 5229 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5230else 5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232for as_dir in $PATH 5233do 5234 IFS=$as_save_IFS 5235 test -z "$as_dir" && as_dir=. 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5238 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5240 break 2 5241 fi 5242done 5243 done 5244IFS=$as_save_IFS 5245 5246fi 5247fi 5248DUMPBIN=$ac_cv_prog_DUMPBIN 5249if test -n "$DUMPBIN"; then 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5251$as_echo "$DUMPBIN" >&6; } 5252else 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254$as_echo "no" >&6; } 5255fi 5256 5257 5258 test -n "$DUMPBIN" && break 5259 done 5260fi 5261if test -z "$DUMPBIN"; then 5262 ac_ct_DUMPBIN=$DUMPBIN 5263 for ac_prog in dumpbin "link -dump" 5264do 5265 # Extract the first word of "$ac_prog", so it can be a program name with args. 5266set dummy $ac_prog; ac_word=$2 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5268$as_echo_n "checking for $ac_word... " >&6; } 5269if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5270 $as_echo_n "(cached) " >&6 5271else 5272 if test -n "$ac_ct_DUMPBIN"; then 5273 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5274else 5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5276for as_dir in $PATH 5277do 5278 IFS=$as_save_IFS 5279 test -z "$as_dir" && as_dir=. 5280 for ac_exec_ext in '' $ac_executable_extensions; do 5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5282 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5284 break 2 5285 fi 5286done 5287 done 5288IFS=$as_save_IFS 5289 5290fi 5291fi 5292ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5293if test -n "$ac_ct_DUMPBIN"; then 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5295$as_echo "$ac_ct_DUMPBIN" >&6; } 5296else 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5298$as_echo "no" >&6; } 5299fi 5300 5301 5302 test -n "$ac_ct_DUMPBIN" && break 5303done 5304 5305 if test "x$ac_ct_DUMPBIN" = x; then 5306 DUMPBIN=":" 5307 else 5308 case $cross_compiling:$ac_tool_warned in 5309yes:) 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5312ac_tool_warned=yes ;; 5313esac 5314 DUMPBIN=$ac_ct_DUMPBIN 5315 fi 5316fi 5317 5318 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5319 *COFF*) 5320 DUMPBIN="$DUMPBIN -symbols" 5321 ;; 5322 *) 5323 DUMPBIN=: 5324 ;; 5325 esac 5326 fi 5327 5328 if test "$DUMPBIN" != ":"; then 5329 NM="$DUMPBIN" 5330 fi 5331fi 5332test -z "$NM" && NM=nm 5333 5334 5335 5336 5337 5338 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5340$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5341if ${lt_cv_nm_interface+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 lt_cv_nm_interface="BSD nm" 5345 echo "int some_variable = 0;" > conftest.$ac_ext 5346 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5347 (eval "$ac_compile" 2>conftest.err) 5348 cat conftest.err >&5 5349 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5350 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5351 cat conftest.err >&5 5352 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5353 cat conftest.out >&5 5354 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5355 lt_cv_nm_interface="MS dumpbin" 5356 fi 5357 rm -f conftest* 5358fi 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5360$as_echo "$lt_cv_nm_interface" >&6; } 5361 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5363$as_echo_n "checking whether ln -s works... " >&6; } 5364LN_S=$as_ln_s 5365if test "$LN_S" = "ln -s"; then 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5367$as_echo "yes" >&6; } 5368else 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5370$as_echo "no, using $LN_S" >&6; } 5371fi 5372 5373# find the maximum length of command line arguments 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5375$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5376if ${lt_cv_sys_max_cmd_len+:} false; then : 5377 $as_echo_n "(cached) " >&6 5378else 5379 i=0 5380 teststring="ABCD" 5381 5382 case $build_os in 5383 msdosdjgpp*) 5384 # On DJGPP, this test can blow up pretty badly due to problems in libc 5385 # (any single argument exceeding 2000 bytes causes a buffer overrun 5386 # during glob expansion). Even if it were fixed, the result of this 5387 # check would be larger than it should be. 5388 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5389 ;; 5390 5391 gnu*) 5392 # Under GNU Hurd, this test is not required because there is 5393 # no limit to the length of command line arguments. 5394 # Libtool will interpret -1 as no limit whatsoever 5395 lt_cv_sys_max_cmd_len=-1; 5396 ;; 5397 5398 cygwin* | mingw* | cegcc*) 5399 # On Win9x/ME, this test blows up -- it succeeds, but takes 5400 # about 5 minutes as the teststring grows exponentially. 5401 # Worse, since 9x/ME are not pre-emptively multitasking, 5402 # you end up with a "frozen" computer, even though with patience 5403 # the test eventually succeeds (with a max line length of 256k). 5404 # Instead, let's just punt: use the minimum linelength reported by 5405 # all of the supported platforms: 8192 (on NT/2K/XP). 5406 lt_cv_sys_max_cmd_len=8192; 5407 ;; 5408 5409 mint*) 5410 # On MiNT this can take a long time and run out of memory. 5411 lt_cv_sys_max_cmd_len=8192; 5412 ;; 5413 5414 amigaos*) 5415 # On AmigaOS with pdksh, this test takes hours, literally. 5416 # So we just punt and use a minimum line length of 8192. 5417 lt_cv_sys_max_cmd_len=8192; 5418 ;; 5419 5420 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5421 # This has been around since 386BSD, at least. Likely further. 5422 if test -x /sbin/sysctl; then 5423 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5424 elif test -x /usr/sbin/sysctl; then 5425 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5426 else 5427 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5428 fi 5429 # And add a safety zone 5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5432 ;; 5433 5434 interix*) 5435 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5436 lt_cv_sys_max_cmd_len=196608 5437 ;; 5438 5439 os2*) 5440 # The test takes a long time on OS/2. 5441 lt_cv_sys_max_cmd_len=8192 5442 ;; 5443 5444 osf*) 5445 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5446 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5447 # nice to cause kernel panics so lets avoid the loop below. 5448 # First set a reasonable default. 5449 lt_cv_sys_max_cmd_len=16384 5450 # 5451 if test -x /sbin/sysconfig; then 5452 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5453 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5454 esac 5455 fi 5456 ;; 5457 sco3.2v5*) 5458 lt_cv_sys_max_cmd_len=102400 5459 ;; 5460 sysv5* | sco5v6* | sysv4.2uw2*) 5461 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5462 if test -n "$kargmax"; then 5463 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5464 else 5465 lt_cv_sys_max_cmd_len=32768 5466 fi 5467 ;; 5468 *) 5469 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5470 if test -n "$lt_cv_sys_max_cmd_len"; then 5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5473 else 5474 # Make teststring a little bigger before we do anything with it. 5475 # a 1K string should be a reasonable start. 5476 for i in 1 2 3 4 5 6 7 8 ; do 5477 teststring=$teststring$teststring 5478 done 5479 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5480 # If test is not a shell built-in, we'll probably end up computing a 5481 # maximum length that is only half of the actual maximum length, but 5482 # we can't tell. 5483 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5484 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5485 test $i != 17 # 1/2 MB should be enough 5486 do 5487 i=`expr $i + 1` 5488 teststring=$teststring$teststring 5489 done 5490 # Only check the string length outside the loop. 5491 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5492 teststring= 5493 # Add a significant safety factor because C++ compilers can tack on 5494 # massive amounts of additional arguments before passing them to the 5495 # linker. It appears as though 1/2 is a usable value. 5496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5497 fi 5498 ;; 5499 esac 5500 5501fi 5502 5503if test -n $lt_cv_sys_max_cmd_len ; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5505$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5506else 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5508$as_echo "none" >&6; } 5509fi 5510max_cmd_len=$lt_cv_sys_max_cmd_len 5511 5512 5513 5514 5515 5516 5517: ${CP="cp -f"} 5518: ${MV="mv -f"} 5519: ${RM="rm -f"} 5520 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5522$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5523# Try some XSI features 5524xsi_shell=no 5525( _lt_dummy="a/b/c" 5526 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5527 = c,a/b,b/c, \ 5528 && eval 'test $(( 1 + 1 )) -eq 2 \ 5529 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5530 && xsi_shell=yes 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5532$as_echo "$xsi_shell" >&6; } 5533 5534 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5536$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5537lt_shell_append=no 5538( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5539 >/dev/null 2>&1 \ 5540 && lt_shell_append=yes 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5542$as_echo "$lt_shell_append" >&6; } 5543 5544 5545if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5546 lt_unset=unset 5547else 5548 lt_unset=false 5549fi 5550 5551 5552 5553 5554 5555# test EBCDIC or ASCII 5556case `echo X|tr X '\101'` in 5557 A) # ASCII based system 5558 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5559 lt_SP2NL='tr \040 \012' 5560 lt_NL2SP='tr \015\012 \040\040' 5561 ;; 5562 *) # EBCDIC based system 5563 lt_SP2NL='tr \100 \n' 5564 lt_NL2SP='tr \r\n \100\100' 5565 ;; 5566esac 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5577$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5578if ${lt_cv_to_host_file_cmd+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 case $host in 5582 *-*-mingw* ) 5583 case $build in 5584 *-*-mingw* ) # actually msys 5585 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5586 ;; 5587 *-*-cygwin* ) 5588 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5589 ;; 5590 * ) # otherwise, assume *nix 5591 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5592 ;; 5593 esac 5594 ;; 5595 *-*-cygwin* ) 5596 case $build in 5597 *-*-mingw* ) # actually msys 5598 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5599 ;; 5600 *-*-cygwin* ) 5601 lt_cv_to_host_file_cmd=func_convert_file_noop 5602 ;; 5603 * ) # otherwise, assume *nix 5604 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5605 ;; 5606 esac 5607 ;; 5608 * ) # unhandled hosts (and "normal" native builds) 5609 lt_cv_to_host_file_cmd=func_convert_file_noop 5610 ;; 5611esac 5612 5613fi 5614 5615to_host_file_cmd=$lt_cv_to_host_file_cmd 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5617$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5618 5619 5620 5621 5622 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5624$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5625if ${lt_cv_to_tool_file_cmd+:} false; then : 5626 $as_echo_n "(cached) " >&6 5627else 5628 #assume ordinary cross tools, or native build. 5629lt_cv_to_tool_file_cmd=func_convert_file_noop 5630case $host in 5631 *-*-mingw* ) 5632 case $build in 5633 *-*-mingw* ) # actually msys 5634 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5635 ;; 5636 esac 5637 ;; 5638esac 5639 5640fi 5641 5642to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5644$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5645 5646 5647 5648 5649 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5651$as_echo_n "checking for $LD option to reload object files... " >&6; } 5652if ${lt_cv_ld_reload_flag+:} false; then : 5653 $as_echo_n "(cached) " >&6 5654else 5655 lt_cv_ld_reload_flag='-r' 5656fi 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5658$as_echo "$lt_cv_ld_reload_flag" >&6; } 5659reload_flag=$lt_cv_ld_reload_flag 5660case $reload_flag in 5661"" | " "*) ;; 5662*) reload_flag=" $reload_flag" ;; 5663esac 5664reload_cmds='$LD$reload_flag -o $output$reload_objs' 5665case $host_os in 5666 cygwin* | mingw* | pw32* | cegcc*) 5667 if test "$GCC" != yes; then 5668 reload_cmds=false 5669 fi 5670 ;; 5671 darwin*) 5672 if test "$GCC" = yes; then 5673 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5674 else 5675 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5676 fi 5677 ;; 5678esac 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688if test -n "$ac_tool_prefix"; then 5689 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5690set dummy ${ac_tool_prefix}objdump; ac_word=$2 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5692$as_echo_n "checking for $ac_word... " >&6; } 5693if ${ac_cv_prog_OBJDUMP+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 if test -n "$OBJDUMP"; then 5697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5698else 5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5700for as_dir in $PATH 5701do 5702 IFS=$as_save_IFS 5703 test -z "$as_dir" && as_dir=. 5704 for ac_exec_ext in '' $ac_executable_extensions; do 5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5706 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5708 break 2 5709 fi 5710done 5711 done 5712IFS=$as_save_IFS 5713 5714fi 5715fi 5716OBJDUMP=$ac_cv_prog_OBJDUMP 5717if test -n "$OBJDUMP"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5719$as_echo "$OBJDUMP" >&6; } 5720else 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722$as_echo "no" >&6; } 5723fi 5724 5725 5726fi 5727if test -z "$ac_cv_prog_OBJDUMP"; then 5728 ac_ct_OBJDUMP=$OBJDUMP 5729 # Extract the first word of "objdump", so it can be a program name with args. 5730set dummy objdump; ac_word=$2 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5732$as_echo_n "checking for $ac_word... " >&6; } 5733if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5734 $as_echo_n "(cached) " >&6 5735else 5736 if test -n "$ac_ct_OBJDUMP"; then 5737 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5738else 5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5740for as_dir in $PATH 5741do 5742 IFS=$as_save_IFS 5743 test -z "$as_dir" && as_dir=. 5744 for ac_exec_ext in '' $ac_executable_extensions; do 5745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5746 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5748 break 2 5749 fi 5750done 5751 done 5752IFS=$as_save_IFS 5753 5754fi 5755fi 5756ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5757if test -n "$ac_ct_OBJDUMP"; then 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5759$as_echo "$ac_ct_OBJDUMP" >&6; } 5760else 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762$as_echo "no" >&6; } 5763fi 5764 5765 if test "x$ac_ct_OBJDUMP" = x; then 5766 OBJDUMP="false" 5767 else 5768 case $cross_compiling:$ac_tool_warned in 5769yes:) 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5772ac_tool_warned=yes ;; 5773esac 5774 OBJDUMP=$ac_ct_OBJDUMP 5775 fi 5776else 5777 OBJDUMP="$ac_cv_prog_OBJDUMP" 5778fi 5779 5780test -z "$OBJDUMP" && OBJDUMP=objdump 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5791$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5792if ${lt_cv_deplibs_check_method+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 lt_cv_file_magic_cmd='$MAGIC_CMD' 5796lt_cv_file_magic_test_file= 5797lt_cv_deplibs_check_method='unknown' 5798# Need to set the preceding variable on all platforms that support 5799# interlibrary dependencies. 5800# 'none' -- dependencies not supported. 5801# `unknown' -- same as none, but documents that we really don't know. 5802# 'pass_all' -- all dependencies passed with no checks. 5803# 'test_compile' -- check by making test program. 5804# 'file_magic [[regex]]' -- check by looking for files in library path 5805# which responds to the $file_magic_cmd with a given extended regex. 5806# If you have `file' or equivalent on your system and you're not sure 5807# whether `pass_all' will *always* work, you probably want this one. 5808 5809case $host_os in 5810aix[4-9]*) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814beos*) 5815 lt_cv_deplibs_check_method=pass_all 5816 ;; 5817 5818bsdi[45]*) 5819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5820 lt_cv_file_magic_cmd='/usr/bin/file -L' 5821 lt_cv_file_magic_test_file=/shlib/libc.so 5822 ;; 5823 5824cygwin*) 5825 # func_win32_libid is a shell function defined in ltmain.sh 5826 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5827 lt_cv_file_magic_cmd='func_win32_libid' 5828 ;; 5829 5830mingw* | pw32*) 5831 # Base MSYS/MinGW do not provide the 'file' command needed by 5832 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5833 # unless we find 'file', for example because we are cross-compiling. 5834 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5835 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5837 lt_cv_file_magic_cmd='func_win32_libid' 5838 else 5839 # Keep this pattern in sync with the one in func_win32_libid. 5840 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5841 lt_cv_file_magic_cmd='$OBJDUMP -f' 5842 fi 5843 ;; 5844 5845cegcc*) 5846 # use the weaker test based on 'objdump'. See mingw*. 5847 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5848 lt_cv_file_magic_cmd='$OBJDUMP -f' 5849 ;; 5850 5851darwin* | rhapsody*) 5852 lt_cv_deplibs_check_method=pass_all 5853 ;; 5854 5855freebsd* | dragonfly*) 5856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5857 case $host_cpu in 5858 i*86 ) 5859 # Not sure whether the presence of OpenBSD here was a mistake. 5860 # Let's accept both of them until this is cleared up. 5861 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5862 lt_cv_file_magic_cmd=/usr/bin/file 5863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5864 ;; 5865 esac 5866 else 5867 lt_cv_deplibs_check_method=pass_all 5868 fi 5869 ;; 5870 5871gnu*) 5872 lt_cv_deplibs_check_method=pass_all 5873 ;; 5874 5875haiku*) 5876 lt_cv_deplibs_check_method=pass_all 5877 ;; 5878 5879hpux10.20* | hpux11*) 5880 lt_cv_file_magic_cmd=/usr/bin/file 5881 case $host_cpu in 5882 ia64*) 5883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5884 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5885 ;; 5886 hppa*64*) 5887 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]' 5888 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5889 ;; 5890 *) 5891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5892 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5893 ;; 5894 esac 5895 ;; 5896 5897interix[3-9]*) 5898 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5900 ;; 5901 5902irix5* | irix6* | nonstopux*) 5903 case $LD in 5904 *-32|*"-32 ") libmagic=32-bit;; 5905 *-n32|*"-n32 ") libmagic=N32;; 5906 *-64|*"-64 ") libmagic=64-bit;; 5907 *) libmagic=never-match;; 5908 esac 5909 lt_cv_deplibs_check_method=pass_all 5910 ;; 5911 5912# This must be glibc/ELF. 5913linux* | k*bsd*-gnu | kopensolaris*-gnu) 5914 lt_cv_deplibs_check_method=pass_all 5915 ;; 5916 5917netbsd*) 5918 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5920 else 5921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5922 fi 5923 ;; 5924 5925newos6*) 5926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5927 lt_cv_file_magic_cmd=/usr/bin/file 5928 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5929 ;; 5930 5931*nto* | *qnx*) 5932 lt_cv_deplibs_check_method=pass_all 5933 ;; 5934 5935openbsd*) 5936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5938 else 5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5940 fi 5941 ;; 5942 5943osf3* | osf4* | osf5*) 5944 lt_cv_deplibs_check_method=pass_all 5945 ;; 5946 5947rdos*) 5948 lt_cv_deplibs_check_method=pass_all 5949 ;; 5950 5951solaris*) 5952 lt_cv_deplibs_check_method=pass_all 5953 ;; 5954 5955sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5956 lt_cv_deplibs_check_method=pass_all 5957 ;; 5958 5959sysv4 | sysv4.3*) 5960 case $host_vendor in 5961 motorola) 5962 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]' 5963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5964 ;; 5965 ncr) 5966 lt_cv_deplibs_check_method=pass_all 5967 ;; 5968 sequent) 5969 lt_cv_file_magic_cmd='/bin/file' 5970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5971 ;; 5972 sni) 5973 lt_cv_file_magic_cmd='/bin/file' 5974 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5975 lt_cv_file_magic_test_file=/lib/libc.so 5976 ;; 5977 siemens) 5978 lt_cv_deplibs_check_method=pass_all 5979 ;; 5980 pc) 5981 lt_cv_deplibs_check_method=pass_all 5982 ;; 5983 esac 5984 ;; 5985 5986tpf*) 5987 lt_cv_deplibs_check_method=pass_all 5988 ;; 5989esac 5990 5991fi 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5993$as_echo "$lt_cv_deplibs_check_method" >&6; } 5994 5995file_magic_glob= 5996want_nocaseglob=no 5997if test "$build" = "$host"; then 5998 case $host_os in 5999 mingw* | pw32*) 6000 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6001 want_nocaseglob=yes 6002 else 6003 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6004 fi 6005 ;; 6006 esac 6007fi 6008 6009file_magic_cmd=$lt_cv_file_magic_cmd 6010deplibs_check_method=$lt_cv_deplibs_check_method 6011test -z "$deplibs_check_method" && deplibs_check_method=unknown 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034if test -n "$ac_tool_prefix"; then 6035 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6036set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6038$as_echo_n "checking for $ac_word... " >&6; } 6039if ${ac_cv_prog_DLLTOOL+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 if test -n "$DLLTOOL"; then 6043 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6044else 6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6046for as_dir in $PATH 6047do 6048 IFS=$as_save_IFS 6049 test -z "$as_dir" && as_dir=. 6050 for ac_exec_ext in '' $ac_executable_extensions; do 6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6052 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6054 break 2 6055 fi 6056done 6057 done 6058IFS=$as_save_IFS 6059 6060fi 6061fi 6062DLLTOOL=$ac_cv_prog_DLLTOOL 6063if test -n "$DLLTOOL"; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6065$as_echo "$DLLTOOL" >&6; } 6066else 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6068$as_echo "no" >&6; } 6069fi 6070 6071 6072fi 6073if test -z "$ac_cv_prog_DLLTOOL"; then 6074 ac_ct_DLLTOOL=$DLLTOOL 6075 # Extract the first word of "dlltool", so it can be a program name with args. 6076set dummy dlltool; ac_word=$2 6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6078$as_echo_n "checking for $ac_word... " >&6; } 6079if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 if test -n "$ac_ct_DLLTOOL"; then 6083 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6084else 6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6086for as_dir in $PATH 6087do 6088 IFS=$as_save_IFS 6089 test -z "$as_dir" && as_dir=. 6090 for ac_exec_ext in '' $ac_executable_extensions; do 6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6092 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6094 break 2 6095 fi 6096done 6097 done 6098IFS=$as_save_IFS 6099 6100fi 6101fi 6102ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6103if test -n "$ac_ct_DLLTOOL"; then 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6105$as_echo "$ac_ct_DLLTOOL" >&6; } 6106else 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6108$as_echo "no" >&6; } 6109fi 6110 6111 if test "x$ac_ct_DLLTOOL" = x; then 6112 DLLTOOL="false" 6113 else 6114 case $cross_compiling:$ac_tool_warned in 6115yes:) 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6118ac_tool_warned=yes ;; 6119esac 6120 DLLTOOL=$ac_ct_DLLTOOL 6121 fi 6122else 6123 DLLTOOL="$ac_cv_prog_DLLTOOL" 6124fi 6125 6126test -z "$DLLTOOL" && DLLTOOL=dlltool 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6138$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6139if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6140 $as_echo_n "(cached) " >&6 6141else 6142 lt_cv_sharedlib_from_linklib_cmd='unknown' 6143 6144case $host_os in 6145cygwin* | mingw* | pw32* | cegcc*) 6146 # two different shell functions defined in ltmain.sh 6147 # decide which to use based on capabilities of $DLLTOOL 6148 case `$DLLTOOL --help 2>&1` in 6149 *--identify-strict*) 6150 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6151 ;; 6152 *) 6153 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6154 ;; 6155 esac 6156 ;; 6157*) 6158 # fallback: assume linklib IS sharedlib 6159 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6160 ;; 6161esac 6162 6163fi 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6165$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6166sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6167test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6168 6169 6170 6171 6172 6173 6174 6175if test -n "$ac_tool_prefix"; then 6176 for ac_prog in ar 6177 do 6178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6179set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6181$as_echo_n "checking for $ac_word... " >&6; } 6182if ${ac_cv_prog_AR+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184else 6185 if test -n "$AR"; then 6186 ac_cv_prog_AR="$AR" # Let the user override the test. 6187else 6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6189for as_dir in $PATH 6190do 6191 IFS=$as_save_IFS 6192 test -z "$as_dir" && as_dir=. 6193 for ac_exec_ext in '' $ac_executable_extensions; do 6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6195 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6197 break 2 6198 fi 6199done 6200 done 6201IFS=$as_save_IFS 6202 6203fi 6204fi 6205AR=$ac_cv_prog_AR 6206if test -n "$AR"; then 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6208$as_echo "$AR" >&6; } 6209else 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6211$as_echo "no" >&6; } 6212fi 6213 6214 6215 test -n "$AR" && break 6216 done 6217fi 6218if test -z "$AR"; then 6219 ac_ct_AR=$AR 6220 for ac_prog in ar 6221do 6222 # Extract the first word of "$ac_prog", so it can be a program name with args. 6223set dummy $ac_prog; ac_word=$2 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6225$as_echo_n "checking for $ac_word... " >&6; } 6226if ${ac_cv_prog_ac_ct_AR+:} false; then : 6227 $as_echo_n "(cached) " >&6 6228else 6229 if test -n "$ac_ct_AR"; then 6230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6231else 6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6233for as_dir in $PATH 6234do 6235 IFS=$as_save_IFS 6236 test -z "$as_dir" && as_dir=. 6237 for ac_exec_ext in '' $ac_executable_extensions; do 6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6239 ac_cv_prog_ac_ct_AR="$ac_prog" 6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6241 break 2 6242 fi 6243done 6244 done 6245IFS=$as_save_IFS 6246 6247fi 6248fi 6249ac_ct_AR=$ac_cv_prog_ac_ct_AR 6250if test -n "$ac_ct_AR"; then 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6252$as_echo "$ac_ct_AR" >&6; } 6253else 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6255$as_echo "no" >&6; } 6256fi 6257 6258 6259 test -n "$ac_ct_AR" && break 6260done 6261 6262 if test "x$ac_ct_AR" = x; then 6263 AR="false" 6264 else 6265 case $cross_compiling:$ac_tool_warned in 6266yes:) 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6269ac_tool_warned=yes ;; 6270esac 6271 AR=$ac_ct_AR 6272 fi 6273fi 6274 6275: ${AR=ar} 6276: ${AR_FLAGS=cru} 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6289$as_echo_n "checking for archiver @FILE support... " >&6; } 6290if ${lt_cv_ar_at_file+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 lt_cv_ar_at_file=no 6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6295/* end confdefs.h. */ 6296 6297int 6298main () 6299{ 6300 6301 ; 6302 return 0; 6303} 6304_ACEOF 6305if ac_fn_c_try_compile "$LINENO"; then : 6306 echo conftest.$ac_objext > conftest.lst 6307 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6309 (eval $lt_ar_try) 2>&5 6310 ac_status=$? 6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6312 test $ac_status = 0; } 6313 if test "$ac_status" -eq 0; then 6314 # Ensure the archiver fails upon bogus file names. 6315 rm -f conftest.$ac_objext libconftest.a 6316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6317 (eval $lt_ar_try) 2>&5 6318 ac_status=$? 6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6320 test $ac_status = 0; } 6321 if test "$ac_status" -ne 0; then 6322 lt_cv_ar_at_file=@ 6323 fi 6324 fi 6325 rm -f conftest.* libconftest.a 6326 6327fi 6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6329 6330fi 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6332$as_echo "$lt_cv_ar_at_file" >&6; } 6333 6334if test "x$lt_cv_ar_at_file" = xno; then 6335 archiver_list_spec= 6336else 6337 archiver_list_spec=$lt_cv_ar_at_file 6338fi 6339 6340 6341 6342 6343 6344 6345 6346if test -n "$ac_tool_prefix"; then 6347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6348set dummy ${ac_tool_prefix}strip; ac_word=$2 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6350$as_echo_n "checking for $ac_word... " >&6; } 6351if ${ac_cv_prog_STRIP+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 if test -n "$STRIP"; then 6355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6356else 6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6358for as_dir in $PATH 6359do 6360 IFS=$as_save_IFS 6361 test -z "$as_dir" && as_dir=. 6362 for ac_exec_ext in '' $ac_executable_extensions; do 6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6364 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6366 break 2 6367 fi 6368done 6369 done 6370IFS=$as_save_IFS 6371 6372fi 6373fi 6374STRIP=$ac_cv_prog_STRIP 6375if test -n "$STRIP"; then 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6377$as_echo "$STRIP" >&6; } 6378else 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6380$as_echo "no" >&6; } 6381fi 6382 6383 6384fi 6385if test -z "$ac_cv_prog_STRIP"; then 6386 ac_ct_STRIP=$STRIP 6387 # Extract the first word of "strip", so it can be a program name with args. 6388set dummy strip; ac_word=$2 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6390$as_echo_n "checking for $ac_word... " >&6; } 6391if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6392 $as_echo_n "(cached) " >&6 6393else 6394 if test -n "$ac_ct_STRIP"; then 6395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6396else 6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6398for as_dir in $PATH 6399do 6400 IFS=$as_save_IFS 6401 test -z "$as_dir" && as_dir=. 6402 for ac_exec_ext in '' $ac_executable_extensions; do 6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6404 ac_cv_prog_ac_ct_STRIP="strip" 6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6406 break 2 6407 fi 6408done 6409 done 6410IFS=$as_save_IFS 6411 6412fi 6413fi 6414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6415if test -n "$ac_ct_STRIP"; then 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6417$as_echo "$ac_ct_STRIP" >&6; } 6418else 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6420$as_echo "no" >&6; } 6421fi 6422 6423 if test "x$ac_ct_STRIP" = x; then 6424 STRIP=":" 6425 else 6426 case $cross_compiling:$ac_tool_warned in 6427yes:) 6428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6430ac_tool_warned=yes ;; 6431esac 6432 STRIP=$ac_ct_STRIP 6433 fi 6434else 6435 STRIP="$ac_cv_prog_STRIP" 6436fi 6437 6438test -z "$STRIP" && STRIP=: 6439 6440 6441 6442 6443 6444 6445if test -n "$ac_tool_prefix"; then 6446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6447set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449$as_echo_n "checking for $ac_word... " >&6; } 6450if ${ac_cv_prog_RANLIB+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 if test -n "$RANLIB"; then 6454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6455else 6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6457for as_dir in $PATH 6458do 6459 IFS=$as_save_IFS 6460 test -z "$as_dir" && as_dir=. 6461 for ac_exec_ext in '' $ac_executable_extensions; do 6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6465 break 2 6466 fi 6467done 6468 done 6469IFS=$as_save_IFS 6470 6471fi 6472fi 6473RANLIB=$ac_cv_prog_RANLIB 6474if test -n "$RANLIB"; then 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6476$as_echo "$RANLIB" >&6; } 6477else 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479$as_echo "no" >&6; } 6480fi 6481 6482 6483fi 6484if test -z "$ac_cv_prog_RANLIB"; then 6485 ac_ct_RANLIB=$RANLIB 6486 # Extract the first word of "ranlib", so it can be a program name with args. 6487set dummy ranlib; ac_word=$2 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6489$as_echo_n "checking for $ac_word... " >&6; } 6490if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 if test -n "$ac_ct_RANLIB"; then 6494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6495else 6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6497for as_dir in $PATH 6498do 6499 IFS=$as_save_IFS 6500 test -z "$as_dir" && as_dir=. 6501 for ac_exec_ext in '' $ac_executable_extensions; do 6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6503 ac_cv_prog_ac_ct_RANLIB="ranlib" 6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6505 break 2 6506 fi 6507done 6508 done 6509IFS=$as_save_IFS 6510 6511fi 6512fi 6513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6514if test -n "$ac_ct_RANLIB"; then 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6516$as_echo "$ac_ct_RANLIB" >&6; } 6517else 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519$as_echo "no" >&6; } 6520fi 6521 6522 if test "x$ac_ct_RANLIB" = x; then 6523 RANLIB=":" 6524 else 6525 case $cross_compiling:$ac_tool_warned in 6526yes:) 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6529ac_tool_warned=yes ;; 6530esac 6531 RANLIB=$ac_ct_RANLIB 6532 fi 6533else 6534 RANLIB="$ac_cv_prog_RANLIB" 6535fi 6536 6537test -z "$RANLIB" && RANLIB=: 6538 6539 6540 6541 6542 6543 6544# Determine commands to create old-style static archives. 6545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6546old_postinstall_cmds='chmod 644 $oldlib' 6547old_postuninstall_cmds= 6548 6549if test -n "$RANLIB"; then 6550 case $host_os in 6551 openbsd*) 6552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6553 ;; 6554 *) 6555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6556 ;; 6557 esac 6558 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6559fi 6560 6561case $host_os in 6562 darwin*) 6563 lock_old_archive_extraction=yes ;; 6564 *) 6565 lock_old_archive_extraction=no ;; 6566esac 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606# If no C compiler was specified, use CC. 6607LTCC=${LTCC-"$CC"} 6608 6609# If no C compiler flags were specified, use CFLAGS. 6610LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6611 6612# Allow CC to be a program name with arguments. 6613compiler=$CC 6614 6615 6616# Check for command to grab the raw symbol name followed by C symbol from nm. 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6618$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6619if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6620 $as_echo_n "(cached) " >&6 6621else 6622 6623# These are sane defaults that work on at least a few old systems. 6624# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6625 6626# Character class describing NM global symbol codes. 6627symcode='[BCDEGRST]' 6628 6629# Regexp to match symbols that can be accessed directly from C. 6630sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6631 6632# Define system-specific variables. 6633case $host_os in 6634aix*) 6635 symcode='[BCDT]' 6636 ;; 6637cygwin* | mingw* | pw32* | cegcc*) 6638 symcode='[ABCDGISTW]' 6639 ;; 6640hpux*) 6641 if test "$host_cpu" = ia64; then 6642 symcode='[ABCDEGRST]' 6643 fi 6644 ;; 6645irix* | nonstopux*) 6646 symcode='[BCDEGRST]' 6647 ;; 6648osf*) 6649 symcode='[BCDEGQRST]' 6650 ;; 6651solaris*) 6652 symcode='[BDRT]' 6653 ;; 6654sco3.2v5*) 6655 symcode='[DT]' 6656 ;; 6657sysv4.2uw2*) 6658 symcode='[DT]' 6659 ;; 6660sysv5* | sco5v6* | unixware* | OpenUNIX*) 6661 symcode='[ABDT]' 6662 ;; 6663sysv4) 6664 symcode='[DFNSTU]' 6665 ;; 6666esac 6667 6668# If we're using GNU nm, then use its standard symbol codes. 6669case `$NM -V 2>&1` in 6670*GNU* | *'with BFD'*) 6671 symcode='[ABCDGIRSTW]' ;; 6672esac 6673 6674# Transform an extracted symbol line into a proper C declaration. 6675# Some systems (esp. on ia64) link data and code symbols differently, 6676# so use this general approach. 6677lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6678 6679# Transform an extracted symbol line into symbol name and symbol address 6680lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6681lt_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'" 6682 6683# Handle CRLF in mingw tool chain 6684opt_cr= 6685case $build_os in 6686mingw*) 6687 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6688 ;; 6689esac 6690 6691# Try without a prefix underscore, then with it. 6692for ac_symprfx in "" "_"; do 6693 6694 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6695 symxfrm="\\1 $ac_symprfx\\2 \\2" 6696 6697 # Write the raw and C identifiers. 6698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6699 # Fake it for dumpbin and say T for any non-static function 6700 # and D for any global variable. 6701 # Also find C++ and __fastcall symbols from MSVC++, 6702 # which start with @ or ?. 6703 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6704" {last_section=section; section=\$ 3};"\ 6705" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6706" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6707" \$ 0!~/External *\|/{next};"\ 6708" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6709" {if(hide[section]) next};"\ 6710" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6711" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6712" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6713" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6714" ' prfx=^$ac_symprfx" 6715 else 6716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6717 fi 6718 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6719 6720 # Check to see that the pipe works correctly. 6721 pipe_works=no 6722 6723 rm -f conftest* 6724 cat > conftest.$ac_ext <<_LT_EOF 6725#ifdef __cplusplus 6726extern "C" { 6727#endif 6728char nm_test_var; 6729void nm_test_func(void); 6730void nm_test_func(void){} 6731#ifdef __cplusplus 6732} 6733#endif 6734int main(){nm_test_var='a';nm_test_func();return(0);} 6735_LT_EOF 6736 6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6738 (eval $ac_compile) 2>&5 6739 ac_status=$? 6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6741 test $ac_status = 0; }; then 6742 # Now try to grab the symbols. 6743 nlist=conftest.nm 6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6745 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6746 ac_status=$? 6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6748 test $ac_status = 0; } && test -s "$nlist"; then 6749 # Try sorting and uniquifying the output. 6750 if sort "$nlist" | uniq > "$nlist"T; then 6751 mv -f "$nlist"T "$nlist" 6752 else 6753 rm -f "$nlist"T 6754 fi 6755 6756 # Make sure that we snagged all the symbols we need. 6757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6759 cat <<_LT_EOF > conftest.$ac_ext 6760/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6761#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6762/* DATA imports from DLLs on WIN32 con't be const, because runtime 6763 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6764# define LT_DLSYM_CONST 6765#elif defined(__osf__) 6766/* This system does not cope well with relocations in const data. */ 6767# define LT_DLSYM_CONST 6768#else 6769# define LT_DLSYM_CONST const 6770#endif 6771 6772#ifdef __cplusplus 6773extern "C" { 6774#endif 6775 6776_LT_EOF 6777 # Now generate the symbol file. 6778 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6779 6780 cat <<_LT_EOF >> conftest.$ac_ext 6781 6782/* The mapping between symbol names and symbols. */ 6783LT_DLSYM_CONST struct { 6784 const char *name; 6785 void *address; 6786} 6787lt__PROGRAM__LTX_preloaded_symbols[] = 6788{ 6789 { "@PROGRAM@", (void *) 0 }, 6790_LT_EOF 6791 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6792 cat <<\_LT_EOF >> conftest.$ac_ext 6793 {0, (void *) 0} 6794}; 6795 6796/* This works around a problem in FreeBSD linker */ 6797#ifdef FREEBSD_WORKAROUND 6798static const void *lt_preloaded_setup() { 6799 return lt__PROGRAM__LTX_preloaded_symbols; 6800} 6801#endif 6802 6803#ifdef __cplusplus 6804} 6805#endif 6806_LT_EOF 6807 # Now try linking the two files. 6808 mv conftest.$ac_objext conftstm.$ac_objext 6809 lt_globsym_save_LIBS=$LIBS 6810 lt_globsym_save_CFLAGS=$CFLAGS 6811 LIBS="conftstm.$ac_objext" 6812 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6814 (eval $ac_link) 2>&5 6815 ac_status=$? 6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6817 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6818 pipe_works=yes 6819 fi 6820 LIBS=$lt_globsym_save_LIBS 6821 CFLAGS=$lt_globsym_save_CFLAGS 6822 else 6823 echo "cannot find nm_test_func in $nlist" >&5 6824 fi 6825 else 6826 echo "cannot find nm_test_var in $nlist" >&5 6827 fi 6828 else 6829 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6830 fi 6831 else 6832 echo "$progname: failed program was:" >&5 6833 cat conftest.$ac_ext >&5 6834 fi 6835 rm -rf conftest* conftst* 6836 6837 # Do not use the global_symbol_pipe unless it works. 6838 if test "$pipe_works" = yes; then 6839 break 6840 else 6841 lt_cv_sys_global_symbol_pipe= 6842 fi 6843done 6844 6845fi 6846 6847if test -z "$lt_cv_sys_global_symbol_pipe"; then 6848 lt_cv_sys_global_symbol_to_cdecl= 6849fi 6850if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6852$as_echo "failed" >&6; } 6853else 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6855$as_echo "ok" >&6; } 6856fi 6857 6858# Response file support. 6859if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6860 nm_file_list_spec='@' 6861elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6862 nm_file_list_spec='@' 6863fi 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6892$as_echo_n "checking for sysroot... " >&6; } 6893 6894# Check whether --with-sysroot was given. 6895if test "${with_sysroot+set}" = set; then : 6896 withval=$with_sysroot; 6897else 6898 with_sysroot=no 6899fi 6900 6901 6902lt_sysroot= 6903case ${with_sysroot} in #( 6904 yes) 6905 if test "$GCC" = yes; then 6906 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6907 fi 6908 ;; #( 6909 /*) 6910 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6911 ;; #( 6912 no|'') 6913 ;; #( 6914 *) 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6916$as_echo "${with_sysroot}" >&6; } 6917 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6918 ;; 6919esac 6920 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6922$as_echo "${lt_sysroot:-no}" >&6; } 6923 6924 6925 6926 6927 6928# Check whether --enable-libtool-lock was given. 6929if test "${enable_libtool_lock+set}" = set; then : 6930 enableval=$enable_libtool_lock; 6931fi 6932 6933test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6934 6935# Some flags need to be propagated to the compiler or linker for good 6936# libtool support. 6937case $host in 6938ia64-*-hpux*) 6939 # Find out which ABI we are using. 6940 echo 'int i;' > conftest.$ac_ext 6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6942 (eval $ac_compile) 2>&5 6943 ac_status=$? 6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6945 test $ac_status = 0; }; then 6946 case `/usr/bin/file conftest.$ac_objext` in 6947 *ELF-32*) 6948 HPUX_IA64_MODE="32" 6949 ;; 6950 *ELF-64*) 6951 HPUX_IA64_MODE="64" 6952 ;; 6953 esac 6954 fi 6955 rm -rf conftest* 6956 ;; 6957*-*-irix6*) 6958 # Find out which ABI we are using. 6959 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6961 (eval $ac_compile) 2>&5 6962 ac_status=$? 6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6964 test $ac_status = 0; }; then 6965 if test "$lt_cv_prog_gnu_ld" = yes; then 6966 case `/usr/bin/file conftest.$ac_objext` in 6967 *32-bit*) 6968 LD="${LD-ld} -melf32bsmip" 6969 ;; 6970 *N32*) 6971 LD="${LD-ld} -melf32bmipn32" 6972 ;; 6973 *64-bit*) 6974 LD="${LD-ld} -melf64bmip" 6975 ;; 6976 esac 6977 else 6978 case `/usr/bin/file conftest.$ac_objext` in 6979 *32-bit*) 6980 LD="${LD-ld} -32" 6981 ;; 6982 *N32*) 6983 LD="${LD-ld} -n32" 6984 ;; 6985 *64-bit*) 6986 LD="${LD-ld} -64" 6987 ;; 6988 esac 6989 fi 6990 fi 6991 rm -rf conftest* 6992 ;; 6993 6994x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6995s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6996 # Find out which ABI we are using. 6997 echo 'int i;' > conftest.$ac_ext 6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6999 (eval $ac_compile) 2>&5 7000 ac_status=$? 7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7002 test $ac_status = 0; }; then 7003 case `/usr/bin/file conftest.o` in 7004 *32-bit*) 7005 case $host in 7006 x86_64-*kfreebsd*-gnu) 7007 LD="${LD-ld} -m elf_i386_fbsd" 7008 ;; 7009 x86_64-*linux*) 7010 LD="${LD-ld} -m elf_i386" 7011 ;; 7012 ppc64-*linux*|powerpc64-*linux*) 7013 LD="${LD-ld} -m elf32ppclinux" 7014 ;; 7015 s390x-*linux*) 7016 LD="${LD-ld} -m elf_s390" 7017 ;; 7018 sparc64-*linux*) 7019 LD="${LD-ld} -m elf32_sparc" 7020 ;; 7021 esac 7022 ;; 7023 *64-bit*) 7024 case $host in 7025 x86_64-*kfreebsd*-gnu) 7026 LD="${LD-ld} -m elf_x86_64_fbsd" 7027 ;; 7028 x86_64-*linux*) 7029 LD="${LD-ld} -m elf_x86_64" 7030 ;; 7031 ppc*-*linux*|powerpc*-*linux*) 7032 LD="${LD-ld} -m elf64ppc" 7033 ;; 7034 s390*-*linux*|s390*-*tpf*) 7035 LD="${LD-ld} -m elf64_s390" 7036 ;; 7037 sparc*-*linux*) 7038 LD="${LD-ld} -m elf64_sparc" 7039 ;; 7040 esac 7041 ;; 7042 esac 7043 fi 7044 rm -rf conftest* 7045 ;; 7046 7047*-*-sco3.2v5*) 7048 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7049 SAVE_CFLAGS="$CFLAGS" 7050 CFLAGS="$CFLAGS -belf" 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7052$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7053if ${lt_cv_cc_needs_belf+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 ac_ext=c 7057ac_cpp='$CPP $CPPFLAGS' 7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7060ac_compiler_gnu=$ac_cv_c_compiler_gnu 7061 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064 7065int 7066main () 7067{ 7068 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073if ac_fn_c_try_link "$LINENO"; then : 7074 lt_cv_cc_needs_belf=yes 7075else 7076 lt_cv_cc_needs_belf=no 7077fi 7078rm -f core conftest.err conftest.$ac_objext \ 7079 conftest$ac_exeext conftest.$ac_ext 7080 ac_ext=c 7081ac_cpp='$CPP $CPPFLAGS' 7082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7084ac_compiler_gnu=$ac_cv_c_compiler_gnu 7085 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7088$as_echo "$lt_cv_cc_needs_belf" >&6; } 7089 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7090 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7091 CFLAGS="$SAVE_CFLAGS" 7092 fi 7093 ;; 7094*-*solaris*) 7095 # Find out which ABI we are using. 7096 echo 'int i;' > conftest.$ac_ext 7097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7098 (eval $ac_compile) 2>&5 7099 ac_status=$? 7100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7101 test $ac_status = 0; }; then 7102 case `/usr/bin/file conftest.o` in 7103 *64-bit*) 7104 case $lt_cv_prog_gnu_ld in 7105 yes*) 7106 case $host in 7107 i?86-*-solaris*) 7108 LD="${LD-ld} -m elf_x86_64" 7109 ;; 7110 sparc*-*-solaris*) 7111 LD="${LD-ld} -m elf64_sparc" 7112 ;; 7113 esac 7114 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7115 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7116 LD="${LD-ld}_sol2" 7117 fi 7118 ;; 7119 *) 7120 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7121 LD="${LD-ld} -64" 7122 fi 7123 ;; 7124 esac 7125 ;; 7126 esac 7127 fi 7128 rm -rf conftest* 7129 ;; 7130esac 7131 7132need_locks="$enable_libtool_lock" 7133 7134if test -n "$ac_tool_prefix"; then 7135 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7136set dummy ${ac_tool_prefix}mt; ac_word=$2 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7138$as_echo_n "checking for $ac_word... " >&6; } 7139if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141else 7142 if test -n "$MANIFEST_TOOL"; then 7143 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7144else 7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7146for as_dir in $PATH 7147do 7148 IFS=$as_save_IFS 7149 test -z "$as_dir" && as_dir=. 7150 for ac_exec_ext in '' $ac_executable_extensions; do 7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7152 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7154 break 2 7155 fi 7156done 7157 done 7158IFS=$as_save_IFS 7159 7160fi 7161fi 7162MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7163if test -n "$MANIFEST_TOOL"; then 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7165$as_echo "$MANIFEST_TOOL" >&6; } 7166else 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7168$as_echo "no" >&6; } 7169fi 7170 7171 7172fi 7173if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7174 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7175 # Extract the first word of "mt", so it can be a program name with args. 7176set dummy mt; ac_word=$2 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7178$as_echo_n "checking for $ac_word... " >&6; } 7179if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181else 7182 if test -n "$ac_ct_MANIFEST_TOOL"; then 7183 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7184else 7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7186for as_dir in $PATH 7187do 7188 IFS=$as_save_IFS 7189 test -z "$as_dir" && as_dir=. 7190 for ac_exec_ext in '' $ac_executable_extensions; do 7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7192 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7194 break 2 7195 fi 7196done 7197 done 7198IFS=$as_save_IFS 7199 7200fi 7201fi 7202ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7203if test -n "$ac_ct_MANIFEST_TOOL"; then 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7205$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7206else 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7208$as_echo "no" >&6; } 7209fi 7210 7211 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7212 MANIFEST_TOOL=":" 7213 else 7214 case $cross_compiling:$ac_tool_warned in 7215yes:) 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7218ac_tool_warned=yes ;; 7219esac 7220 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7221 fi 7222else 7223 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7224fi 7225 7226test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7228$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7229if ${lt_cv_path_mainfest_tool+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 lt_cv_path_mainfest_tool=no 7233 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7234 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7235 cat conftest.err >&5 7236 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7237 lt_cv_path_mainfest_tool=yes 7238 fi 7239 rm -f conftest* 7240fi 7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7242$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7243if test "x$lt_cv_path_mainfest_tool" != xyes; then 7244 MANIFEST_TOOL=: 7245fi 7246 7247 7248 7249 7250 7251 7252 case $host_os in 7253 rhapsody* | darwin*) 7254 if test -n "$ac_tool_prefix"; then 7255 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7256set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7258$as_echo_n "checking for $ac_word... " >&6; } 7259if ${ac_cv_prog_DSYMUTIL+:} false; then : 7260 $as_echo_n "(cached) " >&6 7261else 7262 if test -n "$DSYMUTIL"; then 7263 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7264else 7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7266for as_dir in $PATH 7267do 7268 IFS=$as_save_IFS 7269 test -z "$as_dir" && as_dir=. 7270 for ac_exec_ext in '' $ac_executable_extensions; do 7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7272 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7274 break 2 7275 fi 7276done 7277 done 7278IFS=$as_save_IFS 7279 7280fi 7281fi 7282DSYMUTIL=$ac_cv_prog_DSYMUTIL 7283if test -n "$DSYMUTIL"; then 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7285$as_echo "$DSYMUTIL" >&6; } 7286else 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7288$as_echo "no" >&6; } 7289fi 7290 7291 7292fi 7293if test -z "$ac_cv_prog_DSYMUTIL"; then 7294 ac_ct_DSYMUTIL=$DSYMUTIL 7295 # Extract the first word of "dsymutil", so it can be a program name with args. 7296set dummy dsymutil; ac_word=$2 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7298$as_echo_n "checking for $ac_word... " >&6; } 7299if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 if test -n "$ac_ct_DSYMUTIL"; then 7303 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7304else 7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7306for as_dir in $PATH 7307do 7308 IFS=$as_save_IFS 7309 test -z "$as_dir" && as_dir=. 7310 for ac_exec_ext in '' $ac_executable_extensions; do 7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7312 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7314 break 2 7315 fi 7316done 7317 done 7318IFS=$as_save_IFS 7319 7320fi 7321fi 7322ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7323if test -n "$ac_ct_DSYMUTIL"; then 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7325$as_echo "$ac_ct_DSYMUTIL" >&6; } 7326else 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7328$as_echo "no" >&6; } 7329fi 7330 7331 if test "x$ac_ct_DSYMUTIL" = x; then 7332 DSYMUTIL=":" 7333 else 7334 case $cross_compiling:$ac_tool_warned in 7335yes:) 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7338ac_tool_warned=yes ;; 7339esac 7340 DSYMUTIL=$ac_ct_DSYMUTIL 7341 fi 7342else 7343 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7344fi 7345 7346 if test -n "$ac_tool_prefix"; then 7347 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7348set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7350$as_echo_n "checking for $ac_word... " >&6; } 7351if ${ac_cv_prog_NMEDIT+:} false; then : 7352 $as_echo_n "(cached) " >&6 7353else 7354 if test -n "$NMEDIT"; then 7355 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7356else 7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7358for as_dir in $PATH 7359do 7360 IFS=$as_save_IFS 7361 test -z "$as_dir" && as_dir=. 7362 for ac_exec_ext in '' $ac_executable_extensions; do 7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7364 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7366 break 2 7367 fi 7368done 7369 done 7370IFS=$as_save_IFS 7371 7372fi 7373fi 7374NMEDIT=$ac_cv_prog_NMEDIT 7375if test -n "$NMEDIT"; then 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7377$as_echo "$NMEDIT" >&6; } 7378else 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7380$as_echo "no" >&6; } 7381fi 7382 7383 7384fi 7385if test -z "$ac_cv_prog_NMEDIT"; then 7386 ac_ct_NMEDIT=$NMEDIT 7387 # Extract the first word of "nmedit", so it can be a program name with args. 7388set dummy nmedit; ac_word=$2 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7390$as_echo_n "checking for $ac_word... " >&6; } 7391if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7392 $as_echo_n "(cached) " >&6 7393else 7394 if test -n "$ac_ct_NMEDIT"; then 7395 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7396else 7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7398for as_dir in $PATH 7399do 7400 IFS=$as_save_IFS 7401 test -z "$as_dir" && as_dir=. 7402 for ac_exec_ext in '' $ac_executable_extensions; do 7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7404 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7406 break 2 7407 fi 7408done 7409 done 7410IFS=$as_save_IFS 7411 7412fi 7413fi 7414ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7415if test -n "$ac_ct_NMEDIT"; then 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7417$as_echo "$ac_ct_NMEDIT" >&6; } 7418else 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7420$as_echo "no" >&6; } 7421fi 7422 7423 if test "x$ac_ct_NMEDIT" = x; then 7424 NMEDIT=":" 7425 else 7426 case $cross_compiling:$ac_tool_warned in 7427yes:) 7428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7430ac_tool_warned=yes ;; 7431esac 7432 NMEDIT=$ac_ct_NMEDIT 7433 fi 7434else 7435 NMEDIT="$ac_cv_prog_NMEDIT" 7436fi 7437 7438 if test -n "$ac_tool_prefix"; then 7439 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7440set dummy ${ac_tool_prefix}lipo; ac_word=$2 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7442$as_echo_n "checking for $ac_word... " >&6; } 7443if ${ac_cv_prog_LIPO+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 if test -n "$LIPO"; then 7447 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7448else 7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7450for as_dir in $PATH 7451do 7452 IFS=$as_save_IFS 7453 test -z "$as_dir" && as_dir=. 7454 for ac_exec_ext in '' $ac_executable_extensions; do 7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7456 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7458 break 2 7459 fi 7460done 7461 done 7462IFS=$as_save_IFS 7463 7464fi 7465fi 7466LIPO=$ac_cv_prog_LIPO 7467if test -n "$LIPO"; then 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7469$as_echo "$LIPO" >&6; } 7470else 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7472$as_echo "no" >&6; } 7473fi 7474 7475 7476fi 7477if test -z "$ac_cv_prog_LIPO"; then 7478 ac_ct_LIPO=$LIPO 7479 # Extract the first word of "lipo", so it can be a program name with args. 7480set dummy lipo; ac_word=$2 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7482$as_echo_n "checking for $ac_word... " >&6; } 7483if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 if test -n "$ac_ct_LIPO"; then 7487 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7488else 7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490for as_dir in $PATH 7491do 7492 IFS=$as_save_IFS 7493 test -z "$as_dir" && as_dir=. 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7496 ac_cv_prog_ac_ct_LIPO="lipo" 7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500done 7501 done 7502IFS=$as_save_IFS 7503 7504fi 7505fi 7506ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7507if test -n "$ac_ct_LIPO"; then 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7509$as_echo "$ac_ct_LIPO" >&6; } 7510else 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7512$as_echo "no" >&6; } 7513fi 7514 7515 if test "x$ac_ct_LIPO" = x; then 7516 LIPO=":" 7517 else 7518 case $cross_compiling:$ac_tool_warned in 7519yes:) 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7522ac_tool_warned=yes ;; 7523esac 7524 LIPO=$ac_ct_LIPO 7525 fi 7526else 7527 LIPO="$ac_cv_prog_LIPO" 7528fi 7529 7530 if test -n "$ac_tool_prefix"; then 7531 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7532set dummy ${ac_tool_prefix}otool; ac_word=$2 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7534$as_echo_n "checking for $ac_word... " >&6; } 7535if ${ac_cv_prog_OTOOL+:} false; then : 7536 $as_echo_n "(cached) " >&6 7537else 7538 if test -n "$OTOOL"; then 7539 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7540else 7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7542for as_dir in $PATH 7543do 7544 IFS=$as_save_IFS 7545 test -z "$as_dir" && as_dir=. 7546 for ac_exec_ext in '' $ac_executable_extensions; do 7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7548 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7550 break 2 7551 fi 7552done 7553 done 7554IFS=$as_save_IFS 7555 7556fi 7557fi 7558OTOOL=$ac_cv_prog_OTOOL 7559if test -n "$OTOOL"; then 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7561$as_echo "$OTOOL" >&6; } 7562else 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7564$as_echo "no" >&6; } 7565fi 7566 7567 7568fi 7569if test -z "$ac_cv_prog_OTOOL"; then 7570 ac_ct_OTOOL=$OTOOL 7571 # Extract the first word of "otool", so it can be a program name with args. 7572set dummy otool; ac_word=$2 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7574$as_echo_n "checking for $ac_word... " >&6; } 7575if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7576 $as_echo_n "(cached) " >&6 7577else 7578 if test -n "$ac_ct_OTOOL"; then 7579 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7580else 7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7582for as_dir in $PATH 7583do 7584 IFS=$as_save_IFS 7585 test -z "$as_dir" && as_dir=. 7586 for ac_exec_ext in '' $ac_executable_extensions; do 7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7588 ac_cv_prog_ac_ct_OTOOL="otool" 7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7590 break 2 7591 fi 7592done 7593 done 7594IFS=$as_save_IFS 7595 7596fi 7597fi 7598ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7599if test -n "$ac_ct_OTOOL"; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7601$as_echo "$ac_ct_OTOOL" >&6; } 7602else 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7604$as_echo "no" >&6; } 7605fi 7606 7607 if test "x$ac_ct_OTOOL" = x; then 7608 OTOOL=":" 7609 else 7610 case $cross_compiling:$ac_tool_warned in 7611yes:) 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7614ac_tool_warned=yes ;; 7615esac 7616 OTOOL=$ac_ct_OTOOL 7617 fi 7618else 7619 OTOOL="$ac_cv_prog_OTOOL" 7620fi 7621 7622 if test -n "$ac_tool_prefix"; then 7623 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7624set dummy ${ac_tool_prefix}otool64; ac_word=$2 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626$as_echo_n "checking for $ac_word... " >&6; } 7627if ${ac_cv_prog_OTOOL64+:} false; then : 7628 $as_echo_n "(cached) " >&6 7629else 7630 if test -n "$OTOOL64"; then 7631 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7632else 7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7634for as_dir in $PATH 7635do 7636 IFS=$as_save_IFS 7637 test -z "$as_dir" && as_dir=. 7638 for ac_exec_ext in '' $ac_executable_extensions; do 7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7640 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7642 break 2 7643 fi 7644done 7645 done 7646IFS=$as_save_IFS 7647 7648fi 7649fi 7650OTOOL64=$ac_cv_prog_OTOOL64 7651if test -n "$OTOOL64"; then 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7653$as_echo "$OTOOL64" >&6; } 7654else 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7656$as_echo "no" >&6; } 7657fi 7658 7659 7660fi 7661if test -z "$ac_cv_prog_OTOOL64"; then 7662 ac_ct_OTOOL64=$OTOOL64 7663 # Extract the first word of "otool64", so it can be a program name with args. 7664set dummy otool64; ac_word=$2 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7666$as_echo_n "checking for $ac_word... " >&6; } 7667if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7668 $as_echo_n "(cached) " >&6 7669else 7670 if test -n "$ac_ct_OTOOL64"; then 7671 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7672else 7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7674for as_dir in $PATH 7675do 7676 IFS=$as_save_IFS 7677 test -z "$as_dir" && as_dir=. 7678 for ac_exec_ext in '' $ac_executable_extensions; do 7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7680 ac_cv_prog_ac_ct_OTOOL64="otool64" 7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7682 break 2 7683 fi 7684done 7685 done 7686IFS=$as_save_IFS 7687 7688fi 7689fi 7690ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7691if test -n "$ac_ct_OTOOL64"; then 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7693$as_echo "$ac_ct_OTOOL64" >&6; } 7694else 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7696$as_echo "no" >&6; } 7697fi 7698 7699 if test "x$ac_ct_OTOOL64" = x; then 7700 OTOOL64=":" 7701 else 7702 case $cross_compiling:$ac_tool_warned in 7703yes:) 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7706ac_tool_warned=yes ;; 7707esac 7708 OTOOL64=$ac_ct_OTOOL64 7709 fi 7710else 7711 OTOOL64="$ac_cv_prog_OTOOL64" 7712fi 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7741$as_echo_n "checking for -single_module linker flag... " >&6; } 7742if ${lt_cv_apple_cc_single_mod+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 lt_cv_apple_cc_single_mod=no 7746 if test -z "${LT_MULTI_MODULE}"; then 7747 # By default we will add the -single_module flag. You can override 7748 # by either setting the environment variable LT_MULTI_MODULE 7749 # non-empty at configure time, or by adding -multi_module to the 7750 # link flags. 7751 rm -rf libconftest.dylib* 7752 echo "int foo(void){return 1;}" > conftest.c 7753 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7754-dynamiclib -Wl,-single_module conftest.c" >&5 7755 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7756 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7757 _lt_result=$? 7758 # If there is a non-empty error log, and "single_module" 7759 # appears in it, assume the flag caused a linker warning 7760 if test -s conftest.err && $GREP single_module conftest.err; then 7761 cat conftest.err >&5 7762 # Otherwise, if the output was created with a 0 exit code from 7763 # the compiler, it worked. 7764 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7765 lt_cv_apple_cc_single_mod=yes 7766 else 7767 cat conftest.err >&5 7768 fi 7769 rm -rf libconftest.dylib* 7770 rm -f conftest.* 7771 fi 7772fi 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7774$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7775 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7777$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7778if ${lt_cv_ld_exported_symbols_list+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 lt_cv_ld_exported_symbols_list=no 7782 save_LDFLAGS=$LDFLAGS 7783 echo "_main" > conftest.sym 7784 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786/* end confdefs.h. */ 7787 7788int 7789main () 7790{ 7791 7792 ; 7793 return 0; 7794} 7795_ACEOF 7796if ac_fn_c_try_link "$LINENO"; then : 7797 lt_cv_ld_exported_symbols_list=yes 7798else 7799 lt_cv_ld_exported_symbols_list=no 7800fi 7801rm -f core conftest.err conftest.$ac_objext \ 7802 conftest$ac_exeext conftest.$ac_ext 7803 LDFLAGS="$save_LDFLAGS" 7804 7805fi 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7807$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7808 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7810$as_echo_n "checking for -force_load linker flag... " >&6; } 7811if ${lt_cv_ld_force_load+:} false; then : 7812 $as_echo_n "(cached) " >&6 7813else 7814 lt_cv_ld_force_load=no 7815 cat > conftest.c << _LT_EOF 7816int forced_loaded() { return 2;} 7817_LT_EOF 7818 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7819 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7820 echo "$AR cru libconftest.a conftest.o" >&5 7821 $AR cru libconftest.a conftest.o 2>&5 7822 echo "$RANLIB libconftest.a" >&5 7823 $RANLIB libconftest.a 2>&5 7824 cat > conftest.c << _LT_EOF 7825int main() { return 0;} 7826_LT_EOF 7827 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7828 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7829 _lt_result=$? 7830 if test -s conftest.err && $GREP force_load conftest.err; then 7831 cat conftest.err >&5 7832 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7833 lt_cv_ld_force_load=yes 7834 else 7835 cat conftest.err >&5 7836 fi 7837 rm -f conftest.err libconftest.a conftest conftest.c 7838 rm -rf conftest.dSYM 7839 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7842$as_echo "$lt_cv_ld_force_load" >&6; } 7843 case $host_os in 7844 rhapsody* | darwin1.[012]) 7845 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7846 darwin1.*) 7847 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7848 darwin*) # darwin 5.x on 7849 # if running on 10.5 or later, the deployment target defaults 7850 # to the OS version, if on x86, and 10.4, the deployment 7851 # target defaults to 10.4. Don't you love it? 7852 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7853 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7854 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7855 10.[012]*) 7856 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7857 10.*) 7858 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7859 esac 7860 ;; 7861 esac 7862 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7863 _lt_dar_single_mod='$single_module' 7864 fi 7865 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7866 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7867 else 7868 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7869 fi 7870 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7871 _lt_dsymutil='~$DSYMUTIL $lib || :' 7872 else 7873 _lt_dsymutil= 7874 fi 7875 ;; 7876 esac 7877 7878for ac_header in dlfcn.h 7879do : 7880 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7881" 7882if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7883 cat >>confdefs.h <<_ACEOF 7884#define HAVE_DLFCN_H 1 7885_ACEOF 7886 7887fi 7888 7889done 7890 7891 7892 7893 7894 7895# Set options 7896 7897 7898 7899 enable_dlopen=no 7900 7901 7902 enable_win32_dll=no 7903 7904 7905 # Check whether --enable-shared was given. 7906if test "${enable_shared+set}" = set; then : 7907 enableval=$enable_shared; p=${PACKAGE-default} 7908 case $enableval in 7909 yes) enable_shared=yes ;; 7910 no) enable_shared=no ;; 7911 *) 7912 enable_shared=no 7913 # Look at the argument we got. We use all the common list separators. 7914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7915 for pkg in $enableval; do 7916 IFS="$lt_save_ifs" 7917 if test "X$pkg" = "X$p"; then 7918 enable_shared=yes 7919 fi 7920 done 7921 IFS="$lt_save_ifs" 7922 ;; 7923 esac 7924else 7925 enable_shared=yes 7926fi 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 # Check whether --enable-static was given. 7937if test "${enable_static+set}" = set; then : 7938 enableval=$enable_static; p=${PACKAGE-default} 7939 case $enableval in 7940 yes) enable_static=yes ;; 7941 no) enable_static=no ;; 7942 *) 7943 enable_static=no 7944 # Look at the argument we got. We use all the common list separators. 7945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7946 for pkg in $enableval; do 7947 IFS="$lt_save_ifs" 7948 if test "X$pkg" = "X$p"; then 7949 enable_static=yes 7950 fi 7951 done 7952 IFS="$lt_save_ifs" 7953 ;; 7954 esac 7955else 7956 enable_static=yes 7957fi 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968# Check whether --with-pic was given. 7969if test "${with_pic+set}" = set; then : 7970 withval=$with_pic; lt_p=${PACKAGE-default} 7971 case $withval in 7972 yes|no) pic_mode=$withval ;; 7973 *) 7974 pic_mode=default 7975 # Look at the argument we got. We use all the common list separators. 7976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7977 for lt_pkg in $withval; do 7978 IFS="$lt_save_ifs" 7979 if test "X$lt_pkg" = "X$lt_p"; then 7980 pic_mode=yes 7981 fi 7982 done 7983 IFS="$lt_save_ifs" 7984 ;; 7985 esac 7986else 7987 pic_mode=default 7988fi 7989 7990 7991test -z "$pic_mode" && pic_mode=default 7992 7993 7994 7995 7996 7997 7998 7999 # Check whether --enable-fast-install was given. 8000if test "${enable_fast_install+set}" = set; then : 8001 enableval=$enable_fast_install; p=${PACKAGE-default} 8002 case $enableval in 8003 yes) enable_fast_install=yes ;; 8004 no) enable_fast_install=no ;; 8005 *) 8006 enable_fast_install=no 8007 # Look at the argument we got. We use all the common list separators. 8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8009 for pkg in $enableval; do 8010 IFS="$lt_save_ifs" 8011 if test "X$pkg" = "X$p"; then 8012 enable_fast_install=yes 8013 fi 8014 done 8015 IFS="$lt_save_ifs" 8016 ;; 8017 esac 8018else 8019 enable_fast_install=yes 8020fi 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032# This can be used to rebuild libtool when needed 8033LIBTOOL_DEPS="$ltmain" 8034 8035# Always use our own libtool. 8036LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067test -z "$LN_S" && LN_S="ln -s" 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082if test -n "${ZSH_VERSION+set}" ; then 8083 setopt NO_GLOB_SUBST 8084fi 8085 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8087$as_echo_n "checking for objdir... " >&6; } 8088if ${lt_cv_objdir+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090else 8091 rm -f .libs 2>/dev/null 8092mkdir .libs 2>/dev/null 8093if test -d .libs; then 8094 lt_cv_objdir=.libs 8095else 8096 # MS-DOS does not allow filenames that begin with a dot. 8097 lt_cv_objdir=_libs 8098fi 8099rmdir .libs 2>/dev/null 8100fi 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8102$as_echo "$lt_cv_objdir" >&6; } 8103objdir=$lt_cv_objdir 8104 8105 8106 8107 8108 8109cat >>confdefs.h <<_ACEOF 8110#define LT_OBJDIR "$lt_cv_objdir/" 8111_ACEOF 8112 8113 8114 8115 8116case $host_os in 8117aix3*) 8118 # AIX sometimes has problems with the GCC collect2 program. For some 8119 # reason, if we set the COLLECT_NAMES environment variable, the problems 8120 # vanish in a puff of smoke. 8121 if test "X${COLLECT_NAMES+set}" != Xset; then 8122 COLLECT_NAMES= 8123 export COLLECT_NAMES 8124 fi 8125 ;; 8126esac 8127 8128# Global variables: 8129ofile=libtool 8130can_build_shared=yes 8131 8132# All known linkers require a `.a' archive for static linking (except MSVC, 8133# which needs '.lib'). 8134libext=a 8135 8136with_gnu_ld="$lt_cv_prog_gnu_ld" 8137 8138old_CC="$CC" 8139old_CFLAGS="$CFLAGS" 8140 8141# Set sane defaults for various variables 8142test -z "$CC" && CC=cc 8143test -z "$LTCC" && LTCC=$CC 8144test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8145test -z "$LD" && LD=ld 8146test -z "$ac_objext" && ac_objext=o 8147 8148for cc_temp in $compiler""; do 8149 case $cc_temp in 8150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8152 \-*) ;; 8153 *) break;; 8154 esac 8155done 8156cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8157 8158 8159# Only perform the check for file, if the check method requires it 8160test -z "$MAGIC_CMD" && MAGIC_CMD=file 8161case $deplibs_check_method in 8162file_magic*) 8163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8165$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8166if ${lt_cv_path_MAGIC_CMD+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 case $MAGIC_CMD in 8170[\\/*] | ?:[\\/]*) 8171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8172 ;; 8173*) 8174 lt_save_MAGIC_CMD="$MAGIC_CMD" 8175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8177 for ac_dir in $ac_dummy; do 8178 IFS="$lt_save_ifs" 8179 test -z "$ac_dir" && ac_dir=. 8180 if test -f $ac_dir/${ac_tool_prefix}file; then 8181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8182 if test -n "$file_magic_test_file"; then 8183 case $deplibs_check_method in 8184 "file_magic "*) 8185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8188 $EGREP "$file_magic_regex" > /dev/null; then 8189 : 8190 else 8191 cat <<_LT_EOF 1>&2 8192 8193*** Warning: the command libtool uses to detect shared libraries, 8194*** $file_magic_cmd, produces output that libtool cannot recognize. 8195*** The result is that libtool may fail to recognize shared libraries 8196*** as such. This will affect the creation of libtool libraries that 8197*** depend on shared libraries, but programs linked with such libtool 8198*** libraries will work regardless of this problem. Nevertheless, you 8199*** may want to report the problem to your system manager and/or to 8200*** bug-libtool@gnu.org 8201 8202_LT_EOF 8203 fi ;; 8204 esac 8205 fi 8206 break 8207 fi 8208 done 8209 IFS="$lt_save_ifs" 8210 MAGIC_CMD="$lt_save_MAGIC_CMD" 8211 ;; 8212esac 8213fi 8214 8215MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8216if test -n "$MAGIC_CMD"; then 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8218$as_echo "$MAGIC_CMD" >&6; } 8219else 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221$as_echo "no" >&6; } 8222fi 8223 8224 8225 8226 8227 8228if test -z "$lt_cv_path_MAGIC_CMD"; then 8229 if test -n "$ac_tool_prefix"; then 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8231$as_echo_n "checking for file... " >&6; } 8232if ${lt_cv_path_MAGIC_CMD+:} false; then : 8233 $as_echo_n "(cached) " >&6 8234else 8235 case $MAGIC_CMD in 8236[\\/*] | ?:[\\/]*) 8237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8238 ;; 8239*) 8240 lt_save_MAGIC_CMD="$MAGIC_CMD" 8241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8243 for ac_dir in $ac_dummy; do 8244 IFS="$lt_save_ifs" 8245 test -z "$ac_dir" && ac_dir=. 8246 if test -f $ac_dir/file; then 8247 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8248 if test -n "$file_magic_test_file"; then 8249 case $deplibs_check_method in 8250 "file_magic "*) 8251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8254 $EGREP "$file_magic_regex" > /dev/null; then 8255 : 8256 else 8257 cat <<_LT_EOF 1>&2 8258 8259*** Warning: the command libtool uses to detect shared libraries, 8260*** $file_magic_cmd, produces output that libtool cannot recognize. 8261*** The result is that libtool may fail to recognize shared libraries 8262*** as such. This will affect the creation of libtool libraries that 8263*** depend on shared libraries, but programs linked with such libtool 8264*** libraries will work regardless of this problem. Nevertheless, you 8265*** may want to report the problem to your system manager and/or to 8266*** bug-libtool@gnu.org 8267 8268_LT_EOF 8269 fi ;; 8270 esac 8271 fi 8272 break 8273 fi 8274 done 8275 IFS="$lt_save_ifs" 8276 MAGIC_CMD="$lt_save_MAGIC_CMD" 8277 ;; 8278esac 8279fi 8280 8281MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8282if test -n "$MAGIC_CMD"; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8284$as_echo "$MAGIC_CMD" >&6; } 8285else 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8287$as_echo "no" >&6; } 8288fi 8289 8290 8291 else 8292 MAGIC_CMD=: 8293 fi 8294fi 8295 8296 fi 8297 ;; 8298esac 8299 8300# Use C for the default configuration in the libtool script 8301 8302lt_save_CC="$CC" 8303ac_ext=c 8304ac_cpp='$CPP $CPPFLAGS' 8305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8307ac_compiler_gnu=$ac_cv_c_compiler_gnu 8308 8309 8310# Source file extension for C test sources. 8311ac_ext=c 8312 8313# Object file extension for compiled C test sources. 8314objext=o 8315objext=$objext 8316 8317# Code to be used in simple compile tests 8318lt_simple_compile_test_code="int some_variable = 0;" 8319 8320# Code to be used in simple link tests 8321lt_simple_link_test_code='int main(){return(0);}' 8322 8323 8324 8325 8326 8327 8328 8329# If no C compiler was specified, use CC. 8330LTCC=${LTCC-"$CC"} 8331 8332# If no C compiler flags were specified, use CFLAGS. 8333LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8334 8335# Allow CC to be a program name with arguments. 8336compiler=$CC 8337 8338# Save the default compiler, since it gets overwritten when the other 8339# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8340compiler_DEFAULT=$CC 8341 8342# save warnings/boilerplate of simple test code 8343ac_outfile=conftest.$ac_objext 8344echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8345eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8346_lt_compiler_boilerplate=`cat conftest.err` 8347$RM conftest* 8348 8349ac_outfile=conftest.$ac_objext 8350echo "$lt_simple_link_test_code" >conftest.$ac_ext 8351eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8352_lt_linker_boilerplate=`cat conftest.err` 8353$RM -r conftest* 8354 8355 8356if test -n "$compiler"; then 8357 8358lt_prog_compiler_no_builtin_flag= 8359 8360if test "$GCC" = yes; then 8361 case $cc_basename in 8362 nvcc*) 8363 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8364 *) 8365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8366 esac 8367 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8369$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8370if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 lt_cv_prog_compiler_rtti_exceptions=no 8374 ac_outfile=conftest.$ac_objext 8375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8376 lt_compiler_flag="-fno-rtti -fno-exceptions" 8377 # Insert the option either (1) after the last *FLAGS variable, or 8378 # (2) before a word containing "conftest.", or (3) at the end. 8379 # Note that $ac_compile itself does not contain backslashes and begins 8380 # with a dollar sign (not a hyphen), so the echo should work correctly. 8381 # The option is referenced via a variable to avoid confusing sed. 8382 lt_compile=`echo "$ac_compile" | $SED \ 8383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8385 -e 's:$: $lt_compiler_flag:'` 8386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8387 (eval "$lt_compile" 2>conftest.err) 8388 ac_status=$? 8389 cat conftest.err >&5 8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8391 if (exit $ac_status) && test -s "$ac_outfile"; then 8392 # The compiler can only warn and ignore the option if not recognized 8393 # So say no if there are warnings other than the usual output. 8394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8397 lt_cv_prog_compiler_rtti_exceptions=yes 8398 fi 8399 fi 8400 $RM conftest* 8401 8402fi 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8404$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8405 8406if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8408else 8409 : 8410fi 8411 8412fi 8413 8414 8415 8416 8417 8418 8419 lt_prog_compiler_wl= 8420lt_prog_compiler_pic= 8421lt_prog_compiler_static= 8422 8423 8424 if test "$GCC" = yes; then 8425 lt_prog_compiler_wl='-Wl,' 8426 lt_prog_compiler_static='-static' 8427 8428 case $host_os in 8429 aix*) 8430 # All AIX code is PIC. 8431 if test "$host_cpu" = ia64; then 8432 # AIX 5 now supports IA64 processor 8433 lt_prog_compiler_static='-Bstatic' 8434 fi 8435 ;; 8436 8437 amigaos*) 8438 case $host_cpu in 8439 powerpc) 8440 # see comment about AmigaOS4 .so support 8441 lt_prog_compiler_pic='-fPIC' 8442 ;; 8443 m68k) 8444 # FIXME: we need at least 68020 code to build shared libraries, but 8445 # adding the `-m68020' flag to GCC prevents building anything better, 8446 # like `-m68040'. 8447 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8448 ;; 8449 esac 8450 ;; 8451 8452 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8453 # PIC is the default for these OSes. 8454 ;; 8455 8456 mingw* | cygwin* | pw32* | os2* | cegcc*) 8457 # This hack is so that the source file can tell whether it is being 8458 # built for inclusion in a dll (and should export symbols for example). 8459 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8460 # (--disable-auto-import) libraries 8461 lt_prog_compiler_pic='-DDLL_EXPORT' 8462 ;; 8463 8464 darwin* | rhapsody*) 8465 # PIC is the default on this platform 8466 # Common symbols not allowed in MH_DYLIB files 8467 lt_prog_compiler_pic='-fno-common' 8468 ;; 8469 8470 haiku*) 8471 # PIC is the default for Haiku. 8472 # The "-static" flag exists, but is broken. 8473 lt_prog_compiler_static= 8474 ;; 8475 8476 hpux*) 8477 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8478 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8479 # sets the default TLS model and affects inlining. 8480 case $host_cpu in 8481 hppa*64*) 8482 # +Z the default 8483 ;; 8484 *) 8485 lt_prog_compiler_pic='-fPIC' 8486 ;; 8487 esac 8488 ;; 8489 8490 interix[3-9]*) 8491 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8492 # Instead, we relocate shared libraries at runtime. 8493 ;; 8494 8495 msdosdjgpp*) 8496 # Just because we use GCC doesn't mean we suddenly get shared libraries 8497 # on systems that don't support them. 8498 lt_prog_compiler_can_build_shared=no 8499 enable_shared=no 8500 ;; 8501 8502 *nto* | *qnx*) 8503 # QNX uses GNU C++, but need to define -shared option too, otherwise 8504 # it will coredump. 8505 lt_prog_compiler_pic='-fPIC -shared' 8506 ;; 8507 8508 sysv4*MP*) 8509 if test -d /usr/nec; then 8510 lt_prog_compiler_pic=-Kconform_pic 8511 fi 8512 ;; 8513 8514 *) 8515 lt_prog_compiler_pic='-fPIC' 8516 ;; 8517 esac 8518 8519 case $cc_basename in 8520 nvcc*) # Cuda Compiler Driver 2.2 8521 lt_prog_compiler_wl='-Xlinker ' 8522 if test -n "$lt_prog_compiler_pic"; then 8523 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8524 fi 8525 ;; 8526 esac 8527 else 8528 # PORTME Check for flag to pass linker flags through the system compiler. 8529 case $host_os in 8530 aix*) 8531 lt_prog_compiler_wl='-Wl,' 8532 if test "$host_cpu" = ia64; then 8533 # AIX 5 now supports IA64 processor 8534 lt_prog_compiler_static='-Bstatic' 8535 else 8536 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8537 fi 8538 ;; 8539 8540 mingw* | cygwin* | pw32* | os2* | cegcc*) 8541 # This hack is so that the source file can tell whether it is being 8542 # built for inclusion in a dll (and should export symbols for example). 8543 lt_prog_compiler_pic='-DDLL_EXPORT' 8544 ;; 8545 8546 hpux9* | hpux10* | hpux11*) 8547 lt_prog_compiler_wl='-Wl,' 8548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8549 # not for PA HP-UX. 8550 case $host_cpu in 8551 hppa*64*|ia64*) 8552 # +Z the default 8553 ;; 8554 *) 8555 lt_prog_compiler_pic='+Z' 8556 ;; 8557 esac 8558 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8559 lt_prog_compiler_static='${wl}-a ${wl}archive' 8560 ;; 8561 8562 irix5* | irix6* | nonstopux*) 8563 lt_prog_compiler_wl='-Wl,' 8564 # PIC (with -KPIC) is the default. 8565 lt_prog_compiler_static='-non_shared' 8566 ;; 8567 8568 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8569 case $cc_basename in 8570 # old Intel for x86_64 which still supported -KPIC. 8571 ecc*) 8572 lt_prog_compiler_wl='-Wl,' 8573 lt_prog_compiler_pic='-KPIC' 8574 lt_prog_compiler_static='-static' 8575 ;; 8576 # icc used to be incompatible with GCC. 8577 # ICC 10 doesn't accept -KPIC any more. 8578 icc* | ifort*) 8579 lt_prog_compiler_wl='-Wl,' 8580 lt_prog_compiler_pic='-fPIC' 8581 lt_prog_compiler_static='-static' 8582 ;; 8583 # Lahey Fortran 8.1. 8584 lf95*) 8585 lt_prog_compiler_wl='-Wl,' 8586 lt_prog_compiler_pic='--shared' 8587 lt_prog_compiler_static='--static' 8588 ;; 8589 nagfor*) 8590 # NAG Fortran compiler 8591 lt_prog_compiler_wl='-Wl,-Wl,,' 8592 lt_prog_compiler_pic='-PIC' 8593 lt_prog_compiler_static='-Bstatic' 8594 ;; 8595 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8596 # Portland Group compilers (*not* the Pentium gcc compiler, 8597 # which looks to be a dead project) 8598 lt_prog_compiler_wl='-Wl,' 8599 lt_prog_compiler_pic='-fpic' 8600 lt_prog_compiler_static='-Bstatic' 8601 ;; 8602 ccc*) 8603 lt_prog_compiler_wl='-Wl,' 8604 # All Alpha code is PIC. 8605 lt_prog_compiler_static='-non_shared' 8606 ;; 8607 xl* | bgxl* | bgf* | mpixl*) 8608 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8609 lt_prog_compiler_wl='-Wl,' 8610 lt_prog_compiler_pic='-qpic' 8611 lt_prog_compiler_static='-qstaticlink' 8612 ;; 8613 *) 8614 case `$CC -V 2>&1 | sed 5q` in 8615 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8616 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8617 lt_prog_compiler_pic='-KPIC' 8618 lt_prog_compiler_static='-Bstatic' 8619 lt_prog_compiler_wl='' 8620 ;; 8621 *Sun\ F* | *Sun*Fortran*) 8622 lt_prog_compiler_pic='-KPIC' 8623 lt_prog_compiler_static='-Bstatic' 8624 lt_prog_compiler_wl='-Qoption ld ' 8625 ;; 8626 *Sun\ C*) 8627 # Sun C 5.9 8628 lt_prog_compiler_pic='-KPIC' 8629 lt_prog_compiler_static='-Bstatic' 8630 lt_prog_compiler_wl='-Wl,' 8631 ;; 8632 *Intel*\ [CF]*Compiler*) 8633 lt_prog_compiler_wl='-Wl,' 8634 lt_prog_compiler_pic='-fPIC' 8635 lt_prog_compiler_static='-static' 8636 ;; 8637 *Portland\ Group*) 8638 lt_prog_compiler_wl='-Wl,' 8639 lt_prog_compiler_pic='-fpic' 8640 lt_prog_compiler_static='-Bstatic' 8641 ;; 8642 esac 8643 ;; 8644 esac 8645 ;; 8646 8647 newsos6) 8648 lt_prog_compiler_pic='-KPIC' 8649 lt_prog_compiler_static='-Bstatic' 8650 ;; 8651 8652 *nto* | *qnx*) 8653 # QNX uses GNU C++, but need to define -shared option too, otherwise 8654 # it will coredump. 8655 lt_prog_compiler_pic='-fPIC -shared' 8656 ;; 8657 8658 osf3* | osf4* | osf5*) 8659 lt_prog_compiler_wl='-Wl,' 8660 # All OSF/1 code is PIC. 8661 lt_prog_compiler_static='-non_shared' 8662 ;; 8663 8664 rdos*) 8665 lt_prog_compiler_static='-non_shared' 8666 ;; 8667 8668 solaris*) 8669 lt_prog_compiler_pic='-KPIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 case $cc_basename in 8672 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8673 lt_prog_compiler_wl='-Qoption ld ';; 8674 *) 8675 lt_prog_compiler_wl='-Wl,';; 8676 esac 8677 ;; 8678 8679 sunos4*) 8680 lt_prog_compiler_wl='-Qoption ld ' 8681 lt_prog_compiler_pic='-PIC' 8682 lt_prog_compiler_static='-Bstatic' 8683 ;; 8684 8685 sysv4 | sysv4.2uw2* | sysv4.3*) 8686 lt_prog_compiler_wl='-Wl,' 8687 lt_prog_compiler_pic='-KPIC' 8688 lt_prog_compiler_static='-Bstatic' 8689 ;; 8690 8691 sysv4*MP*) 8692 if test -d /usr/nec ;then 8693 lt_prog_compiler_pic='-Kconform_pic' 8694 lt_prog_compiler_static='-Bstatic' 8695 fi 8696 ;; 8697 8698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_pic='-KPIC' 8701 lt_prog_compiler_static='-Bstatic' 8702 ;; 8703 8704 unicos*) 8705 lt_prog_compiler_wl='-Wl,' 8706 lt_prog_compiler_can_build_shared=no 8707 ;; 8708 8709 uts4*) 8710 lt_prog_compiler_pic='-pic' 8711 lt_prog_compiler_static='-Bstatic' 8712 ;; 8713 8714 *) 8715 lt_prog_compiler_can_build_shared=no 8716 ;; 8717 esac 8718 fi 8719 8720case $host_os in 8721 # For platforms which do not support PIC, -DPIC is meaningless: 8722 *djgpp*) 8723 lt_prog_compiler_pic= 8724 ;; 8725 *) 8726 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8727 ;; 8728esac 8729 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8731$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8732if ${lt_cv_prog_compiler_pic+:} false; then : 8733 $as_echo_n "(cached) " >&6 8734else 8735 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8736fi 8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8738$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8739lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8740 8741# 8742# Check to make sure the PIC flag actually works. 8743# 8744if test -n "$lt_prog_compiler_pic"; then 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8746$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8747if ${lt_cv_prog_compiler_pic_works+:} false; then : 8748 $as_echo_n "(cached) " >&6 8749else 8750 lt_cv_prog_compiler_pic_works=no 8751 ac_outfile=conftest.$ac_objext 8752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8753 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8754 # Insert the option either (1) after the last *FLAGS variable, or 8755 # (2) before a word containing "conftest.", or (3) at the end. 8756 # Note that $ac_compile itself does not contain backslashes and begins 8757 # with a dollar sign (not a hyphen), so the echo should work correctly. 8758 # The option is referenced via a variable to avoid confusing sed. 8759 lt_compile=`echo "$ac_compile" | $SED \ 8760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8762 -e 's:$: $lt_compiler_flag:'` 8763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8764 (eval "$lt_compile" 2>conftest.err) 8765 ac_status=$? 8766 cat conftest.err >&5 8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8768 if (exit $ac_status) && test -s "$ac_outfile"; then 8769 # The compiler can only warn and ignore the option if not recognized 8770 # So say no if there are warnings other than the usual output. 8771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8774 lt_cv_prog_compiler_pic_works=yes 8775 fi 8776 fi 8777 $RM conftest* 8778 8779fi 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8781$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8782 8783if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8784 case $lt_prog_compiler_pic in 8785 "" | " "*) ;; 8786 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8787 esac 8788else 8789 lt_prog_compiler_pic= 8790 lt_prog_compiler_can_build_shared=no 8791fi 8792 8793fi 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805# 8806# Check to make sure the static flag actually works. 8807# 8808wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8810$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8811if ${lt_cv_prog_compiler_static_works+:} false; then : 8812 $as_echo_n "(cached) " >&6 8813else 8814 lt_cv_prog_compiler_static_works=no 8815 save_LDFLAGS="$LDFLAGS" 8816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8817 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8819 # The linker can only warn and ignore the option if not recognized 8820 # So say no if there are warnings 8821 if test -s conftest.err; then 8822 # Append any errors to the config.log. 8823 cat conftest.err 1>&5 8824 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8826 if diff conftest.exp conftest.er2 >/dev/null; then 8827 lt_cv_prog_compiler_static_works=yes 8828 fi 8829 else 8830 lt_cv_prog_compiler_static_works=yes 8831 fi 8832 fi 8833 $RM -r conftest* 8834 LDFLAGS="$save_LDFLAGS" 8835 8836fi 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8838$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8839 8840if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8841 : 8842else 8843 lt_prog_compiler_static= 8844fi 8845 8846 8847 8848 8849 8850 8851 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8854if ${lt_cv_prog_compiler_c_o+:} false; then : 8855 $as_echo_n "(cached) " >&6 8856else 8857 lt_cv_prog_compiler_c_o=no 8858 $RM -r conftest 2>/dev/null 8859 mkdir conftest 8860 cd conftest 8861 mkdir out 8862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8863 8864 lt_compiler_flag="-o out/conftest2.$ac_objext" 8865 # Insert the option either (1) after the last *FLAGS variable, or 8866 # (2) before a word containing "conftest.", or (3) at the end. 8867 # Note that $ac_compile itself does not contain backslashes and begins 8868 # with a dollar sign (not a hyphen), so the echo should work correctly. 8869 lt_compile=`echo "$ac_compile" | $SED \ 8870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8872 -e 's:$: $lt_compiler_flag:'` 8873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8874 (eval "$lt_compile" 2>out/conftest.err) 8875 ac_status=$? 8876 cat out/conftest.err >&5 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8878 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8879 then 8880 # The compiler can only warn and ignore the option if not recognized 8881 # So say no if there are warnings 8882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8885 lt_cv_prog_compiler_c_o=yes 8886 fi 8887 fi 8888 chmod u+w . 2>&5 8889 $RM conftest* 8890 # SGI C++ compiler will create directory out/ii_files/ for 8891 # template instantiation 8892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8893 $RM out/* && rmdir out 8894 cd .. 8895 $RM -r conftest 8896 $RM conftest* 8897 8898fi 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8900$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8901 8902 8903 8904 8905 8906 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8909if ${lt_cv_prog_compiler_c_o+:} false; then : 8910 $as_echo_n "(cached) " >&6 8911else 8912 lt_cv_prog_compiler_c_o=no 8913 $RM -r conftest 2>/dev/null 8914 mkdir conftest 8915 cd conftest 8916 mkdir out 8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8918 8919 lt_compiler_flag="-o out/conftest2.$ac_objext" 8920 # Insert the option either (1) after the last *FLAGS variable, or 8921 # (2) before a word containing "conftest.", or (3) at the end. 8922 # Note that $ac_compile itself does not contain backslashes and begins 8923 # with a dollar sign (not a hyphen), so the echo should work correctly. 8924 lt_compile=`echo "$ac_compile" | $SED \ 8925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8927 -e 's:$: $lt_compiler_flag:'` 8928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8929 (eval "$lt_compile" 2>out/conftest.err) 8930 ac_status=$? 8931 cat out/conftest.err >&5 8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8934 then 8935 # The compiler can only warn and ignore the option if not recognized 8936 # So say no if there are warnings 8937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8940 lt_cv_prog_compiler_c_o=yes 8941 fi 8942 fi 8943 chmod u+w . 2>&5 8944 $RM conftest* 8945 # SGI C++ compiler will create directory out/ii_files/ for 8946 # template instantiation 8947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8948 $RM out/* && rmdir out 8949 cd .. 8950 $RM -r conftest 8951 $RM conftest* 8952 8953fi 8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8955$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8956 8957 8958 8959 8960hard_links="nottested" 8961if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8962 # do not overwrite the value of need_locks provided by the user 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8964$as_echo_n "checking if we can lock with hard links... " >&6; } 8965 hard_links=yes 8966 $RM conftest* 8967 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8968 touch conftest.a 8969 ln conftest.a conftest.b 2>&5 || hard_links=no 8970 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8972$as_echo "$hard_links" >&6; } 8973 if test "$hard_links" = no; then 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8975$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8976 need_locks=warn 8977 fi 8978else 8979 need_locks=no 8980fi 8981 8982 8983 8984 8985 8986 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8988$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8989 8990 runpath_var= 8991 allow_undefined_flag= 8992 always_export_symbols=no 8993 archive_cmds= 8994 archive_expsym_cmds= 8995 compiler_needs_object=no 8996 enable_shared_with_static_runtimes=no 8997 export_dynamic_flag_spec= 8998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8999 hardcode_automatic=no 9000 hardcode_direct=no 9001 hardcode_direct_absolute=no 9002 hardcode_libdir_flag_spec= 9003 hardcode_libdir_separator= 9004 hardcode_minus_L=no 9005 hardcode_shlibpath_var=unsupported 9006 inherit_rpath=no 9007 link_all_deplibs=unknown 9008 module_cmds= 9009 module_expsym_cmds= 9010 old_archive_from_new_cmds= 9011 old_archive_from_expsyms_cmds= 9012 thread_safe_flag_spec= 9013 whole_archive_flag_spec= 9014 # include_expsyms should be a list of space-separated symbols to be *always* 9015 # included in the symbol list 9016 include_expsyms= 9017 # exclude_expsyms can be an extended regexp of symbols to exclude 9018 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9020 # as well as any symbol that contains `d'. 9021 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9023 # platforms (ab)use it in PIC code, but their linkers get confused if 9024 # the symbol is explicitly referenced. Since portable code cannot 9025 # rely on this symbol name, it's probably fine to never include it in 9026 # preloaded symbol tables. 9027 # Exclude shared library initialization/finalization symbols. 9028 extract_expsyms_cmds= 9029 9030 case $host_os in 9031 cygwin* | mingw* | pw32* | cegcc*) 9032 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9033 # When not using gcc, we currently assume that we are using 9034 # Microsoft Visual C++. 9035 if test "$GCC" != yes; then 9036 with_gnu_ld=no 9037 fi 9038 ;; 9039 interix*) 9040 # we just hope/assume this is gcc and not c89 (= MSVC++) 9041 with_gnu_ld=yes 9042 ;; 9043 openbsd*) 9044 with_gnu_ld=no 9045 ;; 9046 esac 9047 9048 ld_shlibs=yes 9049 9050 # On some targets, GNU ld is compatible enough with the native linker 9051 # that we're better off using the native interface for both. 9052 lt_use_gnu_ld_interface=no 9053 if test "$with_gnu_ld" = yes; then 9054 case $host_os in 9055 aix*) 9056 # The AIX port of GNU ld has always aspired to compatibility 9057 # with the native linker. However, as the warning in the GNU ld 9058 # block says, versions before 2.19.5* couldn't really create working 9059 # shared libraries, regardless of the interface used. 9060 case `$LD -v 2>&1` in 9061 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9062 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9063 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9064 *) 9065 lt_use_gnu_ld_interface=yes 9066 ;; 9067 esac 9068 ;; 9069 *) 9070 lt_use_gnu_ld_interface=yes 9071 ;; 9072 esac 9073 fi 9074 9075 if test "$lt_use_gnu_ld_interface" = yes; then 9076 # If archive_cmds runs LD, not CC, wlarc should be empty 9077 wlarc='${wl}' 9078 9079 # Set some defaults for GNU ld with shared library support. These 9080 # are reset later if shared libraries are not supported. Putting them 9081 # here allows them to be overridden if necessary. 9082 runpath_var=LD_RUN_PATH 9083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9084 export_dynamic_flag_spec='${wl}--export-dynamic' 9085 # ancient GNU ld didn't support --whole-archive et. al. 9086 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9087 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9088 else 9089 whole_archive_flag_spec= 9090 fi 9091 supports_anon_versioning=no 9092 case `$LD -v 2>&1` in 9093 *GNU\ gold*) supports_anon_versioning=yes ;; 9094 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9095 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9096 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9097 *\ 2.11.*) ;; # other 2.11 versions 9098 *) supports_anon_versioning=yes ;; 9099 esac 9100 9101 # See if GNU ld supports shared libraries. 9102 case $host_os in 9103 aix[3-9]*) 9104 # On AIX/PPC, the GNU linker is very broken 9105 if test "$host_cpu" != ia64; then 9106 ld_shlibs=no 9107 cat <<_LT_EOF 1>&2 9108 9109*** Warning: the GNU linker, at least up to release 2.19, is reported 9110*** to be unable to reliably create shared libraries on AIX. 9111*** Therefore, libtool is disabling shared libraries support. If you 9112*** really care for shared libraries, you may want to install binutils 9113*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9114*** You will then need to restart the configuration process. 9115 9116_LT_EOF 9117 fi 9118 ;; 9119 9120 amigaos*) 9121 case $host_cpu in 9122 powerpc) 9123 # see comment about AmigaOS4 .so support 9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9125 archive_expsym_cmds='' 9126 ;; 9127 m68k) 9128 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)' 9129 hardcode_libdir_flag_spec='-L$libdir' 9130 hardcode_minus_L=yes 9131 ;; 9132 esac 9133 ;; 9134 9135 beos*) 9136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9137 allow_undefined_flag=unsupported 9138 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9139 # support --undefined. This deserves some investigation. FIXME 9140 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9141 else 9142 ld_shlibs=no 9143 fi 9144 ;; 9145 9146 cygwin* | mingw* | pw32* | cegcc*) 9147 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9148 # as there is no search path for DLLs. 9149 hardcode_libdir_flag_spec='-L$libdir' 9150 export_dynamic_flag_spec='${wl}--export-all-symbols' 9151 allow_undefined_flag=unsupported 9152 always_export_symbols=no 9153 enable_shared_with_static_runtimes=yes 9154 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' 9155 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9156 9157 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9159 # If the export-symbols file already is a .def file (1st line 9160 # is EXPORTS), use it as is; otherwise, prepend... 9161 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9162 cp $export_symbols $output_objdir/$soname.def; 9163 else 9164 echo EXPORTS > $output_objdir/$soname.def; 9165 cat $export_symbols >> $output_objdir/$soname.def; 9166 fi~ 9167 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9168 else 9169 ld_shlibs=no 9170 fi 9171 ;; 9172 9173 haiku*) 9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9175 link_all_deplibs=yes 9176 ;; 9177 9178 interix[3-9]*) 9179 hardcode_direct=no 9180 hardcode_shlibpath_var=no 9181 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9182 export_dynamic_flag_spec='${wl}-E' 9183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9184 # Instead, shared libraries are loaded at an image base (0x10000000 by 9185 # default) and relocated if they conflict, which is a slow very memory 9186 # consuming and fragmenting process. To avoid this, we pick a random, 9187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9188 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9190 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' 9191 ;; 9192 9193 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9194 tmp_diet=no 9195 if test "$host_os" = linux-dietlibc; then 9196 case $cc_basename in 9197 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9198 esac 9199 fi 9200 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9201 && test "$tmp_diet" = no 9202 then 9203 tmp_addflag=' $pic_flag' 9204 tmp_sharedflag='-shared' 9205 case $cc_basename,$host_cpu in 9206 pgcc*) # Portland Group C compiler 9207 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' 9208 tmp_addflag=' $pic_flag' 9209 ;; 9210 pgf77* | pgf90* | pgf95* | pgfortran*) 9211 # Portland Group f77 and f90 compilers 9212 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' 9213 tmp_addflag=' $pic_flag -Mnomain' ;; 9214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9215 tmp_addflag=' -i_dynamic' ;; 9216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9217 tmp_addflag=' -i_dynamic -nofor_main' ;; 9218 ifc* | ifort*) # Intel Fortran compiler 9219 tmp_addflag=' -nofor_main' ;; 9220 lf95*) # Lahey Fortran 8.1 9221 whole_archive_flag_spec= 9222 tmp_sharedflag='--shared' ;; 9223 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9224 tmp_sharedflag='-qmkshrobj' 9225 tmp_addflag= ;; 9226 nvcc*) # Cuda Compiler Driver 2.2 9227 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' 9228 compiler_needs_object=yes 9229 ;; 9230 esac 9231 case `$CC -V 2>&1 | sed 5q` in 9232 *Sun\ C*) # Sun C 5.9 9233 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' 9234 compiler_needs_object=yes 9235 tmp_sharedflag='-G' ;; 9236 *Sun\ F*) # Sun Fortran 8.3 9237 tmp_sharedflag='-G' ;; 9238 esac 9239 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9240 9241 if test "x$supports_anon_versioning" = xyes; then 9242 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9244 echo "local: *; };" >> $output_objdir/$libname.ver~ 9245 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9246 fi 9247 9248 case $cc_basename in 9249 xlf* | bgf* | bgxlf* | mpixlf*) 9250 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9251 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9253 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9254 if test "x$supports_anon_versioning" = xyes; then 9255 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9257 echo "local: *; };" >> $output_objdir/$libname.ver~ 9258 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9259 fi 9260 ;; 9261 esac 9262 else 9263 ld_shlibs=no 9264 fi 9265 ;; 9266 9267 netbsd*) 9268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9269 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9270 wlarc= 9271 else 9272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9273 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9274 fi 9275 ;; 9276 9277 solaris*) 9278 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9279 ld_shlibs=no 9280 cat <<_LT_EOF 1>&2 9281 9282*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9283*** create shared libraries on Solaris systems. Therefore, libtool 9284*** is disabling shared libraries support. We urge you to upgrade GNU 9285*** binutils to release 2.9.1 or newer. Another option is to modify 9286*** your PATH or compiler configuration so that the native linker is 9287*** used, and then restart. 9288 9289_LT_EOF 9290 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9292 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9293 else 9294 ld_shlibs=no 9295 fi 9296 ;; 9297 9298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9299 case `$LD -v 2>&1` in 9300 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9301 ld_shlibs=no 9302 cat <<_LT_EOF 1>&2 9303 9304*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9305*** reliably create shared libraries on SCO systems. Therefore, libtool 9306*** is disabling shared libraries support. We urge you to upgrade GNU 9307*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9308*** your PATH or compiler configuration so that the native linker is 9309*** used, and then restart. 9310 9311_LT_EOF 9312 ;; 9313 *) 9314 # For security reasons, it is highly recommended that you always 9315 # use absolute paths for naming shared libraries, and exclude the 9316 # DT_RUNPATH tag from executables and libraries. But doing so 9317 # requires that you compile everything twice, which is a pain. 9318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9322 else 9323 ld_shlibs=no 9324 fi 9325 ;; 9326 esac 9327 ;; 9328 9329 sunos4*) 9330 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9331 wlarc= 9332 hardcode_direct=yes 9333 hardcode_shlibpath_var=no 9334 ;; 9335 9336 *) 9337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9340 else 9341 ld_shlibs=no 9342 fi 9343 ;; 9344 esac 9345 9346 if test "$ld_shlibs" = no; then 9347 runpath_var= 9348 hardcode_libdir_flag_spec= 9349 export_dynamic_flag_spec= 9350 whole_archive_flag_spec= 9351 fi 9352 else 9353 # PORTME fill in a description of your system's linker (not GNU ld) 9354 case $host_os in 9355 aix3*) 9356 allow_undefined_flag=unsupported 9357 always_export_symbols=yes 9358 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' 9359 # Note: this linker hardcodes the directories in LIBPATH if there 9360 # are no directories specified by -L. 9361 hardcode_minus_L=yes 9362 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9363 # Neither direct hardcoding nor static linking is supported with a 9364 # broken collect2. 9365 hardcode_direct=unsupported 9366 fi 9367 ;; 9368 9369 aix[4-9]*) 9370 if test "$host_cpu" = ia64; then 9371 # On IA64, the linker does run time linking by default, so we don't 9372 # have to do anything special. 9373 aix_use_runtimelinking=no 9374 exp_sym_flag='-Bexport' 9375 no_entry_flag="" 9376 else 9377 # If we're using GNU nm, then we don't want the "-C" option. 9378 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9379 # Also, AIX nm treats weak defined symbols like other global 9380 # defined symbols, whereas GNU nm marks them as "W". 9381 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9382 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' 9383 else 9384 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' 9385 fi 9386 aix_use_runtimelinking=no 9387 9388 # Test if we are trying to use run time linking or normal 9389 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9390 # need to do runtime linking. 9391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9392 for ld_flag in $LDFLAGS; do 9393 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9394 aix_use_runtimelinking=yes 9395 break 9396 fi 9397 done 9398 ;; 9399 esac 9400 9401 exp_sym_flag='-bexport' 9402 no_entry_flag='-bnoentry' 9403 fi 9404 9405 # When large executables or shared objects are built, AIX ld can 9406 # have problems creating the table of contents. If linking a library 9407 # or program results in "error TOC overflow" add -mminimal-toc to 9408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9410 9411 archive_cmds='' 9412 hardcode_direct=yes 9413 hardcode_direct_absolute=yes 9414 hardcode_libdir_separator=':' 9415 link_all_deplibs=yes 9416 file_list_spec='${wl}-f,' 9417 9418 if test "$GCC" = yes; then 9419 case $host_os in aix4.[012]|aix4.[012].*) 9420 # We only want to do this on AIX 4.2 and lower, the check 9421 # below for broken collect2 doesn't work under 4.3+ 9422 collect2name=`${CC} -print-prog-name=collect2` 9423 if test -f "$collect2name" && 9424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9425 then 9426 # We have reworked collect2 9427 : 9428 else 9429 # We have old collect2 9430 hardcode_direct=unsupported 9431 # It fails to find uninstalled libraries when the uninstalled 9432 # path is not listed in the libpath. Setting hardcode_minus_L 9433 # to unsupported forces relinking 9434 hardcode_minus_L=yes 9435 hardcode_libdir_flag_spec='-L$libdir' 9436 hardcode_libdir_separator= 9437 fi 9438 ;; 9439 esac 9440 shared_flag='-shared' 9441 if test "$aix_use_runtimelinking" = yes; then 9442 shared_flag="$shared_flag "'${wl}-G' 9443 fi 9444 else 9445 # not using gcc 9446 if test "$host_cpu" = ia64; then 9447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9448 # chokes on -Wl,-G. The following line is correct: 9449 shared_flag='-G' 9450 else 9451 if test "$aix_use_runtimelinking" = yes; then 9452 shared_flag='${wl}-G' 9453 else 9454 shared_flag='${wl}-bM:SRE' 9455 fi 9456 fi 9457 fi 9458 9459 export_dynamic_flag_spec='${wl}-bexpall' 9460 # It seems that -bexpall does not export symbols beginning with 9461 # underscore (_), so it is better to generate a list of symbols to export. 9462 always_export_symbols=yes 9463 if test "$aix_use_runtimelinking" = yes; then 9464 # Warning - without using the other runtime loading flags (-brtl), 9465 # -berok will link without error, but may produce a broken library. 9466 allow_undefined_flag='-berok' 9467 # Determine the default libpath from the value encoded in an 9468 # empty executable. 9469 if test "${lt_cv_aix_libpath+set}" = set; then 9470 aix_libpath=$lt_cv_aix_libpath 9471else 9472 if ${lt_cv_aix_libpath_+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477 9478int 9479main () 9480{ 9481 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486if ac_fn_c_try_link "$LINENO"; then : 9487 9488 lt_aix_libpath_sed=' 9489 /Import File Strings/,/^$/ { 9490 /^0/ { 9491 s/^0 *\([^ ]*\) *$/\1/ 9492 p 9493 } 9494 }' 9495 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9496 # Check for a 64-bit object if we didn't find anything. 9497 if test -z "$lt_cv_aix_libpath_"; then 9498 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9499 fi 9500fi 9501rm -f core conftest.err conftest.$ac_objext \ 9502 conftest$ac_exeext conftest.$ac_ext 9503 if test -z "$lt_cv_aix_libpath_"; then 9504 lt_cv_aix_libpath_="/usr/lib:/lib" 9505 fi 9506 9507fi 9508 9509 aix_libpath=$lt_cv_aix_libpath_ 9510fi 9511 9512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9513 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" 9514 else 9515 if test "$host_cpu" = ia64; then 9516 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9517 allow_undefined_flag="-z nodefs" 9518 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" 9519 else 9520 # Determine the default libpath from the value encoded in an 9521 # empty executable. 9522 if test "${lt_cv_aix_libpath+set}" = set; then 9523 aix_libpath=$lt_cv_aix_libpath 9524else 9525 if ${lt_cv_aix_libpath_+:} false; then : 9526 $as_echo_n "(cached) " >&6 9527else 9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9529/* end confdefs.h. */ 9530 9531int 9532main () 9533{ 9534 9535 ; 9536 return 0; 9537} 9538_ACEOF 9539if ac_fn_c_try_link "$LINENO"; then : 9540 9541 lt_aix_libpath_sed=' 9542 /Import File Strings/,/^$/ { 9543 /^0/ { 9544 s/^0 *\([^ ]*\) *$/\1/ 9545 p 9546 } 9547 }' 9548 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9549 # Check for a 64-bit object if we didn't find anything. 9550 if test -z "$lt_cv_aix_libpath_"; then 9551 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9552 fi 9553fi 9554rm -f core conftest.err conftest.$ac_objext \ 9555 conftest$ac_exeext conftest.$ac_ext 9556 if test -z "$lt_cv_aix_libpath_"; then 9557 lt_cv_aix_libpath_="/usr/lib:/lib" 9558 fi 9559 9560fi 9561 9562 aix_libpath=$lt_cv_aix_libpath_ 9563fi 9564 9565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9566 # Warning - without using the other run time loading flags, 9567 # -berok will link without error, but may produce a broken library. 9568 no_undefined_flag=' ${wl}-bernotok' 9569 allow_undefined_flag=' ${wl}-berok' 9570 if test "$with_gnu_ld" = yes; then 9571 # We only use this code for GNU lds that support --whole-archive. 9572 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9573 else 9574 # Exported symbols can be pulled into shared objects from archives 9575 whole_archive_flag_spec='$convenience' 9576 fi 9577 archive_cmds_need_lc=yes 9578 # This is similar to how AIX traditionally builds its shared libraries. 9579 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' 9580 fi 9581 fi 9582 ;; 9583 9584 amigaos*) 9585 case $host_cpu in 9586 powerpc) 9587 # see comment about AmigaOS4 .so support 9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9589 archive_expsym_cmds='' 9590 ;; 9591 m68k) 9592 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)' 9593 hardcode_libdir_flag_spec='-L$libdir' 9594 hardcode_minus_L=yes 9595 ;; 9596 esac 9597 ;; 9598 9599 bsdi[45]*) 9600 export_dynamic_flag_spec=-rdynamic 9601 ;; 9602 9603 cygwin* | mingw* | pw32* | cegcc*) 9604 # When not using gcc, we currently assume that we are using 9605 # Microsoft Visual C++. 9606 # hardcode_libdir_flag_spec is actually meaningless, as there is 9607 # no search path for DLLs. 9608 case $cc_basename in 9609 cl*) 9610 # Native MSVC 9611 hardcode_libdir_flag_spec=' ' 9612 allow_undefined_flag=unsupported 9613 always_export_symbols=yes 9614 file_list_spec='@' 9615 # Tell ltmain to make .lib files, not .a files. 9616 libext=lib 9617 # Tell ltmain to make .dll files, not .so files. 9618 shrext_cmds=".dll" 9619 # FIXME: Setting linknames here is a bad hack. 9620 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9621 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9622 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9623 else 9624 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9625 fi~ 9626 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9627 linknames=' 9628 # The linker will not automatically build a static lib if we build a DLL. 9629 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9630 enable_shared_with_static_runtimes=yes 9631 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9633 # Don't use ranlib 9634 old_postinstall_cmds='chmod 644 $oldlib' 9635 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9636 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9637 case $lt_outputfile in 9638 *.exe|*.EXE) ;; 9639 *) 9640 lt_outputfile="$lt_outputfile.exe" 9641 lt_tool_outputfile="$lt_tool_outputfile.exe" 9642 ;; 9643 esac~ 9644 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9645 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9646 $RM "$lt_outputfile.manifest"; 9647 fi' 9648 ;; 9649 *) 9650 # Assume MSVC wrapper 9651 hardcode_libdir_flag_spec=' ' 9652 allow_undefined_flag=unsupported 9653 # Tell ltmain to make .lib files, not .a files. 9654 libext=lib 9655 # Tell ltmain to make .dll files, not .so files. 9656 shrext_cmds=".dll" 9657 # FIXME: Setting linknames here is a bad hack. 9658 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9659 # The linker will automatically build a .lib file if we build a DLL. 9660 old_archive_from_new_cmds='true' 9661 # FIXME: Should let the user specify the lib program. 9662 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9663 enable_shared_with_static_runtimes=yes 9664 ;; 9665 esac 9666 ;; 9667 9668 darwin* | rhapsody*) 9669 9670 9671 archive_cmds_need_lc=no 9672 hardcode_direct=no 9673 hardcode_automatic=yes 9674 hardcode_shlibpath_var=unsupported 9675 if test "$lt_cv_ld_force_load" = "yes"; then 9676 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\"`' 9677 9678 else 9679 whole_archive_flag_spec='' 9680 fi 9681 link_all_deplibs=yes 9682 allow_undefined_flag="$_lt_dar_allow_undefined" 9683 case $cc_basename in 9684 ifort*) _lt_dar_can_shared=yes ;; 9685 *) _lt_dar_can_shared=$GCC ;; 9686 esac 9687 if test "$_lt_dar_can_shared" = "yes"; then 9688 output_verbose_link_cmd=func_echo_all 9689 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9690 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9691 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}" 9692 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}" 9693 9694 else 9695 ld_shlibs=no 9696 fi 9697 9698 ;; 9699 9700 dgux*) 9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9702 hardcode_libdir_flag_spec='-L$libdir' 9703 hardcode_shlibpath_var=no 9704 ;; 9705 9706 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9707 # support. Future versions do this automatically, but an explicit c++rt0.o 9708 # does not break anything, and helps significantly (at the cost of a little 9709 # extra space). 9710 freebsd2.2*) 9711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9712 hardcode_libdir_flag_spec='-R$libdir' 9713 hardcode_direct=yes 9714 hardcode_shlibpath_var=no 9715 ;; 9716 9717 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9718 freebsd2.*) 9719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9720 hardcode_direct=yes 9721 hardcode_minus_L=yes 9722 hardcode_shlibpath_var=no 9723 ;; 9724 9725 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9726 freebsd* | dragonfly*) 9727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9728 hardcode_libdir_flag_spec='-R$libdir' 9729 hardcode_direct=yes 9730 hardcode_shlibpath_var=no 9731 ;; 9732 9733 hpux9*) 9734 if test "$GCC" = yes; then 9735 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' 9736 else 9737 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' 9738 fi 9739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9740 hardcode_libdir_separator=: 9741 hardcode_direct=yes 9742 9743 # hardcode_minus_L: Not really in the search PATH, 9744 # but as the default location of the library. 9745 hardcode_minus_L=yes 9746 export_dynamic_flag_spec='${wl}-E' 9747 ;; 9748 9749 hpux10*) 9750 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9751 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9752 else 9753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9754 fi 9755 if test "$with_gnu_ld" = no; then 9756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9757 hardcode_libdir_separator=: 9758 hardcode_direct=yes 9759 hardcode_direct_absolute=yes 9760 export_dynamic_flag_spec='${wl}-E' 9761 # hardcode_minus_L: Not really in the search PATH, 9762 # but as the default location of the library. 9763 hardcode_minus_L=yes 9764 fi 9765 ;; 9766 9767 hpux11*) 9768 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9769 case $host_cpu in 9770 hppa*64*) 9771 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9772 ;; 9773 ia64*) 9774 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9775 ;; 9776 *) 9777 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9778 ;; 9779 esac 9780 else 9781 case $host_cpu in 9782 hppa*64*) 9783 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9784 ;; 9785 ia64*) 9786 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9787 ;; 9788 *) 9789 9790 # Older versions of the 11.00 compiler do not understand -b yet 9791 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9793$as_echo_n "checking if $CC understands -b... " >&6; } 9794if ${lt_cv_prog_compiler__b+:} false; then : 9795 $as_echo_n "(cached) " >&6 9796else 9797 lt_cv_prog_compiler__b=no 9798 save_LDFLAGS="$LDFLAGS" 9799 LDFLAGS="$LDFLAGS -b" 9800 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9802 # The linker can only warn and ignore the option if not recognized 9803 # So say no if there are warnings 9804 if test -s conftest.err; then 9805 # Append any errors to the config.log. 9806 cat conftest.err 1>&5 9807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9809 if diff conftest.exp conftest.er2 >/dev/null; then 9810 lt_cv_prog_compiler__b=yes 9811 fi 9812 else 9813 lt_cv_prog_compiler__b=yes 9814 fi 9815 fi 9816 $RM -r conftest* 9817 LDFLAGS="$save_LDFLAGS" 9818 9819fi 9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9821$as_echo "$lt_cv_prog_compiler__b" >&6; } 9822 9823if test x"$lt_cv_prog_compiler__b" = xyes; then 9824 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9825else 9826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9827fi 9828 9829 ;; 9830 esac 9831 fi 9832 if test "$with_gnu_ld" = no; then 9833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9834 hardcode_libdir_separator=: 9835 9836 case $host_cpu in 9837 hppa*64*|ia64*) 9838 hardcode_direct=no 9839 hardcode_shlibpath_var=no 9840 ;; 9841 *) 9842 hardcode_direct=yes 9843 hardcode_direct_absolute=yes 9844 export_dynamic_flag_spec='${wl}-E' 9845 9846 # hardcode_minus_L: Not really in the search PATH, 9847 # but as the default location of the library. 9848 hardcode_minus_L=yes 9849 ;; 9850 esac 9851 fi 9852 ;; 9853 9854 irix5* | irix6* | nonstopux*) 9855 if test "$GCC" = yes; then 9856 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' 9857 # Try to use the -exported_symbol ld option, if it does not 9858 # work, assume that -exports_file does not work either and 9859 # implicitly export all symbols. 9860 # This should be the same for all languages, so no per-tag cache variable. 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9862$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9863if ${lt_cv_irix_exported_symbol+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 save_LDFLAGS="$LDFLAGS" 9867 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869/* end confdefs.h. */ 9870int foo (void) { return 0; } 9871_ACEOF 9872if ac_fn_c_try_link "$LINENO"; then : 9873 lt_cv_irix_exported_symbol=yes 9874else 9875 lt_cv_irix_exported_symbol=no 9876fi 9877rm -f core conftest.err conftest.$ac_objext \ 9878 conftest$ac_exeext conftest.$ac_ext 9879 LDFLAGS="$save_LDFLAGS" 9880fi 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9882$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9883 if test "$lt_cv_irix_exported_symbol" = yes; then 9884 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' 9885 fi 9886 else 9887 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' 9888 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' 9889 fi 9890 archive_cmds_need_lc='no' 9891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9892 hardcode_libdir_separator=: 9893 inherit_rpath=yes 9894 link_all_deplibs=yes 9895 ;; 9896 9897 netbsd*) 9898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9900 else 9901 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9902 fi 9903 hardcode_libdir_flag_spec='-R$libdir' 9904 hardcode_direct=yes 9905 hardcode_shlibpath_var=no 9906 ;; 9907 9908 newsos6) 9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9910 hardcode_direct=yes 9911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9912 hardcode_libdir_separator=: 9913 hardcode_shlibpath_var=no 9914 ;; 9915 9916 *nto* | *qnx*) 9917 ;; 9918 9919 openbsd*) 9920 if test -f /usr/libexec/ld.so; then 9921 hardcode_direct=yes 9922 hardcode_shlibpath_var=no 9923 hardcode_direct_absolute=yes 9924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9926 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9928 export_dynamic_flag_spec='${wl}-E' 9929 else 9930 case $host_os in 9931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9933 hardcode_libdir_flag_spec='-R$libdir' 9934 ;; 9935 *) 9936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9938 ;; 9939 esac 9940 fi 9941 else 9942 ld_shlibs=no 9943 fi 9944 ;; 9945 9946 os2*) 9947 hardcode_libdir_flag_spec='-L$libdir' 9948 hardcode_minus_L=yes 9949 allow_undefined_flag=unsupported 9950 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' 9951 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9952 ;; 9953 9954 osf3*) 9955 if test "$GCC" = yes; then 9956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9957 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' 9958 else 9959 allow_undefined_flag=' -expect_unresolved \*' 9960 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' 9961 fi 9962 archive_cmds_need_lc='no' 9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9964 hardcode_libdir_separator=: 9965 ;; 9966 9967 osf4* | osf5*) # as osf3* with the addition of -msym flag 9968 if test "$GCC" = yes; then 9969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9970 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' 9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9972 else 9973 allow_undefined_flag=' -expect_unresolved \*' 9974 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' 9975 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~ 9976 $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' 9977 9978 # Both c and cxx compiler support -rpath directly 9979 hardcode_libdir_flag_spec='-rpath $libdir' 9980 fi 9981 archive_cmds_need_lc='no' 9982 hardcode_libdir_separator=: 9983 ;; 9984 9985 solaris*) 9986 no_undefined_flag=' -z defs' 9987 if test "$GCC" = yes; then 9988 wlarc='${wl}' 9989 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9991 $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' 9992 else 9993 case `$CC -V 2>&1` in 9994 *"Compilers 5.0"*) 9995 wlarc='' 9996 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9999 ;; 10000 *) 10001 wlarc='${wl}' 10002 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10004 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10005 ;; 10006 esac 10007 fi 10008 hardcode_libdir_flag_spec='-R$libdir' 10009 hardcode_shlibpath_var=no 10010 case $host_os in 10011 solaris2.[0-5] | solaris2.[0-5].*) ;; 10012 *) 10013 # The compiler driver will combine and reorder linker options, 10014 # but understands `-z linker_flag'. GCC discards it without `$wl', 10015 # but is careful enough not to reorder. 10016 # Supported since Solaris 2.6 (maybe 2.5.1?) 10017 if test "$GCC" = yes; then 10018 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10019 else 10020 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10021 fi 10022 ;; 10023 esac 10024 link_all_deplibs=yes 10025 ;; 10026 10027 sunos4*) 10028 if test "x$host_vendor" = xsequent; then 10029 # Use $CC to link under sequent, because it throws in some extra .o 10030 # files that make .init and .fini sections work. 10031 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10032 else 10033 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10034 fi 10035 hardcode_libdir_flag_spec='-L$libdir' 10036 hardcode_direct=yes 10037 hardcode_minus_L=yes 10038 hardcode_shlibpath_var=no 10039 ;; 10040 10041 sysv4) 10042 case $host_vendor in 10043 sni) 10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10045 hardcode_direct=yes # is this really true??? 10046 ;; 10047 siemens) 10048 ## LD is ld it makes a PLAMLIB 10049 ## CC just makes a GrossModule. 10050 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10051 reload_cmds='$CC -r -o $output$reload_objs' 10052 hardcode_direct=no 10053 ;; 10054 motorola) 10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10056 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10057 ;; 10058 esac 10059 runpath_var='LD_RUN_PATH' 10060 hardcode_shlibpath_var=no 10061 ;; 10062 10063 sysv4.3*) 10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10065 hardcode_shlibpath_var=no 10066 export_dynamic_flag_spec='-Bexport' 10067 ;; 10068 10069 sysv4*MP*) 10070 if test -d /usr/nec; then 10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10072 hardcode_shlibpath_var=no 10073 runpath_var=LD_RUN_PATH 10074 hardcode_runpath_var=yes 10075 ld_shlibs=yes 10076 fi 10077 ;; 10078 10079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10080 no_undefined_flag='${wl}-z,text' 10081 archive_cmds_need_lc=no 10082 hardcode_shlibpath_var=no 10083 runpath_var='LD_RUN_PATH' 10084 10085 if test "$GCC" = yes; then 10086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10088 else 10089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10091 fi 10092 ;; 10093 10094 sysv5* | sco3.2v5* | sco5v6*) 10095 # Note: We can NOT use -z defs as we might desire, because we do not 10096 # link with -lc, and that would cause any symbols used from libc to 10097 # always be unresolved, which means just about no library would 10098 # ever link correctly. If we're not using GNU ld we use -z text 10099 # though, which does catch some bad symbols but isn't as heavy-handed 10100 # as -z defs. 10101 no_undefined_flag='${wl}-z,text' 10102 allow_undefined_flag='${wl}-z,nodefs' 10103 archive_cmds_need_lc=no 10104 hardcode_shlibpath_var=no 10105 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10106 hardcode_libdir_separator=':' 10107 link_all_deplibs=yes 10108 export_dynamic_flag_spec='${wl}-Bexport' 10109 runpath_var='LD_RUN_PATH' 10110 10111 if test "$GCC" = yes; then 10112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10114 else 10115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10117 fi 10118 ;; 10119 10120 uts4*) 10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10122 hardcode_libdir_flag_spec='-L$libdir' 10123 hardcode_shlibpath_var=no 10124 ;; 10125 10126 *) 10127 ld_shlibs=no 10128 ;; 10129 esac 10130 10131 if test x$host_vendor = xsni; then 10132 case $host in 10133 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10134 export_dynamic_flag_spec='${wl}-Blargedynsym' 10135 ;; 10136 esac 10137 fi 10138 fi 10139 10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10141$as_echo "$ld_shlibs" >&6; } 10142test "$ld_shlibs" = no && can_build_shared=no 10143 10144with_gnu_ld=$with_gnu_ld 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160# 10161# Do we need to explicitly link libc? 10162# 10163case "x$archive_cmds_need_lc" in 10164x|xyes) 10165 # Assume -lc should be added 10166 archive_cmds_need_lc=yes 10167 10168 if test "$enable_shared" = yes && test "$GCC" = yes; then 10169 case $archive_cmds in 10170 *'~'*) 10171 # FIXME: we may have to deal with multi-command sequences. 10172 ;; 10173 '$CC '*) 10174 # Test whether the compiler implicitly links with -lc since on some 10175 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10176 # to ld, don't add -lc before -lgcc. 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10178$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10179if ${lt_cv_archive_cmds_need_lc+:} false; then : 10180 $as_echo_n "(cached) " >&6 10181else 10182 $RM conftest* 10183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10184 10185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10186 (eval $ac_compile) 2>&5 10187 ac_status=$? 10188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10189 test $ac_status = 0; } 2>conftest.err; then 10190 soname=conftest 10191 lib=conftest 10192 libobjs=conftest.$ac_objext 10193 deplibs= 10194 wl=$lt_prog_compiler_wl 10195 pic_flag=$lt_prog_compiler_pic 10196 compiler_flags=-v 10197 linker_flags=-v 10198 verstring= 10199 output_objdir=. 10200 libname=conftest 10201 lt_save_allow_undefined_flag=$allow_undefined_flag 10202 allow_undefined_flag= 10203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10204 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10205 ac_status=$? 10206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10207 test $ac_status = 0; } 10208 then 10209 lt_cv_archive_cmds_need_lc=no 10210 else 10211 lt_cv_archive_cmds_need_lc=yes 10212 fi 10213 allow_undefined_flag=$lt_save_allow_undefined_flag 10214 else 10215 cat conftest.err 1>&5 10216 fi 10217 $RM conftest* 10218 10219fi 10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10221$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10222 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10223 ;; 10224 esac 10225 fi 10226 ;; 10227esac 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10381$as_echo_n "checking dynamic linker characteristics... " >&6; } 10382 10383if test "$GCC" = yes; then 10384 case $host_os in 10385 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10386 *) lt_awk_arg="/^libraries:/" ;; 10387 esac 10388 case $host_os in 10389 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10390 *) lt_sed_strip_eq="s,=/,/,g" ;; 10391 esac 10392 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10393 case $lt_search_path_spec in 10394 *\;*) 10395 # if the path contains ";" then we assume it to be the separator 10396 # otherwise default to the standard path separator (i.e. ":") - it is 10397 # assumed that no part of a normal pathname contains ";" but that should 10398 # okay in the real world where ";" in dirpaths is itself problematic. 10399 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10400 ;; 10401 *) 10402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10403 ;; 10404 esac 10405 # Ok, now we have the path, separated by spaces, we can step through it 10406 # and add multilib dir if necessary. 10407 lt_tmp_lt_search_path_spec= 10408 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10409 for lt_sys_path in $lt_search_path_spec; do 10410 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10411 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10412 else 10413 test -d "$lt_sys_path" && \ 10414 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10415 fi 10416 done 10417 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10418BEGIN {RS=" "; FS="/|\n";} { 10419 lt_foo=""; 10420 lt_count=0; 10421 for (lt_i = NF; lt_i > 0; lt_i--) { 10422 if ($lt_i != "" && $lt_i != ".") { 10423 if ($lt_i == "..") { 10424 lt_count++; 10425 } else { 10426 if (lt_count == 0) { 10427 lt_foo="/" $lt_i lt_foo; 10428 } else { 10429 lt_count--; 10430 } 10431 } 10432 } 10433 } 10434 if (lt_foo != "") { lt_freq[lt_foo]++; } 10435 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10436}'` 10437 # AWK program above erroneously prepends '/' to C:/dos/paths 10438 # for these hosts. 10439 case $host_os in 10440 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10441 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10442 esac 10443 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10444else 10445 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10446fi 10447library_names_spec= 10448libname_spec='lib$name' 10449soname_spec= 10450shrext_cmds=".so" 10451postinstall_cmds= 10452postuninstall_cmds= 10453finish_cmds= 10454finish_eval= 10455shlibpath_var= 10456shlibpath_overrides_runpath=unknown 10457version_type=none 10458dynamic_linker="$host_os ld.so" 10459sys_lib_dlsearch_path_spec="/lib /usr/lib" 10460need_lib_prefix=unknown 10461hardcode_into_libs=no 10462 10463# when you set need_version to no, make sure it does not cause -set_version 10464# flags to be left without arguments 10465need_version=unknown 10466 10467case $host_os in 10468aix3*) 10469 version_type=linux # correct to gnu/linux during the next big refactor 10470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10471 shlibpath_var=LIBPATH 10472 10473 # AIX 3 has no versioning support, so we append a major version to the name. 10474 soname_spec='${libname}${release}${shared_ext}$major' 10475 ;; 10476 10477aix[4-9]*) 10478 version_type=linux # correct to gnu/linux during the next big refactor 10479 need_lib_prefix=no 10480 need_version=no 10481 hardcode_into_libs=yes 10482 if test "$host_cpu" = ia64; then 10483 # AIX 5 supports IA64 10484 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10485 shlibpath_var=LD_LIBRARY_PATH 10486 else 10487 # With GCC up to 2.95.x, collect2 would create an import file 10488 # for dependence libraries. The import file would start with 10489 # the line `#! .'. This would cause the generated library to 10490 # depend on `.', always an invalid library. This was fixed in 10491 # development snapshots of GCC prior to 3.0. 10492 case $host_os in 10493 aix4 | aix4.[01] | aix4.[01].*) 10494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10495 echo ' yes ' 10496 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10497 : 10498 else 10499 can_build_shared=no 10500 fi 10501 ;; 10502 esac 10503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10504 # soname into executable. Probably we can add versioning support to 10505 # collect2, so additional links can be useful in future. 10506 if test "$aix_use_runtimelinking" = yes; then 10507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10508 # instead of lib<name>.a to let people know that these are not 10509 # typical AIX shared libraries. 10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10511 else 10512 # We preserve .a as extension for shared libraries through AIX4.2 10513 # and later when we are not doing run time linking. 10514 library_names_spec='${libname}${release}.a $libname.a' 10515 soname_spec='${libname}${release}${shared_ext}$major' 10516 fi 10517 shlibpath_var=LIBPATH 10518 fi 10519 ;; 10520 10521amigaos*) 10522 case $host_cpu in 10523 powerpc) 10524 # Since July 2007 AmigaOS4 officially supports .so libraries. 10525 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10527 ;; 10528 m68k) 10529 library_names_spec='$libname.ixlibrary $libname.a' 10530 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10531 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' 10532 ;; 10533 esac 10534 ;; 10535 10536beos*) 10537 library_names_spec='${libname}${shared_ext}' 10538 dynamic_linker="$host_os ld.so" 10539 shlibpath_var=LIBRARY_PATH 10540 ;; 10541 10542bsdi[45]*) 10543 version_type=linux # correct to gnu/linux during the next big refactor 10544 need_version=no 10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10546 soname_spec='${libname}${release}${shared_ext}$major' 10547 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10548 shlibpath_var=LD_LIBRARY_PATH 10549 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10550 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10551 # the default ld.so.conf also contains /usr/contrib/lib and 10552 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10553 # libtool to hard-code these into programs 10554 ;; 10555 10556cygwin* | mingw* | pw32* | cegcc*) 10557 version_type=windows 10558 shrext_cmds=".dll" 10559 need_version=no 10560 need_lib_prefix=no 10561 10562 case $GCC,$cc_basename in 10563 yes,*) 10564 # gcc 10565 library_names_spec='$libname.dll.a' 10566 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10567 postinstall_cmds='base_file=`basename \${file}`~ 10568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10569 dldir=$destdir/`dirname \$dlpath`~ 10570 test -d \$dldir || mkdir -p \$dldir~ 10571 $install_prog $dir/$dlname \$dldir/$dlname~ 10572 chmod a+x \$dldir/$dlname~ 10573 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10574 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10575 fi' 10576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10577 dlpath=$dir/\$dldll~ 10578 $RM \$dlpath' 10579 shlibpath_overrides_runpath=yes 10580 10581 case $host_os in 10582 cygwin*) 10583 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10585 10586 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10587 ;; 10588 mingw* | cegcc*) 10589 # MinGW DLLs use traditional 'lib' prefix 10590 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10591 ;; 10592 pw32*) 10593 # pw32 DLLs use 'pw' prefix rather than 'lib' 10594 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10595 ;; 10596 esac 10597 dynamic_linker='Win32 ld.exe' 10598 ;; 10599 10600 *,cl*) 10601 # Native MSVC 10602 libname_spec='$name' 10603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10604 library_names_spec='${libname}.dll.lib' 10605 10606 case $build_os in 10607 mingw*) 10608 sys_lib_search_path_spec= 10609 lt_save_ifs=$IFS 10610 IFS=';' 10611 for lt_path in $LIB 10612 do 10613 IFS=$lt_save_ifs 10614 # Let DOS variable expansion print the short 8.3 style file name. 10615 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10616 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10617 done 10618 IFS=$lt_save_ifs 10619 # Convert to MSYS style. 10620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10621 ;; 10622 cygwin*) 10623 # Convert to unix form, then to dos form, then back to unix form 10624 # but this time dos style (no spaces!) so that the unix form looks 10625 # like /cygdrive/c/PROGRA~1:/cygdr... 10626 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10627 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10628 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10629 ;; 10630 *) 10631 sys_lib_search_path_spec="$LIB" 10632 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10633 # It is most probably a Windows format PATH. 10634 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10635 else 10636 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10637 fi 10638 # FIXME: find the short name or the path components, as spaces are 10639 # common. (e.g. "Program Files" -> "PROGRA~1") 10640 ;; 10641 esac 10642 10643 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10644 postinstall_cmds='base_file=`basename \${file}`~ 10645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10646 dldir=$destdir/`dirname \$dlpath`~ 10647 test -d \$dldir || mkdir -p \$dldir~ 10648 $install_prog $dir/$dlname \$dldir/$dlname' 10649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10650 dlpath=$dir/\$dldll~ 10651 $RM \$dlpath' 10652 shlibpath_overrides_runpath=yes 10653 dynamic_linker='Win32 link.exe' 10654 ;; 10655 10656 *) 10657 # Assume MSVC wrapper 10658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10659 dynamic_linker='Win32 ld.exe' 10660 ;; 10661 esac 10662 # FIXME: first we should search . and the directory the executable is in 10663 shlibpath_var=PATH 10664 ;; 10665 10666darwin* | rhapsody*) 10667 dynamic_linker="$host_os dyld" 10668 version_type=darwin 10669 need_lib_prefix=no 10670 need_version=no 10671 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10672 soname_spec='${libname}${release}${major}$shared_ext' 10673 shlibpath_overrides_runpath=yes 10674 shlibpath_var=DYLD_LIBRARY_PATH 10675 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10676 10677 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10678 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10679 ;; 10680 10681dgux*) 10682 version_type=linux # correct to gnu/linux during the next big refactor 10683 need_lib_prefix=no 10684 need_version=no 10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10686 soname_spec='${libname}${release}${shared_ext}$major' 10687 shlibpath_var=LD_LIBRARY_PATH 10688 ;; 10689 10690freebsd* | dragonfly*) 10691 # DragonFly does not have aout. When/if they implement a new 10692 # versioning mechanism, adjust this. 10693 if test -x /usr/bin/objformat; then 10694 objformat=`/usr/bin/objformat` 10695 else 10696 case $host_os in 10697 freebsd[23].*) objformat=aout ;; 10698 *) objformat=elf ;; 10699 esac 10700 fi 10701 version_type=freebsd-$objformat 10702 case $version_type in 10703 freebsd-elf*) 10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10705 need_version=no 10706 need_lib_prefix=no 10707 ;; 10708 freebsd-*) 10709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10710 need_version=yes 10711 ;; 10712 esac 10713 shlibpath_var=LD_LIBRARY_PATH 10714 case $host_os in 10715 freebsd2.*) 10716 shlibpath_overrides_runpath=yes 10717 ;; 10718 freebsd3.[01]* | freebsdelf3.[01]*) 10719 shlibpath_overrides_runpath=yes 10720 hardcode_into_libs=yes 10721 ;; 10722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10724 shlibpath_overrides_runpath=no 10725 hardcode_into_libs=yes 10726 ;; 10727 *) # from 4.6 on, and DragonFly 10728 shlibpath_overrides_runpath=yes 10729 hardcode_into_libs=yes 10730 ;; 10731 esac 10732 ;; 10733 10734gnu*) 10735 version_type=linux # correct to gnu/linux during the next big refactor 10736 need_lib_prefix=no 10737 need_version=no 10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10739 soname_spec='${libname}${release}${shared_ext}$major' 10740 shlibpath_var=LD_LIBRARY_PATH 10741 shlibpath_overrides_runpath=no 10742 hardcode_into_libs=yes 10743 ;; 10744 10745haiku*) 10746 version_type=linux # correct to gnu/linux during the next big refactor 10747 need_lib_prefix=no 10748 need_version=no 10749 dynamic_linker="$host_os runtime_loader" 10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10751 soname_spec='${libname}${release}${shared_ext}$major' 10752 shlibpath_var=LIBRARY_PATH 10753 shlibpath_overrides_runpath=yes 10754 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10755 hardcode_into_libs=yes 10756 ;; 10757 10758hpux9* | hpux10* | hpux11*) 10759 # Give a soname corresponding to the major version so that dld.sl refuses to 10760 # link against other versions. 10761 version_type=sunos 10762 need_lib_prefix=no 10763 need_version=no 10764 case $host_cpu in 10765 ia64*) 10766 shrext_cmds='.so' 10767 hardcode_into_libs=yes 10768 dynamic_linker="$host_os dld.so" 10769 shlibpath_var=LD_LIBRARY_PATH 10770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10772 soname_spec='${libname}${release}${shared_ext}$major' 10773 if test "X$HPUX_IA64_MODE" = X32; then 10774 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10775 else 10776 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10777 fi 10778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10779 ;; 10780 hppa*64*) 10781 shrext_cmds='.sl' 10782 hardcode_into_libs=yes 10783 dynamic_linker="$host_os dld.sl" 10784 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10787 soname_spec='${libname}${release}${shared_ext}$major' 10788 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10790 ;; 10791 *) 10792 shrext_cmds='.sl' 10793 dynamic_linker="$host_os dld.sl" 10794 shlibpath_var=SHLIB_PATH 10795 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10797 soname_spec='${libname}${release}${shared_ext}$major' 10798 ;; 10799 esac 10800 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10801 postinstall_cmds='chmod 555 $lib' 10802 # or fails outright, so override atomically: 10803 install_override_mode=555 10804 ;; 10805 10806interix[3-9]*) 10807 version_type=linux # correct to gnu/linux during the next big refactor 10808 need_lib_prefix=no 10809 need_version=no 10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10811 soname_spec='${libname}${release}${shared_ext}$major' 10812 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10813 shlibpath_var=LD_LIBRARY_PATH 10814 shlibpath_overrides_runpath=no 10815 hardcode_into_libs=yes 10816 ;; 10817 10818irix5* | irix6* | nonstopux*) 10819 case $host_os in 10820 nonstopux*) version_type=nonstopux ;; 10821 *) 10822 if test "$lt_cv_prog_gnu_ld" = yes; then 10823 version_type=linux # correct to gnu/linux during the next big refactor 10824 else 10825 version_type=irix 10826 fi ;; 10827 esac 10828 need_lib_prefix=no 10829 need_version=no 10830 soname_spec='${libname}${release}${shared_ext}$major' 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10832 case $host_os in 10833 irix5* | nonstopux*) 10834 libsuff= shlibsuff= 10835 ;; 10836 *) 10837 case $LD in # libtool.m4 will add one of these switches to LD 10838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10839 libsuff= shlibsuff= libmagic=32-bit;; 10840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10841 libsuff=32 shlibsuff=N32 libmagic=N32;; 10842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10843 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10844 *) libsuff= shlibsuff= libmagic=never-match;; 10845 esac 10846 ;; 10847 esac 10848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10849 shlibpath_overrides_runpath=no 10850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10852 hardcode_into_libs=yes 10853 ;; 10854 10855# No shared lib support for Linux oldld, aout, or coff. 10856linux*oldld* | linux*aout* | linux*coff*) 10857 dynamic_linker=no 10858 ;; 10859 10860# This must be glibc/ELF. 10861linux* | k*bsd*-gnu | kopensolaris*-gnu) 10862 version_type=linux # correct to gnu/linux during the next big refactor 10863 need_lib_prefix=no 10864 need_version=no 10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10866 soname_spec='${libname}${release}${shared_ext}$major' 10867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10868 shlibpath_var=LD_LIBRARY_PATH 10869 shlibpath_overrides_runpath=no 10870 10871 # Some binutils ld are patched to set DT_RUNPATH 10872 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10873 $as_echo_n "(cached) " >&6 10874else 10875 lt_cv_shlibpath_overrides_runpath=no 10876 save_LDFLAGS=$LDFLAGS 10877 save_libdir=$libdir 10878 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10879 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10881/* end confdefs.h. */ 10882 10883int 10884main () 10885{ 10886 10887 ; 10888 return 0; 10889} 10890_ACEOF 10891if ac_fn_c_try_link "$LINENO"; then : 10892 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10893 lt_cv_shlibpath_overrides_runpath=yes 10894fi 10895fi 10896rm -f core conftest.err conftest.$ac_objext \ 10897 conftest$ac_exeext conftest.$ac_ext 10898 LDFLAGS=$save_LDFLAGS 10899 libdir=$save_libdir 10900 10901fi 10902 10903 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10904 10905 # This implies no fast_install, which is unacceptable. 10906 # Some rework will be needed to allow for fast_install 10907 # before this can be enabled. 10908 hardcode_into_libs=yes 10909 10910 # Append ld.so.conf contents to the search path 10911 if test -f /etc/ld.so.conf; then 10912 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' ' '` 10913 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10914 fi 10915 10916 # We used to test for /lib/ld.so.1 and disable shared libraries on 10917 # powerpc, because MkLinux only supported shared libraries with the 10918 # GNU dynamic linker. Since this was broken with cross compilers, 10919 # most powerpc-linux boxes support dynamic linking these days and 10920 # people can always --disable-shared, the test was removed, and we 10921 # assume the GNU/Linux dynamic linker is in use. 10922 dynamic_linker='GNU/Linux ld.so' 10923 ;; 10924 10925netbsd*) 10926 version_type=sunos 10927 need_lib_prefix=no 10928 need_version=no 10929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10932 dynamic_linker='NetBSD (a.out) ld.so' 10933 else 10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10935 soname_spec='${libname}${release}${shared_ext}$major' 10936 dynamic_linker='NetBSD ld.elf_so' 10937 fi 10938 shlibpath_var=LD_LIBRARY_PATH 10939 shlibpath_overrides_runpath=yes 10940 hardcode_into_libs=yes 10941 ;; 10942 10943newsos6) 10944 version_type=linux # correct to gnu/linux during the next big refactor 10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10946 shlibpath_var=LD_LIBRARY_PATH 10947 shlibpath_overrides_runpath=yes 10948 ;; 10949 10950*nto* | *qnx*) 10951 version_type=qnx 10952 need_lib_prefix=no 10953 need_version=no 10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10955 soname_spec='${libname}${release}${shared_ext}$major' 10956 shlibpath_var=LD_LIBRARY_PATH 10957 shlibpath_overrides_runpath=no 10958 hardcode_into_libs=yes 10959 dynamic_linker='ldqnx.so' 10960 ;; 10961 10962openbsd*) 10963 version_type=sunos 10964 sys_lib_dlsearch_path_spec="/usr/lib" 10965 need_lib_prefix=no 10966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10967 case $host_os in 10968 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10969 *) need_version=no ;; 10970 esac 10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10973 shlibpath_var=LD_LIBRARY_PATH 10974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10975 case $host_os in 10976 openbsd2.[89] | openbsd2.[89].*) 10977 shlibpath_overrides_runpath=no 10978 ;; 10979 *) 10980 shlibpath_overrides_runpath=yes 10981 ;; 10982 esac 10983 else 10984 shlibpath_overrides_runpath=yes 10985 fi 10986 ;; 10987 10988os2*) 10989 libname_spec='$name' 10990 shrext_cmds=".dll" 10991 need_lib_prefix=no 10992 library_names_spec='$libname${shared_ext} $libname.a' 10993 dynamic_linker='OS/2 ld.exe' 10994 shlibpath_var=LIBPATH 10995 ;; 10996 10997osf3* | osf4* | osf5*) 10998 version_type=osf 10999 need_lib_prefix=no 11000 need_version=no 11001 soname_spec='${libname}${release}${shared_ext}$major' 11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11003 shlibpath_var=LD_LIBRARY_PATH 11004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11005 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11006 ;; 11007 11008rdos*) 11009 dynamic_linker=no 11010 ;; 11011 11012solaris*) 11013 version_type=linux # correct to gnu/linux during the next big refactor 11014 need_lib_prefix=no 11015 need_version=no 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11017 soname_spec='${libname}${release}${shared_ext}$major' 11018 shlibpath_var=LD_LIBRARY_PATH 11019 shlibpath_overrides_runpath=yes 11020 hardcode_into_libs=yes 11021 # ldd complains unless libraries are executable 11022 postinstall_cmds='chmod +x $lib' 11023 ;; 11024 11025sunos4*) 11026 version_type=sunos 11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11029 shlibpath_var=LD_LIBRARY_PATH 11030 shlibpath_overrides_runpath=yes 11031 if test "$with_gnu_ld" = yes; then 11032 need_lib_prefix=no 11033 fi 11034 need_version=yes 11035 ;; 11036 11037sysv4 | sysv4.3*) 11038 version_type=linux # correct to gnu/linux during the next big refactor 11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11040 soname_spec='${libname}${release}${shared_ext}$major' 11041 shlibpath_var=LD_LIBRARY_PATH 11042 case $host_vendor in 11043 sni) 11044 shlibpath_overrides_runpath=no 11045 need_lib_prefix=no 11046 runpath_var=LD_RUN_PATH 11047 ;; 11048 siemens) 11049 need_lib_prefix=no 11050 ;; 11051 motorola) 11052 need_lib_prefix=no 11053 need_version=no 11054 shlibpath_overrides_runpath=no 11055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11056 ;; 11057 esac 11058 ;; 11059 11060sysv4*MP*) 11061 if test -d /usr/nec ;then 11062 version_type=linux # correct to gnu/linux during the next big refactor 11063 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11064 soname_spec='$libname${shared_ext}.$major' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 fi 11067 ;; 11068 11069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11070 version_type=freebsd-elf 11071 need_lib_prefix=no 11072 need_version=no 11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11074 soname_spec='${libname}${release}${shared_ext}$major' 11075 shlibpath_var=LD_LIBRARY_PATH 11076 shlibpath_overrides_runpath=yes 11077 hardcode_into_libs=yes 11078 if test "$with_gnu_ld" = yes; then 11079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11080 else 11081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11082 case $host_os in 11083 sco3.2v5*) 11084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11085 ;; 11086 esac 11087 fi 11088 sys_lib_dlsearch_path_spec='/usr/lib' 11089 ;; 11090 11091tpf*) 11092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11093 version_type=linux # correct to gnu/linux during the next big refactor 11094 need_lib_prefix=no 11095 need_version=no 11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11097 shlibpath_var=LD_LIBRARY_PATH 11098 shlibpath_overrides_runpath=no 11099 hardcode_into_libs=yes 11100 ;; 11101 11102uts4*) 11103 version_type=linux # correct to gnu/linux during the next big refactor 11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11105 soname_spec='${libname}${release}${shared_ext}$major' 11106 shlibpath_var=LD_LIBRARY_PATH 11107 ;; 11108 11109*) 11110 dynamic_linker=no 11111 ;; 11112esac 11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11114$as_echo "$dynamic_linker" >&6; } 11115test "$dynamic_linker" = no && can_build_shared=no 11116 11117variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11118if test "$GCC" = yes; then 11119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11120fi 11121 11122if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11123 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11124fi 11125if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11126 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11127fi 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11221$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11222hardcode_action= 11223if test -n "$hardcode_libdir_flag_spec" || 11224 test -n "$runpath_var" || 11225 test "X$hardcode_automatic" = "Xyes" ; then 11226 11227 # We can hardcode non-existent directories. 11228 if test "$hardcode_direct" != no && 11229 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11230 # have to relink, otherwise we might link with an installed library 11231 # when we should be linking with a yet-to-be-installed one 11232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11233 test "$hardcode_minus_L" != no; then 11234 # Linking always hardcodes the temporary library directory. 11235 hardcode_action=relink 11236 else 11237 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11238 hardcode_action=immediate 11239 fi 11240else 11241 # We cannot hardcode anything, or else we can only hardcode existing 11242 # directories. 11243 hardcode_action=unsupported 11244fi 11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11246$as_echo "$hardcode_action" >&6; } 11247 11248if test "$hardcode_action" = relink || 11249 test "$inherit_rpath" = yes; then 11250 # Fast installation is not supported 11251 enable_fast_install=no 11252elif test "$shlibpath_overrides_runpath" = yes || 11253 test "$enable_shared" = no; then 11254 # Fast installation is not necessary 11255 enable_fast_install=needless 11256fi 11257 11258 11259 11260 11261 11262 11263 if test "x$enable_dlopen" != xyes; then 11264 enable_dlopen=unknown 11265 enable_dlopen_self=unknown 11266 enable_dlopen_self_static=unknown 11267else 11268 lt_cv_dlopen=no 11269 lt_cv_dlopen_libs= 11270 11271 case $host_os in 11272 beos*) 11273 lt_cv_dlopen="load_add_on" 11274 lt_cv_dlopen_libs= 11275 lt_cv_dlopen_self=yes 11276 ;; 11277 11278 mingw* | pw32* | cegcc*) 11279 lt_cv_dlopen="LoadLibrary" 11280 lt_cv_dlopen_libs= 11281 ;; 11282 11283 cygwin*) 11284 lt_cv_dlopen="dlopen" 11285 lt_cv_dlopen_libs= 11286 ;; 11287 11288 darwin*) 11289 # if libdl is installed we need to link against it 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11291$as_echo_n "checking for dlopen in -ldl... " >&6; } 11292if ${ac_cv_lib_dl_dlopen+:} false; then : 11293 $as_echo_n "(cached) " >&6 11294else 11295 ac_check_lib_save_LIBS=$LIBS 11296LIBS="-ldl $LIBS" 11297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11298/* end confdefs.h. */ 11299 11300/* Override any GCC internal prototype to avoid an error. 11301 Use char because int might match the return type of a GCC 11302 builtin and then its argument prototype would still apply. */ 11303#ifdef __cplusplus 11304extern "C" 11305#endif 11306char dlopen (); 11307int 11308main () 11309{ 11310return dlopen (); 11311 ; 11312 return 0; 11313} 11314_ACEOF 11315if ac_fn_c_try_link "$LINENO"; then : 11316 ac_cv_lib_dl_dlopen=yes 11317else 11318 ac_cv_lib_dl_dlopen=no 11319fi 11320rm -f core conftest.err conftest.$ac_objext \ 11321 conftest$ac_exeext conftest.$ac_ext 11322LIBS=$ac_check_lib_save_LIBS 11323fi 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11325$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11326if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11328else 11329 11330 lt_cv_dlopen="dyld" 11331 lt_cv_dlopen_libs= 11332 lt_cv_dlopen_self=yes 11333 11334fi 11335 11336 ;; 11337 11338 *) 11339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11340if test "x$ac_cv_func_shl_load" = xyes; then : 11341 lt_cv_dlopen="shl_load" 11342else 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11344$as_echo_n "checking for shl_load in -ldld... " >&6; } 11345if ${ac_cv_lib_dld_shl_load+:} false; then : 11346 $as_echo_n "(cached) " >&6 11347else 11348 ac_check_lib_save_LIBS=$LIBS 11349LIBS="-ldld $LIBS" 11350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11351/* end confdefs.h. */ 11352 11353/* Override any GCC internal prototype to avoid an error. 11354 Use char because int might match the return type of a GCC 11355 builtin and then its argument prototype would still apply. */ 11356#ifdef __cplusplus 11357extern "C" 11358#endif 11359char shl_load (); 11360int 11361main () 11362{ 11363return shl_load (); 11364 ; 11365 return 0; 11366} 11367_ACEOF 11368if ac_fn_c_try_link "$LINENO"; then : 11369 ac_cv_lib_dld_shl_load=yes 11370else 11371 ac_cv_lib_dld_shl_load=no 11372fi 11373rm -f core conftest.err conftest.$ac_objext \ 11374 conftest$ac_exeext conftest.$ac_ext 11375LIBS=$ac_check_lib_save_LIBS 11376fi 11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11378$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11379if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11381else 11382 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11383if test "x$ac_cv_func_dlopen" = xyes; then : 11384 lt_cv_dlopen="dlopen" 11385else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11387$as_echo_n "checking for dlopen in -ldl... " >&6; } 11388if ${ac_cv_lib_dl_dlopen+:} false; then : 11389 $as_echo_n "(cached) " >&6 11390else 11391 ac_check_lib_save_LIBS=$LIBS 11392LIBS="-ldl $LIBS" 11393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11394/* end confdefs.h. */ 11395 11396/* Override any GCC internal prototype to avoid an error. 11397 Use char because int might match the return type of a GCC 11398 builtin and then its argument prototype would still apply. */ 11399#ifdef __cplusplus 11400extern "C" 11401#endif 11402char dlopen (); 11403int 11404main () 11405{ 11406return dlopen (); 11407 ; 11408 return 0; 11409} 11410_ACEOF 11411if ac_fn_c_try_link "$LINENO"; then : 11412 ac_cv_lib_dl_dlopen=yes 11413else 11414 ac_cv_lib_dl_dlopen=no 11415fi 11416rm -f core conftest.err conftest.$ac_objext \ 11417 conftest$ac_exeext conftest.$ac_ext 11418LIBS=$ac_check_lib_save_LIBS 11419fi 11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11421$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11422if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11424else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11426$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11427if ${ac_cv_lib_svld_dlopen+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429else 11430 ac_check_lib_save_LIBS=$LIBS 11431LIBS="-lsvld $LIBS" 11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11433/* end confdefs.h. */ 11434 11435/* Override any GCC internal prototype to avoid an error. 11436 Use char because int might match the return type of a GCC 11437 builtin and then its argument prototype would still apply. */ 11438#ifdef __cplusplus 11439extern "C" 11440#endif 11441char dlopen (); 11442int 11443main () 11444{ 11445return dlopen (); 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450if ac_fn_c_try_link "$LINENO"; then : 11451 ac_cv_lib_svld_dlopen=yes 11452else 11453 ac_cv_lib_svld_dlopen=no 11454fi 11455rm -f core conftest.err conftest.$ac_objext \ 11456 conftest$ac_exeext conftest.$ac_ext 11457LIBS=$ac_check_lib_save_LIBS 11458fi 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11460$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11461if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11463else 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11465$as_echo_n "checking for dld_link in -ldld... " >&6; } 11466if ${ac_cv_lib_dld_dld_link+:} false; then : 11467 $as_echo_n "(cached) " >&6 11468else 11469 ac_check_lib_save_LIBS=$LIBS 11470LIBS="-ldld $LIBS" 11471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11472/* end confdefs.h. */ 11473 11474/* Override any GCC internal prototype to avoid an error. 11475 Use char because int might match the return type of a GCC 11476 builtin and then its argument prototype would still apply. */ 11477#ifdef __cplusplus 11478extern "C" 11479#endif 11480char dld_link (); 11481int 11482main () 11483{ 11484return dld_link (); 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489if ac_fn_c_try_link "$LINENO"; then : 11490 ac_cv_lib_dld_dld_link=yes 11491else 11492 ac_cv_lib_dld_dld_link=no 11493fi 11494rm -f core conftest.err conftest.$ac_objext \ 11495 conftest$ac_exeext conftest.$ac_ext 11496LIBS=$ac_check_lib_save_LIBS 11497fi 11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11499$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11500if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11502fi 11503 11504 11505fi 11506 11507 11508fi 11509 11510 11511fi 11512 11513 11514fi 11515 11516 11517fi 11518 11519 ;; 11520 esac 11521 11522 if test "x$lt_cv_dlopen" != xno; then 11523 enable_dlopen=yes 11524 else 11525 enable_dlopen=no 11526 fi 11527 11528 case $lt_cv_dlopen in 11529 dlopen) 11530 save_CPPFLAGS="$CPPFLAGS" 11531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11532 11533 save_LDFLAGS="$LDFLAGS" 11534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11535 11536 save_LIBS="$LIBS" 11537 LIBS="$lt_cv_dlopen_libs $LIBS" 11538 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11540$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11541if ${lt_cv_dlopen_self+:} false; then : 11542 $as_echo_n "(cached) " >&6 11543else 11544 if test "$cross_compiling" = yes; then : 11545 lt_cv_dlopen_self=cross 11546else 11547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11548 lt_status=$lt_dlunknown 11549 cat > conftest.$ac_ext <<_LT_EOF 11550#line $LINENO "configure" 11551#include "confdefs.h" 11552 11553#if HAVE_DLFCN_H 11554#include <dlfcn.h> 11555#endif 11556 11557#include <stdio.h> 11558 11559#ifdef RTLD_GLOBAL 11560# define LT_DLGLOBAL RTLD_GLOBAL 11561#else 11562# ifdef DL_GLOBAL 11563# define LT_DLGLOBAL DL_GLOBAL 11564# else 11565# define LT_DLGLOBAL 0 11566# endif 11567#endif 11568 11569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11570 find out it does not work in some platform. */ 11571#ifndef LT_DLLAZY_OR_NOW 11572# ifdef RTLD_LAZY 11573# define LT_DLLAZY_OR_NOW RTLD_LAZY 11574# else 11575# ifdef DL_LAZY 11576# define LT_DLLAZY_OR_NOW DL_LAZY 11577# else 11578# ifdef RTLD_NOW 11579# define LT_DLLAZY_OR_NOW RTLD_NOW 11580# else 11581# ifdef DL_NOW 11582# define LT_DLLAZY_OR_NOW DL_NOW 11583# else 11584# define LT_DLLAZY_OR_NOW 0 11585# endif 11586# endif 11587# endif 11588# endif 11589#endif 11590 11591/* When -fvisbility=hidden is used, assume the code has been annotated 11592 correspondingly for the symbols needed. */ 11593#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11594int fnord () __attribute__((visibility("default"))); 11595#endif 11596 11597int fnord () { return 42; } 11598int main () 11599{ 11600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11601 int status = $lt_dlunknown; 11602 11603 if (self) 11604 { 11605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11606 else 11607 { 11608 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11609 else puts (dlerror ()); 11610 } 11611 /* dlclose (self); */ 11612 } 11613 else 11614 puts (dlerror ()); 11615 11616 return status; 11617} 11618_LT_EOF 11619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11620 (eval $ac_link) 2>&5 11621 ac_status=$? 11622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11623 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11624 (./conftest; exit; ) >&5 2>/dev/null 11625 lt_status=$? 11626 case x$lt_status in 11627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11630 esac 11631 else : 11632 # compilation failed 11633 lt_cv_dlopen_self=no 11634 fi 11635fi 11636rm -fr conftest* 11637 11638 11639fi 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11641$as_echo "$lt_cv_dlopen_self" >&6; } 11642 11643 if test "x$lt_cv_dlopen_self" = xyes; then 11644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11646$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11647if ${lt_cv_dlopen_self_static+:} false; then : 11648 $as_echo_n "(cached) " >&6 11649else 11650 if test "$cross_compiling" = yes; then : 11651 lt_cv_dlopen_self_static=cross 11652else 11653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11654 lt_status=$lt_dlunknown 11655 cat > conftest.$ac_ext <<_LT_EOF 11656#line $LINENO "configure" 11657#include "confdefs.h" 11658 11659#if HAVE_DLFCN_H 11660#include <dlfcn.h> 11661#endif 11662 11663#include <stdio.h> 11664 11665#ifdef RTLD_GLOBAL 11666# define LT_DLGLOBAL RTLD_GLOBAL 11667#else 11668# ifdef DL_GLOBAL 11669# define LT_DLGLOBAL DL_GLOBAL 11670# else 11671# define LT_DLGLOBAL 0 11672# endif 11673#endif 11674 11675/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11676 find out it does not work in some platform. */ 11677#ifndef LT_DLLAZY_OR_NOW 11678# ifdef RTLD_LAZY 11679# define LT_DLLAZY_OR_NOW RTLD_LAZY 11680# else 11681# ifdef DL_LAZY 11682# define LT_DLLAZY_OR_NOW DL_LAZY 11683# else 11684# ifdef RTLD_NOW 11685# define LT_DLLAZY_OR_NOW RTLD_NOW 11686# else 11687# ifdef DL_NOW 11688# define LT_DLLAZY_OR_NOW DL_NOW 11689# else 11690# define LT_DLLAZY_OR_NOW 0 11691# endif 11692# endif 11693# endif 11694# endif 11695#endif 11696 11697/* When -fvisbility=hidden is used, assume the code has been annotated 11698 correspondingly for the symbols needed. */ 11699#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11700int fnord () __attribute__((visibility("default"))); 11701#endif 11702 11703int fnord () { return 42; } 11704int main () 11705{ 11706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11707 int status = $lt_dlunknown; 11708 11709 if (self) 11710 { 11711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11712 else 11713 { 11714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11715 else puts (dlerror ()); 11716 } 11717 /* dlclose (self); */ 11718 } 11719 else 11720 puts (dlerror ()); 11721 11722 return status; 11723} 11724_LT_EOF 11725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11726 (eval $ac_link) 2>&5 11727 ac_status=$? 11728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11730 (./conftest; exit; ) >&5 2>/dev/null 11731 lt_status=$? 11732 case x$lt_status in 11733 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11734 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11735 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11736 esac 11737 else : 11738 # compilation failed 11739 lt_cv_dlopen_self_static=no 11740 fi 11741fi 11742rm -fr conftest* 11743 11744 11745fi 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11747$as_echo "$lt_cv_dlopen_self_static" >&6; } 11748 fi 11749 11750 CPPFLAGS="$save_CPPFLAGS" 11751 LDFLAGS="$save_LDFLAGS" 11752 LIBS="$save_LIBS" 11753 ;; 11754 esac 11755 11756 case $lt_cv_dlopen_self in 11757 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11758 *) enable_dlopen_self=unknown ;; 11759 esac 11760 11761 case $lt_cv_dlopen_self_static in 11762 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11763 *) enable_dlopen_self_static=unknown ;; 11764 esac 11765fi 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783striplib= 11784old_striplib= 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11786$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11787if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11789 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11791$as_echo "yes" >&6; } 11792else 11793# FIXME - insert some real tests, host_os isn't really good enough 11794 case $host_os in 11795 darwin*) 11796 if test -n "$STRIP" ; then 11797 striplib="$STRIP -x" 11798 old_striplib="$STRIP -S" 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11800$as_echo "yes" >&6; } 11801 else 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11803$as_echo "no" >&6; } 11804 fi 11805 ;; 11806 *) 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11808$as_echo "no" >&6; } 11809 ;; 11810 esac 11811fi 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 # Report which library types will actually be built 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11826$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11828$as_echo "$can_build_shared" >&6; } 11829 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11831$as_echo_n "checking whether to build shared libraries... " >&6; } 11832 test "$can_build_shared" = "no" && enable_shared=no 11833 11834 # On AIX, shared libraries and static libraries use the same namespace, and 11835 # are all built from PIC. 11836 case $host_os in 11837 aix3*) 11838 test "$enable_shared" = yes && enable_static=no 11839 if test -n "$RANLIB"; then 11840 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11841 postinstall_cmds='$RANLIB $lib' 11842 fi 11843 ;; 11844 11845 aix[4-9]*) 11846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11847 test "$enable_shared" = yes && enable_static=no 11848 fi 11849 ;; 11850 esac 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11852$as_echo "$enable_shared" >&6; } 11853 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11855$as_echo_n "checking whether to build static libraries... " >&6; } 11856 # Make sure either enable_shared or enable_static is yes. 11857 test "$enable_shared" = yes || enable_static=yes 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11859$as_echo "$enable_static" >&6; } 11860 11861 11862 11863 11864fi 11865ac_ext=c 11866ac_cpp='$CPP $CPPFLAGS' 11867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11869ac_compiler_gnu=$ac_cv_c_compiler_gnu 11870 11871CC="$lt_save_CC" 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 ac_config_commands="$ac_config_commands libtool" 11888 11889 11890 11891 11892# Only expand once: 11893 11894 11895 11896# Require xorg-macros minimum of 1.15 for fop minimum version 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11909$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11910if ${ac_cv_prog_cc_c99+:} false; then : 11911 $as_echo_n "(cached) " >&6 11912else 11913 ac_cv_prog_cc_c99=no 11914ac_save_CC=$CC 11915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11916/* end confdefs.h. */ 11917#include <stdarg.h> 11918#include <stdbool.h> 11919#include <stdlib.h> 11920#include <wchar.h> 11921#include <stdio.h> 11922 11923// Check varargs macros. These examples are taken from C99 6.10.3.5. 11924#define debug(...) fprintf (stderr, __VA_ARGS__) 11925#define showlist(...) puts (#__VA_ARGS__) 11926#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11927static void 11928test_varargs_macros (void) 11929{ 11930 int x = 1234; 11931 int y = 5678; 11932 debug ("Flag"); 11933 debug ("X = %d\n", x); 11934 showlist (The first, second, and third items.); 11935 report (x>y, "x is %d but y is %d", x, y); 11936} 11937 11938// Check long long types. 11939#define BIG64 18446744073709551615ull 11940#define BIG32 4294967295ul 11941#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11942#if !BIG_OK 11943 your preprocessor is broken; 11944#endif 11945#if BIG_OK 11946#else 11947 your preprocessor is broken; 11948#endif 11949static long long int bignum = -9223372036854775807LL; 11950static unsigned long long int ubignum = BIG64; 11951 11952struct incomplete_array 11953{ 11954 int datasize; 11955 double data[]; 11956}; 11957 11958struct named_init { 11959 int number; 11960 const wchar_t *name; 11961 double average; 11962}; 11963 11964typedef const char *ccp; 11965 11966static inline int 11967test_restrict (ccp restrict text) 11968{ 11969 // See if C++-style comments work. 11970 // Iterate through items via the restricted pointer. 11971 // Also check for declarations in for loops. 11972 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11973 continue; 11974 return 0; 11975} 11976 11977// Check varargs and va_copy. 11978static void 11979test_varargs (const char *format, ...) 11980{ 11981 va_list args; 11982 va_start (args, format); 11983 va_list args_copy; 11984 va_copy (args_copy, args); 11985 11986 const char *str; 11987 int number; 11988 float fnumber; 11989 11990 while (*format) 11991 { 11992 switch (*format++) 11993 { 11994 case 's': // string 11995 str = va_arg (args_copy, const char *); 11996 break; 11997 case 'd': // int 11998 number = va_arg (args_copy, int); 11999 break; 12000 case 'f': // float 12001 fnumber = va_arg (args_copy, double); 12002 break; 12003 default: 12004 break; 12005 } 12006 } 12007 va_end (args_copy); 12008 va_end (args); 12009} 12010 12011int 12012main () 12013{ 12014 12015 // Check bool. 12016 _Bool success = false; 12017 12018 // Check restrict. 12019 if (test_restrict ("String literal") == 0) 12020 success = true; 12021 char *restrict newvar = "Another string"; 12022 12023 // Check varargs. 12024 test_varargs ("s, d' f .", "string", 65, 34.234); 12025 test_varargs_macros (); 12026 12027 // Check flexible array members. 12028 struct incomplete_array *ia = 12029 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12030 ia->datasize = 10; 12031 for (int i = 0; i < ia->datasize; ++i) 12032 ia->data[i] = i * 1.234; 12033 12034 // Check named initializers. 12035 struct named_init ni = { 12036 .number = 34, 12037 .name = L"Test wide string", 12038 .average = 543.34343, 12039 }; 12040 12041 ni.number = 58; 12042 12043 int dynamic_array[ni.number]; 12044 dynamic_array[ni.number - 1] = 543; 12045 12046 // work around unused variable warnings 12047 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12048 || dynamic_array[ni.number - 1] != 543); 12049 12050 ; 12051 return 0; 12052} 12053_ACEOF 12054for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 12055do 12056 CC="$ac_save_CC $ac_arg" 12057 if ac_fn_c_try_compile "$LINENO"; then : 12058 ac_cv_prog_cc_c99=$ac_arg 12059fi 12060rm -f core conftest.err conftest.$ac_objext 12061 test "x$ac_cv_prog_cc_c99" != "xno" && break 12062done 12063rm -f conftest.$ac_ext 12064CC=$ac_save_CC 12065 12066fi 12067# AC_CACHE_VAL 12068case "x$ac_cv_prog_cc_c99" in 12069 x) 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12071$as_echo "none needed" >&6; } ;; 12072 xno) 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12074$as_echo "unsupported" >&6; } ;; 12075 *) 12076 CC="$CC $ac_cv_prog_cc_c99" 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12078$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12079esac 12080if test "x$ac_cv_prog_cc_c99" != xno; then : 12081 12082fi 12083 12084 12085 12086 12087 12088 12089ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12090if test "x$ac_cv_have_decl___clang__" = xyes; then : 12091 CLANGCC="yes" 12092else 12093 CLANGCC="no" 12094fi 12095 12096ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12097if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12098 INTELCC="yes" 12099else 12100 INTELCC="no" 12101fi 12102 12103ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12104if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12105 SUNCC="yes" 12106else 12107 SUNCC="no" 12108fi 12109 12110 12111 12112 12113if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12114 if test -n "$ac_tool_prefix"; then 12115 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12116set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12118$as_echo_n "checking for $ac_word... " >&6; } 12119if ${ac_cv_path_PKG_CONFIG+:} false; then : 12120 $as_echo_n "(cached) " >&6 12121else 12122 case $PKG_CONFIG in 12123 [\\/]* | ?:[\\/]*) 12124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12125 ;; 12126 *) 12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12128for as_dir in $PATH 12129do 12130 IFS=$as_save_IFS 12131 test -z "$as_dir" && as_dir=. 12132 for ac_exec_ext in '' $ac_executable_extensions; do 12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12134 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12136 break 2 12137 fi 12138done 12139 done 12140IFS=$as_save_IFS 12141 12142 ;; 12143esac 12144fi 12145PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12146if test -n "$PKG_CONFIG"; then 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12148$as_echo "$PKG_CONFIG" >&6; } 12149else 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12151$as_echo "no" >&6; } 12152fi 12153 12154 12155fi 12156if test -z "$ac_cv_path_PKG_CONFIG"; then 12157 ac_pt_PKG_CONFIG=$PKG_CONFIG 12158 # Extract the first word of "pkg-config", so it can be a program name with args. 12159set dummy pkg-config; ac_word=$2 12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12161$as_echo_n "checking for $ac_word... " >&6; } 12162if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 case $ac_pt_PKG_CONFIG in 12166 [\\/]* | ?:[\\/]*) 12167 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12168 ;; 12169 *) 12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12171for as_dir in $PATH 12172do 12173 IFS=$as_save_IFS 12174 test -z "$as_dir" && as_dir=. 12175 for ac_exec_ext in '' $ac_executable_extensions; do 12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12177 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12179 break 2 12180 fi 12181done 12182 done 12183IFS=$as_save_IFS 12184 12185 ;; 12186esac 12187fi 12188ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12189if test -n "$ac_pt_PKG_CONFIG"; then 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12191$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12192else 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12194$as_echo "no" >&6; } 12195fi 12196 12197 if test "x$ac_pt_PKG_CONFIG" = x; then 12198 PKG_CONFIG="" 12199 else 12200 case $cross_compiling:$ac_tool_warned in 12201yes:) 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12204ac_tool_warned=yes ;; 12205esac 12206 PKG_CONFIG=$ac_pt_PKG_CONFIG 12207 fi 12208else 12209 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12210fi 12211 12212fi 12213if test -n "$PKG_CONFIG"; then 12214 _pkg_min_version=0.9.0 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12216$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12217 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12219$as_echo "yes" >&6; } 12220 else 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12222$as_echo "no" >&6; } 12223 PKG_CONFIG="" 12224 fi 12225 12226fi 12227 12228 12229 12230 12231 12232# Check whether --enable-selective-werror was given. 12233if test "${enable_selective_werror+set}" = set; then : 12234 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12235else 12236 SELECTIVE_WERROR=yes 12237fi 12238 12239 12240 12241 12242 12243# -v is too short to test reliably with XORG_TESTSET_CFLAG 12244if test "x$SUNCC" = "xyes"; then 12245 BASE_CFLAGS="-v" 12246else 12247 BASE_CFLAGS="" 12248fi 12249 12250# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264xorg_testset_save_CFLAGS="$CFLAGS" 12265 12266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12271 $as_echo_n "(cached) " >&6 12272else 12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274/* end confdefs.h. */ 12275int i; 12276_ACEOF 12277if ac_fn_c_try_compile "$LINENO"; then : 12278 xorg_cv_cc_flag_unknown_warning_option=yes 12279else 12280 xorg_cv_cc_flag_unknown_warning_option=no 12281fi 12282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12283fi 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12287 CFLAGS="$xorg_testset_save_CFLAGS" 12288fi 12289 12290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12293 fi 12294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12298 $as_echo_n "(cached) " >&6 12299else 12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302int i; 12303_ACEOF 12304if ac_fn_c_try_compile "$LINENO"; then : 12305 xorg_cv_cc_flag_unused_command_line_argument=yes 12306else 12307 xorg_cv_cc_flag_unused_command_line_argument=no 12308fi 12309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12310fi 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12314 CFLAGS="$xorg_testset_save_CFLAGS" 12315fi 12316 12317found="no" 12318 12319 if test $found = "no" ; then 12320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12322 fi 12323 12324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12326 fi 12327 12328 CFLAGS="$CFLAGS -Wall" 12329 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12331$as_echo_n "checking if $CC supports -Wall... " >&6; } 12332 cacheid=xorg_cv_cc_flag__Wall 12333 if eval \${$cacheid+:} false; then : 12334 $as_echo_n "(cached) " >&6 12335else 12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12337/* end confdefs.h. */ 12338int i; 12339int 12340main () 12341{ 12342 12343 ; 12344 return 0; 12345} 12346_ACEOF 12347if ac_fn_c_try_link "$LINENO"; then : 12348 eval $cacheid=yes 12349else 12350 eval $cacheid=no 12351fi 12352rm -f core conftest.err conftest.$ac_objext \ 12353 conftest$ac_exeext conftest.$ac_ext 12354fi 12355 12356 12357 CFLAGS="$xorg_testset_save_CFLAGS" 12358 12359 eval supported=\$$cacheid 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12361$as_echo "$supported" >&6; } 12362 if test "$supported" = "yes" ; then 12363 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12364 found="yes" 12365 fi 12366 fi 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382xorg_testset_save_CFLAGS="$CFLAGS" 12383 12384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12392/* end confdefs.h. */ 12393int i; 12394_ACEOF 12395if ac_fn_c_try_compile "$LINENO"; then : 12396 xorg_cv_cc_flag_unknown_warning_option=yes 12397else 12398 xorg_cv_cc_flag_unknown_warning_option=no 12399fi 12400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12401fi 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12405 CFLAGS="$xorg_testset_save_CFLAGS" 12406fi 12407 12408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12411 fi 12412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12416 $as_echo_n "(cached) " >&6 12417else 12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12419/* end confdefs.h. */ 12420int i; 12421_ACEOF 12422if ac_fn_c_try_compile "$LINENO"; then : 12423 xorg_cv_cc_flag_unused_command_line_argument=yes 12424else 12425 xorg_cv_cc_flag_unused_command_line_argument=no 12426fi 12427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12428fi 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12432 CFLAGS="$xorg_testset_save_CFLAGS" 12433fi 12434 12435found="no" 12436 12437 if test $found = "no" ; then 12438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12440 fi 12441 12442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12444 fi 12445 12446 CFLAGS="$CFLAGS -Wpointer-arith" 12447 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12449$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12450 cacheid=xorg_cv_cc_flag__Wpointer_arith 12451 if eval \${$cacheid+:} false; then : 12452 $as_echo_n "(cached) " >&6 12453else 12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12455/* end confdefs.h. */ 12456int i; 12457int 12458main () 12459{ 12460 12461 ; 12462 return 0; 12463} 12464_ACEOF 12465if ac_fn_c_try_link "$LINENO"; then : 12466 eval $cacheid=yes 12467else 12468 eval $cacheid=no 12469fi 12470rm -f core conftest.err conftest.$ac_objext \ 12471 conftest$ac_exeext conftest.$ac_ext 12472fi 12473 12474 12475 CFLAGS="$xorg_testset_save_CFLAGS" 12476 12477 eval supported=\$$cacheid 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12479$as_echo "$supported" >&6; } 12480 if test "$supported" = "yes" ; then 12481 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12482 found="yes" 12483 fi 12484 fi 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500xorg_testset_save_CFLAGS="$CFLAGS" 12501 12502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12507 $as_echo_n "(cached) " >&6 12508else 12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12510/* end confdefs.h. */ 12511int i; 12512_ACEOF 12513if ac_fn_c_try_compile "$LINENO"; then : 12514 xorg_cv_cc_flag_unknown_warning_option=yes 12515else 12516 xorg_cv_cc_flag_unknown_warning_option=no 12517fi 12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12519fi 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12523 CFLAGS="$xorg_testset_save_CFLAGS" 12524fi 12525 12526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12529 fi 12530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12537/* end confdefs.h. */ 12538int i; 12539_ACEOF 12540if ac_fn_c_try_compile "$LINENO"; then : 12541 xorg_cv_cc_flag_unused_command_line_argument=yes 12542else 12543 xorg_cv_cc_flag_unused_command_line_argument=no 12544fi 12545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12546fi 12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12550 CFLAGS="$xorg_testset_save_CFLAGS" 12551fi 12552 12553found="no" 12554 12555 if test $found = "no" ; then 12556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12558 fi 12559 12560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12562 fi 12563 12564 CFLAGS="$CFLAGS -Wmissing-declarations" 12565 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12567$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12568 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12569 if eval \${$cacheid+:} false; then : 12570 $as_echo_n "(cached) " >&6 12571else 12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12573/* end confdefs.h. */ 12574int i; 12575int 12576main () 12577{ 12578 12579 ; 12580 return 0; 12581} 12582_ACEOF 12583if ac_fn_c_try_link "$LINENO"; then : 12584 eval $cacheid=yes 12585else 12586 eval $cacheid=no 12587fi 12588rm -f core conftest.err conftest.$ac_objext \ 12589 conftest$ac_exeext conftest.$ac_ext 12590fi 12591 12592 12593 CFLAGS="$xorg_testset_save_CFLAGS" 12594 12595 eval supported=\$$cacheid 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12597$as_echo "$supported" >&6; } 12598 if test "$supported" = "yes" ; then 12599 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12600 found="yes" 12601 fi 12602 fi 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618xorg_testset_save_CFLAGS="$CFLAGS" 12619 12620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12625 $as_echo_n "(cached) " >&6 12626else 12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12628/* end confdefs.h. */ 12629int i; 12630_ACEOF 12631if ac_fn_c_try_compile "$LINENO"; then : 12632 xorg_cv_cc_flag_unknown_warning_option=yes 12633else 12634 xorg_cv_cc_flag_unknown_warning_option=no 12635fi 12636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12637fi 12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12641 CFLAGS="$xorg_testset_save_CFLAGS" 12642fi 12643 12644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12647 fi 12648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12652 $as_echo_n "(cached) " >&6 12653else 12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12655/* end confdefs.h. */ 12656int i; 12657_ACEOF 12658if ac_fn_c_try_compile "$LINENO"; then : 12659 xorg_cv_cc_flag_unused_command_line_argument=yes 12660else 12661 xorg_cv_cc_flag_unused_command_line_argument=no 12662fi 12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12664fi 12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12668 CFLAGS="$xorg_testset_save_CFLAGS" 12669fi 12670 12671found="no" 12672 12673 if test $found = "no" ; then 12674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12676 fi 12677 12678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12680 fi 12681 12682 CFLAGS="$CFLAGS -Wformat=2" 12683 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12685$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12686 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12687 if eval \${$cacheid+:} false; then : 12688 $as_echo_n "(cached) " >&6 12689else 12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12691/* end confdefs.h. */ 12692int i; 12693int 12694main () 12695{ 12696 12697 ; 12698 return 0; 12699} 12700_ACEOF 12701if ac_fn_c_try_link "$LINENO"; then : 12702 eval $cacheid=yes 12703else 12704 eval $cacheid=no 12705fi 12706rm -f core conftest.err conftest.$ac_objext \ 12707 conftest$ac_exeext conftest.$ac_ext 12708fi 12709 12710 12711 CFLAGS="$xorg_testset_save_CFLAGS" 12712 12713 eval supported=\$$cacheid 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12715$as_echo "$supported" >&6; } 12716 if test "$supported" = "yes" ; then 12717 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12718 found="yes" 12719 fi 12720 fi 12721 12722 if test $found = "no" ; then 12723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12725 fi 12726 12727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12729 fi 12730 12731 CFLAGS="$CFLAGS -Wformat" 12732 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12734$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12735 cacheid=xorg_cv_cc_flag__Wformat 12736 if eval \${$cacheid+:} false; then : 12737 $as_echo_n "(cached) " >&6 12738else 12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12740/* end confdefs.h. */ 12741int i; 12742int 12743main () 12744{ 12745 12746 ; 12747 return 0; 12748} 12749_ACEOF 12750if ac_fn_c_try_link "$LINENO"; then : 12751 eval $cacheid=yes 12752else 12753 eval $cacheid=no 12754fi 12755rm -f core conftest.err conftest.$ac_objext \ 12756 conftest$ac_exeext conftest.$ac_ext 12757fi 12758 12759 12760 CFLAGS="$xorg_testset_save_CFLAGS" 12761 12762 eval supported=\$$cacheid 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12764$as_echo "$supported" >&6; } 12765 if test "$supported" = "yes" ; then 12766 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12767 found="yes" 12768 fi 12769 fi 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787xorg_testset_save_CFLAGS="$CFLAGS" 12788 12789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12794 $as_echo_n "(cached) " >&6 12795else 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798int i; 12799_ACEOF 12800if ac_fn_c_try_compile "$LINENO"; then : 12801 xorg_cv_cc_flag_unknown_warning_option=yes 12802else 12803 xorg_cv_cc_flag_unknown_warning_option=no 12804fi 12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12806fi 12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12810 CFLAGS="$xorg_testset_save_CFLAGS" 12811fi 12812 12813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12816 fi 12817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12824/* end confdefs.h. */ 12825int i; 12826_ACEOF 12827if ac_fn_c_try_compile "$LINENO"; then : 12828 xorg_cv_cc_flag_unused_command_line_argument=yes 12829else 12830 xorg_cv_cc_flag_unused_command_line_argument=no 12831fi 12832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12833fi 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12837 CFLAGS="$xorg_testset_save_CFLAGS" 12838fi 12839 12840found="no" 12841 12842 if test $found = "no" ; then 12843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12845 fi 12846 12847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12849 fi 12850 12851 CFLAGS="$CFLAGS -Wstrict-prototypes" 12852 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12854$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12855 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12856 if eval \${$cacheid+:} false; then : 12857 $as_echo_n "(cached) " >&6 12858else 12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12860/* end confdefs.h. */ 12861int i; 12862int 12863main () 12864{ 12865 12866 ; 12867 return 0; 12868} 12869_ACEOF 12870if ac_fn_c_try_link "$LINENO"; then : 12871 eval $cacheid=yes 12872else 12873 eval $cacheid=no 12874fi 12875rm -f core conftest.err conftest.$ac_objext \ 12876 conftest$ac_exeext conftest.$ac_ext 12877fi 12878 12879 12880 CFLAGS="$xorg_testset_save_CFLAGS" 12881 12882 eval supported=\$$cacheid 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12884$as_echo "$supported" >&6; } 12885 if test "$supported" = "yes" ; then 12886 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12887 found="yes" 12888 fi 12889 fi 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905xorg_testset_save_CFLAGS="$CFLAGS" 12906 12907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12912 $as_echo_n "(cached) " >&6 12913else 12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12915/* end confdefs.h. */ 12916int i; 12917_ACEOF 12918if ac_fn_c_try_compile "$LINENO"; then : 12919 xorg_cv_cc_flag_unknown_warning_option=yes 12920else 12921 xorg_cv_cc_flag_unknown_warning_option=no 12922fi 12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12928 CFLAGS="$xorg_testset_save_CFLAGS" 12929fi 12930 12931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12934 fi 12935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943int i; 12944_ACEOF 12945if ac_fn_c_try_compile "$LINENO"; then : 12946 xorg_cv_cc_flag_unused_command_line_argument=yes 12947else 12948 xorg_cv_cc_flag_unused_command_line_argument=no 12949fi 12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12951fi 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12955 CFLAGS="$xorg_testset_save_CFLAGS" 12956fi 12957 12958found="no" 12959 12960 if test $found = "no" ; then 12961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12963 fi 12964 12965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12967 fi 12968 12969 CFLAGS="$CFLAGS -Wmissing-prototypes" 12970 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12972$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12973 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12974 if eval \${$cacheid+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979int i; 12980int 12981main () 12982{ 12983 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_c_try_link "$LINENO"; then : 12989 eval $cacheid=yes 12990else 12991 eval $cacheid=no 12992fi 12993rm -f core conftest.err conftest.$ac_objext \ 12994 conftest$ac_exeext conftest.$ac_ext 12995fi 12996 12997 12998 CFLAGS="$xorg_testset_save_CFLAGS" 12999 13000 eval supported=\$$cacheid 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13002$as_echo "$supported" >&6; } 13003 if test "$supported" = "yes" ; then 13004 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13005 found="yes" 13006 fi 13007 fi 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023xorg_testset_save_CFLAGS="$CFLAGS" 13024 13025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13030 $as_echo_n "(cached) " >&6 13031else 13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13033/* end confdefs.h. */ 13034int i; 13035_ACEOF 13036if ac_fn_c_try_compile "$LINENO"; then : 13037 xorg_cv_cc_flag_unknown_warning_option=yes 13038else 13039 xorg_cv_cc_flag_unknown_warning_option=no 13040fi 13041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13042fi 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13046 CFLAGS="$xorg_testset_save_CFLAGS" 13047fi 13048 13049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13052 fi 13053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060/* end confdefs.h. */ 13061int i; 13062_ACEOF 13063if ac_fn_c_try_compile "$LINENO"; then : 13064 xorg_cv_cc_flag_unused_command_line_argument=yes 13065else 13066 xorg_cv_cc_flag_unused_command_line_argument=no 13067fi 13068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13069fi 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13073 CFLAGS="$xorg_testset_save_CFLAGS" 13074fi 13075 13076found="no" 13077 13078 if test $found = "no" ; then 13079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13081 fi 13082 13083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13085 fi 13086 13087 CFLAGS="$CFLAGS -Wnested-externs" 13088 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13090$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13091 cacheid=xorg_cv_cc_flag__Wnested_externs 13092 if eval \${$cacheid+:} false; then : 13093 $as_echo_n "(cached) " >&6 13094else 13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13096/* end confdefs.h. */ 13097int i; 13098int 13099main () 13100{ 13101 13102 ; 13103 return 0; 13104} 13105_ACEOF 13106if ac_fn_c_try_link "$LINENO"; then : 13107 eval $cacheid=yes 13108else 13109 eval $cacheid=no 13110fi 13111rm -f core conftest.err conftest.$ac_objext \ 13112 conftest$ac_exeext conftest.$ac_ext 13113fi 13114 13115 13116 CFLAGS="$xorg_testset_save_CFLAGS" 13117 13118 eval supported=\$$cacheid 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13120$as_echo "$supported" >&6; } 13121 if test "$supported" = "yes" ; then 13122 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13123 found="yes" 13124 fi 13125 fi 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141xorg_testset_save_CFLAGS="$CFLAGS" 13142 13143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13148 $as_echo_n "(cached) " >&6 13149else 13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13151/* end confdefs.h. */ 13152int i; 13153_ACEOF 13154if ac_fn_c_try_compile "$LINENO"; then : 13155 xorg_cv_cc_flag_unknown_warning_option=yes 13156else 13157 xorg_cv_cc_flag_unknown_warning_option=no 13158fi 13159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13160fi 13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13164 CFLAGS="$xorg_testset_save_CFLAGS" 13165fi 13166 13167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13170 fi 13171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179int i; 13180_ACEOF 13181if ac_fn_c_try_compile "$LINENO"; then : 13182 xorg_cv_cc_flag_unused_command_line_argument=yes 13183else 13184 xorg_cv_cc_flag_unused_command_line_argument=no 13185fi 13186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13187fi 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13191 CFLAGS="$xorg_testset_save_CFLAGS" 13192fi 13193 13194found="no" 13195 13196 if test $found = "no" ; then 13197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13199 fi 13200 13201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13203 fi 13204 13205 CFLAGS="$CFLAGS -Wbad-function-cast" 13206 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13208$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13209 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13210 if eval \${$cacheid+:} false; then : 13211 $as_echo_n "(cached) " >&6 13212else 13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215int i; 13216int 13217main () 13218{ 13219 13220 ; 13221 return 0; 13222} 13223_ACEOF 13224if ac_fn_c_try_link "$LINENO"; then : 13225 eval $cacheid=yes 13226else 13227 eval $cacheid=no 13228fi 13229rm -f core conftest.err conftest.$ac_objext \ 13230 conftest$ac_exeext conftest.$ac_ext 13231fi 13232 13233 13234 CFLAGS="$xorg_testset_save_CFLAGS" 13235 13236 eval supported=\$$cacheid 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13238$as_echo "$supported" >&6; } 13239 if test "$supported" = "yes" ; then 13240 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13241 found="yes" 13242 fi 13243 fi 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259xorg_testset_save_CFLAGS="$CFLAGS" 13260 13261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13266 $as_echo_n "(cached) " >&6 13267else 13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13269/* end confdefs.h. */ 13270int i; 13271_ACEOF 13272if ac_fn_c_try_compile "$LINENO"; then : 13273 xorg_cv_cc_flag_unknown_warning_option=yes 13274else 13275 xorg_cv_cc_flag_unknown_warning_option=no 13276fi 13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13278fi 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13282 CFLAGS="$xorg_testset_save_CFLAGS" 13283fi 13284 13285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13288 fi 13289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13296/* end confdefs.h. */ 13297int i; 13298_ACEOF 13299if ac_fn_c_try_compile "$LINENO"; then : 13300 xorg_cv_cc_flag_unused_command_line_argument=yes 13301else 13302 xorg_cv_cc_flag_unused_command_line_argument=no 13303fi 13304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13305fi 13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13309 CFLAGS="$xorg_testset_save_CFLAGS" 13310fi 13311 13312found="no" 13313 13314 if test $found = "no" ; then 13315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13317 fi 13318 13319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13321 fi 13322 13323 CFLAGS="$CFLAGS -Wold-style-definition" 13324 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13326$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13327 cacheid=xorg_cv_cc_flag__Wold_style_definition 13328 if eval \${$cacheid+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330else 13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13332/* end confdefs.h. */ 13333int i; 13334int 13335main () 13336{ 13337 13338 ; 13339 return 0; 13340} 13341_ACEOF 13342if ac_fn_c_try_link "$LINENO"; then : 13343 eval $cacheid=yes 13344else 13345 eval $cacheid=no 13346fi 13347rm -f core conftest.err conftest.$ac_objext \ 13348 conftest$ac_exeext conftest.$ac_ext 13349fi 13350 13351 13352 CFLAGS="$xorg_testset_save_CFLAGS" 13353 13354 eval supported=\$$cacheid 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13356$as_echo "$supported" >&6; } 13357 if test "$supported" = "yes" ; then 13358 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13359 found="yes" 13360 fi 13361 fi 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377xorg_testset_save_CFLAGS="$CFLAGS" 13378 13379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13384 $as_echo_n "(cached) " >&6 13385else 13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13387/* end confdefs.h. */ 13388int i; 13389_ACEOF 13390if ac_fn_c_try_compile "$LINENO"; then : 13391 xorg_cv_cc_flag_unknown_warning_option=yes 13392else 13393 xorg_cv_cc_flag_unknown_warning_option=no 13394fi 13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13396fi 13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13400 CFLAGS="$xorg_testset_save_CFLAGS" 13401fi 13402 13403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13406 fi 13407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414/* end confdefs.h. */ 13415int i; 13416_ACEOF 13417if ac_fn_c_try_compile "$LINENO"; then : 13418 xorg_cv_cc_flag_unused_command_line_argument=yes 13419else 13420 xorg_cv_cc_flag_unused_command_line_argument=no 13421fi 13422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13423fi 13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13427 CFLAGS="$xorg_testset_save_CFLAGS" 13428fi 13429 13430found="no" 13431 13432 if test $found = "no" ; then 13433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13435 fi 13436 13437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13439 fi 13440 13441 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13442 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13444$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13445 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13446 if eval \${$cacheid+:} false; then : 13447 $as_echo_n "(cached) " >&6 13448else 13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13450/* end confdefs.h. */ 13451int i; 13452int 13453main () 13454{ 13455 13456 ; 13457 return 0; 13458} 13459_ACEOF 13460if ac_fn_c_try_link "$LINENO"; then : 13461 eval $cacheid=yes 13462else 13463 eval $cacheid=no 13464fi 13465rm -f core conftest.err conftest.$ac_objext \ 13466 conftest$ac_exeext conftest.$ac_ext 13467fi 13468 13469 13470 CFLAGS="$xorg_testset_save_CFLAGS" 13471 13472 eval supported=\$$cacheid 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13474$as_echo "$supported" >&6; } 13475 if test "$supported" = "yes" ; then 13476 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13477 found="yes" 13478 fi 13479 fi 13480 13481 13482 13483 13484 13485# This chunk adds additional warnings that could catch undesired effects. 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499xorg_testset_save_CFLAGS="$CFLAGS" 13500 13501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510int i; 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO"; then : 13513 xorg_cv_cc_flag_unknown_warning_option=yes 13514else 13515 xorg_cv_cc_flag_unknown_warning_option=no 13516fi 13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13518fi 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13522 CFLAGS="$xorg_testset_save_CFLAGS" 13523fi 13524 13525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13528 fi 13529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537int i; 13538_ACEOF 13539if ac_fn_c_try_compile "$LINENO"; then : 13540 xorg_cv_cc_flag_unused_command_line_argument=yes 13541else 13542 xorg_cv_cc_flag_unused_command_line_argument=no 13543fi 13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13545fi 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13549 CFLAGS="$xorg_testset_save_CFLAGS" 13550fi 13551 13552found="no" 13553 13554 if test $found = "no" ; then 13555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13557 fi 13558 13559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13561 fi 13562 13563 CFLAGS="$CFLAGS -Wunused" 13564 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13566$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13567 cacheid=xorg_cv_cc_flag__Wunused 13568 if eval \${$cacheid+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573int i; 13574int 13575main () 13576{ 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO"; then : 13583 eval $cacheid=yes 13584else 13585 eval $cacheid=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext \ 13588 conftest$ac_exeext conftest.$ac_ext 13589fi 13590 13591 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593 13594 eval supported=\$$cacheid 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13596$as_echo "$supported" >&6; } 13597 if test "$supported" = "yes" ; then 13598 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13599 found="yes" 13600 fi 13601 fi 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617xorg_testset_save_CFLAGS="$CFLAGS" 13618 13619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628int i; 13629_ACEOF 13630if ac_fn_c_try_compile "$LINENO"; then : 13631 xorg_cv_cc_flag_unknown_warning_option=yes 13632else 13633 xorg_cv_cc_flag_unknown_warning_option=no 13634fi 13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13636fi 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13640 CFLAGS="$xorg_testset_save_CFLAGS" 13641fi 13642 13643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13646 fi 13647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13651 $as_echo_n "(cached) " >&6 13652else 13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655int i; 13656_ACEOF 13657if ac_fn_c_try_compile "$LINENO"; then : 13658 xorg_cv_cc_flag_unused_command_line_argument=yes 13659else 13660 xorg_cv_cc_flag_unused_command_line_argument=no 13661fi 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13663fi 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13667 CFLAGS="$xorg_testset_save_CFLAGS" 13668fi 13669 13670found="no" 13671 13672 if test $found = "no" ; then 13673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13675 fi 13676 13677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13679 fi 13680 13681 CFLAGS="$CFLAGS -Wuninitialized" 13682 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13684$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13685 cacheid=xorg_cv_cc_flag__Wuninitialized 13686 if eval \${$cacheid+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692int 13693main () 13694{ 13695 13696 ; 13697 return 0; 13698} 13699_ACEOF 13700if ac_fn_c_try_link "$LINENO"; then : 13701 eval $cacheid=yes 13702else 13703 eval $cacheid=no 13704fi 13705rm -f core conftest.err conftest.$ac_objext \ 13706 conftest$ac_exeext conftest.$ac_ext 13707fi 13708 13709 13710 CFLAGS="$xorg_testset_save_CFLAGS" 13711 13712 eval supported=\$$cacheid 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13714$as_echo "$supported" >&6; } 13715 if test "$supported" = "yes" ; then 13716 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13717 found="yes" 13718 fi 13719 fi 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735xorg_testset_save_CFLAGS="$CFLAGS" 13736 13737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746int i; 13747_ACEOF 13748if ac_fn_c_try_compile "$LINENO"; then : 13749 xorg_cv_cc_flag_unknown_warning_option=yes 13750else 13751 xorg_cv_cc_flag_unknown_warning_option=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754fi 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13764 fi 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773int i; 13774_ACEOF 13775if ac_fn_c_try_compile "$LINENO"; then : 13776 xorg_cv_cc_flag_unused_command_line_argument=yes 13777else 13778 xorg_cv_cc_flag_unused_command_line_argument=no 13779fi 13780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13781fi 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13785 CFLAGS="$xorg_testset_save_CFLAGS" 13786fi 13787 13788found="no" 13789 13790 if test $found = "no" ; then 13791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 13795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13797 fi 13798 13799 CFLAGS="$CFLAGS -Wshadow" 13800 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13802$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13803 cacheid=xorg_cv_cc_flag__Wshadow 13804 if eval \${$cacheid+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809int i; 13810int 13811main () 13812{ 13813 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818if ac_fn_c_try_link "$LINENO"; then : 13819 eval $cacheid=yes 13820else 13821 eval $cacheid=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext \ 13824 conftest$ac_exeext conftest.$ac_ext 13825fi 13826 13827 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829 13830 eval supported=\$$cacheid 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13832$as_echo "$supported" >&6; } 13833 if test "$supported" = "yes" ; then 13834 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13835 found="yes" 13836 fi 13837 fi 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853xorg_testset_save_CFLAGS="$CFLAGS" 13854 13855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13860 $as_echo_n "(cached) " >&6 13861else 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864int i; 13865_ACEOF 13866if ac_fn_c_try_compile "$LINENO"; then : 13867 xorg_cv_cc_flag_unknown_warning_option=yes 13868else 13869 xorg_cv_cc_flag_unknown_warning_option=no 13870fi 13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13872fi 13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13876 CFLAGS="$xorg_testset_save_CFLAGS" 13877fi 13878 13879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13882 fi 13883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13887 $as_echo_n "(cached) " >&6 13888else 13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891int i; 13892_ACEOF 13893if ac_fn_c_try_compile "$LINENO"; then : 13894 xorg_cv_cc_flag_unused_command_line_argument=yes 13895else 13896 xorg_cv_cc_flag_unused_command_line_argument=no 13897fi 13898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13899fi 13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13903 CFLAGS="$xorg_testset_save_CFLAGS" 13904fi 13905 13906found="no" 13907 13908 if test $found = "no" ; then 13909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13911 fi 13912 13913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13915 fi 13916 13917 CFLAGS="$CFLAGS -Wcast-qual" 13918 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13920$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13921 cacheid=xorg_cv_cc_flag__Wcast_qual 13922 if eval \${$cacheid+:} false; then : 13923 $as_echo_n "(cached) " >&6 13924else 13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926/* end confdefs.h. */ 13927int i; 13928int 13929main () 13930{ 13931 13932 ; 13933 return 0; 13934} 13935_ACEOF 13936if ac_fn_c_try_link "$LINENO"; then : 13937 eval $cacheid=yes 13938else 13939 eval $cacheid=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext \ 13942 conftest$ac_exeext conftest.$ac_ext 13943fi 13944 13945 13946 CFLAGS="$xorg_testset_save_CFLAGS" 13947 13948 eval supported=\$$cacheid 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13950$as_echo "$supported" >&6; } 13951 if test "$supported" = "yes" ; then 13952 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13953 found="yes" 13954 fi 13955 fi 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971xorg_testset_save_CFLAGS="$CFLAGS" 13972 13973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13978 $as_echo_n "(cached) " >&6 13979else 13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13981/* end confdefs.h. */ 13982int i; 13983_ACEOF 13984if ac_fn_c_try_compile "$LINENO"; then : 13985 xorg_cv_cc_flag_unknown_warning_option=yes 13986else 13987 xorg_cv_cc_flag_unknown_warning_option=no 13988fi 13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13994 CFLAGS="$xorg_testset_save_CFLAGS" 13995fi 13996 13997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14000 fi 14001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14005 $as_echo_n "(cached) " >&6 14006else 14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14008/* end confdefs.h. */ 14009int i; 14010_ACEOF 14011if ac_fn_c_try_compile "$LINENO"; then : 14012 xorg_cv_cc_flag_unused_command_line_argument=yes 14013else 14014 xorg_cv_cc_flag_unused_command_line_argument=no 14015fi 14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14017fi 14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14021 CFLAGS="$xorg_testset_save_CFLAGS" 14022fi 14023 14024found="no" 14025 14026 if test $found = "no" ; then 14027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14029 fi 14030 14031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14033 fi 14034 14035 CFLAGS="$CFLAGS -Wmissing-noreturn" 14036 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14038$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14039 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14040 if eval \${$cacheid+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14044/* end confdefs.h. */ 14045int i; 14046int 14047main () 14048{ 14049 14050 ; 14051 return 0; 14052} 14053_ACEOF 14054if ac_fn_c_try_link "$LINENO"; then : 14055 eval $cacheid=yes 14056else 14057 eval $cacheid=no 14058fi 14059rm -f core conftest.err conftest.$ac_objext \ 14060 conftest$ac_exeext conftest.$ac_ext 14061fi 14062 14063 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065 14066 eval supported=\$$cacheid 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14068$as_echo "$supported" >&6; } 14069 if test "$supported" = "yes" ; then 14070 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14071 found="yes" 14072 fi 14073 fi 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089xorg_testset_save_CFLAGS="$CFLAGS" 14090 14091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101_ACEOF 14102if ac_fn_c_try_compile "$LINENO"; then : 14103 xorg_cv_cc_flag_unknown_warning_option=yes 14104else 14105 xorg_cv_cc_flag_unknown_warning_option=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14112 CFLAGS="$xorg_testset_save_CFLAGS" 14113fi 14114 14115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14118 fi 14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127int i; 14128_ACEOF 14129if ac_fn_c_try_compile "$LINENO"; then : 14130 xorg_cv_cc_flag_unused_command_line_argument=yes 14131else 14132 xorg_cv_cc_flag_unused_command_line_argument=no 14133fi 14134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14135fi 14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14139 CFLAGS="$xorg_testset_save_CFLAGS" 14140fi 14141 14142found="no" 14143 14144 if test $found = "no" ; then 14145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14147 fi 14148 14149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14151 fi 14152 14153 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14154 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14156$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14157 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14158 if eval \${$cacheid+:} false; then : 14159 $as_echo_n "(cached) " >&6 14160else 14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163int i; 14164int 14165main () 14166{ 14167 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO"; then : 14173 eval $cacheid=yes 14174else 14175 eval $cacheid=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext \ 14178 conftest$ac_exeext conftest.$ac_ext 14179fi 14180 14181 14182 CFLAGS="$xorg_testset_save_CFLAGS" 14183 14184 eval supported=\$$cacheid 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14186$as_echo "$supported" >&6; } 14187 if test "$supported" = "yes" ; then 14188 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14189 found="yes" 14190 fi 14191 fi 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207xorg_testset_save_CFLAGS="$CFLAGS" 14208 14209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14214 $as_echo_n "(cached) " >&6 14215else 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218int i; 14219_ACEOF 14220if ac_fn_c_try_compile "$LINENO"; then : 14221 xorg_cv_cc_flag_unknown_warning_option=yes 14222else 14223 xorg_cv_cc_flag_unknown_warning_option=no 14224fi 14225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14230 CFLAGS="$xorg_testset_save_CFLAGS" 14231fi 14232 14233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14236 fi 14237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14244/* end confdefs.h. */ 14245int i; 14246_ACEOF 14247if ac_fn_c_try_compile "$LINENO"; then : 14248 xorg_cv_cc_flag_unused_command_line_argument=yes 14249else 14250 xorg_cv_cc_flag_unused_command_line_argument=no 14251fi 14252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14253fi 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14257 CFLAGS="$xorg_testset_save_CFLAGS" 14258fi 14259 14260found="no" 14261 14262 if test $found = "no" ; then 14263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14265 fi 14266 14267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14269 fi 14270 14271 CFLAGS="$CFLAGS -Wredundant-decls" 14272 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14274$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14275 cacheid=xorg_cv_cc_flag__Wredundant_decls 14276 if eval \${$cacheid+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14280/* end confdefs.h. */ 14281int i; 14282int 14283main () 14284{ 14285 14286 ; 14287 return 0; 14288} 14289_ACEOF 14290if ac_fn_c_try_link "$LINENO"; then : 14291 eval $cacheid=yes 14292else 14293 eval $cacheid=no 14294fi 14295rm -f core conftest.err conftest.$ac_objext \ 14296 conftest$ac_exeext conftest.$ac_ext 14297fi 14298 14299 14300 CFLAGS="$xorg_testset_save_CFLAGS" 14301 14302 eval supported=\$$cacheid 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14304$as_echo "$supported" >&6; } 14305 if test "$supported" = "yes" ; then 14306 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14307 found="yes" 14308 fi 14309 fi 14310 14311 14312 14313# These are currently disabled because they are noisy. They will be enabled 14314# in the future once the codebase is sufficiently modernized to silence 14315# them. For now, I don't want them to drown out the other warnings. 14316# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14317# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14318# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14319 14320# Turn some warnings into errors, so we don't accidently get successful builds 14321# when there are problems that should be fixed. 14322 14323if test "x$SELECTIVE_WERROR" = "xyes" ; then 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337xorg_testset_save_CFLAGS="$CFLAGS" 14338 14339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14344 $as_echo_n "(cached) " >&6 14345else 14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348int i; 14349_ACEOF 14350if ac_fn_c_try_compile "$LINENO"; then : 14351 xorg_cv_cc_flag_unknown_warning_option=yes 14352else 14353 xorg_cv_cc_flag_unknown_warning_option=no 14354fi 14355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14356fi 14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14360 CFLAGS="$xorg_testset_save_CFLAGS" 14361fi 14362 14363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14366 fi 14367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14371 $as_echo_n "(cached) " >&6 14372else 14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14374/* end confdefs.h. */ 14375int i; 14376_ACEOF 14377if ac_fn_c_try_compile "$LINENO"; then : 14378 xorg_cv_cc_flag_unused_command_line_argument=yes 14379else 14380 xorg_cv_cc_flag_unused_command_line_argument=no 14381fi 14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14383fi 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14387 CFLAGS="$xorg_testset_save_CFLAGS" 14388fi 14389 14390found="no" 14391 14392 if test $found = "no" ; then 14393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14395 fi 14396 14397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14399 fi 14400 14401 CFLAGS="$CFLAGS -Werror=implicit" 14402 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14404$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14405 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14406 if eval \${$cacheid+:} false; then : 14407 $as_echo_n "(cached) " >&6 14408else 14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14410/* end confdefs.h. */ 14411int i; 14412int 14413main () 14414{ 14415 14416 ; 14417 return 0; 14418} 14419_ACEOF 14420if ac_fn_c_try_link "$LINENO"; then : 14421 eval $cacheid=yes 14422else 14423 eval $cacheid=no 14424fi 14425rm -f core conftest.err conftest.$ac_objext \ 14426 conftest$ac_exeext conftest.$ac_ext 14427fi 14428 14429 14430 CFLAGS="$xorg_testset_save_CFLAGS" 14431 14432 eval supported=\$$cacheid 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14434$as_echo "$supported" >&6; } 14435 if test "$supported" = "yes" ; then 14436 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14437 found="yes" 14438 fi 14439 fi 14440 14441 if test $found = "no" ; then 14442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14444 fi 14445 14446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14448 fi 14449 14450 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14453$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14454 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14455 if eval \${$cacheid+:} false; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461int 14462main () 14463{ 14464 14465 ; 14466 return 0; 14467} 14468_ACEOF 14469if ac_fn_c_try_link "$LINENO"; then : 14470 eval $cacheid=yes 14471else 14472 eval $cacheid=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext \ 14475 conftest$ac_exeext conftest.$ac_ext 14476fi 14477 14478 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480 14481 eval supported=\$$cacheid 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14483$as_echo "$supported" >&6; } 14484 if test "$supported" = "yes" ; then 14485 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14486 found="yes" 14487 fi 14488 fi 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504xorg_testset_save_CFLAGS="$CFLAGS" 14505 14506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512else 14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14514/* end confdefs.h. */ 14515int i; 14516_ACEOF 14517if ac_fn_c_try_compile "$LINENO"; then : 14518 xorg_cv_cc_flag_unknown_warning_option=yes 14519else 14520 xorg_cv_cc_flag_unknown_warning_option=no 14521fi 14522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14523fi 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14527 CFLAGS="$xorg_testset_save_CFLAGS" 14528fi 14529 14530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14533 fi 14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542int i; 14543_ACEOF 14544if ac_fn_c_try_compile "$LINENO"; then : 14545 xorg_cv_cc_flag_unused_command_line_argument=yes 14546else 14547 xorg_cv_cc_flag_unused_command_line_argument=no 14548fi 14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14550fi 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14554 CFLAGS="$xorg_testset_save_CFLAGS" 14555fi 14556 14557found="no" 14558 14559 if test $found = "no" ; then 14560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14562 fi 14563 14564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14566 fi 14567 14568 CFLAGS="$CFLAGS -Werror=nonnull" 14569 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14571$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14572 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14573 if eval \${$cacheid+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579int 14580main () 14581{ 14582 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587if ac_fn_c_try_link "$LINENO"; then : 14588 eval $cacheid=yes 14589else 14590 eval $cacheid=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext \ 14593 conftest$ac_exeext conftest.$ac_ext 14594fi 14595 14596 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598 14599 eval supported=\$$cacheid 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14601$as_echo "$supported" >&6; } 14602 if test "$supported" = "yes" ; then 14603 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14604 found="yes" 14605 fi 14606 fi 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622xorg_testset_save_CFLAGS="$CFLAGS" 14623 14624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14632/* end confdefs.h. */ 14633int i; 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 xorg_cv_cc_flag_unknown_warning_option=yes 14637else 14638 xorg_cv_cc_flag_unknown_warning_option=no 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14641fi 14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14645 CFLAGS="$xorg_testset_save_CFLAGS" 14646fi 14647 14648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14651 fi 14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661_ACEOF 14662if ac_fn_c_try_compile "$LINENO"; then : 14663 xorg_cv_cc_flag_unused_command_line_argument=yes 14664else 14665 xorg_cv_cc_flag_unused_command_line_argument=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14668fi 14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673fi 14674 14675found="no" 14676 14677 if test $found = "no" ; then 14678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14680 fi 14681 14682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14684 fi 14685 14686 CFLAGS="$CFLAGS -Werror=init-self" 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14689$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14690 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14691 if eval \${$cacheid+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696int i; 14697int 14698main () 14699{ 14700 14701 ; 14702 return 0; 14703} 14704_ACEOF 14705if ac_fn_c_try_link "$LINENO"; then : 14706 eval $cacheid=yes 14707else 14708 eval $cacheid=no 14709fi 14710rm -f core conftest.err conftest.$ac_objext \ 14711 conftest$ac_exeext conftest.$ac_ext 14712fi 14713 14714 14715 CFLAGS="$xorg_testset_save_CFLAGS" 14716 14717 eval supported=\$$cacheid 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14719$as_echo "$supported" >&6; } 14720 if test "$supported" = "yes" ; then 14721 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14722 found="yes" 14723 fi 14724 fi 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740xorg_testset_save_CFLAGS="$CFLAGS" 14741 14742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14747 $as_echo_n "(cached) " >&6 14748else 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750/* end confdefs.h. */ 14751int i; 14752_ACEOF 14753if ac_fn_c_try_compile "$LINENO"; then : 14754 xorg_cv_cc_flag_unknown_warning_option=yes 14755else 14756 xorg_cv_cc_flag_unknown_warning_option=no 14757fi 14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14759fi 14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14763 CFLAGS="$xorg_testset_save_CFLAGS" 14764fi 14765 14766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14769 fi 14770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778int i; 14779_ACEOF 14780if ac_fn_c_try_compile "$LINENO"; then : 14781 xorg_cv_cc_flag_unused_command_line_argument=yes 14782else 14783 xorg_cv_cc_flag_unused_command_line_argument=no 14784fi 14785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14786fi 14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14790 CFLAGS="$xorg_testset_save_CFLAGS" 14791fi 14792 14793found="no" 14794 14795 if test $found = "no" ; then 14796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14798 fi 14799 14800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14802 fi 14803 14804 CFLAGS="$CFLAGS -Werror=main" 14805 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14807$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14808 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14809 if eval \${$cacheid+:} false; then : 14810 $as_echo_n "(cached) " >&6 14811else 14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814int i; 14815int 14816main () 14817{ 14818 14819 ; 14820 return 0; 14821} 14822_ACEOF 14823if ac_fn_c_try_link "$LINENO"; then : 14824 eval $cacheid=yes 14825else 14826 eval $cacheid=no 14827fi 14828rm -f core conftest.err conftest.$ac_objext \ 14829 conftest$ac_exeext conftest.$ac_ext 14830fi 14831 14832 14833 CFLAGS="$xorg_testset_save_CFLAGS" 14834 14835 eval supported=\$$cacheid 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14837$as_echo "$supported" >&6; } 14838 if test "$supported" = "yes" ; then 14839 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14840 found="yes" 14841 fi 14842 fi 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858xorg_testset_save_CFLAGS="$CFLAGS" 14859 14860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14868/* end confdefs.h. */ 14869int i; 14870_ACEOF 14871if ac_fn_c_try_compile "$LINENO"; then : 14872 xorg_cv_cc_flag_unknown_warning_option=yes 14873else 14874 xorg_cv_cc_flag_unknown_warning_option=no 14875fi 14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14877fi 14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14881 CFLAGS="$xorg_testset_save_CFLAGS" 14882fi 14883 14884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14887 fi 14888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14892 $as_echo_n "(cached) " >&6 14893else 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896int i; 14897_ACEOF 14898if ac_fn_c_try_compile "$LINENO"; then : 14899 xorg_cv_cc_flag_unused_command_line_argument=yes 14900else 14901 xorg_cv_cc_flag_unused_command_line_argument=no 14902fi 14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14904fi 14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14908 CFLAGS="$xorg_testset_save_CFLAGS" 14909fi 14910 14911found="no" 14912 14913 if test $found = "no" ; then 14914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14916 fi 14917 14918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14920 fi 14921 14922 CFLAGS="$CFLAGS -Werror=missing-braces" 14923 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14925$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14926 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14927 if eval \${$cacheid+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929else 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932int i; 14933int 14934main () 14935{ 14936 14937 ; 14938 return 0; 14939} 14940_ACEOF 14941if ac_fn_c_try_link "$LINENO"; then : 14942 eval $cacheid=yes 14943else 14944 eval $cacheid=no 14945fi 14946rm -f core conftest.err conftest.$ac_objext \ 14947 conftest$ac_exeext conftest.$ac_ext 14948fi 14949 14950 14951 CFLAGS="$xorg_testset_save_CFLAGS" 14952 14953 eval supported=\$$cacheid 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14955$as_echo "$supported" >&6; } 14956 if test "$supported" = "yes" ; then 14957 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14958 found="yes" 14959 fi 14960 fi 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976xorg_testset_save_CFLAGS="$CFLAGS" 14977 14978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987int i; 14988_ACEOF 14989if ac_fn_c_try_compile "$LINENO"; then : 14990 xorg_cv_cc_flag_unknown_warning_option=yes 14991else 14992 xorg_cv_cc_flag_unknown_warning_option=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14995fi 14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000fi 15001 15002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15005 fi 15006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014int i; 15015_ACEOF 15016if ac_fn_c_try_compile "$LINENO"; then : 15017 xorg_cv_cc_flag_unused_command_line_argument=yes 15018else 15019 xorg_cv_cc_flag_unused_command_line_argument=no 15020fi 15021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15022fi 15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15026 CFLAGS="$xorg_testset_save_CFLAGS" 15027fi 15028 15029found="no" 15030 15031 if test $found = "no" ; then 15032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15034 fi 15035 15036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15038 fi 15039 15040 CFLAGS="$CFLAGS -Werror=sequence-point" 15041 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15043$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15044 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 15045 if eval \${$cacheid+:} false; then : 15046 $as_echo_n "(cached) " >&6 15047else 15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15049/* end confdefs.h. */ 15050int i; 15051int 15052main () 15053{ 15054 15055 ; 15056 return 0; 15057} 15058_ACEOF 15059if ac_fn_c_try_link "$LINENO"; then : 15060 eval $cacheid=yes 15061else 15062 eval $cacheid=no 15063fi 15064rm -f core conftest.err conftest.$ac_objext \ 15065 conftest$ac_exeext conftest.$ac_ext 15066fi 15067 15068 15069 CFLAGS="$xorg_testset_save_CFLAGS" 15070 15071 eval supported=\$$cacheid 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15073$as_echo "$supported" >&6; } 15074 if test "$supported" = "yes" ; then 15075 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15076 found="yes" 15077 fi 15078 fi 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094xorg_testset_save_CFLAGS="$CFLAGS" 15095 15096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15101 $as_echo_n "(cached) " >&6 15102else 15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15104/* end confdefs.h. */ 15105int i; 15106_ACEOF 15107if ac_fn_c_try_compile "$LINENO"; then : 15108 xorg_cv_cc_flag_unknown_warning_option=yes 15109else 15110 xorg_cv_cc_flag_unknown_warning_option=no 15111fi 15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15113fi 15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15117 CFLAGS="$xorg_testset_save_CFLAGS" 15118fi 15119 15120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15123 fi 15124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15128 $as_echo_n "(cached) " >&6 15129else 15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15131/* end confdefs.h. */ 15132int i; 15133_ACEOF 15134if ac_fn_c_try_compile "$LINENO"; then : 15135 xorg_cv_cc_flag_unused_command_line_argument=yes 15136else 15137 xorg_cv_cc_flag_unused_command_line_argument=no 15138fi 15139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15140fi 15141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15144 CFLAGS="$xorg_testset_save_CFLAGS" 15145fi 15146 15147found="no" 15148 15149 if test $found = "no" ; then 15150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15152 fi 15153 15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15156 fi 15157 15158 CFLAGS="$CFLAGS -Werror=return-type" 15159 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15161$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15162 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 15163 if eval \${$cacheid+:} false; then : 15164 $as_echo_n "(cached) " >&6 15165else 15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15167/* end confdefs.h. */ 15168int i; 15169int 15170main () 15171{ 15172 15173 ; 15174 return 0; 15175} 15176_ACEOF 15177if ac_fn_c_try_link "$LINENO"; then : 15178 eval $cacheid=yes 15179else 15180 eval $cacheid=no 15181fi 15182rm -f core conftest.err conftest.$ac_objext \ 15183 conftest$ac_exeext conftest.$ac_ext 15184fi 15185 15186 15187 CFLAGS="$xorg_testset_save_CFLAGS" 15188 15189 eval supported=\$$cacheid 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15191$as_echo "$supported" >&6; } 15192 if test "$supported" = "yes" ; then 15193 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15194 found="yes" 15195 fi 15196 fi 15197 15198 if test $found = "no" ; then 15199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15201 fi 15202 15203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15205 fi 15206 15207 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15208 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15210$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15211 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 15212 if eval \${$cacheid+:} false; then : 15213 $as_echo_n "(cached) " >&6 15214else 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217int i; 15218int 15219main () 15220{ 15221 15222 ; 15223 return 0; 15224} 15225_ACEOF 15226if ac_fn_c_try_link "$LINENO"; then : 15227 eval $cacheid=yes 15228else 15229 eval $cacheid=no 15230fi 15231rm -f core conftest.err conftest.$ac_objext \ 15232 conftest$ac_exeext conftest.$ac_ext 15233fi 15234 15235 15236 CFLAGS="$xorg_testset_save_CFLAGS" 15237 15238 eval supported=\$$cacheid 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15240$as_echo "$supported" >&6; } 15241 if test "$supported" = "yes" ; then 15242 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15243 found="yes" 15244 fi 15245 fi 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261xorg_testset_save_CFLAGS="$CFLAGS" 15262 15263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15268 $as_echo_n "(cached) " >&6 15269else 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273_ACEOF 15274if ac_fn_c_try_compile "$LINENO"; then : 15275 xorg_cv_cc_flag_unknown_warning_option=yes 15276else 15277 xorg_cv_cc_flag_unknown_warning_option=no 15278fi 15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15280fi 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15284 CFLAGS="$xorg_testset_save_CFLAGS" 15285fi 15286 15287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 fi 15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15295 $as_echo_n "(cached) " >&6 15296else 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299int i; 15300_ACEOF 15301if ac_fn_c_try_compile "$LINENO"; then : 15302 xorg_cv_cc_flag_unused_command_line_argument=yes 15303else 15304 xorg_cv_cc_flag_unused_command_line_argument=no 15305fi 15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15307fi 15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15311 CFLAGS="$xorg_testset_save_CFLAGS" 15312fi 15313 15314found="no" 15315 15316 if test $found = "no" ; then 15317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 fi 15320 15321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15323 fi 15324 15325 CFLAGS="$CFLAGS -Werror=trigraphs" 15326 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15328$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15329 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 15330 if eval \${$cacheid+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15334/* end confdefs.h. */ 15335int i; 15336int 15337main () 15338{ 15339 15340 ; 15341 return 0; 15342} 15343_ACEOF 15344if ac_fn_c_try_link "$LINENO"; then : 15345 eval $cacheid=yes 15346else 15347 eval $cacheid=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext \ 15350 conftest$ac_exeext conftest.$ac_ext 15351fi 15352 15353 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355 15356 eval supported=\$$cacheid 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15358$as_echo "$supported" >&6; } 15359 if test "$supported" = "yes" ; then 15360 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15361 found="yes" 15362 fi 15363 fi 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379xorg_testset_save_CFLAGS="$CFLAGS" 15380 15381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387else 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390int i; 15391_ACEOF 15392if ac_fn_c_try_compile "$LINENO"; then : 15393 xorg_cv_cc_flag_unknown_warning_option=yes 15394else 15395 xorg_cv_cc_flag_unknown_warning_option=no 15396fi 15397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15398fi 15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15402 CFLAGS="$xorg_testset_save_CFLAGS" 15403fi 15404 15405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 fi 15409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15413 $as_echo_n "(cached) " >&6 15414else 15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417int i; 15418_ACEOF 15419if ac_fn_c_try_compile "$LINENO"; then : 15420 xorg_cv_cc_flag_unused_command_line_argument=yes 15421else 15422 xorg_cv_cc_flag_unused_command_line_argument=no 15423fi 15424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15425fi 15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15429 CFLAGS="$xorg_testset_save_CFLAGS" 15430fi 15431 15432found="no" 15433 15434 if test $found = "no" ; then 15435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15437 fi 15438 15439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15441 fi 15442 15443 CFLAGS="$CFLAGS -Werror=array-bounds" 15444 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15446$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15447 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15448 if eval \${$cacheid+:} false; then : 15449 $as_echo_n "(cached) " >&6 15450else 15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453int i; 15454int 15455main () 15456{ 15457 15458 ; 15459 return 0; 15460} 15461_ACEOF 15462if ac_fn_c_try_link "$LINENO"; then : 15463 eval $cacheid=yes 15464else 15465 eval $cacheid=no 15466fi 15467rm -f core conftest.err conftest.$ac_objext \ 15468 conftest$ac_exeext conftest.$ac_ext 15469fi 15470 15471 15472 CFLAGS="$xorg_testset_save_CFLAGS" 15473 15474 eval supported=\$$cacheid 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15476$as_echo "$supported" >&6; } 15477 if test "$supported" = "yes" ; then 15478 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15479 found="yes" 15480 fi 15481 fi 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497xorg_testset_save_CFLAGS="$CFLAGS" 15498 15499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508int i; 15509_ACEOF 15510if ac_fn_c_try_compile "$LINENO"; then : 15511 xorg_cv_cc_flag_unknown_warning_option=yes 15512else 15513 xorg_cv_cc_flag_unknown_warning_option=no 15514fi 15515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15516fi 15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15520 CFLAGS="$xorg_testset_save_CFLAGS" 15521fi 15522 15523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15526 fi 15527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535int i; 15536_ACEOF 15537if ac_fn_c_try_compile "$LINENO"; then : 15538 xorg_cv_cc_flag_unused_command_line_argument=yes 15539else 15540 xorg_cv_cc_flag_unused_command_line_argument=no 15541fi 15542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15543fi 15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15547 CFLAGS="$xorg_testset_save_CFLAGS" 15548fi 15549 15550found="no" 15551 15552 if test $found = "no" ; then 15553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15555 fi 15556 15557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15559 fi 15560 15561 CFLAGS="$CFLAGS -Werror=write-strings" 15562 15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15564$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15565 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15566 if eval \${$cacheid+:} false; then : 15567 $as_echo_n "(cached) " >&6 15568else 15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15570/* end confdefs.h. */ 15571int i; 15572int 15573main () 15574{ 15575 15576 ; 15577 return 0; 15578} 15579_ACEOF 15580if ac_fn_c_try_link "$LINENO"; then : 15581 eval $cacheid=yes 15582else 15583 eval $cacheid=no 15584fi 15585rm -f core conftest.err conftest.$ac_objext \ 15586 conftest$ac_exeext conftest.$ac_ext 15587fi 15588 15589 15590 CFLAGS="$xorg_testset_save_CFLAGS" 15591 15592 eval supported=\$$cacheid 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15594$as_echo "$supported" >&6; } 15595 if test "$supported" = "yes" ; then 15596 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15597 found="yes" 15598 fi 15599 fi 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615xorg_testset_save_CFLAGS="$CFLAGS" 15616 15617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15622 $as_echo_n "(cached) " >&6 15623else 15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15625/* end confdefs.h. */ 15626int i; 15627_ACEOF 15628if ac_fn_c_try_compile "$LINENO"; then : 15629 xorg_cv_cc_flag_unknown_warning_option=yes 15630else 15631 xorg_cv_cc_flag_unknown_warning_option=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15634fi 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15638 CFLAGS="$xorg_testset_save_CFLAGS" 15639fi 15640 15641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15644 fi 15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654_ACEOF 15655if ac_fn_c_try_compile "$LINENO"; then : 15656 xorg_cv_cc_flag_unused_command_line_argument=yes 15657else 15658 xorg_cv_cc_flag_unused_command_line_argument=no 15659fi 15660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15661fi 15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15665 CFLAGS="$xorg_testset_save_CFLAGS" 15666fi 15667 15668found="no" 15669 15670 if test $found = "no" ; then 15671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15673 fi 15674 15675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15677 fi 15678 15679 CFLAGS="$CFLAGS -Werror=address" 15680 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15682$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15683 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15684 if eval \${$cacheid+:} false; then : 15685 $as_echo_n "(cached) " >&6 15686else 15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15688/* end confdefs.h. */ 15689int i; 15690int 15691main () 15692{ 15693 15694 ; 15695 return 0; 15696} 15697_ACEOF 15698if ac_fn_c_try_link "$LINENO"; then : 15699 eval $cacheid=yes 15700else 15701 eval $cacheid=no 15702fi 15703rm -f core conftest.err conftest.$ac_objext \ 15704 conftest$ac_exeext conftest.$ac_ext 15705fi 15706 15707 15708 CFLAGS="$xorg_testset_save_CFLAGS" 15709 15710 eval supported=\$$cacheid 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15712$as_echo "$supported" >&6; } 15713 if test "$supported" = "yes" ; then 15714 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15715 found="yes" 15716 fi 15717 fi 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733xorg_testset_save_CFLAGS="$CFLAGS" 15734 15735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15740 $as_echo_n "(cached) " >&6 15741else 15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15743/* end confdefs.h. */ 15744int i; 15745_ACEOF 15746if ac_fn_c_try_compile "$LINENO"; then : 15747 xorg_cv_cc_flag_unknown_warning_option=yes 15748else 15749 xorg_cv_cc_flag_unknown_warning_option=no 15750fi 15751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15752fi 15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15756 CFLAGS="$xorg_testset_save_CFLAGS" 15757fi 15758 15759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15762 fi 15763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768else 15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15770/* end confdefs.h. */ 15771int i; 15772_ACEOF 15773if ac_fn_c_try_compile "$LINENO"; then : 15774 xorg_cv_cc_flag_unused_command_line_argument=yes 15775else 15776 xorg_cv_cc_flag_unused_command_line_argument=no 15777fi 15778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15779fi 15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15783 CFLAGS="$xorg_testset_save_CFLAGS" 15784fi 15785 15786found="no" 15787 15788 if test $found = "no" ; then 15789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15791 fi 15792 15793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15795 fi 15796 15797 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15798 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15800$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15801 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15802 if eval \${$cacheid+:} false; then : 15803 $as_echo_n "(cached) " >&6 15804else 15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15806/* end confdefs.h. */ 15807int i; 15808int 15809main () 15810{ 15811 15812 ; 15813 return 0; 15814} 15815_ACEOF 15816if ac_fn_c_try_link "$LINENO"; then : 15817 eval $cacheid=yes 15818else 15819 eval $cacheid=no 15820fi 15821rm -f core conftest.err conftest.$ac_objext \ 15822 conftest$ac_exeext conftest.$ac_ext 15823fi 15824 15825 15826 CFLAGS="$xorg_testset_save_CFLAGS" 15827 15828 eval supported=\$$cacheid 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15830$as_echo "$supported" >&6; } 15831 if test "$supported" = "yes" ; then 15832 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15833 found="yes" 15834 fi 15835 fi 15836 15837 if test $found = "no" ; then 15838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15840 fi 15841 15842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15844 fi 15845 15846 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15847 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15849$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15850 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15851 if eval \${$cacheid+:} false; then : 15852 $as_echo_n "(cached) " >&6 15853else 15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15855/* end confdefs.h. */ 15856int i; 15857int 15858main () 15859{ 15860 15861 ; 15862 return 0; 15863} 15864_ACEOF 15865if ac_fn_c_try_link "$LINENO"; then : 15866 eval $cacheid=yes 15867else 15868 eval $cacheid=no 15869fi 15870rm -f core conftest.err conftest.$ac_objext \ 15871 conftest$ac_exeext conftest.$ac_ext 15872fi 15873 15874 15875 CFLAGS="$xorg_testset_save_CFLAGS" 15876 15877 eval supported=\$$cacheid 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15879$as_echo "$supported" >&6; } 15880 if test "$supported" = "yes" ; then 15881 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15882 found="yes" 15883 fi 15884 fi 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900xorg_testset_save_CFLAGS="$CFLAGS" 15901 15902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15907 $as_echo_n "(cached) " >&6 15908else 15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15910/* end confdefs.h. */ 15911int i; 15912_ACEOF 15913if ac_fn_c_try_compile "$LINENO"; then : 15914 xorg_cv_cc_flag_unknown_warning_option=yes 15915else 15916 xorg_cv_cc_flag_unknown_warning_option=no 15917fi 15918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15919fi 15920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15923 CFLAGS="$xorg_testset_save_CFLAGS" 15924fi 15925 15926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15929 fi 15930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15934 $as_echo_n "(cached) " >&6 15935else 15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15937/* end confdefs.h. */ 15938int i; 15939_ACEOF 15940if ac_fn_c_try_compile "$LINENO"; then : 15941 xorg_cv_cc_flag_unused_command_line_argument=yes 15942else 15943 xorg_cv_cc_flag_unused_command_line_argument=no 15944fi 15945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15946fi 15947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15950 CFLAGS="$xorg_testset_save_CFLAGS" 15951fi 15952 15953found="no" 15954 15955 if test $found = "no" ; then 15956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15958 fi 15959 15960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15962 fi 15963 15964 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15965 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15967$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15968 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15969 if eval \${$cacheid+:} false; then : 15970 $as_echo_n "(cached) " >&6 15971else 15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15973/* end confdefs.h. */ 15974int i; 15975int 15976main () 15977{ 15978 15979 ; 15980 return 0; 15981} 15982_ACEOF 15983if ac_fn_c_try_link "$LINENO"; then : 15984 eval $cacheid=yes 15985else 15986 eval $cacheid=no 15987fi 15988rm -f core conftest.err conftest.$ac_objext \ 15989 conftest$ac_exeext conftest.$ac_ext 15990fi 15991 15992 15993 CFLAGS="$xorg_testset_save_CFLAGS" 15994 15995 eval supported=\$$cacheid 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15997$as_echo "$supported" >&6; } 15998 if test "$supported" = "yes" ; then 15999 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16000 found="yes" 16001 fi 16002 fi 16003 16004 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16005else 16006{ $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 16007$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;} 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16028 $as_echo_n "(cached) " >&6 16029else 16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16031/* end confdefs.h. */ 16032int i; 16033_ACEOF 16034if ac_fn_c_try_compile "$LINENO"; then : 16035 xorg_cv_cc_flag_unknown_warning_option=yes 16036else 16037 xorg_cv_cc_flag_unknown_warning_option=no 16038fi 16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16040fi 16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16044 CFLAGS="$xorg_testset_save_CFLAGS" 16045fi 16046 16047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16050 fi 16051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16055 $as_echo_n "(cached) " >&6 16056else 16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16058/* end confdefs.h. */ 16059int i; 16060_ACEOF 16061if ac_fn_c_try_compile "$LINENO"; then : 16062 xorg_cv_cc_flag_unused_command_line_argument=yes 16063else 16064 xorg_cv_cc_flag_unused_command_line_argument=no 16065fi 16066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072fi 16073 16074found="no" 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -Wimplicit" 16086 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16088$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16089 cacheid=xorg_cv_cc_flag__Wimplicit 16090 if eval \${$cacheid+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096int 16097main () 16098{ 16099 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_c_try_link "$LINENO"; then : 16105 eval $cacheid=yes 16106else 16107 eval $cacheid=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext \ 16110 conftest$ac_exeext conftest.$ac_ext 16111fi 16112 16113 16114 CFLAGS="$xorg_testset_save_CFLAGS" 16115 16116 eval supported=\$$cacheid 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16118$as_echo "$supported" >&6; } 16119 if test "$supported" = "yes" ; then 16120 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16121 found="yes" 16122 fi 16123 fi 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139xorg_testset_save_CFLAGS="$CFLAGS" 16140 16141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150int i; 16151_ACEOF 16152if ac_fn_c_try_compile "$LINENO"; then : 16153 xorg_cv_cc_flag_unknown_warning_option=yes 16154else 16155 xorg_cv_cc_flag_unknown_warning_option=no 16156fi 16157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16158fi 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16162 CFLAGS="$xorg_testset_save_CFLAGS" 16163fi 16164 16165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16168 fi 16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16173 $as_echo_n "(cached) " >&6 16174else 16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16176/* end confdefs.h. */ 16177int i; 16178_ACEOF 16179if ac_fn_c_try_compile "$LINENO"; then : 16180 xorg_cv_cc_flag_unused_command_line_argument=yes 16181else 16182 xorg_cv_cc_flag_unused_command_line_argument=no 16183fi 16184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16185fi 16186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16189 CFLAGS="$xorg_testset_save_CFLAGS" 16190fi 16191 16192found="no" 16193 16194 if test $found = "no" ; then 16195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16197 fi 16198 16199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16201 fi 16202 16203 CFLAGS="$CFLAGS -Wnonnull" 16204 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16206$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16207 cacheid=xorg_cv_cc_flag__Wnonnull 16208 if eval \${$cacheid+:} false; then : 16209 $as_echo_n "(cached) " >&6 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214int 16215main () 16216{ 16217 16218 ; 16219 return 0; 16220} 16221_ACEOF 16222if ac_fn_c_try_link "$LINENO"; then : 16223 eval $cacheid=yes 16224else 16225 eval $cacheid=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext \ 16228 conftest$ac_exeext conftest.$ac_ext 16229fi 16230 16231 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233 16234 eval supported=\$$cacheid 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16236$as_echo "$supported" >&6; } 16237 if test "$supported" = "yes" ; then 16238 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16239 found="yes" 16240 fi 16241 fi 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257xorg_testset_save_CFLAGS="$CFLAGS" 16258 16259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16264 $as_echo_n "(cached) " >&6 16265else 16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268int i; 16269_ACEOF 16270if ac_fn_c_try_compile "$LINENO"; then : 16271 xorg_cv_cc_flag_unknown_warning_option=yes 16272else 16273 xorg_cv_cc_flag_unknown_warning_option=no 16274fi 16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16276fi 16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16280 CFLAGS="$xorg_testset_save_CFLAGS" 16281fi 16282 16283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16286 fi 16287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295int i; 16296_ACEOF 16297if ac_fn_c_try_compile "$LINENO"; then : 16298 xorg_cv_cc_flag_unused_command_line_argument=yes 16299else 16300 xorg_cv_cc_flag_unused_command_line_argument=no 16301fi 16302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16303fi 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16307 CFLAGS="$xorg_testset_save_CFLAGS" 16308fi 16309 16310found="no" 16311 16312 if test $found = "no" ; then 16313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16315 fi 16316 16317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16319 fi 16320 16321 CFLAGS="$CFLAGS -Winit-self" 16322 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16324$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16325 cacheid=xorg_cv_cc_flag__Winit_self 16326 if eval \${$cacheid+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332int 16333main () 16334{ 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_link "$LINENO"; then : 16341 eval $cacheid=yes 16342else 16343 eval $cacheid=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext \ 16346 conftest$ac_exeext conftest.$ac_ext 16347fi 16348 16349 16350 CFLAGS="$xorg_testset_save_CFLAGS" 16351 16352 eval supported=\$$cacheid 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16354$as_echo "$supported" >&6; } 16355 if test "$supported" = "yes" ; then 16356 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16357 found="yes" 16358 fi 16359 fi 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375xorg_testset_save_CFLAGS="$CFLAGS" 16376 16377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386int i; 16387_ACEOF 16388if ac_fn_c_try_compile "$LINENO"; then : 16389 xorg_cv_cc_flag_unknown_warning_option=yes 16390else 16391 xorg_cv_cc_flag_unknown_warning_option=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16394fi 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 fi 16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16409 $as_echo_n "(cached) " >&6 16410else 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413int i; 16414_ACEOF 16415if ac_fn_c_try_compile "$LINENO"; then : 16416 xorg_cv_cc_flag_unused_command_line_argument=yes 16417else 16418 xorg_cv_cc_flag_unused_command_line_argument=no 16419fi 16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16421fi 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16425 CFLAGS="$xorg_testset_save_CFLAGS" 16426fi 16427 16428found="no" 16429 16430 if test $found = "no" ; then 16431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16433 fi 16434 16435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16437 fi 16438 16439 CFLAGS="$CFLAGS -Wmain" 16440 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16442$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16443 cacheid=xorg_cv_cc_flag__Wmain 16444 if eval \${$cacheid+:} false; then : 16445 $as_echo_n "(cached) " >&6 16446else 16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449int i; 16450int 16451main () 16452{ 16453 16454 ; 16455 return 0; 16456} 16457_ACEOF 16458if ac_fn_c_try_link "$LINENO"; then : 16459 eval $cacheid=yes 16460else 16461 eval $cacheid=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext conftest.$ac_ext 16465fi 16466 16467 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469 16470 eval supported=\$$cacheid 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16472$as_echo "$supported" >&6; } 16473 if test "$supported" = "yes" ; then 16474 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16475 found="yes" 16476 fi 16477 fi 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493xorg_testset_save_CFLAGS="$CFLAGS" 16494 16495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16500 $as_echo_n "(cached) " >&6 16501else 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505_ACEOF 16506if ac_fn_c_try_compile "$LINENO"; then : 16507 xorg_cv_cc_flag_unknown_warning_option=yes 16508else 16509 xorg_cv_cc_flag_unknown_warning_option=no 16510fi 16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16512fi 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16516 CFLAGS="$xorg_testset_save_CFLAGS" 16517fi 16518 16519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16522 fi 16523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO"; then : 16534 xorg_cv_cc_flag_unused_command_line_argument=yes 16535else 16536 xorg_cv_cc_flag_unused_command_line_argument=no 16537fi 16538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16539fi 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16543 CFLAGS="$xorg_testset_save_CFLAGS" 16544fi 16545 16546found="no" 16547 16548 if test $found = "no" ; then 16549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16551 fi 16552 16553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16555 fi 16556 16557 CFLAGS="$CFLAGS -Wmissing-braces" 16558 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16560$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16561 cacheid=xorg_cv_cc_flag__Wmissing_braces 16562 if eval \${$cacheid+:} false; then : 16563 $as_echo_n "(cached) " >&6 16564else 16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567int i; 16568int 16569main () 16570{ 16571 16572 ; 16573 return 0; 16574} 16575_ACEOF 16576if ac_fn_c_try_link "$LINENO"; then : 16577 eval $cacheid=yes 16578else 16579 eval $cacheid=no 16580fi 16581rm -f core conftest.err conftest.$ac_objext \ 16582 conftest$ac_exeext conftest.$ac_ext 16583fi 16584 16585 16586 CFLAGS="$xorg_testset_save_CFLAGS" 16587 16588 eval supported=\$$cacheid 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16590$as_echo "$supported" >&6; } 16591 if test "$supported" = "yes" ; then 16592 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16593 found="yes" 16594 fi 16595 fi 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611xorg_testset_save_CFLAGS="$CFLAGS" 16612 16613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622int i; 16623_ACEOF 16624if ac_fn_c_try_compile "$LINENO"; then : 16625 xorg_cv_cc_flag_unknown_warning_option=yes 16626else 16627 xorg_cv_cc_flag_unknown_warning_option=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16630fi 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16634 CFLAGS="$xorg_testset_save_CFLAGS" 16635fi 16636 16637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16640 fi 16641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16645 $as_echo_n "(cached) " >&6 16646else 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649int i; 16650_ACEOF 16651if ac_fn_c_try_compile "$LINENO"; then : 16652 xorg_cv_cc_flag_unused_command_line_argument=yes 16653else 16654 xorg_cv_cc_flag_unused_command_line_argument=no 16655fi 16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16657fi 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16661 CFLAGS="$xorg_testset_save_CFLAGS" 16662fi 16663 16664found="no" 16665 16666 if test $found = "no" ; then 16667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16669 fi 16670 16671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16673 fi 16674 16675 CFLAGS="$CFLAGS -Wsequence-point" 16676 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16678$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16679 cacheid=xorg_cv_cc_flag__Wsequence_point 16680 if eval \${$cacheid+:} false; then : 16681 $as_echo_n "(cached) " >&6 16682else 16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16684/* end confdefs.h. */ 16685int i; 16686int 16687main () 16688{ 16689 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_link "$LINENO"; then : 16695 eval $cacheid=yes 16696else 16697 eval $cacheid=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext \ 16700 conftest$ac_exeext conftest.$ac_ext 16701fi 16702 16703 16704 CFLAGS="$xorg_testset_save_CFLAGS" 16705 16706 eval supported=\$$cacheid 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16708$as_echo "$supported" >&6; } 16709 if test "$supported" = "yes" ; then 16710 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16711 found="yes" 16712 fi 16713 fi 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729xorg_testset_save_CFLAGS="$CFLAGS" 16730 16731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741_ACEOF 16742if ac_fn_c_try_compile "$LINENO"; then : 16743 xorg_cv_cc_flag_unknown_warning_option=yes 16744else 16745 xorg_cv_cc_flag_unknown_warning_option=no 16746fi 16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16748fi 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16752 CFLAGS="$xorg_testset_save_CFLAGS" 16753fi 16754 16755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16758 fi 16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768_ACEOF 16769if ac_fn_c_try_compile "$LINENO"; then : 16770 xorg_cv_cc_flag_unused_command_line_argument=yes 16771else 16772 xorg_cv_cc_flag_unused_command_line_argument=no 16773fi 16774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16775fi 16776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16779 CFLAGS="$xorg_testset_save_CFLAGS" 16780fi 16781 16782found="no" 16783 16784 if test $found = "no" ; then 16785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16787 fi 16788 16789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16791 fi 16792 16793 CFLAGS="$CFLAGS -Wreturn-type" 16794 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16796$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16797 cacheid=xorg_cv_cc_flag__Wreturn_type 16798 if eval \${$cacheid+:} false; then : 16799 $as_echo_n "(cached) " >&6 16800else 16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16802/* end confdefs.h. */ 16803int i; 16804int 16805main () 16806{ 16807 16808 ; 16809 return 0; 16810} 16811_ACEOF 16812if ac_fn_c_try_link "$LINENO"; then : 16813 eval $cacheid=yes 16814else 16815 eval $cacheid=no 16816fi 16817rm -f core conftest.err conftest.$ac_objext \ 16818 conftest$ac_exeext conftest.$ac_ext 16819fi 16820 16821 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823 16824 eval supported=\$$cacheid 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16826$as_echo "$supported" >&6; } 16827 if test "$supported" = "yes" ; then 16828 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16829 found="yes" 16830 fi 16831 fi 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847xorg_testset_save_CFLAGS="$CFLAGS" 16848 16849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16854 $as_echo_n "(cached) " >&6 16855else 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858int i; 16859_ACEOF 16860if ac_fn_c_try_compile "$LINENO"; then : 16861 xorg_cv_cc_flag_unknown_warning_option=yes 16862else 16863 xorg_cv_cc_flag_unknown_warning_option=no 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871fi 16872 16873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16876 fi 16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885int i; 16886_ACEOF 16887if ac_fn_c_try_compile "$LINENO"; then : 16888 xorg_cv_cc_flag_unused_command_line_argument=yes 16889else 16890 xorg_cv_cc_flag_unused_command_line_argument=no 16891fi 16892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16893fi 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898fi 16899 16900found="no" 16901 16902 if test $found = "no" ; then 16903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16905 fi 16906 16907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16909 fi 16910 16911 CFLAGS="$CFLAGS -Wtrigraphs" 16912 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16914$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16915 cacheid=xorg_cv_cc_flag__Wtrigraphs 16916 if eval \${$cacheid+:} false; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922int 16923main () 16924{ 16925 16926 ; 16927 return 0; 16928} 16929_ACEOF 16930if ac_fn_c_try_link "$LINENO"; then : 16931 eval $cacheid=yes 16932else 16933 eval $cacheid=no 16934fi 16935rm -f core conftest.err conftest.$ac_objext \ 16936 conftest$ac_exeext conftest.$ac_ext 16937fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944$as_echo "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16947 found="yes" 16948 fi 16949 fi 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965xorg_testset_save_CFLAGS="$CFLAGS" 16966 16967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16972 $as_echo_n "(cached) " >&6 16973else 16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16975/* end confdefs.h. */ 16976int i; 16977_ACEOF 16978if ac_fn_c_try_compile "$LINENO"; then : 16979 xorg_cv_cc_flag_unknown_warning_option=yes 16980else 16981 xorg_cv_cc_flag_unknown_warning_option=no 16982fi 16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16988 CFLAGS="$xorg_testset_save_CFLAGS" 16989fi 16990 16991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 fi 16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004_ACEOF 17005if ac_fn_c_try_compile "$LINENO"; then : 17006 xorg_cv_cc_flag_unused_command_line_argument=yes 17007else 17008 xorg_cv_cc_flag_unused_command_line_argument=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17011fi 17012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018found="no" 17019 17020 if test $found = "no" ; then 17021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17023 fi 17024 17025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 fi 17028 17029 CFLAGS="$CFLAGS -Warray-bounds" 17030 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17032$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17033 cacheid=xorg_cv_cc_flag__Warray_bounds 17034 if eval \${$cacheid+:} false; then : 17035 $as_echo_n "(cached) " >&6 17036else 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039int i; 17040int 17041main () 17042{ 17043 17044 ; 17045 return 0; 17046} 17047_ACEOF 17048if ac_fn_c_try_link "$LINENO"; then : 17049 eval $cacheid=yes 17050else 17051 eval $cacheid=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext \ 17054 conftest$ac_exeext conftest.$ac_ext 17055fi 17056 17057 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059 17060 eval supported=\$$cacheid 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17062$as_echo "$supported" >&6; } 17063 if test "$supported" = "yes" ; then 17064 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17065 found="yes" 17066 fi 17067 fi 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083xorg_testset_save_CFLAGS="$CFLAGS" 17084 17085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17090 $as_echo_n "(cached) " >&6 17091else 17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17093/* end confdefs.h. */ 17094int i; 17095_ACEOF 17096if ac_fn_c_try_compile "$LINENO"; then : 17097 xorg_cv_cc_flag_unknown_warning_option=yes 17098else 17099 xorg_cv_cc_flag_unknown_warning_option=no 17100fi 17101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17102fi 17103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17106 CFLAGS="$xorg_testset_save_CFLAGS" 17107fi 17108 17109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17112 fi 17113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17117 $as_echo_n "(cached) " >&6 17118else 17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17120/* end confdefs.h. */ 17121int i; 17122_ACEOF 17123if ac_fn_c_try_compile "$LINENO"; then : 17124 xorg_cv_cc_flag_unused_command_line_argument=yes 17125else 17126 xorg_cv_cc_flag_unused_command_line_argument=no 17127fi 17128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17129fi 17130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17133 CFLAGS="$xorg_testset_save_CFLAGS" 17134fi 17135 17136found="no" 17137 17138 if test $found = "no" ; then 17139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17141 fi 17142 17143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17145 fi 17146 17147 CFLAGS="$CFLAGS -Wwrite-strings" 17148 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17150$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17151 cacheid=xorg_cv_cc_flag__Wwrite_strings 17152 if eval \${$cacheid+:} false; then : 17153 $as_echo_n "(cached) " >&6 17154else 17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156/* end confdefs.h. */ 17157int i; 17158int 17159main () 17160{ 17161 17162 ; 17163 return 0; 17164} 17165_ACEOF 17166if ac_fn_c_try_link "$LINENO"; then : 17167 eval $cacheid=yes 17168else 17169 eval $cacheid=no 17170fi 17171rm -f core conftest.err conftest.$ac_objext \ 17172 conftest$ac_exeext conftest.$ac_ext 17173fi 17174 17175 17176 CFLAGS="$xorg_testset_save_CFLAGS" 17177 17178 eval supported=\$$cacheid 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17180$as_echo "$supported" >&6; } 17181 if test "$supported" = "yes" ; then 17182 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17183 found="yes" 17184 fi 17185 fi 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201xorg_testset_save_CFLAGS="$CFLAGS" 17202 17203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211/* end confdefs.h. */ 17212int i; 17213_ACEOF 17214if ac_fn_c_try_compile "$LINENO"; then : 17215 xorg_cv_cc_flag_unknown_warning_option=yes 17216else 17217 xorg_cv_cc_flag_unknown_warning_option=no 17218fi 17219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17220fi 17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17224 CFLAGS="$xorg_testset_save_CFLAGS" 17225fi 17226 17227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17230 fi 17231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17235 $as_echo_n "(cached) " >&6 17236else 17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17238/* end confdefs.h. */ 17239int i; 17240_ACEOF 17241if ac_fn_c_try_compile "$LINENO"; then : 17242 xorg_cv_cc_flag_unused_command_line_argument=yes 17243else 17244 xorg_cv_cc_flag_unused_command_line_argument=no 17245fi 17246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17247fi 17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17251 CFLAGS="$xorg_testset_save_CFLAGS" 17252fi 17253 17254found="no" 17255 17256 if test $found = "no" ; then 17257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17259 fi 17260 17261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17263 fi 17264 17265 CFLAGS="$CFLAGS -Waddress" 17266 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17268$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17269 cacheid=xorg_cv_cc_flag__Waddress 17270 if eval \${$cacheid+:} false; then : 17271 $as_echo_n "(cached) " >&6 17272else 17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17274/* end confdefs.h. */ 17275int i; 17276int 17277main () 17278{ 17279 17280 ; 17281 return 0; 17282} 17283_ACEOF 17284if ac_fn_c_try_link "$LINENO"; then : 17285 eval $cacheid=yes 17286else 17287 eval $cacheid=no 17288fi 17289rm -f core conftest.err conftest.$ac_objext \ 17290 conftest$ac_exeext conftest.$ac_ext 17291fi 17292 17293 17294 CFLAGS="$xorg_testset_save_CFLAGS" 17295 17296 eval supported=\$$cacheid 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17298$as_echo "$supported" >&6; } 17299 if test "$supported" = "yes" ; then 17300 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17301 found="yes" 17302 fi 17303 fi 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319xorg_testset_save_CFLAGS="$CFLAGS" 17320 17321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17326 $as_echo_n "(cached) " >&6 17327else 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330int i; 17331_ACEOF 17332if ac_fn_c_try_compile "$LINENO"; then : 17333 xorg_cv_cc_flag_unknown_warning_option=yes 17334else 17335 xorg_cv_cc_flag_unknown_warning_option=no 17336fi 17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17338fi 17339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17342 CFLAGS="$xorg_testset_save_CFLAGS" 17343fi 17344 17345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17348 fi 17349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358_ACEOF 17359if ac_fn_c_try_compile "$LINENO"; then : 17360 xorg_cv_cc_flag_unused_command_line_argument=yes 17361else 17362 xorg_cv_cc_flag_unused_command_line_argument=no 17363fi 17364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17365fi 17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17369 CFLAGS="$xorg_testset_save_CFLAGS" 17370fi 17371 17372found="no" 17373 17374 if test $found = "no" ; then 17375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17377 fi 17378 17379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17381 fi 17382 17383 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17384 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17386$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17387 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17388 if eval \${$cacheid+:} false; then : 17389 $as_echo_n "(cached) " >&6 17390else 17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17392/* end confdefs.h. */ 17393int i; 17394int 17395main () 17396{ 17397 17398 ; 17399 return 0; 17400} 17401_ACEOF 17402if ac_fn_c_try_link "$LINENO"; then : 17403 eval $cacheid=yes 17404else 17405 eval $cacheid=no 17406fi 17407rm -f core conftest.err conftest.$ac_objext \ 17408 conftest$ac_exeext conftest.$ac_ext 17409fi 17410 17411 17412 CFLAGS="$xorg_testset_save_CFLAGS" 17413 17414 eval supported=\$$cacheid 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17416$as_echo "$supported" >&6; } 17417 if test "$supported" = "yes" ; then 17418 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17419 found="yes" 17420 fi 17421 fi 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437xorg_testset_save_CFLAGS="$CFLAGS" 17438 17439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17444 $as_echo_n "(cached) " >&6 17445else 17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448int i; 17449_ACEOF 17450if ac_fn_c_try_compile "$LINENO"; then : 17451 xorg_cv_cc_flag_unknown_warning_option=yes 17452else 17453 xorg_cv_cc_flag_unknown_warning_option=no 17454fi 17455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17456fi 17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17460 CFLAGS="$xorg_testset_save_CFLAGS" 17461fi 17462 17463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17466 fi 17467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17471 $as_echo_n "(cached) " >&6 17472else 17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475int i; 17476_ACEOF 17477if ac_fn_c_try_compile "$LINENO"; then : 17478 xorg_cv_cc_flag_unused_command_line_argument=yes 17479else 17480 xorg_cv_cc_flag_unused_command_line_argument=no 17481fi 17482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17483fi 17484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17487 CFLAGS="$xorg_testset_save_CFLAGS" 17488fi 17489 17490found="no" 17491 17492 if test $found = "no" ; then 17493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17495 fi 17496 17497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17499 fi 17500 17501 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17502 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17504$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17505 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17506 if eval \${$cacheid+:} false; then : 17507 $as_echo_n "(cached) " >&6 17508else 17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17510/* end confdefs.h. */ 17511int i; 17512int 17513main () 17514{ 17515 17516 ; 17517 return 0; 17518} 17519_ACEOF 17520if ac_fn_c_try_link "$LINENO"; then : 17521 eval $cacheid=yes 17522else 17523 eval $cacheid=no 17524fi 17525rm -f core conftest.err conftest.$ac_objext \ 17526 conftest$ac_exeext conftest.$ac_ext 17527fi 17528 17529 17530 CFLAGS="$xorg_testset_save_CFLAGS" 17531 17532 eval supported=\$$cacheid 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17534$as_echo "$supported" >&6; } 17535 if test "$supported" = "yes" ; then 17536 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17537 found="yes" 17538 fi 17539 fi 17540 17541 17542fi 17543 17544 17545 17546 17547 17548 17549 17550 CWARNFLAGS="$BASE_CFLAGS" 17551 if test "x$GCC" = xyes ; then 17552 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17553 fi 17554 17555 17556 17557 17558 17559 17560 17561 17562# Check whether --enable-strict-compilation was given. 17563if test "${enable_strict_compilation+set}" = set; then : 17564 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17565else 17566 STRICT_COMPILE=no 17567fi 17568 17569 17570 17571 17572 17573 17574STRICT_CFLAGS="" 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588xorg_testset_save_CFLAGS="$CFLAGS" 17589 17590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17595 $as_echo_n "(cached) " >&6 17596else 17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17598/* end confdefs.h. */ 17599int i; 17600_ACEOF 17601if ac_fn_c_try_compile "$LINENO"; then : 17602 xorg_cv_cc_flag_unknown_warning_option=yes 17603else 17604 xorg_cv_cc_flag_unknown_warning_option=no 17605fi 17606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17607fi 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17611 CFLAGS="$xorg_testset_save_CFLAGS" 17612fi 17613 17614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17617 fi 17618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17622 $as_echo_n "(cached) " >&6 17623else 17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17625/* end confdefs.h. */ 17626int i; 17627_ACEOF 17628if ac_fn_c_try_compile "$LINENO"; then : 17629 xorg_cv_cc_flag_unused_command_line_argument=yes 17630else 17631 xorg_cv_cc_flag_unused_command_line_argument=no 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17634fi 17635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17638 CFLAGS="$xorg_testset_save_CFLAGS" 17639fi 17640 17641found="no" 17642 17643 if test $found = "no" ; then 17644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17646 fi 17647 17648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17650 fi 17651 17652 CFLAGS="$CFLAGS -pedantic" 17653 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17655$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17656 cacheid=xorg_cv_cc_flag__pedantic 17657 if eval \${$cacheid+:} false; then : 17658 $as_echo_n "(cached) " >&6 17659else 17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661/* end confdefs.h. */ 17662int i; 17663int 17664main () 17665{ 17666 17667 ; 17668 return 0; 17669} 17670_ACEOF 17671if ac_fn_c_try_link "$LINENO"; then : 17672 eval $cacheid=yes 17673else 17674 eval $cacheid=no 17675fi 17676rm -f core conftest.err conftest.$ac_objext \ 17677 conftest$ac_exeext conftest.$ac_ext 17678fi 17679 17680 17681 CFLAGS="$xorg_testset_save_CFLAGS" 17682 17683 eval supported=\$$cacheid 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17685$as_echo "$supported" >&6; } 17686 if test "$supported" = "yes" ; then 17687 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17688 found="yes" 17689 fi 17690 fi 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706xorg_testset_save_CFLAGS="$CFLAGS" 17707 17708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17713 $as_echo_n "(cached) " >&6 17714else 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717int i; 17718_ACEOF 17719if ac_fn_c_try_compile "$LINENO"; then : 17720 xorg_cv_cc_flag_unknown_warning_option=yes 17721else 17722 xorg_cv_cc_flag_unknown_warning_option=no 17723fi 17724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17725fi 17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17729 CFLAGS="$xorg_testset_save_CFLAGS" 17730fi 17731 17732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17735 fi 17736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17740 $as_echo_n "(cached) " >&6 17741else 17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17743/* end confdefs.h. */ 17744int i; 17745_ACEOF 17746if ac_fn_c_try_compile "$LINENO"; then : 17747 xorg_cv_cc_flag_unused_command_line_argument=yes 17748else 17749 xorg_cv_cc_flag_unused_command_line_argument=no 17750fi 17751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17752fi 17753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17756 CFLAGS="$xorg_testset_save_CFLAGS" 17757fi 17758 17759found="no" 17760 17761 if test $found = "no" ; then 17762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17764 fi 17765 17766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17768 fi 17769 17770 CFLAGS="$CFLAGS -Werror" 17771 17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17773$as_echo_n "checking if $CC supports -Werror... " >&6; } 17774 cacheid=xorg_cv_cc_flag__Werror 17775 if eval \${$cacheid+:} false; then : 17776 $as_echo_n "(cached) " >&6 17777else 17778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17779/* end confdefs.h. */ 17780int i; 17781int 17782main () 17783{ 17784 17785 ; 17786 return 0; 17787} 17788_ACEOF 17789if ac_fn_c_try_link "$LINENO"; then : 17790 eval $cacheid=yes 17791else 17792 eval $cacheid=no 17793fi 17794rm -f core conftest.err conftest.$ac_objext \ 17795 conftest$ac_exeext conftest.$ac_ext 17796fi 17797 17798 17799 CFLAGS="$xorg_testset_save_CFLAGS" 17800 17801 eval supported=\$$cacheid 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17803$as_echo "$supported" >&6; } 17804 if test "$supported" = "yes" ; then 17805 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17806 found="yes" 17807 fi 17808 fi 17809 17810 if test $found = "no" ; then 17811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17813 fi 17814 17815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17817 fi 17818 17819 CFLAGS="$CFLAGS -errwarn" 17820 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17822$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17823 cacheid=xorg_cv_cc_flag__errwarn 17824 if eval \${$cacheid+:} false; then : 17825 $as_echo_n "(cached) " >&6 17826else 17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17828/* end confdefs.h. */ 17829int i; 17830int 17831main () 17832{ 17833 17834 ; 17835 return 0; 17836} 17837_ACEOF 17838if ac_fn_c_try_link "$LINENO"; then : 17839 eval $cacheid=yes 17840else 17841 eval $cacheid=no 17842fi 17843rm -f core conftest.err conftest.$ac_objext \ 17844 conftest$ac_exeext conftest.$ac_ext 17845fi 17846 17847 17848 CFLAGS="$xorg_testset_save_CFLAGS" 17849 17850 eval supported=\$$cacheid 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17852$as_echo "$supported" >&6; } 17853 if test "$supported" = "yes" ; then 17854 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17855 found="yes" 17856 fi 17857 fi 17858 17859 17860 17861# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17862# activate it with -Werror, so we add it here explicitly. 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876xorg_testset_save_CFLAGS="$CFLAGS" 17877 17878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17883 $as_echo_n "(cached) " >&6 17884else 17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17886/* end confdefs.h. */ 17887int i; 17888_ACEOF 17889if ac_fn_c_try_compile "$LINENO"; then : 17890 xorg_cv_cc_flag_unknown_warning_option=yes 17891else 17892 xorg_cv_cc_flag_unknown_warning_option=no 17893fi 17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17895fi 17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17899 CFLAGS="$xorg_testset_save_CFLAGS" 17900fi 17901 17902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17905 fi 17906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17910 $as_echo_n "(cached) " >&6 17911else 17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17913/* end confdefs.h. */ 17914int i; 17915_ACEOF 17916if ac_fn_c_try_compile "$LINENO"; then : 17917 xorg_cv_cc_flag_unused_command_line_argument=yes 17918else 17919 xorg_cv_cc_flag_unused_command_line_argument=no 17920fi 17921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17922fi 17923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17926 CFLAGS="$xorg_testset_save_CFLAGS" 17927fi 17928 17929found="no" 17930 17931 if test $found = "no" ; then 17932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17934 fi 17935 17936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17938 fi 17939 17940 CFLAGS="$CFLAGS -Werror=attributes" 17941 17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17943$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17944 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17945 if eval \${$cacheid+:} false; then : 17946 $as_echo_n "(cached) " >&6 17947else 17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17949/* end confdefs.h. */ 17950int i; 17951int 17952main () 17953{ 17954 17955 ; 17956 return 0; 17957} 17958_ACEOF 17959if ac_fn_c_try_link "$LINENO"; then : 17960 eval $cacheid=yes 17961else 17962 eval $cacheid=no 17963fi 17964rm -f core conftest.err conftest.$ac_objext \ 17965 conftest$ac_exeext conftest.$ac_ext 17966fi 17967 17968 17969 CFLAGS="$xorg_testset_save_CFLAGS" 17970 17971 eval supported=\$$cacheid 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17973$as_echo "$supported" >&6; } 17974 if test "$supported" = "yes" ; then 17975 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17976 found="yes" 17977 fi 17978 fi 17979 17980 17981 17982if test "x$STRICT_COMPILE" = "xyes"; then 17983 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17984 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17985fi 17986 17987 17988 17989 17990 17991 17992cat >>confdefs.h <<_ACEOF 17993#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17994_ACEOF 17995 17996 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17997 if test "x$PVM" = "x"; then 17998 PVM="0" 17999 fi 18000 18001cat >>confdefs.h <<_ACEOF 18002#define PACKAGE_VERSION_MINOR $PVM 18003_ACEOF 18004 18005 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18006 if test "x$PVP" = "x"; then 18007 PVP="0" 18008 fi 18009 18010cat >>confdefs.h <<_ACEOF 18011#define PACKAGE_VERSION_PATCHLEVEL $PVP 18012_ACEOF 18013 18014 18015 18016CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18017mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18018|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18019echo 'git directory not found: installing possibly empty changelog.' >&2)" 18020 18021 18022 18023 18024macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18025INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18026mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18027|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18028echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18029 18030 18031 18032 18033 18034 18035if test x$APP_MAN_SUFFIX = x ; then 18036 APP_MAN_SUFFIX=1 18037fi 18038if test x$APP_MAN_DIR = x ; then 18039 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18040fi 18041 18042if test x$LIB_MAN_SUFFIX = x ; then 18043 LIB_MAN_SUFFIX=3 18044fi 18045if test x$LIB_MAN_DIR = x ; then 18046 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18047fi 18048 18049if test x$FILE_MAN_SUFFIX = x ; then 18050 case $host_os in 18051 solaris*) FILE_MAN_SUFFIX=4 ;; 18052 *) FILE_MAN_SUFFIX=5 ;; 18053 esac 18054fi 18055if test x$FILE_MAN_DIR = x ; then 18056 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18057fi 18058 18059if test x$MISC_MAN_SUFFIX = x ; then 18060 case $host_os in 18061 solaris*) MISC_MAN_SUFFIX=5 ;; 18062 *) MISC_MAN_SUFFIX=7 ;; 18063 esac 18064fi 18065if test x$MISC_MAN_DIR = x ; then 18066 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18067fi 18068 18069if test x$DRIVER_MAN_SUFFIX = x ; then 18070 case $host_os in 18071 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18072 *) DRIVER_MAN_SUFFIX=4 ;; 18073 esac 18074fi 18075if test x$DRIVER_MAN_DIR = x ; then 18076 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18077fi 18078 18079if test x$ADMIN_MAN_SUFFIX = x ; then 18080 case $host_os in 18081 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18082 *) ADMIN_MAN_SUFFIX=8 ;; 18083 esac 18084fi 18085if test x$ADMIN_MAN_DIR = x ; then 18086 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18087fi 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103XORG_MAN_PAGE="X Version 11" 18104 18105MAN_SUBSTS="\ 18106 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18107 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18108 -e 's|__xservername__|Xorg|g' \ 18109 -e 's|__xconfigfile__|xorg.conf|g' \ 18110 -e 's|__projectroot__|\$(prefix)|g' \ 18111 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18112 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18113 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18114 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18115 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18116 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18117 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18118 18119 18120 18121# Check whether --enable-silent-rules was given. 18122if test "${enable_silent_rules+set}" = set; then : 18123 enableval=$enable_silent_rules; 18124fi 18125 18126case $enable_silent_rules in # ((( 18127 yes) AM_DEFAULT_VERBOSITY=0;; 18128 no) AM_DEFAULT_VERBOSITY=1;; 18129 *) AM_DEFAULT_VERBOSITY=0;; 18130esac 18131am_make=${MAKE-make} 18132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18133$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18134if ${am_cv_make_support_nested_variables+:} false; then : 18135 $as_echo_n "(cached) " >&6 18136else 18137 if $as_echo 'TRUE=$(BAR$(V)) 18138BAR0=false 18139BAR1=true 18140V=1 18141am__doit: 18142 @$(TRUE) 18143.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18144 am_cv_make_support_nested_variables=yes 18145else 18146 am_cv_make_support_nested_variables=no 18147fi 18148fi 18149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18150$as_echo "$am_cv_make_support_nested_variables" >&6; } 18151if test $am_cv_make_support_nested_variables = yes; then 18152 AM_V='$(V)' 18153 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18154else 18155 AM_V=$AM_DEFAULT_VERBOSITY 18156 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18157fi 18158AM_BACKSLASH='\' 18159 18160 18161 18162 18163# Check whether --enable-specs was given. 18164if test "${enable_specs+set}" = set; then : 18165 enableval=$enable_specs; build_specs=$enableval 18166else 18167 build_specs=yes 18168fi 18169 18170 18171 if test x$build_specs = xyes; then 18172 ENABLE_SPECS_TRUE= 18173 ENABLE_SPECS_FALSE='#' 18174else 18175 ENABLE_SPECS_TRUE='#' 18176 ENABLE_SPECS_FALSE= 18177fi 18178 18179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18180$as_echo_n "checking whether to build functional specifications... " >&6; } 18181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18182$as_echo "$build_specs" >&6; } 18183 18184 18185 18186 18187 18188# Check whether --with-xmlto was given. 18189if test "${with_xmlto+set}" = set; then : 18190 withval=$with_xmlto; use_xmlto=$withval 18191else 18192 use_xmlto=auto 18193fi 18194 18195 18196 18197if test "x$use_xmlto" = x"auto"; then 18198 # Extract the first word of "xmlto", so it can be a program name with args. 18199set dummy xmlto; ac_word=$2 18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18201$as_echo_n "checking for $ac_word... " >&6; } 18202if ${ac_cv_path_XMLTO+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204else 18205 case $XMLTO in 18206 [\\/]* | ?:[\\/]*) 18207 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18208 ;; 18209 *) 18210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18211for as_dir in $PATH 18212do 18213 IFS=$as_save_IFS 18214 test -z "$as_dir" && as_dir=. 18215 for ac_exec_ext in '' $ac_executable_extensions; do 18216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18217 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18219 break 2 18220 fi 18221done 18222 done 18223IFS=$as_save_IFS 18224 18225 ;; 18226esac 18227fi 18228XMLTO=$ac_cv_path_XMLTO 18229if test -n "$XMLTO"; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18231$as_echo "$XMLTO" >&6; } 18232else 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18234$as_echo "no" >&6; } 18235fi 18236 18237 18238 if test "x$XMLTO" = "x"; then 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18240$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18241 have_xmlto=no 18242 else 18243 have_xmlto=yes 18244 fi 18245elif test "x$use_xmlto" = x"yes" ; then 18246 # Extract the first word of "xmlto", so it can be a program name with args. 18247set dummy xmlto; ac_word=$2 18248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18249$as_echo_n "checking for $ac_word... " >&6; } 18250if ${ac_cv_path_XMLTO+:} false; then : 18251 $as_echo_n "(cached) " >&6 18252else 18253 case $XMLTO in 18254 [\\/]* | ?:[\\/]*) 18255 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18256 ;; 18257 *) 18258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18259for as_dir in $PATH 18260do 18261 IFS=$as_save_IFS 18262 test -z "$as_dir" && as_dir=. 18263 for ac_exec_ext in '' $ac_executable_extensions; do 18264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18265 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18267 break 2 18268 fi 18269done 18270 done 18271IFS=$as_save_IFS 18272 18273 ;; 18274esac 18275fi 18276XMLTO=$ac_cv_path_XMLTO 18277if test -n "$XMLTO"; then 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18279$as_echo "$XMLTO" >&6; } 18280else 18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18282$as_echo "no" >&6; } 18283fi 18284 18285 18286 if test "x$XMLTO" = "x"; then 18287 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18288 fi 18289 have_xmlto=yes 18290elif test "x$use_xmlto" = x"no" ; then 18291 if test "x$XMLTO" != "x"; then 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18293$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18294 fi 18295 have_xmlto=no 18296else 18297 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18298fi 18299 18300# Test for a minimum version of xmlto, if provided. 18301if test "$have_xmlto" = yes; then 18302 # scrape the xmlto version 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18304$as_echo_n "checking the xmlto version... " >&6; } 18305 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18307$as_echo "$xmlto_version" >&6; } 18308 as_arg_v1=$xmlto_version 18309as_arg_v2=0.0.22 18310awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18311case $? in #( 18312 1) : 18313 if test "x$use_xmlto" = xauto; then 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18315$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18316 have_xmlto=no 18317 else 18318 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18319 fi ;; #( 18320 0) : 18321 ;; #( 18322 2) : 18323 ;; #( 18324 *) : 18325 ;; 18326esac 18327fi 18328 18329# Test for the ability of xmlto to generate a text target 18330have_xmlto_text=no 18331cat > conftest.xml << "EOF" 18332EOF 18333if test "$have_xmlto" = yes; then : 18334 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18335 have_xmlto_text=yes 18336else 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18338$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18339fi 18340fi 18341rm -f conftest.xml 18342 if test $have_xmlto_text = yes; then 18343 HAVE_XMLTO_TEXT_TRUE= 18344 HAVE_XMLTO_TEXT_FALSE='#' 18345else 18346 HAVE_XMLTO_TEXT_TRUE='#' 18347 HAVE_XMLTO_TEXT_FALSE= 18348fi 18349 18350 if test "$have_xmlto" = yes; then 18351 HAVE_XMLTO_TRUE= 18352 HAVE_XMLTO_FALSE='#' 18353else 18354 HAVE_XMLTO_TRUE='#' 18355 HAVE_XMLTO_FALSE= 18356fi 18357 18358 18359 18360 18361 18362 18363# Check whether --with-fop was given. 18364if test "${with_fop+set}" = set; then : 18365 withval=$with_fop; use_fop=$withval 18366else 18367 use_fop=no 18368fi 18369 18370 18371 18372if test "x$use_fop" = x"auto"; then 18373 # Extract the first word of "fop", so it can be a program name with args. 18374set dummy fop; ac_word=$2 18375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18376$as_echo_n "checking for $ac_word... " >&6; } 18377if ${ac_cv_path_FOP+:} false; then : 18378 $as_echo_n "(cached) " >&6 18379else 18380 case $FOP in 18381 [\\/]* | ?:[\\/]*) 18382 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18383 ;; 18384 *) 18385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18386for as_dir in $PATH 18387do 18388 IFS=$as_save_IFS 18389 test -z "$as_dir" && as_dir=. 18390 for ac_exec_ext in '' $ac_executable_extensions; do 18391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18392 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18394 break 2 18395 fi 18396done 18397 done 18398IFS=$as_save_IFS 18399 18400 ;; 18401esac 18402fi 18403FOP=$ac_cv_path_FOP 18404if test -n "$FOP"; then 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18406$as_echo "$FOP" >&6; } 18407else 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18409$as_echo "no" >&6; } 18410fi 18411 18412 18413 if test "x$FOP" = "x"; then 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18415$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18416 have_fop=no 18417 else 18418 have_fop=yes 18419 fi 18420elif test "x$use_fop" = x"yes" ; then 18421 # Extract the first word of "fop", so it can be a program name with args. 18422set dummy fop; ac_word=$2 18423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18424$as_echo_n "checking for $ac_word... " >&6; } 18425if ${ac_cv_path_FOP+:} false; then : 18426 $as_echo_n "(cached) " >&6 18427else 18428 case $FOP in 18429 [\\/]* | ?:[\\/]*) 18430 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18431 ;; 18432 *) 18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18434for as_dir in $PATH 18435do 18436 IFS=$as_save_IFS 18437 test -z "$as_dir" && as_dir=. 18438 for ac_exec_ext in '' $ac_executable_extensions; do 18439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18440 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18442 break 2 18443 fi 18444done 18445 done 18446IFS=$as_save_IFS 18447 18448 ;; 18449esac 18450fi 18451FOP=$ac_cv_path_FOP 18452if test -n "$FOP"; then 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18454$as_echo "$FOP" >&6; } 18455else 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18457$as_echo "no" >&6; } 18458fi 18459 18460 18461 if test "x$FOP" = "x"; then 18462 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18463 fi 18464 have_fop=yes 18465elif test "x$use_fop" = x"no" ; then 18466 if test "x$FOP" != "x"; then 18467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18468$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18469 fi 18470 have_fop=no 18471else 18472 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18473fi 18474 18475# Test for a minimum version of fop, if provided. 18476 18477 if test "$have_fop" = yes; then 18478 HAVE_FOP_TRUE= 18479 HAVE_FOP_FALSE='#' 18480else 18481 HAVE_FOP_TRUE='#' 18482 HAVE_FOP_FALSE= 18483fi 18484 18485 18486 18487 18488# Preserves the interface, should it be implemented later 18489 18490 18491 18492# Check whether --with-xsltproc was given. 18493if test "${with_xsltproc+set}" = set; then : 18494 withval=$with_xsltproc; use_xsltproc=$withval 18495else 18496 use_xsltproc=auto 18497fi 18498 18499 18500 18501if test "x$use_xsltproc" = x"auto"; then 18502 # Extract the first word of "xsltproc", so it can be a program name with args. 18503set dummy xsltproc; ac_word=$2 18504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18505$as_echo_n "checking for $ac_word... " >&6; } 18506if ${ac_cv_path_XSLTPROC+:} false; then : 18507 $as_echo_n "(cached) " >&6 18508else 18509 case $XSLTPROC in 18510 [\\/]* | ?:[\\/]*) 18511 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18512 ;; 18513 *) 18514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18515for as_dir in $PATH 18516do 18517 IFS=$as_save_IFS 18518 test -z "$as_dir" && as_dir=. 18519 for ac_exec_ext in '' $ac_executable_extensions; do 18520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18521 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18523 break 2 18524 fi 18525done 18526 done 18527IFS=$as_save_IFS 18528 18529 ;; 18530esac 18531fi 18532XSLTPROC=$ac_cv_path_XSLTPROC 18533if test -n "$XSLTPROC"; then 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18535$as_echo "$XSLTPROC" >&6; } 18536else 18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18538$as_echo "no" >&6; } 18539fi 18540 18541 18542 if test "x$XSLTPROC" = "x"; then 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18544$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18545 have_xsltproc=no 18546 else 18547 have_xsltproc=yes 18548 fi 18549elif test "x$use_xsltproc" = x"yes" ; then 18550 # Extract the first word of "xsltproc", so it can be a program name with args. 18551set dummy xsltproc; ac_word=$2 18552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18553$as_echo_n "checking for $ac_word... " >&6; } 18554if ${ac_cv_path_XSLTPROC+:} false; then : 18555 $as_echo_n "(cached) " >&6 18556else 18557 case $XSLTPROC in 18558 [\\/]* | ?:[\\/]*) 18559 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18560 ;; 18561 *) 18562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18563for as_dir in $PATH 18564do 18565 IFS=$as_save_IFS 18566 test -z "$as_dir" && as_dir=. 18567 for ac_exec_ext in '' $ac_executable_extensions; do 18568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18569 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18571 break 2 18572 fi 18573done 18574 done 18575IFS=$as_save_IFS 18576 18577 ;; 18578esac 18579fi 18580XSLTPROC=$ac_cv_path_XSLTPROC 18581if test -n "$XSLTPROC"; then 18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18583$as_echo "$XSLTPROC" >&6; } 18584else 18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18586$as_echo "no" >&6; } 18587fi 18588 18589 18590 if test "x$XSLTPROC" = "x"; then 18591 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18592 fi 18593 have_xsltproc=yes 18594elif test "x$use_xsltproc" = x"no" ; then 18595 if test "x$XSLTPROC" != "x"; then 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18597$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18598 fi 18599 have_xsltproc=no 18600else 18601 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18602fi 18603 18604 if test "$have_xsltproc" = yes; then 18605 HAVE_XSLTPROC_TRUE= 18606 HAVE_XSLTPROC_FALSE='#' 18607else 18608 HAVE_XSLTPROC_TRUE='#' 18609 HAVE_XSLTPROC_FALSE= 18610fi 18611 18612 18613 18614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 18615$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; } 18616XORG_SGML_PATH= 18617if test -n "$PKG_CONFIG" && \ 18618 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 18619 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 18620 ac_status=$? 18621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18622 test $ac_status = 0; }; then 18623 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18624else 18625 : 18626 18627fi 18628 18629# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18630# the path and the name of the doc stylesheet 18631if test "x$XORG_SGML_PATH" != "x" ; then 18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18633$as_echo "$XORG_SGML_PATH" >&6; } 18634 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18635 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18636else 18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18638$as_echo "no" >&6; } 18639fi 18640 18641 18642 18643 18644 if test "x$XSL_STYLESHEET" != "x"; then 18645 HAVE_STYLESHEETS_TRUE= 18646 HAVE_STYLESHEETS_FALSE='#' 18647else 18648 HAVE_STYLESHEETS_TRUE='#' 18649 HAVE_STYLESHEETS_FALSE= 18650fi 18651 18652 18653 18654 18655for ac_prog in cpp 18656do 18657 # Extract the first word of "$ac_prog", so it can be a program name with args. 18658set dummy $ac_prog; ac_word=$2 18659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18660$as_echo_n "checking for $ac_word... " >&6; } 18661if ${ac_cv_path_RAWCPP+:} false; then : 18662 $as_echo_n "(cached) " >&6 18663else 18664 case $RAWCPP in 18665 [\\/]* | ?:[\\/]*) 18666 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 18667 ;; 18668 *) 18669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18670as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 18671for as_dir in $as_dummy 18672do 18673 IFS=$as_save_IFS 18674 test -z "$as_dir" && as_dir=. 18675 for ac_exec_ext in '' $ac_executable_extensions; do 18676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18677 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 18678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18679 break 2 18680 fi 18681done 18682 done 18683IFS=$as_save_IFS 18684 18685 ;; 18686esac 18687fi 18688RAWCPP=$ac_cv_path_RAWCPP 18689if test -n "$RAWCPP"; then 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 18691$as_echo "$RAWCPP" >&6; } 18692else 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18694$as_echo "no" >&6; } 18695fi 18696 18697 18698 test -n "$RAWCPP" && break 18699done 18700test -n "$RAWCPP" || RAWCPP="${CPP}" 18701 18702 18703# Check for flag to avoid builtin definitions - assumes unix is predefined, 18704# which is not the best choice for supporting other OS'es, but covers most 18705# of the ones we need for now. 18706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 18707$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 18708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18709/* end confdefs.h. */ 18710Does cpp redefine unix ? 18711_ACEOF 18712if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18714$as_echo "no" >&6; } 18715else 18716 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18717 RAWCPPFLAGS=-undef 18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18719$as_echo "yes" >&6; } 18720 # under Cygwin unix is still defined even with -undef 18721 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18722 RAWCPPFLAGS="-undef -ansi" 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 18724$as_echo "yes, with -ansi" >&6; } 18725 else 18726 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 18727 fi 18728fi 18729rm -f conftest.$ac_ext 18730 18731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 18732$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 18733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18734/* end confdefs.h. */ 18735Does cpp preserve "whitespace"? 18736_ACEOF 18737if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18739$as_echo "no" >&6; } 18740else 18741 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18742 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18744$as_echo "yes" >&6; } 18745 else 18746 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 18747 fi 18748fi 18749rm -f conftest.$ac_ext 18750 18751 18752 18753 18754# Preserves the interface, should it be implemented later 18755 18756 18757 18758# Check whether --with-perl was given. 18759if test "${with_perl+set}" = set; then : 18760 withval=$with_perl; use_perl=$withval 18761else 18762 use_perl=auto 18763fi 18764 18765 18766 18767if test "x$use_perl" = x"auto"; then 18768 # Extract the first word of "perl", so it can be a program name with args. 18769set dummy perl; ac_word=$2 18770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18771$as_echo_n "checking for $ac_word... " >&6; } 18772if ${ac_cv_path_PERL+:} false; then : 18773 $as_echo_n "(cached) " >&6 18774else 18775 case $PERL in 18776 [\\/]* | ?:[\\/]*) 18777 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18778 ;; 18779 *) 18780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18781for as_dir in $PATH 18782do 18783 IFS=$as_save_IFS 18784 test -z "$as_dir" && as_dir=. 18785 for ac_exec_ext in '' $ac_executable_extensions; do 18786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18787 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18789 break 2 18790 fi 18791done 18792 done 18793IFS=$as_save_IFS 18794 18795 ;; 18796esac 18797fi 18798PERL=$ac_cv_path_PERL 18799if test -n "$PERL"; then 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18801$as_echo "$PERL" >&6; } 18802else 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18804$as_echo "no" >&6; } 18805fi 18806 18807 18808 if test "x$PERL" = "x"; then 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 18810$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 18811 have_perl=no 18812 else 18813 have_perl=yes 18814 fi 18815elif test "x$use_perl" = x"yes" ; then 18816 # Extract the first word of "perl", so it can be a program name with args. 18817set dummy perl; ac_word=$2 18818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18819$as_echo_n "checking for $ac_word... " >&6; } 18820if ${ac_cv_path_PERL+:} false; then : 18821 $as_echo_n "(cached) " >&6 18822else 18823 case $PERL in 18824 [\\/]* | ?:[\\/]*) 18825 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18826 ;; 18827 *) 18828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18829for as_dir in $PATH 18830do 18831 IFS=$as_save_IFS 18832 test -z "$as_dir" && as_dir=. 18833 for ac_exec_ext in '' $ac_executable_extensions; do 18834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18835 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18837 break 2 18838 fi 18839done 18840 done 18841IFS=$as_save_IFS 18842 18843 ;; 18844esac 18845fi 18846PERL=$ac_cv_path_PERL 18847if test -n "$PERL"; then 18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18849$as_echo "$PERL" >&6; } 18850else 18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18852$as_echo "no" >&6; } 18853fi 18854 18855 18856 if test "x$PERL" = "x"; then 18857 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 18858 fi 18859 have_perl=yes 18860elif test "x$use_perl" = x"no" ; then 18861 if test "x$PERL" != "x"; then 18862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 18863$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 18864 fi 18865 have_perl=no 18866else 18867 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 18868fi 18869 18870 if test "$have_perl" = yes; then 18871 HAVE_PERL_TRUE= 18872 HAVE_PERL_FALSE='#' 18873else 18874 HAVE_PERL_TRUE='#' 18875 HAVE_PERL_FALSE= 18876fi 18877 18878 18879 18880# Required when PKG_CHECK_MODULES called within an if statement 18881 18882 18883if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18884 if test -n "$ac_tool_prefix"; then 18885 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18886set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18888$as_echo_n "checking for $ac_word... " >&6; } 18889if ${ac_cv_path_PKG_CONFIG+:} false; then : 18890 $as_echo_n "(cached) " >&6 18891else 18892 case $PKG_CONFIG in 18893 [\\/]* | ?:[\\/]*) 18894 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18895 ;; 18896 *) 18897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18898for as_dir in $PATH 18899do 18900 IFS=$as_save_IFS 18901 test -z "$as_dir" && as_dir=. 18902 for ac_exec_ext in '' $ac_executable_extensions; do 18903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18904 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18906 break 2 18907 fi 18908done 18909 done 18910IFS=$as_save_IFS 18911 18912 ;; 18913esac 18914fi 18915PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18916if test -n "$PKG_CONFIG"; then 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18918$as_echo "$PKG_CONFIG" >&6; } 18919else 18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18921$as_echo "no" >&6; } 18922fi 18923 18924 18925fi 18926if test -z "$ac_cv_path_PKG_CONFIG"; then 18927 ac_pt_PKG_CONFIG=$PKG_CONFIG 18928 # Extract the first word of "pkg-config", so it can be a program name with args. 18929set dummy pkg-config; ac_word=$2 18930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18931$as_echo_n "checking for $ac_word... " >&6; } 18932if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18933 $as_echo_n "(cached) " >&6 18934else 18935 case $ac_pt_PKG_CONFIG in 18936 [\\/]* | ?:[\\/]*) 18937 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18938 ;; 18939 *) 18940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18941for as_dir in $PATH 18942do 18943 IFS=$as_save_IFS 18944 test -z "$as_dir" && as_dir=. 18945 for ac_exec_ext in '' $ac_executable_extensions; do 18946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18947 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18949 break 2 18950 fi 18951done 18952 done 18953IFS=$as_save_IFS 18954 18955 ;; 18956esac 18957fi 18958ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18959if test -n "$ac_pt_PKG_CONFIG"; then 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18961$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18962else 18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18964$as_echo "no" >&6; } 18965fi 18966 18967 if test "x$ac_pt_PKG_CONFIG" = x; then 18968 PKG_CONFIG="" 18969 else 18970 case $cross_compiling:$ac_tool_warned in 18971yes:) 18972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18974ac_tool_warned=yes ;; 18975esac 18976 PKG_CONFIG=$ac_pt_PKG_CONFIG 18977 fi 18978else 18979 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18980fi 18981 18982fi 18983if test -n "$PKG_CONFIG"; then 18984 _pkg_min_version=0.9.0 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18986$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18987 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18989$as_echo "yes" >&6; } 18990 else 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18992$as_echo "no" >&6; } 18993 PKG_CONFIG="" 18994 fi 18995 18996fi 18997 18998if test x"$CC_FOR_BUILD" = x; then 18999 if test x"$cross_compiling" = xyes; then 19000 for ac_prog in gcc cc 19001do 19002 # Extract the first word of "$ac_prog", so it can be a program name with args. 19003set dummy $ac_prog; ac_word=$2 19004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19005$as_echo_n "checking for $ac_word... " >&6; } 19006if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 19007 $as_echo_n "(cached) " >&6 19008else 19009 if test -n "$CC_FOR_BUILD"; then 19010 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 19011else 19012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19013for as_dir in $PATH 19014do 19015 IFS=$as_save_IFS 19016 test -z "$as_dir" && as_dir=. 19017 for ac_exec_ext in '' $ac_executable_extensions; do 19018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19019 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 19020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19021 break 2 19022 fi 19023done 19024 done 19025IFS=$as_save_IFS 19026 19027fi 19028fi 19029CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 19030if test -n "$CC_FOR_BUILD"; then 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 19032$as_echo "$CC_FOR_BUILD" >&6; } 19033else 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19035$as_echo "no" >&6; } 19036fi 19037 19038 19039 test -n "$CC_FOR_BUILD" && break 19040done 19041 19042 else 19043 CC_FOR_BUILD="$CC" 19044 fi 19045fi 19046 19047 19048if test x"$CPPFLAGS_FOR_BUILD" = x; then 19049 if test ! x"$cross_compiling" = xyes; then 19050 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 19051 fi 19052fi 19053 19054 19055if test x"$CFLAGS_FOR_BUILD" = x; then 19056 if test ! x"$cross_compiling" = xyes; then 19057 CFLAGS_FOR_BUILD=${CFLAGS} 19058 fi 19059fi 19060 19061 19062if test x"$LDFLAGS_FOR_BUILD" = x; then 19063 if test ! x"$cross_compiling" = xyes; then 19064 LDFLAGS_FOR_BUILD=${LDFLAGS} 19065 fi 19066fi 19067 19068 19069# Checks for pkg-config packages 19070 19071# Always required 19072X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92' 19073X11_EXTRA_DEPS="xcb >= 1.1.92" 19074 19075 19076 19077if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19078 if test -n "$ac_tool_prefix"; then 19079 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19080set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19082$as_echo_n "checking for $ac_word... " >&6; } 19083if ${ac_cv_path_PKG_CONFIG+:} false; then : 19084 $as_echo_n "(cached) " >&6 19085else 19086 case $PKG_CONFIG in 19087 [\\/]* | ?:[\\/]*) 19088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19089 ;; 19090 *) 19091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19092for as_dir in $PATH 19093do 19094 IFS=$as_save_IFS 19095 test -z "$as_dir" && as_dir=. 19096 for ac_exec_ext in '' $ac_executable_extensions; do 19097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19100 break 2 19101 fi 19102done 19103 done 19104IFS=$as_save_IFS 19105 19106 ;; 19107esac 19108fi 19109PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19110if test -n "$PKG_CONFIG"; then 19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19112$as_echo "$PKG_CONFIG" >&6; } 19113else 19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19115$as_echo "no" >&6; } 19116fi 19117 19118 19119fi 19120if test -z "$ac_cv_path_PKG_CONFIG"; then 19121 ac_pt_PKG_CONFIG=$PKG_CONFIG 19122 # Extract the first word of "pkg-config", so it can be a program name with args. 19123set dummy pkg-config; ac_word=$2 19124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19125$as_echo_n "checking for $ac_word... " >&6; } 19126if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19127 $as_echo_n "(cached) " >&6 19128else 19129 case $ac_pt_PKG_CONFIG in 19130 [\\/]* | ?:[\\/]*) 19131 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19132 ;; 19133 *) 19134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19135for as_dir in $PATH 19136do 19137 IFS=$as_save_IFS 19138 test -z "$as_dir" && as_dir=. 19139 for ac_exec_ext in '' $ac_executable_extensions; do 19140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19141 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19143 break 2 19144 fi 19145done 19146 done 19147IFS=$as_save_IFS 19148 19149 ;; 19150esac 19151fi 19152ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19153if test -n "$ac_pt_PKG_CONFIG"; then 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19155$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19156else 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19158$as_echo "no" >&6; } 19159fi 19160 19161 if test "x$ac_pt_PKG_CONFIG" = x; then 19162 PKG_CONFIG="" 19163 else 19164 case $cross_compiling:$ac_tool_warned in 19165yes:) 19166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19168ac_tool_warned=yes ;; 19169esac 19170 PKG_CONFIG=$ac_pt_PKG_CONFIG 19171 fi 19172else 19173 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19174fi 19175 19176fi 19177if test -n "$PKG_CONFIG"; then 19178 _pkg_min_version=0.9.0 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19180$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19181 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19183$as_echo "yes" >&6; } 19184 else 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19186$as_echo "no" >&6; } 19187 PKG_CONFIG="" 19188 fi 19189 19190fi 19191 19192 19193 19194# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 19195# was not expanded, since libX11 with no transport types is rather useless. 19196# 19197# If you're seeing an error here, be sure you installed the lib/xtrans module 19198# first and if it's not in the default location, that you set the ACLOCAL 19199# environment variable to find it, such as: 19200# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 19201 19202 19203# Transport selection macro from xtrans.m4 19204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 19205$as_echo_n "checking return type of signal handlers... " >&6; } 19206if ${ac_cv_type_signal+:} false; then : 19207 $as_echo_n "(cached) " >&6 19208else 19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19210/* end confdefs.h. */ 19211#include <sys/types.h> 19212#include <signal.h> 19213 19214int 19215main () 19216{ 19217return *(signal (0, 0)) (0) == 1; 19218 ; 19219 return 0; 19220} 19221_ACEOF 19222if ac_fn_c_try_compile "$LINENO"; then : 19223 ac_cv_type_signal=int 19224else 19225 ac_cv_type_signal=void 19226fi 19227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19228fi 19229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 19230$as_echo "$ac_cv_type_signal" >&6; } 19231 19232cat >>confdefs.h <<_ACEOF 19233#define RETSIGTYPE $ac_cv_type_signal 19234_ACEOF 19235 19236 19237 19238 19239 19240 case $host_os in 19241 mingw*) unixdef="no" ;; 19242 *) unixdef="yes" ;; 19243 esac 19244 # Check whether --enable-unix-transport was given. 19245if test "${enable_unix_transport+set}" = set; then : 19246 enableval=$enable_unix_transport; UNIXCONN=$enableval 19247else 19248 UNIXCONN=$unixdef 19249fi 19250 19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 19252$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 19253 if test "$UNIXCONN" = "yes"; then 19254 19255$as_echo "#define UNIXCONN 1" >>confdefs.h 19256 19257 fi 19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 19259$as_echo "$UNIXCONN" >&6; } 19260 # Check whether --enable-tcp-transport was given. 19261if test "${enable_tcp_transport+set}" = set; then : 19262 enableval=$enable_tcp_transport; TCPCONN=$enableval 19263else 19264 TCPCONN=yes 19265fi 19266 19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 19268$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 19270$as_echo "$TCPCONN" >&6; } 19271 if test "$TCPCONN" = "yes"; then 19272 19273$as_echo "#define TCPCONN 1" >>confdefs.h 19274 19275 19276 # SVR4 hides these in libraries other than libc 19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19278$as_echo_n "checking for library containing socket... " >&6; } 19279if ${ac_cv_search_socket+:} false; then : 19280 $as_echo_n "(cached) " >&6 19281else 19282 ac_func_search_save_LIBS=$LIBS 19283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19284/* end confdefs.h. */ 19285 19286/* Override any GCC internal prototype to avoid an error. 19287 Use char because int might match the return type of a GCC 19288 builtin and then its argument prototype would still apply. */ 19289#ifdef __cplusplus 19290extern "C" 19291#endif 19292char socket (); 19293int 19294main () 19295{ 19296return socket (); 19297 ; 19298 return 0; 19299} 19300_ACEOF 19301for ac_lib in '' socket; do 19302 if test -z "$ac_lib"; then 19303 ac_res="none required" 19304 else 19305 ac_res=-l$ac_lib 19306 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19307 fi 19308 if ac_fn_c_try_link "$LINENO"; then : 19309 ac_cv_search_socket=$ac_res 19310fi 19311rm -f core conftest.err conftest.$ac_objext \ 19312 conftest$ac_exeext 19313 if ${ac_cv_search_socket+:} false; then : 19314 break 19315fi 19316done 19317if ${ac_cv_search_socket+:} false; then : 19318 19319else 19320 ac_cv_search_socket=no 19321fi 19322rm conftest.$ac_ext 19323LIBS=$ac_func_search_save_LIBS 19324fi 19325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19326$as_echo "$ac_cv_search_socket" >&6; } 19327ac_res=$ac_cv_search_socket 19328if test "$ac_res" != no; then : 19329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19330 19331fi 19332 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19334$as_echo_n "checking for library containing gethostbyname... " >&6; } 19335if ${ac_cv_search_gethostbyname+:} false; then : 19336 $as_echo_n "(cached) " >&6 19337else 19338 ac_func_search_save_LIBS=$LIBS 19339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19340/* end confdefs.h. */ 19341 19342/* Override any GCC internal prototype to avoid an error. 19343 Use char because int might match the return type of a GCC 19344 builtin and then its argument prototype would still apply. */ 19345#ifdef __cplusplus 19346extern "C" 19347#endif 19348char gethostbyname (); 19349int 19350main () 19351{ 19352return gethostbyname (); 19353 ; 19354 return 0; 19355} 19356_ACEOF 19357for ac_lib in '' nsl; do 19358 if test -z "$ac_lib"; then 19359 ac_res="none required" 19360 else 19361 ac_res=-l$ac_lib 19362 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19363 fi 19364 if ac_fn_c_try_link "$LINENO"; then : 19365 ac_cv_search_gethostbyname=$ac_res 19366fi 19367rm -f core conftest.err conftest.$ac_objext \ 19368 conftest$ac_exeext 19369 if ${ac_cv_search_gethostbyname+:} false; then : 19370 break 19371fi 19372done 19373if ${ac_cv_search_gethostbyname+:} false; then : 19374 19375else 19376 ac_cv_search_gethostbyname=no 19377fi 19378rm conftest.$ac_ext 19379LIBS=$ac_func_search_save_LIBS 19380fi 19381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19382$as_echo "$ac_cv_search_gethostbyname" >&6; } 19383ac_res=$ac_cv_search_gethostbyname 19384if test "$ac_res" != no; then : 19385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19386 19387fi 19388 19389 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19391$as_echo_n "checking for main in -lws2_32... " >&6; } 19392if ${ac_cv_lib_ws2_32_main+:} false; then : 19393 $as_echo_n "(cached) " >&6 19394else 19395 ac_check_lib_save_LIBS=$LIBS 19396LIBS="-lws2_32 $LIBS" 19397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19398/* end confdefs.h. */ 19399 19400 19401int 19402main () 19403{ 19404return main (); 19405 ; 19406 return 0; 19407} 19408_ACEOF 19409if ac_fn_c_try_link "$LINENO"; then : 19410 ac_cv_lib_ws2_32_main=yes 19411else 19412 ac_cv_lib_ws2_32_main=no 19413fi 19414rm -f core conftest.err conftest.$ac_objext \ 19415 conftest$ac_exeext conftest.$ac_ext 19416LIBS=$ac_check_lib_save_LIBS 19417fi 19418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19419$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19420if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19421 cat >>confdefs.h <<_ACEOF 19422#define HAVE_LIBWS2_32 1 19423_ACEOF 19424 19425 LIBS="-lws2_32 $LIBS" 19426 19427fi 19428ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 19429 19430 fi 19431 19432 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 19433 # Check whether --enable-ipv6 was given. 19434if test "${enable_ipv6+set}" = set; then : 19435 enableval=$enable_ipv6; IPV6CONN=$enableval 19436else 19437 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19438if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19439 IPV6CONN=yes 19440else 19441 IPV6CONN=no 19442fi 19443 19444fi 19445 19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 19447$as_echo_n "checking if IPv6 support should be built... " >&6; } 19448 if test "$IPV6CONN" = "yes"; then 19449 19450$as_echo "#define IPv6 1" >>confdefs.h 19451 19452 fi 19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 19454$as_echo "$IPV6CONN" >&6; } 19455 19456 # 4.3BSD-Reno added a new member to struct sockaddr_in 19457 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 19458#include <sys/types.h> 19459#include <sys/socket.h> 19460#include <netinet/in.h> 19461 19462" 19463if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 19464 19465$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 19466 19467fi 19468 19469 19470 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 19471 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 19472$ac_includes_default 19473#include <sys/socket.h> 19474" 19475if test "x$ac_cv_type_socklen_t" = xyes; then : 19476 19477cat >>confdefs.h <<_ACEOF 19478#define HAVE_SOCKLEN_T 1 19479_ACEOF 19480 19481 19482fi 19483 19484 19485 19486 fi 19487 case $host_os in 19488 solaris*|sco*|sysv4*) localdef="yes" ;; 19489 *) localdef="no" ;; 19490 esac 19491 # Check whether --enable-local-transport was given. 19492if test "${enable_local_transport+set}" = set; then : 19493 enableval=$enable_local_transport; LOCALCONN=$enableval 19494else 19495 LOCALCONN=$localdef 19496fi 19497 19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 19499$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 19501$as_echo "$LOCALCONN" >&6; } 19502 if test "$LOCALCONN" = "yes"; then 19503 19504$as_echo "#define LOCALCONN 1" >>confdefs.h 19505 19506 fi 19507 19508 19509 19510# Secure RPC detection macro from xtrans.m4 19511 19512 # Check whether --enable-secure-rpc was given. 19513if test "${enable_secure_rpc+set}" = set; then : 19514 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 19515else 19516 SECURE_RPC="try" 19517fi 19518 19519 19520 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 19521 FOUND_SECURE_RPC="no" 19522 for ac_func in authdes_seccreate authdes_create 19523do : 19524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19525ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19526if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19527 cat >>confdefs.h <<_ACEOF 19528#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19529_ACEOF 19530 FOUND_SECURE_RPC="yes" 19531fi 19532done 19533 19534 if test "x$FOUND_SECURE_RPC" = "xno" ; then 19535 if test "x$SECURE_RPC" = "xyes" ; then 19536 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 19537 fi 19538 SECURE_RPC="no" 19539 else 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 19541$as_echo_n "checking for library containing getsecretkey... " >&6; } 19542if ${ac_cv_search_getsecretkey+:} false; then : 19543 $as_echo_n "(cached) " >&6 19544else 19545 ac_func_search_save_LIBS=$LIBS 19546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19547/* end confdefs.h. */ 19548 19549/* Override any GCC internal prototype to avoid an error. 19550 Use char because int might match the return type of a GCC 19551 builtin and then its argument prototype would still apply. */ 19552#ifdef __cplusplus 19553extern "C" 19554#endif 19555char getsecretkey (); 19556int 19557main () 19558{ 19559return getsecretkey (); 19560 ; 19561 return 0; 19562} 19563_ACEOF 19564for ac_lib in '' rpcsvc; do 19565 if test -z "$ac_lib"; then 19566 ac_res="none required" 19567 else 19568 ac_res=-l$ac_lib 19569 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19570 fi 19571 if ac_fn_c_try_link "$LINENO"; then : 19572 ac_cv_search_getsecretkey=$ac_res 19573fi 19574rm -f core conftest.err conftest.$ac_objext \ 19575 conftest$ac_exeext 19576 if ${ac_cv_search_getsecretkey+:} false; then : 19577 break 19578fi 19579done 19580if ${ac_cv_search_getsecretkey+:} false; then : 19581 19582else 19583 ac_cv_search_getsecretkey=no 19584fi 19585rm conftest.$ac_ext 19586LIBS=$ac_func_search_save_LIBS 19587fi 19588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 19589$as_echo "$ac_cv_search_getsecretkey" >&6; } 19590ac_res=$ac_cv_search_getsecretkey 19591if test "$ac_res" != no; then : 19592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19593 19594fi 19595 19596 SECURE_RPC="yes" 19597 fi 19598 fi 19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 19600$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 19601 if test "x$SECURE_RPC" = "xyes" ; then 19602 19603$as_echo "#define SECURE_RPC 1" >>confdefs.h 19604 19605 fi 19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 19607$as_echo "$SECURE_RPC" >&6; } 19608 19609 19610# Preferred order to try transports for local connections 19611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5 19612$as_echo_n "checking what order to try transports in for local connections... " >&6; } 19613DEFAULT_LOCAL_TRANS="" 19614case $host_os in 19615 solaris*) 19616 # On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were 19617 # faster than Unix domain sockets, but on Solaris 10 & later, 19618 # Unix domain sockets are faster now. 19619 if test "$UNIXCONN" = "yes" ; then 19620 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19621 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19622 fi 19623 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 19624 fi 19625 if test "$LOCALCONN" = "yes" ; then 19626 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19627 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19628 fi 19629 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 19630 fi 19631 if test "$TCPCONN" = "yes" ; then 19632 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19633 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19634 fi 19635 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19636 fi 19637 ;; 19638 linux*) 19639 # LOCAL_TRANS is used for abstract sockets. 19640 if test "$UNIXCONN" = "yes" ; then 19641 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19642 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19643 fi 19644 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS" 19645 fi 19646 if test "$TCPCONN" = "yes" ; then 19647 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19648 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19649 fi 19650 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19651 fi 19652 ;; 19653 *) 19654 if test "$LOCALCONN" = "yes" ; then 19655 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19656 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19657 fi 19658 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 19659 fi 19660 if test "$UNIXCONN" = "yes" ; then 19661 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19662 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19663 fi 19664 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 19665 fi 19666 if test "$TCPCONN" = "yes" ; then 19667 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19668 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19669 fi 19670 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19671 fi 19672 ;; 19673esac 19674 19675 19676# Check whether --with-local-transport-order was given. 19677if test "${with_local_transport_order+set}" = set; then : 19678 withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval 19679else 19680 LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS 19681fi 19682 19683 19684cat >>confdefs.h <<_ACEOF 19685#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST 19686_ACEOF 19687 19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5 19689$as_echo "$LOCAL_TRANSPORT_LIST" >&6; } 19690 19691# Check for dlopen 19692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 19693$as_echo_n "checking if run-time linking is supported... " >&6; } 19694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 19695$as_echo_n "checking for library containing dlopen... " >&6; } 19696if ${ac_cv_search_dlopen+:} false; then : 19697 $as_echo_n "(cached) " >&6 19698else 19699 ac_func_search_save_LIBS=$LIBS 19700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19701/* end confdefs.h. */ 19702 19703/* Override any GCC internal prototype to avoid an error. 19704 Use char because int might match the return type of a GCC 19705 builtin and then its argument prototype would still apply. */ 19706#ifdef __cplusplus 19707extern "C" 19708#endif 19709char dlopen (); 19710int 19711main () 19712{ 19713return dlopen (); 19714 ; 19715 return 0; 19716} 19717_ACEOF 19718for ac_lib in '' dl svld; do 19719 if test -z "$ac_lib"; then 19720 ac_res="none required" 19721 else 19722 ac_res=-l$ac_lib 19723 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19724 fi 19725 if ac_fn_c_try_link "$LINENO"; then : 19726 ac_cv_search_dlopen=$ac_res 19727fi 19728rm -f core conftest.err conftest.$ac_objext \ 19729 conftest$ac_exeext 19730 if ${ac_cv_search_dlopen+:} false; then : 19731 break 19732fi 19733done 19734if ${ac_cv_search_dlopen+:} false; then : 19735 19736else 19737 ac_cv_search_dlopen=no 19738fi 19739rm conftest.$ac_ext 19740LIBS=$ac_func_search_save_LIBS 19741fi 19742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 19743$as_echo "$ac_cv_search_dlopen" >&6; } 19744ac_res=$ac_cv_search_dlopen 19745if test "$ac_res" != no; then : 19746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19747 19748fi 19749 19750if test "x$ac_cv_search_dlopen" = xno; then 19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 19752$as_echo_n "checking for library containing shl_load... " >&6; } 19753if ${ac_cv_search_shl_load+:} false; then : 19754 $as_echo_n "(cached) " >&6 19755else 19756 ac_func_search_save_LIBS=$LIBS 19757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19758/* end confdefs.h. */ 19759 19760/* Override any GCC internal prototype to avoid an error. 19761 Use char because int might match the return type of a GCC 19762 builtin and then its argument prototype would still apply. */ 19763#ifdef __cplusplus 19764extern "C" 19765#endif 19766char shl_load (); 19767int 19768main () 19769{ 19770return shl_load (); 19771 ; 19772 return 0; 19773} 19774_ACEOF 19775for ac_lib in '' dld; do 19776 if test -z "$ac_lib"; then 19777 ac_res="none required" 19778 else 19779 ac_res=-l$ac_lib 19780 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19781 fi 19782 if ac_fn_c_try_link "$LINENO"; then : 19783 ac_cv_search_shl_load=$ac_res 19784fi 19785rm -f core conftest.err conftest.$ac_objext \ 19786 conftest$ac_exeext 19787 if ${ac_cv_search_shl_load+:} false; then : 19788 break 19789fi 19790done 19791if ${ac_cv_search_shl_load+:} false; then : 19792 19793else 19794 ac_cv_search_shl_load=no 19795fi 19796rm conftest.$ac_ext 19797LIBS=$ac_func_search_save_LIBS 19798fi 19799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 19800$as_echo "$ac_cv_search_shl_load" >&6; } 19801ac_res=$ac_cv_search_shl_load 19802if test "$ac_res" != no; then : 19803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19804 19805fi 19806 19807 if test "x$ac_cv_search_shl_load" != xno; then 19808 19809$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 19810 19811 for ac_header in dl.h 19812do : 19813 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 19814if test "x$ac_cv_header_dl_h" = xyes; then : 19815 cat >>confdefs.h <<_ACEOF 19816#define HAVE_DL_H 1 19817_ACEOF 19818 19819fi 19820 19821done 19822 19823 fi 19824else 19825 19826$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 19827 19828 for ac_header in dlfcn.h 19829do : 19830 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 19831if test "x$ac_cv_header_dlfcn_h" = xyes; then : 19832 cat >>confdefs.h <<_ACEOF 19833#define HAVE_DLFCN_H 1 19834_ACEOF 19835 19836fi 19837 19838done 19839 19840fi 19841if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then 19842 HAVE_LOADABLE_MODULES=yes 19843else 19844 HAVE_LOADABLE_MODULES=no 19845fi 19846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 19847$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 19848 19849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 19850$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 19851# Check whether --enable-loadable-i18n was given. 19852if test "${enable_loadable_i18n+set}" = set; then : 19853 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 19854else 19855 XLIB_LOADABLE_I18N="no" 19856fi 19857 19858if test x$XLIB_LOADABLE_I18N = xyes; then 19859 if test x$HAVE_LOADABLE_MODULES = xno; then 19860 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 19861 fi 19862 19863$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 19864 19865 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 19866 19867fi 19868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 19869$as_echo "$XLIB_LOADABLE_I18N" >&6; } 19870 19871 if test x$XLIB_LOADABLE_I18N = xyes; then 19872 XLIB_LOADABLE_I18N_TRUE= 19873 XLIB_LOADABLE_I18N_FALSE='#' 19874else 19875 XLIB_LOADABLE_I18N_TRUE='#' 19876 XLIB_LOADABLE_I18N_FALSE= 19877fi 19878 19879 19880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 19881$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 19882# Check whether --enable-loadable-xcursor was given. 19883if test "${enable_loadable_xcursor+set}" = set; then : 19884 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 19885else 19886 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 19887fi 19888 19889if test x$XLIB_LOADABLE_XCURSOR = xyes; then 19890 19891$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 19892 19893fi 19894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 19895$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 19896 19897# Checks for header files. 19898for ac_header in sys/select.h 19899do : 19900 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 19901if test "x$ac_cv_header_sys_select_h" = xyes; then : 19902 cat >>confdefs.h <<_ACEOF 19903#define HAVE_SYS_SELECT_H 1 19904_ACEOF 19905 19906fi 19907 19908done 19909 19910 19911# Checks for typedefs, structures, and compiler characteristics. 19912 19913# Checks for library functions. 19914for ac_func in strtol seteuid 19915do : 19916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19917ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19918if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19919 cat >>confdefs.h <<_ACEOF 19920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19921_ACEOF 19922 19923fi 19924done 19925 19926# Used in lcFile.c (see also --enable-xlocaledir settings below) 19927XLOCALEDIR_IS_SAFE="no" 19928ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" 19929if test "x$ac_cv_have_decl_issetugid" = xyes; then : 19930 19931fi 19932 19933ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 19934if test "x$ac_cv_func_issetugid" = xyes; then : 19935 19936fi 19937 19938if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 19939 XLOCALEDIR_IS_SAFE="yes" 19940 19941$as_echo "#define HASSETUGID 1" >>confdefs.h 19942 19943fi 19944ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 19945if test "x$ac_cv_func_getresuid" = xyes; then : 19946 XLOCALEDIR_IS_SAFE="yes" 19947 19948$as_echo "#define HASGETRESUID 1" >>confdefs.h 19949 19950fi 19951 19952# Used in Font.c 19953ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19954if test "x$ac_cv_func_shmat" = xyes; then : 19955 19956$as_echo "#define HAS_SHM 1" >>confdefs.h 19957 19958fi 19959 19960 19961# Checks for system services 19962# AC_PATH_XTRA 19963 19964# arch specific things 19965WCHAR32="1" 19966case $host_os in 19967 os2*) os2="true" ; WCHAR32="0" ;; 19968 *) ;; 19969esac 19970 19971 19972 if test x$os2 = xtrue; then 19973 OS2_TRUE= 19974 OS2_FALSE='#' 19975else 19976 OS2_TRUE='#' 19977 OS2_FALSE= 19978fi 19979 19980 19981 19982# Check whether --with-launchd was given. 19983if test "${with_launchd+set}" = set; then : 19984 withval=$with_launchd; LAUNCHD=$withval 19985else 19986 LAUNCHD=auto 19987fi 19988 19989if test "x$LAUNCHD" = xauto; then 19990 unset LAUNCHD 19991 # Extract the first word of "launchd", so it can be a program name with args. 19992set dummy launchd; ac_word=$2 19993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19994$as_echo_n "checking for $ac_word... " >&6; } 19995if ${ac_cv_prog_LAUNCHD+:} false; then : 19996 $as_echo_n "(cached) " >&6 19997else 19998 if test -n "$LAUNCHD"; then 19999 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 20000else 20001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20002for as_dir in $PATH$PATH_SEPARATOR/sbin 20003do 20004 IFS=$as_save_IFS 20005 test -z "$as_dir" && as_dir=. 20006 for ac_exec_ext in '' $ac_executable_extensions; do 20007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20008 ac_cv_prog_LAUNCHD="yes" 20009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20010 break 2 20011 fi 20012done 20013 done 20014IFS=$as_save_IFS 20015 20016 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 20017fi 20018fi 20019LAUNCHD=$ac_cv_prog_LAUNCHD 20020if test -n "$LAUNCHD"; then 20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 20022$as_echo "$LAUNCHD" >&6; } 20023else 20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20025$as_echo "no" >&6; } 20026fi 20027 20028 20029fi 20030 20031if test "x$LAUNCHD" = xyes ; then 20032 20033$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 20034 20035 20036$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 20037 20038fi 20039 20040# Check whether --enable-xthreads was given. 20041if test "${enable_xthreads+set}" = set; then : 20042 enableval=$enable_xthreads; xthreads=$enableval 20043else 20044 xthreads=yes 20045fi 20046 20047 20048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 20049$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 20050if ${ac_cv_lib_c_getpwuid_r+:} false; then : 20051 $as_echo_n "(cached) " >&6 20052else 20053 ac_check_lib_save_LIBS=$LIBS 20054LIBS="-lc $LIBS" 20055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20056/* end confdefs.h. */ 20057 20058/* Override any GCC internal prototype to avoid an error. 20059 Use char because int might match the return type of a GCC 20060 builtin and then its argument prototype would still apply. */ 20061#ifdef __cplusplus 20062extern "C" 20063#endif 20064char getpwuid_r (); 20065int 20066main () 20067{ 20068return getpwuid_r (); 20069 ; 20070 return 0; 20071} 20072_ACEOF 20073if ac_fn_c_try_link "$LINENO"; then : 20074 ac_cv_lib_c_getpwuid_r=yes 20075else 20076 ac_cv_lib_c_getpwuid_r=no 20077fi 20078rm -f core conftest.err conftest.$ac_objext \ 20079 conftest$ac_exeext conftest.$ac_ext 20080LIBS=$ac_check_lib_save_LIBS 20081fi 20082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 20083$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 20084if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then : 20085 mtsafeapi="yes" 20086else 20087 mtsafeapi="no" 20088fi 20089 20090 20091case x$xthreads in 20092xyes) 20093 20094$as_echo "#define XTHREADS 1" >>confdefs.h 20095 20096 if test x$mtsafeapi = xyes 20097 then 20098 20099$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 20100 20101 fi 20102 ;; 20103*) 20104 ;; 20105esac 20106 20107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 20108$as_echo_n "checking for pthread_self in -lc... " >&6; } 20109if ${ac_cv_lib_c_pthread_self+:} false; then : 20110 $as_echo_n "(cached) " >&6 20111else 20112 ac_check_lib_save_LIBS=$LIBS 20113LIBS="-lc $LIBS" 20114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20115/* end confdefs.h. */ 20116 20117/* Override any GCC internal prototype to avoid an error. 20118 Use char because int might match the return type of a GCC 20119 builtin and then its argument prototype would still apply. */ 20120#ifdef __cplusplus 20121extern "C" 20122#endif 20123char pthread_self (); 20124int 20125main () 20126{ 20127return pthread_self (); 20128 ; 20129 return 0; 20130} 20131_ACEOF 20132if ac_fn_c_try_link "$LINENO"; then : 20133 ac_cv_lib_c_pthread_self=yes 20134else 20135 ac_cv_lib_c_pthread_self=no 20136fi 20137rm -f core conftest.err conftest.$ac_objext \ 20138 conftest$ac_exeext conftest.$ac_ext 20139LIBS=$ac_check_lib_save_LIBS 20140fi 20141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 20142$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 20143if test "x$ac_cv_lib_c_pthread_self" = xyes; then : 20144 thrstubs="no" 20145else 20146 thrstubs="yes" 20147fi 20148 20149 if test x$thrstubs = xyes; then 20150 THRSTUBS_TRUE= 20151 THRSTUBS_FALSE='#' 20152else 20153 THRSTUBS_TRUE='#' 20154 THRSTUBS_FALSE= 20155fi 20156 20157 20158# XXX incomplete, please fill this in 20159if test x$xthreads = xyes ; then 20160 case $host_os in 20161 linux*|gnu*|k*bsd*-gnu) 20162 XTHREADLIB=-lpthread ;; 20163 netbsd*) 20164 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 20165 XTHREADLIB="-lpthread" ;; 20166 freebsd*) 20167 XTHREAD_CFLAGS="-D_THREAD_SAFE" 20168 XTHREADLIB="-pthread" ;; 20169 dragonfly*|openbsd*) 20170 XTHREADLIB="-pthread" ;; 20171 solaris*) 20172 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 20173 esac 20174fi 20175 20176 20177 20178ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20179if test "x$ac_cv_func_poll" = xyes; then : 20180 20181$as_echo "#define USE_POLL 1" >>confdefs.h 20182 20183fi 20184 20185 20186# 20187# Find keysymdef.h 20188# 20189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 20190$as_echo_n "checking keysym definitions... " >&6; } 20191 20192# Check whether --with-keysymdefdir was given. 20193if test "${with_keysymdefdir+set}" = set; then : 20194 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 20195else 20196 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 20197fi 20198 20199 20200if test ! -d "$KEYSYMDEFDIR"; then 20201 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 20202fi 20203 20204FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 20205for i in $FILES; do 20206 if test -f "$KEYSYMDEFDIR/$i"; then 20207 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 20208 elif test "x$i" = "xkeysymdef.h"; then 20209 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 20210 fi 20211done 20212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 20213$as_echo "$KEYSYMDEFS" >&6; } 20214 20215 20216# Check whether --enable-xcms was given. 20217if test "${enable_xcms+set}" = set; then : 20218 enableval=$enable_xcms; XCMS=$enableval 20219else 20220 XCMS=yes 20221fi 20222 20223 if test x$XCMS = xyes ; then 20224 XCMS_TRUE= 20225 XCMS_FALSE='#' 20226else 20227 XCMS_TRUE='#' 20228 XCMS_FALSE= 20229fi 20230 20231if test x"$XCMS" = "xyes"; then 20232 20233$as_echo "#define XCMS 1" >>confdefs.h 20234 20235fi 20236 20237# Check whether --enable-xlocale was given. 20238if test "${enable_xlocale+set}" = set; then : 20239 enableval=$enable_xlocale; XLOCALE=$enableval 20240else 20241 XLOCALE=yes 20242fi 20243 20244 20245 if test x$XLOCALE = xyes ; then 20246 XLOCALE_TRUE= 20247 XLOCALE_FALSE='#' 20248else 20249 XLOCALE_TRUE='#' 20250 XLOCALE_FALSE= 20251fi 20252 20253if test x"$XLOCALE" = "xyes"; then 20254 20255$as_echo "#define XLOCALE 1" >>confdefs.h 20256 20257fi 20258 20259# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 20260# don't have either issetugid() or getresuid(), and you need to protect 20261# clients that are setgid or setuid to an id other than 0. 20262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 20263$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 20264# Check whether --enable-xlocaledir was given. 20265if test "${enable_xlocaledir+set}" = set; then : 20266 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 20267else 20268 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 20269fi 20270 20271if test "x$ENABLE_XLOCALEDIR" = "xno"; then 20272 20273$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 20274 20275fi 20276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 20277$as_echo "$ENABLE_XLOCALEDIR" >&6; } 20278 20279# Check whether --enable-xf86bigfont was given. 20280if test "${enable_xf86bigfont+set}" = set; then : 20281 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 20282else 20283 XF86BIGFONT="yes" 20284fi 20285 20286if test "x$XF86BIGFONT" = "xyes"; then 20287 20288pkg_failed=no 20289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 20290$as_echo_n "checking for BIGFONT... " >&6; } 20291 20292if test -n "$BIGFONT_CFLAGS"; then 20293 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 20294 elif test -n "$PKG_CONFIG"; then 20295 if test -n "$PKG_CONFIG" && \ 20296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 20297 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 20298 ac_status=$? 20299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20300 test $ac_status = 0; }; then 20301 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 20302else 20303 pkg_failed=yes 20304fi 20305 else 20306 pkg_failed=untried 20307fi 20308if test -n "$BIGFONT_LIBS"; then 20309 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 20310 elif test -n "$PKG_CONFIG"; then 20311 if test -n "$PKG_CONFIG" && \ 20312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 20313 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 20314 ac_status=$? 20315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20316 test $ac_status = 0; }; then 20317 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 20318else 20319 pkg_failed=yes 20320fi 20321 else 20322 pkg_failed=untried 20323fi 20324 20325 20326 20327if test $pkg_failed = yes; then 20328 20329if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20330 _pkg_short_errors_supported=yes 20331else 20332 _pkg_short_errors_supported=no 20333fi 20334 if test $_pkg_short_errors_supported = yes; then 20335 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto >= 1.2.0" 2>&1` 20336 else 20337 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto >= 1.2.0" 2>&1` 20338 fi 20339 # Put the nasty error message in config.log where it belongs 20340 echo "$BIGFONT_PKG_ERRORS" >&5 20341 20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20343$as_echo "no" >&6; } 20344 XF86BIGFONT="no" 20345elif test $pkg_failed = untried; then 20346 XF86BIGFONT="no" 20347else 20348 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 20349 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20351$as_echo "yes" >&6; } 20352 20353$as_echo "#define XF86BIGFONT 1" >>confdefs.h 20354 20355fi 20356fi 20357 20358# Check whether --enable-xkb was given. 20359if test "${enable_xkb+set}" = set; then : 20360 enableval=$enable_xkb; XKB=$enableval 20361else 20362 XKB=yes 20363fi 20364 20365 20366 if test x$XKB = xyes ; then 20367 XKB_TRUE= 20368 XKB_FALSE='#' 20369else 20370 XKB_TRUE='#' 20371 XKB_FALSE= 20372fi 20373 20374if test x"$XKB" = "xyes"; then 20375 XKBPROTO_REQUIRES="kbproto" 20376 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 20377 20378$as_echo "#define XKB 1" >>confdefs.h 20379 20380else 20381 XKBPROTO_REQUIRES="" 20382fi 20383 20384 20385 20386 20387 20388 for ac_header in $ac_header_list 20389do : 20390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20391ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 20392" 20393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20394 cat >>confdefs.h <<_ACEOF 20395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20396_ACEOF 20397 20398fi 20399 20400done 20401 20402 20403 20404 20405 20406 20407 20408 20409for ac_func in getpagesize 20410do : 20411 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 20412if test "x$ac_cv_func_getpagesize" = xyes; then : 20413 cat >>confdefs.h <<_ACEOF 20414#define HAVE_GETPAGESIZE 1 20415_ACEOF 20416 20417fi 20418done 20419 20420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 20421$as_echo_n "checking for working mmap... " >&6; } 20422if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 20423 $as_echo_n "(cached) " >&6 20424else 20425 if test "$cross_compiling" = yes; then : 20426 ac_cv_func_mmap_fixed_mapped=no 20427else 20428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20429/* end confdefs.h. */ 20430$ac_includes_default 20431/* malloc might have been renamed as rpl_malloc. */ 20432#undef malloc 20433 20434/* Thanks to Mike Haertel and Jim Avera for this test. 20435 Here is a matrix of mmap possibilities: 20436 mmap private not fixed 20437 mmap private fixed at somewhere currently unmapped 20438 mmap private fixed at somewhere already mapped 20439 mmap shared not fixed 20440 mmap shared fixed at somewhere currently unmapped 20441 mmap shared fixed at somewhere already mapped 20442 For private mappings, we should verify that changes cannot be read() 20443 back from the file, nor mmap's back from the file at a different 20444 address. (There have been systems where private was not correctly 20445 implemented like the infamous i386 svr4.0, and systems where the 20446 VM page cache was not coherent with the file system buffer cache 20447 like early versions of FreeBSD and possibly contemporary NetBSD.) 20448 For shared mappings, we should conversely verify that changes get 20449 propagated back to all the places they're supposed to be. 20450 20451 Grep wants private fixed already mapped. 20452 The main things grep needs to know about mmap are: 20453 * does it exist and is it safe to write into the mmap'd area 20454 * how to use it (BSD variants) */ 20455 20456#include <fcntl.h> 20457#include <sys/mman.h> 20458 20459#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 20460char *malloc (); 20461#endif 20462 20463/* This mess was copied from the GNU getpagesize.h. */ 20464#ifndef HAVE_GETPAGESIZE 20465# ifdef _SC_PAGESIZE 20466# define getpagesize() sysconf(_SC_PAGESIZE) 20467# else /* no _SC_PAGESIZE */ 20468# ifdef HAVE_SYS_PARAM_H 20469# include <sys/param.h> 20470# ifdef EXEC_PAGESIZE 20471# define getpagesize() EXEC_PAGESIZE 20472# else /* no EXEC_PAGESIZE */ 20473# ifdef NBPG 20474# define getpagesize() NBPG * CLSIZE 20475# ifndef CLSIZE 20476# define CLSIZE 1 20477# endif /* no CLSIZE */ 20478# else /* no NBPG */ 20479# ifdef NBPC 20480# define getpagesize() NBPC 20481# else /* no NBPC */ 20482# ifdef PAGESIZE 20483# define getpagesize() PAGESIZE 20484# endif /* PAGESIZE */ 20485# endif /* no NBPC */ 20486# endif /* no NBPG */ 20487# endif /* no EXEC_PAGESIZE */ 20488# else /* no HAVE_SYS_PARAM_H */ 20489# define getpagesize() 8192 /* punt totally */ 20490# endif /* no HAVE_SYS_PARAM_H */ 20491# endif /* no _SC_PAGESIZE */ 20492 20493#endif /* no HAVE_GETPAGESIZE */ 20494 20495int 20496main () 20497{ 20498 char *data, *data2, *data3; 20499 const char *cdata2; 20500 int i, pagesize; 20501 int fd, fd2; 20502 20503 pagesize = getpagesize (); 20504 20505 /* First, make a file with some known garbage in it. */ 20506 data = (char *) malloc (pagesize); 20507 if (!data) 20508 return 1; 20509 for (i = 0; i < pagesize; ++i) 20510 *(data + i) = rand (); 20511 umask (0); 20512 fd = creat ("conftest.mmap", 0600); 20513 if (fd < 0) 20514 return 2; 20515 if (write (fd, data, pagesize) != pagesize) 20516 return 3; 20517 close (fd); 20518 20519 /* Next, check that the tail of a page is zero-filled. File must have 20520 non-zero length, otherwise we risk SIGBUS for entire page. */ 20521 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 20522 if (fd2 < 0) 20523 return 4; 20524 cdata2 = ""; 20525 if (write (fd2, cdata2, 1) != 1) 20526 return 5; 20527 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 20528 if (data2 == MAP_FAILED) 20529 return 6; 20530 for (i = 0; i < pagesize; ++i) 20531 if (*(data2 + i)) 20532 return 7; 20533 close (fd2); 20534 if (munmap (data2, pagesize)) 20535 return 8; 20536 20537 /* Next, try to mmap the file at a fixed address which already has 20538 something else allocated at it. If we can, also make sure that 20539 we see the same garbage. */ 20540 fd = open ("conftest.mmap", O_RDWR); 20541 if (fd < 0) 20542 return 9; 20543 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20544 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20545 return 10; 20546 for (i = 0; i < pagesize; ++i) 20547 if (*(data + i) != *(data2 + i)) 20548 return 11; 20549 20550 /* Finally, make sure that changes to the mapped area do not 20551 percolate back to the file as seen by read(). (This is a bug on 20552 some variants of i386 svr4.0.) */ 20553 for (i = 0; i < pagesize; ++i) 20554 *(data2 + i) = *(data2 + i) + 1; 20555 data3 = (char *) malloc (pagesize); 20556 if (!data3) 20557 return 12; 20558 if (read (fd, data3, pagesize) != pagesize) 20559 return 13; 20560 for (i = 0; i < pagesize; ++i) 20561 if (*(data + i) != *(data3 + i)) 20562 return 14; 20563 close (fd); 20564 return 0; 20565} 20566_ACEOF 20567if ac_fn_c_try_run "$LINENO"; then : 20568 ac_cv_func_mmap_fixed_mapped=yes 20569else 20570 ac_cv_func_mmap_fixed_mapped=no 20571fi 20572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20573 conftest.$ac_objext conftest.beam conftest.$ac_ext 20574fi 20575 20576fi 20577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 20578$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 20579if test $ac_cv_func_mmap_fixed_mapped = yes; then 20580 20581$as_echo "#define HAVE_MMAP 1" >>confdefs.h 20582 20583fi 20584rm -f conftest.mmap conftest.txt 20585 20586composecache_default=$ac_cv_func_mmap_fixed_mapped 20587ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 20588if test "x$ac_cv_func_nl_langinfo" = xyes; then : 20589 20590else 20591 composecache_default=no 20592fi 20593 20594# Check whether --enable-composecache was given. 20595if test "${enable_composecache+set}" = set; then : 20596 enableval=$enable_composecache; COMPOSECACHE=$enableval 20597else 20598 COMPOSECACHE=$composecache_default 20599fi 20600 20601if test x"$COMPOSECACHE" = "xyes"; then 20602 20603$as_echo "#define COMPOSECACHE 1" >>confdefs.h 20604 20605fi 20606 20607# Allow checking code with lint, sparse, etc. 20608 20609 20610 20611 20612 20613# Check whether --with-lint was given. 20614if test "${with_lint+set}" = set; then : 20615 withval=$with_lint; use_lint=$withval 20616else 20617 use_lint=no 20618fi 20619 20620 20621# Obtain platform specific info like program name and options 20622# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20623case $host_os in 20624 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20625 lint_name=splint 20626 lint_options="-badflag" 20627 ;; 20628 *freebsd* | *netbsd*) 20629 lint_name=lint 20630 lint_options="-u -b" 20631 ;; 20632 *solaris*) 20633 lint_name=lint 20634 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20635 ;; 20636esac 20637 20638# Test for the presence of the program (either guessed by the code or spelled out by the user) 20639if test "x$use_lint" = x"yes" ; then 20640 # Extract the first word of "$lint_name", so it can be a program name with args. 20641set dummy $lint_name; ac_word=$2 20642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20643$as_echo_n "checking for $ac_word... " >&6; } 20644if ${ac_cv_path_LINT+:} false; then : 20645 $as_echo_n "(cached) " >&6 20646else 20647 case $LINT in 20648 [\\/]* | ?:[\\/]*) 20649 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20650 ;; 20651 *) 20652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20653for as_dir in $PATH 20654do 20655 IFS=$as_save_IFS 20656 test -z "$as_dir" && as_dir=. 20657 for ac_exec_ext in '' $ac_executable_extensions; do 20658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20659 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 20660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20661 break 2 20662 fi 20663done 20664 done 20665IFS=$as_save_IFS 20666 20667 ;; 20668esac 20669fi 20670LINT=$ac_cv_path_LINT 20671if test -n "$LINT"; then 20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20673$as_echo "$LINT" >&6; } 20674else 20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20676$as_echo "no" >&6; } 20677fi 20678 20679 20680 if test "x$LINT" = "x"; then 20681 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20682 fi 20683elif test "x$use_lint" = x"no" ; then 20684 if test "x$LINT" != "x"; then 20685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20686$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20687 fi 20688else 20689 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20690fi 20691 20692# User supplied flags override default flags 20693if test "x$LINT_FLAGS" != "x"; then 20694 lint_options=$LINT_FLAGS 20695fi 20696 20697LINT_FLAGS=$lint_options 20698 20699 if test "x$LINT" != x; then 20700 LINT_TRUE= 20701 LINT_FALSE='#' 20702else 20703 LINT_TRUE='#' 20704 LINT_FALSE= 20705fi 20706 20707 20708 20709 20710 20711# Check whether --enable-lint-library was given. 20712if test "${enable_lint_library+set}" = set; then : 20713 enableval=$enable_lint_library; make_lint_lib=$enableval 20714else 20715 make_lint_lib=no 20716fi 20717 20718 20719if test "x$make_lint_lib" = x"yes" ; then 20720 LINTLIB=llib-lX11.ln 20721 if test "x$LINT" = "x"; then 20722 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20723 fi 20724elif test "x$make_lint_lib" != x"no" ; then 20725 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20726fi 20727 20728 20729 if test x$make_lint_lib != xno; then 20730 MAKE_LINT_LIB_TRUE= 20731 MAKE_LINT_LIB_FALSE='#' 20732else 20733 MAKE_LINT_LIB_TRUE='#' 20734 MAKE_LINT_LIB_FALSE= 20735fi 20736 20737 20738 20739 20740X11_DATADIR="${datadir}/X11" 20741 20742 prefix_NONE= 20743 exec_prefix_NONE= 20744 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20745 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20746 eval ax_define_dir="\"$X11_DATADIR\"" 20747 eval ax_define_dir="\"$ax_define_dir\"" 20748 X11_DATADIR="$ax_define_dir" 20749 20750 20751cat >>confdefs.h <<_ACEOF 20752#define X11_DATADIR "$ax_define_dir" 20753_ACEOF 20754 20755 test "$prefix_NONE" && prefix=NONE 20756 test "$exec_prefix_NONE" && exec_prefix=NONE 20757 20758 20759 20760X11_LIBDIR="${libdir}/X11" 20761 20762 prefix_NONE= 20763 exec_prefix_NONE= 20764 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20765 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20766 eval ax_define_dir="\"$X11_LIBDIR\"" 20767 eval ax_define_dir="\"$ax_define_dir\"" 20768 X11_LIBDIR="$ax_define_dir" 20769 20770 20771cat >>confdefs.h <<_ACEOF 20772#define X11_LIBDIR "$ax_define_dir" 20773_ACEOF 20774 20775 test "$prefix_NONE" && prefix=NONE 20776 test "$exec_prefix_NONE" && exec_prefix=NONE 20777 20778 20779 20780 20781pkg_failed=no 20782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 20783$as_echo_n "checking for X11... " >&6; } 20784 20785if test -n "$X11_CFLAGS"; then 20786 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 20787 elif test -n "$PKG_CONFIG"; then 20788 if test -n "$PKG_CONFIG" && \ 20789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 20790 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 20791 ac_status=$? 20792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20793 test $ac_status = 0; }; then 20794 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 20795else 20796 pkg_failed=yes 20797fi 20798 else 20799 pkg_failed=untried 20800fi 20801if test -n "$X11_LIBS"; then 20802 pkg_cv_X11_LIBS="$X11_LIBS" 20803 elif test -n "$PKG_CONFIG"; then 20804 if test -n "$PKG_CONFIG" && \ 20805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 20806 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 20807 ac_status=$? 20808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20809 test $ac_status = 0; }; then 20810 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 20811else 20812 pkg_failed=yes 20813fi 20814 else 20815 pkg_failed=untried 20816fi 20817 20818 20819 20820if test $pkg_failed = yes; then 20821 20822if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20823 _pkg_short_errors_supported=yes 20824else 20825 _pkg_short_errors_supported=no 20826fi 20827 if test $_pkg_short_errors_supported = yes; then 20828 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1` 20829 else 20830 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1` 20831 fi 20832 # Put the nasty error message in config.log where it belongs 20833 echo "$X11_PKG_ERRORS" >&5 20834 20835 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 20836 20837$X11_PKG_ERRORS 20838 20839Consider adjusting the PKG_CONFIG_PATH environment variable if you 20840installed software in a non-standard prefix. 20841 20842Alternatively, you may set the environment variables X11_CFLAGS 20843and X11_LIBS to avoid the need to call pkg-config. 20844See the pkg-config man page for more details. 20845" "$LINENO" 5 20846elif test $pkg_failed = untried; then 20847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20849as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20850is in your PATH or set the PKG_CONFIG environment variable to the full 20851path to pkg-config. 20852 20853Alternatively, you may set the environment variables X11_CFLAGS 20854and X11_LIBS to avoid the need to call pkg-config. 20855See the pkg-config man page for more details. 20856 20857To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20858See \`config.log' for more details" "$LINENO" 5; } 20859else 20860 X11_CFLAGS=$pkg_cv_X11_CFLAGS 20861 X11_LIBS=$pkg_cv_X11_LIBS 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20863$as_echo "yes" >&6; } 20864 : 20865fi 20866X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 20867 20868# 20869# Yes, it would be nice to put the locale data in 20870# /usr/share, but the locale stuff includes loadable 20871# libraries which must be located in the same directory 20872# as the other locale data, so for now, everything lives 20873# in ${libdir} 20874# 20875 20876X11_LOCALEDATADIR="${X11_DATADIR}/locale" 20877 20878 prefix_NONE= 20879 exec_prefix_NONE= 20880 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20881 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20882 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 20883 eval ax_define_dir="\"$ax_define_dir\"" 20884 XLOCALEDATADIR="$ax_define_dir" 20885 20886 20887cat >>confdefs.h <<_ACEOF 20888#define XLOCALEDATADIR "$ax_define_dir" 20889_ACEOF 20890 20891 test "$prefix_NONE" && prefix=NONE 20892 test "$exec_prefix_NONE" && exec_prefix=NONE 20893 20894 20895 20896 20897# Check whether --with-locale-lib-dir was given. 20898if test "${with_locale_lib_dir+set}" = set; then : 20899 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 20900else 20901 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 20902fi 20903 20904 20905 prefix_NONE= 20906 exec_prefix_NONE= 20907 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20908 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20909 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 20910 eval ax_define_dir="\"$ax_define_dir\"" 20911 XLOCALELIBDIR="$ax_define_dir" 20912 20913 20914cat >>confdefs.h <<_ACEOF 20915#define XLOCALELIBDIR "$ax_define_dir" 20916_ACEOF 20917 20918 test "$prefix_NONE" && prefix=NONE 20919 test "$exec_prefix_NONE" && exec_prefix=NONE 20920 20921 20922 20923X11_LOCALEDIR="${X11_LOCALEDATADIR}" 20924 20925 prefix_NONE= 20926 exec_prefix_NONE= 20927 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20928 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20929 eval ax_define_dir="\"$X11_LOCALEDIR\"" 20930 eval ax_define_dir="\"$ax_define_dir\"" 20931 XLOCALEDIR="$ax_define_dir" 20932 20933 20934cat >>confdefs.h <<_ACEOF 20935#define XLOCALEDIR "$ax_define_dir" 20936_ACEOF 20937 20938 test "$prefix_NONE" && prefix=NONE 20939 test "$exec_prefix_NONE" && exec_prefix=NONE 20940 20941 20942 20943locales="\ 20944 am_ET.UTF-8 armscii-8 C el_GR.UTF-8 en_US.UTF-8 fi_FI.UTF-8 \ 20945 georgian-academy georgian-ps ibm-cp1133 iscii-dev isiri-3342 \ 20946 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 iso8859-15 \ 20947 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 iso8859-7 \ 20948 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS ja_JP.UTF-8\ 20949 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r koi8-u \ 20950 ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 microsoft-cp1256 \ 20951 mulelao-1 nokhchi-1 pt_BR.UTF-8 ru_RU.UTF-8 sr_CS.UTF-8 \ 20952 tatar-cyr th_TH th_TH.UTF-8 tscii-0 vi_VN.tcvn vi_VN.viscii \ 20953 zh_CN zh_CN.gb18030 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 \ 20954 zh_HK.big5hkscs zh_HK.UTF-8 zh_TW zh_TW.big5 zh_TW.UTF-8" 20955 20956 20957XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 20958 20959 prefix_NONE= 20960 exec_prefix_NONE= 20961 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20962 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20963 eval ax_define_dir="\"$XKEYSYMDB\"" 20964 eval ax_define_dir="\"$ax_define_dir\"" 20965 XKEYSYMDB="$ax_define_dir" 20966 20967 20968cat >>confdefs.h <<_ACEOF 20969#define XKEYSYMDB "$ax_define_dir" 20970_ACEOF 20971 20972 test "$prefix_NONE" && prefix=NONE 20973 test "$exec_prefix_NONE" && exec_prefix=NONE 20974 20975 20976XERRORDB="${X11_DATADIR}/XErrorDB" 20977 20978 prefix_NONE= 20979 exec_prefix_NONE= 20980 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20981 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20982 eval ax_define_dir="\"$XERRORDB\"" 20983 eval ax_define_dir="\"$ax_define_dir\"" 20984 XERRORDB="$ax_define_dir" 20985 20986 20987cat >>confdefs.h <<_ACEOF 20988#define XERRORDB "$ax_define_dir" 20989_ACEOF 20990 20991 test "$prefix_NONE" && prefix=NONE 20992 test "$exec_prefix_NONE" && exec_prefix=NONE 20993 20994 20995 20996# Check whether --enable-malloc0returnsnull was given. 20997if test "${enable_malloc0returnsnull+set}" = set; then : 20998 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20999else 21000 MALLOC_ZERO_RETURNS_NULL=auto 21001fi 21002 21003 21004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 21005$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 21006if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 21007 if test "$cross_compiling" = yes; then : 21008 MALLOC_ZERO_RETURNS_NULL=yes 21009else 21010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21011/* end confdefs.h. */ 21012 21013#include <stdlib.h> 21014 21015int 21016main () 21017{ 21018 21019 char *m0, *r0, *c0, *p; 21020 m0 = malloc(0); 21021 p = malloc(10); 21022 r0 = realloc(p,0); 21023 c0 = calloc(0,10); 21024 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 21025 21026 ; 21027 return 0; 21028} 21029_ACEOF 21030if ac_fn_c_try_run "$LINENO"; then : 21031 MALLOC_ZERO_RETURNS_NULL=yes 21032else 21033 MALLOC_ZERO_RETURNS_NULL=no 21034fi 21035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21036 conftest.$ac_objext conftest.beam conftest.$ac_ext 21037fi 21038 21039fi 21040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 21041$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 21042 21043if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 21044 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 21045 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 21046 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 21047else 21048 MALLOC_ZERO_CFLAGS="" 21049 XMALLOC_ZERO_CFLAGS="" 21050 XTMALLOC_ZERO_CFLAGS="" 21051fi 21052 21053 21054 21055 21056 21057 21058ac_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" 21059 21060cat >confcache <<\_ACEOF 21061# This file is a shell script that caches the results of configure 21062# tests run on this system so they can be shared between configure 21063# scripts and configure runs, see configure's option --config-cache. 21064# It is not useful on other systems. If it contains results you don't 21065# want to keep, you may remove or edit it. 21066# 21067# config.status only pays attention to the cache file if you give it 21068# the --recheck option to rerun configure. 21069# 21070# `ac_cv_env_foo' variables (set or unset) will be overridden when 21071# loading this file, other *unset* `ac_cv_foo' will be assigned the 21072# following values. 21073 21074_ACEOF 21075 21076# The following way of writing the cache mishandles newlines in values, 21077# but we know of no workaround that is simple, portable, and efficient. 21078# So, we kill variables containing newlines. 21079# Ultrix sh set writes to stderr and can't be redirected directly, 21080# and sets the high bit in the cache file unless we assign to the vars. 21081( 21082 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21083 eval ac_val=\$$ac_var 21084 case $ac_val in #( 21085 *${as_nl}*) 21086 case $ac_var in #( 21087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21089 esac 21090 case $ac_var in #( 21091 _ | IFS | as_nl) ;; #( 21092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21093 *) { eval $ac_var=; unset $ac_var;} ;; 21094 esac ;; 21095 esac 21096 done 21097 21098 (set) 2>&1 | 21099 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21100 *${as_nl}ac_space=\ *) 21101 # `set' does not quote correctly, so add quotes: double-quote 21102 # substitution turns \\\\ into \\, and sed turns \\ into \. 21103 sed -n \ 21104 "s/'/'\\\\''/g; 21105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21106 ;; #( 21107 *) 21108 # `set' quotes correctly as required by POSIX, so do not add quotes. 21109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21110 ;; 21111 esac | 21112 sort 21113) | 21114 sed ' 21115 /^ac_cv_env_/b end 21116 t clear 21117 :clear 21118 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21119 t end 21120 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21121 :end' >>confcache 21122if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21123 if test -w "$cache_file"; then 21124 if test "x$cache_file" != "x/dev/null"; then 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21126$as_echo "$as_me: updating cache $cache_file" >&6;} 21127 if test ! -f "$cache_file" || test -h "$cache_file"; then 21128 cat confcache >"$cache_file" 21129 else 21130 case $cache_file in #( 21131 */* | ?:*) 21132 mv -f confcache "$cache_file"$$ && 21133 mv -f "$cache_file"$$ "$cache_file" ;; #( 21134 *) 21135 mv -f confcache "$cache_file" ;; 21136 esac 21137 fi 21138 fi 21139 else 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21141$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21142 fi 21143fi 21144rm -f confcache 21145 21146test "x$prefix" = xNONE && prefix=$ac_default_prefix 21147# Let make expand exec_prefix. 21148test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21149 21150DEFS=-DHAVE_CONFIG_H 21151 21152ac_libobjs= 21153ac_ltlibobjs= 21154U= 21155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21156 # 1. Remove the extension, and $U if already installed. 21157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21158 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21160 # will be set to the directory where LIBOBJS objects are built. 21161 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21162 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21163done 21164LIBOBJS=$ac_libobjs 21165 21166LTLIBOBJS=$ac_ltlibobjs 21167 21168 21169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21170$as_echo_n "checking that generated files are newer than configure... " >&6; } 21171 if test -n "$am_sleep_pid"; then 21172 # Hide warnings about reused PIDs. 21173 wait $am_sleep_pid 2>/dev/null 21174 fi 21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21176$as_echo "done" >&6; } 21177if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21178 as_fn_error $? "conditional \"AMDEP\" was never defined. 21179Usually this means the macro was only invoked conditionally." "$LINENO" 5 21180fi 21181if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21182 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21183Usually this means the macro was only invoked conditionally." "$LINENO" 5 21184fi 21185 if test -n "$EXEEXT"; then 21186 am__EXEEXT_TRUE= 21187 am__EXEEXT_FALSE='#' 21188else 21189 am__EXEEXT_TRUE='#' 21190 am__EXEEXT_FALSE= 21191fi 21192 21193if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21194 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21195Usually this means the macro was only invoked conditionally." "$LINENO" 5 21196fi 21197if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21198 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21199Usually this means the macro was only invoked conditionally." "$LINENO" 5 21200fi 21201if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21202 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21203Usually this means the macro was only invoked conditionally." "$LINENO" 5 21204fi 21205if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21206 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21207Usually this means the macro was only invoked conditionally." "$LINENO" 5 21208fi 21209if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21210 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21211Usually this means the macro was only invoked conditionally." "$LINENO" 5 21212fi 21213if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21214 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21215Usually this means the macro was only invoked conditionally." "$LINENO" 5 21216fi 21217if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 21218 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 21219Usually this means the macro was only invoked conditionally." "$LINENO" 5 21220fi 21221if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 21222 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 21223Usually this means the macro was only invoked conditionally." "$LINENO" 5 21224fi 21225if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 21226 as_fn_error $? "conditional \"OS2\" was never defined. 21227Usually this means the macro was only invoked conditionally." "$LINENO" 5 21228fi 21229if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 21230 as_fn_error $? "conditional \"THRSTUBS\" was never defined. 21231Usually this means the macro was only invoked conditionally." "$LINENO" 5 21232fi 21233if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 21234 as_fn_error $? "conditional \"XCMS\" was never defined. 21235Usually this means the macro was only invoked conditionally." "$LINENO" 5 21236fi 21237if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 21238 as_fn_error $? "conditional \"XLOCALE\" was never defined. 21239Usually this means the macro was only invoked conditionally." "$LINENO" 5 21240fi 21241if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 21242 as_fn_error $? "conditional \"XKB\" was never defined. 21243Usually this means the macro was only invoked conditionally." "$LINENO" 5 21244fi 21245if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21246 as_fn_error $? "conditional \"LINT\" was never defined. 21247Usually this means the macro was only invoked conditionally." "$LINENO" 5 21248fi 21249if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21250 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21251Usually this means the macro was only invoked conditionally." "$LINENO" 5 21252fi 21253 21254: "${CONFIG_STATUS=./config.status}" 21255ac_write_fail=0 21256ac_clean_files_save=$ac_clean_files 21257ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21258{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21259$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21260as_write_fail=0 21261cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21262#! $SHELL 21263# Generated by $as_me. 21264# Run this file to recreate the current configuration. 21265# Compiler output produced by configure, useful for debugging 21266# configure, is in config.log if it exists. 21267 21268debug=false 21269ac_cs_recheck=false 21270ac_cs_silent=false 21271 21272SHELL=\${CONFIG_SHELL-$SHELL} 21273export SHELL 21274_ASEOF 21275cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21276## -------------------- ## 21277## M4sh Initialization. ## 21278## -------------------- ## 21279 21280# Be more Bourne compatible 21281DUALCASE=1; export DUALCASE # for MKS sh 21282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21283 emulate sh 21284 NULLCMD=: 21285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21286 # is contrary to our usage. Disable this feature. 21287 alias -g '${1+"$@"}'='"$@"' 21288 setopt NO_GLOB_SUBST 21289else 21290 case `(set -o) 2>/dev/null` in #( 21291 *posix*) : 21292 set -o posix ;; #( 21293 *) : 21294 ;; 21295esac 21296fi 21297 21298 21299as_nl=' 21300' 21301export as_nl 21302# Printing a long string crashes Solaris 7 /usr/bin/printf. 21303as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21304as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21305as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21306# Prefer a ksh shell builtin over an external printf program on Solaris, 21307# but without wasting forks for bash or zsh. 21308if test -z "$BASH_VERSION$ZSH_VERSION" \ 21309 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21310 as_echo='print -r --' 21311 as_echo_n='print -rn --' 21312elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21313 as_echo='printf %s\n' 21314 as_echo_n='printf %s' 21315else 21316 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21317 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21318 as_echo_n='/usr/ucb/echo -n' 21319 else 21320 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21321 as_echo_n_body='eval 21322 arg=$1; 21323 case $arg in #( 21324 *"$as_nl"*) 21325 expr "X$arg" : "X\\(.*\\)$as_nl"; 21326 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21327 esac; 21328 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21329 ' 21330 export as_echo_n_body 21331 as_echo_n='sh -c $as_echo_n_body as_echo' 21332 fi 21333 export as_echo_body 21334 as_echo='sh -c $as_echo_body as_echo' 21335fi 21336 21337# The user is always right. 21338if test "${PATH_SEPARATOR+set}" != set; then 21339 PATH_SEPARATOR=: 21340 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21341 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21342 PATH_SEPARATOR=';' 21343 } 21344fi 21345 21346 21347# IFS 21348# We need space, tab and new line, in precisely that order. Quoting is 21349# there to prevent editors from complaining about space-tab. 21350# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21351# splitting by setting IFS to empty value.) 21352IFS=" "" $as_nl" 21353 21354# Find who we are. Look in the path if we contain no directory separator. 21355as_myself= 21356case $0 in #(( 21357 *[\\/]* ) as_myself=$0 ;; 21358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21359for as_dir in $PATH 21360do 21361 IFS=$as_save_IFS 21362 test -z "$as_dir" && as_dir=. 21363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21364 done 21365IFS=$as_save_IFS 21366 21367 ;; 21368esac 21369# We did not find ourselves, most probably we were run as `sh COMMAND' 21370# in which case we are not to be found in the path. 21371if test "x$as_myself" = x; then 21372 as_myself=$0 21373fi 21374if test ! -f "$as_myself"; then 21375 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21376 exit 1 21377fi 21378 21379# Unset variables that we do not need and which cause bugs (e.g. in 21380# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21381# suppresses any "Segmentation fault" message there. '((' could 21382# trigger a bug in pdksh 5.2.14. 21383for as_var in BASH_ENV ENV MAIL MAILPATH 21384do eval test x\${$as_var+set} = xset \ 21385 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21386done 21387PS1='$ ' 21388PS2='> ' 21389PS4='+ ' 21390 21391# NLS nuisances. 21392LC_ALL=C 21393export LC_ALL 21394LANGUAGE=C 21395export LANGUAGE 21396 21397# CDPATH. 21398(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21399 21400 21401# as_fn_error STATUS ERROR [LINENO LOG_FD] 21402# ---------------------------------------- 21403# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21404# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21405# script with STATUS, using 1 if that was 0. 21406as_fn_error () 21407{ 21408 as_status=$1; test $as_status -eq 0 && as_status=1 21409 if test "$4"; then 21410 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21411 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21412 fi 21413 $as_echo "$as_me: error: $2" >&2 21414 as_fn_exit $as_status 21415} # as_fn_error 21416 21417 21418# as_fn_set_status STATUS 21419# ----------------------- 21420# Set $? to STATUS, without forking. 21421as_fn_set_status () 21422{ 21423 return $1 21424} # as_fn_set_status 21425 21426# as_fn_exit STATUS 21427# ----------------- 21428# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21429as_fn_exit () 21430{ 21431 set +e 21432 as_fn_set_status $1 21433 exit $1 21434} # as_fn_exit 21435 21436# as_fn_unset VAR 21437# --------------- 21438# Portably unset VAR. 21439as_fn_unset () 21440{ 21441 { eval $1=; unset $1;} 21442} 21443as_unset=as_fn_unset 21444# as_fn_append VAR VALUE 21445# ---------------------- 21446# Append the text in VALUE to the end of the definition contained in VAR. Take 21447# advantage of any shell optimizations that allow amortized linear growth over 21448# repeated appends, instead of the typical quadratic growth present in naive 21449# implementations. 21450if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21451 eval 'as_fn_append () 21452 { 21453 eval $1+=\$2 21454 }' 21455else 21456 as_fn_append () 21457 { 21458 eval $1=\$$1\$2 21459 } 21460fi # as_fn_append 21461 21462# as_fn_arith ARG... 21463# ------------------ 21464# Perform arithmetic evaluation on the ARGs, and store the result in the 21465# global $as_val. Take advantage of shells that can avoid forks. The arguments 21466# must be portable across $(()) and expr. 21467if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21468 eval 'as_fn_arith () 21469 { 21470 as_val=$(( $* )) 21471 }' 21472else 21473 as_fn_arith () 21474 { 21475 as_val=`expr "$@" || test $? -eq 1` 21476 } 21477fi # as_fn_arith 21478 21479 21480if expr a : '\(a\)' >/dev/null 2>&1 && 21481 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21482 as_expr=expr 21483else 21484 as_expr=false 21485fi 21486 21487if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21488 as_basename=basename 21489else 21490 as_basename=false 21491fi 21492 21493if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21494 as_dirname=dirname 21495else 21496 as_dirname=false 21497fi 21498 21499as_me=`$as_basename -- "$0" || 21500$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21501 X"$0" : 'X\(//\)$' \| \ 21502 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21503$as_echo X/"$0" | 21504 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21505 s//\1/ 21506 q 21507 } 21508 /^X\/\(\/\/\)$/{ 21509 s//\1/ 21510 q 21511 } 21512 /^X\/\(\/\).*/{ 21513 s//\1/ 21514 q 21515 } 21516 s/.*/./; q'` 21517 21518# Avoid depending upon Character Ranges. 21519as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21520as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21521as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21522as_cr_digits='0123456789' 21523as_cr_alnum=$as_cr_Letters$as_cr_digits 21524 21525ECHO_C= ECHO_N= ECHO_T= 21526case `echo -n x` in #((((( 21527-n*) 21528 case `echo 'xy\c'` in 21529 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21530 xy) ECHO_C='\c';; 21531 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21532 ECHO_T=' ';; 21533 esac;; 21534*) 21535 ECHO_N='-n';; 21536esac 21537 21538rm -f conf$$ conf$$.exe conf$$.file 21539if test -d conf$$.dir; then 21540 rm -f conf$$.dir/conf$$.file 21541else 21542 rm -f conf$$.dir 21543 mkdir conf$$.dir 2>/dev/null 21544fi 21545if (echo >conf$$.file) 2>/dev/null; then 21546 if ln -s conf$$.file conf$$ 2>/dev/null; then 21547 as_ln_s='ln -s' 21548 # ... but there are two gotchas: 21549 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21550 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21551 # In both cases, we have to default to `cp -p'. 21552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21553 as_ln_s='cp -p' 21554 elif ln conf$$.file conf$$ 2>/dev/null; then 21555 as_ln_s=ln 21556 else 21557 as_ln_s='cp -p' 21558 fi 21559else 21560 as_ln_s='cp -p' 21561fi 21562rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21563rmdir conf$$.dir 2>/dev/null 21564 21565 21566# as_fn_mkdir_p 21567# ------------- 21568# Create "$as_dir" as a directory, including parents if necessary. 21569as_fn_mkdir_p () 21570{ 21571 21572 case $as_dir in #( 21573 -*) as_dir=./$as_dir;; 21574 esac 21575 test -d "$as_dir" || eval $as_mkdir_p || { 21576 as_dirs= 21577 while :; do 21578 case $as_dir in #( 21579 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21580 *) as_qdir=$as_dir;; 21581 esac 21582 as_dirs="'$as_qdir' $as_dirs" 21583 as_dir=`$as_dirname -- "$as_dir" || 21584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21585 X"$as_dir" : 'X\(//\)[^/]' \| \ 21586 X"$as_dir" : 'X\(//\)$' \| \ 21587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21588$as_echo X"$as_dir" | 21589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21590 s//\1/ 21591 q 21592 } 21593 /^X\(\/\/\)[^/].*/{ 21594 s//\1/ 21595 q 21596 } 21597 /^X\(\/\/\)$/{ 21598 s//\1/ 21599 q 21600 } 21601 /^X\(\/\).*/{ 21602 s//\1/ 21603 q 21604 } 21605 s/.*/./; q'` 21606 test -d "$as_dir" && break 21607 done 21608 test -z "$as_dirs" || eval "mkdir $as_dirs" 21609 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21610 21611 21612} # as_fn_mkdir_p 21613if mkdir -p . 2>/dev/null; then 21614 as_mkdir_p='mkdir -p "$as_dir"' 21615else 21616 test -d ./-p && rmdir ./-p 21617 as_mkdir_p=false 21618fi 21619 21620if test -x / >/dev/null 2>&1; then 21621 as_test_x='test -x' 21622else 21623 if ls -dL / >/dev/null 2>&1; then 21624 as_ls_L_option=L 21625 else 21626 as_ls_L_option= 21627 fi 21628 as_test_x=' 21629 eval sh -c '\'' 21630 if test -d "$1"; then 21631 test -d "$1/."; 21632 else 21633 case $1 in #( 21634 -*)set "./$1";; 21635 esac; 21636 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 21637 ???[sx]*):;;*)false;;esac;fi 21638 '\'' sh 21639 ' 21640fi 21641as_executable_p=$as_test_x 21642 21643# Sed expression to map a string onto a valid CPP name. 21644as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21645 21646# Sed expression to map a string onto a valid variable name. 21647as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21648 21649 21650exec 6>&1 21651## ----------------------------------- ## 21652## Main body of $CONFIG_STATUS script. ## 21653## ----------------------------------- ## 21654_ASEOF 21655test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21656 21657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21658# Save the log message, to keep $0 and so on meaningful, and to 21659# report actual input values of CONFIG_FILES etc. instead of their 21660# values after options handling. 21661ac_log=" 21662This file was extended by libX11 $as_me 1.6.2, which was 21663generated by GNU Autoconf 2.68. Invocation command line was 21664 21665 CONFIG_FILES = $CONFIG_FILES 21666 CONFIG_HEADERS = $CONFIG_HEADERS 21667 CONFIG_LINKS = $CONFIG_LINKS 21668 CONFIG_COMMANDS = $CONFIG_COMMANDS 21669 $ $0 $@ 21670 21671on `(hostname || uname -n) 2>/dev/null | sed 1q` 21672" 21673 21674_ACEOF 21675 21676case $ac_config_files in *" 21677"*) set x $ac_config_files; shift; ac_config_files=$*;; 21678esac 21679 21680case $ac_config_headers in *" 21681"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21682esac 21683 21684 21685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21686# Files that config.status was made for. 21687config_files="$ac_config_files" 21688config_headers="$ac_config_headers" 21689config_commands="$ac_config_commands" 21690 21691_ACEOF 21692 21693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21694ac_cs_usage="\ 21695\`$as_me' instantiates files and other configuration actions 21696from templates according to the current configuration. Unless the files 21697and actions are specified as TAGs, all are instantiated by default. 21698 21699Usage: $0 [OPTION]... [TAG]... 21700 21701 -h, --help print this help, then exit 21702 -V, --version print version number and configuration settings, then exit 21703 --config print configuration, then exit 21704 -q, --quiet, --silent 21705 do not print progress messages 21706 -d, --debug don't remove temporary files 21707 --recheck update $as_me by reconfiguring in the same conditions 21708 --file=FILE[:TEMPLATE] 21709 instantiate the configuration file FILE 21710 --header=FILE[:TEMPLATE] 21711 instantiate the configuration header FILE 21712 21713Configuration files: 21714$config_files 21715 21716Configuration headers: 21717$config_headers 21718 21719Configuration commands: 21720$config_commands 21721 21722Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 21723 21724_ACEOF 21725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21726ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21727ac_cs_version="\\ 21728libX11 config.status 1.6.2 21729configured by $0, generated by GNU Autoconf 2.68, 21730 with options \\"\$ac_cs_config\\" 21731 21732Copyright (C) 2010 Free Software Foundation, Inc. 21733This config.status script is free software; the Free Software Foundation 21734gives unlimited permission to copy, distribute and modify it." 21735 21736ac_pwd='$ac_pwd' 21737srcdir='$srcdir' 21738INSTALL='$INSTALL' 21739MKDIR_P='$MKDIR_P' 21740AWK='$AWK' 21741test -n "\$AWK" || AWK=awk 21742_ACEOF 21743 21744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21745# The default lists apply if the user does not specify any file. 21746ac_need_defaults=: 21747while test $# != 0 21748do 21749 case $1 in 21750 --*=?*) 21751 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21753 ac_shift=: 21754 ;; 21755 --*=) 21756 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21757 ac_optarg= 21758 ac_shift=: 21759 ;; 21760 *) 21761 ac_option=$1 21762 ac_optarg=$2 21763 ac_shift=shift 21764 ;; 21765 esac 21766 21767 case $ac_option in 21768 # Handling of the options. 21769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21770 ac_cs_recheck=: ;; 21771 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21772 $as_echo "$ac_cs_version"; exit ;; 21773 --config | --confi | --conf | --con | --co | --c ) 21774 $as_echo "$ac_cs_config"; exit ;; 21775 --debug | --debu | --deb | --de | --d | -d ) 21776 debug=: ;; 21777 --file | --fil | --fi | --f ) 21778 $ac_shift 21779 case $ac_optarg in 21780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21781 '') as_fn_error $? "missing file argument" ;; 21782 esac 21783 as_fn_append CONFIG_FILES " '$ac_optarg'" 21784 ac_need_defaults=false;; 21785 --header | --heade | --head | --hea ) 21786 $ac_shift 21787 case $ac_optarg in 21788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21789 esac 21790 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21791 ac_need_defaults=false;; 21792 --he | --h) 21793 # Conflict between --help and --header 21794 as_fn_error $? "ambiguous option: \`$1' 21795Try \`$0 --help' for more information.";; 21796 --help | --hel | -h ) 21797 $as_echo "$ac_cs_usage"; exit ;; 21798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21799 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21800 ac_cs_silent=: ;; 21801 21802 # This is an error. 21803 -*) as_fn_error $? "unrecognized option: \`$1' 21804Try \`$0 --help' for more information." ;; 21805 21806 *) as_fn_append ac_config_targets " $1" 21807 ac_need_defaults=false ;; 21808 21809 esac 21810 shift 21811done 21812 21813ac_configure_extra_args= 21814 21815if $ac_cs_silent; then 21816 exec 6>/dev/null 21817 ac_configure_extra_args="$ac_configure_extra_args --silent" 21818fi 21819 21820_ACEOF 21821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21822if \$ac_cs_recheck; then 21823 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21824 shift 21825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21826 CONFIG_SHELL='$SHELL' 21827 export CONFIG_SHELL 21828 exec "\$@" 21829fi 21830 21831_ACEOF 21832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21833exec 5>>config.log 21834{ 21835 echo 21836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21837## Running $as_me. ## 21838_ASBOX 21839 $as_echo "$ac_log" 21840} >&5 21841 21842_ACEOF 21843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21844# 21845# INIT-COMMANDS 21846# 21847AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21848 21849 21850# The HP-UX ksh and POSIX shell print the target directory to stdout 21851# if CDPATH is set. 21852(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21853 21854sed_quote_subst='$sed_quote_subst' 21855double_quote_subst='$double_quote_subst' 21856delay_variable_subst='$delay_variable_subst' 21857macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21858macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21859enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21860enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21861pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21862enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21863SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21864ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21865PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21866host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21867host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21868host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21869build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21870build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21871build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21872SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21873Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21874GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21875EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21876FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21877LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21878NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21879LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21880max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21881ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21882exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21883lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21884lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21885lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21886lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21887lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21888reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21889reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21890OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21891deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21892file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21893file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21894want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21895DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21896sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21897AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21898AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21899archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21900STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21901RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21902old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21903old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21904old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21905lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21906CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21907CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21908compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21909GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21910lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21911lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21912lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21913lt_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"`' 21914nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21915lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21916objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21917MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21918lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21919lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21920lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21921lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21922lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21923need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21924MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21925DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21926NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21927LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21928OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21929OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21930libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21931shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21932extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21933archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21934enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21935export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21936whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21937compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21938old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21939old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21940archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21941archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21942module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21943module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21944with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21945allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21946no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21947hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21948hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21949hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21950hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21951hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21952hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21953hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21954inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21955link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21956always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21957export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21958exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21959include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21960prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21961postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21962file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21963variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21964need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21965need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21966version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21967runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21968shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21969shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21970libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21971library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21972soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21973install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21974postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21975postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21976finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21977finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21978hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21979sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21980sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21981hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21982enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21983enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21984enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21985old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21986striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21987 21988LTCC='$LTCC' 21989LTCFLAGS='$LTCFLAGS' 21990compiler='$compiler_DEFAULT' 21991 21992# A function that is used when there is no print builtin or printf. 21993func_fallback_echo () 21994{ 21995 eval 'cat <<_LTECHO_EOF 21996\$1 21997_LTECHO_EOF' 21998} 21999 22000# Quote evaled strings. 22001for var in SHELL \ 22002ECHO \ 22003PATH_SEPARATOR \ 22004SED \ 22005GREP \ 22006EGREP \ 22007FGREP \ 22008LD \ 22009NM \ 22010LN_S \ 22011lt_SP2NL \ 22012lt_NL2SP \ 22013reload_flag \ 22014OBJDUMP \ 22015deplibs_check_method \ 22016file_magic_cmd \ 22017file_magic_glob \ 22018want_nocaseglob \ 22019DLLTOOL \ 22020sharedlib_from_linklib_cmd \ 22021AR \ 22022AR_FLAGS \ 22023archiver_list_spec \ 22024STRIP \ 22025RANLIB \ 22026CC \ 22027CFLAGS \ 22028compiler \ 22029lt_cv_sys_global_symbol_pipe \ 22030lt_cv_sys_global_symbol_to_cdecl \ 22031lt_cv_sys_global_symbol_to_c_name_address \ 22032lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22033nm_file_list_spec \ 22034lt_prog_compiler_no_builtin_flag \ 22035lt_prog_compiler_pic \ 22036lt_prog_compiler_wl \ 22037lt_prog_compiler_static \ 22038lt_cv_prog_compiler_c_o \ 22039need_locks \ 22040MANIFEST_TOOL \ 22041DSYMUTIL \ 22042NMEDIT \ 22043LIPO \ 22044OTOOL \ 22045OTOOL64 \ 22046shrext_cmds \ 22047export_dynamic_flag_spec \ 22048whole_archive_flag_spec \ 22049compiler_needs_object \ 22050with_gnu_ld \ 22051allow_undefined_flag \ 22052no_undefined_flag \ 22053hardcode_libdir_flag_spec \ 22054hardcode_libdir_separator \ 22055exclude_expsyms \ 22056include_expsyms \ 22057file_list_spec \ 22058variables_saved_for_relink \ 22059libname_spec \ 22060library_names_spec \ 22061soname_spec \ 22062install_override_mode \ 22063finish_eval \ 22064old_striplib \ 22065striplib; do 22066 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22067 *[\\\\\\\`\\"\\\$]*) 22068 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22069 ;; 22070 *) 22071 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22072 ;; 22073 esac 22074done 22075 22076# Double-quote double-evaled strings. 22077for var in reload_cmds \ 22078old_postinstall_cmds \ 22079old_postuninstall_cmds \ 22080old_archive_cmds \ 22081extract_expsyms_cmds \ 22082old_archive_from_new_cmds \ 22083old_archive_from_expsyms_cmds \ 22084archive_cmds \ 22085archive_expsym_cmds \ 22086module_cmds \ 22087module_expsym_cmds \ 22088export_symbols_cmds \ 22089prelink_cmds \ 22090postlink_cmds \ 22091postinstall_cmds \ 22092postuninstall_cmds \ 22093finish_cmds \ 22094sys_lib_search_path_spec \ 22095sys_lib_dlsearch_path_spec; do 22096 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22097 *[\\\\\\\`\\"\\\$]*) 22098 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22099 ;; 22100 *) 22101 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22102 ;; 22103 esac 22104done 22105 22106ac_aux_dir='$ac_aux_dir' 22107xsi_shell='$xsi_shell' 22108lt_shell_append='$lt_shell_append' 22109 22110# See if we are running on zsh, and set the options which allow our 22111# commands through without removal of \ escapes INIT. 22112if test -n "\${ZSH_VERSION+set}" ; then 22113 setopt NO_GLOB_SUBST 22114fi 22115 22116 22117 PACKAGE='$PACKAGE' 22118 VERSION='$VERSION' 22119 TIMESTAMP='$TIMESTAMP' 22120 RM='$RM' 22121 ofile='$ofile' 22122 22123 22124 22125 22126_ACEOF 22127 22128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22129 22130# Handling of arguments. 22131for ac_config_target in $ac_config_targets 22132do 22133 case $ac_config_target in 22134 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22135 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 22136 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22137 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22138 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22139 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22140 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22141 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 22142 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22143 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 22144 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 22145 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 22146 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 22147 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 22148 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 22149 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 22150 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 22151 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 22152 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 22153 "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;; 22154 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 22155 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 22156 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 22157 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 22158 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22159 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 22160 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 22161 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 22162 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 22163 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 22164 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 22165 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 22166 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 22167 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 22168 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 22169 22170 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22171 esac 22172done 22173 22174 22175# If the user did not use the arguments to specify the items to instantiate, 22176# then the envvar interface is used. Set only those that are not. 22177# We use the long form for the default assignment because of an extremely 22178# bizarre bug on SunOS 4.1.3. 22179if $ac_need_defaults; then 22180 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22181 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22182 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22183fi 22184 22185# Have a temporary directory for convenience. Make it in the build tree 22186# simply because there is no reason against having it here, and in addition, 22187# creating and moving files from /tmp can sometimes cause problems. 22188# Hook for its removal unless debugging. 22189# Note that there is a small window in which the directory will not be cleaned: 22190# after its creation but before its name has been assigned to `$tmp'. 22191$debug || 22192{ 22193 tmp= ac_tmp= 22194 trap 'exit_status=$? 22195 : "${ac_tmp:=$tmp}" 22196 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22197' 0 22198 trap 'as_fn_exit 1' 1 2 13 15 22199} 22200# Create a (secure) tmp directory for tmp files. 22201 22202{ 22203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22204 test -d "$tmp" 22205} || 22206{ 22207 tmp=./conf$$-$RANDOM 22208 (umask 077 && mkdir "$tmp") 22209} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22210ac_tmp=$tmp 22211 22212# Set up the scripts for CONFIG_FILES section. 22213# No need to generate them if there are no CONFIG_FILES. 22214# This happens for instance with `./config.status config.h'. 22215if test -n "$CONFIG_FILES"; then 22216 22217 22218ac_cr=`echo X | tr X '\015'` 22219# On cygwin, bash can eat \r inside `` if the user requested igncr. 22220# But we know of no other shell where ac_cr would be empty at this 22221# point, so we can use a bashism as a fallback. 22222if test "x$ac_cr" = x; then 22223 eval ac_cr=\$\'\\r\' 22224fi 22225ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22226if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22227 ac_cs_awk_cr='\\r' 22228else 22229 ac_cs_awk_cr=$ac_cr 22230fi 22231 22232echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22233_ACEOF 22234 22235 22236{ 22237 echo "cat >conf$$subs.awk <<_ACEOF" && 22238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22239 echo "_ACEOF" 22240} >conf$$subs.sh || 22241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22242ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22243ac_delim='%!_!# ' 22244for ac_last_try in false false false false false :; do 22245 . ./conf$$subs.sh || 22246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22247 22248 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22249 if test $ac_delim_n = $ac_delim_num; then 22250 break 22251 elif $ac_last_try; then 22252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22253 else 22254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22255 fi 22256done 22257rm -f conf$$subs.sh 22258 22259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22260cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22261_ACEOF 22262sed -n ' 22263h 22264s/^/S["/; s/!.*/"]=/ 22265p 22266g 22267s/^[^!]*!// 22268:repl 22269t repl 22270s/'"$ac_delim"'$// 22271t delim 22272:nl 22273h 22274s/\(.\{148\}\)..*/\1/ 22275t more1 22276s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22277p 22278n 22279b repl 22280:more1 22281s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22282p 22283g 22284s/.\{148\}// 22285t nl 22286:delim 22287h 22288s/\(.\{148\}\)..*/\1/ 22289t more2 22290s/["\\]/\\&/g; s/^/"/; s/$/"/ 22291p 22292b 22293:more2 22294s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22295p 22296g 22297s/.\{148\}// 22298t delim 22299' <conf$$subs.awk | sed ' 22300/^[^""]/{ 22301 N 22302 s/\n// 22303} 22304' >>$CONFIG_STATUS || ac_write_fail=1 22305rm -f conf$$subs.awk 22306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22307_ACAWK 22308cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22309 for (key in S) S_is_set[key] = 1 22310 FS = "" 22311 22312} 22313{ 22314 line = $ 0 22315 nfields = split(line, field, "@") 22316 substed = 0 22317 len = length(field[1]) 22318 for (i = 2; i < nfields; i++) { 22319 key = field[i] 22320 keylen = length(key) 22321 if (S_is_set[key]) { 22322 value = S[key] 22323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22324 len += length(value) + length(field[++i]) 22325 substed = 1 22326 } else 22327 len += 1 + keylen 22328 } 22329 22330 print line 22331} 22332 22333_ACAWK 22334_ACEOF 22335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22336if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22337 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22338else 22339 cat 22340fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22341 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22342_ACEOF 22343 22344# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22345# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22346# trailing colons and then remove the whole line if VPATH becomes empty 22347# (actually we leave an empty line to preserve line numbers). 22348if test "x$srcdir" = x.; then 22349 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22350h 22351s/// 22352s/^/:/ 22353s/[ ]*$/:/ 22354s/:\$(srcdir):/:/g 22355s/:\${srcdir}:/:/g 22356s/:@srcdir@:/:/g 22357s/^:*// 22358s/:*$// 22359x 22360s/\(=[ ]*\).*/\1/ 22361G 22362s/\n// 22363s/^[^=]*=[ ]*$// 22364}' 22365fi 22366 22367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22368fi # test -n "$CONFIG_FILES" 22369 22370# Set up the scripts for CONFIG_HEADERS section. 22371# No need to generate them if there are no CONFIG_HEADERS. 22372# This happens for instance with `./config.status Makefile'. 22373if test -n "$CONFIG_HEADERS"; then 22374cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22375BEGIN { 22376_ACEOF 22377 22378# Transform confdefs.h into an awk script `defines.awk', embedded as 22379# here-document in config.status, that substitutes the proper values into 22380# config.h.in to produce config.h. 22381 22382# Create a delimiter string that does not exist in confdefs.h, to ease 22383# handling of long lines. 22384ac_delim='%!_!# ' 22385for ac_last_try in false false :; do 22386 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22387 if test -z "$ac_tt"; then 22388 break 22389 elif $ac_last_try; then 22390 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22391 else 22392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22393 fi 22394done 22395 22396# For the awk script, D is an array of macro values keyed by name, 22397# likewise P contains macro parameters if any. Preserve backslash 22398# newline sequences. 22399 22400ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22401sed -n ' 22402s/.\{148\}/&'"$ac_delim"'/g 22403t rset 22404:rset 22405s/^[ ]*#[ ]*define[ ][ ]*/ / 22406t def 22407d 22408:def 22409s/\\$// 22410t bsnl 22411s/["\\]/\\&/g 22412s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22413D["\1"]=" \3"/p 22414s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22415d 22416:bsnl 22417s/["\\]/\\&/g 22418s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22419D["\1"]=" \3\\\\\\n"\\/p 22420t cont 22421s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22422t cont 22423d 22424:cont 22425n 22426s/.\{148\}/&'"$ac_delim"'/g 22427t clear 22428:clear 22429s/\\$// 22430t bsnlc 22431s/["\\]/\\&/g; s/^/"/; s/$/"/p 22432d 22433:bsnlc 22434s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22435b cont 22436' <confdefs.h | sed ' 22437s/'"$ac_delim"'/"\\\ 22438"/g' >>$CONFIG_STATUS || ac_write_fail=1 22439 22440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22441 for (key in D) D_is_set[key] = 1 22442 FS = "" 22443} 22444/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22445 line = \$ 0 22446 split(line, arg, " ") 22447 if (arg[1] == "#") { 22448 defundef = arg[2] 22449 mac1 = arg[3] 22450 } else { 22451 defundef = substr(arg[1], 2) 22452 mac1 = arg[2] 22453 } 22454 split(mac1, mac2, "(") #) 22455 macro = mac2[1] 22456 prefix = substr(line, 1, index(line, defundef) - 1) 22457 if (D_is_set[macro]) { 22458 # Preserve the white space surrounding the "#". 22459 print prefix "define", macro P[macro] D[macro] 22460 next 22461 } else { 22462 # Replace #undef with comments. This is necessary, for example, 22463 # in the case of _POSIX_SOURCE, which is predefined and required 22464 # on some systems where configure will not decide to define it. 22465 if (defundef == "undef") { 22466 print "/*", prefix defundef, macro, "*/" 22467 next 22468 } 22469 } 22470} 22471{ print } 22472_ACAWK 22473_ACEOF 22474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22475 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22476fi # test -n "$CONFIG_HEADERS" 22477 22478 22479eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22480shift 22481for ac_tag 22482do 22483 case $ac_tag in 22484 :[FHLC]) ac_mode=$ac_tag; continue;; 22485 esac 22486 case $ac_mode$ac_tag in 22487 :[FHL]*:*);; 22488 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22489 :[FH]-) ac_tag=-:-;; 22490 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22491 esac 22492 ac_save_IFS=$IFS 22493 IFS=: 22494 set x $ac_tag 22495 IFS=$ac_save_IFS 22496 shift 22497 ac_file=$1 22498 shift 22499 22500 case $ac_mode in 22501 :L) ac_source=$1;; 22502 :[FH]) 22503 ac_file_inputs= 22504 for ac_f 22505 do 22506 case $ac_f in 22507 -) ac_f="$ac_tmp/stdin";; 22508 *) # Look for the file first in the build tree, then in the source tree 22509 # (if the path is not absolute). The absolute path cannot be DOS-style, 22510 # because $ac_f cannot contain `:'. 22511 test -f "$ac_f" || 22512 case $ac_f in 22513 [\\/$]*) false;; 22514 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22515 esac || 22516 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22517 esac 22518 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22519 as_fn_append ac_file_inputs " '$ac_f'" 22520 done 22521 22522 # Let's still pretend it is `configure' which instantiates (i.e., don't 22523 # use $as_me), people would be surprised to read: 22524 # /* config.h. Generated by config.status. */ 22525 configure_input='Generated from '` 22526 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22527 `' by configure.' 22528 if test x"$ac_file" != x-; then 22529 configure_input="$ac_file. $configure_input" 22530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22531$as_echo "$as_me: creating $ac_file" >&6;} 22532 fi 22533 # Neutralize special characters interpreted by sed in replacement strings. 22534 case $configure_input in #( 22535 *\&* | *\|* | *\\* ) 22536 ac_sed_conf_input=`$as_echo "$configure_input" | 22537 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22538 *) ac_sed_conf_input=$configure_input;; 22539 esac 22540 22541 case $ac_tag in 22542 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22544 esac 22545 ;; 22546 esac 22547 22548 ac_dir=`$as_dirname -- "$ac_file" || 22549$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22550 X"$ac_file" : 'X\(//\)[^/]' \| \ 22551 X"$ac_file" : 'X\(//\)$' \| \ 22552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22553$as_echo X"$ac_file" | 22554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22555 s//\1/ 22556 q 22557 } 22558 /^X\(\/\/\)[^/].*/{ 22559 s//\1/ 22560 q 22561 } 22562 /^X\(\/\/\)$/{ 22563 s//\1/ 22564 q 22565 } 22566 /^X\(\/\).*/{ 22567 s//\1/ 22568 q 22569 } 22570 s/.*/./; q'` 22571 as_dir="$ac_dir"; as_fn_mkdir_p 22572 ac_builddir=. 22573 22574case "$ac_dir" in 22575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22576*) 22577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22578 # A ".." for each directory in $ac_dir_suffix. 22579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22580 case $ac_top_builddir_sub in 22581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22583 esac ;; 22584esac 22585ac_abs_top_builddir=$ac_pwd 22586ac_abs_builddir=$ac_pwd$ac_dir_suffix 22587# for backward compatibility: 22588ac_top_builddir=$ac_top_build_prefix 22589 22590case $srcdir in 22591 .) # We are building in place. 22592 ac_srcdir=. 22593 ac_top_srcdir=$ac_top_builddir_sub 22594 ac_abs_top_srcdir=$ac_pwd ;; 22595 [\\/]* | ?:[\\/]* ) # Absolute name. 22596 ac_srcdir=$srcdir$ac_dir_suffix; 22597 ac_top_srcdir=$srcdir 22598 ac_abs_top_srcdir=$srcdir ;; 22599 *) # Relative name. 22600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22601 ac_top_srcdir=$ac_top_build_prefix$srcdir 22602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22603esac 22604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22605 22606 22607 case $ac_mode in 22608 :F) 22609 # 22610 # CONFIG_FILE 22611 # 22612 22613 case $INSTALL in 22614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22616 esac 22617 ac_MKDIR_P=$MKDIR_P 22618 case $MKDIR_P in 22619 [\\/$]* | ?:[\\/]* ) ;; 22620 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22621 esac 22622_ACEOF 22623 22624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22625# If the template does not know about datarootdir, expand it. 22626# FIXME: This hack should be removed a few years after 2.60. 22627ac_datarootdir_hack=; ac_datarootdir_seen= 22628ac_sed_dataroot=' 22629/datarootdir/ { 22630 p 22631 q 22632} 22633/@datadir@/p 22634/@docdir@/p 22635/@infodir@/p 22636/@localedir@/p 22637/@mandir@/p' 22638case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22639*datarootdir*) ac_datarootdir_seen=yes;; 22640*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22642$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22643_ACEOF 22644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22645 ac_datarootdir_hack=' 22646 s&@datadir@&$datadir&g 22647 s&@docdir@&$docdir&g 22648 s&@infodir@&$infodir&g 22649 s&@localedir@&$localedir&g 22650 s&@mandir@&$mandir&g 22651 s&\\\${datarootdir}&$datarootdir&g' ;; 22652esac 22653_ACEOF 22654 22655# Neutralize VPATH when `$srcdir' = `.'. 22656# Shell code in configure.ac might set extrasub. 22657# FIXME: do we really want to maintain this feature? 22658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22659ac_sed_extra="$ac_vpsub 22660$extrasub 22661_ACEOF 22662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22663:t 22664/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22665s|@configure_input@|$ac_sed_conf_input|;t t 22666s&@top_builddir@&$ac_top_builddir_sub&;t t 22667s&@top_build_prefix@&$ac_top_build_prefix&;t t 22668s&@srcdir@&$ac_srcdir&;t t 22669s&@abs_srcdir@&$ac_abs_srcdir&;t t 22670s&@top_srcdir@&$ac_top_srcdir&;t t 22671s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22672s&@builddir@&$ac_builddir&;t t 22673s&@abs_builddir@&$ac_abs_builddir&;t t 22674s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22675s&@INSTALL@&$ac_INSTALL&;t t 22676s&@MKDIR_P@&$ac_MKDIR_P&;t t 22677$ac_datarootdir_hack 22678" 22679eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22680 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22681 22682test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22683 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22684 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22685 "$ac_tmp/out"`; test -z "$ac_out"; } && 22686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22687which seems to be undefined. Please make sure it is defined" >&5 22688$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22689which seems to be undefined. Please make sure it is defined" >&2;} 22690 22691 rm -f "$ac_tmp/stdin" 22692 case $ac_file in 22693 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22694 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22695 esac \ 22696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22697 ;; 22698 :H) 22699 # 22700 # CONFIG_HEADER 22701 # 22702 if test x"$ac_file" != x-; then 22703 { 22704 $as_echo "/* $configure_input */" \ 22705 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22706 } >"$ac_tmp/config.h" \ 22707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22708 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22709 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22710$as_echo "$as_me: $ac_file is unchanged" >&6;} 22711 else 22712 rm -f "$ac_file" 22713 mv "$ac_tmp/config.h" "$ac_file" \ 22714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22715 fi 22716 else 22717 $as_echo "/* $configure_input */" \ 22718 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22719 || as_fn_error $? "could not create -" "$LINENO" 5 22720 fi 22721# Compute "$ac_file"'s index in $config_headers. 22722_am_arg="$ac_file" 22723_am_stamp_count=1 22724for _am_header in $config_headers :; do 22725 case $_am_header in 22726 $_am_arg | $_am_arg:* ) 22727 break ;; 22728 * ) 22729 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22730 esac 22731done 22732echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22733$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22734 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22735 X"$_am_arg" : 'X\(//\)$' \| \ 22736 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22737$as_echo X"$_am_arg" | 22738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22739 s//\1/ 22740 q 22741 } 22742 /^X\(\/\/\)[^/].*/{ 22743 s//\1/ 22744 q 22745 } 22746 /^X\(\/\/\)$/{ 22747 s//\1/ 22748 q 22749 } 22750 /^X\(\/\).*/{ 22751 s//\1/ 22752 q 22753 } 22754 s/.*/./; q'`/stamp-h$_am_stamp_count 22755 ;; 22756 22757 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22758$as_echo "$as_me: executing $ac_file commands" >&6;} 22759 ;; 22760 esac 22761 22762 22763 case $ac_file$ac_mode in 22764 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22765 # Older Autoconf quotes --file arguments for eval, but not when files 22766 # are listed without --file. Let's play safe and only enable the eval 22767 # if we detect the quoting. 22768 case $CONFIG_FILES in 22769 *\'*) eval set x "$CONFIG_FILES" ;; 22770 *) set x $CONFIG_FILES ;; 22771 esac 22772 shift 22773 for mf 22774 do 22775 # Strip MF so we end up with the name of the file. 22776 mf=`echo "$mf" | sed -e 's/:.*$//'` 22777 # Check whether this is an Automake generated Makefile or not. 22778 # We used to match only the files named 'Makefile.in', but 22779 # some people rename them; so instead we look at the file content. 22780 # Grep'ing the first line is not enough: some people post-process 22781 # each Makefile.in and add a new line on top of each file to say so. 22782 # Grep'ing the whole file is not good either: AIX grep has a line 22783 # limit of 2048, but all sed's we know have understand at least 4000. 22784 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22785 dirpart=`$as_dirname -- "$mf" || 22786$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22787 X"$mf" : 'X\(//\)[^/]' \| \ 22788 X"$mf" : 'X\(//\)$' \| \ 22789 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22790$as_echo X"$mf" | 22791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22792 s//\1/ 22793 q 22794 } 22795 /^X\(\/\/\)[^/].*/{ 22796 s//\1/ 22797 q 22798 } 22799 /^X\(\/\/\)$/{ 22800 s//\1/ 22801 q 22802 } 22803 /^X\(\/\).*/{ 22804 s//\1/ 22805 q 22806 } 22807 s/.*/./; q'` 22808 else 22809 continue 22810 fi 22811 # Extract the definition of DEPDIR, am__include, and am__quote 22812 # from the Makefile without running 'make'. 22813 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22814 test -z "$DEPDIR" && continue 22815 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22816 test -z "$am__include" && continue 22817 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22818 # Find all dependency output files, they are included files with 22819 # $(DEPDIR) in their names. We invoke sed twice because it is the 22820 # simplest approach to changing $(DEPDIR) to its actual value in the 22821 # expansion. 22822 for file in `sed -n " 22823 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22824 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22825 # Make sure the directory exists. 22826 test -f "$dirpart/$file" && continue 22827 fdir=`$as_dirname -- "$file" || 22828$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22829 X"$file" : 'X\(//\)[^/]' \| \ 22830 X"$file" : 'X\(//\)$' \| \ 22831 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22832$as_echo X"$file" | 22833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22834 s//\1/ 22835 q 22836 } 22837 /^X\(\/\/\)[^/].*/{ 22838 s//\1/ 22839 q 22840 } 22841 /^X\(\/\/\)$/{ 22842 s//\1/ 22843 q 22844 } 22845 /^X\(\/\).*/{ 22846 s//\1/ 22847 q 22848 } 22849 s/.*/./; q'` 22850 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22851 # echo "creating $dirpart/$file" 22852 echo '# dummy' > "$dirpart/$file" 22853 done 22854 done 22855} 22856 ;; 22857 "libtool":C) 22858 22859 # See if we are running on zsh, and set the options which allow our 22860 # commands through without removal of \ escapes. 22861 if test -n "${ZSH_VERSION+set}" ; then 22862 setopt NO_GLOB_SUBST 22863 fi 22864 22865 cfgfile="${ofile}T" 22866 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22867 $RM "$cfgfile" 22868 22869 cat <<_LT_EOF >> "$cfgfile" 22870#! $SHELL 22871 22872# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22873# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22875# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22876# 22877# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22878# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 22879# Foundation, Inc. 22880# Written by Gordon Matzigkeit, 1996 22881# 22882# This file is part of GNU Libtool. 22883# 22884# GNU Libtool is free software; you can redistribute it and/or 22885# modify it under the terms of the GNU General Public License as 22886# published by the Free Software Foundation; either version 2 of 22887# the License, or (at your option) any later version. 22888# 22889# As a special exception to the GNU General Public License, 22890# if you distribute this file as part of a program or library that 22891# is built using GNU Libtool, you may include this file under the 22892# same distribution terms that you use for the rest of that program. 22893# 22894# GNU Libtool is distributed in the hope that it will be useful, 22895# but WITHOUT ANY WARRANTY; without even the implied warranty of 22896# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22897# GNU General Public License for more details. 22898# 22899# You should have received a copy of the GNU General Public License 22900# along with GNU Libtool; see the file COPYING. If not, a copy 22901# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22902# obtained by writing to the Free Software Foundation, Inc., 22903# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22904 22905 22906# The names of the tagged configurations supported by this script. 22907available_tags="" 22908 22909# ### BEGIN LIBTOOL CONFIG 22910 22911# Which release of libtool.m4 was used? 22912macro_version=$macro_version 22913macro_revision=$macro_revision 22914 22915# Whether or not to build shared libraries. 22916build_libtool_libs=$enable_shared 22917 22918# Whether or not to build static libraries. 22919build_old_libs=$enable_static 22920 22921# What type of objects to build. 22922pic_mode=$pic_mode 22923 22924# Whether or not to optimize for fast installation. 22925fast_install=$enable_fast_install 22926 22927# Shell to use when invoking shell scripts. 22928SHELL=$lt_SHELL 22929 22930# An echo program that protects backslashes. 22931ECHO=$lt_ECHO 22932 22933# The PATH separator for the build system. 22934PATH_SEPARATOR=$lt_PATH_SEPARATOR 22935 22936# The host system. 22937host_alias=$host_alias 22938host=$host 22939host_os=$host_os 22940 22941# The build system. 22942build_alias=$build_alias 22943build=$build 22944build_os=$build_os 22945 22946# A sed program that does not truncate output. 22947SED=$lt_SED 22948 22949# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22950Xsed="\$SED -e 1s/^X//" 22951 22952# A grep program that handles long lines. 22953GREP=$lt_GREP 22954 22955# An ERE matcher. 22956EGREP=$lt_EGREP 22957 22958# A literal string matcher. 22959FGREP=$lt_FGREP 22960 22961# A BSD- or MS-compatible name lister. 22962NM=$lt_NM 22963 22964# Whether we need soft or hard links. 22965LN_S=$lt_LN_S 22966 22967# What is the maximum length of a command? 22968max_cmd_len=$max_cmd_len 22969 22970# Object file suffix (normally "o"). 22971objext=$ac_objext 22972 22973# Executable file suffix (normally ""). 22974exeext=$exeext 22975 22976# whether the shell understands "unset". 22977lt_unset=$lt_unset 22978 22979# turn spaces into newlines. 22980SP2NL=$lt_lt_SP2NL 22981 22982# turn newlines into spaces. 22983NL2SP=$lt_lt_NL2SP 22984 22985# convert \$build file names to \$host format. 22986to_host_file_cmd=$lt_cv_to_host_file_cmd 22987 22988# convert \$build files to toolchain format. 22989to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22990 22991# An object symbol dumper. 22992OBJDUMP=$lt_OBJDUMP 22993 22994# Method to check whether dependent libraries are shared objects. 22995deplibs_check_method=$lt_deplibs_check_method 22996 22997# Command to use when deplibs_check_method = "file_magic". 22998file_magic_cmd=$lt_file_magic_cmd 22999 23000# How to find potential files when deplibs_check_method = "file_magic". 23001file_magic_glob=$lt_file_magic_glob 23002 23003# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23004want_nocaseglob=$lt_want_nocaseglob 23005 23006# DLL creation program. 23007DLLTOOL=$lt_DLLTOOL 23008 23009# Command to associate shared and link libraries. 23010sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23011 23012# The archiver. 23013AR=$lt_AR 23014 23015# Flags to create an archive. 23016AR_FLAGS=$lt_AR_FLAGS 23017 23018# How to feed a file listing to the archiver. 23019archiver_list_spec=$lt_archiver_list_spec 23020 23021# A symbol stripping program. 23022STRIP=$lt_STRIP 23023 23024# Commands used to install an old-style archive. 23025RANLIB=$lt_RANLIB 23026old_postinstall_cmds=$lt_old_postinstall_cmds 23027old_postuninstall_cmds=$lt_old_postuninstall_cmds 23028 23029# Whether to use a lock for old archive extraction. 23030lock_old_archive_extraction=$lock_old_archive_extraction 23031 23032# A C compiler. 23033LTCC=$lt_CC 23034 23035# LTCC compiler flags. 23036LTCFLAGS=$lt_CFLAGS 23037 23038# Take the output of nm and produce a listing of raw symbols and C names. 23039global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23040 23041# Transform the output of nm in a proper C declaration. 23042global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23043 23044# Transform the output of nm in a C name address pair. 23045global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23046 23047# Transform the output of nm in a C name address pair when lib prefix is needed. 23048global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23049 23050# Specify filename containing input files for \$NM. 23051nm_file_list_spec=$lt_nm_file_list_spec 23052 23053# The root where to search for dependent libraries,and in which our libraries should be installed. 23054lt_sysroot=$lt_sysroot 23055 23056# The name of the directory that contains temporary libtool files. 23057objdir=$objdir 23058 23059# Used to examine libraries when file_magic_cmd begins with "file". 23060MAGIC_CMD=$MAGIC_CMD 23061 23062# Must we lock files when doing compilation? 23063need_locks=$lt_need_locks 23064 23065# Manifest tool. 23066MANIFEST_TOOL=$lt_MANIFEST_TOOL 23067 23068# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23069DSYMUTIL=$lt_DSYMUTIL 23070 23071# Tool to change global to local symbols on Mac OS X. 23072NMEDIT=$lt_NMEDIT 23073 23074# Tool to manipulate fat objects and archives on Mac OS X. 23075LIPO=$lt_LIPO 23076 23077# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23078OTOOL=$lt_OTOOL 23079 23080# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23081OTOOL64=$lt_OTOOL64 23082 23083# Old archive suffix (normally "a"). 23084libext=$libext 23085 23086# Shared library suffix (normally ".so"). 23087shrext_cmds=$lt_shrext_cmds 23088 23089# The commands to extract the exported symbol list from a shared archive. 23090extract_expsyms_cmds=$lt_extract_expsyms_cmds 23091 23092# Variables whose values should be saved in libtool wrapper scripts and 23093# restored at link time. 23094variables_saved_for_relink=$lt_variables_saved_for_relink 23095 23096# Do we need the "lib" prefix for modules? 23097need_lib_prefix=$need_lib_prefix 23098 23099# Do we need a version for libraries? 23100need_version=$need_version 23101 23102# Library versioning type. 23103version_type=$version_type 23104 23105# Shared library runtime path variable. 23106runpath_var=$runpath_var 23107 23108# Shared library path variable. 23109shlibpath_var=$shlibpath_var 23110 23111# Is shlibpath searched before the hard-coded library search path? 23112shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23113 23114# Format of library name prefix. 23115libname_spec=$lt_libname_spec 23116 23117# List of archive names. First name is the real one, the rest are links. 23118# The last name is the one that the linker finds with -lNAME 23119library_names_spec=$lt_library_names_spec 23120 23121# The coded name of the library, if different from the real name. 23122soname_spec=$lt_soname_spec 23123 23124# Permission mode override for installation of shared libraries. 23125install_override_mode=$lt_install_override_mode 23126 23127# Command to use after installation of a shared archive. 23128postinstall_cmds=$lt_postinstall_cmds 23129 23130# Command to use after uninstallation of a shared archive. 23131postuninstall_cmds=$lt_postuninstall_cmds 23132 23133# Commands used to finish a libtool library installation in a directory. 23134finish_cmds=$lt_finish_cmds 23135 23136# As "finish_cmds", except a single script fragment to be evaled but 23137# not shown. 23138finish_eval=$lt_finish_eval 23139 23140# Whether we should hardcode library paths into libraries. 23141hardcode_into_libs=$hardcode_into_libs 23142 23143# Compile-time system search path for libraries. 23144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23145 23146# Run-time system search path for libraries. 23147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23148 23149# Whether dlopen is supported. 23150dlopen_support=$enable_dlopen 23151 23152# Whether dlopen of programs is supported. 23153dlopen_self=$enable_dlopen_self 23154 23155# Whether dlopen of statically linked programs is supported. 23156dlopen_self_static=$enable_dlopen_self_static 23157 23158# Commands to strip libraries. 23159old_striplib=$lt_old_striplib 23160striplib=$lt_striplib 23161 23162 23163# The linker used to build libraries. 23164LD=$lt_LD 23165 23166# How to create reloadable object files. 23167reload_flag=$lt_reload_flag 23168reload_cmds=$lt_reload_cmds 23169 23170# Commands used to build an old-style archive. 23171old_archive_cmds=$lt_old_archive_cmds 23172 23173# A language specific compiler. 23174CC=$lt_compiler 23175 23176# Is the compiler the GNU compiler? 23177with_gcc=$GCC 23178 23179# Compiler flag to turn off builtin functions. 23180no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23181 23182# Additional compiler flags for building library objects. 23183pic_flag=$lt_lt_prog_compiler_pic 23184 23185# How to pass a linker flag through the compiler. 23186wl=$lt_lt_prog_compiler_wl 23187 23188# Compiler flag to prevent dynamic linking. 23189link_static_flag=$lt_lt_prog_compiler_static 23190 23191# Does compiler simultaneously support -c and -o options? 23192compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23193 23194# Whether or not to add -lc for building shared libraries. 23195build_libtool_need_lc=$archive_cmds_need_lc 23196 23197# Whether or not to disallow shared libs when runtime libs are static. 23198allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23199 23200# Compiler flag to allow reflexive dlopens. 23201export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23202 23203# Compiler flag to generate shared objects directly from archives. 23204whole_archive_flag_spec=$lt_whole_archive_flag_spec 23205 23206# Whether the compiler copes with passing no objects directly. 23207compiler_needs_object=$lt_compiler_needs_object 23208 23209# Create an old-style archive from a shared archive. 23210old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23211 23212# Create a temporary old-style archive to link instead of a shared archive. 23213old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23214 23215# Commands used to build a shared archive. 23216archive_cmds=$lt_archive_cmds 23217archive_expsym_cmds=$lt_archive_expsym_cmds 23218 23219# Commands used to build a loadable module if different from building 23220# a shared archive. 23221module_cmds=$lt_module_cmds 23222module_expsym_cmds=$lt_module_expsym_cmds 23223 23224# Whether we are building with GNU ld or not. 23225with_gnu_ld=$lt_with_gnu_ld 23226 23227# Flag that allows shared libraries with undefined symbols to be built. 23228allow_undefined_flag=$lt_allow_undefined_flag 23229 23230# Flag that enforces no undefined symbols. 23231no_undefined_flag=$lt_no_undefined_flag 23232 23233# Flag to hardcode \$libdir into a binary during linking. 23234# This must work even if \$libdir does not exist 23235hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23236 23237# Whether we need a single "-rpath" flag with a separated argument. 23238hardcode_libdir_separator=$lt_hardcode_libdir_separator 23239 23240# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23241# DIR into the resulting binary. 23242hardcode_direct=$hardcode_direct 23243 23244# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23245# DIR into the resulting binary and the resulting library dependency is 23246# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23247# library is relocated. 23248hardcode_direct_absolute=$hardcode_direct_absolute 23249 23250# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23251# into the resulting binary. 23252hardcode_minus_L=$hardcode_minus_L 23253 23254# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23255# into the resulting binary. 23256hardcode_shlibpath_var=$hardcode_shlibpath_var 23257 23258# Set to "yes" if building a shared library automatically hardcodes DIR 23259# into the library and all subsequent libraries and executables linked 23260# against it. 23261hardcode_automatic=$hardcode_automatic 23262 23263# Set to yes if linker adds runtime paths of dependent libraries 23264# to runtime path list. 23265inherit_rpath=$inherit_rpath 23266 23267# Whether libtool must link a program against all its dependency libraries. 23268link_all_deplibs=$link_all_deplibs 23269 23270# Set to "yes" if exported symbols are required. 23271always_export_symbols=$always_export_symbols 23272 23273# The commands to list exported symbols. 23274export_symbols_cmds=$lt_export_symbols_cmds 23275 23276# Symbols that should not be listed in the preloaded symbols. 23277exclude_expsyms=$lt_exclude_expsyms 23278 23279# Symbols that must always be exported. 23280include_expsyms=$lt_include_expsyms 23281 23282# Commands necessary for linking programs (against libraries) with templates. 23283prelink_cmds=$lt_prelink_cmds 23284 23285# Commands necessary for finishing linking programs. 23286postlink_cmds=$lt_postlink_cmds 23287 23288# Specify filename containing input files. 23289file_list_spec=$lt_file_list_spec 23290 23291# How to hardcode a shared library path into an executable. 23292hardcode_action=$hardcode_action 23293 23294# ### END LIBTOOL CONFIG 23295 23296_LT_EOF 23297 23298 case $host_os in 23299 aix3*) 23300 cat <<\_LT_EOF >> "$cfgfile" 23301# AIX sometimes has problems with the GCC collect2 program. For some 23302# reason, if we set the COLLECT_NAMES environment variable, the problems 23303# vanish in a puff of smoke. 23304if test "X${COLLECT_NAMES+set}" != Xset; then 23305 COLLECT_NAMES= 23306 export COLLECT_NAMES 23307fi 23308_LT_EOF 23309 ;; 23310 esac 23311 23312 23313ltmain="$ac_aux_dir/ltmain.sh" 23314 23315 23316 # We use sed instead of cat because bash on DJGPP gets confused if 23317 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23318 # text mode, it properly converts lines to CR/LF. This bash problem 23319 # is reportedly fixed, but why not run on old versions too? 23320 sed '$q' "$ltmain" >> "$cfgfile" \ 23321 || (rm -f "$cfgfile"; exit 1) 23322 23323 if test x"$xsi_shell" = xyes; then 23324 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 23325func_dirname ()\ 23326{\ 23327\ case ${1} in\ 23328\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23329\ * ) func_dirname_result="${3}" ;;\ 23330\ esac\ 23331} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 23332 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23334test 0 -eq $? || _lt_function_replace_fail=: 23335 23336 23337 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 23338func_basename ()\ 23339{\ 23340\ func_basename_result="${1##*/}"\ 23341} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23342 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23344test 0 -eq $? || _lt_function_replace_fail=: 23345 23346 23347 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 23348func_dirname_and_basename ()\ 23349{\ 23350\ case ${1} in\ 23351\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23352\ * ) func_dirname_result="${3}" ;;\ 23353\ esac\ 23354\ func_basename_result="${1##*/}"\ 23355} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23356 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23358test 0 -eq $? || _lt_function_replace_fail=: 23359 23360 23361 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 23362func_stripname ()\ 23363{\ 23364\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 23365\ # positional parameters, so assign one to ordinary parameter first.\ 23366\ func_stripname_result=${3}\ 23367\ func_stripname_result=${func_stripname_result#"${1}"}\ 23368\ func_stripname_result=${func_stripname_result%"${2}"}\ 23369} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 23370 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23372test 0 -eq $? || _lt_function_replace_fail=: 23373 23374 23375 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 23376func_split_long_opt ()\ 23377{\ 23378\ func_split_long_opt_name=${1%%=*}\ 23379\ func_split_long_opt_arg=${1#*=}\ 23380} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23381 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23383test 0 -eq $? || _lt_function_replace_fail=: 23384 23385 23386 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 23387func_split_short_opt ()\ 23388{\ 23389\ func_split_short_opt_arg=${1#??}\ 23390\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 23391} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23392 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23394test 0 -eq $? || _lt_function_replace_fail=: 23395 23396 23397 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 23398func_lo2o ()\ 23399{\ 23400\ case ${1} in\ 23401\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 23402\ *) func_lo2o_result=${1} ;;\ 23403\ esac\ 23404} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 23405 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23407test 0 -eq $? || _lt_function_replace_fail=: 23408 23409 23410 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 23411func_xform ()\ 23412{\ 23413 func_xform_result=${1%.*}.lo\ 23414} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 23415 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23417test 0 -eq $? || _lt_function_replace_fail=: 23418 23419 23420 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 23421func_arith ()\ 23422{\ 23423 func_arith_result=$(( $* ))\ 23424} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 23425 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23426 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23427test 0 -eq $? || _lt_function_replace_fail=: 23428 23429 23430 sed -e '/^func_len ()$/,/^} # func_len /c\ 23431func_len ()\ 23432{\ 23433 func_len_result=${#1}\ 23434} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 23435 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23437test 0 -eq $? || _lt_function_replace_fail=: 23438 23439fi 23440 23441if test x"$lt_shell_append" = xyes; then 23442 sed -e '/^func_append ()$/,/^} # func_append /c\ 23443func_append ()\ 23444{\ 23445 eval "${1}+=\\${2}"\ 23446} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 23447 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23448 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23449test 0 -eq $? || _lt_function_replace_fail=: 23450 23451 23452 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 23453func_append_quoted ()\ 23454{\ 23455\ func_quote_for_eval "${2}"\ 23456\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 23457} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 23458 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23459 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23460test 0 -eq $? || _lt_function_replace_fail=: 23461 23462 23463 # Save a `func_append' function call where possible by direct use of '+=' 23464 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 23465 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23467 test 0 -eq $? || _lt_function_replace_fail=: 23468else 23469 # Save a `func_append' function call even when '+=' is not available 23470 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 23471 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23473 test 0 -eq $? || _lt_function_replace_fail=: 23474fi 23475 23476if test x"$_lt_function_replace_fail" = x":"; then 23477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 23478$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 23479fi 23480 23481 23482 mv -f "$cfgfile" "$ofile" || 23483 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23484 chmod +x "$ofile" 23485 23486 ;; 23487 23488 esac 23489done # for ac_tag 23490 23491 23492as_fn_exit 0 23493_ACEOF 23494ac_clean_files=$ac_clean_files_save 23495 23496test $ac_write_fail = 0 || 23497 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23498 23499 23500# configure is writing to config.log, and then calls config.status. 23501# config.status does its own redirection, appending to config.log. 23502# Unfortunately, on DOS this fails, as config.log is still kept open 23503# by configure, so config.status won't be able to write to it; its 23504# output is simply discarded. So we exec the FD to /dev/null, 23505# effectively closing config.log, so it can be properly (re)opened and 23506# appended to by config.status. When coming back to configure, we 23507# need to make the FD available again. 23508if test "$no_create" != yes; then 23509 ac_cs_success=: 23510 ac_config_status_args= 23511 test "$silent" = yes && 23512 ac_config_status_args="$ac_config_status_args --quiet" 23513 exec 5>/dev/null 23514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23515 exec 5>>config.log 23516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23517 # would make configure fail if this is the last instruction. 23518 $ac_cs_success || as_fn_exit 1 23519fi 23520if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23522$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23523fi 23524 23525 23526echo "" 23527echo "X11 will be built with the following settings:" 23528echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 23529echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 23530echo " Threading support: "$xthreads 23531echo " Use Threads safe API: "$mtsafeapi 23532echo " Threads stubs in libX11: "$thrstubs 23533echo " XCMS: "$XCMS 23534echo " Internationalization support: "$XLOCALE 23535echo " XF86BigFont support: "$XF86BIGFONT 23536echo " XKB support: "$XKB 23537echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 23538echo " Compose table cache enabled: "$COMPOSECACHE 23539echo " Functional specs building enabled: "$build_specs 23540echo "" 23541