configure revision 0cc2eac3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXmu 1.1.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550as_awk_strverscmp=' 551 # Use only awk features that work with 7th edition Unix awk (1978). 552 # My, what an old awk you have, Mr. Solaris! 553 END { 554 while (length(v1) && length(v2)) { 555 # Set d1 to be the next thing to compare from v1, and likewise for d2. 556 # Normally this is a single character, but if v1 and v2 contain digits, 557 # compare them as integers and fractions as strverscmp does. 558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 559 # Split v1 and v2 into their leading digit string components d1 and d2, 560 # and advance v1 and v2 past the leading digit strings. 561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 565 if (d1 ~ /^0/) { 566 if (d2 ~ /^0/) { 567 # Compare two fractions. 568 while (d1 ~ /^0/ && d2 ~ /^0/) { 569 d1 = substr(d1, 2); len1-- 570 d2 = substr(d2, 2); len2-- 571 } 572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 573 # The two components differ in length, and the common prefix 574 # contains only leading zeros. Consider the longer to be less. 575 d1 = -len1 576 d2 = -len2 577 } else { 578 # Otherwise, compare as strings. 579 d1 = "x" d1 580 d2 = "x" d2 581 } 582 } else { 583 # A fraction is less than an integer. 584 exit 1 585 } 586 } else { 587 if (d2 ~ /^0/) { 588 # An integer is greater than a fraction. 589 exit 2 590 } else { 591 # Compare two integers. 592 d1 += 0 593 d2 += 0 594 } 595 } 596 } else { 597 # The normal case, without worrying about digits. 598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 600 } 601 if (d1 < d2) exit 1 602 if (d1 > d2) exit 2 603 } 604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 605 # which mishandles some comparisons of empty strings to integers. 606 if (length(v2)) exit 1 607 if (length(v1)) exit 2 608 } 609' 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='libXmu' 633PACKAGE_TARNAME='libXmu' 634PACKAGE_VERSION='1.1.1' 635PACKAGE_STRING='libXmu 1.1.1' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639ac_unique_file="Makefile.am" 640# Factoring default headers for most tests. 641ac_includes_default="\ 642#include <stdio.h> 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef STDC_HEADERS 650# include <stdlib.h> 651# include <stddef.h> 652#else 653# ifdef HAVE_STDLIB_H 654# include <stdlib.h> 655# endif 656#endif 657#ifdef HAVE_STRING_H 658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659# include <memory.h> 660# endif 661# include <string.h> 662#endif 663#ifdef HAVE_STRINGS_H 664# include <strings.h> 665#endif 666#ifdef HAVE_INTTYPES_H 667# include <inttypes.h> 668#endif 669#ifdef HAVE_STDINT_H 670# include <stdint.h> 671#endif 672#ifdef HAVE_UNISTD_H 673# include <unistd.h> 674#endif" 675 676ac_subst_vars='am__EXEEXT_FALSE 677am__EXEEXT_TRUE 678LTLIBOBJS 679LIBOBJS 680LINTLIBUU 681MAKE_LINT_LIB_FALSE 682MAKE_LINT_LIB_TRUE 683LINTLIB 684LINT_FALSE 685LINT_TRUE 686LINT_FLAGS 687LINT 688XMUU_LIBS 689XMUU_CFLAGS 690XMU_LIBS 691XMU_CFLAGS 692HAVE_STYLESHEETS_FALSE 693HAVE_STYLESHEETS_TRUE 694XSL_STYLESHEET 695STYLESHEET_SRCDIR 696XORG_SGML_PATH 697HAVE_XSLTPROC_FALSE 698HAVE_XSLTPROC_TRUE 699XSLTPROC 700HAVE_FOP_FALSE 701HAVE_FOP_TRUE 702FOP 703HAVE_XMLTO_FALSE 704HAVE_XMLTO_TRUE 705HAVE_XMLTO_TEXT_FALSE 706HAVE_XMLTO_TEXT_TRUE 707XMLTO 708ENABLE_DOCS_FALSE 709ENABLE_DOCS_TRUE 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712MAN_SUBSTS 713XORG_MAN_PAGE 714ADMIN_MAN_DIR 715DRIVER_MAN_DIR 716MISC_MAN_DIR 717FILE_MAN_DIR 718LIB_MAN_DIR 719APP_MAN_DIR 720ADMIN_MAN_SUFFIX 721DRIVER_MAN_SUFFIX 722MISC_MAN_SUFFIX 723FILE_MAN_SUFFIX 724LIB_MAN_SUFFIX 725APP_MAN_SUFFIX 726INSTALL_CMD 727PKG_CONFIG 728CHANGELOG_CMD 729STRICT_CFLAGS 730CWARNFLAGS 731BASE_CFLAGS 732CPP 733OTOOL64 734OTOOL 735LIPO 736NMEDIT 737DSYMUTIL 738MANIFEST_TOOL 739RANLIB 740ac_ct_AR 741AR 742DLLTOOL 743OBJDUMP 744LN_S 745NM 746ac_ct_DUMPBIN 747DUMPBIN 748LD 749FGREP 750EGREP 751GREP 752SED 753am__fastdepCC_FALSE 754am__fastdepCC_TRUE 755CCDEPMODE 756AMDEPBACKSLASH 757AMDEP_FALSE 758AMDEP_TRUE 759am__quote 760am__include 761DEPDIR 762OBJEXT 763EXEEXT 764ac_ct_CC 765CPPFLAGS 766LDFLAGS 767CFLAGS 768CC 769host_os 770host_vendor 771host_cpu 772host 773build_os 774build_vendor 775build_cpu 776build 777LIBTOOL 778MAINT 779MAINTAINER_MODE_FALSE 780MAINTAINER_MODE_TRUE 781am__untar 782am__tar 783AMTAR 784am__leading_dot 785SET_MAKE 786AWK 787mkdir_p 788MKDIR_P 789INSTALL_STRIP_PROGRAM 790STRIP 791install_sh 792MAKEINFO 793AUTOHEADER 794AUTOMAKE 795AUTOCONF 796ACLOCAL 797VERSION 798PACKAGE 799CYGPATH_W 800am__isrc 801INSTALL_DATA 802INSTALL_SCRIPT 803INSTALL_PROGRAM 804target_alias 805host_alias 806build_alias 807LIBS 808ECHO_T 809ECHO_N 810ECHO_C 811DEFS 812mandir 813localedir 814libdir 815psdir 816pdfdir 817dvidir 818htmldir 819infodir 820docdir 821oldincludedir 822includedir 823localstatedir 824sharedstatedir 825sysconfdir 826datadir 827datarootdir 828libexecdir 829sbindir 830bindir 831program_transform_name 832prefix 833exec_prefix 834PACKAGE_URL 835PACKAGE_BUGREPORT 836PACKAGE_STRING 837PACKAGE_VERSION 838PACKAGE_TARNAME 839PACKAGE_NAME 840PATH_SEPARATOR 841SHELL' 842ac_subst_files='' 843ac_user_opts=' 844enable_option_checking 845enable_maintainer_mode 846enable_shared 847enable_static 848with_pic 849enable_fast_install 850enable_dependency_tracking 851with_gnu_ld 852with_sysroot 853enable_libtool_lock 854enable_selective_werror 855enable_strict_compilation 856enable_silent_rules 857enable_docs 858with_xmlto 859with_fop 860with_xsltproc 861enable_unix_transport 862enable_tcp_transport 863enable_ipv6 864enable_local_transport 865with_lint 866enable_lint_library 867' 868 ac_precious_vars='build_alias 869host_alias 870target_alias 871CC 872CFLAGS 873LDFLAGS 874LIBS 875CPPFLAGS 876CPP 877PKG_CONFIG 878XMLTO 879FOP 880XSLTPROC 881XMU_CFLAGS 882XMU_LIBS 883XMUU_CFLAGS 884XMUU_LIBS 885LINT 886LINT_FLAGS' 887 888 889# Initialize some variables set by options. 890ac_init_help= 891ac_init_version=false 892ac_unrecognized_opts= 893ac_unrecognized_sep= 894# The variables have the same names as the options, with 895# dashes changed to underlines. 896cache_file=/dev/null 897exec_prefix=NONE 898no_create= 899no_recursion= 900prefix=NONE 901program_prefix=NONE 902program_suffix=NONE 903program_transform_name=s,x,x, 904silent= 905site= 906srcdir= 907verbose= 908x_includes=NONE 909x_libraries=NONE 910 911# Installation directory options. 912# These are left unexpanded so users can "make install exec_prefix=/foo" 913# and all the variables that are supposed to be based on exec_prefix 914# by default will actually change. 915# Use braces instead of parens because sh, perl, etc. also accept them. 916# (The list follows the same order as the GNU Coding Standards.) 917bindir='${exec_prefix}/bin' 918sbindir='${exec_prefix}/sbin' 919libexecdir='${exec_prefix}/libexec' 920datarootdir='${prefix}/share' 921datadir='${datarootdir}' 922sysconfdir='${prefix}/etc' 923sharedstatedir='${prefix}/com' 924localstatedir='${prefix}/var' 925includedir='${prefix}/include' 926oldincludedir='/usr/include' 927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 928infodir='${datarootdir}/info' 929htmldir='${docdir}' 930dvidir='${docdir}' 931pdfdir='${docdir}' 932psdir='${docdir}' 933libdir='${exec_prefix}/lib' 934localedir='${datarootdir}/locale' 935mandir='${datarootdir}/man' 936 937ac_prev= 938ac_dashdash= 939for ac_option 940do 941 # If the previous option needs an argument, assign it. 942 if test -n "$ac_prev"; then 943 eval $ac_prev=\$ac_option 944 ac_prev= 945 continue 946 fi 947 948 case $ac_option in 949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 950 *=) ac_optarg= ;; 951 *) ac_optarg=yes ;; 952 esac 953 954 # Accept the important Cygnus configure options, so we can diagnose typos. 955 956 case $ac_dashdash$ac_option in 957 --) 958 ac_dashdash=yes ;; 959 960 -bindir | --bindir | --bindi | --bind | --bin | --bi) 961 ac_prev=bindir ;; 962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 963 bindir=$ac_optarg ;; 964 965 -build | --build | --buil | --bui | --bu) 966 ac_prev=build_alias ;; 967 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 968 build_alias=$ac_optarg ;; 969 970 -cache-file | --cache-file | --cache-fil | --cache-fi \ 971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 972 ac_prev=cache_file ;; 973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 975 cache_file=$ac_optarg ;; 976 977 --config-cache | -C) 978 cache_file=config.cache ;; 979 980 -datadir | --datadir | --datadi | --datad) 981 ac_prev=datadir ;; 982 -datadir=* | --datadir=* | --datadi=* | --datad=*) 983 datadir=$ac_optarg ;; 984 985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 986 | --dataroo | --dataro | --datar) 987 ac_prev=datarootdir ;; 988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 990 datarootdir=$ac_optarg ;; 991 992 -disable-* | --disable-*) 993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 996 as_fn_error $? "invalid feature name: $ac_useropt" 997 ac_useropt_orig=$ac_useropt 998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 999 case $ac_user_opts in 1000 *" 1001"enable_$ac_useropt" 1002"*) ;; 1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1004 ac_unrecognized_sep=', ';; 1005 esac 1006 eval enable_$ac_useropt=no ;; 1007 1008 -docdir | --docdir | --docdi | --doc | --do) 1009 ac_prev=docdir ;; 1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1011 docdir=$ac_optarg ;; 1012 1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1014 ac_prev=dvidir ;; 1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1016 dvidir=$ac_optarg ;; 1017 1018 -enable-* | --enable-*) 1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1020 # Reject names that are not valid shell variable names. 1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1022 as_fn_error $? "invalid feature name: $ac_useropt" 1023 ac_useropt_orig=$ac_useropt 1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1025 case $ac_user_opts in 1026 *" 1027"enable_$ac_useropt" 1028"*) ;; 1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1030 ac_unrecognized_sep=', ';; 1031 esac 1032 eval enable_$ac_useropt=\$ac_optarg ;; 1033 1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1036 | --exec | --exe | --ex) 1037 ac_prev=exec_prefix ;; 1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1040 | --exec=* | --exe=* | --ex=*) 1041 exec_prefix=$ac_optarg ;; 1042 1043 -gas | --gas | --ga | --g) 1044 # Obsolete; use --with-gas. 1045 with_gas=yes ;; 1046 1047 -help | --help | --hel | --he | -h) 1048 ac_init_help=long ;; 1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1050 ac_init_help=recursive ;; 1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1052 ac_init_help=short ;; 1053 1054 -host | --host | --hos | --ho) 1055 ac_prev=host_alias ;; 1056 -host=* | --host=* | --hos=* | --ho=*) 1057 host_alias=$ac_optarg ;; 1058 1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1060 ac_prev=htmldir ;; 1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1062 | --ht=*) 1063 htmldir=$ac_optarg ;; 1064 1065 -includedir | --includedir | --includedi | --included | --include \ 1066 | --includ | --inclu | --incl | --inc) 1067 ac_prev=includedir ;; 1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1069 | --includ=* | --inclu=* | --incl=* | --inc=*) 1070 includedir=$ac_optarg ;; 1071 1072 -infodir | --infodir | --infodi | --infod | --info | --inf) 1073 ac_prev=infodir ;; 1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1075 infodir=$ac_optarg ;; 1076 1077 -libdir | --libdir | --libdi | --libd) 1078 ac_prev=libdir ;; 1079 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1080 libdir=$ac_optarg ;; 1081 1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1083 | --libexe | --libex | --libe) 1084 ac_prev=libexecdir ;; 1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1086 | --libexe=* | --libex=* | --libe=*) 1087 libexecdir=$ac_optarg ;; 1088 1089 -localedir | --localedir | --localedi | --localed | --locale) 1090 ac_prev=localedir ;; 1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1092 localedir=$ac_optarg ;; 1093 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1095 | --localstate | --localstat | --localsta | --localst | --locals) 1096 ac_prev=localstatedir ;; 1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1099 localstatedir=$ac_optarg ;; 1100 1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1102 ac_prev=mandir ;; 1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1104 mandir=$ac_optarg ;; 1105 1106 -nfp | --nfp | --nf) 1107 # Obsolete; use --without-fp. 1108 with_fp=no ;; 1109 1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1111 | --no-cr | --no-c | -n) 1112 no_create=yes ;; 1113 1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1116 no_recursion=yes ;; 1117 1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1120 | --oldin | --oldi | --old | --ol | --o) 1121 ac_prev=oldincludedir ;; 1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1125 oldincludedir=$ac_optarg ;; 1126 1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1128 ac_prev=prefix ;; 1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1130 prefix=$ac_optarg ;; 1131 1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1133 | --program-pre | --program-pr | --program-p) 1134 ac_prev=program_prefix ;; 1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1137 program_prefix=$ac_optarg ;; 1138 1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1140 | --program-suf | --program-su | --program-s) 1141 ac_prev=program_suffix ;; 1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1144 program_suffix=$ac_optarg ;; 1145 1146 -program-transform-name | --program-transform-name \ 1147 | --program-transform-nam | --program-transform-na \ 1148 | --program-transform-n | --program-transform- \ 1149 | --program-transform | --program-transfor \ 1150 | --program-transfo | --program-transf \ 1151 | --program-trans | --program-tran \ 1152 | --progr-tra | --program-tr | --program-t) 1153 ac_prev=program_transform_name ;; 1154 -program-transform-name=* | --program-transform-name=* \ 1155 | --program-transform-nam=* | --program-transform-na=* \ 1156 | --program-transform-n=* | --program-transform-=* \ 1157 | --program-transform=* | --program-transfor=* \ 1158 | --program-transfo=* | --program-transf=* \ 1159 | --program-trans=* | --program-tran=* \ 1160 | --progr-tra=* | --program-tr=* | --program-t=*) 1161 program_transform_name=$ac_optarg ;; 1162 1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1164 ac_prev=pdfdir ;; 1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1166 pdfdir=$ac_optarg ;; 1167 1168 -psdir | --psdir | --psdi | --psd | --ps) 1169 ac_prev=psdir ;; 1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1171 psdir=$ac_optarg ;; 1172 1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1174 | -silent | --silent | --silen | --sile | --sil) 1175 silent=yes ;; 1176 1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1178 ac_prev=sbindir ;; 1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1180 | --sbi=* | --sb=*) 1181 sbindir=$ac_optarg ;; 1182 1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1185 | --sharedst | --shareds | --shared | --share | --shar \ 1186 | --sha | --sh) 1187 ac_prev=sharedstatedir ;; 1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1191 | --sha=* | --sh=*) 1192 sharedstatedir=$ac_optarg ;; 1193 1194 -site | --site | --sit) 1195 ac_prev=site ;; 1196 -site=* | --site=* | --sit=*) 1197 site=$ac_optarg ;; 1198 1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1200 ac_prev=srcdir ;; 1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1202 srcdir=$ac_optarg ;; 1203 1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1205 | --syscon | --sysco | --sysc | --sys | --sy) 1206 ac_prev=sysconfdir ;; 1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1209 sysconfdir=$ac_optarg ;; 1210 1211 -target | --target | --targe | --targ | --tar | --ta | --t) 1212 ac_prev=target_alias ;; 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1214 target_alias=$ac_optarg ;; 1215 1216 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1217 verbose=yes ;; 1218 1219 -version | --version | --versio | --versi | --vers | -V) 1220 ac_init_version=: ;; 1221 1222 -with-* | --with-*) 1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1226 as_fn_error $? "invalid package name: $ac_useropt" 1227 ac_useropt_orig=$ac_useropt 1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1229 case $ac_user_opts in 1230 *" 1231"with_$ac_useropt" 1232"*) ;; 1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1234 ac_unrecognized_sep=', ';; 1235 esac 1236 eval with_$ac_useropt=\$ac_optarg ;; 1237 1238 -without-* | --without-*) 1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1240 # Reject names that are not valid shell variable names. 1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1242 as_fn_error $? "invalid package name: $ac_useropt" 1243 ac_useropt_orig=$ac_useropt 1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1245 case $ac_user_opts in 1246 *" 1247"with_$ac_useropt" 1248"*) ;; 1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1250 ac_unrecognized_sep=', ';; 1251 esac 1252 eval with_$ac_useropt=no ;; 1253 1254 --x) 1255 # Obsolete; use --with-x. 1256 with_x=yes ;; 1257 1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1259 | --x-incl | --x-inc | --x-in | --x-i) 1260 ac_prev=x_includes ;; 1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1263 x_includes=$ac_optarg ;; 1264 1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1267 ac_prev=x_libraries ;; 1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1270 x_libraries=$ac_optarg ;; 1271 1272 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1273Try \`$0 --help' for more information" 1274 ;; 1275 1276 *=*) 1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1278 # Reject names that are not valid shell variable names. 1279 case $ac_envvar in #( 1280 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1282 esac 1283 eval $ac_envvar=\$ac_optarg 1284 export $ac_envvar ;; 1285 1286 *) 1287 # FIXME: should be removed in autoconf 3.0. 1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1292 ;; 1293 1294 esac 1295done 1296 1297if test -n "$ac_prev"; then 1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1299 as_fn_error $? "missing argument to $ac_option" 1300fi 1301 1302if test -n "$ac_unrecognized_opts"; then 1303 case $enable_option_checking in 1304 no) ;; 1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1307 esac 1308fi 1309 1310# Check all directory arguments for consistency. 1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1312 datadir sysconfdir sharedstatedir localstatedir includedir \ 1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1314 libdir localedir mandir 1315do 1316 eval ac_val=\$$ac_var 1317 # Remove trailing slashes. 1318 case $ac_val in 1319 */ ) 1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1321 eval $ac_var=\$ac_val;; 1322 esac 1323 # Be sure to have absolute directory names. 1324 case $ac_val in 1325 [\\/$]* | ?:[\\/]* ) continue;; 1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1327 esac 1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1329done 1330 1331# There might be people who depend on the old broken behavior: `$host' 1332# used to hold the argument of --host etc. 1333# FIXME: To remove some day. 1334build=$build_alias 1335host=$host_alias 1336target=$target_alias 1337 1338# FIXME: To remove some day. 1339if test "x$host_alias" != x; then 1340 if test "x$build_alias" = x; then 1341 cross_compiling=maybe 1342 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1343 If a cross compiler is detected then cross compile mode will be used" >&2 1344 elif test "x$build_alias" != "x$host_alias"; then 1345 cross_compiling=yes 1346 fi 1347fi 1348 1349ac_tool_prefix= 1350test -n "$host_alias" && ac_tool_prefix=$host_alias- 1351 1352test "$silent" = yes && exec 6>/dev/null 1353 1354 1355ac_pwd=`pwd` && test -n "$ac_pwd" && 1356ac_ls_di=`ls -di .` && 1357ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1358 as_fn_error $? "working directory cannot be determined" 1359test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1360 as_fn_error $? "pwd does not report name of working directory" 1361 1362 1363# Find the source files, if location was not specified. 1364if test -z "$srcdir"; then 1365 ac_srcdir_defaulted=yes 1366 # Try the directory containing this script, then the parent directory. 1367 ac_confdir=`$as_dirname -- "$as_myself" || 1368$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1369 X"$as_myself" : 'X\(//\)[^/]' \| \ 1370 X"$as_myself" : 'X\(//\)$' \| \ 1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1372$as_echo X"$as_myself" | 1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1374 s//\1/ 1375 q 1376 } 1377 /^X\(\/\/\)[^/].*/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\/\)$/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\).*/{ 1386 s//\1/ 1387 q 1388 } 1389 s/.*/./; q'` 1390 srcdir=$ac_confdir 1391 if test ! -r "$srcdir/$ac_unique_file"; then 1392 srcdir=.. 1393 fi 1394else 1395 ac_srcdir_defaulted=no 1396fi 1397if test ! -r "$srcdir/$ac_unique_file"; then 1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1400fi 1401ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1402ac_abs_confdir=`( 1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1404 pwd)` 1405# When building in place, set srcdir=. 1406if test "$ac_abs_confdir" = "$ac_pwd"; then 1407 srcdir=. 1408fi 1409# Remove unnecessary trailing slashes from srcdir. 1410# Double slashes in file names in object file debugging info 1411# mess up M-x gdb in Emacs. 1412case $srcdir in 1413*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1414esac 1415for ac_var in $ac_precious_vars; do 1416 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1417 eval ac_env_${ac_var}_value=\$${ac_var} 1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1419 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1420done 1421 1422# 1423# Report the --help message. 1424# 1425if test "$ac_init_help" = "long"; then 1426 # Omit some internal or obsolete options to make the list less imposing. 1427 # This message is too long to be a string in the A/UX 3.1 sh. 1428 cat <<_ACEOF 1429\`configure' configures libXmu 1.1.1 to adapt to many kinds of systems. 1430 1431Usage: $0 [OPTION]... [VAR=VALUE]... 1432 1433To assign environment variables (e.g., CC, CFLAGS...), specify them as 1434VAR=VALUE. See below for descriptions of some of the useful variables. 1435 1436Defaults for the options are specified in brackets. 1437 1438Configuration: 1439 -h, --help display this help and exit 1440 --help=short display options specific to this package 1441 --help=recursive display the short help of all the included packages 1442 -V, --version display version information and exit 1443 -q, --quiet, --silent do not print \`checking ...' messages 1444 --cache-file=FILE cache test results in FILE [disabled] 1445 -C, --config-cache alias for \`--cache-file=config.cache' 1446 -n, --no-create do not create output files 1447 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1448 1449Installation directories: 1450 --prefix=PREFIX install architecture-independent files in PREFIX 1451 [$ac_default_prefix] 1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1453 [PREFIX] 1454 1455By default, \`make install' will install all the files in 1456\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1457an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1458for instance \`--prefix=\$HOME'. 1459 1460For better control, use the options below. 1461 1462Fine tuning of the installation directories: 1463 --bindir=DIR user executables [EPREFIX/bin] 1464 --sbindir=DIR system admin executables [EPREFIX/sbin] 1465 --libexecdir=DIR program executables [EPREFIX/libexec] 1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1469 --libdir=DIR object code libraries [EPREFIX/lib] 1470 --includedir=DIR C header files [PREFIX/include] 1471 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1474 --infodir=DIR info documentation [DATAROOTDIR/info] 1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1476 --mandir=DIR man documentation [DATAROOTDIR/man] 1477 --docdir=DIR documentation root [DATAROOTDIR/doc/libXmu] 1478 --htmldir=DIR html documentation [DOCDIR] 1479 --dvidir=DIR dvi documentation [DOCDIR] 1480 --pdfdir=DIR pdf documentation [DOCDIR] 1481 --psdir=DIR ps documentation [DOCDIR] 1482_ACEOF 1483 1484 cat <<\_ACEOF 1485 1486Program names: 1487 --program-prefix=PREFIX prepend PREFIX to installed program names 1488 --program-suffix=SUFFIX append SUFFIX to installed program names 1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1490 1491System types: 1492 --build=BUILD configure for building on BUILD [guessed] 1493 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1494_ACEOF 1495fi 1496 1497if test -n "$ac_init_help"; then 1498 case $ac_init_help in 1499 short | recursive ) echo "Configuration of libXmu 1.1.1:";; 1500 esac 1501 cat <<\_ACEOF 1502 1503Optional Features: 1504 --disable-option-checking ignore unrecognized --enable/--with options 1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1507 --enable-maintainer-mode enable make rules and dependencies not useful 1508 (and sometimes confusing) to the casual installer 1509 --enable-shared[=PKGS] build shared libraries [default=yes] 1510 --enable-static[=PKGS] build static libraries [default=yes] 1511 --enable-fast-install[=PKGS] 1512 optimize for fast installation [default=yes] 1513 --disable-dependency-tracking speeds up one-time build 1514 --enable-dependency-tracking do not reject slow dependency extractors 1515 --disable-libtool-lock avoid locking (might break parallel builds) 1516 --disable-selective-werror 1517 Turn off selective compiler errors. (default: 1518 enabled) 1519 --enable-strict-compilation 1520 Enable all warnings from compiler and make them 1521 errors (default: disabled) 1522 --enable-silent-rules less verbose build output (undo: `make V=1') 1523 --disable-silent-rules verbose build output (undo: `make V=0') 1524 --enable-docs Enable building the documentation (default: yes) 1525 --enable-unix-transport Enable UNIX domain socket transport 1526 --enable-tcp-transport Enable TCP socket transport 1527 --enable-ipv6 Enable IPv6 support 1528 --enable-local-transport 1529 Enable os-specific local transport 1530 --enable-lint-library Create lint library (default: disabled) 1531 1532Optional Packages: 1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1535 --with-pic try to use only PIC/non-PIC objects [default=use 1536 both] 1537 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1538 --with-sysroot=DIR Search for dependent libraries within DIR 1539 (or the compiler's sysroot if not specified). 1540 --with-xmlto Use xmlto to regenerate documentation (default: 1541 auto) 1542 --with-fop Use fop to regenerate documentation (default: auto) 1543 --with-xsltproc Use xsltproc for the transformation of XML documents 1544 (default: auto) 1545 --with-lint Use a lint-style source code checker (default: 1546 disabled) 1547 1548Some influential environment variables: 1549 CC C compiler command 1550 CFLAGS C compiler flags 1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1552 nonstandard directory <lib dir> 1553 LIBS libraries to pass to the linker, e.g. -l<library> 1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1555 you have headers in a nonstandard directory <include dir> 1556 CPP C preprocessor 1557 PKG_CONFIG path to pkg-config utility 1558 XMLTO Path to xmlto command 1559 FOP Path to fop command 1560 XSLTPROC Path to xsltproc command 1561 XMU_CFLAGS C compiler flags for XMU, overriding pkg-config 1562 XMU_LIBS linker flags for XMU, overriding pkg-config 1563 XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config 1564 XMUU_LIBS linker flags for XMUU, overriding pkg-config 1565 LINT Path to a lint-style command 1566 LINT_FLAGS Flags for the lint-style command 1567 1568Use these variables to override the choices made by `configure' or to help 1569it to find libraries and programs with nonstandard names/locations. 1570 1571Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1572_ACEOF 1573ac_status=$? 1574fi 1575 1576if test "$ac_init_help" = "recursive"; then 1577 # If there are subdirs, report their specific --help. 1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1579 test -d "$ac_dir" || 1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1581 continue 1582 ac_builddir=. 1583 1584case "$ac_dir" in 1585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1586*) 1587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1588 # A ".." for each directory in $ac_dir_suffix. 1589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1590 case $ac_top_builddir_sub in 1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1593 esac ;; 1594esac 1595ac_abs_top_builddir=$ac_pwd 1596ac_abs_builddir=$ac_pwd$ac_dir_suffix 1597# for backward compatibility: 1598ac_top_builddir=$ac_top_build_prefix 1599 1600case $srcdir in 1601 .) # We are building in place. 1602 ac_srcdir=. 1603 ac_top_srcdir=$ac_top_builddir_sub 1604 ac_abs_top_srcdir=$ac_pwd ;; 1605 [\\/]* | ?:[\\/]* ) # Absolute name. 1606 ac_srcdir=$srcdir$ac_dir_suffix; 1607 ac_top_srcdir=$srcdir 1608 ac_abs_top_srcdir=$srcdir ;; 1609 *) # Relative name. 1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1611 ac_top_srcdir=$ac_top_build_prefix$srcdir 1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1613esac 1614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1615 1616 cd "$ac_dir" || { ac_status=$?; continue; } 1617 # Check for guested configure. 1618 if test -f "$ac_srcdir/configure.gnu"; then 1619 echo && 1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1621 elif test -f "$ac_srcdir/configure"; then 1622 echo && 1623 $SHELL "$ac_srcdir/configure" --help=recursive 1624 else 1625 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1626 fi || ac_status=$? 1627 cd "$ac_pwd" || { ac_status=$?; break; } 1628 done 1629fi 1630 1631test -n "$ac_init_help" && exit $ac_status 1632if $ac_init_version; then 1633 cat <<\_ACEOF 1634libXmu configure 1.1.1 1635generated by GNU Autoconf 2.68 1636 1637Copyright (C) 2010 Free Software Foundation, Inc. 1638This configure script is free software; the Free Software Foundation 1639gives unlimited permission to copy, distribute and modify it. 1640_ACEOF 1641 exit 1642fi 1643 1644## ------------------------ ## 1645## Autoconf initialization. ## 1646## ------------------------ ## 1647 1648# ac_fn_c_try_compile LINENO 1649# -------------------------- 1650# Try to compile conftest.$ac_ext, and return whether this succeeded. 1651ac_fn_c_try_compile () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 rm -f conftest.$ac_objext 1655 if { { ac_try="$ac_compile" 1656case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659esac 1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661$as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_compile") 2>conftest.err 1663 ac_status=$? 1664 if test -s conftest.err; then 1665 grep -v '^ *+' conftest.err >conftest.er1 1666 cat conftest.er1 >&5 1667 mv -f conftest.er1 conftest.err 1668 fi 1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 test $ac_status = 0; } && { 1671 test -z "$ac_c_werror_flag" || 1672 test ! -s conftest.err 1673 } && test -s conftest.$ac_objext; then : 1674 ac_retval=0 1675else 1676 $as_echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_compile 1685 1686# ac_fn_c_try_link LINENO 1687# ----------------------- 1688# Try to link conftest.$ac_ext, and return whether this succeeded. 1689ac_fn_c_try_link () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 rm -f conftest.$ac_objext conftest$ac_exeext 1693 if { { ac_try="$ac_link" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_link") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } && { 1709 test -z "$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 } && test -s conftest$ac_exeext && { 1712 test "$cross_compiling" = yes || 1713 $as_test_x conftest$ac_exeext 1714 }; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1724 # interfere with the next link command; also delete a directory that is 1725 # left behind by Apple's compiler. We do this before executing the actions. 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_link 1731 1732# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1733# ------------------------------------------------------- 1734# Tests whether HEADER exists and can be compiled using the include files in 1735# INCLUDES, setting the cache variable VAR accordingly. 1736ac_fn_c_check_header_compile () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740$as_echo_n "checking for $2... " >&6; } 1741if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743else 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746$4 1747#include <$2> 1748_ACEOF 1749if ac_fn_c_try_compile "$LINENO"; then : 1750 eval "$3=yes" 1751else 1752 eval "$3=no" 1753fi 1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1755fi 1756eval ac_res=\$$3 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1758$as_echo "$ac_res" >&6; } 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 1761} # ac_fn_c_check_header_compile 1762 1763# ac_fn_c_try_cpp LINENO 1764# ---------------------- 1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1766ac_fn_c_try_cpp () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 if { { ac_try="$ac_cpp conftest.$ac_ext" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1777 ac_status=$? 1778 if test -s conftest.err; then 1779 grep -v '^ *+' conftest.err >conftest.er1 1780 cat conftest.er1 >&5 1781 mv -f conftest.er1 conftest.err 1782 fi 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; } > conftest.i && { 1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1786 test ! -s conftest.err 1787 }; then : 1788 ac_retval=0 1789else 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=1 1794fi 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 as_fn_set_status $ac_retval 1797 1798} # ac_fn_c_try_cpp 1799 1800# ac_fn_c_try_run LINENO 1801# ---------------------- 1802# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1803# that executables *can* be run. 1804ac_fn_c_try_run () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 if { { ac_try="$ac_link" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_link") 2>&5 1815 ac_status=$? 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1818 { { case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823$as_echo "$ac_try_echo"; } >&5 1824 (eval "$ac_try") 2>&5 1825 ac_status=$? 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; }; }; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: program exited with status $ac_status" >&5 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=$ac_status 1835fi 1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 as_fn_set_status $ac_retval 1839 1840} # ac_fn_c_try_run 1841 1842# ac_fn_c_check_func LINENO FUNC VAR 1843# ---------------------------------- 1844# Tests whether FUNC exists, setting the cache variable VAR accordingly 1845ac_fn_c_check_func () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1849$as_echo_n "checking for $2... " >&6; } 1850if eval \${$3+:} false; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1857#define $2 innocuous_$2 1858 1859/* System header to define __stub macros and hopefully few prototypes, 1860 which can conflict with char $2 (); below. 1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1862 <limits.h> exists even on freestanding compilers. */ 1863 1864#ifdef __STDC__ 1865# include <limits.h> 1866#else 1867# include <assert.h> 1868#endif 1869 1870#undef $2 1871 1872/* Override any GCC internal prototype to avoid an error. 1873 Use char because int might match the return type of a GCC 1874 builtin and then its argument prototype would still apply. */ 1875#ifdef __cplusplus 1876extern "C" 1877#endif 1878char $2 (); 1879/* The GNU C library defines this for functions which it implements 1880 to always fail with ENOSYS. Some functions are actually named 1881 something starting with __ and the normal name is an alias. */ 1882#if defined __stub_$2 || defined __stub___$2 1883choke me 1884#endif 1885 1886int 1887main () 1888{ 1889return $2 (); 1890 ; 1891 return 0; 1892} 1893_ACEOF 1894if ac_fn_c_try_link "$LINENO"; then : 1895 eval "$3=yes" 1896else 1897 eval "$3=no" 1898fi 1899rm -f core conftest.err conftest.$ac_objext \ 1900 conftest$ac_exeext conftest.$ac_ext 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_func 1908 1909# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1910# --------------------------------------------- 1911# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1912# accordingly. 1913ac_fn_c_check_decl () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 as_decl_name=`echo $2|sed 's/ *(.*//'` 1917 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1919$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926int 1927main () 1928{ 1929#ifndef $as_decl_name 1930#ifdef __cplusplus 1931 (void) $as_decl_use; 1932#else 1933 (void) $as_decl_name; 1934#endif 1935#endif 1936 1937 ; 1938 return 0; 1939} 1940_ACEOF 1941if ac_fn_c_try_compile "$LINENO"; then : 1942 eval "$3=yes" 1943else 1944 eval "$3=no" 1945fi 1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 1953} # ac_fn_c_check_decl 1954 1955# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1956# ---------------------------------------------------- 1957# Tries to find if the field MEMBER exists in type AGGR, after including 1958# INCLUDES, setting cache variable VAR accordingly. 1959ac_fn_c_check_member () 1960{ 1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1963$as_echo_n "checking for $2.$3... " >&6; } 1964if eval \${$4+:} false; then : 1965 $as_echo_n "(cached) " >&6 1966else 1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968/* end confdefs.h. */ 1969$5 1970int 1971main () 1972{ 1973static $2 ac_aggr; 1974if (ac_aggr.$3) 1975return 0; 1976 ; 1977 return 0; 1978} 1979_ACEOF 1980if ac_fn_c_try_compile "$LINENO"; then : 1981 eval "$4=yes" 1982else 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984/* end confdefs.h. */ 1985$5 1986int 1987main () 1988{ 1989static $2 ac_aggr; 1990if (sizeof ac_aggr.$3) 1991return 0; 1992 ; 1993 return 0; 1994} 1995_ACEOF 1996if ac_fn_c_try_compile "$LINENO"; then : 1997 eval "$4=yes" 1998else 1999 eval "$4=no" 2000fi 2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2002fi 2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2004fi 2005eval ac_res=\$$4 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2007$as_echo "$ac_res" >&6; } 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 2010} # ac_fn_c_check_member 2011 2012# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2013# ------------------------------------------- 2014# Tests whether TYPE exists after having included INCLUDES, setting cache 2015# variable VAR accordingly. 2016ac_fn_c_check_type () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2020$as_echo_n "checking for $2... " >&6; } 2021if eval \${$3+:} false; then : 2022 $as_echo_n "(cached) " >&6 2023else 2024 eval "$3=no" 2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027$4 2028int 2029main () 2030{ 2031if (sizeof ($2)) 2032 return 0; 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037if ac_fn_c_try_compile "$LINENO"; then : 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041int 2042main () 2043{ 2044if (sizeof (($2))) 2045 return 0; 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 2052else 2053 eval "$3=yes" 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2058fi 2059eval ac_res=\$$3 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2061$as_echo "$ac_res" >&6; } 2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2063 2064} # ac_fn_c_check_type 2065cat >config.log <<_ACEOF 2066This file contains any messages produced by compilers while 2067running configure, to aid debugging if configure makes a mistake. 2068 2069It was created by libXmu $as_me 1.1.1, which was 2070generated by GNU Autoconf 2.68. Invocation command line was 2071 2072 $ $0 $@ 2073 2074_ACEOF 2075exec 5>>config.log 2076{ 2077cat <<_ASUNAME 2078## --------- ## 2079## Platform. ## 2080## --------- ## 2081 2082hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2083uname -m = `(uname -m) 2>/dev/null || echo unknown` 2084uname -r = `(uname -r) 2>/dev/null || echo unknown` 2085uname -s = `(uname -s) 2>/dev/null || echo unknown` 2086uname -v = `(uname -v) 2>/dev/null || echo unknown` 2087 2088/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2089/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2090 2091/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2092/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2093/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2094/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2095/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2096/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2097/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2098 2099_ASUNAME 2100 2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2102for as_dir in $PATH 2103do 2104 IFS=$as_save_IFS 2105 test -z "$as_dir" && as_dir=. 2106 $as_echo "PATH: $as_dir" 2107 done 2108IFS=$as_save_IFS 2109 2110} >&5 2111 2112cat >&5 <<_ACEOF 2113 2114 2115## ----------- ## 2116## Core tests. ## 2117## ----------- ## 2118 2119_ACEOF 2120 2121 2122# Keep a trace of the command line. 2123# Strip out --no-create and --no-recursion so they do not pile up. 2124# Strip out --silent because we don't want to record it for future runs. 2125# Also quote any args containing shell meta-characters. 2126# Make two passes to allow for proper duplicate-argument suppression. 2127ac_configure_args= 2128ac_configure_args0= 2129ac_configure_args1= 2130ac_must_keep_next=false 2131for ac_pass in 1 2 2132do 2133 for ac_arg 2134 do 2135 case $ac_arg in 2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2138 | -silent | --silent | --silen | --sile | --sil) 2139 continue ;; 2140 *\'*) 2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2142 esac 2143 case $ac_pass in 2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2145 2) 2146 as_fn_append ac_configure_args1 " '$ac_arg'" 2147 if test $ac_must_keep_next = true; then 2148 ac_must_keep_next=false # Got value, back to normal. 2149 else 2150 case $ac_arg in 2151 *=* | --config-cache | -C | -disable-* | --disable-* \ 2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2154 | -with-* | --with-* | -without-* | --without-* | --x) 2155 case "$ac_configure_args0 " in 2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2157 esac 2158 ;; 2159 -* ) ac_must_keep_next=true ;; 2160 esac 2161 fi 2162 as_fn_append ac_configure_args " '$ac_arg'" 2163 ;; 2164 esac 2165 done 2166done 2167{ ac_configure_args0=; unset ac_configure_args0;} 2168{ ac_configure_args1=; unset ac_configure_args1;} 2169 2170# When interrupted or exit'd, cleanup temporary files, and complete 2171# config.log. We remove comments because anyway the quotes in there 2172# would cause problems or look ugly. 2173# WARNING: Use '\'' to represent an apostrophe within the trap. 2174# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2175trap 'exit_status=$? 2176 # Save into config.log some information that might help in debugging. 2177 { 2178 echo 2179 2180 $as_echo "## ---------------- ## 2181## Cache variables. ## 2182## ---------------- ##" 2183 echo 2184 # The following way of writing the cache mishandles newlines in values, 2185( 2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2187 eval ac_val=\$$ac_var 2188 case $ac_val in #( 2189 *${as_nl}*) 2190 case $ac_var in #( 2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2192$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2193 esac 2194 case $ac_var in #( 2195 _ | IFS | as_nl) ;; #( 2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2197 *) { eval $ac_var=; unset $ac_var;} ;; 2198 esac ;; 2199 esac 2200 done 2201 (set) 2>&1 | 2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2203 *${as_nl}ac_space=\ *) 2204 sed -n \ 2205 "s/'\''/'\''\\\\'\'''\''/g; 2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2207 ;; #( 2208 *) 2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2210 ;; 2211 esac | 2212 sort 2213) 2214 echo 2215 2216 $as_echo "## ----------------- ## 2217## Output variables. ## 2218## ----------------- ##" 2219 echo 2220 for ac_var in $ac_subst_vars 2221 do 2222 eval ac_val=\$$ac_var 2223 case $ac_val in 2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2225 esac 2226 $as_echo "$ac_var='\''$ac_val'\''" 2227 done | sort 2228 echo 2229 2230 if test -n "$ac_subst_files"; then 2231 $as_echo "## ------------------- ## 2232## File substitutions. ## 2233## ------------------- ##" 2234 echo 2235 for ac_var in $ac_subst_files 2236 do 2237 eval ac_val=\$$ac_var 2238 case $ac_val in 2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2240 esac 2241 $as_echo "$ac_var='\''$ac_val'\''" 2242 done | sort 2243 echo 2244 fi 2245 2246 if test -s confdefs.h; then 2247 $as_echo "## ----------- ## 2248## confdefs.h. ## 2249## ----------- ##" 2250 echo 2251 cat confdefs.h 2252 echo 2253 fi 2254 test "$ac_signal" != 0 && 2255 $as_echo "$as_me: caught signal $ac_signal" 2256 $as_echo "$as_me: exit $exit_status" 2257 } >&5 2258 rm -f core *.core core.conftest.* && 2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2260 exit $exit_status 2261' 0 2262for ac_signal in 1 2 13 15; do 2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2264done 2265ac_signal=0 2266 2267# confdefs.h avoids OS command line length limits that DEFS can exceed. 2268rm -f -r conftest* confdefs.h 2269 2270$as_echo "/* confdefs.h */" > confdefs.h 2271 2272# Predefined preprocessor variables. 2273 2274cat >>confdefs.h <<_ACEOF 2275#define PACKAGE_NAME "$PACKAGE_NAME" 2276_ACEOF 2277 2278cat >>confdefs.h <<_ACEOF 2279#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2280_ACEOF 2281 2282cat >>confdefs.h <<_ACEOF 2283#define PACKAGE_VERSION "$PACKAGE_VERSION" 2284_ACEOF 2285 2286cat >>confdefs.h <<_ACEOF 2287#define PACKAGE_STRING "$PACKAGE_STRING" 2288_ACEOF 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2292_ACEOF 2293 2294cat >>confdefs.h <<_ACEOF 2295#define PACKAGE_URL "$PACKAGE_URL" 2296_ACEOF 2297 2298 2299# Let the site file select an alternate cache file if it wants to. 2300# Prefer an explicitly selected file to automatically selected ones. 2301ac_site_file1=NONE 2302ac_site_file2=NONE 2303if test -n "$CONFIG_SITE"; then 2304 # We do not want a PATH search for config.site. 2305 case $CONFIG_SITE in #(( 2306 -*) ac_site_file1=./$CONFIG_SITE;; 2307 */*) ac_site_file1=$CONFIG_SITE;; 2308 *) ac_site_file1=./$CONFIG_SITE;; 2309 esac 2310elif test "x$prefix" != xNONE; then 2311 ac_site_file1=$prefix/share/config.site 2312 ac_site_file2=$prefix/etc/config.site 2313else 2314 ac_site_file1=$ac_default_prefix/share/config.site 2315 ac_site_file2=$ac_default_prefix/etc/config.site 2316fi 2317for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2318do 2319 test "x$ac_site_file" = xNONE && continue 2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2322$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2323 sed 's/^/| /' "$ac_site_file" >&5 2324 . "$ac_site_file" \ 2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2327as_fn_error $? "failed to load site script $ac_site_file 2328See \`config.log' for more details" "$LINENO" 5; } 2329 fi 2330done 2331 2332if test -r "$cache_file"; then 2333 # Some versions of bash will fail to source /dev/null (special files 2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2337$as_echo "$as_me: loading cache $cache_file" >&6;} 2338 case $cache_file in 2339 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2340 *) . "./$cache_file";; 2341 esac 2342 fi 2343else 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2345$as_echo "$as_me: creating cache $cache_file" >&6;} 2346 >$cache_file 2347fi 2348 2349# Check that the precious variables saved in the cache have kept the same 2350# value. 2351ac_cache_corrupted=false 2352for ac_var in $ac_precious_vars; do 2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2354 eval ac_new_set=\$ac_env_${ac_var}_set 2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2356 eval ac_new_val=\$ac_env_${ac_var}_value 2357 case $ac_old_set,$ac_new_set in 2358 set,) 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2360$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2361 ac_cache_corrupted=: ;; 2362 ,set) 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2364$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2365 ac_cache_corrupted=: ;; 2366 ,);; 2367 *) 2368 if test "x$ac_old_val" != "x$ac_new_val"; then 2369 # differences in whitespace do not lead to failure. 2370 ac_old_val_w=`echo x $ac_old_val` 2371 ac_new_val_w=`echo x $ac_new_val` 2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2374$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2375 ac_cache_corrupted=: 2376 else 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2378$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2379 eval $ac_var=\$ac_old_val 2380 fi 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2382$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2384$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2385 fi;; 2386 esac 2387 # Pass precious variables to config.status. 2388 if test "$ac_new_set" = set; then 2389 case $ac_new_val in 2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2391 *) ac_arg=$ac_var=$ac_new_val ;; 2392 esac 2393 case " $ac_configure_args " in 2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2396 esac 2397 fi 2398done 2399if $ac_cache_corrupted; then 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2403$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2405fi 2406## -------------------- ## 2407## Main body of script. ## 2408## -------------------- ## 2409 2410ac_ext=c 2411ac_cpp='$CPP $CPPFLAGS' 2412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2414ac_compiler_gnu=$ac_cv_c_compiler_gnu 2415 2416 2417 2418ac_config_headers="$ac_config_headers config.h" 2419 2420 2421# Initialize Automake 2422am__api_version='1.11' 2423 2424ac_aux_dir= 2425for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2426 if test -f "$ac_dir/install-sh"; then 2427 ac_aux_dir=$ac_dir 2428 ac_install_sh="$ac_aux_dir/install-sh -c" 2429 break 2430 elif test -f "$ac_dir/install.sh"; then 2431 ac_aux_dir=$ac_dir 2432 ac_install_sh="$ac_aux_dir/install.sh -c" 2433 break 2434 elif test -f "$ac_dir/shtool"; then 2435 ac_aux_dir=$ac_dir 2436 ac_install_sh="$ac_aux_dir/shtool install -c" 2437 break 2438 fi 2439done 2440if test -z "$ac_aux_dir"; then 2441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2442fi 2443 2444# These three variables are undocumented and unsupported, 2445# and are intended to be withdrawn in a future Autoconf release. 2446# They can cause serious problems if a builder's source tree is in a directory 2447# whose full name contains unusual characters. 2448ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2449ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2450ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2451 2452 2453# Find a good install program. We prefer a C program (faster), 2454# so one script is as good as another. But avoid the broken or 2455# incompatible versions: 2456# SysV /etc/install, /usr/sbin/install 2457# SunOS /usr/etc/install 2458# IRIX /sbin/install 2459# AIX /bin/install 2460# AmigaOS /C/install, which installs bootblocks on floppy discs 2461# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2462# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2463# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2464# OS/2's system install, which has a completely different semantic 2465# ./install, which can be erroneously created by make from ./install.sh. 2466# Reject install programs that cannot install multiple files. 2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2468$as_echo_n "checking for a BSD-compatible install... " >&6; } 2469if test -z "$INSTALL"; then 2470if ${ac_cv_path_install+:} false; then : 2471 $as_echo_n "(cached) " >&6 2472else 2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2474for as_dir in $PATH 2475do 2476 IFS=$as_save_IFS 2477 test -z "$as_dir" && as_dir=. 2478 # Account for people who put trailing slashes in PATH elements. 2479case $as_dir/ in #(( 2480 ./ | .// | /[cC]/* | \ 2481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2482 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2483 /usr/ucb/* ) ;; 2484 *) 2485 # OSF1 and SCO ODT 3.0 have their own names for install. 2486 # Don't use installbsd from OSF since it installs stuff as root 2487 # by default. 2488 for ac_prog in ginstall scoinst install; do 2489 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2491 if test $ac_prog = install && 2492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2493 # AIX install. It has an incompatible calling convention. 2494 : 2495 elif test $ac_prog = install && 2496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2497 # program-specific install script used by HP pwplus--don't use. 2498 : 2499 else 2500 rm -rf conftest.one conftest.two conftest.dir 2501 echo one > conftest.one 2502 echo two > conftest.two 2503 mkdir conftest.dir 2504 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2505 test -s conftest.one && test -s conftest.two && 2506 test -s conftest.dir/conftest.one && 2507 test -s conftest.dir/conftest.two 2508 then 2509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2510 break 3 2511 fi 2512 fi 2513 fi 2514 done 2515 done 2516 ;; 2517esac 2518 2519 done 2520IFS=$as_save_IFS 2521 2522rm -rf conftest.one conftest.two conftest.dir 2523 2524fi 2525 if test "${ac_cv_path_install+set}" = set; then 2526 INSTALL=$ac_cv_path_install 2527 else 2528 # As a last resort, use the slow shell script. Don't cache a 2529 # value for INSTALL within a source directory, because that will 2530 # break other packages using the cache if that directory is 2531 # removed, or if the value is a relative name. 2532 INSTALL=$ac_install_sh 2533 fi 2534fi 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2536$as_echo "$INSTALL" >&6; } 2537 2538# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2539# It thinks the first close brace ends the variable substitution. 2540test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2541 2542test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2543 2544test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2545 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2547$as_echo_n "checking whether build environment is sane... " >&6; } 2548# Just in case 2549sleep 1 2550echo timestamp > conftest.file 2551# Reject unsafe characters in $srcdir or the absolute working directory 2552# name. Accept space and tab only in the latter. 2553am_lf=' 2554' 2555case `pwd` in 2556 *[\\\"\#\$\&\'\`$am_lf]*) 2557 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2558esac 2559case $srcdir in 2560 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2561 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2562esac 2563 2564# Do `set' in a subshell so we don't clobber the current shell's 2565# arguments. Must try -L first in case configure is actually a 2566# symlink; some systems play weird games with the mod time of symlinks 2567# (eg FreeBSD returns the mod time of the symlink's containing 2568# directory). 2569if ( 2570 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2571 if test "$*" = "X"; then 2572 # -L didn't work. 2573 set X `ls -t "$srcdir/configure" conftest.file` 2574 fi 2575 rm -f conftest.file 2576 if test "$*" != "X $srcdir/configure conftest.file" \ 2577 && test "$*" != "X conftest.file $srcdir/configure"; then 2578 2579 # If neither matched, then we have a broken ls. This can happen 2580 # if, for instance, CONFIG_SHELL is bash and it inherits a 2581 # broken ls alias from the environment. This has actually 2582 # happened. Such a system could not be considered "sane". 2583 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2584alias in your environment" "$LINENO" 5 2585 fi 2586 2587 test "$2" = conftest.file 2588 ) 2589then 2590 # Ok. 2591 : 2592else 2593 as_fn_error $? "newly created file is older than distributed files! 2594Check your system clock" "$LINENO" 5 2595fi 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2597$as_echo "yes" >&6; } 2598test "$program_prefix" != NONE && 2599 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2600# Use a double $ so make ignores it. 2601test "$program_suffix" != NONE && 2602 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2603# Double any \ or $. 2604# By default was `s,x,x', remove it if useless. 2605ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2606program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2607 2608# expand $ac_aux_dir to an absolute path 2609am_aux_dir=`cd $ac_aux_dir && pwd` 2610 2611if test x"${MISSING+set}" != xset; then 2612 case $am_aux_dir in 2613 *\ * | *\ *) 2614 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2615 *) 2616 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2617 esac 2618fi 2619# Use eval to expand $SHELL 2620if eval "$MISSING --run true"; then 2621 am_missing_run="$MISSING --run " 2622else 2623 am_missing_run= 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2625$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2626fi 2627 2628if test x"${install_sh}" != xset; then 2629 case $am_aux_dir in 2630 *\ * | *\ *) 2631 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2632 *) 2633 install_sh="\${SHELL} $am_aux_dir/install-sh" 2634 esac 2635fi 2636 2637# Installed binaries are usually stripped using `strip' when the user 2638# run `make install-strip'. However `strip' might not be the right 2639# tool to use in cross-compilation environments, therefore Automake 2640# will honor the `STRIP' environment variable to overrule this program. 2641if test "$cross_compiling" != no; then 2642 if test -n "$ac_tool_prefix"; then 2643 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2644set dummy ${ac_tool_prefix}strip; ac_word=$2 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2646$as_echo_n "checking for $ac_word... " >&6; } 2647if ${ac_cv_prog_STRIP+:} false; then : 2648 $as_echo_n "(cached) " >&6 2649else 2650 if test -n "$STRIP"; then 2651 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2652else 2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2654for as_dir in $PATH 2655do 2656 IFS=$as_save_IFS 2657 test -z "$as_dir" && as_dir=. 2658 for ac_exec_ext in '' $ac_executable_extensions; do 2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2660 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2662 break 2 2663 fi 2664done 2665 done 2666IFS=$as_save_IFS 2667 2668fi 2669fi 2670STRIP=$ac_cv_prog_STRIP 2671if test -n "$STRIP"; then 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2673$as_echo "$STRIP" >&6; } 2674else 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2676$as_echo "no" >&6; } 2677fi 2678 2679 2680fi 2681if test -z "$ac_cv_prog_STRIP"; then 2682 ac_ct_STRIP=$STRIP 2683 # Extract the first word of "strip", so it can be a program name with args. 2684set dummy strip; ac_word=$2 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2686$as_echo_n "checking for $ac_word... " >&6; } 2687if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2688 $as_echo_n "(cached) " >&6 2689else 2690 if test -n "$ac_ct_STRIP"; then 2691 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2692else 2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2694for as_dir in $PATH 2695do 2696 IFS=$as_save_IFS 2697 test -z "$as_dir" && as_dir=. 2698 for ac_exec_ext in '' $ac_executable_extensions; do 2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2700 ac_cv_prog_ac_ct_STRIP="strip" 2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2702 break 2 2703 fi 2704done 2705 done 2706IFS=$as_save_IFS 2707 2708fi 2709fi 2710ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2711if test -n "$ac_ct_STRIP"; then 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2713$as_echo "$ac_ct_STRIP" >&6; } 2714else 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2716$as_echo "no" >&6; } 2717fi 2718 2719 if test "x$ac_ct_STRIP" = x; then 2720 STRIP=":" 2721 else 2722 case $cross_compiling:$ac_tool_warned in 2723yes:) 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2726ac_tool_warned=yes ;; 2727esac 2728 STRIP=$ac_ct_STRIP 2729 fi 2730else 2731 STRIP="$ac_cv_prog_STRIP" 2732fi 2733 2734fi 2735INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2736 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2738$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2739if test -z "$MKDIR_P"; then 2740 if ${ac_cv_path_mkdir+:} false; then : 2741 $as_echo_n "(cached) " >&6 2742else 2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2745do 2746 IFS=$as_save_IFS 2747 test -z "$as_dir" && as_dir=. 2748 for ac_prog in mkdir gmkdir; do 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2751 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2752 'mkdir (GNU coreutils) '* | \ 2753 'mkdir (coreutils) '* | \ 2754 'mkdir (fileutils) '4.1*) 2755 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2756 break 3;; 2757 esac 2758 done 2759 done 2760 done 2761IFS=$as_save_IFS 2762 2763fi 2764 2765 test -d ./--version && rmdir ./--version 2766 if test "${ac_cv_path_mkdir+set}" = set; then 2767 MKDIR_P="$ac_cv_path_mkdir -p" 2768 else 2769 # As a last resort, use the slow shell script. Don't cache a 2770 # value for MKDIR_P within a source directory, because that will 2771 # break other packages using the cache if that directory is 2772 # removed, or if the value is a relative name. 2773 MKDIR_P="$ac_install_sh -d" 2774 fi 2775fi 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2777$as_echo "$MKDIR_P" >&6; } 2778 2779mkdir_p="$MKDIR_P" 2780case $mkdir_p in 2781 [\\/$]* | ?:[\\/]*) ;; 2782 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2783esac 2784 2785for ac_prog in gawk mawk nawk awk 2786do 2787 # Extract the first word of "$ac_prog", so it can be a program name with args. 2788set dummy $ac_prog; ac_word=$2 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2790$as_echo_n "checking for $ac_word... " >&6; } 2791if ${ac_cv_prog_AWK+:} false; then : 2792 $as_echo_n "(cached) " >&6 2793else 2794 if test -n "$AWK"; then 2795 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2796else 2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2798for as_dir in $PATH 2799do 2800 IFS=$as_save_IFS 2801 test -z "$as_dir" && as_dir=. 2802 for ac_exec_ext in '' $ac_executable_extensions; do 2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2804 ac_cv_prog_AWK="$ac_prog" 2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2806 break 2 2807 fi 2808done 2809 done 2810IFS=$as_save_IFS 2811 2812fi 2813fi 2814AWK=$ac_cv_prog_AWK 2815if test -n "$AWK"; then 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2817$as_echo "$AWK" >&6; } 2818else 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2820$as_echo "no" >&6; } 2821fi 2822 2823 2824 test -n "$AWK" && break 2825done 2826 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2828$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2829set x ${MAKE-make} 2830ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2831if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2832 $as_echo_n "(cached) " >&6 2833else 2834 cat >conftest.make <<\_ACEOF 2835SHELL = /bin/sh 2836all: 2837 @echo '@@@%%%=$(MAKE)=@@@%%%' 2838_ACEOF 2839# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2840case `${MAKE-make} -f conftest.make 2>/dev/null` in 2841 *@@@%%%=?*=@@@%%%*) 2842 eval ac_cv_prog_make_${ac_make}_set=yes;; 2843 *) 2844 eval ac_cv_prog_make_${ac_make}_set=no;; 2845esac 2846rm -f conftest.make 2847fi 2848if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2850$as_echo "yes" >&6; } 2851 SET_MAKE= 2852else 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854$as_echo "no" >&6; } 2855 SET_MAKE="MAKE=${MAKE-make}" 2856fi 2857 2858rm -rf .tst 2>/dev/null 2859mkdir .tst 2>/dev/null 2860if test -d .tst; then 2861 am__leading_dot=. 2862else 2863 am__leading_dot=_ 2864fi 2865rmdir .tst 2>/dev/null 2866 2867if test "`cd $srcdir && pwd`" != "`pwd`"; then 2868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2869 # is not polluted with repeated "-I." 2870 am__isrc=' -I$(srcdir)' 2871 # test to see if srcdir already configured 2872 if test -f $srcdir/config.status; then 2873 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2874 fi 2875fi 2876 2877# test whether we have cygpath 2878if test -z "$CYGPATH_W"; then 2879 if (cygpath --version) >/dev/null 2>/dev/null; then 2880 CYGPATH_W='cygpath -w' 2881 else 2882 CYGPATH_W=echo 2883 fi 2884fi 2885 2886 2887# Define the identity of the package. 2888 PACKAGE='libXmu' 2889 VERSION='1.1.1' 2890 2891 2892cat >>confdefs.h <<_ACEOF 2893#define PACKAGE "$PACKAGE" 2894_ACEOF 2895 2896 2897cat >>confdefs.h <<_ACEOF 2898#define VERSION "$VERSION" 2899_ACEOF 2900 2901# Some tools Automake needs. 2902 2903ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2904 2905 2906AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2907 2908 2909AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2910 2911 2912AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2913 2914 2915MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2916 2917# We need awk for the "check" target. The system "awk" is bad on 2918# some platforms. 2919# Always define AMTAR for backward compatibility. 2920 2921AMTAR=${AMTAR-"${am_missing_run}tar"} 2922 2923am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2924 2925 2926 2927 2928 2929 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2931$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2932 # Check whether --enable-maintainer-mode was given. 2933if test "${enable_maintainer_mode+set}" = set; then : 2934 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2935else 2936 USE_MAINTAINER_MODE=no 2937fi 2938 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2940$as_echo "$USE_MAINTAINER_MODE" >&6; } 2941 if test $USE_MAINTAINER_MODE = yes; then 2942 MAINTAINER_MODE_TRUE= 2943 MAINTAINER_MODE_FALSE='#' 2944else 2945 MAINTAINER_MODE_TRUE='#' 2946 MAINTAINER_MODE_FALSE= 2947fi 2948 2949 MAINT=$MAINTAINER_MODE_TRUE 2950 2951 2952 2953# Initialize libtool 2954case `pwd` in 2955 *\ * | *\ *) 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2957$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2958esac 2959 2960 2961 2962macro_version='2.4' 2963macro_revision='1.3293' 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977ltmain="$ac_aux_dir/ltmain.sh" 2978 2979# Make sure we can run config.sub. 2980$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2981 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2982 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2984$as_echo_n "checking build system type... " >&6; } 2985if ${ac_cv_build+:} false; then : 2986 $as_echo_n "(cached) " >&6 2987else 2988 ac_build_alias=$build_alias 2989test "x$ac_build_alias" = x && 2990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2991test "x$ac_build_alias" = x && 2992 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2993ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2995 2996fi 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2998$as_echo "$ac_cv_build" >&6; } 2999case $ac_cv_build in 3000*-*-*) ;; 3001*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3002esac 3003build=$ac_cv_build 3004ac_save_IFS=$IFS; IFS='-' 3005set x $ac_cv_build 3006shift 3007build_cpu=$1 3008build_vendor=$2 3009shift; shift 3010# Remember, the first character of IFS is used to create $*, 3011# except with old shells: 3012build_os=$* 3013IFS=$ac_save_IFS 3014case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3015 3016 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3018$as_echo_n "checking host system type... " >&6; } 3019if ${ac_cv_host+:} false; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 if test "x$host_alias" = x; then 3023 ac_cv_host=$ac_cv_build 3024else 3025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3026 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3027fi 3028 3029fi 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3031$as_echo "$ac_cv_host" >&6; } 3032case $ac_cv_host in 3033*-*-*) ;; 3034*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3035esac 3036host=$ac_cv_host 3037ac_save_IFS=$IFS; IFS='-' 3038set x $ac_cv_host 3039shift 3040host_cpu=$1 3041host_vendor=$2 3042shift; shift 3043# Remember, the first character of IFS is used to create $*, 3044# except with old shells: 3045host_os=$* 3046IFS=$ac_save_IFS 3047case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3048 3049 3050# Backslashify metacharacters that are still active within 3051# double-quoted strings. 3052sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3053 3054# Same as above, but do not quote variable references. 3055double_quote_subst='s/\(["`\\]\)/\\\1/g' 3056 3057# Sed substitution to delay expansion of an escaped shell variable in a 3058# double_quote_subst'ed string. 3059delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3060 3061# Sed substitution to delay expansion of an escaped single quote. 3062delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3063 3064# Sed substitution to avoid accidental globbing in evaled expressions 3065no_glob_subst='s/\*/\\\*/g' 3066 3067ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3068ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3069ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3070 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3072$as_echo_n "checking how to print strings... " >&6; } 3073# Test print first, because it will be a builtin if present. 3074if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3075 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3076 ECHO='print -r --' 3077elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3078 ECHO='printf %s\n' 3079else 3080 # Use this function as a fallback that always works. 3081 func_fallback_echo () 3082 { 3083 eval 'cat <<_LTECHO_EOF 3084$1 3085_LTECHO_EOF' 3086 } 3087 ECHO='func_fallback_echo' 3088fi 3089 3090# func_echo_all arg... 3091# Invoke $ECHO with all args, space-separated. 3092func_echo_all () 3093{ 3094 $ECHO "" 3095} 3096 3097case "$ECHO" in 3098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3099$as_echo "printf" >&6; } ;; 3100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3101$as_echo "print -r" >&6; } ;; 3102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3103$as_echo "cat" >&6; } ;; 3104esac 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119DEPDIR="${am__leading_dot}deps" 3120 3121ac_config_commands="$ac_config_commands depfiles" 3122 3123 3124am_make=${MAKE-make} 3125cat > confinc << 'END' 3126am__doit: 3127 @echo this is the am__doit target 3128.PHONY: am__doit 3129END 3130# If we don't find an include directive, just comment out the code. 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3132$as_echo_n "checking for style of include used by $am_make... " >&6; } 3133am__include="#" 3134am__quote= 3135_am_result=none 3136# First try GNU make style include. 3137echo "include confinc" > confmf 3138# Ignore all kinds of additional output from `make'. 3139case `$am_make -s -f confmf 2> /dev/null` in #( 3140*the\ am__doit\ target*) 3141 am__include=include 3142 am__quote= 3143 _am_result=GNU 3144 ;; 3145esac 3146# Now try BSD make style include. 3147if test "$am__include" = "#"; then 3148 echo '.include "confinc"' > confmf 3149 case `$am_make -s -f confmf 2> /dev/null` in #( 3150 *the\ am__doit\ target*) 3151 am__include=.include 3152 am__quote="\"" 3153 _am_result=BSD 3154 ;; 3155 esac 3156fi 3157 3158 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3160$as_echo "$_am_result" >&6; } 3161rm -f confinc confmf 3162 3163# Check whether --enable-dependency-tracking was given. 3164if test "${enable_dependency_tracking+set}" = set; then : 3165 enableval=$enable_dependency_tracking; 3166fi 3167 3168if test "x$enable_dependency_tracking" != xno; then 3169 am_depcomp="$ac_aux_dir/depcomp" 3170 AMDEPBACKSLASH='\' 3171fi 3172 if test "x$enable_dependency_tracking" != xno; then 3173 AMDEP_TRUE= 3174 AMDEP_FALSE='#' 3175else 3176 AMDEP_TRUE='#' 3177 AMDEP_FALSE= 3178fi 3179 3180 3181ac_ext=c 3182ac_cpp='$CPP $CPPFLAGS' 3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3185ac_compiler_gnu=$ac_cv_c_compiler_gnu 3186if test -n "$ac_tool_prefix"; then 3187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3188set dummy ${ac_tool_prefix}gcc; ac_word=$2 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190$as_echo_n "checking for $ac_word... " >&6; } 3191if ${ac_cv_prog_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 if test -n "$CC"; then 3195 ac_cv_prog_CC="$CC" # Let the user override the test. 3196else 3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3204 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212fi 3213fi 3214CC=$ac_cv_prog_CC 3215if test -n "$CC"; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3217$as_echo "$CC" >&6; } 3218else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220$as_echo "no" >&6; } 3221fi 3222 3223 3224fi 3225if test -z "$ac_cv_prog_CC"; then 3226 ac_ct_CC=$CC 3227 # Extract the first word of "gcc", so it can be a program name with args. 3228set dummy gcc; ac_word=$2 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3230$as_echo_n "checking for $ac_word... " >&6; } 3231if ${ac_cv_prog_ac_ct_CC+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233else 3234 if test -n "$ac_ct_CC"; then 3235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3236else 3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3238for as_dir in $PATH 3239do 3240 IFS=$as_save_IFS 3241 test -z "$as_dir" && as_dir=. 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3244 ac_cv_prog_ac_ct_CC="gcc" 3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3246 break 2 3247 fi 3248done 3249 done 3250IFS=$as_save_IFS 3251 3252fi 3253fi 3254ac_ct_CC=$ac_cv_prog_ac_ct_CC 3255if test -n "$ac_ct_CC"; then 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3257$as_echo "$ac_ct_CC" >&6; } 3258else 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3260$as_echo "no" >&6; } 3261fi 3262 3263 if test "x$ac_ct_CC" = x; then 3264 CC="" 3265 else 3266 case $cross_compiling:$ac_tool_warned in 3267yes:) 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3270ac_tool_warned=yes ;; 3271esac 3272 CC=$ac_ct_CC 3273 fi 3274else 3275 CC="$ac_cv_prog_CC" 3276fi 3277 3278if test -z "$CC"; then 3279 if test -n "$ac_tool_prefix"; then 3280 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3281set dummy ${ac_tool_prefix}cc; ac_word=$2 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283$as_echo_n "checking for $ac_word... " >&6; } 3284if ${ac_cv_prog_CC+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286else 3287 if test -n "$CC"; then 3288 ac_cv_prog_CC="$CC" # Let the user override the test. 3289else 3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_exec_ext in '' $ac_executable_extensions; do 3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3297 ac_cv_prog_CC="${ac_tool_prefix}cc" 3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3299 break 2 3300 fi 3301done 3302 done 3303IFS=$as_save_IFS 3304 3305fi 3306fi 3307CC=$ac_cv_prog_CC 3308if test -n "$CC"; then 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3310$as_echo "$CC" >&6; } 3311else 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3313$as_echo "no" >&6; } 3314fi 3315 3316 3317 fi 3318fi 3319if test -z "$CC"; then 3320 # Extract the first word of "cc", so it can be a program name with args. 3321set dummy cc; ac_word=$2 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3323$as_echo_n "checking for $ac_word... " >&6; } 3324if ${ac_cv_prog_CC+:} false; then : 3325 $as_echo_n "(cached) " >&6 3326else 3327 if test -n "$CC"; then 3328 ac_cv_prog_CC="$CC" # Let the user override the test. 3329else 3330 ac_prog_rejected=no 3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3332for as_dir in $PATH 3333do 3334 IFS=$as_save_IFS 3335 test -z "$as_dir" && as_dir=. 3336 for ac_exec_ext in '' $ac_executable_extensions; do 3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3339 ac_prog_rejected=yes 3340 continue 3341 fi 3342 ac_cv_prog_CC="cc" 3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3344 break 2 3345 fi 3346done 3347 done 3348IFS=$as_save_IFS 3349 3350if test $ac_prog_rejected = yes; then 3351 # We found a bogon in the path, so make sure we never use it. 3352 set dummy $ac_cv_prog_CC 3353 shift 3354 if test $# != 0; then 3355 # We chose a different compiler from the bogus one. 3356 # However, it has the same basename, so the bogon will be chosen 3357 # first if we set CC to just the basename; use the full file name. 3358 shift 3359 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3360 fi 3361fi 3362fi 3363fi 3364CC=$ac_cv_prog_CC 3365if test -n "$CC"; then 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3367$as_echo "$CC" >&6; } 3368else 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3370$as_echo "no" >&6; } 3371fi 3372 3373 3374fi 3375if test -z "$CC"; then 3376 if test -n "$ac_tool_prefix"; then 3377 for ac_prog in cl.exe 3378 do 3379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3380set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3382$as_echo_n "checking for $ac_word... " >&6; } 3383if ${ac_cv_prog_CC+:} false; then : 3384 $as_echo_n "(cached) " >&6 3385else 3386 if test -n "$CC"; then 3387 ac_cv_prog_CC="$CC" # Let the user override the test. 3388else 3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3390for as_dir in $PATH 3391do 3392 IFS=$as_save_IFS 3393 test -z "$as_dir" && as_dir=. 3394 for ac_exec_ext in '' $ac_executable_extensions; do 3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3396 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3398 break 2 3399 fi 3400done 3401 done 3402IFS=$as_save_IFS 3403 3404fi 3405fi 3406CC=$ac_cv_prog_CC 3407if test -n "$CC"; then 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3409$as_echo "$CC" >&6; } 3410else 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412$as_echo "no" >&6; } 3413fi 3414 3415 3416 test -n "$CC" && break 3417 done 3418fi 3419if test -z "$CC"; then 3420 ac_ct_CC=$CC 3421 for ac_prog in cl.exe 3422do 3423 # Extract the first word of "$ac_prog", so it can be a program name with args. 3424set dummy $ac_prog; ac_word=$2 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3426$as_echo_n "checking for $ac_word... " >&6; } 3427if ${ac_cv_prog_ac_ct_CC+:} false; then : 3428 $as_echo_n "(cached) " >&6 3429else 3430 if test -n "$ac_ct_CC"; then 3431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3432else 3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3434for as_dir in $PATH 3435do 3436 IFS=$as_save_IFS 3437 test -z "$as_dir" && as_dir=. 3438 for ac_exec_ext in '' $ac_executable_extensions; do 3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3440 ac_cv_prog_ac_ct_CC="$ac_prog" 3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3442 break 2 3443 fi 3444done 3445 done 3446IFS=$as_save_IFS 3447 3448fi 3449fi 3450ac_ct_CC=$ac_cv_prog_ac_ct_CC 3451if test -n "$ac_ct_CC"; then 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3453$as_echo "$ac_ct_CC" >&6; } 3454else 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3456$as_echo "no" >&6; } 3457fi 3458 3459 3460 test -n "$ac_ct_CC" && break 3461done 3462 3463 if test "x$ac_ct_CC" = x; then 3464 CC="" 3465 else 3466 case $cross_compiling:$ac_tool_warned in 3467yes:) 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3470ac_tool_warned=yes ;; 3471esac 3472 CC=$ac_ct_CC 3473 fi 3474fi 3475 3476fi 3477 3478 3479test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3481as_fn_error $? "no acceptable C compiler found in \$PATH 3482See \`config.log' for more details" "$LINENO" 5; } 3483 3484# Provide some information about the compiler. 3485$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3486set X $ac_compile 3487ac_compiler=$2 3488for ac_option in --version -v -V -qversion; do 3489 { { ac_try="$ac_compiler $ac_option >&5" 3490case "(($ac_try" in 3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3492 *) ac_try_echo=$ac_try;; 3493esac 3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3495$as_echo "$ac_try_echo"; } >&5 3496 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3497 ac_status=$? 3498 if test -s conftest.err; then 3499 sed '10a\ 3500... rest of stderr output deleted ... 3501 10q' conftest.err >conftest.er1 3502 cat conftest.er1 >&5 3503 fi 3504 rm -f conftest.er1 conftest.err 3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3506 test $ac_status = 0; } 3507done 3508 3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511 3512int 3513main () 3514{ 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520ac_clean_files_save=$ac_clean_files 3521ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3522# Try to create an executable without -o first, disregard a.out. 3523# It will help us diagnose broken compilers, and finding out an intuition 3524# of exeext. 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3526$as_echo_n "checking whether the C compiler works... " >&6; } 3527ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3528 3529# The possible output files: 3530ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3531 3532ac_rmfiles= 3533for ac_file in $ac_files 3534do 3535 case $ac_file in 3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3537 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3538 esac 3539done 3540rm -f $ac_rmfiles 3541 3542if { { ac_try="$ac_link_default" 3543case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546esac 3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548$as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_link_default") 2>&5 3550 ac_status=$? 3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3552 test $ac_status = 0; }; then : 3553 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3554# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3555# in a Makefile. We should not override ac_cv_exeext if it was cached, 3556# so that the user can short-circuit this test for compilers unknown to 3557# Autoconf. 3558for ac_file in $ac_files '' 3559do 3560 test -f "$ac_file" || continue 3561 case $ac_file in 3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3563 ;; 3564 [ab].out ) 3565 # We found the default executable, but exeext='' is most 3566 # certainly right. 3567 break;; 3568 *.* ) 3569 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3570 then :; else 3571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3572 fi 3573 # We set ac_cv_exeext here because the later test for it is not 3574 # safe: cross compilers may not add the suffix if given an `-o' 3575 # argument, so we may need to know it at that point already. 3576 # Even if this section looks crufty: it has the advantage of 3577 # actually working. 3578 break;; 3579 * ) 3580 break;; 3581 esac 3582done 3583test "$ac_cv_exeext" = no && ac_cv_exeext= 3584 3585else 3586 ac_file='' 3587fi 3588if test -z "$ac_file"; then : 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3590$as_echo "no" >&6; } 3591$as_echo "$as_me: failed program was:" >&5 3592sed 's/^/| /' conftest.$ac_ext >&5 3593 3594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3596as_fn_error 77 "C compiler cannot create executables 3597See \`config.log' for more details" "$LINENO" 5; } 3598else 3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3600$as_echo "yes" >&6; } 3601fi 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3603$as_echo_n "checking for C compiler default output file name... " >&6; } 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3605$as_echo "$ac_file" >&6; } 3606ac_exeext=$ac_cv_exeext 3607 3608rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3609ac_clean_files=$ac_clean_files_save 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3611$as_echo_n "checking for suffix of executables... " >&6; } 3612if { { ac_try="$ac_link" 3613case "(($ac_try" in 3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3615 *) ac_try_echo=$ac_try;; 3616esac 3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3618$as_echo "$ac_try_echo"; } >&5 3619 (eval "$ac_link") 2>&5 3620 ac_status=$? 3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3622 test $ac_status = 0; }; then : 3623 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3624# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3625# work properly (i.e., refer to `conftest.exe'), while it won't with 3626# `rm'. 3627for ac_file in conftest.exe conftest conftest.*; do 3628 test -f "$ac_file" || continue 3629 case $ac_file in 3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3632 break;; 3633 * ) break;; 3634 esac 3635done 3636else 3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3639as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3640See \`config.log' for more details" "$LINENO" 5; } 3641fi 3642rm -f conftest conftest$ac_cv_exeext 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3644$as_echo "$ac_cv_exeext" >&6; } 3645 3646rm -f conftest.$ac_ext 3647EXEEXT=$ac_cv_exeext 3648ac_exeext=$EXEEXT 3649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3650/* end confdefs.h. */ 3651#include <stdio.h> 3652int 3653main () 3654{ 3655FILE *f = fopen ("conftest.out", "w"); 3656 return ferror (f) || fclose (f) != 0; 3657 3658 ; 3659 return 0; 3660} 3661_ACEOF 3662ac_clean_files="$ac_clean_files conftest.out" 3663# Check that the compiler produces executables we can run. If not, either 3664# the compiler is broken, or we cross compile. 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3666$as_echo_n "checking whether we are cross compiling... " >&6; } 3667if test "$cross_compiling" != yes; then 3668 { { ac_try="$ac_link" 3669case "(($ac_try" in 3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3671 *) ac_try_echo=$ac_try;; 3672esac 3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3674$as_echo "$ac_try_echo"; } >&5 3675 (eval "$ac_link") 2>&5 3676 ac_status=$? 3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3678 test $ac_status = 0; } 3679 if { ac_try='./conftest$ac_cv_exeext' 3680 { { case "(($ac_try" in 3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3682 *) ac_try_echo=$ac_try;; 3683esac 3684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3685$as_echo "$ac_try_echo"; } >&5 3686 (eval "$ac_try") 2>&5 3687 ac_status=$? 3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3689 test $ac_status = 0; }; }; then 3690 cross_compiling=no 3691 else 3692 if test "$cross_compiling" = maybe; then 3693 cross_compiling=yes 3694 else 3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3697as_fn_error $? "cannot run C compiled programs. 3698If you meant to cross compile, use \`--host'. 3699See \`config.log' for more details" "$LINENO" 5; } 3700 fi 3701 fi 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3704$as_echo "$cross_compiling" >&6; } 3705 3706rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3707ac_clean_files=$ac_clean_files_save 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3709$as_echo_n "checking for suffix of object files... " >&6; } 3710if ${ac_cv_objext+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715 3716int 3717main () 3718{ 3719 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724rm -f conftest.o conftest.obj 3725if { { ac_try="$ac_compile" 3726case "(($ac_try" in 3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3728 *) ac_try_echo=$ac_try;; 3729esac 3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3731$as_echo "$ac_try_echo"; } >&5 3732 (eval "$ac_compile") 2>&5 3733 ac_status=$? 3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3735 test $ac_status = 0; }; then : 3736 for ac_file in conftest.o conftest.obj conftest.*; do 3737 test -f "$ac_file" || continue; 3738 case $ac_file in 3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3741 break;; 3742 esac 3743done 3744else 3745 $as_echo "$as_me: failed program was:" >&5 3746sed 's/^/| /' conftest.$ac_ext >&5 3747 3748{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3750as_fn_error $? "cannot compute suffix of object files: cannot compile 3751See \`config.log' for more details" "$LINENO" 5; } 3752fi 3753rm -f conftest.$ac_cv_objext conftest.$ac_ext 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3756$as_echo "$ac_cv_objext" >&6; } 3757OBJEXT=$ac_cv_objext 3758ac_objext=$OBJEXT 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3760$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3761if ${ac_cv_c_compiler_gnu+:} false; then : 3762 $as_echo_n "(cached) " >&6 3763else 3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766 3767int 3768main () 3769{ 3770#ifndef __GNUC__ 3771 choke me 3772#endif 3773 3774 ; 3775 return 0; 3776} 3777_ACEOF 3778if ac_fn_c_try_compile "$LINENO"; then : 3779 ac_compiler_gnu=yes 3780else 3781 ac_compiler_gnu=no 3782fi 3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3784ac_cv_c_compiler_gnu=$ac_compiler_gnu 3785 3786fi 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3788$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3789if test $ac_compiler_gnu = yes; then 3790 GCC=yes 3791else 3792 GCC= 3793fi 3794ac_test_CFLAGS=${CFLAGS+set} 3795ac_save_CFLAGS=$CFLAGS 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3797$as_echo_n "checking whether $CC accepts -g... " >&6; } 3798if ${ac_cv_prog_cc_g+:} false; then : 3799 $as_echo_n "(cached) " >&6 3800else 3801 ac_save_c_werror_flag=$ac_c_werror_flag 3802 ac_c_werror_flag=yes 3803 ac_cv_prog_cc_g=no 3804 CFLAGS="-g" 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807 3808int 3809main () 3810{ 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_c_try_compile "$LINENO"; then : 3817 ac_cv_prog_cc_g=yes 3818else 3819 CFLAGS="" 3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3821/* end confdefs.h. */ 3822 3823int 3824main () 3825{ 3826 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831if ac_fn_c_try_compile "$LINENO"; then : 3832 3833else 3834 ac_c_werror_flag=$ac_save_c_werror_flag 3835 CFLAGS="-g" 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838 3839int 3840main () 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847if ac_fn_c_try_compile "$LINENO"; then : 3848 ac_cv_prog_cc_g=yes 3849fi 3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3851fi 3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3853fi 3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3855 ac_c_werror_flag=$ac_save_c_werror_flag 3856fi 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3858$as_echo "$ac_cv_prog_cc_g" >&6; } 3859if test "$ac_test_CFLAGS" = set; then 3860 CFLAGS=$ac_save_CFLAGS 3861elif test $ac_cv_prog_cc_g = yes; then 3862 if test "$GCC" = yes; then 3863 CFLAGS="-g -O2" 3864 else 3865 CFLAGS="-g" 3866 fi 3867else 3868 if test "$GCC" = yes; then 3869 CFLAGS="-O2" 3870 else 3871 CFLAGS= 3872 fi 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3875$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3876if ${ac_cv_prog_cc_c89+:} false; then : 3877 $as_echo_n "(cached) " >&6 3878else 3879 ac_cv_prog_cc_c89=no 3880ac_save_CC=$CC 3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3882/* end confdefs.h. */ 3883#include <stdarg.h> 3884#include <stdio.h> 3885#include <sys/types.h> 3886#include <sys/stat.h> 3887/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3888struct buf { int x; }; 3889FILE * (*rcsopen) (struct buf *, struct stat *, int); 3890static char *e (p, i) 3891 char **p; 3892 int i; 3893{ 3894 return p[i]; 3895} 3896static char *f (char * (*g) (char **, int), char **p, ...) 3897{ 3898 char *s; 3899 va_list v; 3900 va_start (v,p); 3901 s = g (p, va_arg (v,int)); 3902 va_end (v); 3903 return s; 3904} 3905 3906/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3907 function prototypes and stuff, but not '\xHH' hex character constants. 3908 These don't provoke an error unfortunately, instead are silently treated 3909 as 'x'. The following induces an error, until -std is added to get 3910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3911 array size at least. It's necessary to write '\x00'==0 to get something 3912 that's true only with -std. */ 3913int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3914 3915/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3916 inside strings and character constants. */ 3917#define FOO(x) 'x' 3918int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3919 3920int test (int i, double x); 3921struct s1 {int (*f) (int a);}; 3922struct s2 {int (*f) (double a);}; 3923int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3924int argc; 3925char **argv; 3926int 3927main () 3928{ 3929return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3930 ; 3931 return 0; 3932} 3933_ACEOF 3934for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3936do 3937 CC="$ac_save_CC $ac_arg" 3938 if ac_fn_c_try_compile "$LINENO"; then : 3939 ac_cv_prog_cc_c89=$ac_arg 3940fi 3941rm -f core conftest.err conftest.$ac_objext 3942 test "x$ac_cv_prog_cc_c89" != "xno" && break 3943done 3944rm -f conftest.$ac_ext 3945CC=$ac_save_CC 3946 3947fi 3948# AC_CACHE_VAL 3949case "x$ac_cv_prog_cc_c89" in 3950 x) 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3952$as_echo "none needed" >&6; } ;; 3953 xno) 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3955$as_echo "unsupported" >&6; } ;; 3956 *) 3957 CC="$CC $ac_cv_prog_cc_c89" 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3959$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3960esac 3961if test "x$ac_cv_prog_cc_c89" != xno; then : 3962 3963fi 3964 3965ac_ext=c 3966ac_cpp='$CPP $CPPFLAGS' 3967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3969ac_compiler_gnu=$ac_cv_c_compiler_gnu 3970 3971depcc="$CC" am_compiler_list= 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3974$as_echo_n "checking dependency style of $depcc... " >&6; } 3975if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3979 # We make a subdir and do the tests there. Otherwise we can end up 3980 # making bogus files that we don't know about and never remove. For 3981 # instance it was reported that on HP-UX the gcc test will end up 3982 # making a dummy file named `D' -- because `-MD' means `put the output 3983 # in D'. 3984 mkdir conftest.dir 3985 # Copy depcomp to subdir because otherwise we won't find it if we're 3986 # using a relative directory. 3987 cp "$am_depcomp" conftest.dir 3988 cd conftest.dir 3989 # We will build objects and dependencies in a subdirectory because 3990 # it helps to detect inapplicable dependency modes. For instance 3991 # both Tru64's cc and ICC support -MD to output dependencies as a 3992 # side effect of compilation, but ICC will put the dependencies in 3993 # the current directory while Tru64 will put them in the object 3994 # directory. 3995 mkdir sub 3996 3997 am_cv_CC_dependencies_compiler_type=none 3998 if test "$am_compiler_list" = ""; then 3999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4000 fi 4001 am__universal=false 4002 case " $depcc " in #( 4003 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4004 esac 4005 4006 for depmode in $am_compiler_list; do 4007 # Setup a source with many dependencies, because some compilers 4008 # like to wrap large dependency lists on column 80 (with \), and 4009 # we should not choose a depcomp mode which is confused by this. 4010 # 4011 # We need to recreate these files for each test, as the compiler may 4012 # overwrite some of them when testing with obscure command lines. 4013 # This happens at least with the AIX C compiler. 4014 : > sub/conftest.c 4015 for i in 1 2 3 4 5 6; do 4016 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4017 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4018 # Solaris 8's {/usr,}/bin/sh. 4019 touch sub/conftst$i.h 4020 done 4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4022 4023 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4024 # mode. It turns out that the SunPro C++ compiler does not properly 4025 # handle `-M -o', and we need to detect this. Also, some Intel 4026 # versions had trouble with output in subdirs 4027 am__obj=sub/conftest.${OBJEXT-o} 4028 am__minus_obj="-o $am__obj" 4029 case $depmode in 4030 gcc) 4031 # This depmode causes a compiler race in universal mode. 4032 test "$am__universal" = false || continue 4033 ;; 4034 nosideeffect) 4035 # after this tag, mechanisms are not by side-effect, so they'll 4036 # only be used when explicitly requested 4037 if test "x$enable_dependency_tracking" = xyes; then 4038 continue 4039 else 4040 break 4041 fi 4042 ;; 4043 msvisualcpp | msvcmsys) 4044 # This compiler won't grok `-c -o', but also, the minuso test has 4045 # not run yet. These depmodes are late enough in the game, and 4046 # so weak that their functioning should not be impacted. 4047 am__obj=conftest.${OBJEXT-o} 4048 am__minus_obj= 4049 ;; 4050 none) break ;; 4051 esac 4052 if depmode=$depmode \ 4053 source=sub/conftest.c object=$am__obj \ 4054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4055 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4056 >/dev/null 2>conftest.err && 4057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4061 # icc doesn't choke on unknown options, it will just issue warnings 4062 # or remarks (even with -Werror). So we grep stderr for any message 4063 # that says an option was ignored or not supported. 4064 # When given -MP, icc 7.0 and 7.1 complain thusly: 4065 # icc: Command line warning: ignoring option '-M'; no argument required 4066 # The diagnosis changed in icc 8.0: 4067 # icc: Command line remark: option '-MP' not supported 4068 if (grep 'ignoring option' conftest.err || 4069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4070 am_cv_CC_dependencies_compiler_type=$depmode 4071 break 4072 fi 4073 fi 4074 done 4075 4076 cd .. 4077 rm -rf conftest.dir 4078else 4079 am_cv_CC_dependencies_compiler_type=none 4080fi 4081 4082fi 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4084$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4085CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4086 4087 if 4088 test "x$enable_dependency_tracking" != xno \ 4089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4090 am__fastdepCC_TRUE= 4091 am__fastdepCC_FALSE='#' 4092else 4093 am__fastdepCC_TRUE='#' 4094 am__fastdepCC_FALSE= 4095fi 4096 4097 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4099$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4100if ${ac_cv_path_SED+:} false; then : 4101 $as_echo_n "(cached) " >&6 4102else 4103 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4104 for ac_i in 1 2 3 4 5 6 7; do 4105 ac_script="$ac_script$as_nl$ac_script" 4106 done 4107 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4108 { ac_script=; unset ac_script;} 4109 if test -z "$SED"; then 4110 ac_path_SED_found=false 4111 # Loop through the user's path and test for each of PROGNAME-LIST 4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4113for as_dir in $PATH 4114do 4115 IFS=$as_save_IFS 4116 test -z "$as_dir" && as_dir=. 4117 for ac_prog in sed gsed; do 4118 for ac_exec_ext in '' $ac_executable_extensions; do 4119 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4120 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4121# Check for GNU ac_path_SED and select it if it is found. 4122 # Check for GNU $ac_path_SED 4123case `"$ac_path_SED" --version 2>&1` in 4124*GNU*) 4125 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4126*) 4127 ac_count=0 4128 $as_echo_n 0123456789 >"conftest.in" 4129 while : 4130 do 4131 cat "conftest.in" "conftest.in" >"conftest.tmp" 4132 mv "conftest.tmp" "conftest.in" 4133 cp "conftest.in" "conftest.nl" 4134 $as_echo '' >> "conftest.nl" 4135 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4137 as_fn_arith $ac_count + 1 && ac_count=$as_val 4138 if test $ac_count -gt ${ac_path_SED_max-0}; then 4139 # Best one so far, save it but keep looking for a better one 4140 ac_cv_path_SED="$ac_path_SED" 4141 ac_path_SED_max=$ac_count 4142 fi 4143 # 10*(2^10) chars as input seems more than enough 4144 test $ac_count -gt 10 && break 4145 done 4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4147esac 4148 4149 $ac_path_SED_found && break 3 4150 done 4151 done 4152 done 4153IFS=$as_save_IFS 4154 if test -z "$ac_cv_path_SED"; then 4155 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4156 fi 4157else 4158 ac_cv_path_SED=$SED 4159fi 4160 4161fi 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4163$as_echo "$ac_cv_path_SED" >&6; } 4164 SED="$ac_cv_path_SED" 4165 rm -f conftest.sed 4166 4167test -z "$SED" && SED=sed 4168Xsed="$SED -e 1s/^X//" 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4181$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4182if ${ac_cv_path_GREP+:} false; then : 4183 $as_echo_n "(cached) " >&6 4184else 4185 if test -z "$GREP"; then 4186 ac_path_GREP_found=false 4187 # Loop through the user's path and test for each of PROGNAME-LIST 4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4190do 4191 IFS=$as_save_IFS 4192 test -z "$as_dir" && as_dir=. 4193 for ac_prog in grep ggrep; do 4194 for ac_exec_ext in '' $ac_executable_extensions; do 4195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4197# Check for GNU ac_path_GREP and select it if it is found. 4198 # Check for GNU $ac_path_GREP 4199case `"$ac_path_GREP" --version 2>&1` in 4200*GNU*) 4201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4202*) 4203 ac_count=0 4204 $as_echo_n 0123456789 >"conftest.in" 4205 while : 4206 do 4207 cat "conftest.in" "conftest.in" >"conftest.tmp" 4208 mv "conftest.tmp" "conftest.in" 4209 cp "conftest.in" "conftest.nl" 4210 $as_echo 'GREP' >> "conftest.nl" 4211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4213 as_fn_arith $ac_count + 1 && ac_count=$as_val 4214 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4215 # Best one so far, save it but keep looking for a better one 4216 ac_cv_path_GREP="$ac_path_GREP" 4217 ac_path_GREP_max=$ac_count 4218 fi 4219 # 10*(2^10) chars as input seems more than enough 4220 test $ac_count -gt 10 && break 4221 done 4222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4223esac 4224 4225 $ac_path_GREP_found && break 3 4226 done 4227 done 4228 done 4229IFS=$as_save_IFS 4230 if test -z "$ac_cv_path_GREP"; then 4231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4232 fi 4233else 4234 ac_cv_path_GREP=$GREP 4235fi 4236 4237fi 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4239$as_echo "$ac_cv_path_GREP" >&6; } 4240 GREP="$ac_cv_path_GREP" 4241 4242 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4244$as_echo_n "checking for egrep... " >&6; } 4245if ${ac_cv_path_EGREP+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4249 then ac_cv_path_EGREP="$GREP -E" 4250 else 4251 if test -z "$EGREP"; then 4252 ac_path_EGREP_found=false 4253 # Loop through the user's path and test for each of PROGNAME-LIST 4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4256do 4257 IFS=$as_save_IFS 4258 test -z "$as_dir" && as_dir=. 4259 for ac_prog in egrep; do 4260 for ac_exec_ext in '' $ac_executable_extensions; do 4261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4262 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4263# Check for GNU ac_path_EGREP and select it if it is found. 4264 # Check for GNU $ac_path_EGREP 4265case `"$ac_path_EGREP" --version 2>&1` in 4266*GNU*) 4267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4268*) 4269 ac_count=0 4270 $as_echo_n 0123456789 >"conftest.in" 4271 while : 4272 do 4273 cat "conftest.in" "conftest.in" >"conftest.tmp" 4274 mv "conftest.tmp" "conftest.in" 4275 cp "conftest.in" "conftest.nl" 4276 $as_echo 'EGREP' >> "conftest.nl" 4277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4279 as_fn_arith $ac_count + 1 && ac_count=$as_val 4280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4281 # Best one so far, save it but keep looking for a better one 4282 ac_cv_path_EGREP="$ac_path_EGREP" 4283 ac_path_EGREP_max=$ac_count 4284 fi 4285 # 10*(2^10) chars as input seems more than enough 4286 test $ac_count -gt 10 && break 4287 done 4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4289esac 4290 4291 $ac_path_EGREP_found && break 3 4292 done 4293 done 4294 done 4295IFS=$as_save_IFS 4296 if test -z "$ac_cv_path_EGREP"; then 4297 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4298 fi 4299else 4300 ac_cv_path_EGREP=$EGREP 4301fi 4302 4303 fi 4304fi 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4306$as_echo "$ac_cv_path_EGREP" >&6; } 4307 EGREP="$ac_cv_path_EGREP" 4308 4309 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4311$as_echo_n "checking for fgrep... " >&6; } 4312if ${ac_cv_path_FGREP+:} false; then : 4313 $as_echo_n "(cached) " >&6 4314else 4315 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4316 then ac_cv_path_FGREP="$GREP -F" 4317 else 4318 if test -z "$FGREP"; then 4319 ac_path_FGREP_found=false 4320 # Loop through the user's path and test for each of PROGNAME-LIST 4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4323do 4324 IFS=$as_save_IFS 4325 test -z "$as_dir" && as_dir=. 4326 for ac_prog in fgrep; do 4327 for ac_exec_ext in '' $ac_executable_extensions; do 4328 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4329 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4330# Check for GNU ac_path_FGREP and select it if it is found. 4331 # Check for GNU $ac_path_FGREP 4332case `"$ac_path_FGREP" --version 2>&1` in 4333*GNU*) 4334 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4335*) 4336 ac_count=0 4337 $as_echo_n 0123456789 >"conftest.in" 4338 while : 4339 do 4340 cat "conftest.in" "conftest.in" >"conftest.tmp" 4341 mv "conftest.tmp" "conftest.in" 4342 cp "conftest.in" "conftest.nl" 4343 $as_echo 'FGREP' >> "conftest.nl" 4344 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4346 as_fn_arith $ac_count + 1 && ac_count=$as_val 4347 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4348 # Best one so far, save it but keep looking for a better one 4349 ac_cv_path_FGREP="$ac_path_FGREP" 4350 ac_path_FGREP_max=$ac_count 4351 fi 4352 # 10*(2^10) chars as input seems more than enough 4353 test $ac_count -gt 10 && break 4354 done 4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4356esac 4357 4358 $ac_path_FGREP_found && break 3 4359 done 4360 done 4361 done 4362IFS=$as_save_IFS 4363 if test -z "$ac_cv_path_FGREP"; then 4364 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4365 fi 4366else 4367 ac_cv_path_FGREP=$FGREP 4368fi 4369 4370 fi 4371fi 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4373$as_echo "$ac_cv_path_FGREP" >&6; } 4374 FGREP="$ac_cv_path_FGREP" 4375 4376 4377test -z "$GREP" && GREP=grep 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397# Check whether --with-gnu-ld was given. 4398if test "${with_gnu_ld+set}" = set; then : 4399 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4400else 4401 with_gnu_ld=no 4402fi 4403 4404ac_prog=ld 4405if test "$GCC" = yes; then 4406 # Check if gcc -print-prog-name=ld gives a path. 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4408$as_echo_n "checking for ld used by $CC... " >&6; } 4409 case $host in 4410 *-*-mingw*) 4411 # gcc leaves a trailing carriage return which upsets mingw 4412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4413 *) 4414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4415 esac 4416 case $ac_prog in 4417 # Accept absolute paths. 4418 [\\/]* | ?:[\\/]*) 4419 re_direlt='/[^/][^/]*/\.\./' 4420 # Canonicalize the pathname of ld 4421 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4422 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4423 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4424 done 4425 test -z "$LD" && LD="$ac_prog" 4426 ;; 4427 "") 4428 # If it fails, then pretend we aren't using GCC. 4429 ac_prog=ld 4430 ;; 4431 *) 4432 # If it is relative, then search for the first ld in PATH. 4433 with_gnu_ld=unknown 4434 ;; 4435 esac 4436elif test "$with_gnu_ld" = yes; then 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4438$as_echo_n "checking for GNU ld... " >&6; } 4439else 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4441$as_echo_n "checking for non-GNU ld... " >&6; } 4442fi 4443if ${lt_cv_path_LD+:} false; then : 4444 $as_echo_n "(cached) " >&6 4445else 4446 if test -z "$LD"; then 4447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4448 for ac_dir in $PATH; do 4449 IFS="$lt_save_ifs" 4450 test -z "$ac_dir" && ac_dir=. 4451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4452 lt_cv_path_LD="$ac_dir/$ac_prog" 4453 # Check to see if the program is GNU ld. I'd rather use --version, 4454 # but apparently some variants of GNU ld only accept -v. 4455 # Break only if it was the GNU/non-GNU ld that we prefer. 4456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4457 *GNU* | *'with BFD'*) 4458 test "$with_gnu_ld" != no && break 4459 ;; 4460 *) 4461 test "$with_gnu_ld" != yes && break 4462 ;; 4463 esac 4464 fi 4465 done 4466 IFS="$lt_save_ifs" 4467else 4468 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4469fi 4470fi 4471 4472LD="$lt_cv_path_LD" 4473if test -n "$LD"; then 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4475$as_echo "$LD" >&6; } 4476else 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4478$as_echo "no" >&6; } 4479fi 4480test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4482$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4483if ${lt_cv_prog_gnu_ld+:} false; then : 4484 $as_echo_n "(cached) " >&6 4485else 4486 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4487case `$LD -v 2>&1 </dev/null` in 4488*GNU* | *'with BFD'*) 4489 lt_cv_prog_gnu_ld=yes 4490 ;; 4491*) 4492 lt_cv_prog_gnu_ld=no 4493 ;; 4494esac 4495fi 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4497$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4498with_gnu_ld=$lt_cv_prog_gnu_ld 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4509$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4510if ${lt_cv_path_NM+:} false; then : 4511 $as_echo_n "(cached) " >&6 4512else 4513 if test -n "$NM"; then 4514 # Let the user override the test. 4515 lt_cv_path_NM="$NM" 4516else 4517 lt_nm_to_check="${ac_tool_prefix}nm" 4518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4519 lt_nm_to_check="$lt_nm_to_check nm" 4520 fi 4521 for lt_tmp_nm in $lt_nm_to_check; do 4522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4524 IFS="$lt_save_ifs" 4525 test -z "$ac_dir" && ac_dir=. 4526 tmp_nm="$ac_dir/$lt_tmp_nm" 4527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4528 # Check to see if the nm accepts a BSD-compat flag. 4529 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4530 # nm: unknown option "B" ignored 4531 # Tru64's nm complains that /dev/null is an invalid object file 4532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4533 */dev/null* | *'Invalid file or object type'*) 4534 lt_cv_path_NM="$tmp_nm -B" 4535 break 4536 ;; 4537 *) 4538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4539 */dev/null*) 4540 lt_cv_path_NM="$tmp_nm -p" 4541 break 4542 ;; 4543 *) 4544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4545 continue # so that we can try to find one that supports BSD flags 4546 ;; 4547 esac 4548 ;; 4549 esac 4550 fi 4551 done 4552 IFS="$lt_save_ifs" 4553 done 4554 : ${lt_cv_path_NM=no} 4555fi 4556fi 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4558$as_echo "$lt_cv_path_NM" >&6; } 4559if test "$lt_cv_path_NM" != "no"; then 4560 NM="$lt_cv_path_NM" 4561else 4562 # Didn't find any BSD compatible name lister, look for dumpbin. 4563 if test -n "$DUMPBIN"; then : 4564 # Let the user override the test. 4565 else 4566 if test -n "$ac_tool_prefix"; then 4567 for ac_prog in dumpbin "link -dump" 4568 do 4569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4570set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4572$as_echo_n "checking for $ac_word... " >&6; } 4573if ${ac_cv_prog_DUMPBIN+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 if test -n "$DUMPBIN"; then 4577 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4578else 4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_exec_ext in '' $ac_executable_extensions; do 4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4586 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4588 break 2 4589 fi 4590done 4591 done 4592IFS=$as_save_IFS 4593 4594fi 4595fi 4596DUMPBIN=$ac_cv_prog_DUMPBIN 4597if test -n "$DUMPBIN"; then 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4599$as_echo "$DUMPBIN" >&6; } 4600else 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4602$as_echo "no" >&6; } 4603fi 4604 4605 4606 test -n "$DUMPBIN" && break 4607 done 4608fi 4609if test -z "$DUMPBIN"; then 4610 ac_ct_DUMPBIN=$DUMPBIN 4611 for ac_prog in dumpbin "link -dump" 4612do 4613 # Extract the first word of "$ac_prog", so it can be a program name with args. 4614set dummy $ac_prog; ac_word=$2 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4616$as_echo_n "checking for $ac_word... " >&6; } 4617if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if test -n "$ac_ct_DUMPBIN"; then 4621 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4622else 4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_exec_ext in '' $ac_executable_extensions; do 4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4630 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4632 break 2 4633 fi 4634done 4635 done 4636IFS=$as_save_IFS 4637 4638fi 4639fi 4640ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4641if test -n "$ac_ct_DUMPBIN"; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4643$as_echo "$ac_ct_DUMPBIN" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4646$as_echo "no" >&6; } 4647fi 4648 4649 4650 test -n "$ac_ct_DUMPBIN" && break 4651done 4652 4653 if test "x$ac_ct_DUMPBIN" = x; then 4654 DUMPBIN=":" 4655 else 4656 case $cross_compiling:$ac_tool_warned in 4657yes:) 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4660ac_tool_warned=yes ;; 4661esac 4662 DUMPBIN=$ac_ct_DUMPBIN 4663 fi 4664fi 4665 4666 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4667 *COFF*) 4668 DUMPBIN="$DUMPBIN -symbols" 4669 ;; 4670 *) 4671 DUMPBIN=: 4672 ;; 4673 esac 4674 fi 4675 4676 if test "$DUMPBIN" != ":"; then 4677 NM="$DUMPBIN" 4678 fi 4679fi 4680test -z "$NM" && NM=nm 4681 4682 4683 4684 4685 4686 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4688$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4689if ${lt_cv_nm_interface+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 lt_cv_nm_interface="BSD nm" 4693 echo "int some_variable = 0;" > conftest.$ac_ext 4694 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4695 (eval "$ac_compile" 2>conftest.err) 4696 cat conftest.err >&5 4697 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4698 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4699 cat conftest.err >&5 4700 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4701 cat conftest.out >&5 4702 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4703 lt_cv_nm_interface="MS dumpbin" 4704 fi 4705 rm -f conftest* 4706fi 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4708$as_echo "$lt_cv_nm_interface" >&6; } 4709 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4711$as_echo_n "checking whether ln -s works... " >&6; } 4712LN_S=$as_ln_s 4713if test "$LN_S" = "ln -s"; then 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4715$as_echo "yes" >&6; } 4716else 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4718$as_echo "no, using $LN_S" >&6; } 4719fi 4720 4721# find the maximum length of command line arguments 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4723$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4724if ${lt_cv_sys_max_cmd_len+:} false; then : 4725 $as_echo_n "(cached) " >&6 4726else 4727 i=0 4728 teststring="ABCD" 4729 4730 case $build_os in 4731 msdosdjgpp*) 4732 # On DJGPP, this test can blow up pretty badly due to problems in libc 4733 # (any single argument exceeding 2000 bytes causes a buffer overrun 4734 # during glob expansion). Even if it were fixed, the result of this 4735 # check would be larger than it should be. 4736 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4737 ;; 4738 4739 gnu*) 4740 # Under GNU Hurd, this test is not required because there is 4741 # no limit to the length of command line arguments. 4742 # Libtool will interpret -1 as no limit whatsoever 4743 lt_cv_sys_max_cmd_len=-1; 4744 ;; 4745 4746 cygwin* | mingw* | cegcc*) 4747 # On Win9x/ME, this test blows up -- it succeeds, but takes 4748 # about 5 minutes as the teststring grows exponentially. 4749 # Worse, since 9x/ME are not pre-emptively multitasking, 4750 # you end up with a "frozen" computer, even though with patience 4751 # the test eventually succeeds (with a max line length of 256k). 4752 # Instead, let's just punt: use the minimum linelength reported by 4753 # all of the supported platforms: 8192 (on NT/2K/XP). 4754 lt_cv_sys_max_cmd_len=8192; 4755 ;; 4756 4757 mint*) 4758 # On MiNT this can take a long time and run out of memory. 4759 lt_cv_sys_max_cmd_len=8192; 4760 ;; 4761 4762 amigaos*) 4763 # On AmigaOS with pdksh, this test takes hours, literally. 4764 # So we just punt and use a minimum line length of 8192. 4765 lt_cv_sys_max_cmd_len=8192; 4766 ;; 4767 4768 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4769 # This has been around since 386BSD, at least. Likely further. 4770 if test -x /sbin/sysctl; then 4771 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4772 elif test -x /usr/sbin/sysctl; then 4773 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4774 else 4775 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4776 fi 4777 # And add a safety zone 4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4780 ;; 4781 4782 interix*) 4783 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4784 lt_cv_sys_max_cmd_len=196608 4785 ;; 4786 4787 osf*) 4788 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4789 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4790 # nice to cause kernel panics so lets avoid the loop below. 4791 # First set a reasonable default. 4792 lt_cv_sys_max_cmd_len=16384 4793 # 4794 if test -x /sbin/sysconfig; then 4795 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4796 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4797 esac 4798 fi 4799 ;; 4800 sco3.2v5*) 4801 lt_cv_sys_max_cmd_len=102400 4802 ;; 4803 sysv5* | sco5v6* | sysv4.2uw2*) 4804 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4805 if test -n "$kargmax"; then 4806 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4807 else 4808 lt_cv_sys_max_cmd_len=32768 4809 fi 4810 ;; 4811 *) 4812 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4813 if test -n "$lt_cv_sys_max_cmd_len"; then 4814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4816 else 4817 # Make teststring a little bigger before we do anything with it. 4818 # a 1K string should be a reasonable start. 4819 for i in 1 2 3 4 5 6 7 8 ; do 4820 teststring=$teststring$teststring 4821 done 4822 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4823 # If test is not a shell built-in, we'll probably end up computing a 4824 # maximum length that is only half of the actual maximum length, but 4825 # we can't tell. 4826 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4827 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4828 test $i != 17 # 1/2 MB should be enough 4829 do 4830 i=`expr $i + 1` 4831 teststring=$teststring$teststring 4832 done 4833 # Only check the string length outside the loop. 4834 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4835 teststring= 4836 # Add a significant safety factor because C++ compilers can tack on 4837 # massive amounts of additional arguments before passing them to the 4838 # linker. It appears as though 1/2 is a usable value. 4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4840 fi 4841 ;; 4842 esac 4843 4844fi 4845 4846if test -n $lt_cv_sys_max_cmd_len ; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4848$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4849else 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4851$as_echo "none" >&6; } 4852fi 4853max_cmd_len=$lt_cv_sys_max_cmd_len 4854 4855 4856 4857 4858 4859 4860: ${CP="cp -f"} 4861: ${MV="mv -f"} 4862: ${RM="rm -f"} 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4865$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4866# Try some XSI features 4867xsi_shell=no 4868( _lt_dummy="a/b/c" 4869 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4870 = c,a/b,b/c, \ 4871 && eval 'test $(( 1 + 1 )) -eq 2 \ 4872 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4873 && xsi_shell=yes 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4875$as_echo "$xsi_shell" >&6; } 4876 4877 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4879$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4880lt_shell_append=no 4881( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4882 >/dev/null 2>&1 \ 4883 && lt_shell_append=yes 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4885$as_echo "$lt_shell_append" >&6; } 4886 4887 4888if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4889 lt_unset=unset 4890else 4891 lt_unset=false 4892fi 4893 4894 4895 4896 4897 4898# test EBCDIC or ASCII 4899case `echo X|tr X '\101'` in 4900 A) # ASCII based system 4901 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4902 lt_SP2NL='tr \040 \012' 4903 lt_NL2SP='tr \015\012 \040\040' 4904 ;; 4905 *) # EBCDIC based system 4906 lt_SP2NL='tr \100 \n' 4907 lt_NL2SP='tr \r\n \100\100' 4908 ;; 4909esac 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4920$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4921if ${lt_cv_to_host_file_cmd+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 case $host in 4925 *-*-mingw* ) 4926 case $build in 4927 *-*-mingw* ) # actually msys 4928 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4929 ;; 4930 *-*-cygwin* ) 4931 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4932 ;; 4933 * ) # otherwise, assume *nix 4934 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4935 ;; 4936 esac 4937 ;; 4938 *-*-cygwin* ) 4939 case $build in 4940 *-*-mingw* ) # actually msys 4941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4942 ;; 4943 *-*-cygwin* ) 4944 lt_cv_to_host_file_cmd=func_convert_file_noop 4945 ;; 4946 * ) # otherwise, assume *nix 4947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4948 ;; 4949 esac 4950 ;; 4951 * ) # unhandled hosts (and "normal" native builds) 4952 lt_cv_to_host_file_cmd=func_convert_file_noop 4953 ;; 4954esac 4955 4956fi 4957 4958to_host_file_cmd=$lt_cv_to_host_file_cmd 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4960$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4961 4962 4963 4964 4965 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4967$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4968if ${lt_cv_to_tool_file_cmd+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 #assume ordinary cross tools, or native build. 4972lt_cv_to_tool_file_cmd=func_convert_file_noop 4973case $host in 4974 *-*-mingw* ) 4975 case $build in 4976 *-*-mingw* ) # actually msys 4977 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4978 ;; 4979 esac 4980 ;; 4981esac 4982 4983fi 4984 4985to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4987$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4988 4989 4990 4991 4992 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4994$as_echo_n "checking for $LD option to reload object files... " >&6; } 4995if ${lt_cv_ld_reload_flag+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997else 4998 lt_cv_ld_reload_flag='-r' 4999fi 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5001$as_echo "$lt_cv_ld_reload_flag" >&6; } 5002reload_flag=$lt_cv_ld_reload_flag 5003case $reload_flag in 5004"" | " "*) ;; 5005*) reload_flag=" $reload_flag" ;; 5006esac 5007reload_cmds='$LD$reload_flag -o $output$reload_objs' 5008case $host_os in 5009 cygwin* | mingw* | pw32* | cegcc*) 5010 if test "$GCC" != yes; then 5011 reload_cmds=false 5012 fi 5013 ;; 5014 darwin*) 5015 if test "$GCC" = yes; then 5016 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5017 else 5018 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5019 fi 5020 ;; 5021esac 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031if test -n "$ac_tool_prefix"; then 5032 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5033set dummy ${ac_tool_prefix}objdump; ac_word=$2 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5035$as_echo_n "checking for $ac_word... " >&6; } 5036if ${ac_cv_prog_OBJDUMP+:} false; then : 5037 $as_echo_n "(cached) " >&6 5038else 5039 if test -n "$OBJDUMP"; then 5040 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5041else 5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5043for as_dir in $PATH 5044do 5045 IFS=$as_save_IFS 5046 test -z "$as_dir" && as_dir=. 5047 for ac_exec_ext in '' $ac_executable_extensions; do 5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5049 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5051 break 2 5052 fi 5053done 5054 done 5055IFS=$as_save_IFS 5056 5057fi 5058fi 5059OBJDUMP=$ac_cv_prog_OBJDUMP 5060if test -n "$OBJDUMP"; then 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5062$as_echo "$OBJDUMP" >&6; } 5063else 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5065$as_echo "no" >&6; } 5066fi 5067 5068 5069fi 5070if test -z "$ac_cv_prog_OBJDUMP"; then 5071 ac_ct_OBJDUMP=$OBJDUMP 5072 # Extract the first word of "objdump", so it can be a program name with args. 5073set dummy objdump; ac_word=$2 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5075$as_echo_n "checking for $ac_word... " >&6; } 5076if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 if test -n "$ac_ct_OBJDUMP"; then 5080 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5081else 5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5083for as_dir in $PATH 5084do 5085 IFS=$as_save_IFS 5086 test -z "$as_dir" && as_dir=. 5087 for ac_exec_ext in '' $ac_executable_extensions; do 5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5089 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5091 break 2 5092 fi 5093done 5094 done 5095IFS=$as_save_IFS 5096 5097fi 5098fi 5099ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5100if test -n "$ac_ct_OBJDUMP"; then 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5102$as_echo "$ac_ct_OBJDUMP" >&6; } 5103else 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5105$as_echo "no" >&6; } 5106fi 5107 5108 if test "x$ac_ct_OBJDUMP" = x; then 5109 OBJDUMP="false" 5110 else 5111 case $cross_compiling:$ac_tool_warned in 5112yes:) 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5115ac_tool_warned=yes ;; 5116esac 5117 OBJDUMP=$ac_ct_OBJDUMP 5118 fi 5119else 5120 OBJDUMP="$ac_cv_prog_OBJDUMP" 5121fi 5122 5123test -z "$OBJDUMP" && OBJDUMP=objdump 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5134$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5135if ${lt_cv_deplibs_check_method+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 lt_cv_file_magic_cmd='$MAGIC_CMD' 5139lt_cv_file_magic_test_file= 5140lt_cv_deplibs_check_method='unknown' 5141# Need to set the preceding variable on all platforms that support 5142# interlibrary dependencies. 5143# 'none' -- dependencies not supported. 5144# `unknown' -- same as none, but documents that we really don't know. 5145# 'pass_all' -- all dependencies passed with no checks. 5146# 'test_compile' -- check by making test program. 5147# 'file_magic [[regex]]' -- check by looking for files in library path 5148# which responds to the $file_magic_cmd with a given extended regex. 5149# If you have `file' or equivalent on your system and you're not sure 5150# whether `pass_all' will *always* work, you probably want this one. 5151 5152case $host_os in 5153aix[4-9]*) 5154 lt_cv_deplibs_check_method=pass_all 5155 ;; 5156 5157beos*) 5158 lt_cv_deplibs_check_method=pass_all 5159 ;; 5160 5161bsdi[45]*) 5162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5163 lt_cv_file_magic_cmd='/usr/bin/file -L' 5164 lt_cv_file_magic_test_file=/shlib/libc.so 5165 ;; 5166 5167cygwin*) 5168 # func_win32_libid is a shell function defined in ltmain.sh 5169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5170 lt_cv_file_magic_cmd='func_win32_libid' 5171 ;; 5172 5173mingw* | pw32*) 5174 # Base MSYS/MinGW do not provide the 'file' command needed by 5175 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5176 # unless we find 'file', for example because we are cross-compiling. 5177 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5178 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5180 lt_cv_file_magic_cmd='func_win32_libid' 5181 else 5182 # Keep this pattern in sync with the one in func_win32_libid. 5183 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5184 lt_cv_file_magic_cmd='$OBJDUMP -f' 5185 fi 5186 ;; 5187 5188cegcc*) 5189 # use the weaker test based on 'objdump'. See mingw*. 5190 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5191 lt_cv_file_magic_cmd='$OBJDUMP -f' 5192 ;; 5193 5194darwin* | rhapsody*) 5195 lt_cv_deplibs_check_method=pass_all 5196 ;; 5197 5198freebsd* | dragonfly*) 5199 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5200 case $host_cpu in 5201 i*86 ) 5202 # Not sure whether the presence of OpenBSD here was a mistake. 5203 # Let's accept both of them until this is cleared up. 5204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5205 lt_cv_file_magic_cmd=/usr/bin/file 5206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5207 ;; 5208 esac 5209 else 5210 lt_cv_deplibs_check_method=pass_all 5211 fi 5212 ;; 5213 5214gnu*) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217 5218haiku*) 5219 lt_cv_deplibs_check_method=pass_all 5220 ;; 5221 5222hpux10.20* | hpux11*) 5223 lt_cv_file_magic_cmd=/usr/bin/file 5224 case $host_cpu in 5225 ia64*) 5226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5227 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5228 ;; 5229 hppa*64*) 5230 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]' 5231 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5232 ;; 5233 *) 5234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5235 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5236 ;; 5237 esac 5238 ;; 5239 5240interix[3-9]*) 5241 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5243 ;; 5244 5245irix5* | irix6* | nonstopux*) 5246 case $LD in 5247 *-32|*"-32 ") libmagic=32-bit;; 5248 *-n32|*"-n32 ") libmagic=N32;; 5249 *-64|*"-64 ") libmagic=64-bit;; 5250 *) libmagic=never-match;; 5251 esac 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255# This must be Linux ELF. 5256linux* | k*bsd*-gnu | kopensolaris*-gnu) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260netbsd*) 5261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5263 else 5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5265 fi 5266 ;; 5267 5268newos6*) 5269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5270 lt_cv_file_magic_cmd=/usr/bin/file 5271 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5272 ;; 5273 5274*nto* | *qnx*) 5275 lt_cv_deplibs_check_method=pass_all 5276 ;; 5277 5278openbsd*) 5279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5281 else 5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5283 fi 5284 ;; 5285 5286osf3* | osf4* | osf5*) 5287 lt_cv_deplibs_check_method=pass_all 5288 ;; 5289 5290rdos*) 5291 lt_cv_deplibs_check_method=pass_all 5292 ;; 5293 5294solaris*) 5295 lt_cv_deplibs_check_method=pass_all 5296 ;; 5297 5298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5299 lt_cv_deplibs_check_method=pass_all 5300 ;; 5301 5302sysv4 | sysv4.3*) 5303 case $host_vendor in 5304 motorola) 5305 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]' 5306 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5307 ;; 5308 ncr) 5309 lt_cv_deplibs_check_method=pass_all 5310 ;; 5311 sequent) 5312 lt_cv_file_magic_cmd='/bin/file' 5313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5314 ;; 5315 sni) 5316 lt_cv_file_magic_cmd='/bin/file' 5317 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5318 lt_cv_file_magic_test_file=/lib/libc.so 5319 ;; 5320 siemens) 5321 lt_cv_deplibs_check_method=pass_all 5322 ;; 5323 pc) 5324 lt_cv_deplibs_check_method=pass_all 5325 ;; 5326 esac 5327 ;; 5328 5329tpf*) 5330 lt_cv_deplibs_check_method=pass_all 5331 ;; 5332esac 5333 5334fi 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5336$as_echo "$lt_cv_deplibs_check_method" >&6; } 5337 5338file_magic_glob= 5339want_nocaseglob=no 5340if test "$build" = "$host"; then 5341 case $host_os in 5342 mingw* | pw32*) 5343 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5344 want_nocaseglob=yes 5345 else 5346 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5347 fi 5348 ;; 5349 esac 5350fi 5351 5352file_magic_cmd=$lt_cv_file_magic_cmd 5353deplibs_check_method=$lt_cv_deplibs_check_method 5354test -z "$deplibs_check_method" && deplibs_check_method=unknown 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377if test -n "$ac_tool_prefix"; then 5378 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5379set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5381$as_echo_n "checking for $ac_word... " >&6; } 5382if ${ac_cv_prog_DLLTOOL+:} false; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 if test -n "$DLLTOOL"; then 5386 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5387else 5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5389for as_dir in $PATH 5390do 5391 IFS=$as_save_IFS 5392 test -z "$as_dir" && as_dir=. 5393 for ac_exec_ext in '' $ac_executable_extensions; do 5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5395 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5397 break 2 5398 fi 5399done 5400 done 5401IFS=$as_save_IFS 5402 5403fi 5404fi 5405DLLTOOL=$ac_cv_prog_DLLTOOL 5406if test -n "$DLLTOOL"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5408$as_echo "$DLLTOOL" >&6; } 5409else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 5415fi 5416if test -z "$ac_cv_prog_DLLTOOL"; then 5417 ac_ct_DLLTOOL=$DLLTOOL 5418 # Extract the first word of "dlltool", so it can be a program name with args. 5419set dummy dlltool; ac_word=$2 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5421$as_echo_n "checking for $ac_word... " >&6; } 5422if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 if test -n "$ac_ct_DLLTOOL"; then 5426 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5427else 5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5429for as_dir in $PATH 5430do 5431 IFS=$as_save_IFS 5432 test -z "$as_dir" && as_dir=. 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5435 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5437 break 2 5438 fi 5439done 5440 done 5441IFS=$as_save_IFS 5442 5443fi 5444fi 5445ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5446if test -n "$ac_ct_DLLTOOL"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5448$as_echo "$ac_ct_DLLTOOL" >&6; } 5449else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451$as_echo "no" >&6; } 5452fi 5453 5454 if test "x$ac_ct_DLLTOOL" = x; then 5455 DLLTOOL="false" 5456 else 5457 case $cross_compiling:$ac_tool_warned in 5458yes:) 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5461ac_tool_warned=yes ;; 5462esac 5463 DLLTOOL=$ac_ct_DLLTOOL 5464 fi 5465else 5466 DLLTOOL="$ac_cv_prog_DLLTOOL" 5467fi 5468 5469test -z "$DLLTOOL" && DLLTOOL=dlltool 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5481$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5482if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 lt_cv_sharedlib_from_linklib_cmd='unknown' 5486 5487case $host_os in 5488cygwin* | mingw* | pw32* | cegcc*) 5489 # two different shell functions defined in ltmain.sh 5490 # decide which to use based on capabilities of $DLLTOOL 5491 case `$DLLTOOL --help 2>&1` in 5492 *--identify-strict*) 5493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5494 ;; 5495 *) 5496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5497 ;; 5498 esac 5499 ;; 5500*) 5501 # fallback: assume linklib IS sharedlib 5502 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5503 ;; 5504esac 5505 5506fi 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5508$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5509sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5510test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5511 5512 5513 5514 5515 5516 5517 5518 5519if test -n "$ac_tool_prefix"; then 5520 for ac_prog in ar 5521 do 5522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5523set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5525$as_echo_n "checking for $ac_word... " >&6; } 5526if ${ac_cv_prog_AR+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 if test -n "$AR"; then 5530 ac_cv_prog_AR="$AR" # Let the user override the test. 5531else 5532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5533for as_dir in $PATH 5534do 5535 IFS=$as_save_IFS 5536 test -z "$as_dir" && as_dir=. 5537 for ac_exec_ext in '' $ac_executable_extensions; do 5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5539 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5541 break 2 5542 fi 5543done 5544 done 5545IFS=$as_save_IFS 5546 5547fi 5548fi 5549AR=$ac_cv_prog_AR 5550if test -n "$AR"; then 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5552$as_echo "$AR" >&6; } 5553else 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5555$as_echo "no" >&6; } 5556fi 5557 5558 5559 test -n "$AR" && break 5560 done 5561fi 5562if test -z "$AR"; then 5563 ac_ct_AR=$AR 5564 for ac_prog in ar 5565do 5566 # Extract the first word of "$ac_prog", so it can be a program name with args. 5567set dummy $ac_prog; ac_word=$2 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5569$as_echo_n "checking for $ac_word... " >&6; } 5570if ${ac_cv_prog_ac_ct_AR+:} false; then : 5571 $as_echo_n "(cached) " >&6 5572else 5573 if test -n "$ac_ct_AR"; then 5574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5575else 5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5577for as_dir in $PATH 5578do 5579 IFS=$as_save_IFS 5580 test -z "$as_dir" && as_dir=. 5581 for ac_exec_ext in '' $ac_executable_extensions; do 5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5583 ac_cv_prog_ac_ct_AR="$ac_prog" 5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5585 break 2 5586 fi 5587done 5588 done 5589IFS=$as_save_IFS 5590 5591fi 5592fi 5593ac_ct_AR=$ac_cv_prog_ac_ct_AR 5594if test -n "$ac_ct_AR"; then 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5596$as_echo "$ac_ct_AR" >&6; } 5597else 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5599$as_echo "no" >&6; } 5600fi 5601 5602 5603 test -n "$ac_ct_AR" && break 5604done 5605 5606 if test "x$ac_ct_AR" = x; then 5607 AR="false" 5608 else 5609 case $cross_compiling:$ac_tool_warned in 5610yes:) 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5613ac_tool_warned=yes ;; 5614esac 5615 AR=$ac_ct_AR 5616 fi 5617fi 5618 5619: ${AR=ar} 5620: ${AR_FLAGS=cru} 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5633$as_echo_n "checking for archiver @FILE support... " >&6; } 5634if ${lt_cv_ar_at_file+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 lt_cv_ar_at_file=no 5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639/* end confdefs.h. */ 5640 5641int 5642main () 5643{ 5644 5645 ; 5646 return 0; 5647} 5648_ACEOF 5649if ac_fn_c_try_compile "$LINENO"; then : 5650 echo conftest.$ac_objext > conftest.lst 5651 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5653 (eval $lt_ar_try) 2>&5 5654 ac_status=$? 5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5656 test $ac_status = 0; } 5657 if test "$ac_status" -eq 0; then 5658 # Ensure the archiver fails upon bogus file names. 5659 rm -f conftest.$ac_objext libconftest.a 5660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5661 (eval $lt_ar_try) 2>&5 5662 ac_status=$? 5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5664 test $ac_status = 0; } 5665 if test "$ac_status" -ne 0; then 5666 lt_cv_ar_at_file=@ 5667 fi 5668 fi 5669 rm -f conftest.* libconftest.a 5670 5671fi 5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5673 5674fi 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5676$as_echo "$lt_cv_ar_at_file" >&6; } 5677 5678if test "x$lt_cv_ar_at_file" = xno; then 5679 archiver_list_spec= 5680else 5681 archiver_list_spec=$lt_cv_ar_at_file 5682fi 5683 5684 5685 5686 5687 5688 5689 5690if test -n "$ac_tool_prefix"; then 5691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5692set dummy ${ac_tool_prefix}strip; ac_word=$2 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5694$as_echo_n "checking for $ac_word... " >&6; } 5695if ${ac_cv_prog_STRIP+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 if test -n "$STRIP"; then 5699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5700else 5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5702for as_dir in $PATH 5703do 5704 IFS=$as_save_IFS 5705 test -z "$as_dir" && as_dir=. 5706 for ac_exec_ext in '' $ac_executable_extensions; do 5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5708 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5710 break 2 5711 fi 5712done 5713 done 5714IFS=$as_save_IFS 5715 5716fi 5717fi 5718STRIP=$ac_cv_prog_STRIP 5719if test -n "$STRIP"; then 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5721$as_echo "$STRIP" >&6; } 5722else 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5724$as_echo "no" >&6; } 5725fi 5726 5727 5728fi 5729if test -z "$ac_cv_prog_STRIP"; then 5730 ac_ct_STRIP=$STRIP 5731 # Extract the first word of "strip", so it can be a program name with args. 5732set dummy strip; ac_word=$2 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5734$as_echo_n "checking for $ac_word... " >&6; } 5735if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 if test -n "$ac_ct_STRIP"; then 5739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5740else 5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5742for as_dir in $PATH 5743do 5744 IFS=$as_save_IFS 5745 test -z "$as_dir" && as_dir=. 5746 for ac_exec_ext in '' $ac_executable_extensions; do 5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5748 ac_cv_prog_ac_ct_STRIP="strip" 5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5750 break 2 5751 fi 5752done 5753 done 5754IFS=$as_save_IFS 5755 5756fi 5757fi 5758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5759if test -n "$ac_ct_STRIP"; then 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5761$as_echo "$ac_ct_STRIP" >&6; } 5762else 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5764$as_echo "no" >&6; } 5765fi 5766 5767 if test "x$ac_ct_STRIP" = x; then 5768 STRIP=":" 5769 else 5770 case $cross_compiling:$ac_tool_warned in 5771yes:) 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5774ac_tool_warned=yes ;; 5775esac 5776 STRIP=$ac_ct_STRIP 5777 fi 5778else 5779 STRIP="$ac_cv_prog_STRIP" 5780fi 5781 5782test -z "$STRIP" && STRIP=: 5783 5784 5785 5786 5787 5788 5789if test -n "$ac_tool_prefix"; then 5790 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5791set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5793$as_echo_n "checking for $ac_word... " >&6; } 5794if ${ac_cv_prog_RANLIB+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 if test -n "$RANLIB"; then 5798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5799else 5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5801for as_dir in $PATH 5802do 5803 IFS=$as_save_IFS 5804 test -z "$as_dir" && as_dir=. 5805 for ac_exec_ext in '' $ac_executable_extensions; do 5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5807 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5809 break 2 5810 fi 5811done 5812 done 5813IFS=$as_save_IFS 5814 5815fi 5816fi 5817RANLIB=$ac_cv_prog_RANLIB 5818if test -n "$RANLIB"; then 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5820$as_echo "$RANLIB" >&6; } 5821else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5823$as_echo "no" >&6; } 5824fi 5825 5826 5827fi 5828if test -z "$ac_cv_prog_RANLIB"; then 5829 ac_ct_RANLIB=$RANLIB 5830 # Extract the first word of "ranlib", so it can be a program name with args. 5831set dummy ranlib; ac_word=$2 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5833$as_echo_n "checking for $ac_word... " >&6; } 5834if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 if test -n "$ac_ct_RANLIB"; then 5838 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5839else 5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5841for as_dir in $PATH 5842do 5843 IFS=$as_save_IFS 5844 test -z "$as_dir" && as_dir=. 5845 for ac_exec_ext in '' $ac_executable_extensions; do 5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5847 ac_cv_prog_ac_ct_RANLIB="ranlib" 5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5849 break 2 5850 fi 5851done 5852 done 5853IFS=$as_save_IFS 5854 5855fi 5856fi 5857ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5858if test -n "$ac_ct_RANLIB"; then 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5860$as_echo "$ac_ct_RANLIB" >&6; } 5861else 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5863$as_echo "no" >&6; } 5864fi 5865 5866 if test "x$ac_ct_RANLIB" = x; then 5867 RANLIB=":" 5868 else 5869 case $cross_compiling:$ac_tool_warned in 5870yes:) 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5873ac_tool_warned=yes ;; 5874esac 5875 RANLIB=$ac_ct_RANLIB 5876 fi 5877else 5878 RANLIB="$ac_cv_prog_RANLIB" 5879fi 5880 5881test -z "$RANLIB" && RANLIB=: 5882 5883 5884 5885 5886 5887 5888# Determine commands to create old-style static archives. 5889old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5890old_postinstall_cmds='chmod 644 $oldlib' 5891old_postuninstall_cmds= 5892 5893if test -n "$RANLIB"; then 5894 case $host_os in 5895 openbsd*) 5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5897 ;; 5898 *) 5899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5900 ;; 5901 esac 5902 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5903fi 5904 5905case $host_os in 5906 darwin*) 5907 lock_old_archive_extraction=yes ;; 5908 *) 5909 lock_old_archive_extraction=no ;; 5910esac 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950# If no C compiler was specified, use CC. 5951LTCC=${LTCC-"$CC"} 5952 5953# If no C compiler flags were specified, use CFLAGS. 5954LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5955 5956# Allow CC to be a program name with arguments. 5957compiler=$CC 5958 5959 5960# Check for command to grab the raw symbol name followed by C symbol from nm. 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5962$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5963if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 5967# These are sane defaults that work on at least a few old systems. 5968# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5969 5970# Character class describing NM global symbol codes. 5971symcode='[BCDEGRST]' 5972 5973# Regexp to match symbols that can be accessed directly from C. 5974sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5975 5976# Define system-specific variables. 5977case $host_os in 5978aix*) 5979 symcode='[BCDT]' 5980 ;; 5981cygwin* | mingw* | pw32* | cegcc*) 5982 symcode='[ABCDGISTW]' 5983 ;; 5984hpux*) 5985 if test "$host_cpu" = ia64; then 5986 symcode='[ABCDEGRST]' 5987 fi 5988 ;; 5989irix* | nonstopux*) 5990 symcode='[BCDEGRST]' 5991 ;; 5992osf*) 5993 symcode='[BCDEGQRST]' 5994 ;; 5995solaris*) 5996 symcode='[BDRT]' 5997 ;; 5998sco3.2v5*) 5999 symcode='[DT]' 6000 ;; 6001sysv4.2uw2*) 6002 symcode='[DT]' 6003 ;; 6004sysv5* | sco5v6* | unixware* | OpenUNIX*) 6005 symcode='[ABDT]' 6006 ;; 6007sysv4) 6008 symcode='[DFNSTU]' 6009 ;; 6010esac 6011 6012# If we're using GNU nm, then use its standard symbol codes. 6013case `$NM -V 2>&1` in 6014*GNU* | *'with BFD'*) 6015 symcode='[ABCDGIRSTW]' ;; 6016esac 6017 6018# Transform an extracted symbol line into a proper C declaration. 6019# Some systems (esp. on ia64) link data and code symbols differently, 6020# so use this general approach. 6021lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6022 6023# Transform an extracted symbol line into symbol name and symbol address 6024lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6025lt_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'" 6026 6027# Handle CRLF in mingw tool chain 6028opt_cr= 6029case $build_os in 6030mingw*) 6031 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6032 ;; 6033esac 6034 6035# Try without a prefix underscore, then with it. 6036for ac_symprfx in "" "_"; do 6037 6038 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6039 symxfrm="\\1 $ac_symprfx\\2 \\2" 6040 6041 # Write the raw and C identifiers. 6042 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6043 # Fake it for dumpbin and say T for any non-static function 6044 # and D for any global variable. 6045 # Also find C++ and __fastcall symbols from MSVC++, 6046 # which start with @ or ?. 6047 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6048" {last_section=section; section=\$ 3};"\ 6049" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6050" \$ 0!~/External *\|/{next};"\ 6051" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6052" {if(hide[section]) next};"\ 6053" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6054" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6055" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6056" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6057" ' prfx=^$ac_symprfx" 6058 else 6059 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6060 fi 6061 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6062 6063 # Check to see that the pipe works correctly. 6064 pipe_works=no 6065 6066 rm -f conftest* 6067 cat > conftest.$ac_ext <<_LT_EOF 6068#ifdef __cplusplus 6069extern "C" { 6070#endif 6071char nm_test_var; 6072void nm_test_func(void); 6073void nm_test_func(void){} 6074#ifdef __cplusplus 6075} 6076#endif 6077int main(){nm_test_var='a';nm_test_func();return(0);} 6078_LT_EOF 6079 6080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6081 (eval $ac_compile) 2>&5 6082 ac_status=$? 6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6084 test $ac_status = 0; }; then 6085 # Now try to grab the symbols. 6086 nlist=conftest.nm 6087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6088 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6089 ac_status=$? 6090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6091 test $ac_status = 0; } && test -s "$nlist"; then 6092 # Try sorting and uniquifying the output. 6093 if sort "$nlist" | uniq > "$nlist"T; then 6094 mv -f "$nlist"T "$nlist" 6095 else 6096 rm -f "$nlist"T 6097 fi 6098 6099 # Make sure that we snagged all the symbols we need. 6100 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6101 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6102 cat <<_LT_EOF > conftest.$ac_ext 6103/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6104#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6105/* DATA imports from DLLs on WIN32 con't be const, because runtime 6106 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6107# define LT_DLSYM_CONST 6108#elif defined(__osf__) 6109/* This system does not cope well with relocations in const data. */ 6110# define LT_DLSYM_CONST 6111#else 6112# define LT_DLSYM_CONST const 6113#endif 6114 6115#ifdef __cplusplus 6116extern "C" { 6117#endif 6118 6119_LT_EOF 6120 # Now generate the symbol file. 6121 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6122 6123 cat <<_LT_EOF >> conftest.$ac_ext 6124 6125/* The mapping between symbol names and symbols. */ 6126LT_DLSYM_CONST struct { 6127 const char *name; 6128 void *address; 6129} 6130lt__PROGRAM__LTX_preloaded_symbols[] = 6131{ 6132 { "@PROGRAM@", (void *) 0 }, 6133_LT_EOF 6134 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6135 cat <<\_LT_EOF >> conftest.$ac_ext 6136 {0, (void *) 0} 6137}; 6138 6139/* This works around a problem in FreeBSD linker */ 6140#ifdef FREEBSD_WORKAROUND 6141static const void *lt_preloaded_setup() { 6142 return lt__PROGRAM__LTX_preloaded_symbols; 6143} 6144#endif 6145 6146#ifdef __cplusplus 6147} 6148#endif 6149_LT_EOF 6150 # Now try linking the two files. 6151 mv conftest.$ac_objext conftstm.$ac_objext 6152 lt_globsym_save_LIBS=$LIBS 6153 lt_globsym_save_CFLAGS=$CFLAGS 6154 LIBS="conftstm.$ac_objext" 6155 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6157 (eval $ac_link) 2>&5 6158 ac_status=$? 6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6160 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6161 pipe_works=yes 6162 fi 6163 LIBS=$lt_globsym_save_LIBS 6164 CFLAGS=$lt_globsym_save_CFLAGS 6165 else 6166 echo "cannot find nm_test_func in $nlist" >&5 6167 fi 6168 else 6169 echo "cannot find nm_test_var in $nlist" >&5 6170 fi 6171 else 6172 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6173 fi 6174 else 6175 echo "$progname: failed program was:" >&5 6176 cat conftest.$ac_ext >&5 6177 fi 6178 rm -rf conftest* conftst* 6179 6180 # Do not use the global_symbol_pipe unless it works. 6181 if test "$pipe_works" = yes; then 6182 break 6183 else 6184 lt_cv_sys_global_symbol_pipe= 6185 fi 6186done 6187 6188fi 6189 6190if test -z "$lt_cv_sys_global_symbol_pipe"; then 6191 lt_cv_sys_global_symbol_to_cdecl= 6192fi 6193if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6195$as_echo "failed" >&6; } 6196else 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6198$as_echo "ok" >&6; } 6199fi 6200 6201# Response file support. 6202if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6203 nm_file_list_spec='@' 6204elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6205 nm_file_list_spec='@' 6206fi 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6235$as_echo_n "checking for sysroot... " >&6; } 6236 6237# Check whether --with-sysroot was given. 6238if test "${with_sysroot+set}" = set; then : 6239 withval=$with_sysroot; 6240else 6241 with_sysroot=no 6242fi 6243 6244 6245lt_sysroot= 6246case ${with_sysroot} in #( 6247 yes) 6248 if test "$GCC" = yes; then 6249 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6250 fi 6251 ;; #( 6252 /*) 6253 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6254 ;; #( 6255 no|'') 6256 ;; #( 6257 *) 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6259$as_echo "${with_sysroot}" >&6; } 6260 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6261 ;; 6262esac 6263 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6265$as_echo "${lt_sysroot:-no}" >&6; } 6266 6267 6268 6269 6270 6271# Check whether --enable-libtool-lock was given. 6272if test "${enable_libtool_lock+set}" = set; then : 6273 enableval=$enable_libtool_lock; 6274fi 6275 6276test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6277 6278# Some flags need to be propagated to the compiler or linker for good 6279# libtool support. 6280case $host in 6281ia64-*-hpux*) 6282 # Find out which ABI we are using. 6283 echo 'int i;' > conftest.$ac_ext 6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6285 (eval $ac_compile) 2>&5 6286 ac_status=$? 6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6288 test $ac_status = 0; }; then 6289 case `/usr/bin/file conftest.$ac_objext` in 6290 *ELF-32*) 6291 HPUX_IA64_MODE="32" 6292 ;; 6293 *ELF-64*) 6294 HPUX_IA64_MODE="64" 6295 ;; 6296 esac 6297 fi 6298 rm -rf conftest* 6299 ;; 6300*-*-irix6*) 6301 # Find out which ABI we are using. 6302 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6304 (eval $ac_compile) 2>&5 6305 ac_status=$? 6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6307 test $ac_status = 0; }; then 6308 if test "$lt_cv_prog_gnu_ld" = yes; then 6309 case `/usr/bin/file conftest.$ac_objext` in 6310 *32-bit*) 6311 LD="${LD-ld} -melf32bsmip" 6312 ;; 6313 *N32*) 6314 LD="${LD-ld} -melf32bmipn32" 6315 ;; 6316 *64-bit*) 6317 LD="${LD-ld} -melf64bmip" 6318 ;; 6319 esac 6320 else 6321 case `/usr/bin/file conftest.$ac_objext` in 6322 *32-bit*) 6323 LD="${LD-ld} -32" 6324 ;; 6325 *N32*) 6326 LD="${LD-ld} -n32" 6327 ;; 6328 *64-bit*) 6329 LD="${LD-ld} -64" 6330 ;; 6331 esac 6332 fi 6333 fi 6334 rm -rf conftest* 6335 ;; 6336 6337x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6338s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6339 # Find out which ABI we are using. 6340 echo 'int i;' > conftest.$ac_ext 6341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6342 (eval $ac_compile) 2>&5 6343 ac_status=$? 6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6345 test $ac_status = 0; }; then 6346 case `/usr/bin/file conftest.o` in 6347 *32-bit*) 6348 case $host in 6349 x86_64-*kfreebsd*-gnu) 6350 LD="${LD-ld} -m elf_i386_fbsd" 6351 ;; 6352 x86_64-*linux*) 6353 LD="${LD-ld} -m elf_i386" 6354 ;; 6355 ppc64-*linux*|powerpc64-*linux*) 6356 LD="${LD-ld} -m elf32ppclinux" 6357 ;; 6358 s390x-*linux*) 6359 LD="${LD-ld} -m elf_s390" 6360 ;; 6361 sparc64-*linux*) 6362 LD="${LD-ld} -m elf32_sparc" 6363 ;; 6364 esac 6365 ;; 6366 *64-bit*) 6367 case $host in 6368 x86_64-*kfreebsd*-gnu) 6369 LD="${LD-ld} -m elf_x86_64_fbsd" 6370 ;; 6371 x86_64-*linux*) 6372 LD="${LD-ld} -m elf_x86_64" 6373 ;; 6374 ppc*-*linux*|powerpc*-*linux*) 6375 LD="${LD-ld} -m elf64ppc" 6376 ;; 6377 s390*-*linux*|s390*-*tpf*) 6378 LD="${LD-ld} -m elf64_s390" 6379 ;; 6380 sparc*-*linux*) 6381 LD="${LD-ld} -m elf64_sparc" 6382 ;; 6383 esac 6384 ;; 6385 esac 6386 fi 6387 rm -rf conftest* 6388 ;; 6389 6390*-*-sco3.2v5*) 6391 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6392 SAVE_CFLAGS="$CFLAGS" 6393 CFLAGS="$CFLAGS -belf" 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6395$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6396if ${lt_cv_cc_needs_belf+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 ac_ext=c 6400ac_cpp='$CPP $CPPFLAGS' 6401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6403ac_compiler_gnu=$ac_cv_c_compiler_gnu 6404 6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407 6408int 6409main () 6410{ 6411 6412 ; 6413 return 0; 6414} 6415_ACEOF 6416if ac_fn_c_try_link "$LINENO"; then : 6417 lt_cv_cc_needs_belf=yes 6418else 6419 lt_cv_cc_needs_belf=no 6420fi 6421rm -f core conftest.err conftest.$ac_objext \ 6422 conftest$ac_exeext conftest.$ac_ext 6423 ac_ext=c 6424ac_cpp='$CPP $CPPFLAGS' 6425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6427ac_compiler_gnu=$ac_cv_c_compiler_gnu 6428 6429fi 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6431$as_echo "$lt_cv_cc_needs_belf" >&6; } 6432 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6433 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6434 CFLAGS="$SAVE_CFLAGS" 6435 fi 6436 ;; 6437sparc*-*solaris*) 6438 # Find out which ABI we are using. 6439 echo 'int i;' > conftest.$ac_ext 6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6441 (eval $ac_compile) 2>&5 6442 ac_status=$? 6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6444 test $ac_status = 0; }; then 6445 case `/usr/bin/file conftest.o` in 6446 *64-bit*) 6447 case $lt_cv_prog_gnu_ld in 6448 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6449 *) 6450 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6451 LD="${LD-ld} -64" 6452 fi 6453 ;; 6454 esac 6455 ;; 6456 esac 6457 fi 6458 rm -rf conftest* 6459 ;; 6460esac 6461 6462need_locks="$enable_libtool_lock" 6463 6464if test -n "$ac_tool_prefix"; then 6465 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6466set dummy ${ac_tool_prefix}mt; ac_word=$2 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6468$as_echo_n "checking for $ac_word... " >&6; } 6469if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 if test -n "$MANIFEST_TOOL"; then 6473 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6474else 6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6476for as_dir in $PATH 6477do 6478 IFS=$as_save_IFS 6479 test -z "$as_dir" && as_dir=. 6480 for ac_exec_ext in '' $ac_executable_extensions; do 6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6482 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6484 break 2 6485 fi 6486done 6487 done 6488IFS=$as_save_IFS 6489 6490fi 6491fi 6492MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6493if test -n "$MANIFEST_TOOL"; then 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6495$as_echo "$MANIFEST_TOOL" >&6; } 6496else 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6498$as_echo "no" >&6; } 6499fi 6500 6501 6502fi 6503if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6504 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6505 # Extract the first word of "mt", so it can be a program name with args. 6506set dummy mt; ac_word=$2 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6508$as_echo_n "checking for $ac_word... " >&6; } 6509if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6510 $as_echo_n "(cached) " >&6 6511else 6512 if test -n "$ac_ct_MANIFEST_TOOL"; then 6513 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6514else 6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516for as_dir in $PATH 6517do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_exec_ext in '' $ac_executable_extensions; do 6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6522 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6524 break 2 6525 fi 6526done 6527 done 6528IFS=$as_save_IFS 6529 6530fi 6531fi 6532ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6533if test -n "$ac_ct_MANIFEST_TOOL"; then 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6535$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6536else 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6538$as_echo "no" >&6; } 6539fi 6540 6541 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6542 MANIFEST_TOOL=":" 6543 else 6544 case $cross_compiling:$ac_tool_warned in 6545yes:) 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6548ac_tool_warned=yes ;; 6549esac 6550 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6551 fi 6552else 6553 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6554fi 6555 6556test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6558$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6559if ${lt_cv_path_mainfest_tool+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 lt_cv_path_mainfest_tool=no 6563 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6564 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6565 cat conftest.err >&5 6566 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6567 lt_cv_path_mainfest_tool=yes 6568 fi 6569 rm -f conftest* 6570fi 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6572$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6573if test "x$lt_cv_path_mainfest_tool" != xyes; then 6574 MANIFEST_TOOL=: 6575fi 6576 6577 6578 6579 6580 6581 6582 case $host_os in 6583 rhapsody* | darwin*) 6584 if test -n "$ac_tool_prefix"; then 6585 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6586set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6588$as_echo_n "checking for $ac_word... " >&6; } 6589if ${ac_cv_prog_DSYMUTIL+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 if test -n "$DSYMUTIL"; then 6593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6594else 6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6596for as_dir in $PATH 6597do 6598 IFS=$as_save_IFS 6599 test -z "$as_dir" && as_dir=. 6600 for ac_exec_ext in '' $ac_executable_extensions; do 6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6602 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6604 break 2 6605 fi 6606done 6607 done 6608IFS=$as_save_IFS 6609 6610fi 6611fi 6612DSYMUTIL=$ac_cv_prog_DSYMUTIL 6613if test -n "$DSYMUTIL"; then 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6615$as_echo "$DSYMUTIL" >&6; } 6616else 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6618$as_echo "no" >&6; } 6619fi 6620 6621 6622fi 6623if test -z "$ac_cv_prog_DSYMUTIL"; then 6624 ac_ct_DSYMUTIL=$DSYMUTIL 6625 # Extract the first word of "dsymutil", so it can be a program name with args. 6626set dummy dsymutil; ac_word=$2 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6628$as_echo_n "checking for $ac_word... " >&6; } 6629if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6630 $as_echo_n "(cached) " >&6 6631else 6632 if test -n "$ac_ct_DSYMUTIL"; then 6633 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6634else 6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6636for as_dir in $PATH 6637do 6638 IFS=$as_save_IFS 6639 test -z "$as_dir" && as_dir=. 6640 for ac_exec_ext in '' $ac_executable_extensions; do 6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6644 break 2 6645 fi 6646done 6647 done 6648IFS=$as_save_IFS 6649 6650fi 6651fi 6652ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6653if test -n "$ac_ct_DSYMUTIL"; then 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6655$as_echo "$ac_ct_DSYMUTIL" >&6; } 6656else 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6658$as_echo "no" >&6; } 6659fi 6660 6661 if test "x$ac_ct_DSYMUTIL" = x; then 6662 DSYMUTIL=":" 6663 else 6664 case $cross_compiling:$ac_tool_warned in 6665yes:) 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6668ac_tool_warned=yes ;; 6669esac 6670 DSYMUTIL=$ac_ct_DSYMUTIL 6671 fi 6672else 6673 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6674fi 6675 6676 if test -n "$ac_tool_prefix"; then 6677 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6678set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6680$as_echo_n "checking for $ac_word... " >&6; } 6681if ${ac_cv_prog_NMEDIT+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 if test -n "$NMEDIT"; then 6685 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6686else 6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6688for as_dir in $PATH 6689do 6690 IFS=$as_save_IFS 6691 test -z "$as_dir" && as_dir=. 6692 for ac_exec_ext in '' $ac_executable_extensions; do 6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6694 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6696 break 2 6697 fi 6698done 6699 done 6700IFS=$as_save_IFS 6701 6702fi 6703fi 6704NMEDIT=$ac_cv_prog_NMEDIT 6705if test -n "$NMEDIT"; then 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6707$as_echo "$NMEDIT" >&6; } 6708else 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6710$as_echo "no" >&6; } 6711fi 6712 6713 6714fi 6715if test -z "$ac_cv_prog_NMEDIT"; then 6716 ac_ct_NMEDIT=$NMEDIT 6717 # Extract the first word of "nmedit", so it can be a program name with args. 6718set dummy nmedit; ac_word=$2 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6720$as_echo_n "checking for $ac_word... " >&6; } 6721if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 if test -n "$ac_ct_NMEDIT"; then 6725 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6726else 6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6728for as_dir in $PATH 6729do 6730 IFS=$as_save_IFS 6731 test -z "$as_dir" && as_dir=. 6732 for ac_exec_ext in '' $ac_executable_extensions; do 6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6734 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6736 break 2 6737 fi 6738done 6739 done 6740IFS=$as_save_IFS 6741 6742fi 6743fi 6744ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6745if test -n "$ac_ct_NMEDIT"; then 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6747$as_echo "$ac_ct_NMEDIT" >&6; } 6748else 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6750$as_echo "no" >&6; } 6751fi 6752 6753 if test "x$ac_ct_NMEDIT" = x; then 6754 NMEDIT=":" 6755 else 6756 case $cross_compiling:$ac_tool_warned in 6757yes:) 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6760ac_tool_warned=yes ;; 6761esac 6762 NMEDIT=$ac_ct_NMEDIT 6763 fi 6764else 6765 NMEDIT="$ac_cv_prog_NMEDIT" 6766fi 6767 6768 if test -n "$ac_tool_prefix"; then 6769 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6770set dummy ${ac_tool_prefix}lipo; ac_word=$2 6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6772$as_echo_n "checking for $ac_word... " >&6; } 6773if ${ac_cv_prog_LIPO+:} false; then : 6774 $as_echo_n "(cached) " >&6 6775else 6776 if test -n "$LIPO"; then 6777 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6778else 6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6780for as_dir in $PATH 6781do 6782 IFS=$as_save_IFS 6783 test -z "$as_dir" && as_dir=. 6784 for ac_exec_ext in '' $ac_executable_extensions; do 6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6786 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6788 break 2 6789 fi 6790done 6791 done 6792IFS=$as_save_IFS 6793 6794fi 6795fi 6796LIPO=$ac_cv_prog_LIPO 6797if test -n "$LIPO"; then 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6799$as_echo "$LIPO" >&6; } 6800else 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6802$as_echo "no" >&6; } 6803fi 6804 6805 6806fi 6807if test -z "$ac_cv_prog_LIPO"; then 6808 ac_ct_LIPO=$LIPO 6809 # Extract the first word of "lipo", so it can be a program name with args. 6810set dummy lipo; ac_word=$2 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6812$as_echo_n "checking for $ac_word... " >&6; } 6813if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 if test -n "$ac_ct_LIPO"; then 6817 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6818else 6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6820for as_dir in $PATH 6821do 6822 IFS=$as_save_IFS 6823 test -z "$as_dir" && as_dir=. 6824 for ac_exec_ext in '' $ac_executable_extensions; do 6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6826 ac_cv_prog_ac_ct_LIPO="lipo" 6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6828 break 2 6829 fi 6830done 6831 done 6832IFS=$as_save_IFS 6833 6834fi 6835fi 6836ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6837if test -n "$ac_ct_LIPO"; then 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6839$as_echo "$ac_ct_LIPO" >&6; } 6840else 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6842$as_echo "no" >&6; } 6843fi 6844 6845 if test "x$ac_ct_LIPO" = x; then 6846 LIPO=":" 6847 else 6848 case $cross_compiling:$ac_tool_warned in 6849yes:) 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6852ac_tool_warned=yes ;; 6853esac 6854 LIPO=$ac_ct_LIPO 6855 fi 6856else 6857 LIPO="$ac_cv_prog_LIPO" 6858fi 6859 6860 if test -n "$ac_tool_prefix"; then 6861 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6862set dummy ${ac_tool_prefix}otool; ac_word=$2 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6864$as_echo_n "checking for $ac_word... " >&6; } 6865if ${ac_cv_prog_OTOOL+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 if test -n "$OTOOL"; then 6869 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6870else 6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6872for as_dir in $PATH 6873do 6874 IFS=$as_save_IFS 6875 test -z "$as_dir" && as_dir=. 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6878 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882done 6883 done 6884IFS=$as_save_IFS 6885 6886fi 6887fi 6888OTOOL=$ac_cv_prog_OTOOL 6889if test -n "$OTOOL"; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6891$as_echo "$OTOOL" >&6; } 6892else 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895fi 6896 6897 6898fi 6899if test -z "$ac_cv_prog_OTOOL"; then 6900 ac_ct_OTOOL=$OTOOL 6901 # Extract the first word of "otool", so it can be a program name with args. 6902set dummy otool; ac_word=$2 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6904$as_echo_n "checking for $ac_word... " >&6; } 6905if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6906 $as_echo_n "(cached) " >&6 6907else 6908 if test -n "$ac_ct_OTOOL"; then 6909 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6910else 6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6912for as_dir in $PATH 6913do 6914 IFS=$as_save_IFS 6915 test -z "$as_dir" && as_dir=. 6916 for ac_exec_ext in '' $ac_executable_extensions; do 6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6918 ac_cv_prog_ac_ct_OTOOL="otool" 6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6920 break 2 6921 fi 6922done 6923 done 6924IFS=$as_save_IFS 6925 6926fi 6927fi 6928ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6929if test -n "$ac_ct_OTOOL"; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6931$as_echo "$ac_ct_OTOOL" >&6; } 6932else 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934$as_echo "no" >&6; } 6935fi 6936 6937 if test "x$ac_ct_OTOOL" = x; then 6938 OTOOL=":" 6939 else 6940 case $cross_compiling:$ac_tool_warned in 6941yes:) 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6944ac_tool_warned=yes ;; 6945esac 6946 OTOOL=$ac_ct_OTOOL 6947 fi 6948else 6949 OTOOL="$ac_cv_prog_OTOOL" 6950fi 6951 6952 if test -n "$ac_tool_prefix"; then 6953 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6954set dummy ${ac_tool_prefix}otool64; ac_word=$2 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6956$as_echo_n "checking for $ac_word... " >&6; } 6957if ${ac_cv_prog_OTOOL64+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959else 6960 if test -n "$OTOOL64"; then 6961 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6962else 6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6964for as_dir in $PATH 6965do 6966 IFS=$as_save_IFS 6967 test -z "$as_dir" && as_dir=. 6968 for ac_exec_ext in '' $ac_executable_extensions; do 6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6970 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6972 break 2 6973 fi 6974done 6975 done 6976IFS=$as_save_IFS 6977 6978fi 6979fi 6980OTOOL64=$ac_cv_prog_OTOOL64 6981if test -n "$OTOOL64"; then 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6983$as_echo "$OTOOL64" >&6; } 6984else 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6986$as_echo "no" >&6; } 6987fi 6988 6989 6990fi 6991if test -z "$ac_cv_prog_OTOOL64"; then 6992 ac_ct_OTOOL64=$OTOOL64 6993 # Extract the first word of "otool64", so it can be a program name with args. 6994set dummy otool64; ac_word=$2 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6996$as_echo_n "checking for $ac_word... " >&6; } 6997if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 if test -n "$ac_ct_OTOOL64"; then 7001 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7002else 7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7004for as_dir in $PATH 7005do 7006 IFS=$as_save_IFS 7007 test -z "$as_dir" && as_dir=. 7008 for ac_exec_ext in '' $ac_executable_extensions; do 7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7010 ac_cv_prog_ac_ct_OTOOL64="otool64" 7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7012 break 2 7013 fi 7014done 7015 done 7016IFS=$as_save_IFS 7017 7018fi 7019fi 7020ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7021if test -n "$ac_ct_OTOOL64"; then 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7023$as_echo "$ac_ct_OTOOL64" >&6; } 7024else 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7026$as_echo "no" >&6; } 7027fi 7028 7029 if test "x$ac_ct_OTOOL64" = x; then 7030 OTOOL64=":" 7031 else 7032 case $cross_compiling:$ac_tool_warned in 7033yes:) 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7036ac_tool_warned=yes ;; 7037esac 7038 OTOOL64=$ac_ct_OTOOL64 7039 fi 7040else 7041 OTOOL64="$ac_cv_prog_OTOOL64" 7042fi 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7071$as_echo_n "checking for -single_module linker flag... " >&6; } 7072if ${lt_cv_apple_cc_single_mod+:} false; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 lt_cv_apple_cc_single_mod=no 7076 if test -z "${LT_MULTI_MODULE}"; then 7077 # By default we will add the -single_module flag. You can override 7078 # by either setting the environment variable LT_MULTI_MODULE 7079 # non-empty at configure time, or by adding -multi_module to the 7080 # link flags. 7081 rm -rf libconftest.dylib* 7082 echo "int foo(void){return 1;}" > conftest.c 7083 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7084-dynamiclib -Wl,-single_module conftest.c" >&5 7085 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7086 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7087 _lt_result=$? 7088 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7089 lt_cv_apple_cc_single_mod=yes 7090 else 7091 cat conftest.err >&5 7092 fi 7093 rm -rf libconftest.dylib* 7094 rm -f conftest.* 7095 fi 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7098$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7100$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7101if ${lt_cv_ld_exported_symbols_list+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 lt_cv_ld_exported_symbols_list=no 7105 save_LDFLAGS=$LDFLAGS 7106 echo "_main" > conftest.sym 7107 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7109/* end confdefs.h. */ 7110 7111int 7112main () 7113{ 7114 7115 ; 7116 return 0; 7117} 7118_ACEOF 7119if ac_fn_c_try_link "$LINENO"; then : 7120 lt_cv_ld_exported_symbols_list=yes 7121else 7122 lt_cv_ld_exported_symbols_list=no 7123fi 7124rm -f core conftest.err conftest.$ac_objext \ 7125 conftest$ac_exeext conftest.$ac_ext 7126 LDFLAGS="$save_LDFLAGS" 7127 7128fi 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7130$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7132$as_echo_n "checking for -force_load linker flag... " >&6; } 7133if ${lt_cv_ld_force_load+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 lt_cv_ld_force_load=no 7137 cat > conftest.c << _LT_EOF 7138int forced_loaded() { return 2;} 7139_LT_EOF 7140 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7141 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7142 echo "$AR cru libconftest.a conftest.o" >&5 7143 $AR cru libconftest.a conftest.o 2>&5 7144 echo "$RANLIB libconftest.a" >&5 7145 $RANLIB libconftest.a 2>&5 7146 cat > conftest.c << _LT_EOF 7147int main() { return 0;} 7148_LT_EOF 7149 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7150 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7151 _lt_result=$? 7152 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7153 lt_cv_ld_force_load=yes 7154 else 7155 cat conftest.err >&5 7156 fi 7157 rm -f conftest.err libconftest.a conftest conftest.c 7158 rm -rf conftest.dSYM 7159 7160fi 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7162$as_echo "$lt_cv_ld_force_load" >&6; } 7163 case $host_os in 7164 rhapsody* | darwin1.[012]) 7165 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7166 darwin1.*) 7167 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7168 darwin*) # darwin 5.x on 7169 # if running on 10.5 or later, the deployment target defaults 7170 # to the OS version, if on x86, and 10.4, the deployment 7171 # target defaults to 10.4. Don't you love it? 7172 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7173 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7174 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7175 10.[012]*) 7176 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7177 10.*) 7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7179 esac 7180 ;; 7181 esac 7182 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7183 _lt_dar_single_mod='$single_module' 7184 fi 7185 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7186 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7187 else 7188 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7189 fi 7190 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7191 _lt_dsymutil='~$DSYMUTIL $lib || :' 7192 else 7193 _lt_dsymutil= 7194 fi 7195 ;; 7196 esac 7197 7198ac_ext=c 7199ac_cpp='$CPP $CPPFLAGS' 7200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7202ac_compiler_gnu=$ac_cv_c_compiler_gnu 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7204$as_echo_n "checking how to run the C preprocessor... " >&6; } 7205# On Suns, sometimes $CPP names a directory. 7206if test -n "$CPP" && test -d "$CPP"; then 7207 CPP= 7208fi 7209if test -z "$CPP"; then 7210 if ${ac_cv_prog_CPP+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 # Double quotes because CPP needs to be expanded 7214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7215 do 7216 ac_preproc_ok=false 7217for ac_c_preproc_warn_flag in '' yes 7218do 7219 # Use a header file that comes with gcc, so configuring glibc 7220 # with a fresh cross-compiler works. 7221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7222 # <limits.h> exists even on freestanding compilers. 7223 # On the NeXT, cc -E runs the code through the compiler's parser, 7224 # not just through cpp. "Syntax error" is here to catch this case. 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7226/* end confdefs.h. */ 7227#ifdef __STDC__ 7228# include <limits.h> 7229#else 7230# include <assert.h> 7231#endif 7232 Syntax error 7233_ACEOF 7234if ac_fn_c_try_cpp "$LINENO"; then : 7235 7236else 7237 # Broken: fails on valid input. 7238continue 7239fi 7240rm -f conftest.err conftest.i conftest.$ac_ext 7241 7242 # OK, works on sane cases. Now check whether nonexistent headers 7243 # can be detected and how. 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246#include <ac_nonexistent.h> 7247_ACEOF 7248if ac_fn_c_try_cpp "$LINENO"; then : 7249 # Broken: success on invalid input. 7250continue 7251else 7252 # Passes both tests. 7253ac_preproc_ok=: 7254break 7255fi 7256rm -f conftest.err conftest.i conftest.$ac_ext 7257 7258done 7259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7260rm -f conftest.i conftest.err conftest.$ac_ext 7261if $ac_preproc_ok; then : 7262 break 7263fi 7264 7265 done 7266 ac_cv_prog_CPP=$CPP 7267 7268fi 7269 CPP=$ac_cv_prog_CPP 7270else 7271 ac_cv_prog_CPP=$CPP 7272fi 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7274$as_echo "$CPP" >&6; } 7275ac_preproc_ok=false 7276for ac_c_preproc_warn_flag in '' yes 7277do 7278 # Use a header file that comes with gcc, so configuring glibc 7279 # with a fresh cross-compiler works. 7280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7281 # <limits.h> exists even on freestanding compilers. 7282 # On the NeXT, cc -E runs the code through the compiler's parser, 7283 # not just through cpp. "Syntax error" is here to catch this case. 7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7285/* end confdefs.h. */ 7286#ifdef __STDC__ 7287# include <limits.h> 7288#else 7289# include <assert.h> 7290#endif 7291 Syntax error 7292_ACEOF 7293if ac_fn_c_try_cpp "$LINENO"; then : 7294 7295else 7296 # Broken: fails on valid input. 7297continue 7298fi 7299rm -f conftest.err conftest.i conftest.$ac_ext 7300 7301 # OK, works on sane cases. Now check whether nonexistent headers 7302 # can be detected and how. 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304/* end confdefs.h. */ 7305#include <ac_nonexistent.h> 7306_ACEOF 7307if ac_fn_c_try_cpp "$LINENO"; then : 7308 # Broken: success on invalid input. 7309continue 7310else 7311 # Passes both tests. 7312ac_preproc_ok=: 7313break 7314fi 7315rm -f conftest.err conftest.i conftest.$ac_ext 7316 7317done 7318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7319rm -f conftest.i conftest.err conftest.$ac_ext 7320if $ac_preproc_ok; then : 7321 7322else 7323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7325as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7326See \`config.log' for more details" "$LINENO" 5; } 7327fi 7328 7329ac_ext=c 7330ac_cpp='$CPP $CPPFLAGS' 7331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7333ac_compiler_gnu=$ac_cv_c_compiler_gnu 7334 7335 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7337$as_echo_n "checking for ANSI C header files... " >&6; } 7338if ${ac_cv_header_stdc+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343#include <stdlib.h> 7344#include <stdarg.h> 7345#include <string.h> 7346#include <float.h> 7347 7348int 7349main () 7350{ 7351 7352 ; 7353 return 0; 7354} 7355_ACEOF 7356if ac_fn_c_try_compile "$LINENO"; then : 7357 ac_cv_header_stdc=yes 7358else 7359 ac_cv_header_stdc=no 7360fi 7361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7362 7363if test $ac_cv_header_stdc = yes; then 7364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367#include <string.h> 7368 7369_ACEOF 7370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7371 $EGREP "memchr" >/dev/null 2>&1; then : 7372 7373else 7374 ac_cv_header_stdc=no 7375fi 7376rm -f conftest* 7377 7378fi 7379 7380if test $ac_cv_header_stdc = yes; then 7381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384#include <stdlib.h> 7385 7386_ACEOF 7387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7388 $EGREP "free" >/dev/null 2>&1; then : 7389 7390else 7391 ac_cv_header_stdc=no 7392fi 7393rm -f conftest* 7394 7395fi 7396 7397if test $ac_cv_header_stdc = yes; then 7398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7399 if test "$cross_compiling" = yes; then : 7400 : 7401else 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404#include <ctype.h> 7405#include <stdlib.h> 7406#if ((' ' & 0x0FF) == 0x020) 7407# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7408# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7409#else 7410# define ISLOWER(c) \ 7411 (('a' <= (c) && (c) <= 'i') \ 7412 || ('j' <= (c) && (c) <= 'r') \ 7413 || ('s' <= (c) && (c) <= 'z')) 7414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7415#endif 7416 7417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7418int 7419main () 7420{ 7421 int i; 7422 for (i = 0; i < 256; i++) 7423 if (XOR (islower (i), ISLOWER (i)) 7424 || toupper (i) != TOUPPER (i)) 7425 return 2; 7426 return 0; 7427} 7428_ACEOF 7429if ac_fn_c_try_run "$LINENO"; then : 7430 7431else 7432 ac_cv_header_stdc=no 7433fi 7434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7435 conftest.$ac_objext conftest.beam conftest.$ac_ext 7436fi 7437 7438fi 7439fi 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7441$as_echo "$ac_cv_header_stdc" >&6; } 7442if test $ac_cv_header_stdc = yes; then 7443 7444$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7445 7446fi 7447 7448# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7449for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7450 inttypes.h stdint.h unistd.h 7451do : 7452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7453ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7454" 7455if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7456 cat >>confdefs.h <<_ACEOF 7457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7458_ACEOF 7459 7460fi 7461 7462done 7463 7464 7465for ac_header in dlfcn.h 7466do : 7467 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7468" 7469if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7470 cat >>confdefs.h <<_ACEOF 7471#define HAVE_DLFCN_H 1 7472_ACEOF 7473 7474fi 7475 7476done 7477 7478 7479 7480 7481 7482# Set options 7483 7484 7485 7486 enable_dlopen=no 7487 7488 7489 enable_win32_dll=no 7490 7491 7492 # Check whether --enable-shared was given. 7493if test "${enable_shared+set}" = set; then : 7494 enableval=$enable_shared; p=${PACKAGE-default} 7495 case $enableval in 7496 yes) enable_shared=yes ;; 7497 no) enable_shared=no ;; 7498 *) 7499 enable_shared=no 7500 # Look at the argument we got. We use all the common list separators. 7501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7502 for pkg in $enableval; do 7503 IFS="$lt_save_ifs" 7504 if test "X$pkg" = "X$p"; then 7505 enable_shared=yes 7506 fi 7507 done 7508 IFS="$lt_save_ifs" 7509 ;; 7510 esac 7511else 7512 enable_shared=yes 7513fi 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 # Check whether --enable-static was given. 7524if test "${enable_static+set}" = set; then : 7525 enableval=$enable_static; p=${PACKAGE-default} 7526 case $enableval in 7527 yes) enable_static=yes ;; 7528 no) enable_static=no ;; 7529 *) 7530 enable_static=no 7531 # Look at the argument we got. We use all the common list separators. 7532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7533 for pkg in $enableval; do 7534 IFS="$lt_save_ifs" 7535 if test "X$pkg" = "X$p"; then 7536 enable_static=yes 7537 fi 7538 done 7539 IFS="$lt_save_ifs" 7540 ;; 7541 esac 7542else 7543 enable_static=yes 7544fi 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555# Check whether --with-pic was given. 7556if test "${with_pic+set}" = set; then : 7557 withval=$with_pic; pic_mode="$withval" 7558else 7559 pic_mode=default 7560fi 7561 7562 7563test -z "$pic_mode" && pic_mode=default 7564 7565 7566 7567 7568 7569 7570 7571 # Check whether --enable-fast-install was given. 7572if test "${enable_fast_install+set}" = set; then : 7573 enableval=$enable_fast_install; p=${PACKAGE-default} 7574 case $enableval in 7575 yes) enable_fast_install=yes ;; 7576 no) enable_fast_install=no ;; 7577 *) 7578 enable_fast_install=no 7579 # Look at the argument we got. We use all the common list separators. 7580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7581 for pkg in $enableval; do 7582 IFS="$lt_save_ifs" 7583 if test "X$pkg" = "X$p"; then 7584 enable_fast_install=yes 7585 fi 7586 done 7587 IFS="$lt_save_ifs" 7588 ;; 7589 esac 7590else 7591 enable_fast_install=yes 7592fi 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604# This can be used to rebuild libtool when needed 7605LIBTOOL_DEPS="$ltmain" 7606 7607# Always use our own libtool. 7608LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635test -z "$LN_S" && LN_S="ln -s" 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650if test -n "${ZSH_VERSION+set}" ; then 7651 setopt NO_GLOB_SUBST 7652fi 7653 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7655$as_echo_n "checking for objdir... " >&6; } 7656if ${lt_cv_objdir+:} false; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 rm -f .libs 2>/dev/null 7660mkdir .libs 2>/dev/null 7661if test -d .libs; then 7662 lt_cv_objdir=.libs 7663else 7664 # MS-DOS does not allow filenames that begin with a dot. 7665 lt_cv_objdir=_libs 7666fi 7667rmdir .libs 2>/dev/null 7668fi 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7670$as_echo "$lt_cv_objdir" >&6; } 7671objdir=$lt_cv_objdir 7672 7673 7674 7675 7676 7677cat >>confdefs.h <<_ACEOF 7678#define LT_OBJDIR "$lt_cv_objdir/" 7679_ACEOF 7680 7681 7682 7683 7684case $host_os in 7685aix3*) 7686 # AIX sometimes has problems with the GCC collect2 program. For some 7687 # reason, if we set the COLLECT_NAMES environment variable, the problems 7688 # vanish in a puff of smoke. 7689 if test "X${COLLECT_NAMES+set}" != Xset; then 7690 COLLECT_NAMES= 7691 export COLLECT_NAMES 7692 fi 7693 ;; 7694esac 7695 7696# Global variables: 7697ofile=libtool 7698can_build_shared=yes 7699 7700# All known linkers require a `.a' archive for static linking (except MSVC, 7701# which needs '.lib'). 7702libext=a 7703 7704with_gnu_ld="$lt_cv_prog_gnu_ld" 7705 7706old_CC="$CC" 7707old_CFLAGS="$CFLAGS" 7708 7709# Set sane defaults for various variables 7710test -z "$CC" && CC=cc 7711test -z "$LTCC" && LTCC=$CC 7712test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7713test -z "$LD" && LD=ld 7714test -z "$ac_objext" && ac_objext=o 7715 7716for cc_temp in $compiler""; do 7717 case $cc_temp in 7718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7720 \-*) ;; 7721 *) break;; 7722 esac 7723done 7724cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7725 7726 7727# Only perform the check for file, if the check method requires it 7728test -z "$MAGIC_CMD" && MAGIC_CMD=file 7729case $deplibs_check_method in 7730file_magic*) 7731 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7733$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7734if ${lt_cv_path_MAGIC_CMD+:} false; then : 7735 $as_echo_n "(cached) " >&6 7736else 7737 case $MAGIC_CMD in 7738[\\/*] | ?:[\\/]*) 7739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7740 ;; 7741*) 7742 lt_save_MAGIC_CMD="$MAGIC_CMD" 7743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7744 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7745 for ac_dir in $ac_dummy; do 7746 IFS="$lt_save_ifs" 7747 test -z "$ac_dir" && ac_dir=. 7748 if test -f $ac_dir/${ac_tool_prefix}file; then 7749 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7750 if test -n "$file_magic_test_file"; then 7751 case $deplibs_check_method in 7752 "file_magic "*) 7753 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7755 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7756 $EGREP "$file_magic_regex" > /dev/null; then 7757 : 7758 else 7759 cat <<_LT_EOF 1>&2 7760 7761*** Warning: the command libtool uses to detect shared libraries, 7762*** $file_magic_cmd, produces output that libtool cannot recognize. 7763*** The result is that libtool may fail to recognize shared libraries 7764*** as such. This will affect the creation of libtool libraries that 7765*** depend on shared libraries, but programs linked with such libtool 7766*** libraries will work regardless of this problem. Nevertheless, you 7767*** may want to report the problem to your system manager and/or to 7768*** bug-libtool@gnu.org 7769 7770_LT_EOF 7771 fi ;; 7772 esac 7773 fi 7774 break 7775 fi 7776 done 7777 IFS="$lt_save_ifs" 7778 MAGIC_CMD="$lt_save_MAGIC_CMD" 7779 ;; 7780esac 7781fi 7782 7783MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7784if test -n "$MAGIC_CMD"; then 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7786$as_echo "$MAGIC_CMD" >&6; } 7787else 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7789$as_echo "no" >&6; } 7790fi 7791 7792 7793 7794 7795 7796if test -z "$lt_cv_path_MAGIC_CMD"; then 7797 if test -n "$ac_tool_prefix"; then 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7799$as_echo_n "checking for file... " >&6; } 7800if ${lt_cv_path_MAGIC_CMD+:} false; then : 7801 $as_echo_n "(cached) " >&6 7802else 7803 case $MAGIC_CMD in 7804[\\/*] | ?:[\\/]*) 7805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7806 ;; 7807*) 7808 lt_save_MAGIC_CMD="$MAGIC_CMD" 7809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7811 for ac_dir in $ac_dummy; do 7812 IFS="$lt_save_ifs" 7813 test -z "$ac_dir" && ac_dir=. 7814 if test -f $ac_dir/file; then 7815 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7816 if test -n "$file_magic_test_file"; then 7817 case $deplibs_check_method in 7818 "file_magic "*) 7819 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7822 $EGREP "$file_magic_regex" > /dev/null; then 7823 : 7824 else 7825 cat <<_LT_EOF 1>&2 7826 7827*** Warning: the command libtool uses to detect shared libraries, 7828*** $file_magic_cmd, produces output that libtool cannot recognize. 7829*** The result is that libtool may fail to recognize shared libraries 7830*** as such. This will affect the creation of libtool libraries that 7831*** depend on shared libraries, but programs linked with such libtool 7832*** libraries will work regardless of this problem. Nevertheless, you 7833*** may want to report the problem to your system manager and/or to 7834*** bug-libtool@gnu.org 7835 7836_LT_EOF 7837 fi ;; 7838 esac 7839 fi 7840 break 7841 fi 7842 done 7843 IFS="$lt_save_ifs" 7844 MAGIC_CMD="$lt_save_MAGIC_CMD" 7845 ;; 7846esac 7847fi 7848 7849MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7850if test -n "$MAGIC_CMD"; then 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7852$as_echo "$MAGIC_CMD" >&6; } 7853else 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7855$as_echo "no" >&6; } 7856fi 7857 7858 7859 else 7860 MAGIC_CMD=: 7861 fi 7862fi 7863 7864 fi 7865 ;; 7866esac 7867 7868# Use C for the default configuration in the libtool script 7869 7870lt_save_CC="$CC" 7871ac_ext=c 7872ac_cpp='$CPP $CPPFLAGS' 7873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7875ac_compiler_gnu=$ac_cv_c_compiler_gnu 7876 7877 7878# Source file extension for C test sources. 7879ac_ext=c 7880 7881# Object file extension for compiled C test sources. 7882objext=o 7883objext=$objext 7884 7885# Code to be used in simple compile tests 7886lt_simple_compile_test_code="int some_variable = 0;" 7887 7888# Code to be used in simple link tests 7889lt_simple_link_test_code='int main(){return(0);}' 7890 7891 7892 7893 7894 7895 7896 7897# If no C compiler was specified, use CC. 7898LTCC=${LTCC-"$CC"} 7899 7900# If no C compiler flags were specified, use CFLAGS. 7901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7902 7903# Allow CC to be a program name with arguments. 7904compiler=$CC 7905 7906# Save the default compiler, since it gets overwritten when the other 7907# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7908compiler_DEFAULT=$CC 7909 7910# save warnings/boilerplate of simple test code 7911ac_outfile=conftest.$ac_objext 7912echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7913eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7914_lt_compiler_boilerplate=`cat conftest.err` 7915$RM conftest* 7916 7917ac_outfile=conftest.$ac_objext 7918echo "$lt_simple_link_test_code" >conftest.$ac_ext 7919eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7920_lt_linker_boilerplate=`cat conftest.err` 7921$RM -r conftest* 7922 7923 7924if test -n "$compiler"; then 7925 7926lt_prog_compiler_no_builtin_flag= 7927 7928if test "$GCC" = yes; then 7929 case $cc_basename in 7930 nvcc*) 7931 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7932 *) 7933 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7934 esac 7935 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7937$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7938if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940else 7941 lt_cv_prog_compiler_rtti_exceptions=no 7942 ac_outfile=conftest.$ac_objext 7943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7944 lt_compiler_flag="-fno-rtti -fno-exceptions" 7945 # Insert the option either (1) after the last *FLAGS variable, or 7946 # (2) before a word containing "conftest.", or (3) at the end. 7947 # Note that $ac_compile itself does not contain backslashes and begins 7948 # with a dollar sign (not a hyphen), so the echo should work correctly. 7949 # The option is referenced via a variable to avoid confusing sed. 7950 lt_compile=`echo "$ac_compile" | $SED \ 7951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7953 -e 's:$: $lt_compiler_flag:'` 7954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7955 (eval "$lt_compile" 2>conftest.err) 7956 ac_status=$? 7957 cat conftest.err >&5 7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7959 if (exit $ac_status) && test -s "$ac_outfile"; then 7960 # The compiler can only warn and ignore the option if not recognized 7961 # So say no if there are warnings other than the usual output. 7962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7965 lt_cv_prog_compiler_rtti_exceptions=yes 7966 fi 7967 fi 7968 $RM conftest* 7969 7970fi 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7972$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7973 7974if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7975 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7976else 7977 : 7978fi 7979 7980fi 7981 7982 7983 7984 7985 7986 7987 lt_prog_compiler_wl= 7988lt_prog_compiler_pic= 7989lt_prog_compiler_static= 7990 7991 7992 if test "$GCC" = yes; then 7993 lt_prog_compiler_wl='-Wl,' 7994 lt_prog_compiler_static='-static' 7995 7996 case $host_os in 7997 aix*) 7998 # All AIX code is PIC. 7999 if test "$host_cpu" = ia64; then 8000 # AIX 5 now supports IA64 processor 8001 lt_prog_compiler_static='-Bstatic' 8002 fi 8003 ;; 8004 8005 amigaos*) 8006 case $host_cpu in 8007 powerpc) 8008 # see comment about AmigaOS4 .so support 8009 lt_prog_compiler_pic='-fPIC' 8010 ;; 8011 m68k) 8012 # FIXME: we need at least 68020 code to build shared libraries, but 8013 # adding the `-m68020' flag to GCC prevents building anything better, 8014 # like `-m68040'. 8015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8016 ;; 8017 esac 8018 ;; 8019 8020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8021 # PIC is the default for these OSes. 8022 ;; 8023 8024 mingw* | cygwin* | pw32* | os2* | cegcc*) 8025 # This hack is so that the source file can tell whether it is being 8026 # built for inclusion in a dll (and should export symbols for example). 8027 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8028 # (--disable-auto-import) libraries 8029 lt_prog_compiler_pic='-DDLL_EXPORT' 8030 ;; 8031 8032 darwin* | rhapsody*) 8033 # PIC is the default on this platform 8034 # Common symbols not allowed in MH_DYLIB files 8035 lt_prog_compiler_pic='-fno-common' 8036 ;; 8037 8038 haiku*) 8039 # PIC is the default for Haiku. 8040 # The "-static" flag exists, but is broken. 8041 lt_prog_compiler_static= 8042 ;; 8043 8044 hpux*) 8045 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8046 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8047 # sets the default TLS model and affects inlining. 8048 case $host_cpu in 8049 hppa*64*) 8050 # +Z the default 8051 ;; 8052 *) 8053 lt_prog_compiler_pic='-fPIC' 8054 ;; 8055 esac 8056 ;; 8057 8058 interix[3-9]*) 8059 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8060 # Instead, we relocate shared libraries at runtime. 8061 ;; 8062 8063 msdosdjgpp*) 8064 # Just because we use GCC doesn't mean we suddenly get shared libraries 8065 # on systems that don't support them. 8066 lt_prog_compiler_can_build_shared=no 8067 enable_shared=no 8068 ;; 8069 8070 *nto* | *qnx*) 8071 # QNX uses GNU C++, but need to define -shared option too, otherwise 8072 # it will coredump. 8073 lt_prog_compiler_pic='-fPIC -shared' 8074 ;; 8075 8076 sysv4*MP*) 8077 if test -d /usr/nec; then 8078 lt_prog_compiler_pic=-Kconform_pic 8079 fi 8080 ;; 8081 8082 *) 8083 lt_prog_compiler_pic='-fPIC' 8084 ;; 8085 esac 8086 8087 case $cc_basename in 8088 nvcc*) # Cuda Compiler Driver 2.2 8089 lt_prog_compiler_wl='-Xlinker ' 8090 lt_prog_compiler_pic='-Xcompiler -fPIC' 8091 ;; 8092 esac 8093 else 8094 # PORTME Check for flag to pass linker flags through the system compiler. 8095 case $host_os in 8096 aix*) 8097 lt_prog_compiler_wl='-Wl,' 8098 if test "$host_cpu" = ia64; then 8099 # AIX 5 now supports IA64 processor 8100 lt_prog_compiler_static='-Bstatic' 8101 else 8102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8103 fi 8104 ;; 8105 8106 mingw* | cygwin* | pw32* | os2* | cegcc*) 8107 # This hack is so that the source file can tell whether it is being 8108 # built for inclusion in a dll (and should export symbols for example). 8109 lt_prog_compiler_pic='-DDLL_EXPORT' 8110 ;; 8111 8112 hpux9* | hpux10* | hpux11*) 8113 lt_prog_compiler_wl='-Wl,' 8114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8115 # not for PA HP-UX. 8116 case $host_cpu in 8117 hppa*64*|ia64*) 8118 # +Z the default 8119 ;; 8120 *) 8121 lt_prog_compiler_pic='+Z' 8122 ;; 8123 esac 8124 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8125 lt_prog_compiler_static='${wl}-a ${wl}archive' 8126 ;; 8127 8128 irix5* | irix6* | nonstopux*) 8129 lt_prog_compiler_wl='-Wl,' 8130 # PIC (with -KPIC) is the default. 8131 lt_prog_compiler_static='-non_shared' 8132 ;; 8133 8134 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8135 case $cc_basename in 8136 # old Intel for x86_64 which still supported -KPIC. 8137 ecc*) 8138 lt_prog_compiler_wl='-Wl,' 8139 lt_prog_compiler_pic='-KPIC' 8140 lt_prog_compiler_static='-static' 8141 ;; 8142 # icc used to be incompatible with GCC. 8143 # ICC 10 doesn't accept -KPIC any more. 8144 icc* | ifort*) 8145 lt_prog_compiler_wl='-Wl,' 8146 lt_prog_compiler_pic='-fPIC' 8147 lt_prog_compiler_static='-static' 8148 ;; 8149 # Lahey Fortran 8.1. 8150 lf95*) 8151 lt_prog_compiler_wl='-Wl,' 8152 lt_prog_compiler_pic='--shared' 8153 lt_prog_compiler_static='--static' 8154 ;; 8155 nagfor*) 8156 # NAG Fortran compiler 8157 lt_prog_compiler_wl='-Wl,-Wl,,' 8158 lt_prog_compiler_pic='-PIC' 8159 lt_prog_compiler_static='-Bstatic' 8160 ;; 8161 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8162 # Portland Group compilers (*not* the Pentium gcc compiler, 8163 # which looks to be a dead project) 8164 lt_prog_compiler_wl='-Wl,' 8165 lt_prog_compiler_pic='-fpic' 8166 lt_prog_compiler_static='-Bstatic' 8167 ;; 8168 ccc*) 8169 lt_prog_compiler_wl='-Wl,' 8170 # All Alpha code is PIC. 8171 lt_prog_compiler_static='-non_shared' 8172 ;; 8173 xl* | bgxl* | bgf* | mpixl*) 8174 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8175 lt_prog_compiler_wl='-Wl,' 8176 lt_prog_compiler_pic='-qpic' 8177 lt_prog_compiler_static='-qstaticlink' 8178 ;; 8179 *) 8180 case `$CC -V 2>&1 | sed 5q` in 8181 *Sun\ F* | *Sun*Fortran*) 8182 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8183 lt_prog_compiler_pic='-KPIC' 8184 lt_prog_compiler_static='-Bstatic' 8185 lt_prog_compiler_wl='' 8186 ;; 8187 *Sun\ C*) 8188 # Sun C 5.9 8189 lt_prog_compiler_pic='-KPIC' 8190 lt_prog_compiler_static='-Bstatic' 8191 lt_prog_compiler_wl='-Wl,' 8192 ;; 8193 esac 8194 ;; 8195 esac 8196 ;; 8197 8198 newsos6) 8199 lt_prog_compiler_pic='-KPIC' 8200 lt_prog_compiler_static='-Bstatic' 8201 ;; 8202 8203 *nto* | *qnx*) 8204 # QNX uses GNU C++, but need to define -shared option too, otherwise 8205 # it will coredump. 8206 lt_prog_compiler_pic='-fPIC -shared' 8207 ;; 8208 8209 osf3* | osf4* | osf5*) 8210 lt_prog_compiler_wl='-Wl,' 8211 # All OSF/1 code is PIC. 8212 lt_prog_compiler_static='-non_shared' 8213 ;; 8214 8215 rdos*) 8216 lt_prog_compiler_static='-non_shared' 8217 ;; 8218 8219 solaris*) 8220 lt_prog_compiler_pic='-KPIC' 8221 lt_prog_compiler_static='-Bstatic' 8222 case $cc_basename in 8223 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8224 lt_prog_compiler_wl='-Qoption ld ';; 8225 *) 8226 lt_prog_compiler_wl='-Wl,';; 8227 esac 8228 ;; 8229 8230 sunos4*) 8231 lt_prog_compiler_wl='-Qoption ld ' 8232 lt_prog_compiler_pic='-PIC' 8233 lt_prog_compiler_static='-Bstatic' 8234 ;; 8235 8236 sysv4 | sysv4.2uw2* | sysv4.3*) 8237 lt_prog_compiler_wl='-Wl,' 8238 lt_prog_compiler_pic='-KPIC' 8239 lt_prog_compiler_static='-Bstatic' 8240 ;; 8241 8242 sysv4*MP*) 8243 if test -d /usr/nec ;then 8244 lt_prog_compiler_pic='-Kconform_pic' 8245 lt_prog_compiler_static='-Bstatic' 8246 fi 8247 ;; 8248 8249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8250 lt_prog_compiler_wl='-Wl,' 8251 lt_prog_compiler_pic='-KPIC' 8252 lt_prog_compiler_static='-Bstatic' 8253 ;; 8254 8255 unicos*) 8256 lt_prog_compiler_wl='-Wl,' 8257 lt_prog_compiler_can_build_shared=no 8258 ;; 8259 8260 uts4*) 8261 lt_prog_compiler_pic='-pic' 8262 lt_prog_compiler_static='-Bstatic' 8263 ;; 8264 8265 *) 8266 lt_prog_compiler_can_build_shared=no 8267 ;; 8268 esac 8269 fi 8270 8271case $host_os in 8272 # For platforms which do not support PIC, -DPIC is meaningless: 8273 *djgpp*) 8274 lt_prog_compiler_pic= 8275 ;; 8276 *) 8277 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8278 ;; 8279esac 8280 8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8282$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8283if ${lt_cv_prog_compiler_pic+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8287fi 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8289$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8290lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8291 8292# 8293# Check to make sure the PIC flag actually works. 8294# 8295if test -n "$lt_prog_compiler_pic"; then 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8297$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8298if ${lt_cv_prog_compiler_pic_works+:} false; then : 8299 $as_echo_n "(cached) " >&6 8300else 8301 lt_cv_prog_compiler_pic_works=no 8302 ac_outfile=conftest.$ac_objext 8303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8305 # Insert the option either (1) after the last *FLAGS variable, or 8306 # (2) before a word containing "conftest.", or (3) at the end. 8307 # Note that $ac_compile itself does not contain backslashes and begins 8308 # with a dollar sign (not a hyphen), so the echo should work correctly. 8309 # The option is referenced via a variable to avoid confusing sed. 8310 lt_compile=`echo "$ac_compile" | $SED \ 8311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8313 -e 's:$: $lt_compiler_flag:'` 8314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8315 (eval "$lt_compile" 2>conftest.err) 8316 ac_status=$? 8317 cat conftest.err >&5 8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8319 if (exit $ac_status) && test -s "$ac_outfile"; then 8320 # The compiler can only warn and ignore the option if not recognized 8321 # So say no if there are warnings other than the usual output. 8322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8325 lt_cv_prog_compiler_pic_works=yes 8326 fi 8327 fi 8328 $RM conftest* 8329 8330fi 8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8332$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8333 8334if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8335 case $lt_prog_compiler_pic in 8336 "" | " "*) ;; 8337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8338 esac 8339else 8340 lt_prog_compiler_pic= 8341 lt_prog_compiler_can_build_shared=no 8342fi 8343 8344fi 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356# 8357# Check to make sure the static flag actually works. 8358# 8359wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8361$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8362if ${lt_cv_prog_compiler_static_works+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364else 8365 lt_cv_prog_compiler_static_works=no 8366 save_LDFLAGS="$LDFLAGS" 8367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8368 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8370 # The linker can only warn and ignore the option if not recognized 8371 # So say no if there are warnings 8372 if test -s conftest.err; then 8373 # Append any errors to the config.log. 8374 cat conftest.err 1>&5 8375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8377 if diff conftest.exp conftest.er2 >/dev/null; then 8378 lt_cv_prog_compiler_static_works=yes 8379 fi 8380 else 8381 lt_cv_prog_compiler_static_works=yes 8382 fi 8383 fi 8384 $RM -r conftest* 8385 LDFLAGS="$save_LDFLAGS" 8386 8387fi 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8389$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8390 8391if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8392 : 8393else 8394 lt_prog_compiler_static= 8395fi 8396 8397 8398 8399 8400 8401 8402 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8405if ${lt_cv_prog_compiler_c_o+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 lt_cv_prog_compiler_c_o=no 8409 $RM -r conftest 2>/dev/null 8410 mkdir conftest 8411 cd conftest 8412 mkdir out 8413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8414 8415 lt_compiler_flag="-o out/conftest2.$ac_objext" 8416 # Insert the option either (1) after the last *FLAGS variable, or 8417 # (2) before a word containing "conftest.", or (3) at the end. 8418 # Note that $ac_compile itself does not contain backslashes and begins 8419 # with a dollar sign (not a hyphen), so the echo should work correctly. 8420 lt_compile=`echo "$ac_compile" | $SED \ 8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8423 -e 's:$: $lt_compiler_flag:'` 8424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8425 (eval "$lt_compile" 2>out/conftest.err) 8426 ac_status=$? 8427 cat out/conftest.err >&5 8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8429 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8430 then 8431 # The compiler can only warn and ignore the option if not recognized 8432 # So say no if there are warnings 8433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8436 lt_cv_prog_compiler_c_o=yes 8437 fi 8438 fi 8439 chmod u+w . 2>&5 8440 $RM conftest* 8441 # SGI C++ compiler will create directory out/ii_files/ for 8442 # template instantiation 8443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8444 $RM out/* && rmdir out 8445 cd .. 8446 $RM -r conftest 8447 $RM conftest* 8448 8449fi 8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8451$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8452 8453 8454 8455 8456 8457 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8459$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8460if ${lt_cv_prog_compiler_c_o+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 lt_cv_prog_compiler_c_o=no 8464 $RM -r conftest 2>/dev/null 8465 mkdir conftest 8466 cd conftest 8467 mkdir out 8468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8469 8470 lt_compiler_flag="-o out/conftest2.$ac_objext" 8471 # Insert the option either (1) after the last *FLAGS variable, or 8472 # (2) before a word containing "conftest.", or (3) at the end. 8473 # Note that $ac_compile itself does not contain backslashes and begins 8474 # with a dollar sign (not a hyphen), so the echo should work correctly. 8475 lt_compile=`echo "$ac_compile" | $SED \ 8476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8478 -e 's:$: $lt_compiler_flag:'` 8479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8480 (eval "$lt_compile" 2>out/conftest.err) 8481 ac_status=$? 8482 cat out/conftest.err >&5 8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8484 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8485 then 8486 # The compiler can only warn and ignore the option if not recognized 8487 # So say no if there are warnings 8488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8491 lt_cv_prog_compiler_c_o=yes 8492 fi 8493 fi 8494 chmod u+w . 2>&5 8495 $RM conftest* 8496 # SGI C++ compiler will create directory out/ii_files/ for 8497 # template instantiation 8498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8499 $RM out/* && rmdir out 8500 cd .. 8501 $RM -r conftest 8502 $RM conftest* 8503 8504fi 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8506$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8507 8508 8509 8510 8511hard_links="nottested" 8512if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8513 # do not overwrite the value of need_locks provided by the user 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8515$as_echo_n "checking if we can lock with hard links... " >&6; } 8516 hard_links=yes 8517 $RM conftest* 8518 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8519 touch conftest.a 8520 ln conftest.a conftest.b 2>&5 || hard_links=no 8521 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8523$as_echo "$hard_links" >&6; } 8524 if test "$hard_links" = no; then 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8526$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8527 need_locks=warn 8528 fi 8529else 8530 need_locks=no 8531fi 8532 8533 8534 8535 8536 8537 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8539$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8540 8541 runpath_var= 8542 allow_undefined_flag= 8543 always_export_symbols=no 8544 archive_cmds= 8545 archive_expsym_cmds= 8546 compiler_needs_object=no 8547 enable_shared_with_static_runtimes=no 8548 export_dynamic_flag_spec= 8549 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8550 hardcode_automatic=no 8551 hardcode_direct=no 8552 hardcode_direct_absolute=no 8553 hardcode_libdir_flag_spec= 8554 hardcode_libdir_flag_spec_ld= 8555 hardcode_libdir_separator= 8556 hardcode_minus_L=no 8557 hardcode_shlibpath_var=unsupported 8558 inherit_rpath=no 8559 link_all_deplibs=unknown 8560 module_cmds= 8561 module_expsym_cmds= 8562 old_archive_from_new_cmds= 8563 old_archive_from_expsyms_cmds= 8564 thread_safe_flag_spec= 8565 whole_archive_flag_spec= 8566 # include_expsyms should be a list of space-separated symbols to be *always* 8567 # included in the symbol list 8568 include_expsyms= 8569 # exclude_expsyms can be an extended regexp of symbols to exclude 8570 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8571 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8572 # as well as any symbol that contains `d'. 8573 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8574 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8575 # platforms (ab)use it in PIC code, but their linkers get confused if 8576 # the symbol is explicitly referenced. Since portable code cannot 8577 # rely on this symbol name, it's probably fine to never include it in 8578 # preloaded symbol tables. 8579 # Exclude shared library initialization/finalization symbols. 8580 extract_expsyms_cmds= 8581 8582 case $host_os in 8583 cygwin* | mingw* | pw32* | cegcc*) 8584 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8585 # When not using gcc, we currently assume that we are using 8586 # Microsoft Visual C++. 8587 if test "$GCC" != yes; then 8588 with_gnu_ld=no 8589 fi 8590 ;; 8591 interix*) 8592 # we just hope/assume this is gcc and not c89 (= MSVC++) 8593 with_gnu_ld=yes 8594 ;; 8595 openbsd*) 8596 with_gnu_ld=no 8597 ;; 8598 esac 8599 8600 ld_shlibs=yes 8601 8602 # On some targets, GNU ld is compatible enough with the native linker 8603 # that we're better off using the native interface for both. 8604 lt_use_gnu_ld_interface=no 8605 if test "$with_gnu_ld" = yes; then 8606 case $host_os in 8607 aix*) 8608 # The AIX port of GNU ld has always aspired to compatibility 8609 # with the native linker. However, as the warning in the GNU ld 8610 # block says, versions before 2.19.5* couldn't really create working 8611 # shared libraries, regardless of the interface used. 8612 case `$LD -v 2>&1` in 8613 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8614 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8615 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8616 *) 8617 lt_use_gnu_ld_interface=yes 8618 ;; 8619 esac 8620 ;; 8621 *) 8622 lt_use_gnu_ld_interface=yes 8623 ;; 8624 esac 8625 fi 8626 8627 if test "$lt_use_gnu_ld_interface" = yes; then 8628 # If archive_cmds runs LD, not CC, wlarc should be empty 8629 wlarc='${wl}' 8630 8631 # Set some defaults for GNU ld with shared library support. These 8632 # are reset later if shared libraries are not supported. Putting them 8633 # here allows them to be overridden if necessary. 8634 runpath_var=LD_RUN_PATH 8635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8636 export_dynamic_flag_spec='${wl}--export-dynamic' 8637 # ancient GNU ld didn't support --whole-archive et. al. 8638 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8639 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8640 else 8641 whole_archive_flag_spec= 8642 fi 8643 supports_anon_versioning=no 8644 case `$LD -v 2>&1` in 8645 *GNU\ gold*) supports_anon_versioning=yes ;; 8646 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8649 *\ 2.11.*) ;; # other 2.11 versions 8650 *) supports_anon_versioning=yes ;; 8651 esac 8652 8653 # See if GNU ld supports shared libraries. 8654 case $host_os in 8655 aix[3-9]*) 8656 # On AIX/PPC, the GNU linker is very broken 8657 if test "$host_cpu" != ia64; then 8658 ld_shlibs=no 8659 cat <<_LT_EOF 1>&2 8660 8661*** Warning: the GNU linker, at least up to release 2.19, is reported 8662*** to be unable to reliably create shared libraries on AIX. 8663*** Therefore, libtool is disabling shared libraries support. If you 8664*** really care for shared libraries, you may want to install binutils 8665*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8666*** You will then need to restart the configuration process. 8667 8668_LT_EOF 8669 fi 8670 ;; 8671 8672 amigaos*) 8673 case $host_cpu in 8674 powerpc) 8675 # see comment about AmigaOS4 .so support 8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8677 archive_expsym_cmds='' 8678 ;; 8679 m68k) 8680 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)' 8681 hardcode_libdir_flag_spec='-L$libdir' 8682 hardcode_minus_L=yes 8683 ;; 8684 esac 8685 ;; 8686 8687 beos*) 8688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8689 allow_undefined_flag=unsupported 8690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8691 # support --undefined. This deserves some investigation. FIXME 8692 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8693 else 8694 ld_shlibs=no 8695 fi 8696 ;; 8697 8698 cygwin* | mingw* | pw32* | cegcc*) 8699 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8700 # as there is no search path for DLLs. 8701 hardcode_libdir_flag_spec='-L$libdir' 8702 export_dynamic_flag_spec='${wl}--export-all-symbols' 8703 allow_undefined_flag=unsupported 8704 always_export_symbols=no 8705 enable_shared_with_static_runtimes=yes 8706 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' 8707 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8708 8709 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8711 # If the export-symbols file already is a .def file (1st line 8712 # is EXPORTS), use it as is; otherwise, prepend... 8713 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8714 cp $export_symbols $output_objdir/$soname.def; 8715 else 8716 echo EXPORTS > $output_objdir/$soname.def; 8717 cat $export_symbols >> $output_objdir/$soname.def; 8718 fi~ 8719 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8720 else 8721 ld_shlibs=no 8722 fi 8723 ;; 8724 8725 haiku*) 8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8727 link_all_deplibs=yes 8728 ;; 8729 8730 interix[3-9]*) 8731 hardcode_direct=no 8732 hardcode_shlibpath_var=no 8733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8734 export_dynamic_flag_spec='${wl}-E' 8735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8736 # Instead, shared libraries are loaded at an image base (0x10000000 by 8737 # default) and relocated if they conflict, which is a slow very memory 8738 # consuming and fragmenting process. To avoid this, we pick a random, 8739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8740 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8741 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8742 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' 8743 ;; 8744 8745 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8746 tmp_diet=no 8747 if test "$host_os" = linux-dietlibc; then 8748 case $cc_basename in 8749 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8750 esac 8751 fi 8752 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8753 && test "$tmp_diet" = no 8754 then 8755 tmp_addflag=' $pic_flag' 8756 tmp_sharedflag='-shared' 8757 case $cc_basename,$host_cpu in 8758 pgcc*) # Portland Group C compiler 8759 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' 8760 tmp_addflag=' $pic_flag' 8761 ;; 8762 pgf77* | pgf90* | pgf95* | pgfortran*) 8763 # Portland Group f77 and f90 compilers 8764 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' 8765 tmp_addflag=' $pic_flag -Mnomain' ;; 8766 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8767 tmp_addflag=' -i_dynamic' ;; 8768 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8769 tmp_addflag=' -i_dynamic -nofor_main' ;; 8770 ifc* | ifort*) # Intel Fortran compiler 8771 tmp_addflag=' -nofor_main' ;; 8772 lf95*) # Lahey Fortran 8.1 8773 whole_archive_flag_spec= 8774 tmp_sharedflag='--shared' ;; 8775 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8776 tmp_sharedflag='-qmkshrobj' 8777 tmp_addflag= ;; 8778 nvcc*) # Cuda Compiler Driver 2.2 8779 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' 8780 compiler_needs_object=yes 8781 ;; 8782 esac 8783 case `$CC -V 2>&1 | sed 5q` in 8784 *Sun\ C*) # Sun C 5.9 8785 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' 8786 compiler_needs_object=yes 8787 tmp_sharedflag='-G' ;; 8788 *Sun\ F*) # Sun Fortran 8.3 8789 tmp_sharedflag='-G' ;; 8790 esac 8791 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8792 8793 if test "x$supports_anon_versioning" = xyes; then 8794 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8796 echo "local: *; };" >> $output_objdir/$libname.ver~ 8797 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8798 fi 8799 8800 case $cc_basename in 8801 xlf* | bgf* | bgxlf* | mpixlf*) 8802 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8803 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8804 hardcode_libdir_flag_spec= 8805 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8806 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8807 if test "x$supports_anon_versioning" = xyes; then 8808 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8810 echo "local: *; };" >> $output_objdir/$libname.ver~ 8811 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8812 fi 8813 ;; 8814 esac 8815 else 8816 ld_shlibs=no 8817 fi 8818 ;; 8819 8820 netbsd*) 8821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8823 wlarc= 8824 else 8825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8827 fi 8828 ;; 8829 8830 solaris*) 8831 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8832 ld_shlibs=no 8833 cat <<_LT_EOF 1>&2 8834 8835*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8836*** create shared libraries on Solaris systems. Therefore, libtool 8837*** is disabling shared libraries support. We urge you to upgrade GNU 8838*** binutils to release 2.9.1 or newer. Another option is to modify 8839*** your PATH or compiler configuration so that the native linker is 8840*** used, and then restart. 8841 8842_LT_EOF 8843 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8846 else 8847 ld_shlibs=no 8848 fi 8849 ;; 8850 8851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8852 case `$LD -v 2>&1` in 8853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8854 ld_shlibs=no 8855 cat <<_LT_EOF 1>&2 8856 8857*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8858*** reliably create shared libraries on SCO systems. Therefore, libtool 8859*** is disabling shared libraries support. We urge you to upgrade GNU 8860*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8861*** your PATH or compiler configuration so that the native linker is 8862*** used, and then restart. 8863 8864_LT_EOF 8865 ;; 8866 *) 8867 # For security reasons, it is highly recommended that you always 8868 # use absolute paths for naming shared libraries, and exclude the 8869 # DT_RUNPATH tag from executables and libraries. But doing so 8870 # requires that you compile everything twice, which is a pain. 8871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8875 else 8876 ld_shlibs=no 8877 fi 8878 ;; 8879 esac 8880 ;; 8881 8882 sunos4*) 8883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8884 wlarc= 8885 hardcode_direct=yes 8886 hardcode_shlibpath_var=no 8887 ;; 8888 8889 *) 8890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8893 else 8894 ld_shlibs=no 8895 fi 8896 ;; 8897 esac 8898 8899 if test "$ld_shlibs" = no; then 8900 runpath_var= 8901 hardcode_libdir_flag_spec= 8902 export_dynamic_flag_spec= 8903 whole_archive_flag_spec= 8904 fi 8905 else 8906 # PORTME fill in a description of your system's linker (not GNU ld) 8907 case $host_os in 8908 aix3*) 8909 allow_undefined_flag=unsupported 8910 always_export_symbols=yes 8911 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' 8912 # Note: this linker hardcodes the directories in LIBPATH if there 8913 # are no directories specified by -L. 8914 hardcode_minus_L=yes 8915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8916 # Neither direct hardcoding nor static linking is supported with a 8917 # broken collect2. 8918 hardcode_direct=unsupported 8919 fi 8920 ;; 8921 8922 aix[4-9]*) 8923 if test "$host_cpu" = ia64; then 8924 # On IA64, the linker does run time linking by default, so we don't 8925 # have to do anything special. 8926 aix_use_runtimelinking=no 8927 exp_sym_flag='-Bexport' 8928 no_entry_flag="" 8929 else 8930 # If we're using GNU nm, then we don't want the "-C" option. 8931 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8932 # Also, AIX nm treats weak defined symbols like other global 8933 # defined symbols, whereas GNU nm marks them as "W". 8934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8935 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' 8936 else 8937 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' 8938 fi 8939 aix_use_runtimelinking=no 8940 8941 # Test if we are trying to use run time linking or normal 8942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8943 # need to do runtime linking. 8944 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8945 for ld_flag in $LDFLAGS; do 8946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8947 aix_use_runtimelinking=yes 8948 break 8949 fi 8950 done 8951 ;; 8952 esac 8953 8954 exp_sym_flag='-bexport' 8955 no_entry_flag='-bnoentry' 8956 fi 8957 8958 # When large executables or shared objects are built, AIX ld can 8959 # have problems creating the table of contents. If linking a library 8960 # or program results in "error TOC overflow" add -mminimal-toc to 8961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8963 8964 archive_cmds='' 8965 hardcode_direct=yes 8966 hardcode_direct_absolute=yes 8967 hardcode_libdir_separator=':' 8968 link_all_deplibs=yes 8969 file_list_spec='${wl}-f,' 8970 8971 if test "$GCC" = yes; then 8972 case $host_os in aix4.[012]|aix4.[012].*) 8973 # We only want to do this on AIX 4.2 and lower, the check 8974 # below for broken collect2 doesn't work under 4.3+ 8975 collect2name=`${CC} -print-prog-name=collect2` 8976 if test -f "$collect2name" && 8977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8978 then 8979 # We have reworked collect2 8980 : 8981 else 8982 # We have old collect2 8983 hardcode_direct=unsupported 8984 # It fails to find uninstalled libraries when the uninstalled 8985 # path is not listed in the libpath. Setting hardcode_minus_L 8986 # to unsupported forces relinking 8987 hardcode_minus_L=yes 8988 hardcode_libdir_flag_spec='-L$libdir' 8989 hardcode_libdir_separator= 8990 fi 8991 ;; 8992 esac 8993 shared_flag='-shared' 8994 if test "$aix_use_runtimelinking" = yes; then 8995 shared_flag="$shared_flag "'${wl}-G' 8996 fi 8997 else 8998 # not using gcc 8999 if test "$host_cpu" = ia64; then 9000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9001 # chokes on -Wl,-G. The following line is correct: 9002 shared_flag='-G' 9003 else 9004 if test "$aix_use_runtimelinking" = yes; then 9005 shared_flag='${wl}-G' 9006 else 9007 shared_flag='${wl}-bM:SRE' 9008 fi 9009 fi 9010 fi 9011 9012 export_dynamic_flag_spec='${wl}-bexpall' 9013 # It seems that -bexpall does not export symbols beginning with 9014 # underscore (_), so it is better to generate a list of symbols to export. 9015 always_export_symbols=yes 9016 if test "$aix_use_runtimelinking" = yes; then 9017 # Warning - without using the other runtime loading flags (-brtl), 9018 # -berok will link without error, but may produce a broken library. 9019 allow_undefined_flag='-berok' 9020 # Determine the default libpath from the value encoded in an 9021 # empty executable. 9022 if test "${lt_cv_aix_libpath+set}" = set; then 9023 aix_libpath=$lt_cv_aix_libpath 9024else 9025 if ${lt_cv_aix_libpath_+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027else 9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9029/* end confdefs.h. */ 9030 9031int 9032main () 9033{ 9034 9035 ; 9036 return 0; 9037} 9038_ACEOF 9039if ac_fn_c_try_link "$LINENO"; then : 9040 9041 lt_aix_libpath_sed=' 9042 /Import File Strings/,/^$/ { 9043 /^0/ { 9044 s/^0 *\([^ ]*\) *$/\1/ 9045 p 9046 } 9047 }' 9048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9049 # Check for a 64-bit object if we didn't find anything. 9050 if test -z "$lt_cv_aix_libpath_"; then 9051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9052 fi 9053fi 9054rm -f core conftest.err conftest.$ac_objext \ 9055 conftest$ac_exeext conftest.$ac_ext 9056 if test -z "$lt_cv_aix_libpath_"; then 9057 lt_cv_aix_libpath_="/usr/lib:/lib" 9058 fi 9059 9060fi 9061 9062 aix_libpath=$lt_cv_aix_libpath_ 9063fi 9064 9065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9066 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" 9067 else 9068 if test "$host_cpu" = ia64; then 9069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9070 allow_undefined_flag="-z nodefs" 9071 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" 9072 else 9073 # Determine the default libpath from the value encoded in an 9074 # empty executable. 9075 if test "${lt_cv_aix_libpath+set}" = set; then 9076 aix_libpath=$lt_cv_aix_libpath 9077else 9078 if ${lt_cv_aix_libpath_+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9082/* end confdefs.h. */ 9083 9084int 9085main () 9086{ 9087 9088 ; 9089 return 0; 9090} 9091_ACEOF 9092if ac_fn_c_try_link "$LINENO"; then : 9093 9094 lt_aix_libpath_sed=' 9095 /Import File Strings/,/^$/ { 9096 /^0/ { 9097 s/^0 *\([^ ]*\) *$/\1/ 9098 p 9099 } 9100 }' 9101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9102 # Check for a 64-bit object if we didn't find anything. 9103 if test -z "$lt_cv_aix_libpath_"; then 9104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9105 fi 9106fi 9107rm -f core conftest.err conftest.$ac_objext \ 9108 conftest$ac_exeext conftest.$ac_ext 9109 if test -z "$lt_cv_aix_libpath_"; then 9110 lt_cv_aix_libpath_="/usr/lib:/lib" 9111 fi 9112 9113fi 9114 9115 aix_libpath=$lt_cv_aix_libpath_ 9116fi 9117 9118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9119 # Warning - without using the other run time loading flags, 9120 # -berok will link without error, but may produce a broken library. 9121 no_undefined_flag=' ${wl}-bernotok' 9122 allow_undefined_flag=' ${wl}-berok' 9123 if test "$with_gnu_ld" = yes; then 9124 # We only use this code for GNU lds that support --whole-archive. 9125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9126 else 9127 # Exported symbols can be pulled into shared objects from archives 9128 whole_archive_flag_spec='$convenience' 9129 fi 9130 archive_cmds_need_lc=yes 9131 # This is similar to how AIX traditionally builds its shared libraries. 9132 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' 9133 fi 9134 fi 9135 ;; 9136 9137 amigaos*) 9138 case $host_cpu in 9139 powerpc) 9140 # see comment about AmigaOS4 .so support 9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9142 archive_expsym_cmds='' 9143 ;; 9144 m68k) 9145 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)' 9146 hardcode_libdir_flag_spec='-L$libdir' 9147 hardcode_minus_L=yes 9148 ;; 9149 esac 9150 ;; 9151 9152 bsdi[45]*) 9153 export_dynamic_flag_spec=-rdynamic 9154 ;; 9155 9156 cygwin* | mingw* | pw32* | cegcc*) 9157 # When not using gcc, we currently assume that we are using 9158 # Microsoft Visual C++. 9159 # hardcode_libdir_flag_spec is actually meaningless, as there is 9160 # no search path for DLLs. 9161 case $cc_basename in 9162 cl*) 9163 # Native MSVC 9164 hardcode_libdir_flag_spec=' ' 9165 allow_undefined_flag=unsupported 9166 always_export_symbols=yes 9167 file_list_spec='@' 9168 # Tell ltmain to make .lib files, not .a files. 9169 libext=lib 9170 # Tell ltmain to make .dll files, not .so files. 9171 shrext_cmds=".dll" 9172 # FIXME: Setting linknames here is a bad hack. 9173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9175 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9176 else 9177 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9178 fi~ 9179 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9180 linknames=' 9181 # The linker will not automatically build a static lib if we build a DLL. 9182 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9183 enable_shared_with_static_runtimes=yes 9184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9185 # Don't use ranlib 9186 old_postinstall_cmds='chmod 644 $oldlib' 9187 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9188 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9189 case $lt_outputfile in 9190 *.exe|*.EXE) ;; 9191 *) 9192 lt_outputfile="$lt_outputfile.exe" 9193 lt_tool_outputfile="$lt_tool_outputfile.exe" 9194 ;; 9195 esac~ 9196 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9197 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9198 $RM "$lt_outputfile.manifest"; 9199 fi' 9200 ;; 9201 *) 9202 # Assume MSVC wrapper 9203 hardcode_libdir_flag_spec=' ' 9204 allow_undefined_flag=unsupported 9205 # Tell ltmain to make .lib files, not .a files. 9206 libext=lib 9207 # Tell ltmain to make .dll files, not .so files. 9208 shrext_cmds=".dll" 9209 # FIXME: Setting linknames here is a bad hack. 9210 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9211 # The linker will automatically build a .lib file if we build a DLL. 9212 old_archive_from_new_cmds='true' 9213 # FIXME: Should let the user specify the lib program. 9214 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9215 enable_shared_with_static_runtimes=yes 9216 ;; 9217 esac 9218 ;; 9219 9220 darwin* | rhapsody*) 9221 9222 9223 archive_cmds_need_lc=no 9224 hardcode_direct=no 9225 hardcode_automatic=yes 9226 hardcode_shlibpath_var=unsupported 9227 if test "$lt_cv_ld_force_load" = "yes"; then 9228 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\"`' 9229 else 9230 whole_archive_flag_spec='' 9231 fi 9232 link_all_deplibs=yes 9233 allow_undefined_flag="$_lt_dar_allow_undefined" 9234 case $cc_basename in 9235 ifort*) _lt_dar_can_shared=yes ;; 9236 *) _lt_dar_can_shared=$GCC ;; 9237 esac 9238 if test "$_lt_dar_can_shared" = "yes"; then 9239 output_verbose_link_cmd=func_echo_all 9240 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9241 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9242 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}" 9243 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}" 9244 9245 else 9246 ld_shlibs=no 9247 fi 9248 9249 ;; 9250 9251 dgux*) 9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9253 hardcode_libdir_flag_spec='-L$libdir' 9254 hardcode_shlibpath_var=no 9255 ;; 9256 9257 freebsd1*) 9258 ld_shlibs=no 9259 ;; 9260 9261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9262 # support. Future versions do this automatically, but an explicit c++rt0.o 9263 # does not break anything, and helps significantly (at the cost of a little 9264 # extra space). 9265 freebsd2.2*) 9266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9267 hardcode_libdir_flag_spec='-R$libdir' 9268 hardcode_direct=yes 9269 hardcode_shlibpath_var=no 9270 ;; 9271 9272 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9273 freebsd2*) 9274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9275 hardcode_direct=yes 9276 hardcode_minus_L=yes 9277 hardcode_shlibpath_var=no 9278 ;; 9279 9280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9281 freebsd* | dragonfly*) 9282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9283 hardcode_libdir_flag_spec='-R$libdir' 9284 hardcode_direct=yes 9285 hardcode_shlibpath_var=no 9286 ;; 9287 9288 hpux9*) 9289 if test "$GCC" = yes; then 9290 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' 9291 else 9292 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' 9293 fi 9294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9295 hardcode_libdir_separator=: 9296 hardcode_direct=yes 9297 9298 # hardcode_minus_L: Not really in the search PATH, 9299 # but as the default location of the library. 9300 hardcode_minus_L=yes 9301 export_dynamic_flag_spec='${wl}-E' 9302 ;; 9303 9304 hpux10*) 9305 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9306 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9307 else 9308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9309 fi 9310 if test "$with_gnu_ld" = no; then 9311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9312 hardcode_libdir_flag_spec_ld='+b $libdir' 9313 hardcode_libdir_separator=: 9314 hardcode_direct=yes 9315 hardcode_direct_absolute=yes 9316 export_dynamic_flag_spec='${wl}-E' 9317 # hardcode_minus_L: Not really in the search PATH, 9318 # but as the default location of the library. 9319 hardcode_minus_L=yes 9320 fi 9321 ;; 9322 9323 hpux11*) 9324 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9325 case $host_cpu in 9326 hppa*64*) 9327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9328 ;; 9329 ia64*) 9330 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9331 ;; 9332 *) 9333 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9334 ;; 9335 esac 9336 else 9337 case $host_cpu in 9338 hppa*64*) 9339 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9340 ;; 9341 ia64*) 9342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9343 ;; 9344 *) 9345 9346 # Older versions of the 11.00 compiler do not understand -b yet 9347 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9349$as_echo_n "checking if $CC understands -b... " >&6; } 9350if ${lt_cv_prog_compiler__b+:} false; then : 9351 $as_echo_n "(cached) " >&6 9352else 9353 lt_cv_prog_compiler__b=no 9354 save_LDFLAGS="$LDFLAGS" 9355 LDFLAGS="$LDFLAGS -b" 9356 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9358 # The linker can only warn and ignore the option if not recognized 9359 # So say no if there are warnings 9360 if test -s conftest.err; then 9361 # Append any errors to the config.log. 9362 cat conftest.err 1>&5 9363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9365 if diff conftest.exp conftest.er2 >/dev/null; then 9366 lt_cv_prog_compiler__b=yes 9367 fi 9368 else 9369 lt_cv_prog_compiler__b=yes 9370 fi 9371 fi 9372 $RM -r conftest* 9373 LDFLAGS="$save_LDFLAGS" 9374 9375fi 9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9377$as_echo "$lt_cv_prog_compiler__b" >&6; } 9378 9379if test x"$lt_cv_prog_compiler__b" = xyes; then 9380 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9381else 9382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9383fi 9384 9385 ;; 9386 esac 9387 fi 9388 if test "$with_gnu_ld" = no; then 9389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9390 hardcode_libdir_separator=: 9391 9392 case $host_cpu in 9393 hppa*64*|ia64*) 9394 hardcode_direct=no 9395 hardcode_shlibpath_var=no 9396 ;; 9397 *) 9398 hardcode_direct=yes 9399 hardcode_direct_absolute=yes 9400 export_dynamic_flag_spec='${wl}-E' 9401 9402 # hardcode_minus_L: Not really in the search PATH, 9403 # but as the default location of the library. 9404 hardcode_minus_L=yes 9405 ;; 9406 esac 9407 fi 9408 ;; 9409 9410 irix5* | irix6* | nonstopux*) 9411 if test "$GCC" = yes; then 9412 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' 9413 # Try to use the -exported_symbol ld option, if it does not 9414 # work, assume that -exports_file does not work either and 9415 # implicitly export all symbols. 9416 # This should be the same for all languages, so no per-tag cache variable. 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9418$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9419if ${lt_cv_irix_exported_symbol+:} false; then : 9420 $as_echo_n "(cached) " >&6 9421else 9422 save_LDFLAGS="$LDFLAGS" 9423 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425/* end confdefs.h. */ 9426int foo (void) { return 0; } 9427_ACEOF 9428if ac_fn_c_try_link "$LINENO"; then : 9429 lt_cv_irix_exported_symbol=yes 9430else 9431 lt_cv_irix_exported_symbol=no 9432fi 9433rm -f core conftest.err conftest.$ac_objext \ 9434 conftest$ac_exeext conftest.$ac_ext 9435 LDFLAGS="$save_LDFLAGS" 9436fi 9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9438$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9439 if test "$lt_cv_irix_exported_symbol" = yes; then 9440 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' 9441 fi 9442 else 9443 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' 9444 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' 9445 fi 9446 archive_cmds_need_lc='no' 9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9448 hardcode_libdir_separator=: 9449 inherit_rpath=yes 9450 link_all_deplibs=yes 9451 ;; 9452 9453 netbsd*) 9454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9456 else 9457 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9458 fi 9459 hardcode_libdir_flag_spec='-R$libdir' 9460 hardcode_direct=yes 9461 hardcode_shlibpath_var=no 9462 ;; 9463 9464 newsos6) 9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9466 hardcode_direct=yes 9467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9468 hardcode_libdir_separator=: 9469 hardcode_shlibpath_var=no 9470 ;; 9471 9472 *nto* | *qnx*) 9473 ;; 9474 9475 openbsd*) 9476 if test -f /usr/libexec/ld.so; then 9477 hardcode_direct=yes 9478 hardcode_shlibpath_var=no 9479 hardcode_direct_absolute=yes 9480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9482 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9484 export_dynamic_flag_spec='${wl}-E' 9485 else 9486 case $host_os in 9487 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9489 hardcode_libdir_flag_spec='-R$libdir' 9490 ;; 9491 *) 9492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9494 ;; 9495 esac 9496 fi 9497 else 9498 ld_shlibs=no 9499 fi 9500 ;; 9501 9502 os2*) 9503 hardcode_libdir_flag_spec='-L$libdir' 9504 hardcode_minus_L=yes 9505 allow_undefined_flag=unsupported 9506 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' 9507 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9508 ;; 9509 9510 osf3*) 9511 if test "$GCC" = yes; then 9512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9513 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' 9514 else 9515 allow_undefined_flag=' -expect_unresolved \*' 9516 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' 9517 fi 9518 archive_cmds_need_lc='no' 9519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9520 hardcode_libdir_separator=: 9521 ;; 9522 9523 osf4* | osf5*) # as osf3* with the addition of -msym flag 9524 if test "$GCC" = yes; then 9525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9526 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' 9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9528 else 9529 allow_undefined_flag=' -expect_unresolved \*' 9530 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' 9531 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~ 9532 $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' 9533 9534 # Both c and cxx compiler support -rpath directly 9535 hardcode_libdir_flag_spec='-rpath $libdir' 9536 fi 9537 archive_cmds_need_lc='no' 9538 hardcode_libdir_separator=: 9539 ;; 9540 9541 solaris*) 9542 no_undefined_flag=' -z defs' 9543 if test "$GCC" = yes; then 9544 wlarc='${wl}' 9545 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9547 $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' 9548 else 9549 case `$CC -V 2>&1` in 9550 *"Compilers 5.0"*) 9551 wlarc='' 9552 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9555 ;; 9556 *) 9557 wlarc='${wl}' 9558 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9560 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9561 ;; 9562 esac 9563 fi 9564 hardcode_libdir_flag_spec='-R$libdir' 9565 hardcode_shlibpath_var=no 9566 case $host_os in 9567 solaris2.[0-5] | solaris2.[0-5].*) ;; 9568 *) 9569 # The compiler driver will combine and reorder linker options, 9570 # but understands `-z linker_flag'. GCC discards it without `$wl', 9571 # but is careful enough not to reorder. 9572 # Supported since Solaris 2.6 (maybe 2.5.1?) 9573 if test "$GCC" = yes; then 9574 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9575 else 9576 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9577 fi 9578 ;; 9579 esac 9580 link_all_deplibs=yes 9581 ;; 9582 9583 sunos4*) 9584 if test "x$host_vendor" = xsequent; then 9585 # Use $CC to link under sequent, because it throws in some extra .o 9586 # files that make .init and .fini sections work. 9587 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9588 else 9589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9590 fi 9591 hardcode_libdir_flag_spec='-L$libdir' 9592 hardcode_direct=yes 9593 hardcode_minus_L=yes 9594 hardcode_shlibpath_var=no 9595 ;; 9596 9597 sysv4) 9598 case $host_vendor in 9599 sni) 9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9601 hardcode_direct=yes # is this really true??? 9602 ;; 9603 siemens) 9604 ## LD is ld it makes a PLAMLIB 9605 ## CC just makes a GrossModule. 9606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9607 reload_cmds='$CC -r -o $output$reload_objs' 9608 hardcode_direct=no 9609 ;; 9610 motorola) 9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9613 ;; 9614 esac 9615 runpath_var='LD_RUN_PATH' 9616 hardcode_shlibpath_var=no 9617 ;; 9618 9619 sysv4.3*) 9620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9621 hardcode_shlibpath_var=no 9622 export_dynamic_flag_spec='-Bexport' 9623 ;; 9624 9625 sysv4*MP*) 9626 if test -d /usr/nec; then 9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9628 hardcode_shlibpath_var=no 9629 runpath_var=LD_RUN_PATH 9630 hardcode_runpath_var=yes 9631 ld_shlibs=yes 9632 fi 9633 ;; 9634 9635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9636 no_undefined_flag='${wl}-z,text' 9637 archive_cmds_need_lc=no 9638 hardcode_shlibpath_var=no 9639 runpath_var='LD_RUN_PATH' 9640 9641 if test "$GCC" = yes; then 9642 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9644 else 9645 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9647 fi 9648 ;; 9649 9650 sysv5* | sco3.2v5* | sco5v6*) 9651 # Note: We can NOT use -z defs as we might desire, because we do not 9652 # link with -lc, and that would cause any symbols used from libc to 9653 # always be unresolved, which means just about no library would 9654 # ever link correctly. If we're not using GNU ld we use -z text 9655 # though, which does catch some bad symbols but isn't as heavy-handed 9656 # as -z defs. 9657 no_undefined_flag='${wl}-z,text' 9658 allow_undefined_flag='${wl}-z,nodefs' 9659 archive_cmds_need_lc=no 9660 hardcode_shlibpath_var=no 9661 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9662 hardcode_libdir_separator=':' 9663 link_all_deplibs=yes 9664 export_dynamic_flag_spec='${wl}-Bexport' 9665 runpath_var='LD_RUN_PATH' 9666 9667 if test "$GCC" = yes; then 9668 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9669 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9670 else 9671 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9672 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9673 fi 9674 ;; 9675 9676 uts4*) 9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9678 hardcode_libdir_flag_spec='-L$libdir' 9679 hardcode_shlibpath_var=no 9680 ;; 9681 9682 *) 9683 ld_shlibs=no 9684 ;; 9685 esac 9686 9687 if test x$host_vendor = xsni; then 9688 case $host in 9689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9690 export_dynamic_flag_spec='${wl}-Blargedynsym' 9691 ;; 9692 esac 9693 fi 9694 fi 9695 9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9697$as_echo "$ld_shlibs" >&6; } 9698test "$ld_shlibs" = no && can_build_shared=no 9699 9700with_gnu_ld=$with_gnu_ld 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716# 9717# Do we need to explicitly link libc? 9718# 9719case "x$archive_cmds_need_lc" in 9720x|xyes) 9721 # Assume -lc should be added 9722 archive_cmds_need_lc=yes 9723 9724 if test "$enable_shared" = yes && test "$GCC" = yes; then 9725 case $archive_cmds in 9726 *'~'*) 9727 # FIXME: we may have to deal with multi-command sequences. 9728 ;; 9729 '$CC '*) 9730 # Test whether the compiler implicitly links with -lc since on some 9731 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9732 # to ld, don't add -lc before -lgcc. 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9734$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9735if ${lt_cv_archive_cmds_need_lc+:} false; then : 9736 $as_echo_n "(cached) " >&6 9737else 9738 $RM conftest* 9739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9740 9741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9742 (eval $ac_compile) 2>&5 9743 ac_status=$? 9744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9745 test $ac_status = 0; } 2>conftest.err; then 9746 soname=conftest 9747 lib=conftest 9748 libobjs=conftest.$ac_objext 9749 deplibs= 9750 wl=$lt_prog_compiler_wl 9751 pic_flag=$lt_prog_compiler_pic 9752 compiler_flags=-v 9753 linker_flags=-v 9754 verstring= 9755 output_objdir=. 9756 libname=conftest 9757 lt_save_allow_undefined_flag=$allow_undefined_flag 9758 allow_undefined_flag= 9759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9760 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9761 ac_status=$? 9762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9763 test $ac_status = 0; } 9764 then 9765 lt_cv_archive_cmds_need_lc=no 9766 else 9767 lt_cv_archive_cmds_need_lc=yes 9768 fi 9769 allow_undefined_flag=$lt_save_allow_undefined_flag 9770 else 9771 cat conftest.err 1>&5 9772 fi 9773 $RM conftest* 9774 9775fi 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9777$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9778 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9779 ;; 9780 esac 9781 fi 9782 ;; 9783esac 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9942$as_echo_n "checking dynamic linker characteristics... " >&6; } 9943 9944if test "$GCC" = yes; then 9945 case $host_os in 9946 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9947 *) lt_awk_arg="/^libraries:/" ;; 9948 esac 9949 case $host_os in 9950 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9951 *) lt_sed_strip_eq="s,=/,/,g" ;; 9952 esac 9953 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9954 case $lt_search_path_spec in 9955 *\;*) 9956 # if the path contains ";" then we assume it to be the separator 9957 # otherwise default to the standard path separator (i.e. ":") - it is 9958 # assumed that no part of a normal pathname contains ";" but that should 9959 # okay in the real world where ";" in dirpaths is itself problematic. 9960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9961 ;; 9962 *) 9963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9964 ;; 9965 esac 9966 # Ok, now we have the path, separated by spaces, we can step through it 9967 # and add multilib dir if necessary. 9968 lt_tmp_lt_search_path_spec= 9969 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9970 for lt_sys_path in $lt_search_path_spec; do 9971 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9973 else 9974 test -d "$lt_sys_path" && \ 9975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9976 fi 9977 done 9978 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9979BEGIN {RS=" "; FS="/|\n";} { 9980 lt_foo=""; 9981 lt_count=0; 9982 for (lt_i = NF; lt_i > 0; lt_i--) { 9983 if ($lt_i != "" && $lt_i != ".") { 9984 if ($lt_i == "..") { 9985 lt_count++; 9986 } else { 9987 if (lt_count == 0) { 9988 lt_foo="/" $lt_i lt_foo; 9989 } else { 9990 lt_count--; 9991 } 9992 } 9993 } 9994 } 9995 if (lt_foo != "") { lt_freq[lt_foo]++; } 9996 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9997}'` 9998 # AWK program above erroneously prepends '/' to C:/dos/paths 9999 # for these hosts. 10000 case $host_os in 10001 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10002 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10003 esac 10004 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10005else 10006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10007fi 10008library_names_spec= 10009libname_spec='lib$name' 10010soname_spec= 10011shrext_cmds=".so" 10012postinstall_cmds= 10013postuninstall_cmds= 10014finish_cmds= 10015finish_eval= 10016shlibpath_var= 10017shlibpath_overrides_runpath=unknown 10018version_type=none 10019dynamic_linker="$host_os ld.so" 10020sys_lib_dlsearch_path_spec="/lib /usr/lib" 10021need_lib_prefix=unknown 10022hardcode_into_libs=no 10023 10024# when you set need_version to no, make sure it does not cause -set_version 10025# flags to be left without arguments 10026need_version=unknown 10027 10028case $host_os in 10029aix3*) 10030 version_type=linux 10031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10032 shlibpath_var=LIBPATH 10033 10034 # AIX 3 has no versioning support, so we append a major version to the name. 10035 soname_spec='${libname}${release}${shared_ext}$major' 10036 ;; 10037 10038aix[4-9]*) 10039 version_type=linux 10040 need_lib_prefix=no 10041 need_version=no 10042 hardcode_into_libs=yes 10043 if test "$host_cpu" = ia64; then 10044 # AIX 5 supports IA64 10045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10046 shlibpath_var=LD_LIBRARY_PATH 10047 else 10048 # With GCC up to 2.95.x, collect2 would create an import file 10049 # for dependence libraries. The import file would start with 10050 # the line `#! .'. This would cause the generated library to 10051 # depend on `.', always an invalid library. This was fixed in 10052 # development snapshots of GCC prior to 3.0. 10053 case $host_os in 10054 aix4 | aix4.[01] | aix4.[01].*) 10055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10056 echo ' yes ' 10057 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10058 : 10059 else 10060 can_build_shared=no 10061 fi 10062 ;; 10063 esac 10064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10065 # soname into executable. Probably we can add versioning support to 10066 # collect2, so additional links can be useful in future. 10067 if test "$aix_use_runtimelinking" = yes; then 10068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10069 # instead of lib<name>.a to let people know that these are not 10070 # typical AIX shared libraries. 10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10072 else 10073 # We preserve .a as extension for shared libraries through AIX4.2 10074 # and later when we are not doing run time linking. 10075 library_names_spec='${libname}${release}.a $libname.a' 10076 soname_spec='${libname}${release}${shared_ext}$major' 10077 fi 10078 shlibpath_var=LIBPATH 10079 fi 10080 ;; 10081 10082amigaos*) 10083 case $host_cpu in 10084 powerpc) 10085 # Since July 2007 AmigaOS4 officially supports .so libraries. 10086 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10088 ;; 10089 m68k) 10090 library_names_spec='$libname.ixlibrary $libname.a' 10091 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10092 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' 10093 ;; 10094 esac 10095 ;; 10096 10097beos*) 10098 library_names_spec='${libname}${shared_ext}' 10099 dynamic_linker="$host_os ld.so" 10100 shlibpath_var=LIBRARY_PATH 10101 ;; 10102 10103bsdi[45]*) 10104 version_type=linux 10105 need_version=no 10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10107 soname_spec='${libname}${release}${shared_ext}$major' 10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10109 shlibpath_var=LD_LIBRARY_PATH 10110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10112 # the default ld.so.conf also contains /usr/contrib/lib and 10113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10114 # libtool to hard-code these into programs 10115 ;; 10116 10117cygwin* | mingw* | pw32* | cegcc*) 10118 version_type=windows 10119 shrext_cmds=".dll" 10120 need_version=no 10121 need_lib_prefix=no 10122 10123 case $GCC,$cc_basename in 10124 yes,*) 10125 # gcc 10126 library_names_spec='$libname.dll.a' 10127 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10128 postinstall_cmds='base_file=`basename \${file}`~ 10129 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10130 dldir=$destdir/`dirname \$dlpath`~ 10131 test -d \$dldir || mkdir -p \$dldir~ 10132 $install_prog $dir/$dlname \$dldir/$dlname~ 10133 chmod a+x \$dldir/$dlname~ 10134 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10135 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10136 fi' 10137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10138 dlpath=$dir/\$dldll~ 10139 $RM \$dlpath' 10140 shlibpath_overrides_runpath=yes 10141 10142 case $host_os in 10143 cygwin*) 10144 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10146 10147 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10148 ;; 10149 mingw* | cegcc*) 10150 # MinGW DLLs use traditional 'lib' prefix 10151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10152 ;; 10153 pw32*) 10154 # pw32 DLLs use 'pw' prefix rather than 'lib' 10155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10156 ;; 10157 esac 10158 dynamic_linker='Win32 ld.exe' 10159 ;; 10160 10161 *,cl*) 10162 # Native MSVC 10163 libname_spec='$name' 10164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10165 library_names_spec='${libname}.dll.lib' 10166 10167 case $build_os in 10168 mingw*) 10169 sys_lib_search_path_spec= 10170 lt_save_ifs=$IFS 10171 IFS=';' 10172 for lt_path in $LIB 10173 do 10174 IFS=$lt_save_ifs 10175 # Let DOS variable expansion print the short 8.3 style file name. 10176 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10177 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10178 done 10179 IFS=$lt_save_ifs 10180 # Convert to MSYS style. 10181 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10182 ;; 10183 cygwin*) 10184 # Convert to unix form, then to dos form, then back to unix form 10185 # but this time dos style (no spaces!) so that the unix form looks 10186 # like /cygdrive/c/PROGRA~1:/cygdr... 10187 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10188 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10189 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10190 ;; 10191 *) 10192 sys_lib_search_path_spec="$LIB" 10193 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10194 # It is most probably a Windows format PATH. 10195 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10196 else 10197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10198 fi 10199 # FIXME: find the short name or the path components, as spaces are 10200 # common. (e.g. "Program Files" -> "PROGRA~1") 10201 ;; 10202 esac 10203 10204 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10205 postinstall_cmds='base_file=`basename \${file}`~ 10206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10207 dldir=$destdir/`dirname \$dlpath`~ 10208 test -d \$dldir || mkdir -p \$dldir~ 10209 $install_prog $dir/$dlname \$dldir/$dlname' 10210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10211 dlpath=$dir/\$dldll~ 10212 $RM \$dlpath' 10213 shlibpath_overrides_runpath=yes 10214 dynamic_linker='Win32 link.exe' 10215 ;; 10216 10217 *) 10218 # Assume MSVC wrapper 10219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10220 dynamic_linker='Win32 ld.exe' 10221 ;; 10222 esac 10223 # FIXME: first we should search . and the directory the executable is in 10224 shlibpath_var=PATH 10225 ;; 10226 10227darwin* | rhapsody*) 10228 dynamic_linker="$host_os dyld" 10229 version_type=darwin 10230 need_lib_prefix=no 10231 need_version=no 10232 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10233 soname_spec='${libname}${release}${major}$shared_ext' 10234 shlibpath_overrides_runpath=yes 10235 shlibpath_var=DYLD_LIBRARY_PATH 10236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10237 10238 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10239 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10240 ;; 10241 10242dgux*) 10243 version_type=linux 10244 need_lib_prefix=no 10245 need_version=no 10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10247 soname_spec='${libname}${release}${shared_ext}$major' 10248 shlibpath_var=LD_LIBRARY_PATH 10249 ;; 10250 10251freebsd1*) 10252 dynamic_linker=no 10253 ;; 10254 10255freebsd* | dragonfly*) 10256 # DragonFly does not have aout. When/if they implement a new 10257 # versioning mechanism, adjust this. 10258 if test -x /usr/bin/objformat; then 10259 objformat=`/usr/bin/objformat` 10260 else 10261 case $host_os in 10262 freebsd[123]*) objformat=aout ;; 10263 *) objformat=elf ;; 10264 esac 10265 fi 10266 version_type=freebsd-$objformat 10267 case $version_type in 10268 freebsd-elf*) 10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10270 need_version=no 10271 need_lib_prefix=no 10272 ;; 10273 freebsd-*) 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10275 need_version=yes 10276 ;; 10277 esac 10278 shlibpath_var=LD_LIBRARY_PATH 10279 case $host_os in 10280 freebsd2*) 10281 shlibpath_overrides_runpath=yes 10282 ;; 10283 freebsd3.[01]* | freebsdelf3.[01]*) 10284 shlibpath_overrides_runpath=yes 10285 hardcode_into_libs=yes 10286 ;; 10287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10289 shlibpath_overrides_runpath=no 10290 hardcode_into_libs=yes 10291 ;; 10292 *) # from 4.6 on, and DragonFly 10293 shlibpath_overrides_runpath=yes 10294 hardcode_into_libs=yes 10295 ;; 10296 esac 10297 ;; 10298 10299gnu*) 10300 version_type=linux 10301 need_lib_prefix=no 10302 need_version=no 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 shlibpath_var=LD_LIBRARY_PATH 10306 hardcode_into_libs=yes 10307 ;; 10308 10309haiku*) 10310 version_type=linux 10311 need_lib_prefix=no 10312 need_version=no 10313 dynamic_linker="$host_os runtime_loader" 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10315 soname_spec='${libname}${release}${shared_ext}$major' 10316 shlibpath_var=LIBRARY_PATH 10317 shlibpath_overrides_runpath=yes 10318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10319 hardcode_into_libs=yes 10320 ;; 10321 10322hpux9* | hpux10* | hpux11*) 10323 # Give a soname corresponding to the major version so that dld.sl refuses to 10324 # link against other versions. 10325 version_type=sunos 10326 need_lib_prefix=no 10327 need_version=no 10328 case $host_cpu in 10329 ia64*) 10330 shrext_cmds='.so' 10331 hardcode_into_libs=yes 10332 dynamic_linker="$host_os dld.so" 10333 shlibpath_var=LD_LIBRARY_PATH 10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10336 soname_spec='${libname}${release}${shared_ext}$major' 10337 if test "X$HPUX_IA64_MODE" = X32; then 10338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10339 else 10340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10341 fi 10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10343 ;; 10344 hppa*64*) 10345 shrext_cmds='.sl' 10346 hardcode_into_libs=yes 10347 dynamic_linker="$host_os dld.sl" 10348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10354 ;; 10355 *) 10356 shrext_cmds='.sl' 10357 dynamic_linker="$host_os dld.sl" 10358 shlibpath_var=SHLIB_PATH 10359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10361 soname_spec='${libname}${release}${shared_ext}$major' 10362 ;; 10363 esac 10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10365 postinstall_cmds='chmod 555 $lib' 10366 # or fails outright, so override atomically: 10367 install_override_mode=555 10368 ;; 10369 10370interix[3-9]*) 10371 version_type=linux 10372 need_lib_prefix=no 10373 need_version=no 10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10375 soname_spec='${libname}${release}${shared_ext}$major' 10376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10377 shlibpath_var=LD_LIBRARY_PATH 10378 shlibpath_overrides_runpath=no 10379 hardcode_into_libs=yes 10380 ;; 10381 10382irix5* | irix6* | nonstopux*) 10383 case $host_os in 10384 nonstopux*) version_type=nonstopux ;; 10385 *) 10386 if test "$lt_cv_prog_gnu_ld" = yes; then 10387 version_type=linux 10388 else 10389 version_type=irix 10390 fi ;; 10391 esac 10392 need_lib_prefix=no 10393 need_version=no 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10396 case $host_os in 10397 irix5* | nonstopux*) 10398 libsuff= shlibsuff= 10399 ;; 10400 *) 10401 case $LD in # libtool.m4 will add one of these switches to LD 10402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10403 libsuff= shlibsuff= libmagic=32-bit;; 10404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10405 libsuff=32 shlibsuff=N32 libmagic=N32;; 10406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10407 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10408 *) libsuff= shlibsuff= libmagic=never-match;; 10409 esac 10410 ;; 10411 esac 10412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10413 shlibpath_overrides_runpath=no 10414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10416 hardcode_into_libs=yes 10417 ;; 10418 10419# No shared lib support for Linux oldld, aout, or coff. 10420linux*oldld* | linux*aout* | linux*coff*) 10421 dynamic_linker=no 10422 ;; 10423 10424# This must be Linux ELF. 10425linux* | k*bsd*-gnu | kopensolaris*-gnu) 10426 version_type=linux 10427 need_lib_prefix=no 10428 need_version=no 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10432 shlibpath_var=LD_LIBRARY_PATH 10433 shlibpath_overrides_runpath=no 10434 10435 # Some binutils ld are patched to set DT_RUNPATH 10436 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10437 $as_echo_n "(cached) " >&6 10438else 10439 lt_cv_shlibpath_overrides_runpath=no 10440 save_LDFLAGS=$LDFLAGS 10441 save_libdir=$libdir 10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445/* end confdefs.h. */ 10446 10447int 10448main () 10449{ 10450 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO"; then : 10456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10457 lt_cv_shlibpath_overrides_runpath=yes 10458fi 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 LDFLAGS=$save_LDFLAGS 10463 libdir=$save_libdir 10464 10465fi 10466 10467 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10468 10469 # This implies no fast_install, which is unacceptable. 10470 # Some rework will be needed to allow for fast_install 10471 # before this can be enabled. 10472 hardcode_into_libs=yes 10473 10474 # Append ld.so.conf contents to the search path 10475 if test -f /etc/ld.so.conf; then 10476 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' ' '` 10477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10478 fi 10479 10480 # We used to test for /lib/ld.so.1 and disable shared libraries on 10481 # powerpc, because MkLinux only supported shared libraries with the 10482 # GNU dynamic linker. Since this was broken with cross compilers, 10483 # most powerpc-linux boxes support dynamic linking these days and 10484 # people can always --disable-shared, the test was removed, and we 10485 # assume the GNU/Linux dynamic linker is in use. 10486 dynamic_linker='GNU/Linux ld.so' 10487 ;; 10488 10489netbsd*) 10490 version_type=sunos 10491 need_lib_prefix=no 10492 need_version=no 10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10496 dynamic_linker='NetBSD (a.out) ld.so' 10497 else 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10499 soname_spec='${libname}${release}${shared_ext}$major' 10500 dynamic_linker='NetBSD ld.elf_so' 10501 fi 10502 shlibpath_var=LD_LIBRARY_PATH 10503 shlibpath_overrides_runpath=yes 10504 hardcode_into_libs=yes 10505 ;; 10506 10507newsos6) 10508 version_type=linux 10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10510 shlibpath_var=LD_LIBRARY_PATH 10511 shlibpath_overrides_runpath=yes 10512 ;; 10513 10514*nto* | *qnx*) 10515 version_type=qnx 10516 need_lib_prefix=no 10517 need_version=no 10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10519 soname_spec='${libname}${release}${shared_ext}$major' 10520 shlibpath_var=LD_LIBRARY_PATH 10521 shlibpath_overrides_runpath=no 10522 hardcode_into_libs=yes 10523 dynamic_linker='ldqnx.so' 10524 ;; 10525 10526openbsd*) 10527 version_type=sunos 10528 sys_lib_dlsearch_path_spec="/usr/lib" 10529 need_lib_prefix=no 10530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10531 case $host_os in 10532 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10533 *) need_version=no ;; 10534 esac 10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10537 shlibpath_var=LD_LIBRARY_PATH 10538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10539 case $host_os in 10540 openbsd2.[89] | openbsd2.[89].*) 10541 shlibpath_overrides_runpath=no 10542 ;; 10543 *) 10544 shlibpath_overrides_runpath=yes 10545 ;; 10546 esac 10547 else 10548 shlibpath_overrides_runpath=yes 10549 fi 10550 ;; 10551 10552os2*) 10553 libname_spec='$name' 10554 shrext_cmds=".dll" 10555 need_lib_prefix=no 10556 library_names_spec='$libname${shared_ext} $libname.a' 10557 dynamic_linker='OS/2 ld.exe' 10558 shlibpath_var=LIBPATH 10559 ;; 10560 10561osf3* | osf4* | osf5*) 10562 version_type=osf 10563 need_lib_prefix=no 10564 need_version=no 10565 soname_spec='${libname}${release}${shared_ext}$major' 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10567 shlibpath_var=LD_LIBRARY_PATH 10568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10570 ;; 10571 10572rdos*) 10573 dynamic_linker=no 10574 ;; 10575 10576solaris*) 10577 version_type=linux 10578 need_lib_prefix=no 10579 need_version=no 10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10581 soname_spec='${libname}${release}${shared_ext}$major' 10582 shlibpath_var=LD_LIBRARY_PATH 10583 shlibpath_overrides_runpath=yes 10584 hardcode_into_libs=yes 10585 # ldd complains unless libraries are executable 10586 postinstall_cmds='chmod +x $lib' 10587 ;; 10588 10589sunos4*) 10590 version_type=sunos 10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10593 shlibpath_var=LD_LIBRARY_PATH 10594 shlibpath_overrides_runpath=yes 10595 if test "$with_gnu_ld" = yes; then 10596 need_lib_prefix=no 10597 fi 10598 need_version=yes 10599 ;; 10600 10601sysv4 | sysv4.3*) 10602 version_type=linux 10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10604 soname_spec='${libname}${release}${shared_ext}$major' 10605 shlibpath_var=LD_LIBRARY_PATH 10606 case $host_vendor in 10607 sni) 10608 shlibpath_overrides_runpath=no 10609 need_lib_prefix=no 10610 runpath_var=LD_RUN_PATH 10611 ;; 10612 siemens) 10613 need_lib_prefix=no 10614 ;; 10615 motorola) 10616 need_lib_prefix=no 10617 need_version=no 10618 shlibpath_overrides_runpath=no 10619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10620 ;; 10621 esac 10622 ;; 10623 10624sysv4*MP*) 10625 if test -d /usr/nec ;then 10626 version_type=linux 10627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10628 soname_spec='$libname${shared_ext}.$major' 10629 shlibpath_var=LD_LIBRARY_PATH 10630 fi 10631 ;; 10632 10633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10634 version_type=freebsd-elf 10635 need_lib_prefix=no 10636 need_version=no 10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10638 soname_spec='${libname}${release}${shared_ext}$major' 10639 shlibpath_var=LD_LIBRARY_PATH 10640 shlibpath_overrides_runpath=yes 10641 hardcode_into_libs=yes 10642 if test "$with_gnu_ld" = yes; then 10643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10644 else 10645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10646 case $host_os in 10647 sco3.2v5*) 10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10649 ;; 10650 esac 10651 fi 10652 sys_lib_dlsearch_path_spec='/usr/lib' 10653 ;; 10654 10655tpf*) 10656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10657 version_type=linux 10658 need_lib_prefix=no 10659 need_version=no 10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10661 shlibpath_var=LD_LIBRARY_PATH 10662 shlibpath_overrides_runpath=no 10663 hardcode_into_libs=yes 10664 ;; 10665 10666uts4*) 10667 version_type=linux 10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10669 soname_spec='${libname}${release}${shared_ext}$major' 10670 shlibpath_var=LD_LIBRARY_PATH 10671 ;; 10672 10673*) 10674 dynamic_linker=no 10675 ;; 10676esac 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10678$as_echo "$dynamic_linker" >&6; } 10679test "$dynamic_linker" = no && can_build_shared=no 10680 10681variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10682if test "$GCC" = yes; then 10683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10684fi 10685 10686if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10688fi 10689if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10691fi 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10785$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10786hardcode_action= 10787if test -n "$hardcode_libdir_flag_spec" || 10788 test -n "$runpath_var" || 10789 test "X$hardcode_automatic" = "Xyes" ; then 10790 10791 # We can hardcode non-existent directories. 10792 if test "$hardcode_direct" != no && 10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10794 # have to relink, otherwise we might link with an installed library 10795 # when we should be linking with a yet-to-be-installed one 10796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10797 test "$hardcode_minus_L" != no; then 10798 # Linking always hardcodes the temporary library directory. 10799 hardcode_action=relink 10800 else 10801 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10802 hardcode_action=immediate 10803 fi 10804else 10805 # We cannot hardcode anything, or else we can only hardcode existing 10806 # directories. 10807 hardcode_action=unsupported 10808fi 10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10810$as_echo "$hardcode_action" >&6; } 10811 10812if test "$hardcode_action" = relink || 10813 test "$inherit_rpath" = yes; then 10814 # Fast installation is not supported 10815 enable_fast_install=no 10816elif test "$shlibpath_overrides_runpath" = yes || 10817 test "$enable_shared" = no; then 10818 # Fast installation is not necessary 10819 enable_fast_install=needless 10820fi 10821 10822 10823 10824 10825 10826 10827 if test "x$enable_dlopen" != xyes; then 10828 enable_dlopen=unknown 10829 enable_dlopen_self=unknown 10830 enable_dlopen_self_static=unknown 10831else 10832 lt_cv_dlopen=no 10833 lt_cv_dlopen_libs= 10834 10835 case $host_os in 10836 beos*) 10837 lt_cv_dlopen="load_add_on" 10838 lt_cv_dlopen_libs= 10839 lt_cv_dlopen_self=yes 10840 ;; 10841 10842 mingw* | pw32* | cegcc*) 10843 lt_cv_dlopen="LoadLibrary" 10844 lt_cv_dlopen_libs= 10845 ;; 10846 10847 cygwin*) 10848 lt_cv_dlopen="dlopen" 10849 lt_cv_dlopen_libs= 10850 ;; 10851 10852 darwin*) 10853 # if libdl is installed we need to link against it 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10855$as_echo_n "checking for dlopen in -ldl... " >&6; } 10856if ${ac_cv_lib_dl_dlopen+:} false; then : 10857 $as_echo_n "(cached) " >&6 10858else 10859 ac_check_lib_save_LIBS=$LIBS 10860LIBS="-ldl $LIBS" 10861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10862/* end confdefs.h. */ 10863 10864/* Override any GCC internal prototype to avoid an error. 10865 Use char because int might match the return type of a GCC 10866 builtin and then its argument prototype would still apply. */ 10867#ifdef __cplusplus 10868extern "C" 10869#endif 10870char dlopen (); 10871int 10872main () 10873{ 10874return dlopen (); 10875 ; 10876 return 0; 10877} 10878_ACEOF 10879if ac_fn_c_try_link "$LINENO"; then : 10880 ac_cv_lib_dl_dlopen=yes 10881else 10882 ac_cv_lib_dl_dlopen=no 10883fi 10884rm -f core conftest.err conftest.$ac_objext \ 10885 conftest$ac_exeext conftest.$ac_ext 10886LIBS=$ac_check_lib_save_LIBS 10887fi 10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10889$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10890if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10892else 10893 10894 lt_cv_dlopen="dyld" 10895 lt_cv_dlopen_libs= 10896 lt_cv_dlopen_self=yes 10897 10898fi 10899 10900 ;; 10901 10902 *) 10903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10904if test "x$ac_cv_func_shl_load" = xyes; then : 10905 lt_cv_dlopen="shl_load" 10906else 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10908$as_echo_n "checking for shl_load in -ldld... " >&6; } 10909if ${ac_cv_lib_dld_shl_load+:} false; then : 10910 $as_echo_n "(cached) " >&6 10911else 10912 ac_check_lib_save_LIBS=$LIBS 10913LIBS="-ldld $LIBS" 10914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10915/* end confdefs.h. */ 10916 10917/* Override any GCC internal prototype to avoid an error. 10918 Use char because int might match the return type of a GCC 10919 builtin and then its argument prototype would still apply. */ 10920#ifdef __cplusplus 10921extern "C" 10922#endif 10923char shl_load (); 10924int 10925main () 10926{ 10927return shl_load (); 10928 ; 10929 return 0; 10930} 10931_ACEOF 10932if ac_fn_c_try_link "$LINENO"; then : 10933 ac_cv_lib_dld_shl_load=yes 10934else 10935 ac_cv_lib_dld_shl_load=no 10936fi 10937rm -f core conftest.err conftest.$ac_objext \ 10938 conftest$ac_exeext conftest.$ac_ext 10939LIBS=$ac_check_lib_save_LIBS 10940fi 10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10942$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10943if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10945else 10946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10947if test "x$ac_cv_func_dlopen" = xyes; then : 10948 lt_cv_dlopen="dlopen" 10949else 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10951$as_echo_n "checking for dlopen in -ldl... " >&6; } 10952if ${ac_cv_lib_dl_dlopen+:} false; then : 10953 $as_echo_n "(cached) " >&6 10954else 10955 ac_check_lib_save_LIBS=$LIBS 10956LIBS="-ldl $LIBS" 10957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10958/* end confdefs.h. */ 10959 10960/* Override any GCC internal prototype to avoid an error. 10961 Use char because int might match the return type of a GCC 10962 builtin and then its argument prototype would still apply. */ 10963#ifdef __cplusplus 10964extern "C" 10965#endif 10966char dlopen (); 10967int 10968main () 10969{ 10970return dlopen (); 10971 ; 10972 return 0; 10973} 10974_ACEOF 10975if ac_fn_c_try_link "$LINENO"; then : 10976 ac_cv_lib_dl_dlopen=yes 10977else 10978 ac_cv_lib_dl_dlopen=no 10979fi 10980rm -f core conftest.err conftest.$ac_objext \ 10981 conftest$ac_exeext conftest.$ac_ext 10982LIBS=$ac_check_lib_save_LIBS 10983fi 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10985$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10986if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10988else 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10990$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10991if ${ac_cv_lib_svld_dlopen+:} false; then : 10992 $as_echo_n "(cached) " >&6 10993else 10994 ac_check_lib_save_LIBS=$LIBS 10995LIBS="-lsvld $LIBS" 10996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10997/* end confdefs.h. */ 10998 10999/* Override any GCC internal prototype to avoid an error. 11000 Use char because int might match the return type of a GCC 11001 builtin and then its argument prototype would still apply. */ 11002#ifdef __cplusplus 11003extern "C" 11004#endif 11005char dlopen (); 11006int 11007main () 11008{ 11009return dlopen (); 11010 ; 11011 return 0; 11012} 11013_ACEOF 11014if ac_fn_c_try_link "$LINENO"; then : 11015 ac_cv_lib_svld_dlopen=yes 11016else 11017 ac_cv_lib_svld_dlopen=no 11018fi 11019rm -f core conftest.err conftest.$ac_objext \ 11020 conftest$ac_exeext conftest.$ac_ext 11021LIBS=$ac_check_lib_save_LIBS 11022fi 11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11024$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11025if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11027else 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11029$as_echo_n "checking for dld_link in -ldld... " >&6; } 11030if ${ac_cv_lib_dld_dld_link+:} false; then : 11031 $as_echo_n "(cached) " >&6 11032else 11033 ac_check_lib_save_LIBS=$LIBS 11034LIBS="-ldld $LIBS" 11035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11036/* end confdefs.h. */ 11037 11038/* Override any GCC internal prototype to avoid an error. 11039 Use char because int might match the return type of a GCC 11040 builtin and then its argument prototype would still apply. */ 11041#ifdef __cplusplus 11042extern "C" 11043#endif 11044char dld_link (); 11045int 11046main () 11047{ 11048return dld_link (); 11049 ; 11050 return 0; 11051} 11052_ACEOF 11053if ac_fn_c_try_link "$LINENO"; then : 11054 ac_cv_lib_dld_dld_link=yes 11055else 11056 ac_cv_lib_dld_dld_link=no 11057fi 11058rm -f core conftest.err conftest.$ac_objext \ 11059 conftest$ac_exeext conftest.$ac_ext 11060LIBS=$ac_check_lib_save_LIBS 11061fi 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11063$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11064if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11066fi 11067 11068 11069fi 11070 11071 11072fi 11073 11074 11075fi 11076 11077 11078fi 11079 11080 11081fi 11082 11083 ;; 11084 esac 11085 11086 if test "x$lt_cv_dlopen" != xno; then 11087 enable_dlopen=yes 11088 else 11089 enable_dlopen=no 11090 fi 11091 11092 case $lt_cv_dlopen in 11093 dlopen) 11094 save_CPPFLAGS="$CPPFLAGS" 11095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11096 11097 save_LDFLAGS="$LDFLAGS" 11098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11099 11100 save_LIBS="$LIBS" 11101 LIBS="$lt_cv_dlopen_libs $LIBS" 11102 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11104$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11105if ${lt_cv_dlopen_self+:} false; then : 11106 $as_echo_n "(cached) " >&6 11107else 11108 if test "$cross_compiling" = yes; then : 11109 lt_cv_dlopen_self=cross 11110else 11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11112 lt_status=$lt_dlunknown 11113 cat > conftest.$ac_ext <<_LT_EOF 11114#line $LINENO "configure" 11115#include "confdefs.h" 11116 11117#if HAVE_DLFCN_H 11118#include <dlfcn.h> 11119#endif 11120 11121#include <stdio.h> 11122 11123#ifdef RTLD_GLOBAL 11124# define LT_DLGLOBAL RTLD_GLOBAL 11125#else 11126# ifdef DL_GLOBAL 11127# define LT_DLGLOBAL DL_GLOBAL 11128# else 11129# define LT_DLGLOBAL 0 11130# endif 11131#endif 11132 11133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11134 find out it does not work in some platform. */ 11135#ifndef LT_DLLAZY_OR_NOW 11136# ifdef RTLD_LAZY 11137# define LT_DLLAZY_OR_NOW RTLD_LAZY 11138# else 11139# ifdef DL_LAZY 11140# define LT_DLLAZY_OR_NOW DL_LAZY 11141# else 11142# ifdef RTLD_NOW 11143# define LT_DLLAZY_OR_NOW RTLD_NOW 11144# else 11145# ifdef DL_NOW 11146# define LT_DLLAZY_OR_NOW DL_NOW 11147# else 11148# define LT_DLLAZY_OR_NOW 0 11149# endif 11150# endif 11151# endif 11152# endif 11153#endif 11154 11155/* When -fvisbility=hidden is used, assume the code has been annotated 11156 correspondingly for the symbols needed. */ 11157#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11158int fnord () __attribute__((visibility("default"))); 11159#endif 11160 11161int fnord () { return 42; } 11162int main () 11163{ 11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11165 int status = $lt_dlunknown; 11166 11167 if (self) 11168 { 11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11170 else 11171 { 11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11173 else puts (dlerror ()); 11174 } 11175 /* dlclose (self); */ 11176 } 11177 else 11178 puts (dlerror ()); 11179 11180 return status; 11181} 11182_LT_EOF 11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11184 (eval $ac_link) 2>&5 11185 ac_status=$? 11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11188 (./conftest; exit; ) >&5 2>/dev/null 11189 lt_status=$? 11190 case x$lt_status in 11191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11194 esac 11195 else : 11196 # compilation failed 11197 lt_cv_dlopen_self=no 11198 fi 11199fi 11200rm -fr conftest* 11201 11202 11203fi 11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11205$as_echo "$lt_cv_dlopen_self" >&6; } 11206 11207 if test "x$lt_cv_dlopen_self" = xyes; then 11208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11210$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11211if ${lt_cv_dlopen_self_static+:} false; then : 11212 $as_echo_n "(cached) " >&6 11213else 11214 if test "$cross_compiling" = yes; then : 11215 lt_cv_dlopen_self_static=cross 11216else 11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11218 lt_status=$lt_dlunknown 11219 cat > conftest.$ac_ext <<_LT_EOF 11220#line $LINENO "configure" 11221#include "confdefs.h" 11222 11223#if HAVE_DLFCN_H 11224#include <dlfcn.h> 11225#endif 11226 11227#include <stdio.h> 11228 11229#ifdef RTLD_GLOBAL 11230# define LT_DLGLOBAL RTLD_GLOBAL 11231#else 11232# ifdef DL_GLOBAL 11233# define LT_DLGLOBAL DL_GLOBAL 11234# else 11235# define LT_DLGLOBAL 0 11236# endif 11237#endif 11238 11239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11240 find out it does not work in some platform. */ 11241#ifndef LT_DLLAZY_OR_NOW 11242# ifdef RTLD_LAZY 11243# define LT_DLLAZY_OR_NOW RTLD_LAZY 11244# else 11245# ifdef DL_LAZY 11246# define LT_DLLAZY_OR_NOW DL_LAZY 11247# else 11248# ifdef RTLD_NOW 11249# define LT_DLLAZY_OR_NOW RTLD_NOW 11250# else 11251# ifdef DL_NOW 11252# define LT_DLLAZY_OR_NOW DL_NOW 11253# else 11254# define LT_DLLAZY_OR_NOW 0 11255# endif 11256# endif 11257# endif 11258# endif 11259#endif 11260 11261/* When -fvisbility=hidden is used, assume the code has been annotated 11262 correspondingly for the symbols needed. */ 11263#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11264int fnord () __attribute__((visibility("default"))); 11265#endif 11266 11267int fnord () { return 42; } 11268int main () 11269{ 11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11271 int status = $lt_dlunknown; 11272 11273 if (self) 11274 { 11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11276 else 11277 { 11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11279 else puts (dlerror ()); 11280 } 11281 /* dlclose (self); */ 11282 } 11283 else 11284 puts (dlerror ()); 11285 11286 return status; 11287} 11288_LT_EOF 11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11290 (eval $ac_link) 2>&5 11291 ac_status=$? 11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11294 (./conftest; exit; ) >&5 2>/dev/null 11295 lt_status=$? 11296 case x$lt_status in 11297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11300 esac 11301 else : 11302 # compilation failed 11303 lt_cv_dlopen_self_static=no 11304 fi 11305fi 11306rm -fr conftest* 11307 11308 11309fi 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11311$as_echo "$lt_cv_dlopen_self_static" >&6; } 11312 fi 11313 11314 CPPFLAGS="$save_CPPFLAGS" 11315 LDFLAGS="$save_LDFLAGS" 11316 LIBS="$save_LIBS" 11317 ;; 11318 esac 11319 11320 case $lt_cv_dlopen_self in 11321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11322 *) enable_dlopen_self=unknown ;; 11323 esac 11324 11325 case $lt_cv_dlopen_self_static in 11326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11327 *) enable_dlopen_self_static=unknown ;; 11328 esac 11329fi 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347striplib= 11348old_striplib= 11349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11350$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11351if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11353 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11355$as_echo "yes" >&6; } 11356else 11357# FIXME - insert some real tests, host_os isn't really good enough 11358 case $host_os in 11359 darwin*) 11360 if test -n "$STRIP" ; then 11361 striplib="$STRIP -x" 11362 old_striplib="$STRIP -S" 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11364$as_echo "yes" >&6; } 11365 else 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367$as_echo "no" >&6; } 11368 fi 11369 ;; 11370 *) 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11372$as_echo "no" >&6; } 11373 ;; 11374 esac 11375fi 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 # Report which library types will actually be built 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11390$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11392$as_echo "$can_build_shared" >&6; } 11393 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11395$as_echo_n "checking whether to build shared libraries... " >&6; } 11396 test "$can_build_shared" = "no" && enable_shared=no 11397 11398 # On AIX, shared libraries and static libraries use the same namespace, and 11399 # are all built from PIC. 11400 case $host_os in 11401 aix3*) 11402 test "$enable_shared" = yes && enable_static=no 11403 if test -n "$RANLIB"; then 11404 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11405 postinstall_cmds='$RANLIB $lib' 11406 fi 11407 ;; 11408 11409 aix[4-9]*) 11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11411 test "$enable_shared" = yes && enable_static=no 11412 fi 11413 ;; 11414 esac 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11416$as_echo "$enable_shared" >&6; } 11417 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11419$as_echo_n "checking whether to build static libraries... " >&6; } 11420 # Make sure either enable_shared or enable_static is yes. 11421 test "$enable_shared" = yes || enable_static=yes 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11423$as_echo "$enable_static" >&6; } 11424 11425 11426 11427 11428fi 11429ac_ext=c 11430ac_cpp='$CPP $CPPFLAGS' 11431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11433ac_compiler_gnu=$ac_cv_c_compiler_gnu 11434 11435CC="$lt_save_CC" 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 ac_config_commands="$ac_config_commands libtool" 11450 11451 11452 11453 11454# Only expand once: 11455 11456 11457 11458# Require xorg-macros minimum of 1.12 for DocBook external references 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11471$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11472if ${ac_cv_prog_cc_c99+:} false; then : 11473 $as_echo_n "(cached) " >&6 11474else 11475 ac_cv_prog_cc_c99=no 11476ac_save_CC=$CC 11477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479#include <stdarg.h> 11480#include <stdbool.h> 11481#include <stdlib.h> 11482#include <wchar.h> 11483#include <stdio.h> 11484 11485// Check varargs macros. These examples are taken from C99 6.10.3.5. 11486#define debug(...) fprintf (stderr, __VA_ARGS__) 11487#define showlist(...) puts (#__VA_ARGS__) 11488#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11489static void 11490test_varargs_macros (void) 11491{ 11492 int x = 1234; 11493 int y = 5678; 11494 debug ("Flag"); 11495 debug ("X = %d\n", x); 11496 showlist (The first, second, and third items.); 11497 report (x>y, "x is %d but y is %d", x, y); 11498} 11499 11500// Check long long types. 11501#define BIG64 18446744073709551615ull 11502#define BIG32 4294967295ul 11503#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11504#if !BIG_OK 11505 your preprocessor is broken; 11506#endif 11507#if BIG_OK 11508#else 11509 your preprocessor is broken; 11510#endif 11511static long long int bignum = -9223372036854775807LL; 11512static unsigned long long int ubignum = BIG64; 11513 11514struct incomplete_array 11515{ 11516 int datasize; 11517 double data[]; 11518}; 11519 11520struct named_init { 11521 int number; 11522 const wchar_t *name; 11523 double average; 11524}; 11525 11526typedef const char *ccp; 11527 11528static inline int 11529test_restrict (ccp restrict text) 11530{ 11531 // See if C++-style comments work. 11532 // Iterate through items via the restricted pointer. 11533 // Also check for declarations in for loops. 11534 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11535 continue; 11536 return 0; 11537} 11538 11539// Check varargs and va_copy. 11540static void 11541test_varargs (const char *format, ...) 11542{ 11543 va_list args; 11544 va_start (args, format); 11545 va_list args_copy; 11546 va_copy (args_copy, args); 11547 11548 const char *str; 11549 int number; 11550 float fnumber; 11551 11552 while (*format) 11553 { 11554 switch (*format++) 11555 { 11556 case 's': // string 11557 str = va_arg (args_copy, const char *); 11558 break; 11559 case 'd': // int 11560 number = va_arg (args_copy, int); 11561 break; 11562 case 'f': // float 11563 fnumber = va_arg (args_copy, double); 11564 break; 11565 default: 11566 break; 11567 } 11568 } 11569 va_end (args_copy); 11570 va_end (args); 11571} 11572 11573int 11574main () 11575{ 11576 11577 // Check bool. 11578 _Bool success = false; 11579 11580 // Check restrict. 11581 if (test_restrict ("String literal") == 0) 11582 success = true; 11583 char *restrict newvar = "Another string"; 11584 11585 // Check varargs. 11586 test_varargs ("s, d' f .", "string", 65, 34.234); 11587 test_varargs_macros (); 11588 11589 // Check flexible array members. 11590 struct incomplete_array *ia = 11591 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11592 ia->datasize = 10; 11593 for (int i = 0; i < ia->datasize; ++i) 11594 ia->data[i] = i * 1.234; 11595 11596 // Check named initializers. 11597 struct named_init ni = { 11598 .number = 34, 11599 .name = L"Test wide string", 11600 .average = 543.34343, 11601 }; 11602 11603 ni.number = 58; 11604 11605 int dynamic_array[ni.number]; 11606 dynamic_array[ni.number - 1] = 543; 11607 11608 // work around unused variable warnings 11609 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11610 || dynamic_array[ni.number - 1] != 543); 11611 11612 ; 11613 return 0; 11614} 11615_ACEOF 11616for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11617do 11618 CC="$ac_save_CC $ac_arg" 11619 if ac_fn_c_try_compile "$LINENO"; then : 11620 ac_cv_prog_cc_c99=$ac_arg 11621fi 11622rm -f core conftest.err conftest.$ac_objext 11623 test "x$ac_cv_prog_cc_c99" != "xno" && break 11624done 11625rm -f conftest.$ac_ext 11626CC=$ac_save_CC 11627 11628fi 11629# AC_CACHE_VAL 11630case "x$ac_cv_prog_cc_c99" in 11631 x) 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11633$as_echo "none needed" >&6; } ;; 11634 xno) 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11636$as_echo "unsupported" >&6; } ;; 11637 *) 11638 CC="$CC $ac_cv_prog_cc_c99" 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11640$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11641esac 11642if test "x$ac_cv_prog_cc_c99" != xno; then : 11643 11644fi 11645 11646 11647 11648 11649 11650 11651ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11652if test "x$ac_cv_have_decl___clang__" = xyes; then : 11653 CLANGCC="yes" 11654else 11655 CLANGCC="no" 11656fi 11657 11658ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11659if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11660 INTELCC="yes" 11661else 11662 INTELCC="no" 11663fi 11664 11665ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11666if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11667 SUNCC="yes" 11668else 11669 SUNCC="no" 11670fi 11671 11672 11673 11674 11675if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11676 if test -n "$ac_tool_prefix"; then 11677 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11678set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11680$as_echo_n "checking for $ac_word... " >&6; } 11681if ${ac_cv_path_PKG_CONFIG+:} false; then : 11682 $as_echo_n "(cached) " >&6 11683else 11684 case $PKG_CONFIG in 11685 [\\/]* | ?:[\\/]*) 11686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11687 ;; 11688 *) 11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11690for as_dir in $PATH 11691do 11692 IFS=$as_save_IFS 11693 test -z "$as_dir" && as_dir=. 11694 for ac_exec_ext in '' $ac_executable_extensions; do 11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11698 break 2 11699 fi 11700done 11701 done 11702IFS=$as_save_IFS 11703 11704 ;; 11705esac 11706fi 11707PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11708if test -n "$PKG_CONFIG"; then 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11710$as_echo "$PKG_CONFIG" >&6; } 11711else 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11713$as_echo "no" >&6; } 11714fi 11715 11716 11717fi 11718if test -z "$ac_cv_path_PKG_CONFIG"; then 11719 ac_pt_PKG_CONFIG=$PKG_CONFIG 11720 # Extract the first word of "pkg-config", so it can be a program name with args. 11721set dummy pkg-config; ac_word=$2 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11723$as_echo_n "checking for $ac_word... " >&6; } 11724if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11725 $as_echo_n "(cached) " >&6 11726else 11727 case $ac_pt_PKG_CONFIG in 11728 [\\/]* | ?:[\\/]*) 11729 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11730 ;; 11731 *) 11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11733for as_dir in $PATH 11734do 11735 IFS=$as_save_IFS 11736 test -z "$as_dir" && as_dir=. 11737 for ac_exec_ext in '' $ac_executable_extensions; do 11738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11739 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11741 break 2 11742 fi 11743done 11744 done 11745IFS=$as_save_IFS 11746 11747 ;; 11748esac 11749fi 11750ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11751if test -n "$ac_pt_PKG_CONFIG"; then 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11753$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11754else 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11756$as_echo "no" >&6; } 11757fi 11758 11759 if test "x$ac_pt_PKG_CONFIG" = x; then 11760 PKG_CONFIG="" 11761 else 11762 case $cross_compiling:$ac_tool_warned in 11763yes:) 11764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11766ac_tool_warned=yes ;; 11767esac 11768 PKG_CONFIG=$ac_pt_PKG_CONFIG 11769 fi 11770else 11771 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11772fi 11773 11774fi 11775if test -n "$PKG_CONFIG"; then 11776 _pkg_min_version=0.9.0 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11778$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11779 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11781$as_echo "yes" >&6; } 11782 else 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11784$as_echo "no" >&6; } 11785 PKG_CONFIG="" 11786 fi 11787 11788fi 11789 11790 11791 11792 11793 11794# Check whether --enable-selective-werror was given. 11795if test "${enable_selective_werror+set}" = set; then : 11796 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11797else 11798 SELECTIVE_WERROR=yes 11799fi 11800 11801 11802 11803 11804 11805# -v is too short to test reliably with XORG_TESTSET_CFLAG 11806if test "x$SUNCC" = "xyes"; then 11807 BASE_CFLAGS="-v" 11808else 11809 BASE_CFLAGS="" 11810fi 11811 11812# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824xorg_testset_save_CFLAGS="$CFLAGS" 11825 11826if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11829$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11830if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11831 $as_echo_n "(cached) " >&6 11832else 11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11834/* end confdefs.h. */ 11835int i; 11836_ACEOF 11837if ac_fn_c_try_compile "$LINENO"; then : 11838 xorg_cv_compiler_flag_unknown_warning_option=yes 11839else 11840 xorg_cv_compiler_flag_unknown_warning_option=no 11841fi 11842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11843fi 11844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11845$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11846 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11847 CFLAGS="$xorg_testset_save_CFLAGS" 11848fi 11849 11850if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11851 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11853 fi 11854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11856$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11857if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11858 $as_echo_n "(cached) " >&6 11859else 11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11861/* end confdefs.h. */ 11862int i; 11863_ACEOF 11864if ac_fn_c_try_compile "$LINENO"; then : 11865 xorg_cv_compiler_flag_unused_command_line_argument=yes 11866else 11867 xorg_cv_compiler_flag_unused_command_line_argument=no 11868fi 11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11870fi 11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11872$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11873 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11874 CFLAGS="$xorg_testset_save_CFLAGS" 11875fi 11876 11877found="no" 11878 11879 if test $found = "no" ; then 11880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11882 fi 11883 11884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11886 fi 11887 11888 CFLAGS="$CFLAGS -Wall" 11889 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11891$as_echo_n "checking if $CC supports -Wall... " >&6; } 11892 cacheid=`$as_echo xorg_cv_cc_flag_-Wall` 11893 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11897/* end confdefs.h. */ 11898int i; 11899int 11900main () 11901{ 11902 11903 ; 11904 return 0; 11905} 11906_ACEOF 11907if ac_fn_c_try_link "$LINENO"; then : 11908 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11909else 11910 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11911fi 11912rm -f core conftest.err conftest.$ac_objext \ 11913 conftest$ac_exeext conftest.$ac_ext 11914fi 11915 11916 11917 CFLAGS="$xorg_testset_save_CFLAGS" 11918 11919 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11921$as_echo "$supported" >&6; } 11922 if test "$supported" = "yes" ; then 11923 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11924 found="yes" 11925 fi 11926 fi 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940xorg_testset_save_CFLAGS="$CFLAGS" 11941 11942if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11945$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11946if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11947 $as_echo_n "(cached) " >&6 11948else 11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11950/* end confdefs.h. */ 11951int i; 11952_ACEOF 11953if ac_fn_c_try_compile "$LINENO"; then : 11954 xorg_cv_compiler_flag_unknown_warning_option=yes 11955else 11956 xorg_cv_compiler_flag_unknown_warning_option=no 11957fi 11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11959fi 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11961$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11962 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11963 CFLAGS="$xorg_testset_save_CFLAGS" 11964fi 11965 11966if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11969 fi 11970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11972$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11973if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975else 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978int i; 11979_ACEOF 11980if ac_fn_c_try_compile "$LINENO"; then : 11981 xorg_cv_compiler_flag_unused_command_line_argument=yes 11982else 11983 xorg_cv_compiler_flag_unused_command_line_argument=no 11984fi 11985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11986fi 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11988$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11989 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11990 CFLAGS="$xorg_testset_save_CFLAGS" 11991fi 11992 11993found="no" 11994 11995 if test $found = "no" ; then 11996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11998 fi 11999 12000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12002 fi 12003 12004 CFLAGS="$CFLAGS -Wpointer-arith" 12005 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12007$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12008 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` 12009 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12010 $as_echo_n "(cached) " >&6 12011else 12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12013/* end confdefs.h. */ 12014int i; 12015int 12016main () 12017{ 12018 12019 ; 12020 return 0; 12021} 12022_ACEOF 12023if ac_fn_c_try_link "$LINENO"; then : 12024 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12025else 12026 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12027fi 12028rm -f core conftest.err conftest.$ac_objext \ 12029 conftest$ac_exeext conftest.$ac_ext 12030fi 12031 12032 12033 CFLAGS="$xorg_testset_save_CFLAGS" 12034 12035 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12037$as_echo "$supported" >&6; } 12038 if test "$supported" = "yes" ; then 12039 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12040 found="yes" 12041 fi 12042 fi 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056xorg_testset_save_CFLAGS="$CFLAGS" 12057 12058if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12061$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12062if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12063 $as_echo_n "(cached) " >&6 12064else 12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12066/* end confdefs.h. */ 12067int i; 12068_ACEOF 12069if ac_fn_c_try_compile "$LINENO"; then : 12070 xorg_cv_compiler_flag_unknown_warning_option=yes 12071else 12072 xorg_cv_compiler_flag_unknown_warning_option=no 12073fi 12074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12075fi 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12077$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12078 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12079 CFLAGS="$xorg_testset_save_CFLAGS" 12080fi 12081 12082if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12083 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12085 fi 12086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12088$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12089if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12090 $as_echo_n "(cached) " >&6 12091else 12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12093/* end confdefs.h. */ 12094int i; 12095_ACEOF 12096if ac_fn_c_try_compile "$LINENO"; then : 12097 xorg_cv_compiler_flag_unused_command_line_argument=yes 12098else 12099 xorg_cv_compiler_flag_unused_command_line_argument=no 12100fi 12101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12102fi 12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12104$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12105 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12106 CFLAGS="$xorg_testset_save_CFLAGS" 12107fi 12108 12109found="no" 12110 12111 if test $found = "no" ; then 12112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12114 fi 12115 12116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12118 fi 12119 12120 CFLAGS="$CFLAGS -Wmissing-declarations" 12121 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12123$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12124 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` 12125 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12129/* end confdefs.h. */ 12130int i; 12131int 12132main () 12133{ 12134 12135 ; 12136 return 0; 12137} 12138_ACEOF 12139if ac_fn_c_try_link "$LINENO"; then : 12140 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12141else 12142 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12143fi 12144rm -f core conftest.err conftest.$ac_objext \ 12145 conftest$ac_exeext conftest.$ac_ext 12146fi 12147 12148 12149 CFLAGS="$xorg_testset_save_CFLAGS" 12150 12151 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12153$as_echo "$supported" >&6; } 12154 if test "$supported" = "yes" ; then 12155 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12156 found="yes" 12157 fi 12158 fi 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172xorg_testset_save_CFLAGS="$CFLAGS" 12173 12174if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12177$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12178if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12179 $as_echo_n "(cached) " >&6 12180else 12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12182/* end confdefs.h. */ 12183int i; 12184_ACEOF 12185if ac_fn_c_try_compile "$LINENO"; then : 12186 xorg_cv_compiler_flag_unknown_warning_option=yes 12187else 12188 xorg_cv_compiler_flag_unknown_warning_option=no 12189fi 12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12191fi 12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12193$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12194 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12195 CFLAGS="$xorg_testset_save_CFLAGS" 12196fi 12197 12198if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12201 fi 12202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12204$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12205if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12206 $as_echo_n "(cached) " >&6 12207else 12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12209/* end confdefs.h. */ 12210int i; 12211_ACEOF 12212if ac_fn_c_try_compile "$LINENO"; then : 12213 xorg_cv_compiler_flag_unused_command_line_argument=yes 12214else 12215 xorg_cv_compiler_flag_unused_command_line_argument=no 12216fi 12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12218fi 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12220$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12221 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12222 CFLAGS="$xorg_testset_save_CFLAGS" 12223fi 12224 12225found="no" 12226 12227 if test $found = "no" ; then 12228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12230 fi 12231 12232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12234 fi 12235 12236 CFLAGS="$CFLAGS -Wformat=2" 12237 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12239$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12240 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` 12241 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12242 $as_echo_n "(cached) " >&6 12243else 12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246int i; 12247int 12248main () 12249{ 12250 12251 ; 12252 return 0; 12253} 12254_ACEOF 12255if ac_fn_c_try_link "$LINENO"; then : 12256 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12257else 12258 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12259fi 12260rm -f core conftest.err conftest.$ac_objext \ 12261 conftest$ac_exeext conftest.$ac_ext 12262fi 12263 12264 12265 CFLAGS="$xorg_testset_save_CFLAGS" 12266 12267 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12269$as_echo "$supported" >&6; } 12270 if test "$supported" = "yes" ; then 12271 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12272 found="yes" 12273 fi 12274 fi 12275 12276 if test $found = "no" ; then 12277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12279 fi 12280 12281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12283 fi 12284 12285 CFLAGS="$CFLAGS -Wformat" 12286 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12288$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12289 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` 12290 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12291 $as_echo_n "(cached) " >&6 12292else 12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12294/* end confdefs.h. */ 12295int i; 12296int 12297main () 12298{ 12299 12300 ; 12301 return 0; 12302} 12303_ACEOF 12304if ac_fn_c_try_link "$LINENO"; then : 12305 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12306else 12307 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12308fi 12309rm -f core conftest.err conftest.$ac_objext \ 12310 conftest$ac_exeext conftest.$ac_ext 12311fi 12312 12313 12314 CFLAGS="$xorg_testset_save_CFLAGS" 12315 12316 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12318$as_echo "$supported" >&6; } 12319 if test "$supported" = "yes" ; then 12320 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12321 found="yes" 12322 fi 12323 fi 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339xorg_testset_save_CFLAGS="$CFLAGS" 12340 12341if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12344$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12345if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12346 $as_echo_n "(cached) " >&6 12347else 12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349/* end confdefs.h. */ 12350int i; 12351_ACEOF 12352if ac_fn_c_try_compile "$LINENO"; then : 12353 xorg_cv_compiler_flag_unknown_warning_option=yes 12354else 12355 xorg_cv_compiler_flag_unknown_warning_option=no 12356fi 12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12358fi 12359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12360$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12361 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12362 CFLAGS="$xorg_testset_save_CFLAGS" 12363fi 12364 12365if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12368 fi 12369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12371$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12372if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12373 $as_echo_n "(cached) " >&6 12374else 12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12376/* end confdefs.h. */ 12377int i; 12378_ACEOF 12379if ac_fn_c_try_compile "$LINENO"; then : 12380 xorg_cv_compiler_flag_unused_command_line_argument=yes 12381else 12382 xorg_cv_compiler_flag_unused_command_line_argument=no 12383fi 12384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12385fi 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12387$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12388 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12389 CFLAGS="$xorg_testset_save_CFLAGS" 12390fi 12391 12392found="no" 12393 12394 if test $found = "no" ; then 12395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12397 fi 12398 12399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12401 fi 12402 12403 CFLAGS="$CFLAGS -Wstrict-prototypes" 12404 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12406$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12407 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` 12408 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12409 $as_echo_n "(cached) " >&6 12410else 12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12412/* end confdefs.h. */ 12413int i; 12414int 12415main () 12416{ 12417 12418 ; 12419 return 0; 12420} 12421_ACEOF 12422if ac_fn_c_try_link "$LINENO"; then : 12423 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12424else 12425 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12426fi 12427rm -f core conftest.err conftest.$ac_objext \ 12428 conftest$ac_exeext conftest.$ac_ext 12429fi 12430 12431 12432 CFLAGS="$xorg_testset_save_CFLAGS" 12433 12434 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12436$as_echo "$supported" >&6; } 12437 if test "$supported" = "yes" ; then 12438 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12439 found="yes" 12440 fi 12441 fi 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455xorg_testset_save_CFLAGS="$CFLAGS" 12456 12457if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12460$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12461if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12462 $as_echo_n "(cached) " >&6 12463else 12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12465/* end confdefs.h. */ 12466int i; 12467_ACEOF 12468if ac_fn_c_try_compile "$LINENO"; then : 12469 xorg_cv_compiler_flag_unknown_warning_option=yes 12470else 12471 xorg_cv_compiler_flag_unknown_warning_option=no 12472fi 12473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12474fi 12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12476$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12477 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12478 CFLAGS="$xorg_testset_save_CFLAGS" 12479fi 12480 12481if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12484 fi 12485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12487$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12488if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490else 12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12492/* end confdefs.h. */ 12493int i; 12494_ACEOF 12495if ac_fn_c_try_compile "$LINENO"; then : 12496 xorg_cv_compiler_flag_unused_command_line_argument=yes 12497else 12498 xorg_cv_compiler_flag_unused_command_line_argument=no 12499fi 12500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12501fi 12502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12503$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12504 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12505 CFLAGS="$xorg_testset_save_CFLAGS" 12506fi 12507 12508found="no" 12509 12510 if test $found = "no" ; then 12511 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12513 fi 12514 12515 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12517 fi 12518 12519 CFLAGS="$CFLAGS -Wmissing-prototypes" 12520 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12522$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12523 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` 12524 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12525 $as_echo_n "(cached) " >&6 12526else 12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12528/* end confdefs.h. */ 12529int i; 12530int 12531main () 12532{ 12533 12534 ; 12535 return 0; 12536} 12537_ACEOF 12538if ac_fn_c_try_link "$LINENO"; then : 12539 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12540else 12541 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12542fi 12543rm -f core conftest.err conftest.$ac_objext \ 12544 conftest$ac_exeext conftest.$ac_ext 12545fi 12546 12547 12548 CFLAGS="$xorg_testset_save_CFLAGS" 12549 12550 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12552$as_echo "$supported" >&6; } 12553 if test "$supported" = "yes" ; then 12554 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12555 found="yes" 12556 fi 12557 fi 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571xorg_testset_save_CFLAGS="$CFLAGS" 12572 12573if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12576$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12577if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12578 $as_echo_n "(cached) " >&6 12579else 12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12581/* end confdefs.h. */ 12582int i; 12583_ACEOF 12584if ac_fn_c_try_compile "$LINENO"; then : 12585 xorg_cv_compiler_flag_unknown_warning_option=yes 12586else 12587 xorg_cv_compiler_flag_unknown_warning_option=no 12588fi 12589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12590fi 12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12592$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12593 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12594 CFLAGS="$xorg_testset_save_CFLAGS" 12595fi 12596 12597if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12600 fi 12601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12603$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12604if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12605 $as_echo_n "(cached) " >&6 12606else 12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12608/* end confdefs.h. */ 12609int i; 12610_ACEOF 12611if ac_fn_c_try_compile "$LINENO"; then : 12612 xorg_cv_compiler_flag_unused_command_line_argument=yes 12613else 12614 xorg_cv_compiler_flag_unused_command_line_argument=no 12615fi 12616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12617fi 12618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12619$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12620 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12621 CFLAGS="$xorg_testset_save_CFLAGS" 12622fi 12623 12624found="no" 12625 12626 if test $found = "no" ; then 12627 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12629 fi 12630 12631 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12633 fi 12634 12635 CFLAGS="$CFLAGS -Wnested-externs" 12636 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12638$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12639 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` 12640 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12641 $as_echo_n "(cached) " >&6 12642else 12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645int i; 12646int 12647main () 12648{ 12649 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654if ac_fn_c_try_link "$LINENO"; then : 12655 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12656else 12657 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12658fi 12659rm -f core conftest.err conftest.$ac_objext \ 12660 conftest$ac_exeext conftest.$ac_ext 12661fi 12662 12663 12664 CFLAGS="$xorg_testset_save_CFLAGS" 12665 12666 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12668$as_echo "$supported" >&6; } 12669 if test "$supported" = "yes" ; then 12670 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12671 found="yes" 12672 fi 12673 fi 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687xorg_testset_save_CFLAGS="$CFLAGS" 12688 12689if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12692$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12693if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698int i; 12699_ACEOF 12700if ac_fn_c_try_compile "$LINENO"; then : 12701 xorg_cv_compiler_flag_unknown_warning_option=yes 12702else 12703 xorg_cv_compiler_flag_unknown_warning_option=no 12704fi 12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12706fi 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12708$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12709 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12710 CFLAGS="$xorg_testset_save_CFLAGS" 12711fi 12712 12713if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12716 fi 12717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12719$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12720if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12721 $as_echo_n "(cached) " >&6 12722else 12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12724/* end confdefs.h. */ 12725int i; 12726_ACEOF 12727if ac_fn_c_try_compile "$LINENO"; then : 12728 xorg_cv_compiler_flag_unused_command_line_argument=yes 12729else 12730 xorg_cv_compiler_flag_unused_command_line_argument=no 12731fi 12732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12733fi 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12735$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12736 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12737 CFLAGS="$xorg_testset_save_CFLAGS" 12738fi 12739 12740found="no" 12741 12742 if test $found = "no" ; then 12743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12745 fi 12746 12747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12749 fi 12750 12751 CFLAGS="$CFLAGS -Wbad-function-cast" 12752 12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12754$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12755 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` 12756 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12757 $as_echo_n "(cached) " >&6 12758else 12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12760/* end confdefs.h. */ 12761int i; 12762int 12763main () 12764{ 12765 12766 ; 12767 return 0; 12768} 12769_ACEOF 12770if ac_fn_c_try_link "$LINENO"; then : 12771 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12772else 12773 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12774fi 12775rm -f core conftest.err conftest.$ac_objext \ 12776 conftest$ac_exeext conftest.$ac_ext 12777fi 12778 12779 12780 CFLAGS="$xorg_testset_save_CFLAGS" 12781 12782 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12784$as_echo "$supported" >&6; } 12785 if test "$supported" = "yes" ; then 12786 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12787 found="yes" 12788 fi 12789 fi 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803xorg_testset_save_CFLAGS="$CFLAGS" 12804 12805if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12808$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12809if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12810 $as_echo_n "(cached) " >&6 12811else 12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12813/* end confdefs.h. */ 12814int i; 12815_ACEOF 12816if ac_fn_c_try_compile "$LINENO"; then : 12817 xorg_cv_compiler_flag_unknown_warning_option=yes 12818else 12819 xorg_cv_compiler_flag_unknown_warning_option=no 12820fi 12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12822fi 12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12824$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12825 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12826 CFLAGS="$xorg_testset_save_CFLAGS" 12827fi 12828 12829if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12830 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12832 fi 12833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12835$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12836if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838else 12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840/* end confdefs.h. */ 12841int i; 12842_ACEOF 12843if ac_fn_c_try_compile "$LINENO"; then : 12844 xorg_cv_compiler_flag_unused_command_line_argument=yes 12845else 12846 xorg_cv_compiler_flag_unused_command_line_argument=no 12847fi 12848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12849fi 12850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12851$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12852 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12853 CFLAGS="$xorg_testset_save_CFLAGS" 12854fi 12855 12856found="no" 12857 12858 if test $found = "no" ; then 12859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12861 fi 12862 12863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12865 fi 12866 12867 CFLAGS="$CFLAGS -Wold-style-definition" 12868 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12870$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12871 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` 12872 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12873 $as_echo_n "(cached) " >&6 12874else 12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12876/* end confdefs.h. */ 12877int i; 12878int 12879main () 12880{ 12881 12882 ; 12883 return 0; 12884} 12885_ACEOF 12886if ac_fn_c_try_link "$LINENO"; then : 12887 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12888else 12889 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12890fi 12891rm -f core conftest.err conftest.$ac_objext \ 12892 conftest$ac_exeext conftest.$ac_ext 12893fi 12894 12895 12896 CFLAGS="$xorg_testset_save_CFLAGS" 12897 12898 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12900$as_echo "$supported" >&6; } 12901 if test "$supported" = "yes" ; then 12902 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12903 found="yes" 12904 fi 12905 fi 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919xorg_testset_save_CFLAGS="$CFLAGS" 12920 12921if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12924$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12925if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12926 $as_echo_n "(cached) " >&6 12927else 12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929/* end confdefs.h. */ 12930int i; 12931_ACEOF 12932if ac_fn_c_try_compile "$LINENO"; then : 12933 xorg_cv_compiler_flag_unknown_warning_option=yes 12934else 12935 xorg_cv_compiler_flag_unknown_warning_option=no 12936fi 12937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12938fi 12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12940$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12941 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12942 CFLAGS="$xorg_testset_save_CFLAGS" 12943fi 12944 12945if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12948 fi 12949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12951$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12952if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12953 $as_echo_n "(cached) " >&6 12954else 12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12956/* end confdefs.h. */ 12957int i; 12958_ACEOF 12959if ac_fn_c_try_compile "$LINENO"; then : 12960 xorg_cv_compiler_flag_unused_command_line_argument=yes 12961else 12962 xorg_cv_compiler_flag_unused_command_line_argument=no 12963fi 12964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12965fi 12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12967$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12968 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12969 CFLAGS="$xorg_testset_save_CFLAGS" 12970fi 12971 12972found="no" 12973 12974 if test $found = "no" ; then 12975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12977 fi 12978 12979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12981 fi 12982 12983 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12984 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12986$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12987 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` 12988 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12989 $as_echo_n "(cached) " >&6 12990else 12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12992/* end confdefs.h. */ 12993int i; 12994int 12995main () 12996{ 12997 12998 ; 12999 return 0; 13000} 13001_ACEOF 13002if ac_fn_c_try_link "$LINENO"; then : 13003 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13004else 13005 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13006fi 13007rm -f core conftest.err conftest.$ac_objext \ 13008 conftest$ac_exeext conftest.$ac_ext 13009fi 13010 13011 13012 CFLAGS="$xorg_testset_save_CFLAGS" 13013 13014 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13016$as_echo "$supported" >&6; } 13017 if test "$supported" = "yes" ; then 13018 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13019 found="yes" 13020 fi 13021 fi 13022 13023 13024 13025 13026 13027# This chunk adds additional warnings that could catch undesired effects. 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039xorg_testset_save_CFLAGS="$CFLAGS" 13040 13041if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13044$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13045if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13046 $as_echo_n "(cached) " >&6 13047else 13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13049/* end confdefs.h. */ 13050int i; 13051_ACEOF 13052if ac_fn_c_try_compile "$LINENO"; then : 13053 xorg_cv_compiler_flag_unknown_warning_option=yes 13054else 13055 xorg_cv_compiler_flag_unknown_warning_option=no 13056fi 13057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13058fi 13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13060$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13061 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13062 CFLAGS="$xorg_testset_save_CFLAGS" 13063fi 13064 13065if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13068 fi 13069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13071$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13072if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074else 13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13076/* end confdefs.h. */ 13077int i; 13078_ACEOF 13079if ac_fn_c_try_compile "$LINENO"; then : 13080 xorg_cv_compiler_flag_unused_command_line_argument=yes 13081else 13082 xorg_cv_compiler_flag_unused_command_line_argument=no 13083fi 13084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13085fi 13086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13087$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13088 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13089 CFLAGS="$xorg_testset_save_CFLAGS" 13090fi 13091 13092found="no" 13093 13094 if test $found = "no" ; then 13095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13097 fi 13098 13099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13101 fi 13102 13103 CFLAGS="$CFLAGS -Wunused" 13104 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13106$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13107 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` 13108 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13109 $as_echo_n "(cached) " >&6 13110else 13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13112/* end confdefs.h. */ 13113int i; 13114int 13115main () 13116{ 13117 13118 ; 13119 return 0; 13120} 13121_ACEOF 13122if ac_fn_c_try_link "$LINENO"; then : 13123 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13124else 13125 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13126fi 13127rm -f core conftest.err conftest.$ac_objext \ 13128 conftest$ac_exeext conftest.$ac_ext 13129fi 13130 13131 13132 CFLAGS="$xorg_testset_save_CFLAGS" 13133 13134 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13136$as_echo "$supported" >&6; } 13137 if test "$supported" = "yes" ; then 13138 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13139 found="yes" 13140 fi 13141 fi 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155xorg_testset_save_CFLAGS="$CFLAGS" 13156 13157if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13160$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13161if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13162 $as_echo_n "(cached) " >&6 13163else 13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13165/* end confdefs.h. */ 13166int i; 13167_ACEOF 13168if ac_fn_c_try_compile "$LINENO"; then : 13169 xorg_cv_compiler_flag_unknown_warning_option=yes 13170else 13171 xorg_cv_compiler_flag_unknown_warning_option=no 13172fi 13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13174fi 13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13176$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13177 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13178 CFLAGS="$xorg_testset_save_CFLAGS" 13179fi 13180 13181if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13184 fi 13185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13187$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13188if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13189 $as_echo_n "(cached) " >&6 13190else 13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13192/* end confdefs.h. */ 13193int i; 13194_ACEOF 13195if ac_fn_c_try_compile "$LINENO"; then : 13196 xorg_cv_compiler_flag_unused_command_line_argument=yes 13197else 13198 xorg_cv_compiler_flag_unused_command_line_argument=no 13199fi 13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13201fi 13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13203$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13204 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13205 CFLAGS="$xorg_testset_save_CFLAGS" 13206fi 13207 13208found="no" 13209 13210 if test $found = "no" ; then 13211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13213 fi 13214 13215 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13217 fi 13218 13219 CFLAGS="$CFLAGS -Wuninitialized" 13220 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13222$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13223 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` 13224 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13225 $as_echo_n "(cached) " >&6 13226else 13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13228/* end confdefs.h. */ 13229int i; 13230int 13231main () 13232{ 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_link "$LINENO"; then : 13239 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13240else 13241 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13242fi 13243rm -f core conftest.err conftest.$ac_objext \ 13244 conftest$ac_exeext conftest.$ac_ext 13245fi 13246 13247 13248 CFLAGS="$xorg_testset_save_CFLAGS" 13249 13250 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13252$as_echo "$supported" >&6; } 13253 if test "$supported" = "yes" ; then 13254 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13255 found="yes" 13256 fi 13257 fi 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271xorg_testset_save_CFLAGS="$CFLAGS" 13272 13273if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13276$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13277if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13278 $as_echo_n "(cached) " >&6 13279else 13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13281/* end confdefs.h. */ 13282int i; 13283_ACEOF 13284if ac_fn_c_try_compile "$LINENO"; then : 13285 xorg_cv_compiler_flag_unknown_warning_option=yes 13286else 13287 xorg_cv_compiler_flag_unknown_warning_option=no 13288fi 13289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13290fi 13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13292$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13293 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13294 CFLAGS="$xorg_testset_save_CFLAGS" 13295fi 13296 13297if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13298 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13300 fi 13301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13303$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13304if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13305 $as_echo_n "(cached) " >&6 13306else 13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13308/* end confdefs.h. */ 13309int i; 13310_ACEOF 13311if ac_fn_c_try_compile "$LINENO"; then : 13312 xorg_cv_compiler_flag_unused_command_line_argument=yes 13313else 13314 xorg_cv_compiler_flag_unused_command_line_argument=no 13315fi 13316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13317fi 13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13319$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13320 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13321 CFLAGS="$xorg_testset_save_CFLAGS" 13322fi 13323 13324found="no" 13325 13326 if test $found = "no" ; then 13327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13329 fi 13330 13331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13333 fi 13334 13335 CFLAGS="$CFLAGS -Wshadow" 13336 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13338$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13339 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` 13340 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13341 $as_echo_n "(cached) " >&6 13342else 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345int i; 13346int 13347main () 13348{ 13349 13350 ; 13351 return 0; 13352} 13353_ACEOF 13354if ac_fn_c_try_link "$LINENO"; then : 13355 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13356else 13357 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13358fi 13359rm -f core conftest.err conftest.$ac_objext \ 13360 conftest$ac_exeext conftest.$ac_ext 13361fi 13362 13363 13364 CFLAGS="$xorg_testset_save_CFLAGS" 13365 13366 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13368$as_echo "$supported" >&6; } 13369 if test "$supported" = "yes" ; then 13370 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13371 found="yes" 13372 fi 13373 fi 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387xorg_testset_save_CFLAGS="$CFLAGS" 13388 13389if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13392$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13393if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13394 $as_echo_n "(cached) " >&6 13395else 13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13397/* end confdefs.h. */ 13398int i; 13399_ACEOF 13400if ac_fn_c_try_compile "$LINENO"; then : 13401 xorg_cv_compiler_flag_unknown_warning_option=yes 13402else 13403 xorg_cv_compiler_flag_unknown_warning_option=no 13404fi 13405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13406fi 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13408$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13409 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13410 CFLAGS="$xorg_testset_save_CFLAGS" 13411fi 13412 13413if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13416 fi 13417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13419$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13420if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13421 $as_echo_n "(cached) " >&6 13422else 13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13424/* end confdefs.h. */ 13425int i; 13426_ACEOF 13427if ac_fn_c_try_compile "$LINENO"; then : 13428 xorg_cv_compiler_flag_unused_command_line_argument=yes 13429else 13430 xorg_cv_compiler_flag_unused_command_line_argument=no 13431fi 13432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13433fi 13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13435$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13436 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13437 CFLAGS="$xorg_testset_save_CFLAGS" 13438fi 13439 13440found="no" 13441 13442 if test $found = "no" ; then 13443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13445 fi 13446 13447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13449 fi 13450 13451 CFLAGS="$CFLAGS -Wcast-qual" 13452 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13454$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13455 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` 13456 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13457 $as_echo_n "(cached) " >&6 13458else 13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13460/* end confdefs.h. */ 13461int i; 13462int 13463main () 13464{ 13465 13466 ; 13467 return 0; 13468} 13469_ACEOF 13470if ac_fn_c_try_link "$LINENO"; then : 13471 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13472else 13473 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13474fi 13475rm -f core conftest.err conftest.$ac_objext \ 13476 conftest$ac_exeext conftest.$ac_ext 13477fi 13478 13479 13480 CFLAGS="$xorg_testset_save_CFLAGS" 13481 13482 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13484$as_echo "$supported" >&6; } 13485 if test "$supported" = "yes" ; then 13486 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13487 found="yes" 13488 fi 13489 fi 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503xorg_testset_save_CFLAGS="$CFLAGS" 13504 13505if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13508$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13509if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13510 $as_echo_n "(cached) " >&6 13511else 13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13513/* end confdefs.h. */ 13514int i; 13515_ACEOF 13516if ac_fn_c_try_compile "$LINENO"; then : 13517 xorg_cv_compiler_flag_unknown_warning_option=yes 13518else 13519 xorg_cv_compiler_flag_unknown_warning_option=no 13520fi 13521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13522fi 13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13524$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13525 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13526 CFLAGS="$xorg_testset_save_CFLAGS" 13527fi 13528 13529if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13532 fi 13533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13535$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13536if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13537 $as_echo_n "(cached) " >&6 13538else 13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13540/* end confdefs.h. */ 13541int i; 13542_ACEOF 13543if ac_fn_c_try_compile "$LINENO"; then : 13544 xorg_cv_compiler_flag_unused_command_line_argument=yes 13545else 13546 xorg_cv_compiler_flag_unused_command_line_argument=no 13547fi 13548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13549fi 13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13551$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13552 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13553 CFLAGS="$xorg_testset_save_CFLAGS" 13554fi 13555 13556found="no" 13557 13558 if test $found = "no" ; then 13559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13561 fi 13562 13563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13565 fi 13566 13567 CFLAGS="$CFLAGS -Wmissing-noreturn" 13568 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13570$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13571 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` 13572 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13573 $as_echo_n "(cached) " >&6 13574else 13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13576/* end confdefs.h. */ 13577int i; 13578int 13579main () 13580{ 13581 13582 ; 13583 return 0; 13584} 13585_ACEOF 13586if ac_fn_c_try_link "$LINENO"; then : 13587 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13588else 13589 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13590fi 13591rm -f core conftest.err conftest.$ac_objext \ 13592 conftest$ac_exeext conftest.$ac_ext 13593fi 13594 13595 13596 CFLAGS="$xorg_testset_save_CFLAGS" 13597 13598 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13600$as_echo "$supported" >&6; } 13601 if test "$supported" = "yes" ; then 13602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13603 found="yes" 13604 fi 13605 fi 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619xorg_testset_save_CFLAGS="$CFLAGS" 13620 13621if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13624$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13625if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13626 $as_echo_n "(cached) " >&6 13627else 13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629/* end confdefs.h. */ 13630int i; 13631_ACEOF 13632if ac_fn_c_try_compile "$LINENO"; then : 13633 xorg_cv_compiler_flag_unknown_warning_option=yes 13634else 13635 xorg_cv_compiler_flag_unknown_warning_option=no 13636fi 13637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13638fi 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13640$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13641 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13642 CFLAGS="$xorg_testset_save_CFLAGS" 13643fi 13644 13645if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13646 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13648 fi 13649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13651$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13652if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13653 $as_echo_n "(cached) " >&6 13654else 13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656/* end confdefs.h. */ 13657int i; 13658_ACEOF 13659if ac_fn_c_try_compile "$LINENO"; then : 13660 xorg_cv_compiler_flag_unused_command_line_argument=yes 13661else 13662 xorg_cv_compiler_flag_unused_command_line_argument=no 13663fi 13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13665fi 13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13667$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13668 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13669 CFLAGS="$xorg_testset_save_CFLAGS" 13670fi 13671 13672found="no" 13673 13674 if test $found = "no" ; then 13675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13677 fi 13678 13679 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13681 fi 13682 13683 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13684 13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13686$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13687 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` 13688 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13689 $as_echo_n "(cached) " >&6 13690else 13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13692/* end confdefs.h. */ 13693int i; 13694int 13695main () 13696{ 13697 13698 ; 13699 return 0; 13700} 13701_ACEOF 13702if ac_fn_c_try_link "$LINENO"; then : 13703 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13704else 13705 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13706fi 13707rm -f core conftest.err conftest.$ac_objext \ 13708 conftest$ac_exeext conftest.$ac_ext 13709fi 13710 13711 13712 CFLAGS="$xorg_testset_save_CFLAGS" 13713 13714 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13716$as_echo "$supported" >&6; } 13717 if test "$supported" = "yes" ; then 13718 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13719 found="yes" 13720 fi 13721 fi 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735xorg_testset_save_CFLAGS="$CFLAGS" 13736 13737if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13740$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13741if ${xorg_cv_compiler_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_compiler_flag_unknown_warning_option=yes 13750else 13751 xorg_cv_compiler_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_compiler_flag_unknown_warning_option" >&5 13756$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13757 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_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 compiler supports -Werror=unused-command-line-argument" >&5 13767$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13768if ${xorg_cv_compiler_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_compiler_flag_unused_command_line_argument=yes 13777else 13778 xorg_cv_compiler_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_compiler_flag_unused_command_line_argument" >&5 13783$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13784 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_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_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 13795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13797 fi 13798 13799 CFLAGS="$CFLAGS -Wredundant-decls" 13800 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13802$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13803 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` 13804 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes 13820else 13821 eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh` 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 -Wredundant-decls" 13835 found="yes" 13836 fi 13837 fi 13838 13839 13840 13841# These are currently disabled because they are noisy. They will be enabled 13842# in the future once the codebase is sufficiently modernized to silence 13843# them. For now, I don't want them to drown out the other warnings. 13844# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13845# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13846# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13847 13848# Turn some warnings into errors, so we don't accidently get successful builds 13849# when there are problems that should be fixed. 13850 13851if test "x$SELECTIVE_WERROR" = "xyes" ; then 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863xorg_testset_save_CFLAGS="$CFLAGS" 13864 13865if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13868$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13869if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13870 $as_echo_n "(cached) " >&6 13871else 13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13873/* end confdefs.h. */ 13874int i; 13875_ACEOF 13876if ac_fn_c_try_compile "$LINENO"; then : 13877 xorg_cv_compiler_flag_unknown_warning_option=yes 13878else 13879 xorg_cv_compiler_flag_unknown_warning_option=no 13880fi 13881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13882fi 13883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13884$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13885 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13886 CFLAGS="$xorg_testset_save_CFLAGS" 13887fi 13888 13889if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13890 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13892 fi 13893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13895$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13896if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13897 $as_echo_n "(cached) " >&6 13898else 13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13900/* end confdefs.h. */ 13901int i; 13902_ACEOF 13903if ac_fn_c_try_compile "$LINENO"; then : 13904 xorg_cv_compiler_flag_unused_command_line_argument=yes 13905else 13906 xorg_cv_compiler_flag_unused_command_line_argument=no 13907fi 13908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13909fi 13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13911$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13912 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13913 CFLAGS="$xorg_testset_save_CFLAGS" 13914fi 13915 13916found="no" 13917 13918 if test $found = "no" ; then 13919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13921 fi 13922 13923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13925 fi 13926 13927 CFLAGS="$CFLAGS -Werror=implicit" 13928 13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13930$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13931 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` 13932 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13933 $as_echo_n "(cached) " >&6 13934else 13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13936/* end confdefs.h. */ 13937int i; 13938int 13939main () 13940{ 13941 13942 ; 13943 return 0; 13944} 13945_ACEOF 13946if ac_fn_c_try_link "$LINENO"; then : 13947 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13948else 13949 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13950fi 13951rm -f core conftest.err conftest.$ac_objext \ 13952 conftest$ac_exeext conftest.$ac_ext 13953fi 13954 13955 13956 CFLAGS="$xorg_testset_save_CFLAGS" 13957 13958 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13960$as_echo "$supported" >&6; } 13961 if test "$supported" = "yes" ; then 13962 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13963 found="yes" 13964 fi 13965 fi 13966 13967 if test $found = "no" ; then 13968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13970 fi 13971 13972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13974 fi 13975 13976 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13977 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13979$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13980 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 13981 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13982 $as_echo_n "(cached) " >&6 13983else 13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13985/* end confdefs.h. */ 13986int i; 13987int 13988main () 13989{ 13990 13991 ; 13992 return 0; 13993} 13994_ACEOF 13995if ac_fn_c_try_link "$LINENO"; then : 13996 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13997else 13998 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13999fi 14000rm -f core conftest.err conftest.$ac_objext \ 14001 conftest$ac_exeext conftest.$ac_ext 14002fi 14003 14004 14005 CFLAGS="$xorg_testset_save_CFLAGS" 14006 14007 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14009$as_echo "$supported" >&6; } 14010 if test "$supported" = "yes" ; then 14011 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14012 found="yes" 14013 fi 14014 fi 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028xorg_testset_save_CFLAGS="$CFLAGS" 14029 14030if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14033$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14034if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14035 $as_echo_n "(cached) " >&6 14036else 14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14038/* end confdefs.h. */ 14039int i; 14040_ACEOF 14041if ac_fn_c_try_compile "$LINENO"; then : 14042 xorg_cv_compiler_flag_unknown_warning_option=yes 14043else 14044 xorg_cv_compiler_flag_unknown_warning_option=no 14045fi 14046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14047fi 14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14049$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14050 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14051 CFLAGS="$xorg_testset_save_CFLAGS" 14052fi 14053 14054if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14057 fi 14058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14060$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14061if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14062 $as_echo_n "(cached) " >&6 14063else 14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14065/* end confdefs.h. */ 14066int i; 14067_ACEOF 14068if ac_fn_c_try_compile "$LINENO"; then : 14069 xorg_cv_compiler_flag_unused_command_line_argument=yes 14070else 14071 xorg_cv_compiler_flag_unused_command_line_argument=no 14072fi 14073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14074fi 14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14076$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14077 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14078 CFLAGS="$xorg_testset_save_CFLAGS" 14079fi 14080 14081found="no" 14082 14083 if test $found = "no" ; then 14084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14086 fi 14087 14088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14090 fi 14091 14092 CFLAGS="$CFLAGS -Werror=nonnull" 14093 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14095$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14096 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` 14097 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14098 $as_echo_n "(cached) " >&6 14099else 14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14101/* end confdefs.h. */ 14102int i; 14103int 14104main () 14105{ 14106 14107 ; 14108 return 0; 14109} 14110_ACEOF 14111if ac_fn_c_try_link "$LINENO"; then : 14112 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14113else 14114 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14115fi 14116rm -f core conftest.err conftest.$ac_objext \ 14117 conftest$ac_exeext conftest.$ac_ext 14118fi 14119 14120 14121 CFLAGS="$xorg_testset_save_CFLAGS" 14122 14123 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14125$as_echo "$supported" >&6; } 14126 if test "$supported" = "yes" ; then 14127 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14128 found="yes" 14129 fi 14130 fi 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144xorg_testset_save_CFLAGS="$CFLAGS" 14145 14146if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14149$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14150if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14151 $as_echo_n "(cached) " >&6 14152else 14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14154/* end confdefs.h. */ 14155int i; 14156_ACEOF 14157if ac_fn_c_try_compile "$LINENO"; then : 14158 xorg_cv_compiler_flag_unknown_warning_option=yes 14159else 14160 xorg_cv_compiler_flag_unknown_warning_option=no 14161fi 14162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14163fi 14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14165$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14166 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14167 CFLAGS="$xorg_testset_save_CFLAGS" 14168fi 14169 14170if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14173 fi 14174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14176$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14177if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14178 $as_echo_n "(cached) " >&6 14179else 14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14181/* end confdefs.h. */ 14182int i; 14183_ACEOF 14184if ac_fn_c_try_compile "$LINENO"; then : 14185 xorg_cv_compiler_flag_unused_command_line_argument=yes 14186else 14187 xorg_cv_compiler_flag_unused_command_line_argument=no 14188fi 14189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14190fi 14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14192$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14193 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14194 CFLAGS="$xorg_testset_save_CFLAGS" 14195fi 14196 14197found="no" 14198 14199 if test $found = "no" ; then 14200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14202 fi 14203 14204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14206 fi 14207 14208 CFLAGS="$CFLAGS -Werror=init-self" 14209 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14211$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14212 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` 14213 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14214 $as_echo_n "(cached) " >&6 14215else 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218int i; 14219int 14220main () 14221{ 14222 14223 ; 14224 return 0; 14225} 14226_ACEOF 14227if ac_fn_c_try_link "$LINENO"; then : 14228 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14229else 14230 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14231fi 14232rm -f core conftest.err conftest.$ac_objext \ 14233 conftest$ac_exeext conftest.$ac_ext 14234fi 14235 14236 14237 CFLAGS="$xorg_testset_save_CFLAGS" 14238 14239 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14241$as_echo "$supported" >&6; } 14242 if test "$supported" = "yes" ; then 14243 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14244 found="yes" 14245 fi 14246 fi 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260xorg_testset_save_CFLAGS="$CFLAGS" 14261 14262if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14265$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14266if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14267 $as_echo_n "(cached) " >&6 14268else 14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14270/* end confdefs.h. */ 14271int i; 14272_ACEOF 14273if ac_fn_c_try_compile "$LINENO"; then : 14274 xorg_cv_compiler_flag_unknown_warning_option=yes 14275else 14276 xorg_cv_compiler_flag_unknown_warning_option=no 14277fi 14278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14279fi 14280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14281$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14282 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14283 CFLAGS="$xorg_testset_save_CFLAGS" 14284fi 14285 14286if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14289 fi 14290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14292$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14293if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14294 $as_echo_n "(cached) " >&6 14295else 14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14297/* end confdefs.h. */ 14298int i; 14299_ACEOF 14300if ac_fn_c_try_compile "$LINENO"; then : 14301 xorg_cv_compiler_flag_unused_command_line_argument=yes 14302else 14303 xorg_cv_compiler_flag_unused_command_line_argument=no 14304fi 14305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14306fi 14307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14308$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14309 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14310 CFLAGS="$xorg_testset_save_CFLAGS" 14311fi 14312 14313found="no" 14314 14315 if test $found = "no" ; then 14316 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14318 fi 14319 14320 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14322 fi 14323 14324 CFLAGS="$CFLAGS -Werror=main" 14325 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14327$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14328 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` 14329 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14330 $as_echo_n "(cached) " >&6 14331else 14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14333/* end confdefs.h. */ 14334int i; 14335int 14336main () 14337{ 14338 14339 ; 14340 return 0; 14341} 14342_ACEOF 14343if ac_fn_c_try_link "$LINENO"; then : 14344 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14345else 14346 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14347fi 14348rm -f core conftest.err conftest.$ac_objext \ 14349 conftest$ac_exeext conftest.$ac_ext 14350fi 14351 14352 14353 CFLAGS="$xorg_testset_save_CFLAGS" 14354 14355 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14357$as_echo "$supported" >&6; } 14358 if test "$supported" = "yes" ; then 14359 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14360 found="yes" 14361 fi 14362 fi 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376xorg_testset_save_CFLAGS="$CFLAGS" 14377 14378if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14381$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14382if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14383 $as_echo_n "(cached) " >&6 14384else 14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14386/* end confdefs.h. */ 14387int i; 14388_ACEOF 14389if ac_fn_c_try_compile "$LINENO"; then : 14390 xorg_cv_compiler_flag_unknown_warning_option=yes 14391else 14392 xorg_cv_compiler_flag_unknown_warning_option=no 14393fi 14394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14395fi 14396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14397$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14398 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14399 CFLAGS="$xorg_testset_save_CFLAGS" 14400fi 14401 14402if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14405 fi 14406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14408$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14409if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14410 $as_echo_n "(cached) " >&6 14411else 14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14413/* end confdefs.h. */ 14414int i; 14415_ACEOF 14416if ac_fn_c_try_compile "$LINENO"; then : 14417 xorg_cv_compiler_flag_unused_command_line_argument=yes 14418else 14419 xorg_cv_compiler_flag_unused_command_line_argument=no 14420fi 14421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14422fi 14423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14424$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14425 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14426 CFLAGS="$xorg_testset_save_CFLAGS" 14427fi 14428 14429found="no" 14430 14431 if test $found = "no" ; then 14432 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14434 fi 14435 14436 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14438 fi 14439 14440 CFLAGS="$CFLAGS -Werror=missing-braces" 14441 14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14443$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14444 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` 14445 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14446 $as_echo_n "(cached) " >&6 14447else 14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14449/* end confdefs.h. */ 14450int i; 14451int 14452main () 14453{ 14454 14455 ; 14456 return 0; 14457} 14458_ACEOF 14459if ac_fn_c_try_link "$LINENO"; then : 14460 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14461else 14462 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14463fi 14464rm -f core conftest.err conftest.$ac_objext \ 14465 conftest$ac_exeext conftest.$ac_ext 14466fi 14467 14468 14469 CFLAGS="$xorg_testset_save_CFLAGS" 14470 14471 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14473$as_echo "$supported" >&6; } 14474 if test "$supported" = "yes" ; then 14475 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14476 found="yes" 14477 fi 14478 fi 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492xorg_testset_save_CFLAGS="$CFLAGS" 14493 14494if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14497$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14498if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14499 $as_echo_n "(cached) " >&6 14500else 14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14502/* end confdefs.h. */ 14503int i; 14504_ACEOF 14505if ac_fn_c_try_compile "$LINENO"; then : 14506 xorg_cv_compiler_flag_unknown_warning_option=yes 14507else 14508 xorg_cv_compiler_flag_unknown_warning_option=no 14509fi 14510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14511fi 14512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14513$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14514 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14515 CFLAGS="$xorg_testset_save_CFLAGS" 14516fi 14517 14518if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14521 fi 14522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14524$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14525if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14526 $as_echo_n "(cached) " >&6 14527else 14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14529/* end confdefs.h. */ 14530int i; 14531_ACEOF 14532if ac_fn_c_try_compile "$LINENO"; then : 14533 xorg_cv_compiler_flag_unused_command_line_argument=yes 14534else 14535 xorg_cv_compiler_flag_unused_command_line_argument=no 14536fi 14537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14538fi 14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14540$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14541 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14542 CFLAGS="$xorg_testset_save_CFLAGS" 14543fi 14544 14545found="no" 14546 14547 if test $found = "no" ; then 14548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14550 fi 14551 14552 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14554 fi 14555 14556 CFLAGS="$CFLAGS -Werror=sequence-point" 14557 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14559$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14560 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` 14561 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14562 $as_echo_n "(cached) " >&6 14563else 14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14565/* end confdefs.h. */ 14566int i; 14567int 14568main () 14569{ 14570 14571 ; 14572 return 0; 14573} 14574_ACEOF 14575if ac_fn_c_try_link "$LINENO"; then : 14576 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14577else 14578 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14579fi 14580rm -f core conftest.err conftest.$ac_objext \ 14581 conftest$ac_exeext conftest.$ac_ext 14582fi 14583 14584 14585 CFLAGS="$xorg_testset_save_CFLAGS" 14586 14587 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14589$as_echo "$supported" >&6; } 14590 if test "$supported" = "yes" ; then 14591 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14592 found="yes" 14593 fi 14594 fi 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608xorg_testset_save_CFLAGS="$CFLAGS" 14609 14610if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14613$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14614if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14615 $as_echo_n "(cached) " >&6 14616else 14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14618/* end confdefs.h. */ 14619int i; 14620_ACEOF 14621if ac_fn_c_try_compile "$LINENO"; then : 14622 xorg_cv_compiler_flag_unknown_warning_option=yes 14623else 14624 xorg_cv_compiler_flag_unknown_warning_option=no 14625fi 14626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14627fi 14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14629$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14630 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14631 CFLAGS="$xorg_testset_save_CFLAGS" 14632fi 14633 14634if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14637 fi 14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14640$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14641if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646int i; 14647_ACEOF 14648if ac_fn_c_try_compile "$LINENO"; then : 14649 xorg_cv_compiler_flag_unused_command_line_argument=yes 14650else 14651 xorg_cv_compiler_flag_unused_command_line_argument=no 14652fi 14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14654fi 14655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14656$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14657 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14658 CFLAGS="$xorg_testset_save_CFLAGS" 14659fi 14660 14661found="no" 14662 14663 if test $found = "no" ; then 14664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14666 fi 14667 14668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14670 fi 14671 14672 CFLAGS="$CFLAGS -Werror=return-type" 14673 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14675$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14676 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` 14677 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14681/* end confdefs.h. */ 14682int i; 14683int 14684main () 14685{ 14686 14687 ; 14688 return 0; 14689} 14690_ACEOF 14691if ac_fn_c_try_link "$LINENO"; then : 14692 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14693else 14694 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14695fi 14696rm -f core conftest.err conftest.$ac_objext \ 14697 conftest$ac_exeext conftest.$ac_ext 14698fi 14699 14700 14701 CFLAGS="$xorg_testset_save_CFLAGS" 14702 14703 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14705$as_echo "$supported" >&6; } 14706 if test "$supported" = "yes" ; then 14707 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14708 found="yes" 14709 fi 14710 fi 14711 14712 if test $found = "no" ; then 14713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14715 fi 14716 14717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14719 fi 14720 14721 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14722 14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14724$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14725 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 14726 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14727 $as_echo_n "(cached) " >&6 14728else 14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14730/* end confdefs.h. */ 14731int i; 14732int 14733main () 14734{ 14735 14736 ; 14737 return 0; 14738} 14739_ACEOF 14740if ac_fn_c_try_link "$LINENO"; then : 14741 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14742else 14743 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14744fi 14745rm -f core conftest.err conftest.$ac_objext \ 14746 conftest$ac_exeext conftest.$ac_ext 14747fi 14748 14749 14750 CFLAGS="$xorg_testset_save_CFLAGS" 14751 14752 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14754$as_echo "$supported" >&6; } 14755 if test "$supported" = "yes" ; then 14756 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14757 found="yes" 14758 fi 14759 fi 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773xorg_testset_save_CFLAGS="$CFLAGS" 14774 14775if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14778$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14779if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14780 $as_echo_n "(cached) " >&6 14781else 14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783/* end confdefs.h. */ 14784int i; 14785_ACEOF 14786if ac_fn_c_try_compile "$LINENO"; then : 14787 xorg_cv_compiler_flag_unknown_warning_option=yes 14788else 14789 xorg_cv_compiler_flag_unknown_warning_option=no 14790fi 14791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14792fi 14793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14794$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14795 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14796 CFLAGS="$xorg_testset_save_CFLAGS" 14797fi 14798 14799if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14800 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14802 fi 14803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14805$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14806if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14807 $as_echo_n "(cached) " >&6 14808else 14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14810/* end confdefs.h. */ 14811int i; 14812_ACEOF 14813if ac_fn_c_try_compile "$LINENO"; then : 14814 xorg_cv_compiler_flag_unused_command_line_argument=yes 14815else 14816 xorg_cv_compiler_flag_unused_command_line_argument=no 14817fi 14818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14819fi 14820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14821$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14822 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14823 CFLAGS="$xorg_testset_save_CFLAGS" 14824fi 14825 14826found="no" 14827 14828 if test $found = "no" ; then 14829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14831 fi 14832 14833 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14835 fi 14836 14837 CFLAGS="$CFLAGS -Werror=trigraphs" 14838 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14840$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14841 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` 14842 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14843 $as_echo_n "(cached) " >&6 14844else 14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14846/* end confdefs.h. */ 14847int i; 14848int 14849main () 14850{ 14851 14852 ; 14853 return 0; 14854} 14855_ACEOF 14856if ac_fn_c_try_link "$LINENO"; then : 14857 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14858else 14859 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14860fi 14861rm -f core conftest.err conftest.$ac_objext \ 14862 conftest$ac_exeext conftest.$ac_ext 14863fi 14864 14865 14866 CFLAGS="$xorg_testset_save_CFLAGS" 14867 14868 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14870$as_echo "$supported" >&6; } 14871 if test "$supported" = "yes" ; then 14872 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14873 found="yes" 14874 fi 14875 fi 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889xorg_testset_save_CFLAGS="$CFLAGS" 14890 14891if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14894$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14895if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14896 $as_echo_n "(cached) " >&6 14897else 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900int i; 14901_ACEOF 14902if ac_fn_c_try_compile "$LINENO"; then : 14903 xorg_cv_compiler_flag_unknown_warning_option=yes 14904else 14905 xorg_cv_compiler_flag_unknown_warning_option=no 14906fi 14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14908fi 14909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14910$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14911 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14912 CFLAGS="$xorg_testset_save_CFLAGS" 14913fi 14914 14915if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14918 fi 14919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14921$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14922if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14923 $as_echo_n "(cached) " >&6 14924else 14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14926/* end confdefs.h. */ 14927int i; 14928_ACEOF 14929if ac_fn_c_try_compile "$LINENO"; then : 14930 xorg_cv_compiler_flag_unused_command_line_argument=yes 14931else 14932 xorg_cv_compiler_flag_unused_command_line_argument=no 14933fi 14934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14935fi 14936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14937$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14938 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14939 CFLAGS="$xorg_testset_save_CFLAGS" 14940fi 14941 14942found="no" 14943 14944 if test $found = "no" ; then 14945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14947 fi 14948 14949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14951 fi 14952 14953 CFLAGS="$CFLAGS -Werror=array-bounds" 14954 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14956$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14957 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` 14958 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14959 $as_echo_n "(cached) " >&6 14960else 14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14962/* end confdefs.h. */ 14963int i; 14964int 14965main () 14966{ 14967 14968 ; 14969 return 0; 14970} 14971_ACEOF 14972if ac_fn_c_try_link "$LINENO"; then : 14973 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14974else 14975 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14976fi 14977rm -f core conftest.err conftest.$ac_objext \ 14978 conftest$ac_exeext conftest.$ac_ext 14979fi 14980 14981 14982 CFLAGS="$xorg_testset_save_CFLAGS" 14983 14984 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14986$as_echo "$supported" >&6; } 14987 if test "$supported" = "yes" ; then 14988 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14989 found="yes" 14990 fi 14991 fi 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005xorg_testset_save_CFLAGS="$CFLAGS" 15006 15007if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15010$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15011if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15012 $as_echo_n "(cached) " >&6 15013else 15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15015/* end confdefs.h. */ 15016int i; 15017_ACEOF 15018if ac_fn_c_try_compile "$LINENO"; then : 15019 xorg_cv_compiler_flag_unknown_warning_option=yes 15020else 15021 xorg_cv_compiler_flag_unknown_warning_option=no 15022fi 15023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15024fi 15025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15026$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15027 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15028 CFLAGS="$xorg_testset_save_CFLAGS" 15029fi 15030 15031if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15034 fi 15035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15037$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15038if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15039 $as_echo_n "(cached) " >&6 15040else 15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15042/* end confdefs.h. */ 15043int i; 15044_ACEOF 15045if ac_fn_c_try_compile "$LINENO"; then : 15046 xorg_cv_compiler_flag_unused_command_line_argument=yes 15047else 15048 xorg_cv_compiler_flag_unused_command_line_argument=no 15049fi 15050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15051fi 15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15053$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15054 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15055 CFLAGS="$xorg_testset_save_CFLAGS" 15056fi 15057 15058found="no" 15059 15060 if test $found = "no" ; then 15061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15063 fi 15064 15065 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15067 fi 15068 15069 CFLAGS="$CFLAGS -Werror=write-strings" 15070 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15072$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15073 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` 15074 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15075 $as_echo_n "(cached) " >&6 15076else 15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15078/* end confdefs.h. */ 15079int i; 15080int 15081main () 15082{ 15083 15084 ; 15085 return 0; 15086} 15087_ACEOF 15088if ac_fn_c_try_link "$LINENO"; then : 15089 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15090else 15091 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15092fi 15093rm -f core conftest.err conftest.$ac_objext \ 15094 conftest$ac_exeext conftest.$ac_ext 15095fi 15096 15097 15098 CFLAGS="$xorg_testset_save_CFLAGS" 15099 15100 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15102$as_echo "$supported" >&6; } 15103 if test "$supported" = "yes" ; then 15104 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15105 found="yes" 15106 fi 15107 fi 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121xorg_testset_save_CFLAGS="$CFLAGS" 15122 15123if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15126$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15127if ${xorg_cv_compiler_flag_unknown_warning_option+:} 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_compiler_flag_unknown_warning_option=yes 15136else 15137 xorg_cv_compiler_flag_unknown_warning_option=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_compiler_flag_unknown_warning_option" >&5 15142$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15143 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15144 CFLAGS="$xorg_testset_save_CFLAGS" 15145fi 15146 15147if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15150 fi 15151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15153$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15154if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15155 $as_echo_n "(cached) " >&6 15156else 15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15158/* end confdefs.h. */ 15159int i; 15160_ACEOF 15161if ac_fn_c_try_compile "$LINENO"; then : 15162 xorg_cv_compiler_flag_unused_command_line_argument=yes 15163else 15164 xorg_cv_compiler_flag_unused_command_line_argument=no 15165fi 15166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15167fi 15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15169$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15170 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15171 CFLAGS="$xorg_testset_save_CFLAGS" 15172fi 15173 15174found="no" 15175 15176 if test $found = "no" ; then 15177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15179 fi 15180 15181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15183 fi 15184 15185 CFLAGS="$CFLAGS -Werror=address" 15186 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15188$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15189 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` 15190 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15191 $as_echo_n "(cached) " >&6 15192else 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195int i; 15196int 15197main () 15198{ 15199 15200 ; 15201 return 0; 15202} 15203_ACEOF 15204if ac_fn_c_try_link "$LINENO"; then : 15205 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15206else 15207 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15208fi 15209rm -f core conftest.err conftest.$ac_objext \ 15210 conftest$ac_exeext conftest.$ac_ext 15211fi 15212 15213 15214 CFLAGS="$xorg_testset_save_CFLAGS" 15215 15216 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15218$as_echo "$supported" >&6; } 15219 if test "$supported" = "yes" ; then 15220 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15221 found="yes" 15222 fi 15223 fi 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237xorg_testset_save_CFLAGS="$CFLAGS" 15238 15239if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15242$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15243if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15244 $as_echo_n "(cached) " >&6 15245else 15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15247/* end confdefs.h. */ 15248int i; 15249_ACEOF 15250if ac_fn_c_try_compile "$LINENO"; then : 15251 xorg_cv_compiler_flag_unknown_warning_option=yes 15252else 15253 xorg_cv_compiler_flag_unknown_warning_option=no 15254fi 15255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15256fi 15257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15258$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15259 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15260 CFLAGS="$xorg_testset_save_CFLAGS" 15261fi 15262 15263if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15266 fi 15267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15269$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15270if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15271 $as_echo_n "(cached) " >&6 15272else 15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15274/* end confdefs.h. */ 15275int i; 15276_ACEOF 15277if ac_fn_c_try_compile "$LINENO"; then : 15278 xorg_cv_compiler_flag_unused_command_line_argument=yes 15279else 15280 xorg_cv_compiler_flag_unused_command_line_argument=no 15281fi 15282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15283fi 15284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15285$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15286 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15287 CFLAGS="$xorg_testset_save_CFLAGS" 15288fi 15289 15290found="no" 15291 15292 if test $found = "no" ; then 15293 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15295 fi 15296 15297 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15299 fi 15300 15301 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15302 15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15304$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15305 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 15306 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15307 $as_echo_n "(cached) " >&6 15308else 15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15310/* end confdefs.h. */ 15311int i; 15312int 15313main () 15314{ 15315 15316 ; 15317 return 0; 15318} 15319_ACEOF 15320if ac_fn_c_try_link "$LINENO"; then : 15321 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15322else 15323 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15324fi 15325rm -f core conftest.err conftest.$ac_objext \ 15326 conftest$ac_exeext conftest.$ac_ext 15327fi 15328 15329 15330 CFLAGS="$xorg_testset_save_CFLAGS" 15331 15332 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15334$as_echo "$supported" >&6; } 15335 if test "$supported" = "yes" ; then 15336 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15337 found="yes" 15338 fi 15339 fi 15340 15341 if test $found = "no" ; then 15342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15344 fi 15345 15346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15348 fi 15349 15350 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15351 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15353$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15354 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 15355 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15356 $as_echo_n "(cached) " >&6 15357else 15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15359/* end confdefs.h. */ 15360int i; 15361int 15362main () 15363{ 15364 15365 ; 15366 return 0; 15367} 15368_ACEOF 15369if ac_fn_c_try_link "$LINENO"; then : 15370 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15371else 15372 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15373fi 15374rm -f core conftest.err conftest.$ac_objext \ 15375 conftest$ac_exeext conftest.$ac_ext 15376fi 15377 15378 15379 CFLAGS="$xorg_testset_save_CFLAGS" 15380 15381 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15383$as_echo "$supported" >&6; } 15384 if test "$supported" = "yes" ; then 15385 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15386 found="yes" 15387 fi 15388 fi 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402xorg_testset_save_CFLAGS="$CFLAGS" 15403 15404if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15407$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15408if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15409 $as_echo_n "(cached) " >&6 15410else 15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15412/* end confdefs.h. */ 15413int i; 15414_ACEOF 15415if ac_fn_c_try_compile "$LINENO"; then : 15416 xorg_cv_compiler_flag_unknown_warning_option=yes 15417else 15418 xorg_cv_compiler_flag_unknown_warning_option=no 15419fi 15420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15421fi 15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15423$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15424 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15425 CFLAGS="$xorg_testset_save_CFLAGS" 15426fi 15427 15428if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15431 fi 15432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15434$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15435if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15436 $as_echo_n "(cached) " >&6 15437else 15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15439/* end confdefs.h. */ 15440int i; 15441_ACEOF 15442if ac_fn_c_try_compile "$LINENO"; then : 15443 xorg_cv_compiler_flag_unused_command_line_argument=yes 15444else 15445 xorg_cv_compiler_flag_unused_command_line_argument=no 15446fi 15447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15448fi 15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15450$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15451 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15452 CFLAGS="$xorg_testset_save_CFLAGS" 15453fi 15454 15455found="no" 15456 15457 if test $found = "no" ; then 15458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15460 fi 15461 15462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15464 fi 15465 15466 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15467 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15469$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15470 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 15471 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15472 $as_echo_n "(cached) " >&6 15473else 15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15475/* end confdefs.h. */ 15476int i; 15477int 15478main () 15479{ 15480 15481 ; 15482 return 0; 15483} 15484_ACEOF 15485if ac_fn_c_try_link "$LINENO"; then : 15486 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15487else 15488 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15489fi 15490rm -f core conftest.err conftest.$ac_objext \ 15491 conftest$ac_exeext conftest.$ac_ext 15492fi 15493 15494 15495 CFLAGS="$xorg_testset_save_CFLAGS" 15496 15497 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15499$as_echo "$supported" >&6; } 15500 if test "$supported" = "yes" ; then 15501 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15502 found="yes" 15503 fi 15504 fi 15505 15506 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15507else 15508{ $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 15509$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;} 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521xorg_testset_save_CFLAGS="$CFLAGS" 15522 15523if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15526$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15527if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532int i; 15533_ACEOF 15534if ac_fn_c_try_compile "$LINENO"; then : 15535 xorg_cv_compiler_flag_unknown_warning_option=yes 15536else 15537 xorg_cv_compiler_flag_unknown_warning_option=no 15538fi 15539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15540fi 15541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15542$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15543 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15544 CFLAGS="$xorg_testset_save_CFLAGS" 15545fi 15546 15547if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15550 fi 15551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15553$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15554if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15555 $as_echo_n "(cached) " >&6 15556else 15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15558/* end confdefs.h. */ 15559int i; 15560_ACEOF 15561if ac_fn_c_try_compile "$LINENO"; then : 15562 xorg_cv_compiler_flag_unused_command_line_argument=yes 15563else 15564 xorg_cv_compiler_flag_unused_command_line_argument=no 15565fi 15566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15567fi 15568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15569$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15570 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15571 CFLAGS="$xorg_testset_save_CFLAGS" 15572fi 15573 15574found="no" 15575 15576 if test $found = "no" ; then 15577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15579 fi 15580 15581 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15583 fi 15584 15585 CFLAGS="$CFLAGS -Wimplicit" 15586 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15588$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15589 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` 15590 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15591 $as_echo_n "(cached) " >&6 15592else 15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15594/* end confdefs.h. */ 15595int i; 15596int 15597main () 15598{ 15599 15600 ; 15601 return 0; 15602} 15603_ACEOF 15604if ac_fn_c_try_link "$LINENO"; then : 15605 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15606else 15607 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15608fi 15609rm -f core conftest.err conftest.$ac_objext \ 15610 conftest$ac_exeext conftest.$ac_ext 15611fi 15612 15613 15614 CFLAGS="$xorg_testset_save_CFLAGS" 15615 15616 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15618$as_echo "$supported" >&6; } 15619 if test "$supported" = "yes" ; then 15620 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15621 found="yes" 15622 fi 15623 fi 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637xorg_testset_save_CFLAGS="$CFLAGS" 15638 15639if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15642$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15643if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15644 $as_echo_n "(cached) " >&6 15645else 15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15647/* end confdefs.h. */ 15648int i; 15649_ACEOF 15650if ac_fn_c_try_compile "$LINENO"; then : 15651 xorg_cv_compiler_flag_unknown_warning_option=yes 15652else 15653 xorg_cv_compiler_flag_unknown_warning_option=no 15654fi 15655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15656fi 15657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15658$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15659 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15660 CFLAGS="$xorg_testset_save_CFLAGS" 15661fi 15662 15663if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15666 fi 15667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15669$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15670if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15671 $as_echo_n "(cached) " >&6 15672else 15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15674/* end confdefs.h. */ 15675int i; 15676_ACEOF 15677if ac_fn_c_try_compile "$LINENO"; then : 15678 xorg_cv_compiler_flag_unused_command_line_argument=yes 15679else 15680 xorg_cv_compiler_flag_unused_command_line_argument=no 15681fi 15682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15683fi 15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15685$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15686 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15687 CFLAGS="$xorg_testset_save_CFLAGS" 15688fi 15689 15690found="no" 15691 15692 if test $found = "no" ; then 15693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15695 fi 15696 15697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15699 fi 15700 15701 CFLAGS="$CFLAGS -Wnonnull" 15702 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15704$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15705 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` 15706 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15707 $as_echo_n "(cached) " >&6 15708else 15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15710/* end confdefs.h. */ 15711int i; 15712int 15713main () 15714{ 15715 15716 ; 15717 return 0; 15718} 15719_ACEOF 15720if ac_fn_c_try_link "$LINENO"; then : 15721 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15722else 15723 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15724fi 15725rm -f core conftest.err conftest.$ac_objext \ 15726 conftest$ac_exeext conftest.$ac_ext 15727fi 15728 15729 15730 CFLAGS="$xorg_testset_save_CFLAGS" 15731 15732 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15734$as_echo "$supported" >&6; } 15735 if test "$supported" = "yes" ; then 15736 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15737 found="yes" 15738 fi 15739 fi 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753xorg_testset_save_CFLAGS="$CFLAGS" 15754 15755if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15758$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15759if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15760 $as_echo_n "(cached) " >&6 15761else 15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15763/* end confdefs.h. */ 15764int i; 15765_ACEOF 15766if ac_fn_c_try_compile "$LINENO"; then : 15767 xorg_cv_compiler_flag_unknown_warning_option=yes 15768else 15769 xorg_cv_compiler_flag_unknown_warning_option=no 15770fi 15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15772fi 15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15774$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15775 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15776 CFLAGS="$xorg_testset_save_CFLAGS" 15777fi 15778 15779if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15782 fi 15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15785$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15786if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15787 $as_echo_n "(cached) " >&6 15788else 15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15790/* end confdefs.h. */ 15791int i; 15792_ACEOF 15793if ac_fn_c_try_compile "$LINENO"; then : 15794 xorg_cv_compiler_flag_unused_command_line_argument=yes 15795else 15796 xorg_cv_compiler_flag_unused_command_line_argument=no 15797fi 15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15799fi 15800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15801$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15802 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15803 CFLAGS="$xorg_testset_save_CFLAGS" 15804fi 15805 15806found="no" 15807 15808 if test $found = "no" ; then 15809 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15811 fi 15812 15813 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15815 fi 15816 15817 CFLAGS="$CFLAGS -Winit-self" 15818 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15820$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15821 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` 15822 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15823 $as_echo_n "(cached) " >&6 15824else 15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15826/* end confdefs.h. */ 15827int i; 15828int 15829main () 15830{ 15831 15832 ; 15833 return 0; 15834} 15835_ACEOF 15836if ac_fn_c_try_link "$LINENO"; then : 15837 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15838else 15839 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15840fi 15841rm -f core conftest.err conftest.$ac_objext \ 15842 conftest$ac_exeext conftest.$ac_ext 15843fi 15844 15845 15846 CFLAGS="$xorg_testset_save_CFLAGS" 15847 15848 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15850$as_echo "$supported" >&6; } 15851 if test "$supported" = "yes" ; then 15852 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15853 found="yes" 15854 fi 15855 fi 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869xorg_testset_save_CFLAGS="$CFLAGS" 15870 15871if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15874$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15875if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15876 $as_echo_n "(cached) " >&6 15877else 15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15879/* end confdefs.h. */ 15880int i; 15881_ACEOF 15882if ac_fn_c_try_compile "$LINENO"; then : 15883 xorg_cv_compiler_flag_unknown_warning_option=yes 15884else 15885 xorg_cv_compiler_flag_unknown_warning_option=no 15886fi 15887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15888fi 15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15890$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15891 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15892 CFLAGS="$xorg_testset_save_CFLAGS" 15893fi 15894 15895if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15898 fi 15899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15901$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15902if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15903 $as_echo_n "(cached) " >&6 15904else 15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15906/* end confdefs.h. */ 15907int i; 15908_ACEOF 15909if ac_fn_c_try_compile "$LINENO"; then : 15910 xorg_cv_compiler_flag_unused_command_line_argument=yes 15911else 15912 xorg_cv_compiler_flag_unused_command_line_argument=no 15913fi 15914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15915fi 15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15917$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15918 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15919 CFLAGS="$xorg_testset_save_CFLAGS" 15920fi 15921 15922found="no" 15923 15924 if test $found = "no" ; then 15925 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15927 fi 15928 15929 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15931 fi 15932 15933 CFLAGS="$CFLAGS -Wmain" 15934 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15936$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15937 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` 15938 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15939 $as_echo_n "(cached) " >&6 15940else 15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15942/* end confdefs.h. */ 15943int i; 15944int 15945main () 15946{ 15947 15948 ; 15949 return 0; 15950} 15951_ACEOF 15952if ac_fn_c_try_link "$LINENO"; then : 15953 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15954else 15955 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15956fi 15957rm -f core conftest.err conftest.$ac_objext \ 15958 conftest$ac_exeext conftest.$ac_ext 15959fi 15960 15961 15962 CFLAGS="$xorg_testset_save_CFLAGS" 15963 15964 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15966$as_echo "$supported" >&6; } 15967 if test "$supported" = "yes" ; then 15968 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15969 found="yes" 15970 fi 15971 fi 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985xorg_testset_save_CFLAGS="$CFLAGS" 15986 15987if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15990$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15991if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15992 $as_echo_n "(cached) " >&6 15993else 15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15995/* end confdefs.h. */ 15996int i; 15997_ACEOF 15998if ac_fn_c_try_compile "$LINENO"; then : 15999 xorg_cv_compiler_flag_unknown_warning_option=yes 16000else 16001 xorg_cv_compiler_flag_unknown_warning_option=no 16002fi 16003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16004fi 16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16006$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16007 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16008 CFLAGS="$xorg_testset_save_CFLAGS" 16009fi 16010 16011if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16014 fi 16015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16017$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16018if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16019 $as_echo_n "(cached) " >&6 16020else 16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022/* end confdefs.h. */ 16023int i; 16024_ACEOF 16025if ac_fn_c_try_compile "$LINENO"; then : 16026 xorg_cv_compiler_flag_unused_command_line_argument=yes 16027else 16028 xorg_cv_compiler_flag_unused_command_line_argument=no 16029fi 16030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16031fi 16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16033$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16034 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16035 CFLAGS="$xorg_testset_save_CFLAGS" 16036fi 16037 16038found="no" 16039 16040 if test $found = "no" ; then 16041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16043 fi 16044 16045 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16047 fi 16048 16049 CFLAGS="$CFLAGS -Wmissing-braces" 16050 16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16052$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16053 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` 16054 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16055 $as_echo_n "(cached) " >&6 16056else 16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16058/* end confdefs.h. */ 16059int i; 16060int 16061main () 16062{ 16063 16064 ; 16065 return 0; 16066} 16067_ACEOF 16068if ac_fn_c_try_link "$LINENO"; then : 16069 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16070else 16071 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16072fi 16073rm -f core conftest.err conftest.$ac_objext \ 16074 conftest$ac_exeext conftest.$ac_ext 16075fi 16076 16077 16078 CFLAGS="$xorg_testset_save_CFLAGS" 16079 16080 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16082$as_echo "$supported" >&6; } 16083 if test "$supported" = "yes" ; then 16084 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16085 found="yes" 16086 fi 16087 fi 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101xorg_testset_save_CFLAGS="$CFLAGS" 16102 16103if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16106$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16107if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16108 $as_echo_n "(cached) " >&6 16109else 16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16111/* end confdefs.h. */ 16112int i; 16113_ACEOF 16114if ac_fn_c_try_compile "$LINENO"; then : 16115 xorg_cv_compiler_flag_unknown_warning_option=yes 16116else 16117 xorg_cv_compiler_flag_unknown_warning_option=no 16118fi 16119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16120fi 16121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16122$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16123 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16124 CFLAGS="$xorg_testset_save_CFLAGS" 16125fi 16126 16127if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16128 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16130 fi 16131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16133$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16134if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16135 $as_echo_n "(cached) " >&6 16136else 16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16138/* end confdefs.h. */ 16139int i; 16140_ACEOF 16141if ac_fn_c_try_compile "$LINENO"; then : 16142 xorg_cv_compiler_flag_unused_command_line_argument=yes 16143else 16144 xorg_cv_compiler_flag_unused_command_line_argument=no 16145fi 16146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16147fi 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16149$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16150 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16151 CFLAGS="$xorg_testset_save_CFLAGS" 16152fi 16153 16154found="no" 16155 16156 if test $found = "no" ; then 16157 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16159 fi 16160 16161 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16163 fi 16164 16165 CFLAGS="$CFLAGS -Wsequence-point" 16166 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16168$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16169 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` 16170 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16171 $as_echo_n "(cached) " >&6 16172else 16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16174/* end confdefs.h. */ 16175int i; 16176int 16177main () 16178{ 16179 16180 ; 16181 return 0; 16182} 16183_ACEOF 16184if ac_fn_c_try_link "$LINENO"; then : 16185 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16186else 16187 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16188fi 16189rm -f core conftest.err conftest.$ac_objext \ 16190 conftest$ac_exeext conftest.$ac_ext 16191fi 16192 16193 16194 CFLAGS="$xorg_testset_save_CFLAGS" 16195 16196 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16198$as_echo "$supported" >&6; } 16199 if test "$supported" = "yes" ; then 16200 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16201 found="yes" 16202 fi 16203 fi 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217xorg_testset_save_CFLAGS="$CFLAGS" 16218 16219if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16222$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16223if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16224 $as_echo_n "(cached) " >&6 16225else 16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16227/* end confdefs.h. */ 16228int i; 16229_ACEOF 16230if ac_fn_c_try_compile "$LINENO"; then : 16231 xorg_cv_compiler_flag_unknown_warning_option=yes 16232else 16233 xorg_cv_compiler_flag_unknown_warning_option=no 16234fi 16235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16236fi 16237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16238$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16239 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16240 CFLAGS="$xorg_testset_save_CFLAGS" 16241fi 16242 16243if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16246 fi 16247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16249$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16250if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16251 $as_echo_n "(cached) " >&6 16252else 16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16254/* end confdefs.h. */ 16255int i; 16256_ACEOF 16257if ac_fn_c_try_compile "$LINENO"; then : 16258 xorg_cv_compiler_flag_unused_command_line_argument=yes 16259else 16260 xorg_cv_compiler_flag_unused_command_line_argument=no 16261fi 16262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16263fi 16264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16265$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16266 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16267 CFLAGS="$xorg_testset_save_CFLAGS" 16268fi 16269 16270found="no" 16271 16272 if test $found = "no" ; then 16273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16275 fi 16276 16277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16279 fi 16280 16281 CFLAGS="$CFLAGS -Wreturn-type" 16282 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16284$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16285 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` 16286 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16287 $as_echo_n "(cached) " >&6 16288else 16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16290/* end confdefs.h. */ 16291int i; 16292int 16293main () 16294{ 16295 16296 ; 16297 return 0; 16298} 16299_ACEOF 16300if ac_fn_c_try_link "$LINENO"; then : 16301 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16302else 16303 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16304fi 16305rm -f core conftest.err conftest.$ac_objext \ 16306 conftest$ac_exeext conftest.$ac_ext 16307fi 16308 16309 16310 CFLAGS="$xorg_testset_save_CFLAGS" 16311 16312 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16314$as_echo "$supported" >&6; } 16315 if test "$supported" = "yes" ; then 16316 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16317 found="yes" 16318 fi 16319 fi 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333xorg_testset_save_CFLAGS="$CFLAGS" 16334 16335if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16338$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16339if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16340 $as_echo_n "(cached) " >&6 16341else 16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16343/* end confdefs.h. */ 16344int i; 16345_ACEOF 16346if ac_fn_c_try_compile "$LINENO"; then : 16347 xorg_cv_compiler_flag_unknown_warning_option=yes 16348else 16349 xorg_cv_compiler_flag_unknown_warning_option=no 16350fi 16351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16352fi 16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16354$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16355 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16356 CFLAGS="$xorg_testset_save_CFLAGS" 16357fi 16358 16359if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16362 fi 16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16365$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16366if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16367 $as_echo_n "(cached) " >&6 16368else 16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16370/* end confdefs.h. */ 16371int i; 16372_ACEOF 16373if ac_fn_c_try_compile "$LINENO"; then : 16374 xorg_cv_compiler_flag_unused_command_line_argument=yes 16375else 16376 xorg_cv_compiler_flag_unused_command_line_argument=no 16377fi 16378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16379fi 16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16381$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16382 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16383 CFLAGS="$xorg_testset_save_CFLAGS" 16384fi 16385 16386found="no" 16387 16388 if test $found = "no" ; then 16389 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16391 fi 16392 16393 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16395 fi 16396 16397 CFLAGS="$CFLAGS -Wtrigraphs" 16398 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16400$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16401 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` 16402 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16403 $as_echo_n "(cached) " >&6 16404else 16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16406/* end confdefs.h. */ 16407int i; 16408int 16409main () 16410{ 16411 16412 ; 16413 return 0; 16414} 16415_ACEOF 16416if ac_fn_c_try_link "$LINENO"; then : 16417 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16418else 16419 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16420fi 16421rm -f core conftest.err conftest.$ac_objext \ 16422 conftest$ac_exeext conftest.$ac_ext 16423fi 16424 16425 16426 CFLAGS="$xorg_testset_save_CFLAGS" 16427 16428 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16430$as_echo "$supported" >&6; } 16431 if test "$supported" = "yes" ; then 16432 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16433 found="yes" 16434 fi 16435 fi 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449xorg_testset_save_CFLAGS="$CFLAGS" 16450 16451if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16454$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16455if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16456 $as_echo_n "(cached) " >&6 16457else 16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16459/* end confdefs.h. */ 16460int i; 16461_ACEOF 16462if ac_fn_c_try_compile "$LINENO"; then : 16463 xorg_cv_compiler_flag_unknown_warning_option=yes 16464else 16465 xorg_cv_compiler_flag_unknown_warning_option=no 16466fi 16467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16468fi 16469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16470$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16471 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16472 CFLAGS="$xorg_testset_save_CFLAGS" 16473fi 16474 16475if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16476 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16478 fi 16479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16481$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16482if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16483 $as_echo_n "(cached) " >&6 16484else 16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16486/* end confdefs.h. */ 16487int i; 16488_ACEOF 16489if ac_fn_c_try_compile "$LINENO"; then : 16490 xorg_cv_compiler_flag_unused_command_line_argument=yes 16491else 16492 xorg_cv_compiler_flag_unused_command_line_argument=no 16493fi 16494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16495fi 16496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16497$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16498 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16499 CFLAGS="$xorg_testset_save_CFLAGS" 16500fi 16501 16502found="no" 16503 16504 if test $found = "no" ; then 16505 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16507 fi 16508 16509 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16511 fi 16512 16513 CFLAGS="$CFLAGS -Warray-bounds" 16514 16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16516$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16517 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` 16518 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16519 $as_echo_n "(cached) " >&6 16520else 16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16522/* end confdefs.h. */ 16523int i; 16524int 16525main () 16526{ 16527 16528 ; 16529 return 0; 16530} 16531_ACEOF 16532if ac_fn_c_try_link "$LINENO"; then : 16533 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16534else 16535 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16536fi 16537rm -f core conftest.err conftest.$ac_objext \ 16538 conftest$ac_exeext conftest.$ac_ext 16539fi 16540 16541 16542 CFLAGS="$xorg_testset_save_CFLAGS" 16543 16544 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16546$as_echo "$supported" >&6; } 16547 if test "$supported" = "yes" ; then 16548 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16549 found="yes" 16550 fi 16551 fi 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565xorg_testset_save_CFLAGS="$CFLAGS" 16566 16567if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16570$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16571if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16572 $as_echo_n "(cached) " >&6 16573else 16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575/* end confdefs.h. */ 16576int i; 16577_ACEOF 16578if ac_fn_c_try_compile "$LINENO"; then : 16579 xorg_cv_compiler_flag_unknown_warning_option=yes 16580else 16581 xorg_cv_compiler_flag_unknown_warning_option=no 16582fi 16583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16584fi 16585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16586$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16587 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16588 CFLAGS="$xorg_testset_save_CFLAGS" 16589fi 16590 16591if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16594 fi 16595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16597$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16598if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16599 $as_echo_n "(cached) " >&6 16600else 16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16602/* end confdefs.h. */ 16603int i; 16604_ACEOF 16605if ac_fn_c_try_compile "$LINENO"; then : 16606 xorg_cv_compiler_flag_unused_command_line_argument=yes 16607else 16608 xorg_cv_compiler_flag_unused_command_line_argument=no 16609fi 16610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16611fi 16612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16613$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16614 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16615 CFLAGS="$xorg_testset_save_CFLAGS" 16616fi 16617 16618found="no" 16619 16620 if test $found = "no" ; then 16621 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16623 fi 16624 16625 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16627 fi 16628 16629 CFLAGS="$CFLAGS -Wwrite-strings" 16630 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16632$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16633 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` 16634 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16635 $as_echo_n "(cached) " >&6 16636else 16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16638/* end confdefs.h. */ 16639int i; 16640int 16641main () 16642{ 16643 16644 ; 16645 return 0; 16646} 16647_ACEOF 16648if ac_fn_c_try_link "$LINENO"; then : 16649 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16650else 16651 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16652fi 16653rm -f core conftest.err conftest.$ac_objext \ 16654 conftest$ac_exeext conftest.$ac_ext 16655fi 16656 16657 16658 CFLAGS="$xorg_testset_save_CFLAGS" 16659 16660 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16662$as_echo "$supported" >&6; } 16663 if test "$supported" = "yes" ; then 16664 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16665 found="yes" 16666 fi 16667 fi 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681xorg_testset_save_CFLAGS="$CFLAGS" 16682 16683if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16686$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16687if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16688 $as_echo_n "(cached) " >&6 16689else 16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16691/* end confdefs.h. */ 16692int i; 16693_ACEOF 16694if ac_fn_c_try_compile "$LINENO"; then : 16695 xorg_cv_compiler_flag_unknown_warning_option=yes 16696else 16697 xorg_cv_compiler_flag_unknown_warning_option=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16700fi 16701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16702$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16703 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16704 CFLAGS="$xorg_testset_save_CFLAGS" 16705fi 16706 16707if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16710 fi 16711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16713$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16714if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16715 $as_echo_n "(cached) " >&6 16716else 16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16718/* end confdefs.h. */ 16719int i; 16720_ACEOF 16721if ac_fn_c_try_compile "$LINENO"; then : 16722 xorg_cv_compiler_flag_unused_command_line_argument=yes 16723else 16724 xorg_cv_compiler_flag_unused_command_line_argument=no 16725fi 16726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16727fi 16728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16729$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16730 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16731 CFLAGS="$xorg_testset_save_CFLAGS" 16732fi 16733 16734found="no" 16735 16736 if test $found = "no" ; then 16737 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16739 fi 16740 16741 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16743 fi 16744 16745 CFLAGS="$CFLAGS -Waddress" 16746 16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16748$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16749 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` 16750 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16751 $as_echo_n "(cached) " >&6 16752else 16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16754/* end confdefs.h. */ 16755int i; 16756int 16757main () 16758{ 16759 16760 ; 16761 return 0; 16762} 16763_ACEOF 16764if ac_fn_c_try_link "$LINENO"; then : 16765 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16766else 16767 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16768fi 16769rm -f core conftest.err conftest.$ac_objext \ 16770 conftest$ac_exeext conftest.$ac_ext 16771fi 16772 16773 16774 CFLAGS="$xorg_testset_save_CFLAGS" 16775 16776 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16778$as_echo "$supported" >&6; } 16779 if test "$supported" = "yes" ; then 16780 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16781 found="yes" 16782 fi 16783 fi 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797xorg_testset_save_CFLAGS="$CFLAGS" 16798 16799if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16802$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16803if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16804 $as_echo_n "(cached) " >&6 16805else 16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16807/* end confdefs.h. */ 16808int i; 16809_ACEOF 16810if ac_fn_c_try_compile "$LINENO"; then : 16811 xorg_cv_compiler_flag_unknown_warning_option=yes 16812else 16813 xorg_cv_compiler_flag_unknown_warning_option=no 16814fi 16815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16816fi 16817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16818$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16819 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16820 CFLAGS="$xorg_testset_save_CFLAGS" 16821fi 16822 16823if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16824 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16826 fi 16827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16829$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16830if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16831 $as_echo_n "(cached) " >&6 16832else 16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16834/* end confdefs.h. */ 16835int i; 16836_ACEOF 16837if ac_fn_c_try_compile "$LINENO"; then : 16838 xorg_cv_compiler_flag_unused_command_line_argument=yes 16839else 16840 xorg_cv_compiler_flag_unused_command_line_argument=no 16841fi 16842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16843fi 16844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16845$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16846 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16847 CFLAGS="$xorg_testset_save_CFLAGS" 16848fi 16849 16850found="no" 16851 16852 if test $found = "no" ; then 16853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16855 fi 16856 16857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16859 fi 16860 16861 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16862 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16864$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16865 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` 16866 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16867 $as_echo_n "(cached) " >&6 16868else 16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16870/* end confdefs.h. */ 16871int i; 16872int 16873main () 16874{ 16875 16876 ; 16877 return 0; 16878} 16879_ACEOF 16880if ac_fn_c_try_link "$LINENO"; then : 16881 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16882else 16883 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16884fi 16885rm -f core conftest.err conftest.$ac_objext \ 16886 conftest$ac_exeext conftest.$ac_ext 16887fi 16888 16889 16890 CFLAGS="$xorg_testset_save_CFLAGS" 16891 16892 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16894$as_echo "$supported" >&6; } 16895 if test "$supported" = "yes" ; then 16896 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16897 found="yes" 16898 fi 16899 fi 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913xorg_testset_save_CFLAGS="$CFLAGS" 16914 16915if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16918$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16919if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16920 $as_echo_n "(cached) " >&6 16921else 16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16923/* end confdefs.h. */ 16924int i; 16925_ACEOF 16926if ac_fn_c_try_compile "$LINENO"; then : 16927 xorg_cv_compiler_flag_unknown_warning_option=yes 16928else 16929 xorg_cv_compiler_flag_unknown_warning_option=no 16930fi 16931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16932fi 16933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16934$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16935 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16936 CFLAGS="$xorg_testset_save_CFLAGS" 16937fi 16938 16939if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16942 fi 16943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16945$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16946if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16947 $as_echo_n "(cached) " >&6 16948else 16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16950/* end confdefs.h. */ 16951int i; 16952_ACEOF 16953if ac_fn_c_try_compile "$LINENO"; then : 16954 xorg_cv_compiler_flag_unused_command_line_argument=yes 16955else 16956 xorg_cv_compiler_flag_unused_command_line_argument=no 16957fi 16958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16959fi 16960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16961$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16962 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16963 CFLAGS="$xorg_testset_save_CFLAGS" 16964fi 16965 16966found="no" 16967 16968 if test $found = "no" ; then 16969 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16971 fi 16972 16973 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16975 fi 16976 16977 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16978 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16980$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16981 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` 16982 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16983 $as_echo_n "(cached) " >&6 16984else 16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16986/* end confdefs.h. */ 16987int i; 16988int 16989main () 16990{ 16991 16992 ; 16993 return 0; 16994} 16995_ACEOF 16996if ac_fn_c_try_link "$LINENO"; then : 16997 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16998else 16999 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17000fi 17001rm -f core conftest.err conftest.$ac_objext \ 17002 conftest$ac_exeext conftest.$ac_ext 17003fi 17004 17005 17006 CFLAGS="$xorg_testset_save_CFLAGS" 17007 17008 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17010$as_echo "$supported" >&6; } 17011 if test "$supported" = "yes" ; then 17012 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17013 found="yes" 17014 fi 17015 fi 17016 17017 17018fi 17019 17020 17021 17022 17023 17024 17025 17026 CWARNFLAGS="$BASE_CFLAGS" 17027 if test "x$GCC" = xyes ; then 17028 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17029 fi 17030 17031 17032 17033 17034 17035 17036 17037 17038# Check whether --enable-strict-compilation was given. 17039if test "${enable_strict_compilation+set}" = set; then : 17040 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17041else 17042 STRICT_COMPILE=no 17043fi 17044 17045 17046 17047 17048 17049 17050STRICT_CFLAGS="" 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062xorg_testset_save_CFLAGS="$CFLAGS" 17063 17064if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17067$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17068if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17069 $as_echo_n "(cached) " >&6 17070else 17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17072/* end confdefs.h. */ 17073int i; 17074_ACEOF 17075if ac_fn_c_try_compile "$LINENO"; then : 17076 xorg_cv_compiler_flag_unknown_warning_option=yes 17077else 17078 xorg_cv_compiler_flag_unknown_warning_option=no 17079fi 17080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17081fi 17082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17083$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17084 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17085 CFLAGS="$xorg_testset_save_CFLAGS" 17086fi 17087 17088if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17091 fi 17092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17094$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17095if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17096 $as_echo_n "(cached) " >&6 17097else 17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17099/* end confdefs.h. */ 17100int i; 17101_ACEOF 17102if ac_fn_c_try_compile "$LINENO"; then : 17103 xorg_cv_compiler_flag_unused_command_line_argument=yes 17104else 17105 xorg_cv_compiler_flag_unused_command_line_argument=no 17106fi 17107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17108fi 17109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17110$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17111 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17112 CFLAGS="$xorg_testset_save_CFLAGS" 17113fi 17114 17115found="no" 17116 17117 if test $found = "no" ; then 17118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17120 fi 17121 17122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17124 fi 17125 17126 CFLAGS="$CFLAGS -pedantic" 17127 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17129$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17130 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` 17131 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17132 $as_echo_n "(cached) " >&6 17133else 17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136int i; 17137int 17138main () 17139{ 17140 17141 ; 17142 return 0; 17143} 17144_ACEOF 17145if ac_fn_c_try_link "$LINENO"; then : 17146 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17147else 17148 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17149fi 17150rm -f core conftest.err conftest.$ac_objext \ 17151 conftest$ac_exeext conftest.$ac_ext 17152fi 17153 17154 17155 CFLAGS="$xorg_testset_save_CFLAGS" 17156 17157 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17159$as_echo "$supported" >&6; } 17160 if test "$supported" = "yes" ; then 17161 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17162 found="yes" 17163 fi 17164 fi 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178xorg_testset_save_CFLAGS="$CFLAGS" 17179 17180if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17183$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17184if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17185 $as_echo_n "(cached) " >&6 17186else 17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17188/* end confdefs.h. */ 17189int i; 17190_ACEOF 17191if ac_fn_c_try_compile "$LINENO"; then : 17192 xorg_cv_compiler_flag_unknown_warning_option=yes 17193else 17194 xorg_cv_compiler_flag_unknown_warning_option=no 17195fi 17196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17197fi 17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17199$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17200 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17201 CFLAGS="$xorg_testset_save_CFLAGS" 17202fi 17203 17204if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17205 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17207 fi 17208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17210$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17211if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17212 $as_echo_n "(cached) " >&6 17213else 17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17215/* end confdefs.h. */ 17216int i; 17217_ACEOF 17218if ac_fn_c_try_compile "$LINENO"; then : 17219 xorg_cv_compiler_flag_unused_command_line_argument=yes 17220else 17221 xorg_cv_compiler_flag_unused_command_line_argument=no 17222fi 17223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17224fi 17225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17226$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17227 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17228 CFLAGS="$xorg_testset_save_CFLAGS" 17229fi 17230 17231found="no" 17232 17233 if test $found = "no" ; then 17234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17236 fi 17237 17238 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17240 fi 17241 17242 CFLAGS="$CFLAGS -Werror" 17243 17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17245$as_echo_n "checking if $CC supports -Werror... " >&6; } 17246 cacheid=`$as_echo xorg_cv_cc_flag_-Werror` 17247 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17248 $as_echo_n "(cached) " >&6 17249else 17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17251/* end confdefs.h. */ 17252int i; 17253int 17254main () 17255{ 17256 17257 ; 17258 return 0; 17259} 17260_ACEOF 17261if ac_fn_c_try_link "$LINENO"; then : 17262 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17263else 17264 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17265fi 17266rm -f core conftest.err conftest.$ac_objext \ 17267 conftest$ac_exeext conftest.$ac_ext 17268fi 17269 17270 17271 CFLAGS="$xorg_testset_save_CFLAGS" 17272 17273 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17275$as_echo "$supported" >&6; } 17276 if test "$supported" = "yes" ; then 17277 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17278 found="yes" 17279 fi 17280 fi 17281 17282 if test $found = "no" ; then 17283 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17285 fi 17286 17287 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17289 fi 17290 17291 CFLAGS="$CFLAGS -errwarn" 17292 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17294$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17295 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` 17296 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17297 $as_echo_n "(cached) " >&6 17298else 17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17300/* end confdefs.h. */ 17301int i; 17302int 17303main () 17304{ 17305 17306 ; 17307 return 0; 17308} 17309_ACEOF 17310if ac_fn_c_try_link "$LINENO"; then : 17311 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17312else 17313 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17314fi 17315rm -f core conftest.err conftest.$ac_objext \ 17316 conftest$ac_exeext conftest.$ac_ext 17317fi 17318 17319 17320 CFLAGS="$xorg_testset_save_CFLAGS" 17321 17322 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17324$as_echo "$supported" >&6; } 17325 if test "$supported" = "yes" ; then 17326 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17327 found="yes" 17328 fi 17329 fi 17330 17331 17332 17333# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17334# activate it with -Werror, so we add it here explicitly. 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346xorg_testset_save_CFLAGS="$CFLAGS" 17347 17348if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17351$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17352if ${xorg_cv_compiler_flag_unknown_warning_option+:} 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_compiler_flag_unknown_warning_option=yes 17361else 17362 xorg_cv_compiler_flag_unknown_warning_option=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_compiler_flag_unknown_warning_option" >&5 17367$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17368 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17369 CFLAGS="$xorg_testset_save_CFLAGS" 17370fi 17371 17372if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17375 fi 17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17378$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17379if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17380 $as_echo_n "(cached) " >&6 17381else 17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17383/* end confdefs.h. */ 17384int i; 17385_ACEOF 17386if ac_fn_c_try_compile "$LINENO"; then : 17387 xorg_cv_compiler_flag_unused_command_line_argument=yes 17388else 17389 xorg_cv_compiler_flag_unused_command_line_argument=no 17390fi 17391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17392fi 17393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17394$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17395 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17396 CFLAGS="$xorg_testset_save_CFLAGS" 17397fi 17398 17399found="no" 17400 17401 if test $found = "no" ; then 17402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17404 fi 17405 17406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17408 fi 17409 17410 CFLAGS="$CFLAGS -Werror=attributes" 17411 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17413$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17414 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` 17415 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17416 $as_echo_n "(cached) " >&6 17417else 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419/* end confdefs.h. */ 17420int i; 17421int 17422main () 17423{ 17424 17425 ; 17426 return 0; 17427} 17428_ACEOF 17429if ac_fn_c_try_link "$LINENO"; then : 17430 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17431else 17432 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17433fi 17434rm -f core conftest.err conftest.$ac_objext \ 17435 conftest$ac_exeext conftest.$ac_ext 17436fi 17437 17438 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440 17441 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17443$as_echo "$supported" >&6; } 17444 if test "$supported" = "yes" ; then 17445 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17446 found="yes" 17447 fi 17448 fi 17449 17450 17451 17452if test "x$STRICT_COMPILE" = "xyes"; then 17453 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17454 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17455fi 17456 17457 17458 17459 17460 17461 17462cat >>confdefs.h <<_ACEOF 17463#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17464_ACEOF 17465 17466 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17467 if test "x$PVM" = "x"; then 17468 PVM="0" 17469 fi 17470 17471cat >>confdefs.h <<_ACEOF 17472#define PACKAGE_VERSION_MINOR $PVM 17473_ACEOF 17474 17475 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17476 if test "x$PVP" = "x"; then 17477 PVP="0" 17478 fi 17479 17480cat >>confdefs.h <<_ACEOF 17481#define PACKAGE_VERSION_PATCHLEVEL $PVP 17482_ACEOF 17483 17484 17485 17486CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17487mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17488|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17489echo 'git directory not found: installing possibly empty changelog.' >&2)" 17490 17491 17492 17493 17494macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17495INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17496mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17497|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17498echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17499 17500 17501 17502 17503 17504 17505if test x$APP_MAN_SUFFIX = x ; then 17506 APP_MAN_SUFFIX=1 17507fi 17508if test x$APP_MAN_DIR = x ; then 17509 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17510fi 17511 17512if test x$LIB_MAN_SUFFIX = x ; then 17513 LIB_MAN_SUFFIX=3 17514fi 17515if test x$LIB_MAN_DIR = x ; then 17516 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17517fi 17518 17519if test x$FILE_MAN_SUFFIX = x ; then 17520 case $host_os in 17521 solaris*) FILE_MAN_SUFFIX=4 ;; 17522 *) FILE_MAN_SUFFIX=5 ;; 17523 esac 17524fi 17525if test x$FILE_MAN_DIR = x ; then 17526 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17527fi 17528 17529if test x$MISC_MAN_SUFFIX = x ; then 17530 case $host_os in 17531 solaris*) MISC_MAN_SUFFIX=5 ;; 17532 *) MISC_MAN_SUFFIX=7 ;; 17533 esac 17534fi 17535if test x$MISC_MAN_DIR = x ; then 17536 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17537fi 17538 17539if test x$DRIVER_MAN_SUFFIX = x ; then 17540 case $host_os in 17541 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17542 *) DRIVER_MAN_SUFFIX=4 ;; 17543 esac 17544fi 17545if test x$DRIVER_MAN_DIR = x ; then 17546 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17547fi 17548 17549if test x$ADMIN_MAN_SUFFIX = x ; then 17550 case $host_os in 17551 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17552 *) ADMIN_MAN_SUFFIX=8 ;; 17553 esac 17554fi 17555if test x$ADMIN_MAN_DIR = x ; then 17556 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17557fi 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573XORG_MAN_PAGE="X Version 11" 17574 17575MAN_SUBSTS="\ 17576 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17577 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17578 -e 's|__xservername__|Xorg|g' \ 17579 -e 's|__xconfigfile__|xorg.conf|g' \ 17580 -e 's|__projectroot__|\$(prefix)|g' \ 17581 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17582 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17583 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17584 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17585 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17586 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17587 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17588 17589 17590 17591# Check whether --enable-silent-rules was given. 17592if test "${enable_silent_rules+set}" = set; then : 17593 enableval=$enable_silent_rules; 17594fi 17595 17596case $enable_silent_rules in 17597yes) AM_DEFAULT_VERBOSITY=0;; 17598no) AM_DEFAULT_VERBOSITY=1;; 17599*) AM_DEFAULT_VERBOSITY=0;; 17600esac 17601AM_BACKSLASH='\' 17602 17603 17604 17605 17606# Check whether --enable-docs was given. 17607if test "${enable_docs+set}" = set; then : 17608 enableval=$enable_docs; build_docs=$enableval 17609else 17610 build_docs=yes 17611fi 17612 17613 17614 if test x$build_docs = xyes; then 17615 ENABLE_DOCS_TRUE= 17616 ENABLE_DOCS_FALSE='#' 17617else 17618 ENABLE_DOCS_TRUE='#' 17619 ENABLE_DOCS_FALSE= 17620fi 17621 17622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17623$as_echo_n "checking whether to build documentation... " >&6; } 17624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17625$as_echo "$build_docs" >&6; } 17626 17627 17628 17629 17630 17631# Check whether --with-xmlto was given. 17632if test "${with_xmlto+set}" = set; then : 17633 withval=$with_xmlto; use_xmlto=$withval 17634else 17635 use_xmlto=auto 17636fi 17637 17638 17639 17640if test "x$use_xmlto" = x"auto"; then 17641 # Extract the first word of "xmlto", so it can be a program name with args. 17642set dummy xmlto; ac_word=$2 17643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17644$as_echo_n "checking for $ac_word... " >&6; } 17645if ${ac_cv_path_XMLTO+:} false; then : 17646 $as_echo_n "(cached) " >&6 17647else 17648 case $XMLTO in 17649 [\\/]* | ?:[\\/]*) 17650 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17651 ;; 17652 *) 17653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17654for as_dir in $PATH 17655do 17656 IFS=$as_save_IFS 17657 test -z "$as_dir" && as_dir=. 17658 for ac_exec_ext in '' $ac_executable_extensions; do 17659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17660 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17662 break 2 17663 fi 17664done 17665 done 17666IFS=$as_save_IFS 17667 17668 ;; 17669esac 17670fi 17671XMLTO=$ac_cv_path_XMLTO 17672if test -n "$XMLTO"; then 17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17674$as_echo "$XMLTO" >&6; } 17675else 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17677$as_echo "no" >&6; } 17678fi 17679 17680 17681 if test "x$XMLTO" = "x"; then 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17683$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17684 have_xmlto=no 17685 else 17686 have_xmlto=yes 17687 fi 17688elif test "x$use_xmlto" = x"yes" ; then 17689 # Extract the first word of "xmlto", so it can be a program name with args. 17690set dummy xmlto; ac_word=$2 17691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17692$as_echo_n "checking for $ac_word... " >&6; } 17693if ${ac_cv_path_XMLTO+:} false; then : 17694 $as_echo_n "(cached) " >&6 17695else 17696 case $XMLTO in 17697 [\\/]* | ?:[\\/]*) 17698 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17699 ;; 17700 *) 17701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17702for as_dir in $PATH 17703do 17704 IFS=$as_save_IFS 17705 test -z "$as_dir" && as_dir=. 17706 for ac_exec_ext in '' $ac_executable_extensions; do 17707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17708 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17710 break 2 17711 fi 17712done 17713 done 17714IFS=$as_save_IFS 17715 17716 ;; 17717esac 17718fi 17719XMLTO=$ac_cv_path_XMLTO 17720if test -n "$XMLTO"; then 17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17722$as_echo "$XMLTO" >&6; } 17723else 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17725$as_echo "no" >&6; } 17726fi 17727 17728 17729 if test "x$XMLTO" = "x"; then 17730 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17731 fi 17732 have_xmlto=yes 17733elif test "x$use_xmlto" = x"no" ; then 17734 if test "x$XMLTO" != "x"; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17736$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17737 fi 17738 have_xmlto=no 17739else 17740 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17741fi 17742 17743# Test for a minimum version of xmlto, if provided. 17744if test "$have_xmlto" = yes; then 17745 # scrape the xmlto version 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17747$as_echo_n "checking the xmlto version... " >&6; } 17748 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17750$as_echo "$xmlto_version" >&6; } 17751 as_arg_v1=$xmlto_version 17752as_arg_v2=0.0.22 17753awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17754case $? in #( 17755 1) : 17756 if test "x$use_xmlto" = xauto; then 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17758$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17759 have_xmlto=no 17760 else 17761 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17762 fi ;; #( 17763 0) : 17764 ;; #( 17765 2) : 17766 ;; #( 17767 *) : 17768 ;; 17769esac 17770fi 17771 17772# Test for the ability of xmlto to generate a text target 17773have_xmlto_text=no 17774cat > conftest.xml << "EOF" 17775EOF 17776if test "$have_xmlto" = yes; then : 17777 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17778 have_xmlto_text=yes 17779else 17780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17781$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17782fi 17783fi 17784rm -f conftest.xml 17785 if test $have_xmlto_text = yes; then 17786 HAVE_XMLTO_TEXT_TRUE= 17787 HAVE_XMLTO_TEXT_FALSE='#' 17788else 17789 HAVE_XMLTO_TEXT_TRUE='#' 17790 HAVE_XMLTO_TEXT_FALSE= 17791fi 17792 17793 if test "$have_xmlto" = yes; then 17794 HAVE_XMLTO_TRUE= 17795 HAVE_XMLTO_FALSE='#' 17796else 17797 HAVE_XMLTO_TRUE='#' 17798 HAVE_XMLTO_FALSE= 17799fi 17800 17801 17802 17803 17804 17805 17806# Check whether --with-fop was given. 17807if test "${with_fop+set}" = set; then : 17808 withval=$with_fop; use_fop=$withval 17809else 17810 use_fop=auto 17811fi 17812 17813 17814 17815if test "x$use_fop" = x"auto"; then 17816 # Extract the first word of "fop", so it can be a program name with args. 17817set dummy fop; ac_word=$2 17818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17819$as_echo_n "checking for $ac_word... " >&6; } 17820if ${ac_cv_path_FOP+:} false; then : 17821 $as_echo_n "(cached) " >&6 17822else 17823 case $FOP in 17824 [\\/]* | ?:[\\/]*) 17825 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17826 ;; 17827 *) 17828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17829for as_dir in $PATH 17830do 17831 IFS=$as_save_IFS 17832 test -z "$as_dir" && as_dir=. 17833 for ac_exec_ext in '' $ac_executable_extensions; do 17834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17835 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17837 break 2 17838 fi 17839done 17840 done 17841IFS=$as_save_IFS 17842 17843 ;; 17844esac 17845fi 17846FOP=$ac_cv_path_FOP 17847if test -n "$FOP"; then 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17849$as_echo "$FOP" >&6; } 17850else 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17852$as_echo "no" >&6; } 17853fi 17854 17855 17856 if test "x$FOP" = "x"; then 17857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 17858$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 17859 have_fop=no 17860 else 17861 have_fop=yes 17862 fi 17863elif test "x$use_fop" = x"yes" ; then 17864 # Extract the first word of "fop", so it can be a program name with args. 17865set dummy fop; ac_word=$2 17866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17867$as_echo_n "checking for $ac_word... " >&6; } 17868if ${ac_cv_path_FOP+:} false; then : 17869 $as_echo_n "(cached) " >&6 17870else 17871 case $FOP in 17872 [\\/]* | ?:[\\/]*) 17873 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17874 ;; 17875 *) 17876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17877for as_dir in $PATH 17878do 17879 IFS=$as_save_IFS 17880 test -z "$as_dir" && as_dir=. 17881 for ac_exec_ext in '' $ac_executable_extensions; do 17882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17883 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17885 break 2 17886 fi 17887done 17888 done 17889IFS=$as_save_IFS 17890 17891 ;; 17892esac 17893fi 17894FOP=$ac_cv_path_FOP 17895if test -n "$FOP"; then 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17897$as_echo "$FOP" >&6; } 17898else 17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17900$as_echo "no" >&6; } 17901fi 17902 17903 17904 if test "x$FOP" = "x"; then 17905 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 17906 fi 17907 have_fop=yes 17908elif test "x$use_fop" = x"no" ; then 17909 if test "x$FOP" != "x"; then 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 17911$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 17912 fi 17913 have_fop=no 17914else 17915 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 17916fi 17917 17918# Test for a minimum version of fop, if provided. 17919 17920 if test "$have_fop" = yes; then 17921 HAVE_FOP_TRUE= 17922 HAVE_FOP_FALSE='#' 17923else 17924 HAVE_FOP_TRUE='#' 17925 HAVE_FOP_FALSE= 17926fi 17927 17928 17929 17930 17931# Preserves the interface, should it be implemented later 17932 17933 17934 17935# Check whether --with-xsltproc was given. 17936if test "${with_xsltproc+set}" = set; then : 17937 withval=$with_xsltproc; use_xsltproc=$withval 17938else 17939 use_xsltproc=auto 17940fi 17941 17942 17943 17944if test "x$use_xsltproc" = x"auto"; then 17945 # Extract the first word of "xsltproc", so it can be a program name with args. 17946set dummy xsltproc; ac_word=$2 17947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17948$as_echo_n "checking for $ac_word... " >&6; } 17949if ${ac_cv_path_XSLTPROC+:} false; then : 17950 $as_echo_n "(cached) " >&6 17951else 17952 case $XSLTPROC in 17953 [\\/]* | ?:[\\/]*) 17954 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 17955 ;; 17956 *) 17957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17958for as_dir in $PATH 17959do 17960 IFS=$as_save_IFS 17961 test -z "$as_dir" && as_dir=. 17962 for ac_exec_ext in '' $ac_executable_extensions; do 17963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17964 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 17965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17966 break 2 17967 fi 17968done 17969 done 17970IFS=$as_save_IFS 17971 17972 ;; 17973esac 17974fi 17975XSLTPROC=$ac_cv_path_XSLTPROC 17976if test -n "$XSLTPROC"; then 17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 17978$as_echo "$XSLTPROC" >&6; } 17979else 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17981$as_echo "no" >&6; } 17982fi 17983 17984 17985 if test "x$XSLTPROC" = "x"; then 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 17987$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 17988 have_xsltproc=no 17989 else 17990 have_xsltproc=yes 17991 fi 17992elif test "x$use_xsltproc" = x"yes" ; then 17993 # Extract the first word of "xsltproc", so it can be a program name with args. 17994set dummy xsltproc; ac_word=$2 17995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17996$as_echo_n "checking for $ac_word... " >&6; } 17997if ${ac_cv_path_XSLTPROC+:} false; then : 17998 $as_echo_n "(cached) " >&6 17999else 18000 case $XSLTPROC in 18001 [\\/]* | ?:[\\/]*) 18002 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18003 ;; 18004 *) 18005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18006for as_dir in $PATH 18007do 18008 IFS=$as_save_IFS 18009 test -z "$as_dir" && as_dir=. 18010 for ac_exec_ext in '' $ac_executable_extensions; do 18011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18012 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18014 break 2 18015 fi 18016done 18017 done 18018IFS=$as_save_IFS 18019 18020 ;; 18021esac 18022fi 18023XSLTPROC=$ac_cv_path_XSLTPROC 18024if test -n "$XSLTPROC"; then 18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18026$as_echo "$XSLTPROC" >&6; } 18027else 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18029$as_echo "no" >&6; } 18030fi 18031 18032 18033 if test "x$XSLTPROC" = "x"; then 18034 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18035 fi 18036 have_xsltproc=yes 18037elif test "x$use_xsltproc" = x"no" ; then 18038 if test "x$XSLTPROC" != "x"; then 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18040$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18041 fi 18042 have_xsltproc=no 18043else 18044 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18045fi 18046 18047 if test "$have_xsltproc" = yes; then 18048 HAVE_XSLTPROC_TRUE= 18049 HAVE_XSLTPROC_FALSE='#' 18050else 18051 HAVE_XSLTPROC_TRUE='#' 18052 HAVE_XSLTPROC_FALSE= 18053fi 18054 18055 18056 18057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18058$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18059XORG_SGML_PATH= 18060if test -n "$PKG_CONFIG" && \ 18061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18062 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18063 ac_status=$? 18064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18065 test $ac_status = 0; }; then 18066 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18067else 18068 : 18069 18070fi 18071 18072# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18073# the path and the name of the doc stylesheet 18074if test "x$XORG_SGML_PATH" != "x" ; then 18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18076$as_echo "$XORG_SGML_PATH" >&6; } 18077 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18078 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18079else 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18081$as_echo "no" >&6; } 18082fi 18083 18084 18085 18086 18087 if test "x$XSL_STYLESHEET" != "x"; then 18088 HAVE_STYLESHEETS_TRUE= 18089 HAVE_STYLESHEETS_FALSE='#' 18090else 18091 HAVE_STYLESHEETS_TRUE='#' 18092 HAVE_STYLESHEETS_FALSE= 18093fi 18094 18095 18096 18097# Obtain compiler/linker options for depedencies 18098 18099pkg_failed=no 18100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5 18101$as_echo_n "checking for XMU... " >&6; } 18102 18103if test -n "$XMU_CFLAGS"; then 18104 pkg_cv_XMU_CFLAGS="$XMU_CFLAGS" 18105 elif test -n "$PKG_CONFIG"; then 18106 if test -n "$PKG_CONFIG" && \ 18107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5 18108 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5 18109 ac_status=$? 18110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18111 test $ac_status = 0; }; then 18112 pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null` 18113else 18114 pkg_failed=yes 18115fi 18116 else 18117 pkg_failed=untried 18118fi 18119if test -n "$XMU_LIBS"; then 18120 pkg_cv_XMU_LIBS="$XMU_LIBS" 18121 elif test -n "$PKG_CONFIG"; then 18122 if test -n "$PKG_CONFIG" && \ 18123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5 18124 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5 18125 ac_status=$? 18126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18127 test $ac_status = 0; }; then 18128 pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null` 18129else 18130 pkg_failed=yes 18131fi 18132 else 18133 pkg_failed=untried 18134fi 18135 18136 18137 18138if test $pkg_failed = yes; then 18139 18140if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18141 _pkg_short_errors_supported=yes 18142else 18143 _pkg_short_errors_supported=no 18144fi 18145 if test $_pkg_short_errors_supported = yes; then 18146 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt xext x11 xextproto" 2>&1` 18147 else 18148 XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt xext x11 xextproto" 2>&1` 18149 fi 18150 # Put the nasty error message in config.log where it belongs 18151 echo "$XMU_PKG_ERRORS" >&5 18152 18153 as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met: 18154 18155$XMU_PKG_ERRORS 18156 18157Consider adjusting the PKG_CONFIG_PATH environment variable if you 18158installed software in a non-standard prefix. 18159 18160Alternatively, you may set the environment variables XMU_CFLAGS 18161and XMU_LIBS to avoid the need to call pkg-config. 18162See the pkg-config man page for more details. 18163" "$LINENO" 5 18164elif test $pkg_failed = untried; then 18165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18167as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18168is in your PATH or set the PKG_CONFIG environment variable to the full 18169path to pkg-config. 18170 18171Alternatively, you may set the environment variables XMU_CFLAGS 18172and XMU_LIBS to avoid the need to call pkg-config. 18173See the pkg-config man page for more details. 18174 18175To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18176See \`config.log' for more details" "$LINENO" 5; } 18177else 18178 XMU_CFLAGS=$pkg_cv_XMU_CFLAGS 18179 XMU_LIBS=$pkg_cv_XMU_LIBS 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18181$as_echo "yes" >&6; } 18182 : 18183fi 18184 18185pkg_failed=no 18186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5 18187$as_echo_n "checking for XMUU... " >&6; } 18188 18189if test -n "$XMUU_CFLAGS"; then 18190 pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS" 18191 elif test -n "$PKG_CONFIG"; then 18192 if test -n "$PKG_CONFIG" && \ 18193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 18194 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 18195 ac_status=$? 18196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18197 test $ac_status = 0; }; then 18198 pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 18199else 18200 pkg_failed=yes 18201fi 18202 else 18203 pkg_failed=untried 18204fi 18205if test -n "$XMUU_LIBS"; then 18206 pkg_cv_XMUU_LIBS="$XMUU_LIBS" 18207 elif test -n "$PKG_CONFIG"; then 18208 if test -n "$PKG_CONFIG" && \ 18209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 18210 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 18211 ac_status=$? 18212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18213 test $ac_status = 0; }; then 18214 pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 18215else 18216 pkg_failed=yes 18217fi 18218 else 18219 pkg_failed=untried 18220fi 18221 18222 18223 18224if test $pkg_failed = yes; then 18225 18226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18227 _pkg_short_errors_supported=yes 18228else 18229 _pkg_short_errors_supported=no 18230fi 18231 if test $_pkg_short_errors_supported = yes; then 18232 XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 18233 else 18234 XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 18235 fi 18236 # Put the nasty error message in config.log where it belongs 18237 echo "$XMUU_PKG_ERRORS" >&5 18238 18239 as_fn_error $? "Package requirements (x11) were not met: 18240 18241$XMUU_PKG_ERRORS 18242 18243Consider adjusting the PKG_CONFIG_PATH environment variable if you 18244installed software in a non-standard prefix. 18245 18246Alternatively, you may set the environment variables XMUU_CFLAGS 18247and XMUU_LIBS to avoid the need to call pkg-config. 18248See the pkg-config man page for more details. 18249" "$LINENO" 5 18250elif test $pkg_failed = untried; then 18251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18253as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18254is in your PATH or set the PKG_CONFIG environment variable to the full 18255path to pkg-config. 18256 18257Alternatively, you may set the environment variables XMUU_CFLAGS 18258and XMUU_LIBS to avoid the need to call pkg-config. 18259See the pkg-config man page for more details. 18260 18261To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18262See \`config.log' for more details" "$LINENO" 5; } 18263else 18264 XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS 18265 XMUU_LIBS=$pkg_cv_XMUU_LIBS 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18267$as_echo "yes" >&6; } 18268 : 18269fi 18270 18271# CvtStdSel.c needs to know which network transports to build hostname 18272# conversion routines for 18273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 18274$as_echo_n "checking return type of signal handlers... " >&6; } 18275if ${ac_cv_type_signal+:} false; then : 18276 $as_echo_n "(cached) " >&6 18277else 18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18279/* end confdefs.h. */ 18280#include <sys/types.h> 18281#include <signal.h> 18282 18283int 18284main () 18285{ 18286return *(signal (0, 0)) (0) == 1; 18287 ; 18288 return 0; 18289} 18290_ACEOF 18291if ac_fn_c_try_compile "$LINENO"; then : 18292 ac_cv_type_signal=int 18293else 18294 ac_cv_type_signal=void 18295fi 18296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18297fi 18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 18299$as_echo "$ac_cv_type_signal" >&6; } 18300 18301cat >>confdefs.h <<_ACEOF 18302#define RETSIGTYPE $ac_cv_type_signal 18303_ACEOF 18304 18305 18306 18307 18308 18309 case $host_os in 18310 mingw*) unixdef="no" ;; 18311 *) unixdef="yes" ;; 18312 esac 18313 # Check whether --enable-unix-transport was given. 18314if test "${enable_unix_transport+set}" = set; then : 18315 enableval=$enable_unix_transport; UNIXCONN=$enableval 18316else 18317 UNIXCONN=$unixdef 18318fi 18319 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 18321$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 18322 if test "$UNIXCONN" = "yes"; then 18323 18324$as_echo "#define UNIXCONN 1" >>confdefs.h 18325 18326 fi 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 18328$as_echo "$UNIXCONN" >&6; } 18329 # Check whether --enable-tcp-transport was given. 18330if test "${enable_tcp_transport+set}" = set; then : 18331 enableval=$enable_tcp_transport; TCPCONN=$enableval 18332else 18333 TCPCONN=yes 18334fi 18335 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 18337$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 18339$as_echo "$TCPCONN" >&6; } 18340 if test "$TCPCONN" = "yes"; then 18341 18342$as_echo "#define TCPCONN 1" >>confdefs.h 18343 18344 18345 # SVR4 hides these in libraries other than libc 18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 18347$as_echo_n "checking for library containing socket... " >&6; } 18348if ${ac_cv_search_socket+:} false; then : 18349 $as_echo_n "(cached) " >&6 18350else 18351 ac_func_search_save_LIBS=$LIBS 18352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18353/* end confdefs.h. */ 18354 18355/* Override any GCC internal prototype to avoid an error. 18356 Use char because int might match the return type of a GCC 18357 builtin and then its argument prototype would still apply. */ 18358#ifdef __cplusplus 18359extern "C" 18360#endif 18361char socket (); 18362int 18363main () 18364{ 18365return socket (); 18366 ; 18367 return 0; 18368} 18369_ACEOF 18370for ac_lib in '' socket; do 18371 if test -z "$ac_lib"; then 18372 ac_res="none required" 18373 else 18374 ac_res=-l$ac_lib 18375 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18376 fi 18377 if ac_fn_c_try_link "$LINENO"; then : 18378 ac_cv_search_socket=$ac_res 18379fi 18380rm -f core conftest.err conftest.$ac_objext \ 18381 conftest$ac_exeext 18382 if ${ac_cv_search_socket+:} false; then : 18383 break 18384fi 18385done 18386if ${ac_cv_search_socket+:} false; then : 18387 18388else 18389 ac_cv_search_socket=no 18390fi 18391rm conftest.$ac_ext 18392LIBS=$ac_func_search_save_LIBS 18393fi 18394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18395$as_echo "$ac_cv_search_socket" >&6; } 18396ac_res=$ac_cv_search_socket 18397if test "$ac_res" != no; then : 18398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18399 18400fi 18401 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18403$as_echo_n "checking for library containing gethostbyname... " >&6; } 18404if ${ac_cv_search_gethostbyname+:} false; then : 18405 $as_echo_n "(cached) " >&6 18406else 18407 ac_func_search_save_LIBS=$LIBS 18408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18409/* end confdefs.h. */ 18410 18411/* Override any GCC internal prototype to avoid an error. 18412 Use char because int might match the return type of a GCC 18413 builtin and then its argument prototype would still apply. */ 18414#ifdef __cplusplus 18415extern "C" 18416#endif 18417char gethostbyname (); 18418int 18419main () 18420{ 18421return gethostbyname (); 18422 ; 18423 return 0; 18424} 18425_ACEOF 18426for ac_lib in '' nsl; do 18427 if test -z "$ac_lib"; then 18428 ac_res="none required" 18429 else 18430 ac_res=-l$ac_lib 18431 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18432 fi 18433 if ac_fn_c_try_link "$LINENO"; then : 18434 ac_cv_search_gethostbyname=$ac_res 18435fi 18436rm -f core conftest.err conftest.$ac_objext \ 18437 conftest$ac_exeext 18438 if ${ac_cv_search_gethostbyname+:} false; then : 18439 break 18440fi 18441done 18442if ${ac_cv_search_gethostbyname+:} false; then : 18443 18444else 18445 ac_cv_search_gethostbyname=no 18446fi 18447rm conftest.$ac_ext 18448LIBS=$ac_func_search_save_LIBS 18449fi 18450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18451$as_echo "$ac_cv_search_gethostbyname" >&6; } 18452ac_res=$ac_cv_search_gethostbyname 18453if test "$ac_res" != no; then : 18454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18455 18456fi 18457 18458 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18460$as_echo_n "checking for main in -lws2_32... " >&6; } 18461if ${ac_cv_lib_ws2_32_main+:} false; then : 18462 $as_echo_n "(cached) " >&6 18463else 18464 ac_check_lib_save_LIBS=$LIBS 18465LIBS="-lws2_32 $LIBS" 18466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18467/* end confdefs.h. */ 18468 18469 18470int 18471main () 18472{ 18473return main (); 18474 ; 18475 return 0; 18476} 18477_ACEOF 18478if ac_fn_c_try_link "$LINENO"; then : 18479 ac_cv_lib_ws2_32_main=yes 18480else 18481 ac_cv_lib_ws2_32_main=no 18482fi 18483rm -f core conftest.err conftest.$ac_objext \ 18484 conftest$ac_exeext conftest.$ac_ext 18485LIBS=$ac_check_lib_save_LIBS 18486fi 18487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18488$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18489if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18490 cat >>confdefs.h <<_ACEOF 18491#define HAVE_LIBWS2_32 1 18492_ACEOF 18493 18494 LIBS="-lws2_32 $LIBS" 18495 18496fi 18497ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 18498 18499 fi 18500 18501 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 18502 # Check whether --enable-ipv6 was given. 18503if test "${enable_ipv6+set}" = set; then : 18504 enableval=$enable_ipv6; IPV6CONN=$enableval 18505else 18506 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18507if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18508 IPV6CONN=yes 18509else 18510 IPV6CONN=no 18511fi 18512 18513fi 18514 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 18516$as_echo_n "checking if IPv6 support should be built... " >&6; } 18517 if test "$IPV6CONN" = "yes"; then 18518 18519$as_echo "#define IPv6 1" >>confdefs.h 18520 18521 fi 18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 18523$as_echo "$IPV6CONN" >&6; } 18524 18525 # 4.3BSD-Reno added a new member to struct sockaddr_in 18526 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 18527#include <sys/types.h> 18528#include <sys/socket.h> 18529#include <netinet/in.h> 18530 18531" 18532if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 18533 18534$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 18535 18536fi 18537 18538 18539 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 18540 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18541$ac_includes_default 18542#include <sys/socket.h> 18543" 18544if test "x$ac_cv_type_socklen_t" = xyes; then : 18545 18546cat >>confdefs.h <<_ACEOF 18547#define HAVE_SOCKLEN_T 1 18548_ACEOF 18549 18550 18551fi 18552 18553 18554 18555 fi 18556 case $host_os in 18557 solaris*|sco*|sysv4*) localdef="yes" ;; 18558 *) localdef="no" ;; 18559 esac 18560 # Check whether --enable-local-transport was given. 18561if test "${enable_local_transport+set}" = set; then : 18562 enableval=$enable_local_transport; LOCALCONN=$enableval 18563else 18564 LOCALCONN=$localdef 18565fi 18566 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 18568$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 18570$as_echo "$LOCALCONN" >&6; } 18571 if test "$LOCALCONN" = "yes"; then 18572 18573$as_echo "#define LOCALCONN 1" >>confdefs.h 18574 18575 fi 18576 18577 18578 18579# Allow checking code with lint, sparse, etc. 18580 18581 18582 18583 18584 18585# Check whether --with-lint was given. 18586if test "${with_lint+set}" = set; then : 18587 withval=$with_lint; use_lint=$withval 18588else 18589 use_lint=no 18590fi 18591 18592 18593# Obtain platform specific info like program name and options 18594# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18595case $host_os in 18596 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18597 lint_name=splint 18598 lint_options="-badflag" 18599 ;; 18600 *freebsd* | *netbsd*) 18601 lint_name=lint 18602 lint_options="-u -b" 18603 ;; 18604 *solaris*) 18605 lint_name=lint 18606 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18607 ;; 18608esac 18609 18610# Test for the presence of the program (either guessed by the code or spelled out by the user) 18611if test "x$use_lint" = x"yes" ; then 18612 # Extract the first word of "$lint_name", so it can be a program name with args. 18613set dummy $lint_name; ac_word=$2 18614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18615$as_echo_n "checking for $ac_word... " >&6; } 18616if ${ac_cv_path_LINT+:} false; then : 18617 $as_echo_n "(cached) " >&6 18618else 18619 case $LINT in 18620 [\\/]* | ?:[\\/]*) 18621 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18622 ;; 18623 *) 18624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18625for as_dir in $PATH 18626do 18627 IFS=$as_save_IFS 18628 test -z "$as_dir" && as_dir=. 18629 for ac_exec_ext in '' $ac_executable_extensions; do 18630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18631 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18633 break 2 18634 fi 18635done 18636 done 18637IFS=$as_save_IFS 18638 18639 ;; 18640esac 18641fi 18642LINT=$ac_cv_path_LINT 18643if test -n "$LINT"; then 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18645$as_echo "$LINT" >&6; } 18646else 18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18648$as_echo "no" >&6; } 18649fi 18650 18651 18652 if test "x$LINT" = "x"; then 18653 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18654 fi 18655elif test "x$use_lint" = x"no" ; then 18656 if test "x$LINT" != "x"; then 18657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18658$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18659 fi 18660else 18661 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18662fi 18663 18664# User supplied flags override default flags 18665if test "x$LINT_FLAGS" != "x"; then 18666 lint_options=$LINT_FLAGS 18667fi 18668 18669LINT_FLAGS=$lint_options 18670 18671 if test "x$LINT" != x; then 18672 LINT_TRUE= 18673 LINT_FALSE='#' 18674else 18675 LINT_TRUE='#' 18676 LINT_FALSE= 18677fi 18678 18679 18680 18681 18682 18683# Check whether --enable-lint-library was given. 18684if test "${enable_lint_library+set}" = set; then : 18685 enableval=$enable_lint_library; make_lint_lib=$enableval 18686else 18687 make_lint_lib=no 18688fi 18689 18690 18691if test "x$make_lint_lib" = x"yes" ; then 18692 LINTLIB=llib-lXmu.ln 18693 if test "x$LINT" = "x"; then 18694 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18695 fi 18696elif test "x$make_lint_lib" != x"no" ; then 18697 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18698fi 18699 18700 18701 if test x$make_lint_lib != xno; then 18702 MAKE_LINT_LIB_TRUE= 18703 MAKE_LINT_LIB_FALSE='#' 18704else 18705 MAKE_LINT_LIB_TRUE='#' 18706 MAKE_LINT_LIB_FALSE= 18707fi 18708 18709 18710 18711LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/` 18712 18713 18714ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile xmu.pc xmuu.pc" 18715 18716cat >confcache <<\_ACEOF 18717# This file is a shell script that caches the results of configure 18718# tests run on this system so they can be shared between configure 18719# scripts and configure runs, see configure's option --config-cache. 18720# It is not useful on other systems. If it contains results you don't 18721# want to keep, you may remove or edit it. 18722# 18723# config.status only pays attention to the cache file if you give it 18724# the --recheck option to rerun configure. 18725# 18726# `ac_cv_env_foo' variables (set or unset) will be overridden when 18727# loading this file, other *unset* `ac_cv_foo' will be assigned the 18728# following values. 18729 18730_ACEOF 18731 18732# The following way of writing the cache mishandles newlines in values, 18733# but we know of no workaround that is simple, portable, and efficient. 18734# So, we kill variables containing newlines. 18735# Ultrix sh set writes to stderr and can't be redirected directly, 18736# and sets the high bit in the cache file unless we assign to the vars. 18737( 18738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18739 eval ac_val=\$$ac_var 18740 case $ac_val in #( 18741 *${as_nl}*) 18742 case $ac_var in #( 18743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18744$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18745 esac 18746 case $ac_var in #( 18747 _ | IFS | as_nl) ;; #( 18748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18749 *) { eval $ac_var=; unset $ac_var;} ;; 18750 esac ;; 18751 esac 18752 done 18753 18754 (set) 2>&1 | 18755 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18756 *${as_nl}ac_space=\ *) 18757 # `set' does not quote correctly, so add quotes: double-quote 18758 # substitution turns \\\\ into \\, and sed turns \\ into \. 18759 sed -n \ 18760 "s/'/'\\\\''/g; 18761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18762 ;; #( 18763 *) 18764 # `set' quotes correctly as required by POSIX, so do not add quotes. 18765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18766 ;; 18767 esac | 18768 sort 18769) | 18770 sed ' 18771 /^ac_cv_env_/b end 18772 t clear 18773 :clear 18774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18775 t end 18776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18777 :end' >>confcache 18778if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18779 if test -w "$cache_file"; then 18780 if test "x$cache_file" != "x/dev/null"; then 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18782$as_echo "$as_me: updating cache $cache_file" >&6;} 18783 if test ! -f "$cache_file" || test -h "$cache_file"; then 18784 cat confcache >"$cache_file" 18785 else 18786 case $cache_file in #( 18787 */* | ?:*) 18788 mv -f confcache "$cache_file"$$ && 18789 mv -f "$cache_file"$$ "$cache_file" ;; #( 18790 *) 18791 mv -f confcache "$cache_file" ;; 18792 esac 18793 fi 18794 fi 18795 else 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18797$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18798 fi 18799fi 18800rm -f confcache 18801 18802test "x$prefix" = xNONE && prefix=$ac_default_prefix 18803# Let make expand exec_prefix. 18804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18805 18806DEFS=-DHAVE_CONFIG_H 18807 18808ac_libobjs= 18809ac_ltlibobjs= 18810U= 18811for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18812 # 1. Remove the extension, and $U if already installed. 18813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18816 # will be set to the directory where LIBOBJS objects are built. 18817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18819done 18820LIBOBJS=$ac_libobjs 18821 18822LTLIBOBJS=$ac_ltlibobjs 18823 18824 18825 if test -n "$EXEEXT"; then 18826 am__EXEEXT_TRUE= 18827 am__EXEEXT_FALSE='#' 18828else 18829 am__EXEEXT_TRUE='#' 18830 am__EXEEXT_FALSE= 18831fi 18832 18833if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18834 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18835Usually this means the macro was only invoked conditionally." "$LINENO" 5 18836fi 18837if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18838 as_fn_error $? "conditional \"AMDEP\" was never defined. 18839Usually this means the macro was only invoked conditionally." "$LINENO" 5 18840fi 18841if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18842 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18843Usually this means the macro was only invoked conditionally." "$LINENO" 5 18844fi 18845if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 18846 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 18847Usually this means the macro was only invoked conditionally." "$LINENO" 5 18848fi 18849if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18850 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18851Usually this means the macro was only invoked conditionally." "$LINENO" 5 18852fi 18853if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18854 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18855Usually this means the macro was only invoked conditionally." "$LINENO" 5 18856fi 18857if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18858 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18859Usually this means the macro was only invoked conditionally." "$LINENO" 5 18860fi 18861if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18862 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18863Usually this means the macro was only invoked conditionally." "$LINENO" 5 18864fi 18865if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18866 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18867Usually this means the macro was only invoked conditionally." "$LINENO" 5 18868fi 18869if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18870 as_fn_error $? "conditional \"LINT\" was never defined. 18871Usually this means the macro was only invoked conditionally." "$LINENO" 5 18872fi 18873if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18874 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18875Usually this means the macro was only invoked conditionally." "$LINENO" 5 18876fi 18877 18878: "${CONFIG_STATUS=./config.status}" 18879ac_write_fail=0 18880ac_clean_files_save=$ac_clean_files 18881ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18882{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18883$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18884as_write_fail=0 18885cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18886#! $SHELL 18887# Generated by $as_me. 18888# Run this file to recreate the current configuration. 18889# Compiler output produced by configure, useful for debugging 18890# configure, is in config.log if it exists. 18891 18892debug=false 18893ac_cs_recheck=false 18894ac_cs_silent=false 18895 18896SHELL=\${CONFIG_SHELL-$SHELL} 18897export SHELL 18898_ASEOF 18899cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18900## -------------------- ## 18901## M4sh Initialization. ## 18902## -------------------- ## 18903 18904# Be more Bourne compatible 18905DUALCASE=1; export DUALCASE # for MKS sh 18906if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18907 emulate sh 18908 NULLCMD=: 18909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18910 # is contrary to our usage. Disable this feature. 18911 alias -g '${1+"$@"}'='"$@"' 18912 setopt NO_GLOB_SUBST 18913else 18914 case `(set -o) 2>/dev/null` in #( 18915 *posix*) : 18916 set -o posix ;; #( 18917 *) : 18918 ;; 18919esac 18920fi 18921 18922 18923as_nl=' 18924' 18925export as_nl 18926# Printing a long string crashes Solaris 7 /usr/bin/printf. 18927as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18929as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18930# Prefer a ksh shell builtin over an external printf program on Solaris, 18931# but without wasting forks for bash or zsh. 18932if test -z "$BASH_VERSION$ZSH_VERSION" \ 18933 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18934 as_echo='print -r --' 18935 as_echo_n='print -rn --' 18936elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18937 as_echo='printf %s\n' 18938 as_echo_n='printf %s' 18939else 18940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18942 as_echo_n='/usr/ucb/echo -n' 18943 else 18944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18945 as_echo_n_body='eval 18946 arg=$1; 18947 case $arg in #( 18948 *"$as_nl"*) 18949 expr "X$arg" : "X\\(.*\\)$as_nl"; 18950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18951 esac; 18952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18953 ' 18954 export as_echo_n_body 18955 as_echo_n='sh -c $as_echo_n_body as_echo' 18956 fi 18957 export as_echo_body 18958 as_echo='sh -c $as_echo_body as_echo' 18959fi 18960 18961# The user is always right. 18962if test "${PATH_SEPARATOR+set}" != set; then 18963 PATH_SEPARATOR=: 18964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18966 PATH_SEPARATOR=';' 18967 } 18968fi 18969 18970 18971# IFS 18972# We need space, tab and new line, in precisely that order. Quoting is 18973# there to prevent editors from complaining about space-tab. 18974# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18975# splitting by setting IFS to empty value.) 18976IFS=" "" $as_nl" 18977 18978# Find who we are. Look in the path if we contain no directory separator. 18979as_myself= 18980case $0 in #(( 18981 *[\\/]* ) as_myself=$0 ;; 18982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18983for as_dir in $PATH 18984do 18985 IFS=$as_save_IFS 18986 test -z "$as_dir" && as_dir=. 18987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18988 done 18989IFS=$as_save_IFS 18990 18991 ;; 18992esac 18993# We did not find ourselves, most probably we were run as `sh COMMAND' 18994# in which case we are not to be found in the path. 18995if test "x$as_myself" = x; then 18996 as_myself=$0 18997fi 18998if test ! -f "$as_myself"; then 18999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19000 exit 1 19001fi 19002 19003# Unset variables that we do not need and which cause bugs (e.g. in 19004# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19005# suppresses any "Segmentation fault" message there. '((' could 19006# trigger a bug in pdksh 5.2.14. 19007for as_var in BASH_ENV ENV MAIL MAILPATH 19008do eval test x\${$as_var+set} = xset \ 19009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19010done 19011PS1='$ ' 19012PS2='> ' 19013PS4='+ ' 19014 19015# NLS nuisances. 19016LC_ALL=C 19017export LC_ALL 19018LANGUAGE=C 19019export LANGUAGE 19020 19021# CDPATH. 19022(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19023 19024 19025# as_fn_error STATUS ERROR [LINENO LOG_FD] 19026# ---------------------------------------- 19027# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19028# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19029# script with STATUS, using 1 if that was 0. 19030as_fn_error () 19031{ 19032 as_status=$1; test $as_status -eq 0 && as_status=1 19033 if test "$4"; then 19034 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19036 fi 19037 $as_echo "$as_me: error: $2" >&2 19038 as_fn_exit $as_status 19039} # as_fn_error 19040 19041 19042# as_fn_set_status STATUS 19043# ----------------------- 19044# Set $? to STATUS, without forking. 19045as_fn_set_status () 19046{ 19047 return $1 19048} # as_fn_set_status 19049 19050# as_fn_exit STATUS 19051# ----------------- 19052# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19053as_fn_exit () 19054{ 19055 set +e 19056 as_fn_set_status $1 19057 exit $1 19058} # as_fn_exit 19059 19060# as_fn_unset VAR 19061# --------------- 19062# Portably unset VAR. 19063as_fn_unset () 19064{ 19065 { eval $1=; unset $1;} 19066} 19067as_unset=as_fn_unset 19068# as_fn_append VAR VALUE 19069# ---------------------- 19070# Append the text in VALUE to the end of the definition contained in VAR. Take 19071# advantage of any shell optimizations that allow amortized linear growth over 19072# repeated appends, instead of the typical quadratic growth present in naive 19073# implementations. 19074if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19075 eval 'as_fn_append () 19076 { 19077 eval $1+=\$2 19078 }' 19079else 19080 as_fn_append () 19081 { 19082 eval $1=\$$1\$2 19083 } 19084fi # as_fn_append 19085 19086# as_fn_arith ARG... 19087# ------------------ 19088# Perform arithmetic evaluation on the ARGs, and store the result in the 19089# global $as_val. Take advantage of shells that can avoid forks. The arguments 19090# must be portable across $(()) and expr. 19091if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19092 eval 'as_fn_arith () 19093 { 19094 as_val=$(( $* )) 19095 }' 19096else 19097 as_fn_arith () 19098 { 19099 as_val=`expr "$@" || test $? -eq 1` 19100 } 19101fi # as_fn_arith 19102 19103 19104if expr a : '\(a\)' >/dev/null 2>&1 && 19105 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19106 as_expr=expr 19107else 19108 as_expr=false 19109fi 19110 19111if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19112 as_basename=basename 19113else 19114 as_basename=false 19115fi 19116 19117if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19118 as_dirname=dirname 19119else 19120 as_dirname=false 19121fi 19122 19123as_me=`$as_basename -- "$0" || 19124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19125 X"$0" : 'X\(//\)$' \| \ 19126 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19127$as_echo X/"$0" | 19128 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19129 s//\1/ 19130 q 19131 } 19132 /^X\/\(\/\/\)$/{ 19133 s//\1/ 19134 q 19135 } 19136 /^X\/\(\/\).*/{ 19137 s//\1/ 19138 q 19139 } 19140 s/.*/./; q'` 19141 19142# Avoid depending upon Character Ranges. 19143as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19145as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19146as_cr_digits='0123456789' 19147as_cr_alnum=$as_cr_Letters$as_cr_digits 19148 19149ECHO_C= ECHO_N= ECHO_T= 19150case `echo -n x` in #((((( 19151-n*) 19152 case `echo 'xy\c'` in 19153 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19154 xy) ECHO_C='\c';; 19155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19156 ECHO_T=' ';; 19157 esac;; 19158*) 19159 ECHO_N='-n';; 19160esac 19161 19162rm -f conf$$ conf$$.exe conf$$.file 19163if test -d conf$$.dir; then 19164 rm -f conf$$.dir/conf$$.file 19165else 19166 rm -f conf$$.dir 19167 mkdir conf$$.dir 2>/dev/null 19168fi 19169if (echo >conf$$.file) 2>/dev/null; then 19170 if ln -s conf$$.file conf$$ 2>/dev/null; then 19171 as_ln_s='ln -s' 19172 # ... but there are two gotchas: 19173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19175 # In both cases, we have to default to `cp -p'. 19176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19177 as_ln_s='cp -p' 19178 elif ln conf$$.file conf$$ 2>/dev/null; then 19179 as_ln_s=ln 19180 else 19181 as_ln_s='cp -p' 19182 fi 19183else 19184 as_ln_s='cp -p' 19185fi 19186rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19187rmdir conf$$.dir 2>/dev/null 19188 19189 19190# as_fn_mkdir_p 19191# ------------- 19192# Create "$as_dir" as a directory, including parents if necessary. 19193as_fn_mkdir_p () 19194{ 19195 19196 case $as_dir in #( 19197 -*) as_dir=./$as_dir;; 19198 esac 19199 test -d "$as_dir" || eval $as_mkdir_p || { 19200 as_dirs= 19201 while :; do 19202 case $as_dir in #( 19203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19204 *) as_qdir=$as_dir;; 19205 esac 19206 as_dirs="'$as_qdir' $as_dirs" 19207 as_dir=`$as_dirname -- "$as_dir" || 19208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19209 X"$as_dir" : 'X\(//\)[^/]' \| \ 19210 X"$as_dir" : 'X\(//\)$' \| \ 19211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19212$as_echo X"$as_dir" | 19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19214 s//\1/ 19215 q 19216 } 19217 /^X\(\/\/\)[^/].*/{ 19218 s//\1/ 19219 q 19220 } 19221 /^X\(\/\/\)$/{ 19222 s//\1/ 19223 q 19224 } 19225 /^X\(\/\).*/{ 19226 s//\1/ 19227 q 19228 } 19229 s/.*/./; q'` 19230 test -d "$as_dir" && break 19231 done 19232 test -z "$as_dirs" || eval "mkdir $as_dirs" 19233 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19234 19235 19236} # as_fn_mkdir_p 19237if mkdir -p . 2>/dev/null; then 19238 as_mkdir_p='mkdir -p "$as_dir"' 19239else 19240 test -d ./-p && rmdir ./-p 19241 as_mkdir_p=false 19242fi 19243 19244if test -x / >/dev/null 2>&1; then 19245 as_test_x='test -x' 19246else 19247 if ls -dL / >/dev/null 2>&1; then 19248 as_ls_L_option=L 19249 else 19250 as_ls_L_option= 19251 fi 19252 as_test_x=' 19253 eval sh -c '\'' 19254 if test -d "$1"; then 19255 test -d "$1/."; 19256 else 19257 case $1 in #( 19258 -*)set "./$1";; 19259 esac; 19260 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19261 ???[sx]*):;;*)false;;esac;fi 19262 '\'' sh 19263 ' 19264fi 19265as_executable_p=$as_test_x 19266 19267# Sed expression to map a string onto a valid CPP name. 19268as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19269 19270# Sed expression to map a string onto a valid variable name. 19271as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19272 19273 19274exec 6>&1 19275## ----------------------------------- ## 19276## Main body of $CONFIG_STATUS script. ## 19277## ----------------------------------- ## 19278_ASEOF 19279test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19280 19281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19282# Save the log message, to keep $0 and so on meaningful, and to 19283# report actual input values of CONFIG_FILES etc. instead of their 19284# values after options handling. 19285ac_log=" 19286This file was extended by libXmu $as_me 1.1.1, which was 19287generated by GNU Autoconf 2.68. Invocation command line was 19288 19289 CONFIG_FILES = $CONFIG_FILES 19290 CONFIG_HEADERS = $CONFIG_HEADERS 19291 CONFIG_LINKS = $CONFIG_LINKS 19292 CONFIG_COMMANDS = $CONFIG_COMMANDS 19293 $ $0 $@ 19294 19295on `(hostname || uname -n) 2>/dev/null | sed 1q` 19296" 19297 19298_ACEOF 19299 19300case $ac_config_files in *" 19301"*) set x $ac_config_files; shift; ac_config_files=$*;; 19302esac 19303 19304case $ac_config_headers in *" 19305"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19306esac 19307 19308 19309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19310# Files that config.status was made for. 19311config_files="$ac_config_files" 19312config_headers="$ac_config_headers" 19313config_commands="$ac_config_commands" 19314 19315_ACEOF 19316 19317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19318ac_cs_usage="\ 19319\`$as_me' instantiates files and other configuration actions 19320from templates according to the current configuration. Unless the files 19321and actions are specified as TAGs, all are instantiated by default. 19322 19323Usage: $0 [OPTION]... [TAG]... 19324 19325 -h, --help print this help, then exit 19326 -V, --version print version number and configuration settings, then exit 19327 --config print configuration, then exit 19328 -q, --quiet, --silent 19329 do not print progress messages 19330 -d, --debug don't remove temporary files 19331 --recheck update $as_me by reconfiguring in the same conditions 19332 --file=FILE[:TEMPLATE] 19333 instantiate the configuration file FILE 19334 --header=FILE[:TEMPLATE] 19335 instantiate the configuration header FILE 19336 19337Configuration files: 19338$config_files 19339 19340Configuration headers: 19341$config_headers 19342 19343Configuration commands: 19344$config_commands 19345 19346Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19347 19348_ACEOF 19349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19350ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19351ac_cs_version="\\ 19352libXmu config.status 1.1.1 19353configured by $0, generated by GNU Autoconf 2.68, 19354 with options \\"\$ac_cs_config\\" 19355 19356Copyright (C) 2010 Free Software Foundation, Inc. 19357This config.status script is free software; the Free Software Foundation 19358gives unlimited permission to copy, distribute and modify it." 19359 19360ac_pwd='$ac_pwd' 19361srcdir='$srcdir' 19362INSTALL='$INSTALL' 19363MKDIR_P='$MKDIR_P' 19364AWK='$AWK' 19365test -n "\$AWK" || AWK=awk 19366_ACEOF 19367 19368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19369# The default lists apply if the user does not specify any file. 19370ac_need_defaults=: 19371while test $# != 0 19372do 19373 case $1 in 19374 --*=?*) 19375 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19377 ac_shift=: 19378 ;; 19379 --*=) 19380 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19381 ac_optarg= 19382 ac_shift=: 19383 ;; 19384 *) 19385 ac_option=$1 19386 ac_optarg=$2 19387 ac_shift=shift 19388 ;; 19389 esac 19390 19391 case $ac_option in 19392 # Handling of the options. 19393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19394 ac_cs_recheck=: ;; 19395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19396 $as_echo "$ac_cs_version"; exit ;; 19397 --config | --confi | --conf | --con | --co | --c ) 19398 $as_echo "$ac_cs_config"; exit ;; 19399 --debug | --debu | --deb | --de | --d | -d ) 19400 debug=: ;; 19401 --file | --fil | --fi | --f ) 19402 $ac_shift 19403 case $ac_optarg in 19404 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19405 '') as_fn_error $? "missing file argument" ;; 19406 esac 19407 as_fn_append CONFIG_FILES " '$ac_optarg'" 19408 ac_need_defaults=false;; 19409 --header | --heade | --head | --hea ) 19410 $ac_shift 19411 case $ac_optarg in 19412 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19413 esac 19414 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19415 ac_need_defaults=false;; 19416 --he | --h) 19417 # Conflict between --help and --header 19418 as_fn_error $? "ambiguous option: \`$1' 19419Try \`$0 --help' for more information.";; 19420 --help | --hel | -h ) 19421 $as_echo "$ac_cs_usage"; exit ;; 19422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19423 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19424 ac_cs_silent=: ;; 19425 19426 # This is an error. 19427 -*) as_fn_error $? "unrecognized option: \`$1' 19428Try \`$0 --help' for more information." ;; 19429 19430 *) as_fn_append ac_config_targets " $1" 19431 ac_need_defaults=false ;; 19432 19433 esac 19434 shift 19435done 19436 19437ac_configure_extra_args= 19438 19439if $ac_cs_silent; then 19440 exec 6>/dev/null 19441 ac_configure_extra_args="$ac_configure_extra_args --silent" 19442fi 19443 19444_ACEOF 19445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19446if \$ac_cs_recheck; then 19447 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19448 shift 19449 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19450 CONFIG_SHELL='$SHELL' 19451 export CONFIG_SHELL 19452 exec "\$@" 19453fi 19454 19455_ACEOF 19456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19457exec 5>>config.log 19458{ 19459 echo 19460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19461## Running $as_me. ## 19462_ASBOX 19463 $as_echo "$ac_log" 19464} >&5 19465 19466_ACEOF 19467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19468# 19469# INIT-COMMANDS 19470# 19471AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19472 19473 19474# The HP-UX ksh and POSIX shell print the target directory to stdout 19475# if CDPATH is set. 19476(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19477 19478sed_quote_subst='$sed_quote_subst' 19479double_quote_subst='$double_quote_subst' 19480delay_variable_subst='$delay_variable_subst' 19481macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19482macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19483enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19484enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19485pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19486enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19487SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19488ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19489host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19490host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19491host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19492build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19493build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19494build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19495SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19496Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19497GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19498EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19499FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19500LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19501NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19502LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19503max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19504ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19505exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19506lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19507lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19508lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19509lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19510lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19511reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19512reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19513OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19514deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19515file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19516file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19517want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19518DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19519sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19520AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19521AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19522archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19523STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19524RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19525old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19526old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19527old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19528lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19529CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19530CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19531compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19532GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19533lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19534lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19535lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19536lt_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"`' 19537nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19538lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19539objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19540MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19541lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19542lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19543lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19544lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19545lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19546need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19547MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19548DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19549NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19550LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19551OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19552OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19553libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19554shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19555extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19556archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19557enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19558export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19559whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19560compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19561old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19562old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19563archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19564archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19565module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19566module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19567with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19568allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19569no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19570hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19571hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 19572hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19573hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19574hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19575hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19576hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19577hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19578inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19579link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19580always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19581export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19582exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19583include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19584prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19585postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19586file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19587variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19588need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19589need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19590version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19591runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19592shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19593shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19594libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19595library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19596soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19597install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19598postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19599postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19600finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19601finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19602hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19603sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19604sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19605hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19606enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19607enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19608enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19609old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19610striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19611 19612LTCC='$LTCC' 19613LTCFLAGS='$LTCFLAGS' 19614compiler='$compiler_DEFAULT' 19615 19616# A function that is used when there is no print builtin or printf. 19617func_fallback_echo () 19618{ 19619 eval 'cat <<_LTECHO_EOF 19620\$1 19621_LTECHO_EOF' 19622} 19623 19624# Quote evaled strings. 19625for var in SHELL \ 19626ECHO \ 19627SED \ 19628GREP \ 19629EGREP \ 19630FGREP \ 19631LD \ 19632NM \ 19633LN_S \ 19634lt_SP2NL \ 19635lt_NL2SP \ 19636reload_flag \ 19637OBJDUMP \ 19638deplibs_check_method \ 19639file_magic_cmd \ 19640file_magic_glob \ 19641want_nocaseglob \ 19642DLLTOOL \ 19643sharedlib_from_linklib_cmd \ 19644AR \ 19645AR_FLAGS \ 19646archiver_list_spec \ 19647STRIP \ 19648RANLIB \ 19649CC \ 19650CFLAGS \ 19651compiler \ 19652lt_cv_sys_global_symbol_pipe \ 19653lt_cv_sys_global_symbol_to_cdecl \ 19654lt_cv_sys_global_symbol_to_c_name_address \ 19655lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19656nm_file_list_spec \ 19657lt_prog_compiler_no_builtin_flag \ 19658lt_prog_compiler_pic \ 19659lt_prog_compiler_wl \ 19660lt_prog_compiler_static \ 19661lt_cv_prog_compiler_c_o \ 19662need_locks \ 19663MANIFEST_TOOL \ 19664DSYMUTIL \ 19665NMEDIT \ 19666LIPO \ 19667OTOOL \ 19668OTOOL64 \ 19669shrext_cmds \ 19670export_dynamic_flag_spec \ 19671whole_archive_flag_spec \ 19672compiler_needs_object \ 19673with_gnu_ld \ 19674allow_undefined_flag \ 19675no_undefined_flag \ 19676hardcode_libdir_flag_spec \ 19677hardcode_libdir_flag_spec_ld \ 19678hardcode_libdir_separator \ 19679exclude_expsyms \ 19680include_expsyms \ 19681file_list_spec \ 19682variables_saved_for_relink \ 19683libname_spec \ 19684library_names_spec \ 19685soname_spec \ 19686install_override_mode \ 19687finish_eval \ 19688old_striplib \ 19689striplib; do 19690 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19691 *[\\\\\\\`\\"\\\$]*) 19692 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19693 ;; 19694 *) 19695 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19696 ;; 19697 esac 19698done 19699 19700# Double-quote double-evaled strings. 19701for var in reload_cmds \ 19702old_postinstall_cmds \ 19703old_postuninstall_cmds \ 19704old_archive_cmds \ 19705extract_expsyms_cmds \ 19706old_archive_from_new_cmds \ 19707old_archive_from_expsyms_cmds \ 19708archive_cmds \ 19709archive_expsym_cmds \ 19710module_cmds \ 19711module_expsym_cmds \ 19712export_symbols_cmds \ 19713prelink_cmds \ 19714postlink_cmds \ 19715postinstall_cmds \ 19716postuninstall_cmds \ 19717finish_cmds \ 19718sys_lib_search_path_spec \ 19719sys_lib_dlsearch_path_spec; do 19720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19721 *[\\\\\\\`\\"\\\$]*) 19722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19723 ;; 19724 *) 19725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19726 ;; 19727 esac 19728done 19729 19730ac_aux_dir='$ac_aux_dir' 19731xsi_shell='$xsi_shell' 19732lt_shell_append='$lt_shell_append' 19733 19734# See if we are running on zsh, and set the options which allow our 19735# commands through without removal of \ escapes INIT. 19736if test -n "\${ZSH_VERSION+set}" ; then 19737 setopt NO_GLOB_SUBST 19738fi 19739 19740 19741 PACKAGE='$PACKAGE' 19742 VERSION='$VERSION' 19743 TIMESTAMP='$TIMESTAMP' 19744 RM='$RM' 19745 ofile='$ofile' 19746 19747 19748 19749 19750_ACEOF 19751 19752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19753 19754# Handling of arguments. 19755for ac_config_target in $ac_config_targets 19756do 19757 case $ac_config_target in 19758 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19759 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19760 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19761 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19762 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19763 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19764 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19765 "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;; 19766 "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;; 19767 19768 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19769 esac 19770done 19771 19772 19773# If the user did not use the arguments to specify the items to instantiate, 19774# then the envvar interface is used. Set only those that are not. 19775# We use the long form for the default assignment because of an extremely 19776# bizarre bug on SunOS 4.1.3. 19777if $ac_need_defaults; then 19778 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19779 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19780 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19781fi 19782 19783# Have a temporary directory for convenience. Make it in the build tree 19784# simply because there is no reason against having it here, and in addition, 19785# creating and moving files from /tmp can sometimes cause problems. 19786# Hook for its removal unless debugging. 19787# Note that there is a small window in which the directory will not be cleaned: 19788# after its creation but before its name has been assigned to `$tmp'. 19789$debug || 19790{ 19791 tmp= ac_tmp= 19792 trap 'exit_status=$? 19793 : "${ac_tmp:=$tmp}" 19794 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19795' 0 19796 trap 'as_fn_exit 1' 1 2 13 15 19797} 19798# Create a (secure) tmp directory for tmp files. 19799 19800{ 19801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19802 test -d "$tmp" 19803} || 19804{ 19805 tmp=./conf$$-$RANDOM 19806 (umask 077 && mkdir "$tmp") 19807} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19808ac_tmp=$tmp 19809 19810# Set up the scripts for CONFIG_FILES section. 19811# No need to generate them if there are no CONFIG_FILES. 19812# This happens for instance with `./config.status config.h'. 19813if test -n "$CONFIG_FILES"; then 19814 19815 19816ac_cr=`echo X | tr X '\015'` 19817# On cygwin, bash can eat \r inside `` if the user requested igncr. 19818# But we know of no other shell where ac_cr would be empty at this 19819# point, so we can use a bashism as a fallback. 19820if test "x$ac_cr" = x; then 19821 eval ac_cr=\$\'\\r\' 19822fi 19823ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19824if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19825 ac_cs_awk_cr='\\r' 19826else 19827 ac_cs_awk_cr=$ac_cr 19828fi 19829 19830echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19831_ACEOF 19832 19833 19834{ 19835 echo "cat >conf$$subs.awk <<_ACEOF" && 19836 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19837 echo "_ACEOF" 19838} >conf$$subs.sh || 19839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19840ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19841ac_delim='%!_!# ' 19842for ac_last_try in false false false false false :; do 19843 . ./conf$$subs.sh || 19844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19845 19846 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19847 if test $ac_delim_n = $ac_delim_num; then 19848 break 19849 elif $ac_last_try; then 19850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19851 else 19852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19853 fi 19854done 19855rm -f conf$$subs.sh 19856 19857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19858cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19859_ACEOF 19860sed -n ' 19861h 19862s/^/S["/; s/!.*/"]=/ 19863p 19864g 19865s/^[^!]*!// 19866:repl 19867t repl 19868s/'"$ac_delim"'$// 19869t delim 19870:nl 19871h 19872s/\(.\{148\}\)..*/\1/ 19873t more1 19874s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19875p 19876n 19877b repl 19878:more1 19879s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19880p 19881g 19882s/.\{148\}// 19883t nl 19884:delim 19885h 19886s/\(.\{148\}\)..*/\1/ 19887t more2 19888s/["\\]/\\&/g; s/^/"/; s/$/"/ 19889p 19890b 19891:more2 19892s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19893p 19894g 19895s/.\{148\}// 19896t delim 19897' <conf$$subs.awk | sed ' 19898/^[^""]/{ 19899 N 19900 s/\n// 19901} 19902' >>$CONFIG_STATUS || ac_write_fail=1 19903rm -f conf$$subs.awk 19904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19905_ACAWK 19906cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19907 for (key in S) S_is_set[key] = 1 19908 FS = "" 19909 19910} 19911{ 19912 line = $ 0 19913 nfields = split(line, field, "@") 19914 substed = 0 19915 len = length(field[1]) 19916 for (i = 2; i < nfields; i++) { 19917 key = field[i] 19918 keylen = length(key) 19919 if (S_is_set[key]) { 19920 value = S[key] 19921 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19922 len += length(value) + length(field[++i]) 19923 substed = 1 19924 } else 19925 len += 1 + keylen 19926 } 19927 19928 print line 19929} 19930 19931_ACAWK 19932_ACEOF 19933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19934if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19935 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19936else 19937 cat 19938fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19939 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19940_ACEOF 19941 19942# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19943# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19944# trailing colons and then remove the whole line if VPATH becomes empty 19945# (actually we leave an empty line to preserve line numbers). 19946if test "x$srcdir" = x.; then 19947 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19948h 19949s/// 19950s/^/:/ 19951s/[ ]*$/:/ 19952s/:\$(srcdir):/:/g 19953s/:\${srcdir}:/:/g 19954s/:@srcdir@:/:/g 19955s/^:*// 19956s/:*$// 19957x 19958s/\(=[ ]*\).*/\1/ 19959G 19960s/\n// 19961s/^[^=]*=[ ]*$// 19962}' 19963fi 19964 19965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19966fi # test -n "$CONFIG_FILES" 19967 19968# Set up the scripts for CONFIG_HEADERS section. 19969# No need to generate them if there are no CONFIG_HEADERS. 19970# This happens for instance with `./config.status Makefile'. 19971if test -n "$CONFIG_HEADERS"; then 19972cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19973BEGIN { 19974_ACEOF 19975 19976# Transform confdefs.h into an awk script `defines.awk', embedded as 19977# here-document in config.status, that substitutes the proper values into 19978# config.h.in to produce config.h. 19979 19980# Create a delimiter string that does not exist in confdefs.h, to ease 19981# handling of long lines. 19982ac_delim='%!_!# ' 19983for ac_last_try in false false :; do 19984 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19985 if test -z "$ac_tt"; then 19986 break 19987 elif $ac_last_try; then 19988 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19989 else 19990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19991 fi 19992done 19993 19994# For the awk script, D is an array of macro values keyed by name, 19995# likewise P contains macro parameters if any. Preserve backslash 19996# newline sequences. 19997 19998ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19999sed -n ' 20000s/.\{148\}/&'"$ac_delim"'/g 20001t rset 20002:rset 20003s/^[ ]*#[ ]*define[ ][ ]*/ / 20004t def 20005d 20006:def 20007s/\\$// 20008t bsnl 20009s/["\\]/\\&/g 20010s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20011D["\1"]=" \3"/p 20012s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20013d 20014:bsnl 20015s/["\\]/\\&/g 20016s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20017D["\1"]=" \3\\\\\\n"\\/p 20018t cont 20019s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20020t cont 20021d 20022:cont 20023n 20024s/.\{148\}/&'"$ac_delim"'/g 20025t clear 20026:clear 20027s/\\$// 20028t bsnlc 20029s/["\\]/\\&/g; s/^/"/; s/$/"/p 20030d 20031:bsnlc 20032s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20033b cont 20034' <confdefs.h | sed ' 20035s/'"$ac_delim"'/"\\\ 20036"/g' >>$CONFIG_STATUS || ac_write_fail=1 20037 20038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20039 for (key in D) D_is_set[key] = 1 20040 FS = "" 20041} 20042/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20043 line = \$ 0 20044 split(line, arg, " ") 20045 if (arg[1] == "#") { 20046 defundef = arg[2] 20047 mac1 = arg[3] 20048 } else { 20049 defundef = substr(arg[1], 2) 20050 mac1 = arg[2] 20051 } 20052 split(mac1, mac2, "(") #) 20053 macro = mac2[1] 20054 prefix = substr(line, 1, index(line, defundef) - 1) 20055 if (D_is_set[macro]) { 20056 # Preserve the white space surrounding the "#". 20057 print prefix "define", macro P[macro] D[macro] 20058 next 20059 } else { 20060 # Replace #undef with comments. This is necessary, for example, 20061 # in the case of _POSIX_SOURCE, which is predefined and required 20062 # on some systems where configure will not decide to define it. 20063 if (defundef == "undef") { 20064 print "/*", prefix defundef, macro, "*/" 20065 next 20066 } 20067 } 20068} 20069{ print } 20070_ACAWK 20071_ACEOF 20072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20073 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20074fi # test -n "$CONFIG_HEADERS" 20075 20076 20077eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20078shift 20079for ac_tag 20080do 20081 case $ac_tag in 20082 :[FHLC]) ac_mode=$ac_tag; continue;; 20083 esac 20084 case $ac_mode$ac_tag in 20085 :[FHL]*:*);; 20086 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20087 :[FH]-) ac_tag=-:-;; 20088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20089 esac 20090 ac_save_IFS=$IFS 20091 IFS=: 20092 set x $ac_tag 20093 IFS=$ac_save_IFS 20094 shift 20095 ac_file=$1 20096 shift 20097 20098 case $ac_mode in 20099 :L) ac_source=$1;; 20100 :[FH]) 20101 ac_file_inputs= 20102 for ac_f 20103 do 20104 case $ac_f in 20105 -) ac_f="$ac_tmp/stdin";; 20106 *) # Look for the file first in the build tree, then in the source tree 20107 # (if the path is not absolute). The absolute path cannot be DOS-style, 20108 # because $ac_f cannot contain `:'. 20109 test -f "$ac_f" || 20110 case $ac_f in 20111 [\\/$]*) false;; 20112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20113 esac || 20114 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20115 esac 20116 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20117 as_fn_append ac_file_inputs " '$ac_f'" 20118 done 20119 20120 # Let's still pretend it is `configure' which instantiates (i.e., don't 20121 # use $as_me), people would be surprised to read: 20122 # /* config.h. Generated by config.status. */ 20123 configure_input='Generated from '` 20124 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20125 `' by configure.' 20126 if test x"$ac_file" != x-; then 20127 configure_input="$ac_file. $configure_input" 20128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20129$as_echo "$as_me: creating $ac_file" >&6;} 20130 fi 20131 # Neutralize special characters interpreted by sed in replacement strings. 20132 case $configure_input in #( 20133 *\&* | *\|* | *\\* ) 20134 ac_sed_conf_input=`$as_echo "$configure_input" | 20135 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20136 *) ac_sed_conf_input=$configure_input;; 20137 esac 20138 20139 case $ac_tag in 20140 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20142 esac 20143 ;; 20144 esac 20145 20146 ac_dir=`$as_dirname -- "$ac_file" || 20147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20148 X"$ac_file" : 'X\(//\)[^/]' \| \ 20149 X"$ac_file" : 'X\(//\)$' \| \ 20150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20151$as_echo X"$ac_file" | 20152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20153 s//\1/ 20154 q 20155 } 20156 /^X\(\/\/\)[^/].*/{ 20157 s//\1/ 20158 q 20159 } 20160 /^X\(\/\/\)$/{ 20161 s//\1/ 20162 q 20163 } 20164 /^X\(\/\).*/{ 20165 s//\1/ 20166 q 20167 } 20168 s/.*/./; q'` 20169 as_dir="$ac_dir"; as_fn_mkdir_p 20170 ac_builddir=. 20171 20172case "$ac_dir" in 20173.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20174*) 20175 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20176 # A ".." for each directory in $ac_dir_suffix. 20177 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20178 case $ac_top_builddir_sub in 20179 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20180 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20181 esac ;; 20182esac 20183ac_abs_top_builddir=$ac_pwd 20184ac_abs_builddir=$ac_pwd$ac_dir_suffix 20185# for backward compatibility: 20186ac_top_builddir=$ac_top_build_prefix 20187 20188case $srcdir in 20189 .) # We are building in place. 20190 ac_srcdir=. 20191 ac_top_srcdir=$ac_top_builddir_sub 20192 ac_abs_top_srcdir=$ac_pwd ;; 20193 [\\/]* | ?:[\\/]* ) # Absolute name. 20194 ac_srcdir=$srcdir$ac_dir_suffix; 20195 ac_top_srcdir=$srcdir 20196 ac_abs_top_srcdir=$srcdir ;; 20197 *) # Relative name. 20198 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20199 ac_top_srcdir=$ac_top_build_prefix$srcdir 20200 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20201esac 20202ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20203 20204 20205 case $ac_mode in 20206 :F) 20207 # 20208 # CONFIG_FILE 20209 # 20210 20211 case $INSTALL in 20212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20213 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20214 esac 20215 ac_MKDIR_P=$MKDIR_P 20216 case $MKDIR_P in 20217 [\\/$]* | ?:[\\/]* ) ;; 20218 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20219 esac 20220_ACEOF 20221 20222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20223# If the template does not know about datarootdir, expand it. 20224# FIXME: This hack should be removed a few years after 2.60. 20225ac_datarootdir_hack=; ac_datarootdir_seen= 20226ac_sed_dataroot=' 20227/datarootdir/ { 20228 p 20229 q 20230} 20231/@datadir@/p 20232/@docdir@/p 20233/@infodir@/p 20234/@localedir@/p 20235/@mandir@/p' 20236case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20237*datarootdir*) ac_datarootdir_seen=yes;; 20238*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20240$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20241_ACEOF 20242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20243 ac_datarootdir_hack=' 20244 s&@datadir@&$datadir&g 20245 s&@docdir@&$docdir&g 20246 s&@infodir@&$infodir&g 20247 s&@localedir@&$localedir&g 20248 s&@mandir@&$mandir&g 20249 s&\\\${datarootdir}&$datarootdir&g' ;; 20250esac 20251_ACEOF 20252 20253# Neutralize VPATH when `$srcdir' = `.'. 20254# Shell code in configure.ac might set extrasub. 20255# FIXME: do we really want to maintain this feature? 20256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20257ac_sed_extra="$ac_vpsub 20258$extrasub 20259_ACEOF 20260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20261:t 20262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20263s|@configure_input@|$ac_sed_conf_input|;t t 20264s&@top_builddir@&$ac_top_builddir_sub&;t t 20265s&@top_build_prefix@&$ac_top_build_prefix&;t t 20266s&@srcdir@&$ac_srcdir&;t t 20267s&@abs_srcdir@&$ac_abs_srcdir&;t t 20268s&@top_srcdir@&$ac_top_srcdir&;t t 20269s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20270s&@builddir@&$ac_builddir&;t t 20271s&@abs_builddir@&$ac_abs_builddir&;t t 20272s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20273s&@INSTALL@&$ac_INSTALL&;t t 20274s&@MKDIR_P@&$ac_MKDIR_P&;t t 20275$ac_datarootdir_hack 20276" 20277eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20278 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20279 20280test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20281 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20283 "$ac_tmp/out"`; test -z "$ac_out"; } && 20284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20285which seems to be undefined. Please make sure it is defined" >&5 20286$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20287which seems to be undefined. Please make sure it is defined" >&2;} 20288 20289 rm -f "$ac_tmp/stdin" 20290 case $ac_file in 20291 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20292 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20293 esac \ 20294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20295 ;; 20296 :H) 20297 # 20298 # CONFIG_HEADER 20299 # 20300 if test x"$ac_file" != x-; then 20301 { 20302 $as_echo "/* $configure_input */" \ 20303 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20304 } >"$ac_tmp/config.h" \ 20305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20306 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20308$as_echo "$as_me: $ac_file is unchanged" >&6;} 20309 else 20310 rm -f "$ac_file" 20311 mv "$ac_tmp/config.h" "$ac_file" \ 20312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20313 fi 20314 else 20315 $as_echo "/* $configure_input */" \ 20316 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20317 || as_fn_error $? "could not create -" "$LINENO" 5 20318 fi 20319# Compute "$ac_file"'s index in $config_headers. 20320_am_arg="$ac_file" 20321_am_stamp_count=1 20322for _am_header in $config_headers :; do 20323 case $_am_header in 20324 $_am_arg | $_am_arg:* ) 20325 break ;; 20326 * ) 20327 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20328 esac 20329done 20330echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20331$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20332 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20333 X"$_am_arg" : 'X\(//\)$' \| \ 20334 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20335$as_echo X"$_am_arg" | 20336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20337 s//\1/ 20338 q 20339 } 20340 /^X\(\/\/\)[^/].*/{ 20341 s//\1/ 20342 q 20343 } 20344 /^X\(\/\/\)$/{ 20345 s//\1/ 20346 q 20347 } 20348 /^X\(\/\).*/{ 20349 s//\1/ 20350 q 20351 } 20352 s/.*/./; q'`/stamp-h$_am_stamp_count 20353 ;; 20354 20355 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20356$as_echo "$as_me: executing $ac_file commands" >&6;} 20357 ;; 20358 esac 20359 20360 20361 case $ac_file$ac_mode in 20362 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20363 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20364 # are listed without --file. Let's play safe and only enable the eval 20365 # if we detect the quoting. 20366 case $CONFIG_FILES in 20367 *\'*) eval set x "$CONFIG_FILES" ;; 20368 *) set x $CONFIG_FILES ;; 20369 esac 20370 shift 20371 for mf 20372 do 20373 # Strip MF so we end up with the name of the file. 20374 mf=`echo "$mf" | sed -e 's/:.*$//'` 20375 # Check whether this is an Automake generated Makefile or not. 20376 # We used to match only the files named `Makefile.in', but 20377 # some people rename them; so instead we look at the file content. 20378 # Grep'ing the first line is not enough: some people post-process 20379 # each Makefile.in and add a new line on top of each file to say so. 20380 # Grep'ing the whole file is not good either: AIX grep has a line 20381 # limit of 2048, but all sed's we know have understand at least 4000. 20382 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20383 dirpart=`$as_dirname -- "$mf" || 20384$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20385 X"$mf" : 'X\(//\)[^/]' \| \ 20386 X"$mf" : 'X\(//\)$' \| \ 20387 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20388$as_echo X"$mf" | 20389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20390 s//\1/ 20391 q 20392 } 20393 /^X\(\/\/\)[^/].*/{ 20394 s//\1/ 20395 q 20396 } 20397 /^X\(\/\/\)$/{ 20398 s//\1/ 20399 q 20400 } 20401 /^X\(\/\).*/{ 20402 s//\1/ 20403 q 20404 } 20405 s/.*/./; q'` 20406 else 20407 continue 20408 fi 20409 # Extract the definition of DEPDIR, am__include, and am__quote 20410 # from the Makefile without running `make'. 20411 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20412 test -z "$DEPDIR" && continue 20413 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20414 test -z "am__include" && continue 20415 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20416 # When using ansi2knr, U may be empty or an underscore; expand it 20417 U=`sed -n 's/^U = //p' < "$mf"` 20418 # Find all dependency output files, they are included files with 20419 # $(DEPDIR) in their names. We invoke sed twice because it is the 20420 # simplest approach to changing $(DEPDIR) to its actual value in the 20421 # expansion. 20422 for file in `sed -n " 20423 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20424 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20425 # Make sure the directory exists. 20426 test -f "$dirpart/$file" && continue 20427 fdir=`$as_dirname -- "$file" || 20428$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20429 X"$file" : 'X\(//\)[^/]' \| \ 20430 X"$file" : 'X\(//\)$' \| \ 20431 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20432$as_echo X"$file" | 20433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20434 s//\1/ 20435 q 20436 } 20437 /^X\(\/\/\)[^/].*/{ 20438 s//\1/ 20439 q 20440 } 20441 /^X\(\/\/\)$/{ 20442 s//\1/ 20443 q 20444 } 20445 /^X\(\/\).*/{ 20446 s//\1/ 20447 q 20448 } 20449 s/.*/./; q'` 20450 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20451 # echo "creating $dirpart/$file" 20452 echo '# dummy' > "$dirpart/$file" 20453 done 20454 done 20455} 20456 ;; 20457 "libtool":C) 20458 20459 # See if we are running on zsh, and set the options which allow our 20460 # commands through without removal of \ escapes. 20461 if test -n "${ZSH_VERSION+set}" ; then 20462 setopt NO_GLOB_SUBST 20463 fi 20464 20465 cfgfile="${ofile}T" 20466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20467 $RM "$cfgfile" 20468 20469 cat <<_LT_EOF >> "$cfgfile" 20470#! $SHELL 20471 20472# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20473# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20474# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20475# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20476# 20477# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20478# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 20479# Inc. 20480# Written by Gordon Matzigkeit, 1996 20481# 20482# This file is part of GNU Libtool. 20483# 20484# GNU Libtool is free software; you can redistribute it and/or 20485# modify it under the terms of the GNU General Public License as 20486# published by the Free Software Foundation; either version 2 of 20487# the License, or (at your option) any later version. 20488# 20489# As a special exception to the GNU General Public License, 20490# if you distribute this file as part of a program or library that 20491# is built using GNU Libtool, you may include this file under the 20492# same distribution terms that you use for the rest of that program. 20493# 20494# GNU Libtool is distributed in the hope that it will be useful, 20495# but WITHOUT ANY WARRANTY; without even the implied warranty of 20496# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20497# GNU General Public License for more details. 20498# 20499# You should have received a copy of the GNU General Public License 20500# along with GNU Libtool; see the file COPYING. If not, a copy 20501# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20502# obtained by writing to the Free Software Foundation, Inc., 20503# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20504 20505 20506# The names of the tagged configurations supported by this script. 20507available_tags="" 20508 20509# ### BEGIN LIBTOOL CONFIG 20510 20511# Which release of libtool.m4 was used? 20512macro_version=$macro_version 20513macro_revision=$macro_revision 20514 20515# Whether or not to build shared libraries. 20516build_libtool_libs=$enable_shared 20517 20518# Whether or not to build static libraries. 20519build_old_libs=$enable_static 20520 20521# What type of objects to build. 20522pic_mode=$pic_mode 20523 20524# Whether or not to optimize for fast installation. 20525fast_install=$enable_fast_install 20526 20527# Shell to use when invoking shell scripts. 20528SHELL=$lt_SHELL 20529 20530# An echo program that protects backslashes. 20531ECHO=$lt_ECHO 20532 20533# The host system. 20534host_alias=$host_alias 20535host=$host 20536host_os=$host_os 20537 20538# The build system. 20539build_alias=$build_alias 20540build=$build 20541build_os=$build_os 20542 20543# A sed program that does not truncate output. 20544SED=$lt_SED 20545 20546# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20547Xsed="\$SED -e 1s/^X//" 20548 20549# A grep program that handles long lines. 20550GREP=$lt_GREP 20551 20552# An ERE matcher. 20553EGREP=$lt_EGREP 20554 20555# A literal string matcher. 20556FGREP=$lt_FGREP 20557 20558# A BSD- or MS-compatible name lister. 20559NM=$lt_NM 20560 20561# Whether we need soft or hard links. 20562LN_S=$lt_LN_S 20563 20564# What is the maximum length of a command? 20565max_cmd_len=$max_cmd_len 20566 20567# Object file suffix (normally "o"). 20568objext=$ac_objext 20569 20570# Executable file suffix (normally ""). 20571exeext=$exeext 20572 20573# whether the shell understands "unset". 20574lt_unset=$lt_unset 20575 20576# turn spaces into newlines. 20577SP2NL=$lt_lt_SP2NL 20578 20579# turn newlines into spaces. 20580NL2SP=$lt_lt_NL2SP 20581 20582# convert \$build file names to \$host format. 20583to_host_file_cmd=$lt_cv_to_host_file_cmd 20584 20585# convert \$build files to toolchain format. 20586to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20587 20588# An object symbol dumper. 20589OBJDUMP=$lt_OBJDUMP 20590 20591# Method to check whether dependent libraries are shared objects. 20592deplibs_check_method=$lt_deplibs_check_method 20593 20594# Command to use when deplibs_check_method = "file_magic". 20595file_magic_cmd=$lt_file_magic_cmd 20596 20597# How to find potential files when deplibs_check_method = "file_magic". 20598file_magic_glob=$lt_file_magic_glob 20599 20600# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20601want_nocaseglob=$lt_want_nocaseglob 20602 20603# DLL creation program. 20604DLLTOOL=$lt_DLLTOOL 20605 20606# Command to associate shared and link libraries. 20607sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20608 20609# The archiver. 20610AR=$lt_AR 20611 20612# Flags to create an archive. 20613AR_FLAGS=$lt_AR_FLAGS 20614 20615# How to feed a file listing to the archiver. 20616archiver_list_spec=$lt_archiver_list_spec 20617 20618# A symbol stripping program. 20619STRIP=$lt_STRIP 20620 20621# Commands used to install an old-style archive. 20622RANLIB=$lt_RANLIB 20623old_postinstall_cmds=$lt_old_postinstall_cmds 20624old_postuninstall_cmds=$lt_old_postuninstall_cmds 20625 20626# Whether to use a lock for old archive extraction. 20627lock_old_archive_extraction=$lock_old_archive_extraction 20628 20629# A C compiler. 20630LTCC=$lt_CC 20631 20632# LTCC compiler flags. 20633LTCFLAGS=$lt_CFLAGS 20634 20635# Take the output of nm and produce a listing of raw symbols and C names. 20636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20637 20638# Transform the output of nm in a proper C declaration. 20639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20640 20641# Transform the output of nm in a C name address pair. 20642global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20643 20644# Transform the output of nm in a C name address pair when lib prefix is needed. 20645global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20646 20647# Specify filename containing input files for \$NM. 20648nm_file_list_spec=$lt_nm_file_list_spec 20649 20650# The root where to search for dependent libraries,and in which our libraries should be installed. 20651lt_sysroot=$lt_sysroot 20652 20653# The name of the directory that contains temporary libtool files. 20654objdir=$objdir 20655 20656# Used to examine libraries when file_magic_cmd begins with "file". 20657MAGIC_CMD=$MAGIC_CMD 20658 20659# Must we lock files when doing compilation? 20660need_locks=$lt_need_locks 20661 20662# Manifest tool. 20663MANIFEST_TOOL=$lt_MANIFEST_TOOL 20664 20665# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20666DSYMUTIL=$lt_DSYMUTIL 20667 20668# Tool to change global to local symbols on Mac OS X. 20669NMEDIT=$lt_NMEDIT 20670 20671# Tool to manipulate fat objects and archives on Mac OS X. 20672LIPO=$lt_LIPO 20673 20674# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20675OTOOL=$lt_OTOOL 20676 20677# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20678OTOOL64=$lt_OTOOL64 20679 20680# Old archive suffix (normally "a"). 20681libext=$libext 20682 20683# Shared library suffix (normally ".so"). 20684shrext_cmds=$lt_shrext_cmds 20685 20686# The commands to extract the exported symbol list from a shared archive. 20687extract_expsyms_cmds=$lt_extract_expsyms_cmds 20688 20689# Variables whose values should be saved in libtool wrapper scripts and 20690# restored at link time. 20691variables_saved_for_relink=$lt_variables_saved_for_relink 20692 20693# Do we need the "lib" prefix for modules? 20694need_lib_prefix=$need_lib_prefix 20695 20696# Do we need a version for libraries? 20697need_version=$need_version 20698 20699# Library versioning type. 20700version_type=$version_type 20701 20702# Shared library runtime path variable. 20703runpath_var=$runpath_var 20704 20705# Shared library path variable. 20706shlibpath_var=$shlibpath_var 20707 20708# Is shlibpath searched before the hard-coded library search path? 20709shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20710 20711# Format of library name prefix. 20712libname_spec=$lt_libname_spec 20713 20714# List of archive names. First name is the real one, the rest are links. 20715# The last name is the one that the linker finds with -lNAME 20716library_names_spec=$lt_library_names_spec 20717 20718# The coded name of the library, if different from the real name. 20719soname_spec=$lt_soname_spec 20720 20721# Permission mode override for installation of shared libraries. 20722install_override_mode=$lt_install_override_mode 20723 20724# Command to use after installation of a shared archive. 20725postinstall_cmds=$lt_postinstall_cmds 20726 20727# Command to use after uninstallation of a shared archive. 20728postuninstall_cmds=$lt_postuninstall_cmds 20729 20730# Commands used to finish a libtool library installation in a directory. 20731finish_cmds=$lt_finish_cmds 20732 20733# As "finish_cmds", except a single script fragment to be evaled but 20734# not shown. 20735finish_eval=$lt_finish_eval 20736 20737# Whether we should hardcode library paths into libraries. 20738hardcode_into_libs=$hardcode_into_libs 20739 20740# Compile-time system search path for libraries. 20741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20742 20743# Run-time system search path for libraries. 20744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20745 20746# Whether dlopen is supported. 20747dlopen_support=$enable_dlopen 20748 20749# Whether dlopen of programs is supported. 20750dlopen_self=$enable_dlopen_self 20751 20752# Whether dlopen of statically linked programs is supported. 20753dlopen_self_static=$enable_dlopen_self_static 20754 20755# Commands to strip libraries. 20756old_striplib=$lt_old_striplib 20757striplib=$lt_striplib 20758 20759 20760# The linker used to build libraries. 20761LD=$lt_LD 20762 20763# How to create reloadable object files. 20764reload_flag=$lt_reload_flag 20765reload_cmds=$lt_reload_cmds 20766 20767# Commands used to build an old-style archive. 20768old_archive_cmds=$lt_old_archive_cmds 20769 20770# A language specific compiler. 20771CC=$lt_compiler 20772 20773# Is the compiler the GNU compiler? 20774with_gcc=$GCC 20775 20776# Compiler flag to turn off builtin functions. 20777no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20778 20779# Additional compiler flags for building library objects. 20780pic_flag=$lt_lt_prog_compiler_pic 20781 20782# How to pass a linker flag through the compiler. 20783wl=$lt_lt_prog_compiler_wl 20784 20785# Compiler flag to prevent dynamic linking. 20786link_static_flag=$lt_lt_prog_compiler_static 20787 20788# Does compiler simultaneously support -c and -o options? 20789compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20790 20791# Whether or not to add -lc for building shared libraries. 20792build_libtool_need_lc=$archive_cmds_need_lc 20793 20794# Whether or not to disallow shared libs when runtime libs are static. 20795allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20796 20797# Compiler flag to allow reflexive dlopens. 20798export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20799 20800# Compiler flag to generate shared objects directly from archives. 20801whole_archive_flag_spec=$lt_whole_archive_flag_spec 20802 20803# Whether the compiler copes with passing no objects directly. 20804compiler_needs_object=$lt_compiler_needs_object 20805 20806# Create an old-style archive from a shared archive. 20807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20808 20809# Create a temporary old-style archive to link instead of a shared archive. 20810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20811 20812# Commands used to build a shared archive. 20813archive_cmds=$lt_archive_cmds 20814archive_expsym_cmds=$lt_archive_expsym_cmds 20815 20816# Commands used to build a loadable module if different from building 20817# a shared archive. 20818module_cmds=$lt_module_cmds 20819module_expsym_cmds=$lt_module_expsym_cmds 20820 20821# Whether we are building with GNU ld or not. 20822with_gnu_ld=$lt_with_gnu_ld 20823 20824# Flag that allows shared libraries with undefined symbols to be built. 20825allow_undefined_flag=$lt_allow_undefined_flag 20826 20827# Flag that enforces no undefined symbols. 20828no_undefined_flag=$lt_no_undefined_flag 20829 20830# Flag to hardcode \$libdir into a binary during linking. 20831# This must work even if \$libdir does not exist 20832hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20833 20834# If ld is used when linking, flag to hardcode \$libdir into a binary 20835# during linking. This must work even if \$libdir does not exist. 20836hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20837 20838# Whether we need a single "-rpath" flag with a separated argument. 20839hardcode_libdir_separator=$lt_hardcode_libdir_separator 20840 20841# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20842# DIR into the resulting binary. 20843hardcode_direct=$hardcode_direct 20844 20845# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20846# DIR into the resulting binary and the resulting library dependency is 20847# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20848# library is relocated. 20849hardcode_direct_absolute=$hardcode_direct_absolute 20850 20851# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20852# into the resulting binary. 20853hardcode_minus_L=$hardcode_minus_L 20854 20855# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20856# into the resulting binary. 20857hardcode_shlibpath_var=$hardcode_shlibpath_var 20858 20859# Set to "yes" if building a shared library automatically hardcodes DIR 20860# into the library and all subsequent libraries and executables linked 20861# against it. 20862hardcode_automatic=$hardcode_automatic 20863 20864# Set to yes if linker adds runtime paths of dependent libraries 20865# to runtime path list. 20866inherit_rpath=$inherit_rpath 20867 20868# Whether libtool must link a program against all its dependency libraries. 20869link_all_deplibs=$link_all_deplibs 20870 20871# Set to "yes" if exported symbols are required. 20872always_export_symbols=$always_export_symbols 20873 20874# The commands to list exported symbols. 20875export_symbols_cmds=$lt_export_symbols_cmds 20876 20877# Symbols that should not be listed in the preloaded symbols. 20878exclude_expsyms=$lt_exclude_expsyms 20879 20880# Symbols that must always be exported. 20881include_expsyms=$lt_include_expsyms 20882 20883# Commands necessary for linking programs (against libraries) with templates. 20884prelink_cmds=$lt_prelink_cmds 20885 20886# Commands necessary for finishing linking programs. 20887postlink_cmds=$lt_postlink_cmds 20888 20889# Specify filename containing input files. 20890file_list_spec=$lt_file_list_spec 20891 20892# How to hardcode a shared library path into an executable. 20893hardcode_action=$hardcode_action 20894 20895# ### END LIBTOOL CONFIG 20896 20897_LT_EOF 20898 20899 case $host_os in 20900 aix3*) 20901 cat <<\_LT_EOF >> "$cfgfile" 20902# AIX sometimes has problems with the GCC collect2 program. For some 20903# reason, if we set the COLLECT_NAMES environment variable, the problems 20904# vanish in a puff of smoke. 20905if test "X${COLLECT_NAMES+set}" != Xset; then 20906 COLLECT_NAMES= 20907 export COLLECT_NAMES 20908fi 20909_LT_EOF 20910 ;; 20911 esac 20912 20913 20914ltmain="$ac_aux_dir/ltmain.sh" 20915 20916 20917 # We use sed instead of cat because bash on DJGPP gets confused if 20918 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20919 # text mode, it properly converts lines to CR/LF. This bash problem 20920 # is reportedly fixed, but why not run on old versions too? 20921 sed '$q' "$ltmain" >> "$cfgfile" \ 20922 || (rm -f "$cfgfile"; exit 1) 20923 20924 if test x"$xsi_shell" = xyes; then 20925 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20926func_dirname ()\ 20927{\ 20928\ case ${1} in\ 20929\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20930\ * ) func_dirname_result="${3}" ;;\ 20931\ esac\ 20932} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20933 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20935test 0 -eq $? || _lt_function_replace_fail=: 20936 20937 20938 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20939func_basename ()\ 20940{\ 20941\ func_basename_result="${1##*/}"\ 20942} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20943 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20945test 0 -eq $? || _lt_function_replace_fail=: 20946 20947 20948 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20949func_dirname_and_basename ()\ 20950{\ 20951\ case ${1} in\ 20952\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20953\ * ) func_dirname_result="${3}" ;;\ 20954\ esac\ 20955\ func_basename_result="${1##*/}"\ 20956} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20957 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20959test 0 -eq $? || _lt_function_replace_fail=: 20960 20961 20962 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20963func_stripname ()\ 20964{\ 20965\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20966\ # positional parameters, so assign one to ordinary parameter first.\ 20967\ func_stripname_result=${3}\ 20968\ func_stripname_result=${func_stripname_result#"${1}"}\ 20969\ func_stripname_result=${func_stripname_result%"${2}"}\ 20970} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20971 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20973test 0 -eq $? || _lt_function_replace_fail=: 20974 20975 20976 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20977func_split_long_opt ()\ 20978{\ 20979\ func_split_long_opt_name=${1%%=*}\ 20980\ func_split_long_opt_arg=${1#*=}\ 20981} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20982 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20984test 0 -eq $? || _lt_function_replace_fail=: 20985 20986 20987 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20988func_split_short_opt ()\ 20989{\ 20990\ func_split_short_opt_arg=${1#??}\ 20991\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20992} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20993 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20995test 0 -eq $? || _lt_function_replace_fail=: 20996 20997 20998 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20999func_lo2o ()\ 21000{\ 21001\ case ${1} in\ 21002\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21003\ *) func_lo2o_result=${1} ;;\ 21004\ esac\ 21005} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21006 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21008test 0 -eq $? || _lt_function_replace_fail=: 21009 21010 21011 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21012func_xform ()\ 21013{\ 21014 func_xform_result=${1%.*}.lo\ 21015} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21016 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21018test 0 -eq $? || _lt_function_replace_fail=: 21019 21020 21021 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21022func_arith ()\ 21023{\ 21024 func_arith_result=$(( $* ))\ 21025} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21026 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21028test 0 -eq $? || _lt_function_replace_fail=: 21029 21030 21031 sed -e '/^func_len ()$/,/^} # func_len /c\ 21032func_len ()\ 21033{\ 21034 func_len_result=${#1}\ 21035} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21036 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21038test 0 -eq $? || _lt_function_replace_fail=: 21039 21040fi 21041 21042if test x"$lt_shell_append" = xyes; then 21043 sed -e '/^func_append ()$/,/^} # func_append /c\ 21044func_append ()\ 21045{\ 21046 eval "${1}+=\\${2}"\ 21047} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21048 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21050test 0 -eq $? || _lt_function_replace_fail=: 21051 21052 21053 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21054func_append_quoted ()\ 21055{\ 21056\ func_quote_for_eval "${2}"\ 21057\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21058} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21059 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21061test 0 -eq $? || _lt_function_replace_fail=: 21062 21063 21064 # Save a `func_append' function call where possible by direct use of '+=' 21065 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21066 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21068 test 0 -eq $? || _lt_function_replace_fail=: 21069else 21070 # Save a `func_append' function call even when '+=' is not available 21071 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21072 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21074 test 0 -eq $? || _lt_function_replace_fail=: 21075fi 21076 21077if test x"$_lt_function_replace_fail" = x":"; then 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21079$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21080fi 21081 21082 21083 mv -f "$cfgfile" "$ofile" || 21084 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21085 chmod +x "$ofile" 21086 21087 ;; 21088 21089 esac 21090done # for ac_tag 21091 21092 21093as_fn_exit 0 21094_ACEOF 21095ac_clean_files=$ac_clean_files_save 21096 21097test $ac_write_fail = 0 || 21098 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21099 21100 21101# configure is writing to config.log, and then calls config.status. 21102# config.status does its own redirection, appending to config.log. 21103# Unfortunately, on DOS this fails, as config.log is still kept open 21104# by configure, so config.status won't be able to write to it; its 21105# output is simply discarded. So we exec the FD to /dev/null, 21106# effectively closing config.log, so it can be properly (re)opened and 21107# appended to by config.status. When coming back to configure, we 21108# need to make the FD available again. 21109if test "$no_create" != yes; then 21110 ac_cs_success=: 21111 ac_config_status_args= 21112 test "$silent" = yes && 21113 ac_config_status_args="$ac_config_status_args --quiet" 21114 exec 5>/dev/null 21115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21116 exec 5>>config.log 21117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21118 # would make configure fail if this is the last instruction. 21119 $ac_cs_success || as_fn_exit 1 21120fi 21121if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21123$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21124fi 21125 21126