configure revision 421c997b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXaw 1.0.11. 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='libXaw' 633PACKAGE_TARNAME='libXaw' 634PACKAGE_VERSION='1.0.11' 635PACKAGE_STRING='libXaw 1.0.11' 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 680BUILD_XAW7_FALSE 681BUILD_XAW7_TRUE 682BUILD_XAW6_FALSE 683BUILD_XAW6_TRUE 684XAW7_LIBS 685XAW7_CFLAGS 686XAW6_LIBS 687XAW6_CFLAGS 688PLATFORM_DARWIN_FALSE 689PLATFORM_DARWIN_TRUE 690PLATFORM_WIN32_FALSE 691PLATFORM_WIN32_TRUE 692LIBEXT 693HAVE_STYLESHEETS_FALSE 694HAVE_STYLESHEETS_TRUE 695XSL_STYLESHEET 696STYLESHEET_SRCDIR 697XORG_SGML_PATH 698HAVE_XSLTPROC_FALSE 699HAVE_XSLTPROC_TRUE 700XSLTPROC 701HAVE_FOP_FALSE 702HAVE_FOP_TRUE 703FOP 704HAVE_XMLTO_FALSE 705HAVE_XMLTO_TRUE 706HAVE_XMLTO_TEXT_FALSE 707HAVE_XMLTO_TEXT_TRUE 708XMLTO 709ENABLE_SPECS_FALSE 710ENABLE_SPECS_TRUE 711AM_BACKSLASH 712AM_DEFAULT_VERBOSITY 713MAN_SUBSTS 714XORG_MAN_PAGE 715ADMIN_MAN_DIR 716DRIVER_MAN_DIR 717MISC_MAN_DIR 718FILE_MAN_DIR 719LIB_MAN_DIR 720APP_MAN_DIR 721ADMIN_MAN_SUFFIX 722DRIVER_MAN_SUFFIX 723MISC_MAN_SUFFIX 724FILE_MAN_SUFFIX 725LIB_MAN_SUFFIX 726APP_MAN_SUFFIX 727INSTALL_CMD 728PKG_CONFIG 729CHANGELOG_CMD 730STRICT_CFLAGS 731CWARNFLAGS 732BASE_CFLAGS 733CPP 734OTOOL64 735OTOOL 736LIPO 737NMEDIT 738DSYMUTIL 739MANIFEST_TOOL 740RANLIB 741ac_ct_AR 742AR 743DLLTOOL 744OBJDUMP 745LN_S 746NM 747ac_ct_DUMPBIN 748DUMPBIN 749LD 750FGREP 751EGREP 752GREP 753SED 754am__fastdepCC_FALSE 755am__fastdepCC_TRUE 756CCDEPMODE 757am__nodep 758AMDEPBACKSLASH 759AMDEP_FALSE 760AMDEP_TRUE 761am__quote 762am__include 763DEPDIR 764OBJEXT 765EXEEXT 766ac_ct_CC 767CPPFLAGS 768LDFLAGS 769CFLAGS 770CC 771host_os 772host_vendor 773host_cpu 774host 775build_os 776build_vendor 777build_cpu 778build 779LIBTOOL 780MAINT 781MAINTAINER_MODE_FALSE 782MAINTAINER_MODE_TRUE 783am__untar 784am__tar 785AMTAR 786am__leading_dot 787SET_MAKE 788AWK 789mkdir_p 790MKDIR_P 791INSTALL_STRIP_PROGRAM 792STRIP 793install_sh 794MAKEINFO 795AUTOHEADER 796AUTOMAKE 797AUTOCONF 798ACLOCAL 799VERSION 800PACKAGE 801CYGPATH_W 802am__isrc 803INSTALL_DATA 804INSTALL_SCRIPT 805INSTALL_PROGRAM 806target_alias 807host_alias 808build_alias 809LIBS 810ECHO_T 811ECHO_N 812ECHO_C 813DEFS 814mandir 815localedir 816libdir 817psdir 818pdfdir 819dvidir 820htmldir 821infodir 822docdir 823oldincludedir 824includedir 825localstatedir 826sharedstatedir 827sysconfdir 828datadir 829datarootdir 830libexecdir 831sbindir 832bindir 833program_transform_name 834prefix 835exec_prefix 836PACKAGE_URL 837PACKAGE_BUGREPORT 838PACKAGE_STRING 839PACKAGE_VERSION 840PACKAGE_TARNAME 841PACKAGE_NAME 842PATH_SEPARATOR 843SHELL' 844ac_subst_files='' 845ac_user_opts=' 846enable_option_checking 847enable_maintainer_mode 848enable_shared 849enable_static 850with_pic 851enable_fast_install 852enable_dependency_tracking 853with_gnu_ld 854with_sysroot 855enable_libtool_lock 856enable_selective_werror 857enable_strict_compilation 858enable_silent_rules 859enable_specs 860with_xmlto 861with_fop 862with_xsltproc 863enable_xaw6 864enable_xaw7 865' 866 ac_precious_vars='build_alias 867host_alias 868target_alias 869CC 870CFLAGS 871LDFLAGS 872LIBS 873CPPFLAGS 874CPP 875PKG_CONFIG 876XMLTO 877FOP 878XSLTPROC 879XAW6_CFLAGS 880XAW6_LIBS 881XAW7_CFLAGS 882XAW7_LIBS' 883 884 885# Initialize some variables set by options. 886ac_init_help= 887ac_init_version=false 888ac_unrecognized_opts= 889ac_unrecognized_sep= 890# The variables have the same names as the options, with 891# dashes changed to underlines. 892cache_file=/dev/null 893exec_prefix=NONE 894no_create= 895no_recursion= 896prefix=NONE 897program_prefix=NONE 898program_suffix=NONE 899program_transform_name=s,x,x, 900silent= 901site= 902srcdir= 903verbose= 904x_includes=NONE 905x_libraries=NONE 906 907# Installation directory options. 908# These are left unexpanded so users can "make install exec_prefix=/foo" 909# and all the variables that are supposed to be based on exec_prefix 910# by default will actually change. 911# Use braces instead of parens because sh, perl, etc. also accept them. 912# (The list follows the same order as the GNU Coding Standards.) 913bindir='${exec_prefix}/bin' 914sbindir='${exec_prefix}/sbin' 915libexecdir='${exec_prefix}/libexec' 916datarootdir='${prefix}/share' 917datadir='${datarootdir}' 918sysconfdir='${prefix}/etc' 919sharedstatedir='${prefix}/com' 920localstatedir='${prefix}/var' 921includedir='${prefix}/include' 922oldincludedir='/usr/include' 923docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 924infodir='${datarootdir}/info' 925htmldir='${docdir}' 926dvidir='${docdir}' 927pdfdir='${docdir}' 928psdir='${docdir}' 929libdir='${exec_prefix}/lib' 930localedir='${datarootdir}/locale' 931mandir='${datarootdir}/man' 932 933ac_prev= 934ac_dashdash= 935for ac_option 936do 937 # If the previous option needs an argument, assign it. 938 if test -n "$ac_prev"; then 939 eval $ac_prev=\$ac_option 940 ac_prev= 941 continue 942 fi 943 944 case $ac_option in 945 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 946 *=) ac_optarg= ;; 947 *) ac_optarg=yes ;; 948 esac 949 950 # Accept the important Cygnus configure options, so we can diagnose typos. 951 952 case $ac_dashdash$ac_option in 953 --) 954 ac_dashdash=yes ;; 955 956 -bindir | --bindir | --bindi | --bind | --bin | --bi) 957 ac_prev=bindir ;; 958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 959 bindir=$ac_optarg ;; 960 961 -build | --build | --buil | --bui | --bu) 962 ac_prev=build_alias ;; 963 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 964 build_alias=$ac_optarg ;; 965 966 -cache-file | --cache-file | --cache-fil | --cache-fi \ 967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 968 ac_prev=cache_file ;; 969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 971 cache_file=$ac_optarg ;; 972 973 --config-cache | -C) 974 cache_file=config.cache ;; 975 976 -datadir | --datadir | --datadi | --datad) 977 ac_prev=datadir ;; 978 -datadir=* | --datadir=* | --datadi=* | --datad=*) 979 datadir=$ac_optarg ;; 980 981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 982 | --dataroo | --dataro | --datar) 983 ac_prev=datarootdir ;; 984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 986 datarootdir=$ac_optarg ;; 987 988 -disable-* | --disable-*) 989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 990 # Reject names that are not valid shell variable names. 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 992 as_fn_error $? "invalid feature name: $ac_useropt" 993 ac_useropt_orig=$ac_useropt 994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 995 case $ac_user_opts in 996 *" 997"enable_$ac_useropt" 998"*) ;; 999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1000 ac_unrecognized_sep=', ';; 1001 esac 1002 eval enable_$ac_useropt=no ;; 1003 1004 -docdir | --docdir | --docdi | --doc | --do) 1005 ac_prev=docdir ;; 1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1007 docdir=$ac_optarg ;; 1008 1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1010 ac_prev=dvidir ;; 1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1012 dvidir=$ac_optarg ;; 1013 1014 -enable-* | --enable-*) 1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1016 # Reject names that are not valid shell variable names. 1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1018 as_fn_error $? "invalid feature name: $ac_useropt" 1019 ac_useropt_orig=$ac_useropt 1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1021 case $ac_user_opts in 1022 *" 1023"enable_$ac_useropt" 1024"*) ;; 1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1026 ac_unrecognized_sep=', ';; 1027 esac 1028 eval enable_$ac_useropt=\$ac_optarg ;; 1029 1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1032 | --exec | --exe | --ex) 1033 ac_prev=exec_prefix ;; 1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1036 | --exec=* | --exe=* | --ex=*) 1037 exec_prefix=$ac_optarg ;; 1038 1039 -gas | --gas | --ga | --g) 1040 # Obsolete; use --with-gas. 1041 with_gas=yes ;; 1042 1043 -help | --help | --hel | --he | -h) 1044 ac_init_help=long ;; 1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1046 ac_init_help=recursive ;; 1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1048 ac_init_help=short ;; 1049 1050 -host | --host | --hos | --ho) 1051 ac_prev=host_alias ;; 1052 -host=* | --host=* | --hos=* | --ho=*) 1053 host_alias=$ac_optarg ;; 1054 1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1056 ac_prev=htmldir ;; 1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1058 | --ht=*) 1059 htmldir=$ac_optarg ;; 1060 1061 -includedir | --includedir | --includedi | --included | --include \ 1062 | --includ | --inclu | --incl | --inc) 1063 ac_prev=includedir ;; 1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1065 | --includ=* | --inclu=* | --incl=* | --inc=*) 1066 includedir=$ac_optarg ;; 1067 1068 -infodir | --infodir | --infodi | --infod | --info | --inf) 1069 ac_prev=infodir ;; 1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1071 infodir=$ac_optarg ;; 1072 1073 -libdir | --libdir | --libdi | --libd) 1074 ac_prev=libdir ;; 1075 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1076 libdir=$ac_optarg ;; 1077 1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1079 | --libexe | --libex | --libe) 1080 ac_prev=libexecdir ;; 1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1082 | --libexe=* | --libex=* | --libe=*) 1083 libexecdir=$ac_optarg ;; 1084 1085 -localedir | --localedir | --localedi | --localed | --locale) 1086 ac_prev=localedir ;; 1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1088 localedir=$ac_optarg ;; 1089 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1091 | --localstate | --localstat | --localsta | --localst | --locals) 1092 ac_prev=localstatedir ;; 1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1095 localstatedir=$ac_optarg ;; 1096 1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1098 ac_prev=mandir ;; 1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1100 mandir=$ac_optarg ;; 1101 1102 -nfp | --nfp | --nf) 1103 # Obsolete; use --without-fp. 1104 with_fp=no ;; 1105 1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1107 | --no-cr | --no-c | -n) 1108 no_create=yes ;; 1109 1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1112 no_recursion=yes ;; 1113 1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1116 | --oldin | --oldi | --old | --ol | --o) 1117 ac_prev=oldincludedir ;; 1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1121 oldincludedir=$ac_optarg ;; 1122 1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1124 ac_prev=prefix ;; 1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1126 prefix=$ac_optarg ;; 1127 1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1129 | --program-pre | --program-pr | --program-p) 1130 ac_prev=program_prefix ;; 1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1133 program_prefix=$ac_optarg ;; 1134 1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1136 | --program-suf | --program-su | --program-s) 1137 ac_prev=program_suffix ;; 1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1140 program_suffix=$ac_optarg ;; 1141 1142 -program-transform-name | --program-transform-name \ 1143 | --program-transform-nam | --program-transform-na \ 1144 | --program-transform-n | --program-transform- \ 1145 | --program-transform | --program-transfor \ 1146 | --program-transfo | --program-transf \ 1147 | --program-trans | --program-tran \ 1148 | --progr-tra | --program-tr | --program-t) 1149 ac_prev=program_transform_name ;; 1150 -program-transform-name=* | --program-transform-name=* \ 1151 | --program-transform-nam=* | --program-transform-na=* \ 1152 | --program-transform-n=* | --program-transform-=* \ 1153 | --program-transform=* | --program-transfor=* \ 1154 | --program-transfo=* | --program-transf=* \ 1155 | --program-trans=* | --program-tran=* \ 1156 | --progr-tra=* | --program-tr=* | --program-t=*) 1157 program_transform_name=$ac_optarg ;; 1158 1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1160 ac_prev=pdfdir ;; 1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1162 pdfdir=$ac_optarg ;; 1163 1164 -psdir | --psdir | --psdi | --psd | --ps) 1165 ac_prev=psdir ;; 1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1167 psdir=$ac_optarg ;; 1168 1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1170 | -silent | --silent | --silen | --sile | --sil) 1171 silent=yes ;; 1172 1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1174 ac_prev=sbindir ;; 1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1176 | --sbi=* | --sb=*) 1177 sbindir=$ac_optarg ;; 1178 1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1181 | --sharedst | --shareds | --shared | --share | --shar \ 1182 | --sha | --sh) 1183 ac_prev=sharedstatedir ;; 1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1187 | --sha=* | --sh=*) 1188 sharedstatedir=$ac_optarg ;; 1189 1190 -site | --site | --sit) 1191 ac_prev=site ;; 1192 -site=* | --site=* | --sit=*) 1193 site=$ac_optarg ;; 1194 1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1196 ac_prev=srcdir ;; 1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1198 srcdir=$ac_optarg ;; 1199 1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1201 | --syscon | --sysco | --sysc | --sys | --sy) 1202 ac_prev=sysconfdir ;; 1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1205 sysconfdir=$ac_optarg ;; 1206 1207 -target | --target | --targe | --targ | --tar | --ta | --t) 1208 ac_prev=target_alias ;; 1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1210 target_alias=$ac_optarg ;; 1211 1212 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1213 verbose=yes ;; 1214 1215 -version | --version | --versio | --versi | --vers | -V) 1216 ac_init_version=: ;; 1217 1218 -with-* | --with-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=\$ac_optarg ;; 1233 1234 -without-* | --without-*) 1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1238 as_fn_error $? "invalid package name: $ac_useropt" 1239 ac_useropt_orig=$ac_useropt 1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1241 case $ac_user_opts in 1242 *" 1243"with_$ac_useropt" 1244"*) ;; 1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1246 ac_unrecognized_sep=', ';; 1247 esac 1248 eval with_$ac_useropt=no ;; 1249 1250 --x) 1251 # Obsolete; use --with-x. 1252 with_x=yes ;; 1253 1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1255 | --x-incl | --x-inc | --x-in | --x-i) 1256 ac_prev=x_includes ;; 1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1259 x_includes=$ac_optarg ;; 1260 1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1263 ac_prev=x_libraries ;; 1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1266 x_libraries=$ac_optarg ;; 1267 1268 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1269Try \`$0 --help' for more information" 1270 ;; 1271 1272 *=*) 1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1274 # Reject names that are not valid shell variable names. 1275 case $ac_envvar in #( 1276 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1277 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1278 esac 1279 eval $ac_envvar=\$ac_optarg 1280 export $ac_envvar ;; 1281 1282 *) 1283 # FIXME: should be removed in autoconf 3.0. 1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1287 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1288 ;; 1289 1290 esac 1291done 1292 1293if test -n "$ac_prev"; then 1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1295 as_fn_error $? "missing argument to $ac_option" 1296fi 1297 1298if test -n "$ac_unrecognized_opts"; then 1299 case $enable_option_checking in 1300 no) ;; 1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1303 esac 1304fi 1305 1306# Check all directory arguments for consistency. 1307for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1308 datadir sysconfdir sharedstatedir localstatedir includedir \ 1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1310 libdir localedir mandir 1311do 1312 eval ac_val=\$$ac_var 1313 # Remove trailing slashes. 1314 case $ac_val in 1315 */ ) 1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1317 eval $ac_var=\$ac_val;; 1318 esac 1319 # Be sure to have absolute directory names. 1320 case $ac_val in 1321 [\\/$]* | ?:[\\/]* ) continue;; 1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1323 esac 1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1325done 1326 1327# There might be people who depend on the old broken behavior: `$host' 1328# used to hold the argument of --host etc. 1329# FIXME: To remove some day. 1330build=$build_alias 1331host=$host_alias 1332target=$target_alias 1333 1334# FIXME: To remove some day. 1335if test "x$host_alias" != x; then 1336 if test "x$build_alias" = x; then 1337 cross_compiling=maybe 1338 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1339 If a cross compiler is detected then cross compile mode will be used" >&2 1340 elif test "x$build_alias" != "x$host_alias"; then 1341 cross_compiling=yes 1342 fi 1343fi 1344 1345ac_tool_prefix= 1346test -n "$host_alias" && ac_tool_prefix=$host_alias- 1347 1348test "$silent" = yes && exec 6>/dev/null 1349 1350 1351ac_pwd=`pwd` && test -n "$ac_pwd" && 1352ac_ls_di=`ls -di .` && 1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1354 as_fn_error $? "working directory cannot be determined" 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1356 as_fn_error $? "pwd does not report name of working directory" 1357 1358 1359# Find the source files, if location was not specified. 1360if test -z "$srcdir"; then 1361 ac_srcdir_defaulted=yes 1362 # Try the directory containing this script, then the parent directory. 1363 ac_confdir=`$as_dirname -- "$as_myself" || 1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1365 X"$as_myself" : 'X\(//\)[^/]' \| \ 1366 X"$as_myself" : 'X\(//\)$' \| \ 1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1368$as_echo X"$as_myself" | 1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1370 s//\1/ 1371 q 1372 } 1373 /^X\(\/\/\)[^/].*/{ 1374 s//\1/ 1375 q 1376 } 1377 /^X\(\/\/\)$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\).*/{ 1382 s//\1/ 1383 q 1384 } 1385 s/.*/./; q'` 1386 srcdir=$ac_confdir 1387 if test ! -r "$srcdir/$ac_unique_file"; then 1388 srcdir=.. 1389 fi 1390else 1391 ac_srcdir_defaulted=no 1392fi 1393if test ! -r "$srcdir/$ac_unique_file"; then 1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1396fi 1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1398ac_abs_confdir=`( 1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1400 pwd)` 1401# When building in place, set srcdir=. 1402if test "$ac_abs_confdir" = "$ac_pwd"; then 1403 srcdir=. 1404fi 1405# Remove unnecessary trailing slashes from srcdir. 1406# Double slashes in file names in object file debugging info 1407# mess up M-x gdb in Emacs. 1408case $srcdir in 1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1410esac 1411for ac_var in $ac_precious_vars; do 1412 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1413 eval ac_env_${ac_var}_value=\$${ac_var} 1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1415 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1416done 1417 1418# 1419# Report the --help message. 1420# 1421if test "$ac_init_help" = "long"; then 1422 # Omit some internal or obsolete options to make the list less imposing. 1423 # This message is too long to be a string in the A/UX 3.1 sh. 1424 cat <<_ACEOF 1425\`configure' configures libXaw 1.0.11 to adapt to many kinds of systems. 1426 1427Usage: $0 [OPTION]... [VAR=VALUE]... 1428 1429To assign environment variables (e.g., CC, CFLAGS...), specify them as 1430VAR=VALUE. See below for descriptions of some of the useful variables. 1431 1432Defaults for the options are specified in brackets. 1433 1434Configuration: 1435 -h, --help display this help and exit 1436 --help=short display options specific to this package 1437 --help=recursive display the short help of all the included packages 1438 -V, --version display version information and exit 1439 -q, --quiet, --silent do not print \`checking ...' messages 1440 --cache-file=FILE cache test results in FILE [disabled] 1441 -C, --config-cache alias for \`--cache-file=config.cache' 1442 -n, --no-create do not create output files 1443 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1444 1445Installation directories: 1446 --prefix=PREFIX install architecture-independent files in PREFIX 1447 [$ac_default_prefix] 1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1449 [PREFIX] 1450 1451By default, \`make install' will install all the files in 1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1453an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1454for instance \`--prefix=\$HOME'. 1455 1456For better control, use the options below. 1457 1458Fine tuning of the installation directories: 1459 --bindir=DIR user executables [EPREFIX/bin] 1460 --sbindir=DIR system admin executables [EPREFIX/sbin] 1461 --libexecdir=DIR program executables [EPREFIX/libexec] 1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1465 --libdir=DIR object code libraries [EPREFIX/lib] 1466 --includedir=DIR C header files [PREFIX/include] 1467 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1470 --infodir=DIR info documentation [DATAROOTDIR/info] 1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1472 --mandir=DIR man documentation [DATAROOTDIR/man] 1473 --docdir=DIR documentation root [DATAROOTDIR/doc/libXaw] 1474 --htmldir=DIR html documentation [DOCDIR] 1475 --dvidir=DIR dvi documentation [DOCDIR] 1476 --pdfdir=DIR pdf documentation [DOCDIR] 1477 --psdir=DIR ps documentation [DOCDIR] 1478_ACEOF 1479 1480 cat <<\_ACEOF 1481 1482Program names: 1483 --program-prefix=PREFIX prepend PREFIX to installed program names 1484 --program-suffix=SUFFIX append SUFFIX to installed program names 1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1486 1487System types: 1488 --build=BUILD configure for building on BUILD [guessed] 1489 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1490_ACEOF 1491fi 1492 1493if test -n "$ac_init_help"; then 1494 case $ac_init_help in 1495 short | recursive ) echo "Configuration of libXaw 1.0.11:";; 1496 esac 1497 cat <<\_ACEOF 1498 1499Optional Features: 1500 --disable-option-checking ignore unrecognized --enable/--with options 1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1503 --enable-maintainer-mode enable make rules and dependencies not useful 1504 (and sometimes confusing) to the casual installer 1505 --enable-shared[=PKGS] build shared libraries [default=yes] 1506 --enable-static[=PKGS] build static libraries [default=yes] 1507 --enable-fast-install[=PKGS] 1508 optimize for fast installation [default=yes] 1509 --disable-dependency-tracking speeds up one-time build 1510 --enable-dependency-tracking do not reject slow dependency extractors 1511 --disable-libtool-lock avoid locking (might break parallel builds) 1512 --disable-selective-werror 1513 Turn off selective compiler errors. (default: 1514 enabled) 1515 --enable-strict-compilation 1516 Enable all warnings from compiler and make them 1517 errors (default: disabled) 1518 --enable-silent-rules less verbose build output (undo: `make V=1') 1519 --disable-silent-rules verbose build output (undo: `make V=0') 1520 --enable-specs Enable building the specs (default: yes) 1521 --disable-xaw6 Disable building of libXaw.so.6 1522 --disable-xaw7 Disable building of libXaw.so.7 1523 1524Optional Packages: 1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1527 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1528 both] 1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1530 --with-sysroot=DIR Search for dependent libraries within DIR 1531 (or the compiler's sysroot if not specified). 1532 --with-xmlto Use xmlto to regenerate documentation (default: 1533 auto) 1534 --with-fop Use fop to regenerate documentation (default: auto) 1535 --with-xsltproc Use xsltproc for the transformation of XML documents 1536 (default: auto) 1537 1538Some influential environment variables: 1539 CC C compiler command 1540 CFLAGS C compiler flags 1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1542 nonstandard directory <lib dir> 1543 LIBS libraries to pass to the linker, e.g. -l<library> 1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1545 you have headers in a nonstandard directory <include dir> 1546 CPP C preprocessor 1547 PKG_CONFIG path to pkg-config utility 1548 XMLTO Path to xmlto command 1549 FOP Path to fop command 1550 XSLTPROC Path to xsltproc command 1551 XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config 1552 XAW6_LIBS linker flags for XAW6, overriding pkg-config 1553 XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config 1554 XAW7_LIBS linker flags for XAW7, overriding pkg-config 1555 1556Use these variables to override the choices made by `configure' or to help 1557it to find libraries and programs with nonstandard names/locations. 1558 1559Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1560_ACEOF 1561ac_status=$? 1562fi 1563 1564if test "$ac_init_help" = "recursive"; then 1565 # If there are subdirs, report their specific --help. 1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1567 test -d "$ac_dir" || 1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1569 continue 1570 ac_builddir=. 1571 1572case "$ac_dir" in 1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1574*) 1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1576 # A ".." for each directory in $ac_dir_suffix. 1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1578 case $ac_top_builddir_sub in 1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1581 esac ;; 1582esac 1583ac_abs_top_builddir=$ac_pwd 1584ac_abs_builddir=$ac_pwd$ac_dir_suffix 1585# for backward compatibility: 1586ac_top_builddir=$ac_top_build_prefix 1587 1588case $srcdir in 1589 .) # We are building in place. 1590 ac_srcdir=. 1591 ac_top_srcdir=$ac_top_builddir_sub 1592 ac_abs_top_srcdir=$ac_pwd ;; 1593 [\\/]* | ?:[\\/]* ) # Absolute name. 1594 ac_srcdir=$srcdir$ac_dir_suffix; 1595 ac_top_srcdir=$srcdir 1596 ac_abs_top_srcdir=$srcdir ;; 1597 *) # Relative name. 1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1599 ac_top_srcdir=$ac_top_build_prefix$srcdir 1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1601esac 1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1603 1604 cd "$ac_dir" || { ac_status=$?; continue; } 1605 # Check for guested configure. 1606 if test -f "$ac_srcdir/configure.gnu"; then 1607 echo && 1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1609 elif test -f "$ac_srcdir/configure"; then 1610 echo && 1611 $SHELL "$ac_srcdir/configure" --help=recursive 1612 else 1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1614 fi || ac_status=$? 1615 cd "$ac_pwd" || { ac_status=$?; break; } 1616 done 1617fi 1618 1619test -n "$ac_init_help" && exit $ac_status 1620if $ac_init_version; then 1621 cat <<\_ACEOF 1622libXaw configure 1.0.11 1623generated by GNU Autoconf 2.68 1624 1625Copyright (C) 2010 Free Software Foundation, Inc. 1626This configure script is free software; the Free Software Foundation 1627gives unlimited permission to copy, distribute and modify it. 1628_ACEOF 1629 exit 1630fi 1631 1632## ------------------------ ## 1633## Autoconf initialization. ## 1634## ------------------------ ## 1635 1636# ac_fn_c_try_compile LINENO 1637# -------------------------- 1638# Try to compile conftest.$ac_ext, and return whether this succeeded. 1639ac_fn_c_try_compile () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 rm -f conftest.$ac_objext 1643 if { { ac_try="$ac_compile" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_compile") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { 1659 test -z "$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 } && test -s conftest.$ac_objext; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 as_fn_set_status $ac_retval 1671 1672} # ac_fn_c_try_compile 1673 1674# ac_fn_c_try_link LINENO 1675# ----------------------- 1676# Try to link conftest.$ac_ext, and return whether this succeeded. 1677ac_fn_c_try_link () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext conftest$ac_exeext 1681 if { { ac_try="$ac_link" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest$ac_exeext && { 1700 test "$cross_compiling" = yes || 1701 $as_test_x conftest$ac_exeext 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1712 # interfere with the next link command; also delete a directory that is 1713 # left behind by Apple's compiler. We do this before executing the actions. 1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_link 1719 1720# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists and can be compiled using the include files in 1723# INCLUDES, setting the cache variable VAR accordingly. 1724ac_fn_c_check_header_compile () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734$4 1735#include <$2> 1736_ACEOF 1737if ac_fn_c_try_compile "$LINENO"; then : 1738 eval "$3=yes" 1739else 1740 eval "$3=no" 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 1749} # ac_fn_c_check_header_compile 1750 1751# ac_fn_c_try_cpp LINENO 1752# ---------------------- 1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1754ac_fn_c_try_cpp () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if { { ac_try="$ac_cpp conftest.$ac_ext" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } > conftest.i && { 1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1774 test ! -s conftest.err 1775 }; then : 1776 ac_retval=0 1777else 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 1782fi 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786} # ac_fn_c_try_cpp 1787 1788# ac_fn_c_try_run LINENO 1789# ---------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1791# that executables *can* be run. 1792ac_fn_c_try_run () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>&5 1803 ac_status=$? 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1806 { { case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811$as_echo "$ac_try_echo"; } >&5 1812 (eval "$ac_try") 2>&5 1813 ac_status=$? 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; }; }; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: program exited with status $ac_status" >&5 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=$ac_status 1823fi 1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828} # ac_fn_c_try_run 1829 1830# ac_fn_c_check_func LINENO FUNC VAR 1831# ---------------------------------- 1832# Tests whether FUNC exists, setting the cache variable VAR accordingly 1833ac_fn_c_check_func () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1837$as_echo_n "checking for $2... " >&6; } 1838if eval \${$3+:} false; then : 1839 $as_echo_n "(cached) " >&6 1840else 1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1845#define $2 innocuous_$2 1846 1847/* System header to define __stub macros and hopefully few prototypes, 1848 which can conflict with char $2 (); below. 1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1850 <limits.h> exists even on freestanding compilers. */ 1851 1852#ifdef __STDC__ 1853# include <limits.h> 1854#else 1855# include <assert.h> 1856#endif 1857 1858#undef $2 1859 1860/* Override any GCC internal prototype to avoid an error. 1861 Use char because int might match the return type of a GCC 1862 builtin and then its argument prototype would still apply. */ 1863#ifdef __cplusplus 1864extern "C" 1865#endif 1866char $2 (); 1867/* The GNU C library defines this for functions which it implements 1868 to always fail with ENOSYS. Some functions are actually named 1869 something starting with __ and the normal name is an alias. */ 1870#if defined __stub_$2 || defined __stub___$2 1871choke me 1872#endif 1873 1874int 1875main () 1876{ 1877return $2 (); 1878 ; 1879 return 0; 1880} 1881_ACEOF 1882if ac_fn_c_try_link "$LINENO"; then : 1883 eval "$3=yes" 1884else 1885 eval "$3=no" 1886fi 1887rm -f core conftest.err conftest.$ac_objext \ 1888 conftest$ac_exeext conftest.$ac_ext 1889fi 1890eval ac_res=\$$3 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1892$as_echo "$ac_res" >&6; } 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_func 1896 1897# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1898# --------------------------------------------- 1899# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1900# accordingly. 1901ac_fn_c_check_decl () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 as_decl_name=`echo $2|sed 's/ *(.*//'` 1905 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1907$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1908if eval \${$3+:} false; then : 1909 $as_echo_n "(cached) " >&6 1910else 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1912/* end confdefs.h. */ 1913$4 1914int 1915main () 1916{ 1917#ifndef $as_decl_name 1918#ifdef __cplusplus 1919 (void) $as_decl_use; 1920#else 1921 (void) $as_decl_name; 1922#endif 1923#endif 1924 1925 ; 1926 return 0; 1927} 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 eval "$3=yes" 1931else 1932 eval "$3=no" 1933fi 1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1935fi 1936eval ac_res=\$$3 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1938$as_echo "$ac_res" >&6; } 1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1940 1941} # ac_fn_c_check_decl 1942 1943# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1944# ------------------------------------------------------- 1945# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1946# the include files in INCLUDES and setting the cache variable VAR 1947# accordingly. 1948ac_fn_c_check_header_mongrel () 1949{ 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 if eval \${$3+:} false; then : 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1953$as_echo_n "checking for $2... " >&6; } 1954if eval \${$3+:} false; then : 1955 $as_echo_n "(cached) " >&6 1956fi 1957eval ac_res=\$$3 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1959$as_echo "$ac_res" >&6; } 1960else 1961 # Is the header compilable? 1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1963$as_echo_n "checking $2 usability... " >&6; } 1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966$4 1967#include <$2> 1968_ACEOF 1969if ac_fn_c_try_compile "$LINENO"; then : 1970 ac_header_compiler=yes 1971else 1972 ac_header_compiler=no 1973fi 1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1976$as_echo "$ac_header_compiler" >&6; } 1977 1978# Is the header present? 1979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1980$as_echo_n "checking $2 presence... " >&6; } 1981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983#include <$2> 1984_ACEOF 1985if ac_fn_c_try_cpp "$LINENO"; then : 1986 ac_header_preproc=yes 1987else 1988 ac_header_preproc=no 1989fi 1990rm -f conftest.err conftest.i conftest.$ac_ext 1991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1992$as_echo "$ac_header_preproc" >&6; } 1993 1994# So? What about this header? 1995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1996 yes:no: ) 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1998$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2000$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2001 ;; 2002 no:yes:* ) 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2004$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2006$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2008$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2010$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2012$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2013( $as_echo "## ---------------------------------------------------------------------- ## 2014## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2015## ---------------------------------------------------------------------- ##" 2016 ) | sed "s/^/$as_me: WARNING: /" >&2 2017 ;; 2018esac 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=\$ac_header_compiler" 2025fi 2026eval ac_res=\$$3 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2028$as_echo "$ac_res" >&6; } 2029fi 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 2032} # ac_fn_c_check_header_mongrel 2033cat >config.log <<_ACEOF 2034This file contains any messages produced by compilers while 2035running configure, to aid debugging if configure makes a mistake. 2036 2037It was created by libXaw $as_me 1.0.11, which was 2038generated by GNU Autoconf 2.68. Invocation command line was 2039 2040 $ $0 $@ 2041 2042_ACEOF 2043exec 5>>config.log 2044{ 2045cat <<_ASUNAME 2046## --------- ## 2047## Platform. ## 2048## --------- ## 2049 2050hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2051uname -m = `(uname -m) 2>/dev/null || echo unknown` 2052uname -r = `(uname -r) 2>/dev/null || echo unknown` 2053uname -s = `(uname -s) 2>/dev/null || echo unknown` 2054uname -v = `(uname -v) 2>/dev/null || echo unknown` 2055 2056/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2057/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2058 2059/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2060/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2061/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2062/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2063/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2064/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2065/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2066 2067_ASUNAME 2068 2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2070for as_dir in $PATH 2071do 2072 IFS=$as_save_IFS 2073 test -z "$as_dir" && as_dir=. 2074 $as_echo "PATH: $as_dir" 2075 done 2076IFS=$as_save_IFS 2077 2078} >&5 2079 2080cat >&5 <<_ACEOF 2081 2082 2083## ----------- ## 2084## Core tests. ## 2085## ----------- ## 2086 2087_ACEOF 2088 2089 2090# Keep a trace of the command line. 2091# Strip out --no-create and --no-recursion so they do not pile up. 2092# Strip out --silent because we don't want to record it for future runs. 2093# Also quote any args containing shell meta-characters. 2094# Make two passes to allow for proper duplicate-argument suppression. 2095ac_configure_args= 2096ac_configure_args0= 2097ac_configure_args1= 2098ac_must_keep_next=false 2099for ac_pass in 1 2 2100do 2101 for ac_arg 2102 do 2103 case $ac_arg in 2104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2106 | -silent | --silent | --silen | --sile | --sil) 2107 continue ;; 2108 *\'*) 2109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2110 esac 2111 case $ac_pass in 2112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2113 2) 2114 as_fn_append ac_configure_args1 " '$ac_arg'" 2115 if test $ac_must_keep_next = true; then 2116 ac_must_keep_next=false # Got value, back to normal. 2117 else 2118 case $ac_arg in 2119 *=* | --config-cache | -C | -disable-* | --disable-* \ 2120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2122 | -with-* | --with-* | -without-* | --without-* | --x) 2123 case "$ac_configure_args0 " in 2124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2125 esac 2126 ;; 2127 -* ) ac_must_keep_next=true ;; 2128 esac 2129 fi 2130 as_fn_append ac_configure_args " '$ac_arg'" 2131 ;; 2132 esac 2133 done 2134done 2135{ ac_configure_args0=; unset ac_configure_args0;} 2136{ ac_configure_args1=; unset ac_configure_args1;} 2137 2138# When interrupted or exit'd, cleanup temporary files, and complete 2139# config.log. We remove comments because anyway the quotes in there 2140# would cause problems or look ugly. 2141# WARNING: Use '\'' to represent an apostrophe within the trap. 2142# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2143trap 'exit_status=$? 2144 # Save into config.log some information that might help in debugging. 2145 { 2146 echo 2147 2148 $as_echo "## ---------------- ## 2149## Cache variables. ## 2150## ---------------- ##" 2151 echo 2152 # The following way of writing the cache mishandles newlines in values, 2153( 2154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2155 eval ac_val=\$$ac_var 2156 case $ac_val in #( 2157 *${as_nl}*) 2158 case $ac_var in #( 2159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2161 esac 2162 case $ac_var in #( 2163 _ | IFS | as_nl) ;; #( 2164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2165 *) { eval $ac_var=; unset $ac_var;} ;; 2166 esac ;; 2167 esac 2168 done 2169 (set) 2>&1 | 2170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2171 *${as_nl}ac_space=\ *) 2172 sed -n \ 2173 "s/'\''/'\''\\\\'\'''\''/g; 2174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2175 ;; #( 2176 *) 2177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2178 ;; 2179 esac | 2180 sort 2181) 2182 echo 2183 2184 $as_echo "## ----------------- ## 2185## Output variables. ## 2186## ----------------- ##" 2187 echo 2188 for ac_var in $ac_subst_vars 2189 do 2190 eval ac_val=\$$ac_var 2191 case $ac_val in 2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2193 esac 2194 $as_echo "$ac_var='\''$ac_val'\''" 2195 done | sort 2196 echo 2197 2198 if test -n "$ac_subst_files"; then 2199 $as_echo "## ------------------- ## 2200## File substitutions. ## 2201## ------------------- ##" 2202 echo 2203 for ac_var in $ac_subst_files 2204 do 2205 eval ac_val=\$$ac_var 2206 case $ac_val in 2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2208 esac 2209 $as_echo "$ac_var='\''$ac_val'\''" 2210 done | sort 2211 echo 2212 fi 2213 2214 if test -s confdefs.h; then 2215 $as_echo "## ----------- ## 2216## confdefs.h. ## 2217## ----------- ##" 2218 echo 2219 cat confdefs.h 2220 echo 2221 fi 2222 test "$ac_signal" != 0 && 2223 $as_echo "$as_me: caught signal $ac_signal" 2224 $as_echo "$as_me: exit $exit_status" 2225 } >&5 2226 rm -f core *.core core.conftest.* && 2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2228 exit $exit_status 2229' 0 2230for ac_signal in 1 2 13 15; do 2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2232done 2233ac_signal=0 2234 2235# confdefs.h avoids OS command line length limits that DEFS can exceed. 2236rm -f -r conftest* confdefs.h 2237 2238$as_echo "/* confdefs.h */" > confdefs.h 2239 2240# Predefined preprocessor variables. 2241 2242cat >>confdefs.h <<_ACEOF 2243#define PACKAGE_NAME "$PACKAGE_NAME" 2244_ACEOF 2245 2246cat >>confdefs.h <<_ACEOF 2247#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2248_ACEOF 2249 2250cat >>confdefs.h <<_ACEOF 2251#define PACKAGE_VERSION "$PACKAGE_VERSION" 2252_ACEOF 2253 2254cat >>confdefs.h <<_ACEOF 2255#define PACKAGE_STRING "$PACKAGE_STRING" 2256_ACEOF 2257 2258cat >>confdefs.h <<_ACEOF 2259#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2260_ACEOF 2261 2262cat >>confdefs.h <<_ACEOF 2263#define PACKAGE_URL "$PACKAGE_URL" 2264_ACEOF 2265 2266 2267# Let the site file select an alternate cache file if it wants to. 2268# Prefer an explicitly selected file to automatically selected ones. 2269ac_site_file1=NONE 2270ac_site_file2=NONE 2271if test -n "$CONFIG_SITE"; then 2272 # We do not want a PATH search for config.site. 2273 case $CONFIG_SITE in #(( 2274 -*) ac_site_file1=./$CONFIG_SITE;; 2275 */*) ac_site_file1=$CONFIG_SITE;; 2276 *) ac_site_file1=./$CONFIG_SITE;; 2277 esac 2278elif test "x$prefix" != xNONE; then 2279 ac_site_file1=$prefix/share/config.site 2280 ac_site_file2=$prefix/etc/config.site 2281else 2282 ac_site_file1=$ac_default_prefix/share/config.site 2283 ac_site_file2=$ac_default_prefix/etc/config.site 2284fi 2285for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2286do 2287 test "x$ac_site_file" = xNONE && continue 2288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2290$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2291 sed 's/^/| /' "$ac_site_file" >&5 2292 . "$ac_site_file" \ 2293 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2295as_fn_error $? "failed to load site script $ac_site_file 2296See \`config.log' for more details" "$LINENO" 5; } 2297 fi 2298done 2299 2300if test -r "$cache_file"; then 2301 # Some versions of bash will fail to source /dev/null (special files 2302 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2303 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2305$as_echo "$as_me: loading cache $cache_file" >&6;} 2306 case $cache_file in 2307 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2308 *) . "./$cache_file";; 2309 esac 2310 fi 2311else 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2313$as_echo "$as_me: creating cache $cache_file" >&6;} 2314 >$cache_file 2315fi 2316 2317# Check that the precious variables saved in the cache have kept the same 2318# value. 2319ac_cache_corrupted=false 2320for ac_var in $ac_precious_vars; do 2321 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2322 eval ac_new_set=\$ac_env_${ac_var}_set 2323 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2324 eval ac_new_val=\$ac_env_${ac_var}_value 2325 case $ac_old_set,$ac_new_set in 2326 set,) 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2328$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2329 ac_cache_corrupted=: ;; 2330 ,set) 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2332$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2333 ac_cache_corrupted=: ;; 2334 ,);; 2335 *) 2336 if test "x$ac_old_val" != "x$ac_new_val"; then 2337 # differences in whitespace do not lead to failure. 2338 ac_old_val_w=`echo x $ac_old_val` 2339 ac_new_val_w=`echo x $ac_new_val` 2340 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2342$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2343 ac_cache_corrupted=: 2344 else 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2346$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2347 eval $ac_var=\$ac_old_val 2348 fi 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2350$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2352$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2353 fi;; 2354 esac 2355 # Pass precious variables to config.status. 2356 if test "$ac_new_set" = set; then 2357 case $ac_new_val in 2358 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2359 *) ac_arg=$ac_var=$ac_new_val ;; 2360 esac 2361 case " $ac_configure_args " in 2362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2363 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2364 esac 2365 fi 2366done 2367if $ac_cache_corrupted; then 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2371$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2372 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2373fi 2374## -------------------- ## 2375## Main body of script. ## 2376## -------------------- ## 2377 2378ac_ext=c 2379ac_cpp='$CPP $CPPFLAGS' 2380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2382ac_compiler_gnu=$ac_cv_c_compiler_gnu 2383 2384 2385 2386ac_config_headers="$ac_config_headers config.h" 2387 2388 2389# Initialize Automake 2390am__api_version='1.11' 2391 2392ac_aux_dir= 2393for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2394 if test -f "$ac_dir/install-sh"; then 2395 ac_aux_dir=$ac_dir 2396 ac_install_sh="$ac_aux_dir/install-sh -c" 2397 break 2398 elif test -f "$ac_dir/install.sh"; then 2399 ac_aux_dir=$ac_dir 2400 ac_install_sh="$ac_aux_dir/install.sh -c" 2401 break 2402 elif test -f "$ac_dir/shtool"; then 2403 ac_aux_dir=$ac_dir 2404 ac_install_sh="$ac_aux_dir/shtool install -c" 2405 break 2406 fi 2407done 2408if test -z "$ac_aux_dir"; then 2409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2410fi 2411 2412# These three variables are undocumented and unsupported, 2413# and are intended to be withdrawn in a future Autoconf release. 2414# They can cause serious problems if a builder's source tree is in a directory 2415# whose full name contains unusual characters. 2416ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2417ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2418ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2419 2420 2421# Find a good install program. We prefer a C program (faster), 2422# so one script is as good as another. But avoid the broken or 2423# incompatible versions: 2424# SysV /etc/install, /usr/sbin/install 2425# SunOS /usr/etc/install 2426# IRIX /sbin/install 2427# AIX /bin/install 2428# AmigaOS /C/install, which installs bootblocks on floppy discs 2429# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2430# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2431# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2432# OS/2's system install, which has a completely different semantic 2433# ./install, which can be erroneously created by make from ./install.sh. 2434# Reject install programs that cannot install multiple files. 2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2436$as_echo_n "checking for a BSD-compatible install... " >&6; } 2437if test -z "$INSTALL"; then 2438if ${ac_cv_path_install+:} false; then : 2439 $as_echo_n "(cached) " >&6 2440else 2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 # Account for people who put trailing slashes in PATH elements. 2447case $as_dir/ in #(( 2448 ./ | .// | /[cC]/* | \ 2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2450 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2451 /usr/ucb/* ) ;; 2452 *) 2453 # OSF1 and SCO ODT 3.0 have their own names for install. 2454 # Don't use installbsd from OSF since it installs stuff as root 2455 # by default. 2456 for ac_prog in ginstall scoinst install; do 2457 for ac_exec_ext in '' $ac_executable_extensions; do 2458 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2459 if test $ac_prog = install && 2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2461 # AIX install. It has an incompatible calling convention. 2462 : 2463 elif test $ac_prog = install && 2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2465 # program-specific install script used by HP pwplus--don't use. 2466 : 2467 else 2468 rm -rf conftest.one conftest.two conftest.dir 2469 echo one > conftest.one 2470 echo two > conftest.two 2471 mkdir conftest.dir 2472 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2473 test -s conftest.one && test -s conftest.two && 2474 test -s conftest.dir/conftest.one && 2475 test -s conftest.dir/conftest.two 2476 then 2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2478 break 3 2479 fi 2480 fi 2481 fi 2482 done 2483 done 2484 ;; 2485esac 2486 2487 done 2488IFS=$as_save_IFS 2489 2490rm -rf conftest.one conftest.two conftest.dir 2491 2492fi 2493 if test "${ac_cv_path_install+set}" = set; then 2494 INSTALL=$ac_cv_path_install 2495 else 2496 # As a last resort, use the slow shell script. Don't cache a 2497 # value for INSTALL within a source directory, because that will 2498 # break other packages using the cache if that directory is 2499 # removed, or if the value is a relative name. 2500 INSTALL=$ac_install_sh 2501 fi 2502fi 2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2504$as_echo "$INSTALL" >&6; } 2505 2506# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2507# It thinks the first close brace ends the variable substitution. 2508test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2509 2510test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2511 2512test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2513 2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2515$as_echo_n "checking whether build environment is sane... " >&6; } 2516# Just in case 2517sleep 1 2518echo timestamp > conftest.file 2519# Reject unsafe characters in $srcdir or the absolute working directory 2520# name. Accept space and tab only in the latter. 2521am_lf=' 2522' 2523case `pwd` in 2524 *[\\\"\#\$\&\'\`$am_lf]*) 2525 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2526esac 2527case $srcdir in 2528 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2529 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2530esac 2531 2532# Do `set' in a subshell so we don't clobber the current shell's 2533# arguments. Must try -L first in case configure is actually a 2534# symlink; some systems play weird games with the mod time of symlinks 2535# (eg FreeBSD returns the mod time of the symlink's containing 2536# directory). 2537if ( 2538 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2539 if test "$*" = "X"; then 2540 # -L didn't work. 2541 set X `ls -t "$srcdir/configure" conftest.file` 2542 fi 2543 rm -f conftest.file 2544 if test "$*" != "X $srcdir/configure conftest.file" \ 2545 && test "$*" != "X conftest.file $srcdir/configure"; then 2546 2547 # If neither matched, then we have a broken ls. This can happen 2548 # if, for instance, CONFIG_SHELL is bash and it inherits a 2549 # broken ls alias from the environment. This has actually 2550 # happened. Such a system could not be considered "sane". 2551 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2552alias in your environment" "$LINENO" 5 2553 fi 2554 2555 test "$2" = conftest.file 2556 ) 2557then 2558 # Ok. 2559 : 2560else 2561 as_fn_error $? "newly created file is older than distributed files! 2562Check your system clock" "$LINENO" 5 2563fi 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2565$as_echo "yes" >&6; } 2566test "$program_prefix" != NONE && 2567 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2568# Use a double $ so make ignores it. 2569test "$program_suffix" != NONE && 2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2571# Double any \ or $. 2572# By default was `s,x,x', remove it if useless. 2573ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2574program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2575 2576# expand $ac_aux_dir to an absolute path 2577am_aux_dir=`cd $ac_aux_dir && pwd` 2578 2579if test x"${MISSING+set}" != xset; then 2580 case $am_aux_dir in 2581 *\ * | *\ *) 2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2583 *) 2584 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2585 esac 2586fi 2587# Use eval to expand $SHELL 2588if eval "$MISSING --run true"; then 2589 am_missing_run="$MISSING --run " 2590else 2591 am_missing_run= 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2593$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2594fi 2595 2596if test x"${install_sh}" != xset; then 2597 case $am_aux_dir in 2598 *\ * | *\ *) 2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2600 *) 2601 install_sh="\${SHELL} $am_aux_dir/install-sh" 2602 esac 2603fi 2604 2605# Installed binaries are usually stripped using `strip' when the user 2606# run `make install-strip'. However `strip' might not be the right 2607# tool to use in cross-compilation environments, therefore Automake 2608# will honor the `STRIP' environment variable to overrule this program. 2609if test "$cross_compiling" != no; then 2610 if test -n "$ac_tool_prefix"; then 2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2612set dummy ${ac_tool_prefix}strip; ac_word=$2 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2614$as_echo_n "checking for $ac_word... " >&6; } 2615if ${ac_cv_prog_STRIP+:} false; then : 2616 $as_echo_n "(cached) " >&6 2617else 2618 if test -n "$STRIP"; then 2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633 done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638STRIP=$ac_cv_prog_STRIP 2639if test -n "$STRIP"; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2641$as_echo "$STRIP" >&6; } 2642else 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2644$as_echo "no" >&6; } 2645fi 2646 2647 2648fi 2649if test -z "$ac_cv_prog_STRIP"; then 2650 ac_ct_STRIP=$STRIP 2651 # Extract the first word of "strip", so it can be a program name with args. 2652set dummy strip; ac_word=$2 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2654$as_echo_n "checking for $ac_word... " >&6; } 2655if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2656 $as_echo_n "(cached) " >&6 2657else 2658 if test -n "$ac_ct_STRIP"; then 2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2660else 2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2662for as_dir in $PATH 2663do 2664 IFS=$as_save_IFS 2665 test -z "$as_dir" && as_dir=. 2666 for ac_exec_ext in '' $ac_executable_extensions; do 2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2668 ac_cv_prog_ac_ct_STRIP="strip" 2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2670 break 2 2671 fi 2672done 2673 done 2674IFS=$as_save_IFS 2675 2676fi 2677fi 2678ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2679if test -n "$ac_ct_STRIP"; then 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2681$as_echo "$ac_ct_STRIP" >&6; } 2682else 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2684$as_echo "no" >&6; } 2685fi 2686 2687 if test "x$ac_ct_STRIP" = x; then 2688 STRIP=":" 2689 else 2690 case $cross_compiling:$ac_tool_warned in 2691yes:) 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2694ac_tool_warned=yes ;; 2695esac 2696 STRIP=$ac_ct_STRIP 2697 fi 2698else 2699 STRIP="$ac_cv_prog_STRIP" 2700fi 2701 2702fi 2703INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2704 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2706$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2707if test -z "$MKDIR_P"; then 2708 if ${ac_cv_path_mkdir+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2712for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2713do 2714 IFS=$as_save_IFS 2715 test -z "$as_dir" && as_dir=. 2716 for ac_prog in mkdir gmkdir; do 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2720 'mkdir (GNU coreutils) '* | \ 2721 'mkdir (coreutils) '* | \ 2722 'mkdir (fileutils) '4.1*) 2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2724 break 3;; 2725 esac 2726 done 2727 done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732 2733 test -d ./--version && rmdir ./--version 2734 if test "${ac_cv_path_mkdir+set}" = set; then 2735 MKDIR_P="$ac_cv_path_mkdir -p" 2736 else 2737 # As a last resort, use the slow shell script. Don't cache a 2738 # value for MKDIR_P within a source directory, because that will 2739 # break other packages using the cache if that directory is 2740 # removed, or if the value is a relative name. 2741 MKDIR_P="$ac_install_sh -d" 2742 fi 2743fi 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2745$as_echo "$MKDIR_P" >&6; } 2746 2747mkdir_p="$MKDIR_P" 2748case $mkdir_p in 2749 [\\/$]* | ?:[\\/]*) ;; 2750 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2751esac 2752 2753for ac_prog in gawk mawk nawk awk 2754do 2755 # Extract the first word of "$ac_prog", so it can be a program name with args. 2756set dummy $ac_prog; ac_word=$2 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2758$as_echo_n "checking for $ac_word... " >&6; } 2759if ${ac_cv_prog_AWK+:} false; then : 2760 $as_echo_n "(cached) " >&6 2761else 2762 if test -n "$AWK"; then 2763 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2764else 2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766for as_dir in $PATH 2767do 2768 IFS=$as_save_IFS 2769 test -z "$as_dir" && as_dir=. 2770 for ac_exec_ext in '' $ac_executable_extensions; do 2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2772 ac_cv_prog_AWK="$ac_prog" 2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777 done 2778IFS=$as_save_IFS 2779 2780fi 2781fi 2782AWK=$ac_cv_prog_AWK 2783if test -n "$AWK"; then 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2785$as_echo "$AWK" >&6; } 2786else 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788$as_echo "no" >&6; } 2789fi 2790 2791 2792 test -n "$AWK" && break 2793done 2794 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2796$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2797set x ${MAKE-make} 2798ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2799if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2800 $as_echo_n "(cached) " >&6 2801else 2802 cat >conftest.make <<\_ACEOF 2803SHELL = /bin/sh 2804all: 2805 @echo '@@@%%%=$(MAKE)=@@@%%%' 2806_ACEOF 2807# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2808case `${MAKE-make} -f conftest.make 2>/dev/null` in 2809 *@@@%%%=?*=@@@%%%*) 2810 eval ac_cv_prog_make_${ac_make}_set=yes;; 2811 *) 2812 eval ac_cv_prog_make_${ac_make}_set=no;; 2813esac 2814rm -f conftest.make 2815fi 2816if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2818$as_echo "yes" >&6; } 2819 SET_MAKE= 2820else 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2822$as_echo "no" >&6; } 2823 SET_MAKE="MAKE=${MAKE-make}" 2824fi 2825 2826rm -rf .tst 2>/dev/null 2827mkdir .tst 2>/dev/null 2828if test -d .tst; then 2829 am__leading_dot=. 2830else 2831 am__leading_dot=_ 2832fi 2833rmdir .tst 2>/dev/null 2834 2835if test "`cd $srcdir && pwd`" != "`pwd`"; then 2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2837 # is not polluted with repeated "-I." 2838 am__isrc=' -I$(srcdir)' 2839 # test to see if srcdir already configured 2840 if test -f $srcdir/config.status; then 2841 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2842 fi 2843fi 2844 2845# test whether we have cygpath 2846if test -z "$CYGPATH_W"; then 2847 if (cygpath --version) >/dev/null 2>/dev/null; then 2848 CYGPATH_W='cygpath -w' 2849 else 2850 CYGPATH_W=echo 2851 fi 2852fi 2853 2854 2855# Define the identity of the package. 2856 PACKAGE='libXaw' 2857 VERSION='1.0.11' 2858 2859 2860cat >>confdefs.h <<_ACEOF 2861#define PACKAGE "$PACKAGE" 2862_ACEOF 2863 2864 2865cat >>confdefs.h <<_ACEOF 2866#define VERSION "$VERSION" 2867_ACEOF 2868 2869# Some tools Automake needs. 2870 2871ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2872 2873 2874AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2875 2876 2877AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2878 2879 2880AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2881 2882 2883MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2884 2885# We need awk for the "check" target. The system "awk" is bad on 2886# some platforms. 2887# Always define AMTAR for backward compatibility. 2888 2889AMTAR=${AMTAR-"${am_missing_run}tar"} 2890 2891am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2892 2893 2894 2895 2896 2897 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2899$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2900 # Check whether --enable-maintainer-mode was given. 2901if test "${enable_maintainer_mode+set}" = set; then : 2902 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2903else 2904 USE_MAINTAINER_MODE=no 2905fi 2906 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2908$as_echo "$USE_MAINTAINER_MODE" >&6; } 2909 if test $USE_MAINTAINER_MODE = yes; then 2910 MAINTAINER_MODE_TRUE= 2911 MAINTAINER_MODE_FALSE='#' 2912else 2913 MAINTAINER_MODE_TRUE='#' 2914 MAINTAINER_MODE_FALSE= 2915fi 2916 2917 MAINT=$MAINTAINER_MODE_TRUE 2918 2919 2920 2921# Initialize libtool 2922case `pwd` in 2923 *\ * | *\ *) 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2925$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2926esac 2927 2928 2929 2930macro_version='2.4.2' 2931macro_revision='1.3337' 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945ltmain="$ac_aux_dir/ltmain.sh" 2946 2947# Make sure we can run config.sub. 2948$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2949 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2950 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2952$as_echo_n "checking build system type... " >&6; } 2953if ${ac_cv_build+:} false; then : 2954 $as_echo_n "(cached) " >&6 2955else 2956 ac_build_alias=$build_alias 2957test "x$ac_build_alias" = x && 2958 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2959test "x$ac_build_alias" = x && 2960 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2961ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2963 2964fi 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2966$as_echo "$ac_cv_build" >&6; } 2967case $ac_cv_build in 2968*-*-*) ;; 2969*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2970esac 2971build=$ac_cv_build 2972ac_save_IFS=$IFS; IFS='-' 2973set x $ac_cv_build 2974shift 2975build_cpu=$1 2976build_vendor=$2 2977shift; shift 2978# Remember, the first character of IFS is used to create $*, 2979# except with old shells: 2980build_os=$* 2981IFS=$ac_save_IFS 2982case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2983 2984 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2986$as_echo_n "checking host system type... " >&6; } 2987if ${ac_cv_host+:} false; then : 2988 $as_echo_n "(cached) " >&6 2989else 2990 if test "x$host_alias" = x; then 2991 ac_cv_host=$ac_cv_build 2992else 2993 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2995fi 2996 2997fi 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2999$as_echo "$ac_cv_host" >&6; } 3000case $ac_cv_host in 3001*-*-*) ;; 3002*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3003esac 3004host=$ac_cv_host 3005ac_save_IFS=$IFS; IFS='-' 3006set x $ac_cv_host 3007shift 3008host_cpu=$1 3009host_vendor=$2 3010shift; shift 3011# Remember, the first character of IFS is used to create $*, 3012# except with old shells: 3013host_os=$* 3014IFS=$ac_save_IFS 3015case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3016 3017 3018# Backslashify metacharacters that are still active within 3019# double-quoted strings. 3020sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3021 3022# Same as above, but do not quote variable references. 3023double_quote_subst='s/\(["`\\]\)/\\\1/g' 3024 3025# Sed substitution to delay expansion of an escaped shell variable in a 3026# double_quote_subst'ed string. 3027delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3028 3029# Sed substitution to delay expansion of an escaped single quote. 3030delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3031 3032# Sed substitution to avoid accidental globbing in evaled expressions 3033no_glob_subst='s/\*/\\\*/g' 3034 3035ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3036ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3037ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3038 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3040$as_echo_n "checking how to print strings... " >&6; } 3041# Test print first, because it will be a builtin if present. 3042if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3043 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3044 ECHO='print -r --' 3045elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3046 ECHO='printf %s\n' 3047else 3048 # Use this function as a fallback that always works. 3049 func_fallback_echo () 3050 { 3051 eval 'cat <<_LTECHO_EOF 3052$1 3053_LTECHO_EOF' 3054 } 3055 ECHO='func_fallback_echo' 3056fi 3057 3058# func_echo_all arg... 3059# Invoke $ECHO with all args, space-separated. 3060func_echo_all () 3061{ 3062 $ECHO "" 3063} 3064 3065case "$ECHO" in 3066 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3067$as_echo "printf" >&6; } ;; 3068 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3069$as_echo "print -r" >&6; } ;; 3070 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3071$as_echo "cat" >&6; } ;; 3072esac 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087DEPDIR="${am__leading_dot}deps" 3088 3089ac_config_commands="$ac_config_commands depfiles" 3090 3091 3092am_make=${MAKE-make} 3093cat > confinc << 'END' 3094am__doit: 3095 @echo this is the am__doit target 3096.PHONY: am__doit 3097END 3098# If we don't find an include directive, just comment out the code. 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3100$as_echo_n "checking for style of include used by $am_make... " >&6; } 3101am__include="#" 3102am__quote= 3103_am_result=none 3104# First try GNU make style include. 3105echo "include confinc" > confmf 3106# Ignore all kinds of additional output from `make'. 3107case `$am_make -s -f confmf 2> /dev/null` in #( 3108*the\ am__doit\ target*) 3109 am__include=include 3110 am__quote= 3111 _am_result=GNU 3112 ;; 3113esac 3114# Now try BSD make style include. 3115if test "$am__include" = "#"; then 3116 echo '.include "confinc"' > confmf 3117 case `$am_make -s -f confmf 2> /dev/null` in #( 3118 *the\ am__doit\ target*) 3119 am__include=.include 3120 am__quote="\"" 3121 _am_result=BSD 3122 ;; 3123 esac 3124fi 3125 3126 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3128$as_echo "$_am_result" >&6; } 3129rm -f confinc confmf 3130 3131# Check whether --enable-dependency-tracking was given. 3132if test "${enable_dependency_tracking+set}" = set; then : 3133 enableval=$enable_dependency_tracking; 3134fi 3135 3136if test "x$enable_dependency_tracking" != xno; then 3137 am_depcomp="$ac_aux_dir/depcomp" 3138 AMDEPBACKSLASH='\' 3139 am__nodep='_no' 3140fi 3141 if test "x$enable_dependency_tracking" != xno; then 3142 AMDEP_TRUE= 3143 AMDEP_FALSE='#' 3144else 3145 AMDEP_TRUE='#' 3146 AMDEP_FALSE= 3147fi 3148 3149 3150ac_ext=c 3151ac_cpp='$CPP $CPPFLAGS' 3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3154ac_compiler_gnu=$ac_cv_c_compiler_gnu 3155if test -n "$ac_tool_prefix"; then 3156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3157set dummy ${ac_tool_prefix}gcc; ac_word=$2 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3159$as_echo_n "checking for $ac_word... " >&6; } 3160if ${ac_cv_prog_CC+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 if test -n "$CC"; then 3164 ac_cv_prog_CC="$CC" # Let the user override the test. 3165else 3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3167for as_dir in $PATH 3168do 3169 IFS=$as_save_IFS 3170 test -z "$as_dir" && as_dir=. 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3173 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 break 2 3176 fi 3177done 3178 done 3179IFS=$as_save_IFS 3180 3181fi 3182fi 3183CC=$ac_cv_prog_CC 3184if test -n "$CC"; then 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3186$as_echo "$CC" >&6; } 3187else 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190fi 3191 3192 3193fi 3194if test -z "$ac_cv_prog_CC"; then 3195 ac_ct_CC=$CC 3196 # Extract the first word of "gcc", so it can be a program name with args. 3197set dummy gcc; ac_word=$2 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3199$as_echo_n "checking for $ac_word... " >&6; } 3200if ${ac_cv_prog_ac_ct_CC+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202else 3203 if test -n "$ac_ct_CC"; then 3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3205else 3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3207for as_dir in $PATH 3208do 3209 IFS=$as_save_IFS 3210 test -z "$as_dir" && as_dir=. 3211 for ac_exec_ext in '' $ac_executable_extensions; do 3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3213 ac_cv_prog_ac_ct_CC="gcc" 3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3215 break 2 3216 fi 3217done 3218 done 3219IFS=$as_save_IFS 3220 3221fi 3222fi 3223ac_ct_CC=$ac_cv_prog_ac_ct_CC 3224if test -n "$ac_ct_CC"; then 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3226$as_echo "$ac_ct_CC" >&6; } 3227else 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3229$as_echo "no" >&6; } 3230fi 3231 3232 if test "x$ac_ct_CC" = x; then 3233 CC="" 3234 else 3235 case $cross_compiling:$ac_tool_warned in 3236yes:) 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3239ac_tool_warned=yes ;; 3240esac 3241 CC=$ac_ct_CC 3242 fi 3243else 3244 CC="$ac_cv_prog_CC" 3245fi 3246 3247if test -z "$CC"; then 3248 if test -n "$ac_tool_prefix"; then 3249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3250set dummy ${ac_tool_prefix}cc; ac_word=$2 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252$as_echo_n "checking for $ac_word... " >&6; } 3253if ${ac_cv_prog_CC+:} false; then : 3254 $as_echo_n "(cached) " >&6 3255else 3256 if test -n "$CC"; then 3257 ac_cv_prog_CC="$CC" # Let the user override the test. 3258else 3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3260for as_dir in $PATH 3261do 3262 IFS=$as_save_IFS 3263 test -z "$as_dir" && as_dir=. 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3266 ac_cv_prog_CC="${ac_tool_prefix}cc" 3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3268 break 2 3269 fi 3270done 3271 done 3272IFS=$as_save_IFS 3273 3274fi 3275fi 3276CC=$ac_cv_prog_CC 3277if test -n "$CC"; then 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3279$as_echo "$CC" >&6; } 3280else 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282$as_echo "no" >&6; } 3283fi 3284 3285 3286 fi 3287fi 3288if test -z "$CC"; then 3289 # Extract the first word of "cc", so it can be a program name with args. 3290set dummy cc; ac_word=$2 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3292$as_echo_n "checking for $ac_word... " >&6; } 3293if ${ac_cv_prog_CC+:} false; then : 3294 $as_echo_n "(cached) " >&6 3295else 3296 if test -n "$CC"; then 3297 ac_cv_prog_CC="$CC" # Let the user override the test. 3298else 3299 ac_prog_rejected=no 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 test -z "$as_dir" && as_dir=. 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3308 ac_prog_rejected=yes 3309 continue 3310 fi 3311 ac_cv_prog_CC="cc" 3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3313 break 2 3314 fi 3315done 3316 done 3317IFS=$as_save_IFS 3318 3319if test $ac_prog_rejected = yes; then 3320 # We found a bogon in the path, so make sure we never use it. 3321 set dummy $ac_cv_prog_CC 3322 shift 3323 if test $# != 0; then 3324 # We chose a different compiler from the bogus one. 3325 # However, it has the same basename, so the bogon will be chosen 3326 # first if we set CC to just the basename; use the full file name. 3327 shift 3328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3329 fi 3330fi 3331fi 3332fi 3333CC=$ac_cv_prog_CC 3334if test -n "$CC"; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3336$as_echo "$CC" >&6; } 3337else 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340fi 3341 3342 3343fi 3344if test -z "$CC"; then 3345 if test -n "$ac_tool_prefix"; then 3346 for ac_prog in cl.exe 3347 do 3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3349set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3351$as_echo_n "checking for $ac_word... " >&6; } 3352if ${ac_cv_prog_CC+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 if test -n "$CC"; then 3356 ac_cv_prog_CC="$CC" # Let the user override the test. 3357else 3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3359for as_dir in $PATH 3360do 3361 IFS=$as_save_IFS 3362 test -z "$as_dir" && as_dir=. 3363 for ac_exec_ext in '' $ac_executable_extensions; do 3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3367 break 2 3368 fi 3369done 3370 done 3371IFS=$as_save_IFS 3372 3373fi 3374fi 3375CC=$ac_cv_prog_CC 3376if test -n "$CC"; then 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3378$as_echo "$CC" >&6; } 3379else 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3381$as_echo "no" >&6; } 3382fi 3383 3384 3385 test -n "$CC" && break 3386 done 3387fi 3388if test -z "$CC"; then 3389 ac_ct_CC=$CC 3390 for ac_prog in cl.exe 3391do 3392 # Extract the first word of "$ac_prog", so it can be a program name with args. 3393set dummy $ac_prog; ac_word=$2 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3395$as_echo_n "checking for $ac_word... " >&6; } 3396if ${ac_cv_prog_ac_ct_CC+:} false; then : 3397 $as_echo_n "(cached) " >&6 3398else 3399 if test -n "$ac_ct_CC"; then 3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3401else 3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3403for as_dir in $PATH 3404do 3405 IFS=$as_save_IFS 3406 test -z "$as_dir" && as_dir=. 3407 for ac_exec_ext in '' $ac_executable_extensions; do 3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3409 ac_cv_prog_ac_ct_CC="$ac_prog" 3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3411 break 2 3412 fi 3413done 3414 done 3415IFS=$as_save_IFS 3416 3417fi 3418fi 3419ac_ct_CC=$ac_cv_prog_ac_ct_CC 3420if test -n "$ac_ct_CC"; then 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3422$as_echo "$ac_ct_CC" >&6; } 3423else 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425$as_echo "no" >&6; } 3426fi 3427 3428 3429 test -n "$ac_ct_CC" && break 3430done 3431 3432 if test "x$ac_ct_CC" = x; then 3433 CC="" 3434 else 3435 case $cross_compiling:$ac_tool_warned in 3436yes:) 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3439ac_tool_warned=yes ;; 3440esac 3441 CC=$ac_ct_CC 3442 fi 3443fi 3444 3445fi 3446 3447 3448test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3450as_fn_error $? "no acceptable C compiler found in \$PATH 3451See \`config.log' for more details" "$LINENO" 5; } 3452 3453# Provide some information about the compiler. 3454$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3455set X $ac_compile 3456ac_compiler=$2 3457for ac_option in --version -v -V -qversion; do 3458 { { ac_try="$ac_compiler $ac_option >&5" 3459case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3464$as_echo "$ac_try_echo"; } >&5 3465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3466 ac_status=$? 3467 if test -s conftest.err; then 3468 sed '10a\ 3469... rest of stderr output deleted ... 3470 10q' conftest.err >conftest.er1 3471 cat conftest.er1 >&5 3472 fi 3473 rm -f conftest.er1 conftest.err 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; } 3476done 3477 3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480 3481int 3482main () 3483{ 3484 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489ac_clean_files_save=$ac_clean_files 3490ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3491# Try to create an executable without -o first, disregard a.out. 3492# It will help us diagnose broken compilers, and finding out an intuition 3493# of exeext. 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3495$as_echo_n "checking whether the C compiler works... " >&6; } 3496ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3497 3498# The possible output files: 3499ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3500 3501ac_rmfiles= 3502for ac_file in $ac_files 3503do 3504 case $ac_file in 3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3506 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3507 esac 3508done 3509rm -f $ac_rmfiles 3510 3511if { { ac_try="$ac_link_default" 3512case "(($ac_try" in 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *) ac_try_echo=$ac_try;; 3515esac 3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3517$as_echo "$ac_try_echo"; } >&5 3518 (eval "$ac_link_default") 2>&5 3519 ac_status=$? 3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3521 test $ac_status = 0; }; then : 3522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3523# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3524# in a Makefile. We should not override ac_cv_exeext if it was cached, 3525# so that the user can short-circuit this test for compilers unknown to 3526# Autoconf. 3527for ac_file in $ac_files '' 3528do 3529 test -f "$ac_file" || continue 3530 case $ac_file in 3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3532 ;; 3533 [ab].out ) 3534 # We found the default executable, but exeext='' is most 3535 # certainly right. 3536 break;; 3537 *.* ) 3538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3539 then :; else 3540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3541 fi 3542 # We set ac_cv_exeext here because the later test for it is not 3543 # safe: cross compilers may not add the suffix if given an `-o' 3544 # argument, so we may need to know it at that point already. 3545 # Even if this section looks crufty: it has the advantage of 3546 # actually working. 3547 break;; 3548 * ) 3549 break;; 3550 esac 3551done 3552test "$ac_cv_exeext" = no && ac_cv_exeext= 3553 3554else 3555 ac_file='' 3556fi 3557if test -z "$ac_file"; then : 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3559$as_echo "no" >&6; } 3560$as_echo "$as_me: failed program was:" >&5 3561sed 's/^/| /' conftest.$ac_ext >&5 3562 3563{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3565as_fn_error 77 "C compiler cannot create executables 3566See \`config.log' for more details" "$LINENO" 5; } 3567else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3569$as_echo "yes" >&6; } 3570fi 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3572$as_echo_n "checking for C compiler default output file name... " >&6; } 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3574$as_echo "$ac_file" >&6; } 3575ac_exeext=$ac_cv_exeext 3576 3577rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3578ac_clean_files=$ac_clean_files_save 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3580$as_echo_n "checking for suffix of executables... " >&6; } 3581if { { ac_try="$ac_link" 3582case "(($ac_try" in 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3584 *) ac_try_echo=$ac_try;; 3585esac 3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3587$as_echo "$ac_try_echo"; } >&5 3588 (eval "$ac_link") 2>&5 3589 ac_status=$? 3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3591 test $ac_status = 0; }; then : 3592 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3593# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3594# work properly (i.e., refer to `conftest.exe'), while it won't with 3595# `rm'. 3596for ac_file in conftest.exe conftest conftest.*; do 3597 test -f "$ac_file" || continue 3598 case $ac_file in 3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3601 break;; 3602 * ) break;; 3603 esac 3604done 3605else 3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3608as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3609See \`config.log' for more details" "$LINENO" 5; } 3610fi 3611rm -f conftest conftest$ac_cv_exeext 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3613$as_echo "$ac_cv_exeext" >&6; } 3614 3615rm -f conftest.$ac_ext 3616EXEEXT=$ac_cv_exeext 3617ac_exeext=$EXEEXT 3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#include <stdio.h> 3621int 3622main () 3623{ 3624FILE *f = fopen ("conftest.out", "w"); 3625 return ferror (f) || fclose (f) != 0; 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631ac_clean_files="$ac_clean_files conftest.out" 3632# Check that the compiler produces executables we can run. If not, either 3633# the compiler is broken, or we cross compile. 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3635$as_echo_n "checking whether we are cross compiling... " >&6; } 3636if test "$cross_compiling" != yes; then 3637 { { ac_try="$ac_link" 3638case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643$as_echo "$ac_try_echo"; } >&5 3644 (eval "$ac_link") 2>&5 3645 ac_status=$? 3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3647 test $ac_status = 0; } 3648 if { ac_try='./conftest$ac_cv_exeext' 3649 { { case "(($ac_try" in 3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3651 *) ac_try_echo=$ac_try;; 3652esac 3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3654$as_echo "$ac_try_echo"; } >&5 3655 (eval "$ac_try") 2>&5 3656 ac_status=$? 3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3658 test $ac_status = 0; }; }; then 3659 cross_compiling=no 3660 else 3661 if test "$cross_compiling" = maybe; then 3662 cross_compiling=yes 3663 else 3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3666as_fn_error $? "cannot run C compiled programs. 3667If you meant to cross compile, use \`--host'. 3668See \`config.log' for more details" "$LINENO" 5; } 3669 fi 3670 fi 3671fi 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3673$as_echo "$cross_compiling" >&6; } 3674 3675rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3676ac_clean_files=$ac_clean_files_save 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3678$as_echo_n "checking for suffix of object files... " >&6; } 3679if ${ac_cv_objext+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693rm -f conftest.o conftest.obj 3694if { { ac_try="$ac_compile" 3695case "(($ac_try" in 3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3697 *) ac_try_echo=$ac_try;; 3698esac 3699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3700$as_echo "$ac_try_echo"; } >&5 3701 (eval "$ac_compile") 2>&5 3702 ac_status=$? 3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3704 test $ac_status = 0; }; then : 3705 for ac_file in conftest.o conftest.obj conftest.*; do 3706 test -f "$ac_file" || continue; 3707 case $ac_file in 3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3710 break;; 3711 esac 3712done 3713else 3714 $as_echo "$as_me: failed program was:" >&5 3715sed 's/^/| /' conftest.$ac_ext >&5 3716 3717{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3719as_fn_error $? "cannot compute suffix of object files: cannot compile 3720See \`config.log' for more details" "$LINENO" 5; } 3721fi 3722rm -f conftest.$ac_cv_objext conftest.$ac_ext 3723fi 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3725$as_echo "$ac_cv_objext" >&6; } 3726OBJEXT=$ac_cv_objext 3727ac_objext=$OBJEXT 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3729$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3730if ${ac_cv_c_compiler_gnu+:} false; then : 3731 $as_echo_n "(cached) " >&6 3732else 3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735 3736int 3737main () 3738{ 3739#ifndef __GNUC__ 3740 choke me 3741#endif 3742 3743 ; 3744 return 0; 3745} 3746_ACEOF 3747if ac_fn_c_try_compile "$LINENO"; then : 3748 ac_compiler_gnu=yes 3749else 3750 ac_compiler_gnu=no 3751fi 3752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3753ac_cv_c_compiler_gnu=$ac_compiler_gnu 3754 3755fi 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3757$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3758if test $ac_compiler_gnu = yes; then 3759 GCC=yes 3760else 3761 GCC= 3762fi 3763ac_test_CFLAGS=${CFLAGS+set} 3764ac_save_CFLAGS=$CFLAGS 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3766$as_echo_n "checking whether $CC accepts -g... " >&6; } 3767if ${ac_cv_prog_cc_g+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 ac_save_c_werror_flag=$ac_c_werror_flag 3771 ac_c_werror_flag=yes 3772 ac_cv_prog_cc_g=no 3773 CFLAGS="-g" 3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775/* end confdefs.h. */ 3776 3777int 3778main () 3779{ 3780 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785if ac_fn_c_try_compile "$LINENO"; then : 3786 ac_cv_prog_cc_g=yes 3787else 3788 CFLAGS="" 3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3790/* end confdefs.h. */ 3791 3792int 3793main () 3794{ 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_c_try_compile "$LINENO"; then : 3801 3802else 3803 ac_c_werror_flag=$ac_save_c_werror_flag 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 3818fi 3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822fi 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3824 ac_c_werror_flag=$ac_save_c_werror_flag 3825fi 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3827$as_echo "$ac_cv_prog_cc_g" >&6; } 3828if test "$ac_test_CFLAGS" = set; then 3829 CFLAGS=$ac_save_CFLAGS 3830elif test $ac_cv_prog_cc_g = yes; then 3831 if test "$GCC" = yes; then 3832 CFLAGS="-g -O2" 3833 else 3834 CFLAGS="-g" 3835 fi 3836else 3837 if test "$GCC" = yes; then 3838 CFLAGS="-O2" 3839 else 3840 CFLAGS= 3841 fi 3842fi 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3844$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3845if ${ac_cv_prog_cc_c89+:} false; then : 3846 $as_echo_n "(cached) " >&6 3847else 3848 ac_cv_prog_cc_c89=no 3849ac_save_CC=$CC 3850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3851/* end confdefs.h. */ 3852#include <stdarg.h> 3853#include <stdio.h> 3854#include <sys/types.h> 3855#include <sys/stat.h> 3856/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3857struct buf { int x; }; 3858FILE * (*rcsopen) (struct buf *, struct stat *, int); 3859static char *e (p, i) 3860 char **p; 3861 int i; 3862{ 3863 return p[i]; 3864} 3865static char *f (char * (*g) (char **, int), char **p, ...) 3866{ 3867 char *s; 3868 va_list v; 3869 va_start (v,p); 3870 s = g (p, va_arg (v,int)); 3871 va_end (v); 3872 return s; 3873} 3874 3875/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3876 function prototypes and stuff, but not '\xHH' hex character constants. 3877 These don't provoke an error unfortunately, instead are silently treated 3878 as 'x'. The following induces an error, until -std is added to get 3879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3880 array size at least. It's necessary to write '\x00'==0 to get something 3881 that's true only with -std. */ 3882int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3883 3884/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3885 inside strings and character constants. */ 3886#define FOO(x) 'x' 3887int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3888 3889int test (int i, double x); 3890struct s1 {int (*f) (int a);}; 3891struct s2 {int (*f) (double a);}; 3892int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3893int argc; 3894char **argv; 3895int 3896main () 3897{ 3898return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3899 ; 3900 return 0; 3901} 3902_ACEOF 3903for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3905do 3906 CC="$ac_save_CC $ac_arg" 3907 if ac_fn_c_try_compile "$LINENO"; then : 3908 ac_cv_prog_cc_c89=$ac_arg 3909fi 3910rm -f core conftest.err conftest.$ac_objext 3911 test "x$ac_cv_prog_cc_c89" != "xno" && break 3912done 3913rm -f conftest.$ac_ext 3914CC=$ac_save_CC 3915 3916fi 3917# AC_CACHE_VAL 3918case "x$ac_cv_prog_cc_c89" in 3919 x) 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3921$as_echo "none needed" >&6; } ;; 3922 xno) 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3924$as_echo "unsupported" >&6; } ;; 3925 *) 3926 CC="$CC $ac_cv_prog_cc_c89" 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3928$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3929esac 3930if test "x$ac_cv_prog_cc_c89" != xno; then : 3931 3932fi 3933 3934ac_ext=c 3935ac_cpp='$CPP $CPPFLAGS' 3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3938ac_compiler_gnu=$ac_cv_c_compiler_gnu 3939 3940depcc="$CC" am_compiler_list= 3941 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3943$as_echo_n "checking dependency style of $depcc... " >&6; } 3944if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3945 $as_echo_n "(cached) " >&6 3946else 3947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3948 # We make a subdir and do the tests there. Otherwise we can end up 3949 # making bogus files that we don't know about and never remove. For 3950 # instance it was reported that on HP-UX the gcc test will end up 3951 # making a dummy file named `D' -- because `-MD' means `put the output 3952 # in D'. 3953 rm -rf conftest.dir 3954 mkdir conftest.dir 3955 # Copy depcomp to subdir because otherwise we won't find it if we're 3956 # using a relative directory. 3957 cp "$am_depcomp" conftest.dir 3958 cd conftest.dir 3959 # We will build objects and dependencies in a subdirectory because 3960 # it helps to detect inapplicable dependency modes. For instance 3961 # both Tru64's cc and ICC support -MD to output dependencies as a 3962 # side effect of compilation, but ICC will put the dependencies in 3963 # the current directory while Tru64 will put them in the object 3964 # directory. 3965 mkdir sub 3966 3967 am_cv_CC_dependencies_compiler_type=none 3968 if test "$am_compiler_list" = ""; then 3969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3970 fi 3971 am__universal=false 3972 case " $depcc " in #( 3973 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3974 esac 3975 3976 for depmode in $am_compiler_list; do 3977 # Setup a source with many dependencies, because some compilers 3978 # like to wrap large dependency lists on column 80 (with \), and 3979 # we should not choose a depcomp mode which is confused by this. 3980 # 3981 # We need to recreate these files for each test, as the compiler may 3982 # overwrite some of them when testing with obscure command lines. 3983 # This happens at least with the AIX C compiler. 3984 : > sub/conftest.c 3985 for i in 1 2 3 4 5 6; do 3986 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3988 # Solaris 8's {/usr,}/bin/sh. 3989 touch sub/conftst$i.h 3990 done 3991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3992 3993 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3994 # mode. It turns out that the SunPro C++ compiler does not properly 3995 # handle `-M -o', and we need to detect this. Also, some Intel 3996 # versions had trouble with output in subdirs 3997 am__obj=sub/conftest.${OBJEXT-o} 3998 am__minus_obj="-o $am__obj" 3999 case $depmode in 4000 gcc) 4001 # This depmode causes a compiler race in universal mode. 4002 test "$am__universal" = false || continue 4003 ;; 4004 nosideeffect) 4005 # after this tag, mechanisms are not by side-effect, so they'll 4006 # only be used when explicitly requested 4007 if test "x$enable_dependency_tracking" = xyes; then 4008 continue 4009 else 4010 break 4011 fi 4012 ;; 4013 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4014 # This compiler won't grok `-c -o', but also, the minuso test has 4015 # not run yet. These depmodes are late enough in the game, and 4016 # so weak that their functioning should not be impacted. 4017 am__obj=conftest.${OBJEXT-o} 4018 am__minus_obj= 4019 ;; 4020 none) break ;; 4021 esac 4022 if depmode=$depmode \ 4023 source=sub/conftest.c object=$am__obj \ 4024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4026 >/dev/null 2>conftest.err && 4027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4031 # icc doesn't choke on unknown options, it will just issue warnings 4032 # or remarks (even with -Werror). So we grep stderr for any message 4033 # that says an option was ignored or not supported. 4034 # When given -MP, icc 7.0 and 7.1 complain thusly: 4035 # icc: Command line warning: ignoring option '-M'; no argument required 4036 # The diagnosis changed in icc 8.0: 4037 # icc: Command line remark: option '-MP' not supported 4038 if (grep 'ignoring option' conftest.err || 4039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4040 am_cv_CC_dependencies_compiler_type=$depmode 4041 break 4042 fi 4043 fi 4044 done 4045 4046 cd .. 4047 rm -rf conftest.dir 4048else 4049 am_cv_CC_dependencies_compiler_type=none 4050fi 4051 4052fi 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4054$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4055CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4056 4057 if 4058 test "x$enable_dependency_tracking" != xno \ 4059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4060 am__fastdepCC_TRUE= 4061 am__fastdepCC_FALSE='#' 4062else 4063 am__fastdepCC_TRUE='#' 4064 am__fastdepCC_FALSE= 4065fi 4066 4067 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4069$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4070if ${ac_cv_path_SED+:} false; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4074 for ac_i in 1 2 3 4 5 6 7; do 4075 ac_script="$ac_script$as_nl$ac_script" 4076 done 4077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4078 { ac_script=; unset ac_script;} 4079 if test -z "$SED"; then 4080 ac_path_SED_found=false 4081 # Loop through the user's path and test for each of PROGNAME-LIST 4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4083for as_dir in $PATH 4084do 4085 IFS=$as_save_IFS 4086 test -z "$as_dir" && as_dir=. 4087 for ac_prog in sed gsed; do 4088 for ac_exec_ext in '' $ac_executable_extensions; do 4089 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4090 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4091# Check for GNU ac_path_SED and select it if it is found. 4092 # Check for GNU $ac_path_SED 4093case `"$ac_path_SED" --version 2>&1` in 4094*GNU*) 4095 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4096*) 4097 ac_count=0 4098 $as_echo_n 0123456789 >"conftest.in" 4099 while : 4100 do 4101 cat "conftest.in" "conftest.in" >"conftest.tmp" 4102 mv "conftest.tmp" "conftest.in" 4103 cp "conftest.in" "conftest.nl" 4104 $as_echo '' >> "conftest.nl" 4105 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4107 as_fn_arith $ac_count + 1 && ac_count=$as_val 4108 if test $ac_count -gt ${ac_path_SED_max-0}; then 4109 # Best one so far, save it but keep looking for a better one 4110 ac_cv_path_SED="$ac_path_SED" 4111 ac_path_SED_max=$ac_count 4112 fi 4113 # 10*(2^10) chars as input seems more than enough 4114 test $ac_count -gt 10 && break 4115 done 4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4117esac 4118 4119 $ac_path_SED_found && break 3 4120 done 4121 done 4122 done 4123IFS=$as_save_IFS 4124 if test -z "$ac_cv_path_SED"; then 4125 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4126 fi 4127else 4128 ac_cv_path_SED=$SED 4129fi 4130 4131fi 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4133$as_echo "$ac_cv_path_SED" >&6; } 4134 SED="$ac_cv_path_SED" 4135 rm -f conftest.sed 4136 4137test -z "$SED" && SED=sed 4138Xsed="$SED -e 1s/^X//" 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4151$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4152if ${ac_cv_path_GREP+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154else 4155 if test -z "$GREP"; then 4156 ac_path_GREP_found=false 4157 # Loop through the user's path and test for each of PROGNAME-LIST 4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4160do 4161 IFS=$as_save_IFS 4162 test -z "$as_dir" && as_dir=. 4163 for ac_prog in grep ggrep; do 4164 for ac_exec_ext in '' $ac_executable_extensions; do 4165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4166 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4167# Check for GNU ac_path_GREP and select it if it is found. 4168 # Check for GNU $ac_path_GREP 4169case `"$ac_path_GREP" --version 2>&1` in 4170*GNU*) 4171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4172*) 4173 ac_count=0 4174 $as_echo_n 0123456789 >"conftest.in" 4175 while : 4176 do 4177 cat "conftest.in" "conftest.in" >"conftest.tmp" 4178 mv "conftest.tmp" "conftest.in" 4179 cp "conftest.in" "conftest.nl" 4180 $as_echo 'GREP' >> "conftest.nl" 4181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4183 as_fn_arith $ac_count + 1 && ac_count=$as_val 4184 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4185 # Best one so far, save it but keep looking for a better one 4186 ac_cv_path_GREP="$ac_path_GREP" 4187 ac_path_GREP_max=$ac_count 4188 fi 4189 # 10*(2^10) chars as input seems more than enough 4190 test $ac_count -gt 10 && break 4191 done 4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4193esac 4194 4195 $ac_path_GREP_found && break 3 4196 done 4197 done 4198 done 4199IFS=$as_save_IFS 4200 if test -z "$ac_cv_path_GREP"; then 4201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4202 fi 4203else 4204 ac_cv_path_GREP=$GREP 4205fi 4206 4207fi 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4209$as_echo "$ac_cv_path_GREP" >&6; } 4210 GREP="$ac_cv_path_GREP" 4211 4212 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4214$as_echo_n "checking for egrep... " >&6; } 4215if ${ac_cv_path_EGREP+:} false; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4219 then ac_cv_path_EGREP="$GREP -E" 4220 else 4221 if test -z "$EGREP"; then 4222 ac_path_EGREP_found=false 4223 # Loop through the user's path and test for each of PROGNAME-LIST 4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4226do 4227 IFS=$as_save_IFS 4228 test -z "$as_dir" && as_dir=. 4229 for ac_prog in egrep; do 4230 for ac_exec_ext in '' $ac_executable_extensions; do 4231 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4232 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4233# Check for GNU ac_path_EGREP and select it if it is found. 4234 # Check for GNU $ac_path_EGREP 4235case `"$ac_path_EGREP" --version 2>&1` in 4236*GNU*) 4237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4238*) 4239 ac_count=0 4240 $as_echo_n 0123456789 >"conftest.in" 4241 while : 4242 do 4243 cat "conftest.in" "conftest.in" >"conftest.tmp" 4244 mv "conftest.tmp" "conftest.in" 4245 cp "conftest.in" "conftest.nl" 4246 $as_echo 'EGREP' >> "conftest.nl" 4247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4249 as_fn_arith $ac_count + 1 && ac_count=$as_val 4250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4251 # Best one so far, save it but keep looking for a better one 4252 ac_cv_path_EGREP="$ac_path_EGREP" 4253 ac_path_EGREP_max=$ac_count 4254 fi 4255 # 10*(2^10) chars as input seems more than enough 4256 test $ac_count -gt 10 && break 4257 done 4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4259esac 4260 4261 $ac_path_EGREP_found && break 3 4262 done 4263 done 4264 done 4265IFS=$as_save_IFS 4266 if test -z "$ac_cv_path_EGREP"; then 4267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4268 fi 4269else 4270 ac_cv_path_EGREP=$EGREP 4271fi 4272 4273 fi 4274fi 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4276$as_echo "$ac_cv_path_EGREP" >&6; } 4277 EGREP="$ac_cv_path_EGREP" 4278 4279 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4281$as_echo_n "checking for fgrep... " >&6; } 4282if ${ac_cv_path_FGREP+:} false; then : 4283 $as_echo_n "(cached) " >&6 4284else 4285 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4286 then ac_cv_path_FGREP="$GREP -F" 4287 else 4288 if test -z "$FGREP"; then 4289 ac_path_FGREP_found=false 4290 # Loop through the user's path and test for each of PROGNAME-LIST 4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4293do 4294 IFS=$as_save_IFS 4295 test -z "$as_dir" && as_dir=. 4296 for ac_prog in fgrep; do 4297 for ac_exec_ext in '' $ac_executable_extensions; do 4298 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4299 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4300# Check for GNU ac_path_FGREP and select it if it is found. 4301 # Check for GNU $ac_path_FGREP 4302case `"$ac_path_FGREP" --version 2>&1` in 4303*GNU*) 4304 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4305*) 4306 ac_count=0 4307 $as_echo_n 0123456789 >"conftest.in" 4308 while : 4309 do 4310 cat "conftest.in" "conftest.in" >"conftest.tmp" 4311 mv "conftest.tmp" "conftest.in" 4312 cp "conftest.in" "conftest.nl" 4313 $as_echo 'FGREP' >> "conftest.nl" 4314 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4316 as_fn_arith $ac_count + 1 && ac_count=$as_val 4317 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4318 # Best one so far, save it but keep looking for a better one 4319 ac_cv_path_FGREP="$ac_path_FGREP" 4320 ac_path_FGREP_max=$ac_count 4321 fi 4322 # 10*(2^10) chars as input seems more than enough 4323 test $ac_count -gt 10 && break 4324 done 4325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4326esac 4327 4328 $ac_path_FGREP_found && break 3 4329 done 4330 done 4331 done 4332IFS=$as_save_IFS 4333 if test -z "$ac_cv_path_FGREP"; then 4334 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4335 fi 4336else 4337 ac_cv_path_FGREP=$FGREP 4338fi 4339 4340 fi 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4343$as_echo "$ac_cv_path_FGREP" >&6; } 4344 FGREP="$ac_cv_path_FGREP" 4345 4346 4347test -z "$GREP" && GREP=grep 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367# Check whether --with-gnu-ld was given. 4368if test "${with_gnu_ld+set}" = set; then : 4369 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4370else 4371 with_gnu_ld=no 4372fi 4373 4374ac_prog=ld 4375if test "$GCC" = yes; then 4376 # Check if gcc -print-prog-name=ld gives a path. 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4378$as_echo_n "checking for ld used by $CC... " >&6; } 4379 case $host in 4380 *-*-mingw*) 4381 # gcc leaves a trailing carriage return which upsets mingw 4382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4383 *) 4384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4385 esac 4386 case $ac_prog in 4387 # Accept absolute paths. 4388 [\\/]* | ?:[\\/]*) 4389 re_direlt='/[^/][^/]*/\.\./' 4390 # Canonicalize the pathname of ld 4391 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4392 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4393 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4394 done 4395 test -z "$LD" && LD="$ac_prog" 4396 ;; 4397 "") 4398 # If it fails, then pretend we aren't using GCC. 4399 ac_prog=ld 4400 ;; 4401 *) 4402 # If it is relative, then search for the first ld in PATH. 4403 with_gnu_ld=unknown 4404 ;; 4405 esac 4406elif test "$with_gnu_ld" = yes; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4408$as_echo_n "checking for GNU ld... " >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4411$as_echo_n "checking for non-GNU ld... " >&6; } 4412fi 4413if ${lt_cv_path_LD+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 if test -z "$LD"; then 4417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4418 for ac_dir in $PATH; do 4419 IFS="$lt_save_ifs" 4420 test -z "$ac_dir" && ac_dir=. 4421 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4422 lt_cv_path_LD="$ac_dir/$ac_prog" 4423 # Check to see if the program is GNU ld. I'd rather use --version, 4424 # but apparently some variants of GNU ld only accept -v. 4425 # Break only if it was the GNU/non-GNU ld that we prefer. 4426 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4427 *GNU* | *'with BFD'*) 4428 test "$with_gnu_ld" != no && break 4429 ;; 4430 *) 4431 test "$with_gnu_ld" != yes && break 4432 ;; 4433 esac 4434 fi 4435 done 4436 IFS="$lt_save_ifs" 4437else 4438 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4439fi 4440fi 4441 4442LD="$lt_cv_path_LD" 4443if test -n "$LD"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4445$as_echo "$LD" >&6; } 4446else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448$as_echo "no" >&6; } 4449fi 4450test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4452$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4453if ${lt_cv_prog_gnu_ld+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4457case `$LD -v 2>&1 </dev/null` in 4458*GNU* | *'with BFD'*) 4459 lt_cv_prog_gnu_ld=yes 4460 ;; 4461*) 4462 lt_cv_prog_gnu_ld=no 4463 ;; 4464esac 4465fi 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4467$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4468with_gnu_ld=$lt_cv_prog_gnu_ld 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4479$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4480if ${lt_cv_path_NM+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482else 4483 if test -n "$NM"; then 4484 # Let the user override the test. 4485 lt_cv_path_NM="$NM" 4486else 4487 lt_nm_to_check="${ac_tool_prefix}nm" 4488 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4489 lt_nm_to_check="$lt_nm_to_check nm" 4490 fi 4491 for lt_tmp_nm in $lt_nm_to_check; do 4492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4493 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4494 IFS="$lt_save_ifs" 4495 test -z "$ac_dir" && ac_dir=. 4496 tmp_nm="$ac_dir/$lt_tmp_nm" 4497 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4498 # Check to see if the nm accepts a BSD-compat flag. 4499 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4500 # nm: unknown option "B" ignored 4501 # Tru64's nm complains that /dev/null is an invalid object file 4502 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4503 */dev/null* | *'Invalid file or object type'*) 4504 lt_cv_path_NM="$tmp_nm -B" 4505 break 4506 ;; 4507 *) 4508 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4509 */dev/null*) 4510 lt_cv_path_NM="$tmp_nm -p" 4511 break 4512 ;; 4513 *) 4514 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4515 continue # so that we can try to find one that supports BSD flags 4516 ;; 4517 esac 4518 ;; 4519 esac 4520 fi 4521 done 4522 IFS="$lt_save_ifs" 4523 done 4524 : ${lt_cv_path_NM=no} 4525fi 4526fi 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4528$as_echo "$lt_cv_path_NM" >&6; } 4529if test "$lt_cv_path_NM" != "no"; then 4530 NM="$lt_cv_path_NM" 4531else 4532 # Didn't find any BSD compatible name lister, look for dumpbin. 4533 if test -n "$DUMPBIN"; then : 4534 # Let the user override the test. 4535 else 4536 if test -n "$ac_tool_prefix"; then 4537 for ac_prog in dumpbin "link -dump" 4538 do 4539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4540set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4542$as_echo_n "checking for $ac_word... " >&6; } 4543if ${ac_cv_prog_DUMPBIN+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if test -n "$DUMPBIN"; then 4547 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4548else 4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550for as_dir in $PATH 4551do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4556 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560done 4561 done 4562IFS=$as_save_IFS 4563 4564fi 4565fi 4566DUMPBIN=$ac_cv_prog_DUMPBIN 4567if test -n "$DUMPBIN"; then 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4569$as_echo "$DUMPBIN" >&6; } 4570else 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573fi 4574 4575 4576 test -n "$DUMPBIN" && break 4577 done 4578fi 4579if test -z "$DUMPBIN"; then 4580 ac_ct_DUMPBIN=$DUMPBIN 4581 for ac_prog in dumpbin "link -dump" 4582do 4583 # Extract the first word of "$ac_prog", so it can be a program name with args. 4584set dummy $ac_prog; ac_word=$2 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586$as_echo_n "checking for $ac_word... " >&6; } 4587if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 if test -n "$ac_ct_DUMPBIN"; then 4591 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4592else 4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_exec_ext in '' $ac_executable_extensions; do 4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4600 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4602 break 2 4603 fi 4604done 4605 done 4606IFS=$as_save_IFS 4607 4608fi 4609fi 4610ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4611if test -n "$ac_ct_DUMPBIN"; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4613$as_echo "$ac_ct_DUMPBIN" >&6; } 4614else 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4616$as_echo "no" >&6; } 4617fi 4618 4619 4620 test -n "$ac_ct_DUMPBIN" && break 4621done 4622 4623 if test "x$ac_ct_DUMPBIN" = x; then 4624 DUMPBIN=":" 4625 else 4626 case $cross_compiling:$ac_tool_warned in 4627yes:) 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4630ac_tool_warned=yes ;; 4631esac 4632 DUMPBIN=$ac_ct_DUMPBIN 4633 fi 4634fi 4635 4636 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4637 *COFF*) 4638 DUMPBIN="$DUMPBIN -symbols" 4639 ;; 4640 *) 4641 DUMPBIN=: 4642 ;; 4643 esac 4644 fi 4645 4646 if test "$DUMPBIN" != ":"; then 4647 NM="$DUMPBIN" 4648 fi 4649fi 4650test -z "$NM" && NM=nm 4651 4652 4653 4654 4655 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4658$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4659if ${lt_cv_nm_interface+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 lt_cv_nm_interface="BSD nm" 4663 echo "int some_variable = 0;" > conftest.$ac_ext 4664 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4665 (eval "$ac_compile" 2>conftest.err) 4666 cat conftest.err >&5 4667 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4668 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4669 cat conftest.err >&5 4670 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4671 cat conftest.out >&5 4672 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4673 lt_cv_nm_interface="MS dumpbin" 4674 fi 4675 rm -f conftest* 4676fi 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4678$as_echo "$lt_cv_nm_interface" >&6; } 4679 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4681$as_echo_n "checking whether ln -s works... " >&6; } 4682LN_S=$as_ln_s 4683if test "$LN_S" = "ln -s"; then 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4685$as_echo "yes" >&6; } 4686else 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4688$as_echo "no, using $LN_S" >&6; } 4689fi 4690 4691# find the maximum length of command line arguments 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4693$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4694if ${lt_cv_sys_max_cmd_len+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 i=0 4698 teststring="ABCD" 4699 4700 case $build_os in 4701 msdosdjgpp*) 4702 # On DJGPP, this test can blow up pretty badly due to problems in libc 4703 # (any single argument exceeding 2000 bytes causes a buffer overrun 4704 # during glob expansion). Even if it were fixed, the result of this 4705 # check would be larger than it should be. 4706 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4707 ;; 4708 4709 gnu*) 4710 # Under GNU Hurd, this test is not required because there is 4711 # no limit to the length of command line arguments. 4712 # Libtool will interpret -1 as no limit whatsoever 4713 lt_cv_sys_max_cmd_len=-1; 4714 ;; 4715 4716 cygwin* | mingw* | cegcc*) 4717 # On Win9x/ME, this test blows up -- it succeeds, but takes 4718 # about 5 minutes as the teststring grows exponentially. 4719 # Worse, since 9x/ME are not pre-emptively multitasking, 4720 # you end up with a "frozen" computer, even though with patience 4721 # the test eventually succeeds (with a max line length of 256k). 4722 # Instead, let's just punt: use the minimum linelength reported by 4723 # all of the supported platforms: 8192 (on NT/2K/XP). 4724 lt_cv_sys_max_cmd_len=8192; 4725 ;; 4726 4727 mint*) 4728 # On MiNT this can take a long time and run out of memory. 4729 lt_cv_sys_max_cmd_len=8192; 4730 ;; 4731 4732 amigaos*) 4733 # On AmigaOS with pdksh, this test takes hours, literally. 4734 # So we just punt and use a minimum line length of 8192. 4735 lt_cv_sys_max_cmd_len=8192; 4736 ;; 4737 4738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4739 # This has been around since 386BSD, at least. Likely further. 4740 if test -x /sbin/sysctl; then 4741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4742 elif test -x /usr/sbin/sysctl; then 4743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4744 else 4745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4746 fi 4747 # And add a safety zone 4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4750 ;; 4751 4752 interix*) 4753 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4754 lt_cv_sys_max_cmd_len=196608 4755 ;; 4756 4757 os2*) 4758 # The test takes a long time on OS/2. 4759 lt_cv_sys_max_cmd_len=8192 4760 ;; 4761 4762 osf*) 4763 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4764 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4765 # nice to cause kernel panics so lets avoid the loop below. 4766 # First set a reasonable default. 4767 lt_cv_sys_max_cmd_len=16384 4768 # 4769 if test -x /sbin/sysconfig; then 4770 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4771 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4772 esac 4773 fi 4774 ;; 4775 sco3.2v5*) 4776 lt_cv_sys_max_cmd_len=102400 4777 ;; 4778 sysv5* | sco5v6* | sysv4.2uw2*) 4779 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4780 if test -n "$kargmax"; then 4781 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4782 else 4783 lt_cv_sys_max_cmd_len=32768 4784 fi 4785 ;; 4786 *) 4787 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4788 if test -n "$lt_cv_sys_max_cmd_len"; then 4789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4791 else 4792 # Make teststring a little bigger before we do anything with it. 4793 # a 1K string should be a reasonable start. 4794 for i in 1 2 3 4 5 6 7 8 ; do 4795 teststring=$teststring$teststring 4796 done 4797 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4798 # If test is not a shell built-in, we'll probably end up computing a 4799 # maximum length that is only half of the actual maximum length, but 4800 # we can't tell. 4801 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4802 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4803 test $i != 17 # 1/2 MB should be enough 4804 do 4805 i=`expr $i + 1` 4806 teststring=$teststring$teststring 4807 done 4808 # Only check the string length outside the loop. 4809 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4810 teststring= 4811 # Add a significant safety factor because C++ compilers can tack on 4812 # massive amounts of additional arguments before passing them to the 4813 # linker. It appears as though 1/2 is a usable value. 4814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4815 fi 4816 ;; 4817 esac 4818 4819fi 4820 4821if test -n $lt_cv_sys_max_cmd_len ; then 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4823$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4824else 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4826$as_echo "none" >&6; } 4827fi 4828max_cmd_len=$lt_cv_sys_max_cmd_len 4829 4830 4831 4832 4833 4834 4835: ${CP="cp -f"} 4836: ${MV="mv -f"} 4837: ${RM="rm -f"} 4838 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4840$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4841# Try some XSI features 4842xsi_shell=no 4843( _lt_dummy="a/b/c" 4844 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4845 = c,a/b,b/c, \ 4846 && eval 'test $(( 1 + 1 )) -eq 2 \ 4847 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4848 && xsi_shell=yes 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4850$as_echo "$xsi_shell" >&6; } 4851 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4854$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4855lt_shell_append=no 4856( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4857 >/dev/null 2>&1 \ 4858 && lt_shell_append=yes 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4860$as_echo "$lt_shell_append" >&6; } 4861 4862 4863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4864 lt_unset=unset 4865else 4866 lt_unset=false 4867fi 4868 4869 4870 4871 4872 4873# test EBCDIC or ASCII 4874case `echo X|tr X '\101'` in 4875 A) # ASCII based system 4876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4877 lt_SP2NL='tr \040 \012' 4878 lt_NL2SP='tr \015\012 \040\040' 4879 ;; 4880 *) # EBCDIC based system 4881 lt_SP2NL='tr \100 \n' 4882 lt_NL2SP='tr \r\n \100\100' 4883 ;; 4884esac 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4895$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4896if ${lt_cv_to_host_file_cmd+:} false; then : 4897 $as_echo_n "(cached) " >&6 4898else 4899 case $host in 4900 *-*-mingw* ) 4901 case $build in 4902 *-*-mingw* ) # actually msys 4903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4904 ;; 4905 *-*-cygwin* ) 4906 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4907 ;; 4908 * ) # otherwise, assume *nix 4909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4910 ;; 4911 esac 4912 ;; 4913 *-*-cygwin* ) 4914 case $build in 4915 *-*-mingw* ) # actually msys 4916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4917 ;; 4918 *-*-cygwin* ) 4919 lt_cv_to_host_file_cmd=func_convert_file_noop 4920 ;; 4921 * ) # otherwise, assume *nix 4922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4923 ;; 4924 esac 4925 ;; 4926 * ) # unhandled hosts (and "normal" native builds) 4927 lt_cv_to_host_file_cmd=func_convert_file_noop 4928 ;; 4929esac 4930 4931fi 4932 4933to_host_file_cmd=$lt_cv_to_host_file_cmd 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4935$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4936 4937 4938 4939 4940 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4942$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4943if ${lt_cv_to_tool_file_cmd+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 #assume ordinary cross tools, or native build. 4947lt_cv_to_tool_file_cmd=func_convert_file_noop 4948case $host in 4949 *-*-mingw* ) 4950 case $build in 4951 *-*-mingw* ) # actually msys 4952 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4953 ;; 4954 esac 4955 ;; 4956esac 4957 4958fi 4959 4960to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4962$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4963 4964 4965 4966 4967 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4969$as_echo_n "checking for $LD option to reload object files... " >&6; } 4970if ${lt_cv_ld_reload_flag+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 lt_cv_ld_reload_flag='-r' 4974fi 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4976$as_echo "$lt_cv_ld_reload_flag" >&6; } 4977reload_flag=$lt_cv_ld_reload_flag 4978case $reload_flag in 4979"" | " "*) ;; 4980*) reload_flag=" $reload_flag" ;; 4981esac 4982reload_cmds='$LD$reload_flag -o $output$reload_objs' 4983case $host_os in 4984 cygwin* | mingw* | pw32* | cegcc*) 4985 if test "$GCC" != yes; then 4986 reload_cmds=false 4987 fi 4988 ;; 4989 darwin*) 4990 if test "$GCC" = yes; then 4991 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4992 else 4993 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4994 fi 4995 ;; 4996esac 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006if test -n "$ac_tool_prefix"; then 5007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5008set dummy ${ac_tool_prefix}objdump; ac_word=$2 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5010$as_echo_n "checking for $ac_word... " >&6; } 5011if ${ac_cv_prog_OBJDUMP+:} false; then : 5012 $as_echo_n "(cached) " >&6 5013else 5014 if test -n "$OBJDUMP"; then 5015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5016else 5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH 5019do 5020 IFS=$as_save_IFS 5021 test -z "$as_dir" && as_dir=. 5022 for ac_exec_ext in '' $ac_executable_extensions; do 5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5026 break 2 5027 fi 5028done 5029 done 5030IFS=$as_save_IFS 5031 5032fi 5033fi 5034OBJDUMP=$ac_cv_prog_OBJDUMP 5035if test -n "$OBJDUMP"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5037$as_echo "$OBJDUMP" >&6; } 5038else 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5040$as_echo "no" >&6; } 5041fi 5042 5043 5044fi 5045if test -z "$ac_cv_prog_OBJDUMP"; then 5046 ac_ct_OBJDUMP=$OBJDUMP 5047 # Extract the first word of "objdump", so it can be a program name with args. 5048set dummy objdump; ac_word=$2 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5050$as_echo_n "checking for $ac_word... " >&6; } 5051if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5052 $as_echo_n "(cached) " >&6 5053else 5054 if test -n "$ac_ct_OBJDUMP"; then 5055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5056else 5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5058for as_dir in $PATH 5059do 5060 IFS=$as_save_IFS 5061 test -z "$as_dir" && as_dir=. 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5064 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5066 break 2 5067 fi 5068done 5069 done 5070IFS=$as_save_IFS 5071 5072fi 5073fi 5074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5075if test -n "$ac_ct_OBJDUMP"; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5077$as_echo "$ac_ct_OBJDUMP" >&6; } 5078else 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5080$as_echo "no" >&6; } 5081fi 5082 5083 if test "x$ac_ct_OBJDUMP" = x; then 5084 OBJDUMP="false" 5085 else 5086 case $cross_compiling:$ac_tool_warned in 5087yes:) 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5090ac_tool_warned=yes ;; 5091esac 5092 OBJDUMP=$ac_ct_OBJDUMP 5093 fi 5094else 5095 OBJDUMP="$ac_cv_prog_OBJDUMP" 5096fi 5097 5098test -z "$OBJDUMP" && OBJDUMP=objdump 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5109$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5110if ${lt_cv_deplibs_check_method+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 lt_cv_file_magic_cmd='$MAGIC_CMD' 5114lt_cv_file_magic_test_file= 5115lt_cv_deplibs_check_method='unknown' 5116# Need to set the preceding variable on all platforms that support 5117# interlibrary dependencies. 5118# 'none' -- dependencies not supported. 5119# `unknown' -- same as none, but documents that we really don't know. 5120# 'pass_all' -- all dependencies passed with no checks. 5121# 'test_compile' -- check by making test program. 5122# 'file_magic [[regex]]' -- check by looking for files in library path 5123# which responds to the $file_magic_cmd with a given extended regex. 5124# If you have `file' or equivalent on your system and you're not sure 5125# whether `pass_all' will *always* work, you probably want this one. 5126 5127case $host_os in 5128aix[4-9]*) 5129 lt_cv_deplibs_check_method=pass_all 5130 ;; 5131 5132beos*) 5133 lt_cv_deplibs_check_method=pass_all 5134 ;; 5135 5136bsdi[45]*) 5137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5138 lt_cv_file_magic_cmd='/usr/bin/file -L' 5139 lt_cv_file_magic_test_file=/shlib/libc.so 5140 ;; 5141 5142cygwin*) 5143 # func_win32_libid is a shell function defined in ltmain.sh 5144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5145 lt_cv_file_magic_cmd='func_win32_libid' 5146 ;; 5147 5148mingw* | pw32*) 5149 # Base MSYS/MinGW do not provide the 'file' command needed by 5150 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5151 # unless we find 'file', for example because we are cross-compiling. 5152 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5153 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5155 lt_cv_file_magic_cmd='func_win32_libid' 5156 else 5157 # Keep this pattern in sync with the one in func_win32_libid. 5158 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5159 lt_cv_file_magic_cmd='$OBJDUMP -f' 5160 fi 5161 ;; 5162 5163cegcc*) 5164 # use the weaker test based on 'objdump'. See mingw*. 5165 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5166 lt_cv_file_magic_cmd='$OBJDUMP -f' 5167 ;; 5168 5169darwin* | rhapsody*) 5170 lt_cv_deplibs_check_method=pass_all 5171 ;; 5172 5173freebsd* | dragonfly*) 5174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5175 case $host_cpu in 5176 i*86 ) 5177 # Not sure whether the presence of OpenBSD here was a mistake. 5178 # Let's accept both of them until this is cleared up. 5179 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5180 lt_cv_file_magic_cmd=/usr/bin/file 5181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5182 ;; 5183 esac 5184 else 5185 lt_cv_deplibs_check_method=pass_all 5186 fi 5187 ;; 5188 5189gnu*) 5190 lt_cv_deplibs_check_method=pass_all 5191 ;; 5192 5193haiku*) 5194 lt_cv_deplibs_check_method=pass_all 5195 ;; 5196 5197hpux10.20* | hpux11*) 5198 lt_cv_file_magic_cmd=/usr/bin/file 5199 case $host_cpu in 5200 ia64*) 5201 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5202 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5203 ;; 5204 hppa*64*) 5205 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]' 5206 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5207 ;; 5208 *) 5209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5210 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5211 ;; 5212 esac 5213 ;; 5214 5215interix[3-9]*) 5216 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5218 ;; 5219 5220irix5* | irix6* | nonstopux*) 5221 case $LD in 5222 *-32|*"-32 ") libmagic=32-bit;; 5223 *-n32|*"-n32 ") libmagic=N32;; 5224 *-64|*"-64 ") libmagic=64-bit;; 5225 *) libmagic=never-match;; 5226 esac 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 5230# This must be glibc/ELF. 5231linux* | k*bsd*-gnu | kopensolaris*-gnu) 5232 lt_cv_deplibs_check_method=pass_all 5233 ;; 5234 5235netbsd*) 5236 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5238 else 5239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5240 fi 5241 ;; 5242 5243newos6*) 5244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5245 lt_cv_file_magic_cmd=/usr/bin/file 5246 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5247 ;; 5248 5249*nto* | *qnx*) 5250 lt_cv_deplibs_check_method=pass_all 5251 ;; 5252 5253openbsd*) 5254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5256 else 5257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5258 fi 5259 ;; 5260 5261osf3* | osf4* | osf5*) 5262 lt_cv_deplibs_check_method=pass_all 5263 ;; 5264 5265rdos*) 5266 lt_cv_deplibs_check_method=pass_all 5267 ;; 5268 5269solaris*) 5270 lt_cv_deplibs_check_method=pass_all 5271 ;; 5272 5273sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5274 lt_cv_deplibs_check_method=pass_all 5275 ;; 5276 5277sysv4 | sysv4.3*) 5278 case $host_vendor in 5279 motorola) 5280 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]' 5281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5282 ;; 5283 ncr) 5284 lt_cv_deplibs_check_method=pass_all 5285 ;; 5286 sequent) 5287 lt_cv_file_magic_cmd='/bin/file' 5288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5289 ;; 5290 sni) 5291 lt_cv_file_magic_cmd='/bin/file' 5292 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5293 lt_cv_file_magic_test_file=/lib/libc.so 5294 ;; 5295 siemens) 5296 lt_cv_deplibs_check_method=pass_all 5297 ;; 5298 pc) 5299 lt_cv_deplibs_check_method=pass_all 5300 ;; 5301 esac 5302 ;; 5303 5304tpf*) 5305 lt_cv_deplibs_check_method=pass_all 5306 ;; 5307esac 5308 5309fi 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5311$as_echo "$lt_cv_deplibs_check_method" >&6; } 5312 5313file_magic_glob= 5314want_nocaseglob=no 5315if test "$build" = "$host"; then 5316 case $host_os in 5317 mingw* | pw32*) 5318 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5319 want_nocaseglob=yes 5320 else 5321 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5322 fi 5323 ;; 5324 esac 5325fi 5326 5327file_magic_cmd=$lt_cv_file_magic_cmd 5328deplibs_check_method=$lt_cv_deplibs_check_method 5329test -z "$deplibs_check_method" && deplibs_check_method=unknown 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352if test -n "$ac_tool_prefix"; then 5353 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5354set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5356$as_echo_n "checking for $ac_word... " >&6; } 5357if ${ac_cv_prog_DLLTOOL+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 if test -n "$DLLTOOL"; then 5361 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5362else 5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5364for as_dir in $PATH 5365do 5366 IFS=$as_save_IFS 5367 test -z "$as_dir" && as_dir=. 5368 for ac_exec_ext in '' $ac_executable_extensions; do 5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5370 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5372 break 2 5373 fi 5374done 5375 done 5376IFS=$as_save_IFS 5377 5378fi 5379fi 5380DLLTOOL=$ac_cv_prog_DLLTOOL 5381if test -n "$DLLTOOL"; then 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5383$as_echo "$DLLTOOL" >&6; } 5384else 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5386$as_echo "no" >&6; } 5387fi 5388 5389 5390fi 5391if test -z "$ac_cv_prog_DLLTOOL"; then 5392 ac_ct_DLLTOOL=$DLLTOOL 5393 # Extract the first word of "dlltool", so it can be a program name with args. 5394set dummy dlltool; ac_word=$2 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5396$as_echo_n "checking for $ac_word... " >&6; } 5397if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5398 $as_echo_n "(cached) " >&6 5399else 5400 if test -n "$ac_ct_DLLTOOL"; then 5401 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5402else 5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5404for as_dir in $PATH 5405do 5406 IFS=$as_save_IFS 5407 test -z "$as_dir" && as_dir=. 5408 for ac_exec_ext in '' $ac_executable_extensions; do 5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5410 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5412 break 2 5413 fi 5414done 5415 done 5416IFS=$as_save_IFS 5417 5418fi 5419fi 5420ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5421if test -n "$ac_ct_DLLTOOL"; then 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5423$as_echo "$ac_ct_DLLTOOL" >&6; } 5424else 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5426$as_echo "no" >&6; } 5427fi 5428 5429 if test "x$ac_ct_DLLTOOL" = x; then 5430 DLLTOOL="false" 5431 else 5432 case $cross_compiling:$ac_tool_warned in 5433yes:) 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5436ac_tool_warned=yes ;; 5437esac 5438 DLLTOOL=$ac_ct_DLLTOOL 5439 fi 5440else 5441 DLLTOOL="$ac_cv_prog_DLLTOOL" 5442fi 5443 5444test -z "$DLLTOOL" && DLLTOOL=dlltool 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5456$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5457if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 lt_cv_sharedlib_from_linklib_cmd='unknown' 5461 5462case $host_os in 5463cygwin* | mingw* | pw32* | cegcc*) 5464 # two different shell functions defined in ltmain.sh 5465 # decide which to use based on capabilities of $DLLTOOL 5466 case `$DLLTOOL --help 2>&1` in 5467 *--identify-strict*) 5468 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5469 ;; 5470 *) 5471 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5472 ;; 5473 esac 5474 ;; 5475*) 5476 # fallback: assume linklib IS sharedlib 5477 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5478 ;; 5479esac 5480 5481fi 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5483$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5484sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5485test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5486 5487 5488 5489 5490 5491 5492 5493 5494if test -n "$ac_tool_prefix"; then 5495 for ac_prog in ar 5496 do 5497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5498set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5500$as_echo_n "checking for $ac_word... " >&6; } 5501if ${ac_cv_prog_AR+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 if test -n "$AR"; then 5505 ac_cv_prog_AR="$AR" # Let the user override the test. 5506else 5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508for as_dir in $PATH 5509do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5514 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518done 5519 done 5520IFS=$as_save_IFS 5521 5522fi 5523fi 5524AR=$ac_cv_prog_AR 5525if test -n "$AR"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5527$as_echo "$AR" >&6; } 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531fi 5532 5533 5534 test -n "$AR" && break 5535 done 5536fi 5537if test -z "$AR"; then 5538 ac_ct_AR=$AR 5539 for ac_prog in ar 5540do 5541 # Extract the first word of "$ac_prog", so it can be a program name with args. 5542set dummy $ac_prog; ac_word=$2 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5544$as_echo_n "checking for $ac_word... " >&6; } 5545if ${ac_cv_prog_ac_ct_AR+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547else 5548 if test -n "$ac_ct_AR"; then 5549 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5550else 5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5552for as_dir in $PATH 5553do 5554 IFS=$as_save_IFS 5555 test -z "$as_dir" && as_dir=. 5556 for ac_exec_ext in '' $ac_executable_extensions; do 5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5558 ac_cv_prog_ac_ct_AR="$ac_prog" 5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5560 break 2 5561 fi 5562done 5563 done 5564IFS=$as_save_IFS 5565 5566fi 5567fi 5568ac_ct_AR=$ac_cv_prog_ac_ct_AR 5569if test -n "$ac_ct_AR"; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5571$as_echo "$ac_ct_AR" >&6; } 5572else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574$as_echo "no" >&6; } 5575fi 5576 5577 5578 test -n "$ac_ct_AR" && break 5579done 5580 5581 if test "x$ac_ct_AR" = x; then 5582 AR="false" 5583 else 5584 case $cross_compiling:$ac_tool_warned in 5585yes:) 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5588ac_tool_warned=yes ;; 5589esac 5590 AR=$ac_ct_AR 5591 fi 5592fi 5593 5594: ${AR=ar} 5595: ${AR_FLAGS=cru} 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5608$as_echo_n "checking for archiver @FILE support... " >&6; } 5609if ${lt_cv_ar_at_file+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 lt_cv_ar_at_file=no 5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5614/* end confdefs.h. */ 5615 5616int 5617main () 5618{ 5619 5620 ; 5621 return 0; 5622} 5623_ACEOF 5624if ac_fn_c_try_compile "$LINENO"; then : 5625 echo conftest.$ac_objext > conftest.lst 5626 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5628 (eval $lt_ar_try) 2>&5 5629 ac_status=$? 5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5631 test $ac_status = 0; } 5632 if test "$ac_status" -eq 0; then 5633 # Ensure the archiver fails upon bogus file names. 5634 rm -f conftest.$ac_objext libconftest.a 5635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5636 (eval $lt_ar_try) 2>&5 5637 ac_status=$? 5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5639 test $ac_status = 0; } 5640 if test "$ac_status" -ne 0; then 5641 lt_cv_ar_at_file=@ 5642 fi 5643 fi 5644 rm -f conftest.* libconftest.a 5645 5646fi 5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5648 5649fi 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5651$as_echo "$lt_cv_ar_at_file" >&6; } 5652 5653if test "x$lt_cv_ar_at_file" = xno; then 5654 archiver_list_spec= 5655else 5656 archiver_list_spec=$lt_cv_ar_at_file 5657fi 5658 5659 5660 5661 5662 5663 5664 5665if test -n "$ac_tool_prefix"; then 5666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5667set dummy ${ac_tool_prefix}strip; ac_word=$2 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5669$as_echo_n "checking for $ac_word... " >&6; } 5670if ${ac_cv_prog_STRIP+:} false; then : 5671 $as_echo_n "(cached) " >&6 5672else 5673 if test -n "$STRIP"; then 5674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5675else 5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5677for as_dir in $PATH 5678do 5679 IFS=$as_save_IFS 5680 test -z "$as_dir" && as_dir=. 5681 for ac_exec_ext in '' $ac_executable_extensions; do 5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5683 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5685 break 2 5686 fi 5687done 5688 done 5689IFS=$as_save_IFS 5690 5691fi 5692fi 5693STRIP=$ac_cv_prog_STRIP 5694if test -n "$STRIP"; then 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5696$as_echo "$STRIP" >&6; } 5697else 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5699$as_echo "no" >&6; } 5700fi 5701 5702 5703fi 5704if test -z "$ac_cv_prog_STRIP"; then 5705 ac_ct_STRIP=$STRIP 5706 # Extract the first word of "strip", so it can be a program name with args. 5707set dummy strip; ac_word=$2 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5709$as_echo_n "checking for $ac_word... " >&6; } 5710if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5711 $as_echo_n "(cached) " >&6 5712else 5713 if test -n "$ac_ct_STRIP"; then 5714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5715else 5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5717for as_dir in $PATH 5718do 5719 IFS=$as_save_IFS 5720 test -z "$as_dir" && as_dir=. 5721 for ac_exec_ext in '' $ac_executable_extensions; do 5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5723 ac_cv_prog_ac_ct_STRIP="strip" 5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5725 break 2 5726 fi 5727done 5728 done 5729IFS=$as_save_IFS 5730 5731fi 5732fi 5733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5734if test -n "$ac_ct_STRIP"; then 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5736$as_echo "$ac_ct_STRIP" >&6; } 5737else 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5739$as_echo "no" >&6; } 5740fi 5741 5742 if test "x$ac_ct_STRIP" = x; then 5743 STRIP=":" 5744 else 5745 case $cross_compiling:$ac_tool_warned in 5746yes:) 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5749ac_tool_warned=yes ;; 5750esac 5751 STRIP=$ac_ct_STRIP 5752 fi 5753else 5754 STRIP="$ac_cv_prog_STRIP" 5755fi 5756 5757test -z "$STRIP" && STRIP=: 5758 5759 5760 5761 5762 5763 5764if test -n "$ac_tool_prefix"; then 5765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5766set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5768$as_echo_n "checking for $ac_word... " >&6; } 5769if ${ac_cv_prog_RANLIB+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 if test -n "$RANLIB"; then 5773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5774else 5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5776for as_dir in $PATH 5777do 5778 IFS=$as_save_IFS 5779 test -z "$as_dir" && as_dir=. 5780 for ac_exec_ext in '' $ac_executable_extensions; do 5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5784 break 2 5785 fi 5786done 5787 done 5788IFS=$as_save_IFS 5789 5790fi 5791fi 5792RANLIB=$ac_cv_prog_RANLIB 5793if test -n "$RANLIB"; then 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5795$as_echo "$RANLIB" >&6; } 5796else 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5798$as_echo "no" >&6; } 5799fi 5800 5801 5802fi 5803if test -z "$ac_cv_prog_RANLIB"; then 5804 ac_ct_RANLIB=$RANLIB 5805 # Extract the first word of "ranlib", so it can be a program name with args. 5806set dummy ranlib; ac_word=$2 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5808$as_echo_n "checking for $ac_word... " >&6; } 5809if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 if test -n "$ac_ct_RANLIB"; then 5813 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5814else 5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5816for as_dir in $PATH 5817do 5818 IFS=$as_save_IFS 5819 test -z "$as_dir" && as_dir=. 5820 for ac_exec_ext in '' $ac_executable_extensions; do 5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5822 ac_cv_prog_ac_ct_RANLIB="ranlib" 5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5824 break 2 5825 fi 5826done 5827 done 5828IFS=$as_save_IFS 5829 5830fi 5831fi 5832ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5833if test -n "$ac_ct_RANLIB"; then 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5835$as_echo "$ac_ct_RANLIB" >&6; } 5836else 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5838$as_echo "no" >&6; } 5839fi 5840 5841 if test "x$ac_ct_RANLIB" = x; then 5842 RANLIB=":" 5843 else 5844 case $cross_compiling:$ac_tool_warned in 5845yes:) 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5848ac_tool_warned=yes ;; 5849esac 5850 RANLIB=$ac_ct_RANLIB 5851 fi 5852else 5853 RANLIB="$ac_cv_prog_RANLIB" 5854fi 5855 5856test -z "$RANLIB" && RANLIB=: 5857 5858 5859 5860 5861 5862 5863# Determine commands to create old-style static archives. 5864old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5865old_postinstall_cmds='chmod 644 $oldlib' 5866old_postuninstall_cmds= 5867 5868if test -n "$RANLIB"; then 5869 case $host_os in 5870 openbsd*) 5871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5872 ;; 5873 *) 5874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5875 ;; 5876 esac 5877 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5878fi 5879 5880case $host_os in 5881 darwin*) 5882 lock_old_archive_extraction=yes ;; 5883 *) 5884 lock_old_archive_extraction=no ;; 5885esac 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925# If no C compiler was specified, use CC. 5926LTCC=${LTCC-"$CC"} 5927 5928# If no C compiler flags were specified, use CFLAGS. 5929LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5930 5931# Allow CC to be a program name with arguments. 5932compiler=$CC 5933 5934 5935# Check for command to grab the raw symbol name followed by C symbol from nm. 5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5937$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5938if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5939 $as_echo_n "(cached) " >&6 5940else 5941 5942# These are sane defaults that work on at least a few old systems. 5943# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5944 5945# Character class describing NM global symbol codes. 5946symcode='[BCDEGRST]' 5947 5948# Regexp to match symbols that can be accessed directly from C. 5949sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5950 5951# Define system-specific variables. 5952case $host_os in 5953aix*) 5954 symcode='[BCDT]' 5955 ;; 5956cygwin* | mingw* | pw32* | cegcc*) 5957 symcode='[ABCDGISTW]' 5958 ;; 5959hpux*) 5960 if test "$host_cpu" = ia64; then 5961 symcode='[ABCDEGRST]' 5962 fi 5963 ;; 5964irix* | nonstopux*) 5965 symcode='[BCDEGRST]' 5966 ;; 5967osf*) 5968 symcode='[BCDEGQRST]' 5969 ;; 5970solaris*) 5971 symcode='[BDRT]' 5972 ;; 5973sco3.2v5*) 5974 symcode='[DT]' 5975 ;; 5976sysv4.2uw2*) 5977 symcode='[DT]' 5978 ;; 5979sysv5* | sco5v6* | unixware* | OpenUNIX*) 5980 symcode='[ABDT]' 5981 ;; 5982sysv4) 5983 symcode='[DFNSTU]' 5984 ;; 5985esac 5986 5987# If we're using GNU nm, then use its standard symbol codes. 5988case `$NM -V 2>&1` in 5989*GNU* | *'with BFD'*) 5990 symcode='[ABCDGIRSTW]' ;; 5991esac 5992 5993# Transform an extracted symbol line into a proper C declaration. 5994# Some systems (esp. on ia64) link data and code symbols differently, 5995# so use this general approach. 5996lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5997 5998# Transform an extracted symbol line into symbol name and symbol address 5999lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6000lt_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'" 6001 6002# Handle CRLF in mingw tool chain 6003opt_cr= 6004case $build_os in 6005mingw*) 6006 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6007 ;; 6008esac 6009 6010# Try without a prefix underscore, then with it. 6011for ac_symprfx in "" "_"; do 6012 6013 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6014 symxfrm="\\1 $ac_symprfx\\2 \\2" 6015 6016 # Write the raw and C identifiers. 6017 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6018 # Fake it for dumpbin and say T for any non-static function 6019 # and D for any global variable. 6020 # Also find C++ and __fastcall symbols from MSVC++, 6021 # which start with @ or ?. 6022 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6023" {last_section=section; section=\$ 3};"\ 6024" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6025" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6026" \$ 0!~/External *\|/{next};"\ 6027" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6028" {if(hide[section]) next};"\ 6029" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6030" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6031" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6032" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6033" ' prfx=^$ac_symprfx" 6034 else 6035 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6036 fi 6037 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6038 6039 # Check to see that the pipe works correctly. 6040 pipe_works=no 6041 6042 rm -f conftest* 6043 cat > conftest.$ac_ext <<_LT_EOF 6044#ifdef __cplusplus 6045extern "C" { 6046#endif 6047char nm_test_var; 6048void nm_test_func(void); 6049void nm_test_func(void){} 6050#ifdef __cplusplus 6051} 6052#endif 6053int main(){nm_test_var='a';nm_test_func();return(0);} 6054_LT_EOF 6055 6056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6057 (eval $ac_compile) 2>&5 6058 ac_status=$? 6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6060 test $ac_status = 0; }; then 6061 # Now try to grab the symbols. 6062 nlist=conftest.nm 6063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6064 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6065 ac_status=$? 6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6067 test $ac_status = 0; } && test -s "$nlist"; then 6068 # Try sorting and uniquifying the output. 6069 if sort "$nlist" | uniq > "$nlist"T; then 6070 mv -f "$nlist"T "$nlist" 6071 else 6072 rm -f "$nlist"T 6073 fi 6074 6075 # Make sure that we snagged all the symbols we need. 6076 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6077 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6078 cat <<_LT_EOF > conftest.$ac_ext 6079/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6080#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6081/* DATA imports from DLLs on WIN32 con't be const, because runtime 6082 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6083# define LT_DLSYM_CONST 6084#elif defined(__osf__) 6085/* This system does not cope well with relocations in const data. */ 6086# define LT_DLSYM_CONST 6087#else 6088# define LT_DLSYM_CONST const 6089#endif 6090 6091#ifdef __cplusplus 6092extern "C" { 6093#endif 6094 6095_LT_EOF 6096 # Now generate the symbol file. 6097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6098 6099 cat <<_LT_EOF >> conftest.$ac_ext 6100 6101/* The mapping between symbol names and symbols. */ 6102LT_DLSYM_CONST struct { 6103 const char *name; 6104 void *address; 6105} 6106lt__PROGRAM__LTX_preloaded_symbols[] = 6107{ 6108 { "@PROGRAM@", (void *) 0 }, 6109_LT_EOF 6110 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6111 cat <<\_LT_EOF >> conftest.$ac_ext 6112 {0, (void *) 0} 6113}; 6114 6115/* This works around a problem in FreeBSD linker */ 6116#ifdef FREEBSD_WORKAROUND 6117static const void *lt_preloaded_setup() { 6118 return lt__PROGRAM__LTX_preloaded_symbols; 6119} 6120#endif 6121 6122#ifdef __cplusplus 6123} 6124#endif 6125_LT_EOF 6126 # Now try linking the two files. 6127 mv conftest.$ac_objext conftstm.$ac_objext 6128 lt_globsym_save_LIBS=$LIBS 6129 lt_globsym_save_CFLAGS=$CFLAGS 6130 LIBS="conftstm.$ac_objext" 6131 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6133 (eval $ac_link) 2>&5 6134 ac_status=$? 6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6136 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6137 pipe_works=yes 6138 fi 6139 LIBS=$lt_globsym_save_LIBS 6140 CFLAGS=$lt_globsym_save_CFLAGS 6141 else 6142 echo "cannot find nm_test_func in $nlist" >&5 6143 fi 6144 else 6145 echo "cannot find nm_test_var in $nlist" >&5 6146 fi 6147 else 6148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6149 fi 6150 else 6151 echo "$progname: failed program was:" >&5 6152 cat conftest.$ac_ext >&5 6153 fi 6154 rm -rf conftest* conftst* 6155 6156 # Do not use the global_symbol_pipe unless it works. 6157 if test "$pipe_works" = yes; then 6158 break 6159 else 6160 lt_cv_sys_global_symbol_pipe= 6161 fi 6162done 6163 6164fi 6165 6166if test -z "$lt_cv_sys_global_symbol_pipe"; then 6167 lt_cv_sys_global_symbol_to_cdecl= 6168fi 6169if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6171$as_echo "failed" >&6; } 6172else 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6174$as_echo "ok" >&6; } 6175fi 6176 6177# Response file support. 6178if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6179 nm_file_list_spec='@' 6180elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6181 nm_file_list_spec='@' 6182fi 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6211$as_echo_n "checking for sysroot... " >&6; } 6212 6213# Check whether --with-sysroot was given. 6214if test "${with_sysroot+set}" = set; then : 6215 withval=$with_sysroot; 6216else 6217 with_sysroot=no 6218fi 6219 6220 6221lt_sysroot= 6222case ${with_sysroot} in #( 6223 yes) 6224 if test "$GCC" = yes; then 6225 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6226 fi 6227 ;; #( 6228 /*) 6229 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6230 ;; #( 6231 no|'') 6232 ;; #( 6233 *) 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6235$as_echo "${with_sysroot}" >&6; } 6236 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6237 ;; 6238esac 6239 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6241$as_echo "${lt_sysroot:-no}" >&6; } 6242 6243 6244 6245 6246 6247# Check whether --enable-libtool-lock was given. 6248if test "${enable_libtool_lock+set}" = set; then : 6249 enableval=$enable_libtool_lock; 6250fi 6251 6252test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6253 6254# Some flags need to be propagated to the compiler or linker for good 6255# libtool support. 6256case $host in 6257ia64-*-hpux*) 6258 # Find out which ABI we are using. 6259 echo 'int i;' > conftest.$ac_ext 6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6261 (eval $ac_compile) 2>&5 6262 ac_status=$? 6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6264 test $ac_status = 0; }; then 6265 case `/usr/bin/file conftest.$ac_objext` in 6266 *ELF-32*) 6267 HPUX_IA64_MODE="32" 6268 ;; 6269 *ELF-64*) 6270 HPUX_IA64_MODE="64" 6271 ;; 6272 esac 6273 fi 6274 rm -rf conftest* 6275 ;; 6276*-*-irix6*) 6277 # Find out which ABI we are using. 6278 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6280 (eval $ac_compile) 2>&5 6281 ac_status=$? 6282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6283 test $ac_status = 0; }; then 6284 if test "$lt_cv_prog_gnu_ld" = yes; then 6285 case `/usr/bin/file conftest.$ac_objext` in 6286 *32-bit*) 6287 LD="${LD-ld} -melf32bsmip" 6288 ;; 6289 *N32*) 6290 LD="${LD-ld} -melf32bmipn32" 6291 ;; 6292 *64-bit*) 6293 LD="${LD-ld} -melf64bmip" 6294 ;; 6295 esac 6296 else 6297 case `/usr/bin/file conftest.$ac_objext` in 6298 *32-bit*) 6299 LD="${LD-ld} -32" 6300 ;; 6301 *N32*) 6302 LD="${LD-ld} -n32" 6303 ;; 6304 *64-bit*) 6305 LD="${LD-ld} -64" 6306 ;; 6307 esac 6308 fi 6309 fi 6310 rm -rf conftest* 6311 ;; 6312 6313x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6314s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6315 # Find out which ABI we are using. 6316 echo 'int i;' > conftest.$ac_ext 6317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6318 (eval $ac_compile) 2>&5 6319 ac_status=$? 6320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6321 test $ac_status = 0; }; then 6322 case `/usr/bin/file conftest.o` in 6323 *32-bit*) 6324 case $host in 6325 x86_64-*kfreebsd*-gnu) 6326 LD="${LD-ld} -m elf_i386_fbsd" 6327 ;; 6328 x86_64-*linux*) 6329 LD="${LD-ld} -m elf_i386" 6330 ;; 6331 ppc64-*linux*|powerpc64-*linux*) 6332 LD="${LD-ld} -m elf32ppclinux" 6333 ;; 6334 s390x-*linux*) 6335 LD="${LD-ld} -m elf_s390" 6336 ;; 6337 sparc64-*linux*) 6338 LD="${LD-ld} -m elf32_sparc" 6339 ;; 6340 esac 6341 ;; 6342 *64-bit*) 6343 case $host in 6344 x86_64-*kfreebsd*-gnu) 6345 LD="${LD-ld} -m elf_x86_64_fbsd" 6346 ;; 6347 x86_64-*linux*) 6348 LD="${LD-ld} -m elf_x86_64" 6349 ;; 6350 ppc*-*linux*|powerpc*-*linux*) 6351 LD="${LD-ld} -m elf64ppc" 6352 ;; 6353 s390*-*linux*|s390*-*tpf*) 6354 LD="${LD-ld} -m elf64_s390" 6355 ;; 6356 sparc*-*linux*) 6357 LD="${LD-ld} -m elf64_sparc" 6358 ;; 6359 esac 6360 ;; 6361 esac 6362 fi 6363 rm -rf conftest* 6364 ;; 6365 6366*-*-sco3.2v5*) 6367 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6368 SAVE_CFLAGS="$CFLAGS" 6369 CFLAGS="$CFLAGS -belf" 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6371$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6372if ${lt_cv_cc_needs_belf+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 ac_ext=c 6376ac_cpp='$CPP $CPPFLAGS' 6377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6379ac_compiler_gnu=$ac_cv_c_compiler_gnu 6380 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383 6384int 6385main () 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_link "$LINENO"; then : 6393 lt_cv_cc_needs_belf=yes 6394else 6395 lt_cv_cc_needs_belf=no 6396fi 6397rm -f core conftest.err conftest.$ac_objext \ 6398 conftest$ac_exeext conftest.$ac_ext 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 6405fi 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6407$as_echo "$lt_cv_cc_needs_belf" >&6; } 6408 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6410 CFLAGS="$SAVE_CFLAGS" 6411 fi 6412 ;; 6413*-*solaris*) 6414 # Find out which ABI we are using. 6415 echo 'int i;' > conftest.$ac_ext 6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6417 (eval $ac_compile) 2>&5 6418 ac_status=$? 6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; }; then 6421 case `/usr/bin/file conftest.o` in 6422 *64-bit*) 6423 case $lt_cv_prog_gnu_ld in 6424 yes*) 6425 case $host in 6426 i?86-*-solaris*) 6427 LD="${LD-ld} -m elf_x86_64" 6428 ;; 6429 sparc*-*-solaris*) 6430 LD="${LD-ld} -m elf64_sparc" 6431 ;; 6432 esac 6433 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6434 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6435 LD="${LD-ld}_sol2" 6436 fi 6437 ;; 6438 *) 6439 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6440 LD="${LD-ld} -64" 6441 fi 6442 ;; 6443 esac 6444 ;; 6445 esac 6446 fi 6447 rm -rf conftest* 6448 ;; 6449esac 6450 6451need_locks="$enable_libtool_lock" 6452 6453if test -n "$ac_tool_prefix"; then 6454 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6455set dummy ${ac_tool_prefix}mt; ac_word=$2 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6457$as_echo_n "checking for $ac_word... " >&6; } 6458if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6459 $as_echo_n "(cached) " >&6 6460else 6461 if test -n "$MANIFEST_TOOL"; then 6462 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6463else 6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6465for as_dir in $PATH 6466do 6467 IFS=$as_save_IFS 6468 test -z "$as_dir" && as_dir=. 6469 for ac_exec_ext in '' $ac_executable_extensions; do 6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6471 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6473 break 2 6474 fi 6475done 6476 done 6477IFS=$as_save_IFS 6478 6479fi 6480fi 6481MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6482if test -n "$MANIFEST_TOOL"; then 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6484$as_echo "$MANIFEST_TOOL" >&6; } 6485else 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6487$as_echo "no" >&6; } 6488fi 6489 6490 6491fi 6492if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6493 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6494 # Extract the first word of "mt", so it can be a program name with args. 6495set dummy mt; ac_word=$2 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6497$as_echo_n "checking for $ac_word... " >&6; } 6498if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 if test -n "$ac_ct_MANIFEST_TOOL"; then 6502 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6503else 6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6505for as_dir in $PATH 6506do 6507 IFS=$as_save_IFS 6508 test -z "$as_dir" && as_dir=. 6509 for ac_exec_ext in '' $ac_executable_extensions; do 6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6511 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6513 break 2 6514 fi 6515done 6516 done 6517IFS=$as_save_IFS 6518 6519fi 6520fi 6521ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6522if test -n "$ac_ct_MANIFEST_TOOL"; then 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6524$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6525else 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6527$as_echo "no" >&6; } 6528fi 6529 6530 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6531 MANIFEST_TOOL=":" 6532 else 6533 case $cross_compiling:$ac_tool_warned in 6534yes:) 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6537ac_tool_warned=yes ;; 6538esac 6539 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6540 fi 6541else 6542 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6543fi 6544 6545test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6547$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6548if ${lt_cv_path_mainfest_tool+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 lt_cv_path_mainfest_tool=no 6552 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6553 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6554 cat conftest.err >&5 6555 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6556 lt_cv_path_mainfest_tool=yes 6557 fi 6558 rm -f conftest* 6559fi 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6561$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6562if test "x$lt_cv_path_mainfest_tool" != xyes; then 6563 MANIFEST_TOOL=: 6564fi 6565 6566 6567 6568 6569 6570 6571 case $host_os in 6572 rhapsody* | darwin*) 6573 if test -n "$ac_tool_prefix"; then 6574 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6575set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577$as_echo_n "checking for $ac_word... " >&6; } 6578if ${ac_cv_prog_DSYMUTIL+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 if test -n "$DSYMUTIL"; then 6582 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6591 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596 done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601DSYMUTIL=$ac_cv_prog_DSYMUTIL 6602if test -n "$DSYMUTIL"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6604$as_echo "$DSYMUTIL" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609 6610 6611fi 6612if test -z "$ac_cv_prog_DSYMUTIL"; then 6613 ac_ct_DSYMUTIL=$DSYMUTIL 6614 # Extract the first word of "dsymutil", so it can be a program name with args. 6615set dummy dsymutil; ac_word=$2 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6617$as_echo_n "checking for $ac_word... " >&6; } 6618if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 if test -n "$ac_ct_DSYMUTIL"; then 6622 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6623else 6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625for as_dir in $PATH 6626do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6631 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6633 break 2 6634 fi 6635done 6636 done 6637IFS=$as_save_IFS 6638 6639fi 6640fi 6641ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6642if test -n "$ac_ct_DSYMUTIL"; then 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6644$as_echo "$ac_ct_DSYMUTIL" >&6; } 6645else 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6647$as_echo "no" >&6; } 6648fi 6649 6650 if test "x$ac_ct_DSYMUTIL" = x; then 6651 DSYMUTIL=":" 6652 else 6653 case $cross_compiling:$ac_tool_warned in 6654yes:) 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6657ac_tool_warned=yes ;; 6658esac 6659 DSYMUTIL=$ac_ct_DSYMUTIL 6660 fi 6661else 6662 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6663fi 6664 6665 if test -n "$ac_tool_prefix"; then 6666 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6667set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669$as_echo_n "checking for $ac_word... " >&6; } 6670if ${ac_cv_prog_NMEDIT+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672else 6673 if test -n "$NMEDIT"; then 6674 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6675else 6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6683 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687done 6688 done 6689IFS=$as_save_IFS 6690 6691fi 6692fi 6693NMEDIT=$ac_cv_prog_NMEDIT 6694if test -n "$NMEDIT"; then 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6696$as_echo "$NMEDIT" >&6; } 6697else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700fi 6701 6702 6703fi 6704if test -z "$ac_cv_prog_NMEDIT"; then 6705 ac_ct_NMEDIT=$NMEDIT 6706 # Extract the first word of "nmedit", so it can be a program name with args. 6707set dummy nmedit; ac_word=$2 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6709$as_echo_n "checking for $ac_word... " >&6; } 6710if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 if test -n "$ac_ct_NMEDIT"; then 6714 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6715else 6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6717for as_dir in $PATH 6718do 6719 IFS=$as_save_IFS 6720 test -z "$as_dir" && as_dir=. 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6723 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6725 break 2 6726 fi 6727done 6728 done 6729IFS=$as_save_IFS 6730 6731fi 6732fi 6733ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6734if test -n "$ac_ct_NMEDIT"; then 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6736$as_echo "$ac_ct_NMEDIT" >&6; } 6737else 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6739$as_echo "no" >&6; } 6740fi 6741 6742 if test "x$ac_ct_NMEDIT" = x; then 6743 NMEDIT=":" 6744 else 6745 case $cross_compiling:$ac_tool_warned in 6746yes:) 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6749ac_tool_warned=yes ;; 6750esac 6751 NMEDIT=$ac_ct_NMEDIT 6752 fi 6753else 6754 NMEDIT="$ac_cv_prog_NMEDIT" 6755fi 6756 6757 if test -n "$ac_tool_prefix"; then 6758 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6759set dummy ${ac_tool_prefix}lipo; ac_word=$2 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6761$as_echo_n "checking for $ac_word... " >&6; } 6762if ${ac_cv_prog_LIPO+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 if test -n "$LIPO"; then 6766 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6775 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780 done 6781IFS=$as_save_IFS 6782 6783fi 6784fi 6785LIPO=$ac_cv_prog_LIPO 6786if test -n "$LIPO"; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6788$as_echo "$LIPO" >&6; } 6789else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6791$as_echo "no" >&6; } 6792fi 6793 6794 6795fi 6796if test -z "$ac_cv_prog_LIPO"; then 6797 ac_ct_LIPO=$LIPO 6798 # Extract the first word of "lipo", so it can be a program name with args. 6799set dummy lipo; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$ac_ct_LIPO"; then 6806 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6815 ac_cv_prog_ac_ct_LIPO="lipo" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6826if test -n "$ac_ct_LIPO"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6828$as_echo "$ac_ct_LIPO" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 if test "x$ac_ct_LIPO" = x; then 6835 LIPO=":" 6836 else 6837 case $cross_compiling:$ac_tool_warned in 6838yes:) 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6841ac_tool_warned=yes ;; 6842esac 6843 LIPO=$ac_ct_LIPO 6844 fi 6845else 6846 LIPO="$ac_cv_prog_LIPO" 6847fi 6848 6849 if test -n "$ac_tool_prefix"; then 6850 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6851set dummy ${ac_tool_prefix}otool; ac_word=$2 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6853$as_echo_n "checking for $ac_word... " >&6; } 6854if ${ac_cv_prog_OTOOL+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 if test -n "$OTOOL"; then 6858 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6859else 6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6861for as_dir in $PATH 6862do 6863 IFS=$as_save_IFS 6864 test -z "$as_dir" && as_dir=. 6865 for ac_exec_ext in '' $ac_executable_extensions; do 6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6867 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6869 break 2 6870 fi 6871done 6872 done 6873IFS=$as_save_IFS 6874 6875fi 6876fi 6877OTOOL=$ac_cv_prog_OTOOL 6878if test -n "$OTOOL"; then 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6880$as_echo "$OTOOL" >&6; } 6881else 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6883$as_echo "no" >&6; } 6884fi 6885 6886 6887fi 6888if test -z "$ac_cv_prog_OTOOL"; then 6889 ac_ct_OTOOL=$OTOOL 6890 # Extract the first word of "otool", so it can be a program name with args. 6891set dummy otool; ac_word=$2 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6893$as_echo_n "checking for $ac_word... " >&6; } 6894if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 if test -n "$ac_ct_OTOOL"; then 6898 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6899else 6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6907 ac_cv_prog_ac_ct_OTOOL="otool" 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911done 6912 done 6913IFS=$as_save_IFS 6914 6915fi 6916fi 6917ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6918if test -n "$ac_ct_OTOOL"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6920$as_echo "$ac_ct_OTOOL" >&6; } 6921else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 if test "x$ac_ct_OTOOL" = x; then 6927 OTOOL=":" 6928 else 6929 case $cross_compiling:$ac_tool_warned in 6930yes:) 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6933ac_tool_warned=yes ;; 6934esac 6935 OTOOL=$ac_ct_OTOOL 6936 fi 6937else 6938 OTOOL="$ac_cv_prog_OTOOL" 6939fi 6940 6941 if test -n "$ac_tool_prefix"; then 6942 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6943set dummy ${ac_tool_prefix}otool64; ac_word=$2 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6945$as_echo_n "checking for $ac_word... " >&6; } 6946if ${ac_cv_prog_OTOOL64+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 if test -n "$OTOOL64"; then 6950 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6951else 6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6953for as_dir in $PATH 6954do 6955 IFS=$as_save_IFS 6956 test -z "$as_dir" && as_dir=. 6957 for ac_exec_ext in '' $ac_executable_extensions; do 6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6959 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6961 break 2 6962 fi 6963done 6964 done 6965IFS=$as_save_IFS 6966 6967fi 6968fi 6969OTOOL64=$ac_cv_prog_OTOOL64 6970if test -n "$OTOOL64"; then 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6972$as_echo "$OTOOL64" >&6; } 6973else 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6975$as_echo "no" >&6; } 6976fi 6977 6978 6979fi 6980if test -z "$ac_cv_prog_OTOOL64"; then 6981 ac_ct_OTOOL64=$OTOOL64 6982 # Extract the first word of "otool64", so it can be a program name with args. 6983set dummy otool64; ac_word=$2 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6985$as_echo_n "checking for $ac_word... " >&6; } 6986if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 if test -n "$ac_ct_OTOOL64"; then 6990 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6991else 6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6993for as_dir in $PATH 6994do 6995 IFS=$as_save_IFS 6996 test -z "$as_dir" && as_dir=. 6997 for ac_exec_ext in '' $ac_executable_extensions; do 6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6999 ac_cv_prog_ac_ct_OTOOL64="otool64" 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7001 break 2 7002 fi 7003done 7004 done 7005IFS=$as_save_IFS 7006 7007fi 7008fi 7009ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7010if test -n "$ac_ct_OTOOL64"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7012$as_echo "$ac_ct_OTOOL64" >&6; } 7013else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015$as_echo "no" >&6; } 7016fi 7017 7018 if test "x$ac_ct_OTOOL64" = x; then 7019 OTOOL64=":" 7020 else 7021 case $cross_compiling:$ac_tool_warned in 7022yes:) 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7025ac_tool_warned=yes ;; 7026esac 7027 OTOOL64=$ac_ct_OTOOL64 7028 fi 7029else 7030 OTOOL64="$ac_cv_prog_OTOOL64" 7031fi 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7060$as_echo_n "checking for -single_module linker flag... " >&6; } 7061if ${lt_cv_apple_cc_single_mod+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 lt_cv_apple_cc_single_mod=no 7065 if test -z "${LT_MULTI_MODULE}"; then 7066 # By default we will add the -single_module flag. You can override 7067 # by either setting the environment variable LT_MULTI_MODULE 7068 # non-empty at configure time, or by adding -multi_module to the 7069 # link flags. 7070 rm -rf libconftest.dylib* 7071 echo "int foo(void){return 1;}" > conftest.c 7072 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7073-dynamiclib -Wl,-single_module conftest.c" >&5 7074 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7075 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7076 _lt_result=$? 7077 # If there is a non-empty error log, and "single_module" 7078 # appears in it, assume the flag caused a linker warning 7079 if test -s conftest.err && $GREP single_module conftest.err; then 7080 cat conftest.err >&5 7081 # Otherwise, if the output was created with a 0 exit code from 7082 # the compiler, it worked. 7083 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7084 lt_cv_apple_cc_single_mod=yes 7085 else 7086 cat conftest.err >&5 7087 fi 7088 rm -rf libconftest.dylib* 7089 rm -f conftest.* 7090 fi 7091fi 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7093$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7094 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7096$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7097if ${lt_cv_ld_exported_symbols_list+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 lt_cv_ld_exported_symbols_list=no 7101 save_LDFLAGS=$LDFLAGS 7102 echo "_main" > conftest.sym 7103 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7105/* end confdefs.h. */ 7106 7107int 7108main () 7109{ 7110 7111 ; 7112 return 0; 7113} 7114_ACEOF 7115if ac_fn_c_try_link "$LINENO"; then : 7116 lt_cv_ld_exported_symbols_list=yes 7117else 7118 lt_cv_ld_exported_symbols_list=no 7119fi 7120rm -f core conftest.err conftest.$ac_objext \ 7121 conftest$ac_exeext conftest.$ac_ext 7122 LDFLAGS="$save_LDFLAGS" 7123 7124fi 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7126$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7127 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7129$as_echo_n "checking for -force_load linker flag... " >&6; } 7130if ${lt_cv_ld_force_load+:} false; then : 7131 $as_echo_n "(cached) " >&6 7132else 7133 lt_cv_ld_force_load=no 7134 cat > conftest.c << _LT_EOF 7135int forced_loaded() { return 2;} 7136_LT_EOF 7137 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7138 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7139 echo "$AR cru libconftest.a conftest.o" >&5 7140 $AR cru libconftest.a conftest.o 2>&5 7141 echo "$RANLIB libconftest.a" >&5 7142 $RANLIB libconftest.a 2>&5 7143 cat > conftest.c << _LT_EOF 7144int main() { return 0;} 7145_LT_EOF 7146 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7147 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7148 _lt_result=$? 7149 if test -s conftest.err && $GREP force_load conftest.err; then 7150 cat conftest.err >&5 7151 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7152 lt_cv_ld_force_load=yes 7153 else 7154 cat conftest.err >&5 7155 fi 7156 rm -f conftest.err libconftest.a conftest conftest.c 7157 rm -rf conftest.dSYM 7158 7159fi 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7161$as_echo "$lt_cv_ld_force_load" >&6; } 7162 case $host_os in 7163 rhapsody* | darwin1.[012]) 7164 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7165 darwin1.*) 7166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7167 darwin*) # darwin 5.x on 7168 # if running on 10.5 or later, the deployment target defaults 7169 # to the OS version, if on x86, and 10.4, the deployment 7170 # target defaults to 10.4. Don't you love it? 7171 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7172 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7173 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7174 10.[012]*) 7175 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7176 10.*) 7177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7178 esac 7179 ;; 7180 esac 7181 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7182 _lt_dar_single_mod='$single_module' 7183 fi 7184 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7185 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7186 else 7187 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7188 fi 7189 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7190 _lt_dsymutil='~$DSYMUTIL $lib || :' 7191 else 7192 _lt_dsymutil= 7193 fi 7194 ;; 7195 esac 7196 7197ac_ext=c 7198ac_cpp='$CPP $CPPFLAGS' 7199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7201ac_compiler_gnu=$ac_cv_c_compiler_gnu 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7203$as_echo_n "checking how to run the C preprocessor... " >&6; } 7204# On Suns, sometimes $CPP names a directory. 7205if test -n "$CPP" && test -d "$CPP"; then 7206 CPP= 7207fi 7208if test -z "$CPP"; then 7209 if ${ac_cv_prog_CPP+:} false; then : 7210 $as_echo_n "(cached) " >&6 7211else 7212 # Double quotes because CPP needs to be expanded 7213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7214 do 7215 ac_preproc_ok=false 7216for ac_c_preproc_warn_flag in '' yes 7217do 7218 # Use a header file that comes with gcc, so configuring glibc 7219 # with a fresh cross-compiler works. 7220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7221 # <limits.h> exists even on freestanding compilers. 7222 # On the NeXT, cc -E runs the code through the compiler's parser, 7223 # not just through cpp. "Syntax error" is here to catch this case. 7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226#ifdef __STDC__ 7227# include <limits.h> 7228#else 7229# include <assert.h> 7230#endif 7231 Syntax error 7232_ACEOF 7233if ac_fn_c_try_cpp "$LINENO"; then : 7234 7235else 7236 # Broken: fails on valid input. 7237continue 7238fi 7239rm -f conftest.err conftest.i conftest.$ac_ext 7240 7241 # OK, works on sane cases. Now check whether nonexistent headers 7242 # can be detected and how. 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245#include <ac_nonexistent.h> 7246_ACEOF 7247if ac_fn_c_try_cpp "$LINENO"; then : 7248 # Broken: success on invalid input. 7249continue 7250else 7251 # Passes both tests. 7252ac_preproc_ok=: 7253break 7254fi 7255rm -f conftest.err conftest.i conftest.$ac_ext 7256 7257done 7258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7259rm -f conftest.i conftest.err conftest.$ac_ext 7260if $ac_preproc_ok; then : 7261 break 7262fi 7263 7264 done 7265 ac_cv_prog_CPP=$CPP 7266 7267fi 7268 CPP=$ac_cv_prog_CPP 7269else 7270 ac_cv_prog_CPP=$CPP 7271fi 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7273$as_echo "$CPP" >&6; } 7274ac_preproc_ok=false 7275for ac_c_preproc_warn_flag in '' yes 7276do 7277 # Use a header file that comes with gcc, so configuring glibc 7278 # with a fresh cross-compiler works. 7279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7280 # <limits.h> exists even on freestanding compilers. 7281 # On the NeXT, cc -E runs the code through the compiler's parser, 7282 # not just through cpp. "Syntax error" is here to catch this case. 7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7284/* end confdefs.h. */ 7285#ifdef __STDC__ 7286# include <limits.h> 7287#else 7288# include <assert.h> 7289#endif 7290 Syntax error 7291_ACEOF 7292if ac_fn_c_try_cpp "$LINENO"; then : 7293 7294else 7295 # Broken: fails on valid input. 7296continue 7297fi 7298rm -f conftest.err conftest.i conftest.$ac_ext 7299 7300 # OK, works on sane cases. Now check whether nonexistent headers 7301 # can be detected and how. 7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7303/* end confdefs.h. */ 7304#include <ac_nonexistent.h> 7305_ACEOF 7306if ac_fn_c_try_cpp "$LINENO"; then : 7307 # Broken: success on invalid input. 7308continue 7309else 7310 # Passes both tests. 7311ac_preproc_ok=: 7312break 7313fi 7314rm -f conftest.err conftest.i conftest.$ac_ext 7315 7316done 7317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7318rm -f conftest.i conftest.err conftest.$ac_ext 7319if $ac_preproc_ok; then : 7320 7321else 7322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7324as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7325See \`config.log' for more details" "$LINENO" 5; } 7326fi 7327 7328ac_ext=c 7329ac_cpp='$CPP $CPPFLAGS' 7330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7332ac_compiler_gnu=$ac_cv_c_compiler_gnu 7333 7334 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7336$as_echo_n "checking for ANSI C header files... " >&6; } 7337if ${ac_cv_header_stdc+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7341/* end confdefs.h. */ 7342#include <stdlib.h> 7343#include <stdarg.h> 7344#include <string.h> 7345#include <float.h> 7346 7347int 7348main () 7349{ 7350 7351 ; 7352 return 0; 7353} 7354_ACEOF 7355if ac_fn_c_try_compile "$LINENO"; then : 7356 ac_cv_header_stdc=yes 7357else 7358 ac_cv_header_stdc=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7361 7362if test $ac_cv_header_stdc = yes; then 7363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365/* end confdefs.h. */ 7366#include <string.h> 7367 7368_ACEOF 7369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7370 $EGREP "memchr" >/dev/null 2>&1; then : 7371 7372else 7373 ac_cv_header_stdc=no 7374fi 7375rm -f conftest* 7376 7377fi 7378 7379if test $ac_cv_header_stdc = yes; then 7380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7382/* end confdefs.h. */ 7383#include <stdlib.h> 7384 7385_ACEOF 7386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7387 $EGREP "free" >/dev/null 2>&1; then : 7388 7389else 7390 ac_cv_header_stdc=no 7391fi 7392rm -f conftest* 7393 7394fi 7395 7396if test $ac_cv_header_stdc = yes; then 7397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7398 if test "$cross_compiling" = yes; then : 7399 : 7400else 7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402/* end confdefs.h. */ 7403#include <ctype.h> 7404#include <stdlib.h> 7405#if ((' ' & 0x0FF) == 0x020) 7406# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7407# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7408#else 7409# define ISLOWER(c) \ 7410 (('a' <= (c) && (c) <= 'i') \ 7411 || ('j' <= (c) && (c) <= 'r') \ 7412 || ('s' <= (c) && (c) <= 'z')) 7413# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7414#endif 7415 7416#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7417int 7418main () 7419{ 7420 int i; 7421 for (i = 0; i < 256; i++) 7422 if (XOR (islower (i), ISLOWER (i)) 7423 || toupper (i) != TOUPPER (i)) 7424 return 2; 7425 return 0; 7426} 7427_ACEOF 7428if ac_fn_c_try_run "$LINENO"; then : 7429 7430else 7431 ac_cv_header_stdc=no 7432fi 7433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7434 conftest.$ac_objext conftest.beam conftest.$ac_ext 7435fi 7436 7437fi 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7440$as_echo "$ac_cv_header_stdc" >&6; } 7441if test $ac_cv_header_stdc = yes; then 7442 7443$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7444 7445fi 7446 7447# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7448for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7449 inttypes.h stdint.h unistd.h 7450do : 7451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7452ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7453" 7454if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7455 cat >>confdefs.h <<_ACEOF 7456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7457_ACEOF 7458 7459fi 7460 7461done 7462 7463 7464for ac_header in dlfcn.h 7465do : 7466 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7467" 7468if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7469 cat >>confdefs.h <<_ACEOF 7470#define HAVE_DLFCN_H 1 7471_ACEOF 7472 7473fi 7474 7475done 7476 7477 7478 7479 7480 7481# Set options 7482 7483 7484 7485 enable_dlopen=no 7486 7487 7488 enable_win32_dll=no 7489 7490 7491 # Check whether --enable-shared was given. 7492if test "${enable_shared+set}" = set; then : 7493 enableval=$enable_shared; p=${PACKAGE-default} 7494 case $enableval in 7495 yes) enable_shared=yes ;; 7496 no) enable_shared=no ;; 7497 *) 7498 enable_shared=no 7499 # Look at the argument we got. We use all the common list separators. 7500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7501 for pkg in $enableval; do 7502 IFS="$lt_save_ifs" 7503 if test "X$pkg" = "X$p"; then 7504 enable_shared=yes 7505 fi 7506 done 7507 IFS="$lt_save_ifs" 7508 ;; 7509 esac 7510else 7511 enable_shared=yes 7512fi 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 # Check whether --enable-static was given. 7523if test "${enable_static+set}" = set; then : 7524 enableval=$enable_static; p=${PACKAGE-default} 7525 case $enableval in 7526 yes) enable_static=yes ;; 7527 no) enable_static=no ;; 7528 *) 7529 enable_static=no 7530 # Look at the argument we got. We use all the common list separators. 7531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7532 for pkg in $enableval; do 7533 IFS="$lt_save_ifs" 7534 if test "X$pkg" = "X$p"; then 7535 enable_static=yes 7536 fi 7537 done 7538 IFS="$lt_save_ifs" 7539 ;; 7540 esac 7541else 7542 enable_static=yes 7543fi 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554# Check whether --with-pic was given. 7555if test "${with_pic+set}" = set; then : 7556 withval=$with_pic; lt_p=${PACKAGE-default} 7557 case $withval in 7558 yes|no) pic_mode=$withval ;; 7559 *) 7560 pic_mode=default 7561 # Look at the argument we got. We use all the common list separators. 7562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7563 for lt_pkg in $withval; do 7564 IFS="$lt_save_ifs" 7565 if test "X$lt_pkg" = "X$lt_p"; then 7566 pic_mode=yes 7567 fi 7568 done 7569 IFS="$lt_save_ifs" 7570 ;; 7571 esac 7572else 7573 pic_mode=default 7574fi 7575 7576 7577test -z "$pic_mode" && pic_mode=default 7578 7579 7580 7581 7582 7583 7584 7585 # Check whether --enable-fast-install was given. 7586if test "${enable_fast_install+set}" = set; then : 7587 enableval=$enable_fast_install; p=${PACKAGE-default} 7588 case $enableval in 7589 yes) enable_fast_install=yes ;; 7590 no) enable_fast_install=no ;; 7591 *) 7592 enable_fast_install=no 7593 # Look at the argument we got. We use all the common list separators. 7594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7595 for pkg in $enableval; do 7596 IFS="$lt_save_ifs" 7597 if test "X$pkg" = "X$p"; then 7598 enable_fast_install=yes 7599 fi 7600 done 7601 IFS="$lt_save_ifs" 7602 ;; 7603 esac 7604else 7605 enable_fast_install=yes 7606fi 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618# This can be used to rebuild libtool when needed 7619LIBTOOL_DEPS="$ltmain" 7620 7621# Always use our own libtool. 7622LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653test -z "$LN_S" && LN_S="ln -s" 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668if test -n "${ZSH_VERSION+set}" ; then 7669 setopt NO_GLOB_SUBST 7670fi 7671 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7673$as_echo_n "checking for objdir... " >&6; } 7674if ${lt_cv_objdir+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 rm -f .libs 2>/dev/null 7678mkdir .libs 2>/dev/null 7679if test -d .libs; then 7680 lt_cv_objdir=.libs 7681else 7682 # MS-DOS does not allow filenames that begin with a dot. 7683 lt_cv_objdir=_libs 7684fi 7685rmdir .libs 2>/dev/null 7686fi 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7688$as_echo "$lt_cv_objdir" >&6; } 7689objdir=$lt_cv_objdir 7690 7691 7692 7693 7694 7695cat >>confdefs.h <<_ACEOF 7696#define LT_OBJDIR "$lt_cv_objdir/" 7697_ACEOF 7698 7699 7700 7701 7702case $host_os in 7703aix3*) 7704 # AIX sometimes has problems with the GCC collect2 program. For some 7705 # reason, if we set the COLLECT_NAMES environment variable, the problems 7706 # vanish in a puff of smoke. 7707 if test "X${COLLECT_NAMES+set}" != Xset; then 7708 COLLECT_NAMES= 7709 export COLLECT_NAMES 7710 fi 7711 ;; 7712esac 7713 7714# Global variables: 7715ofile=libtool 7716can_build_shared=yes 7717 7718# All known linkers require a `.a' archive for static linking (except MSVC, 7719# which needs '.lib'). 7720libext=a 7721 7722with_gnu_ld="$lt_cv_prog_gnu_ld" 7723 7724old_CC="$CC" 7725old_CFLAGS="$CFLAGS" 7726 7727# Set sane defaults for various variables 7728test -z "$CC" && CC=cc 7729test -z "$LTCC" && LTCC=$CC 7730test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7731test -z "$LD" && LD=ld 7732test -z "$ac_objext" && ac_objext=o 7733 7734for cc_temp in $compiler""; do 7735 case $cc_temp in 7736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7738 \-*) ;; 7739 *) break;; 7740 esac 7741done 7742cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7743 7744 7745# Only perform the check for file, if the check method requires it 7746test -z "$MAGIC_CMD" && MAGIC_CMD=file 7747case $deplibs_check_method in 7748file_magic*) 7749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7751$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7752if ${lt_cv_path_MAGIC_CMD+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 case $MAGIC_CMD in 7756[\\/*] | ?:[\\/]*) 7757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7758 ;; 7759*) 7760 lt_save_MAGIC_CMD="$MAGIC_CMD" 7761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7763 for ac_dir in $ac_dummy; do 7764 IFS="$lt_save_ifs" 7765 test -z "$ac_dir" && ac_dir=. 7766 if test -f $ac_dir/${ac_tool_prefix}file; then 7767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7768 if test -n "$file_magic_test_file"; then 7769 case $deplibs_check_method in 7770 "file_magic "*) 7771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7774 $EGREP "$file_magic_regex" > /dev/null; then 7775 : 7776 else 7777 cat <<_LT_EOF 1>&2 7778 7779*** Warning: the command libtool uses to detect shared libraries, 7780*** $file_magic_cmd, produces output that libtool cannot recognize. 7781*** The result is that libtool may fail to recognize shared libraries 7782*** as such. This will affect the creation of libtool libraries that 7783*** depend on shared libraries, but programs linked with such libtool 7784*** libraries will work regardless of this problem. Nevertheless, you 7785*** may want to report the problem to your system manager and/or to 7786*** bug-libtool@gnu.org 7787 7788_LT_EOF 7789 fi ;; 7790 esac 7791 fi 7792 break 7793 fi 7794 done 7795 IFS="$lt_save_ifs" 7796 MAGIC_CMD="$lt_save_MAGIC_CMD" 7797 ;; 7798esac 7799fi 7800 7801MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7802if test -n "$MAGIC_CMD"; then 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7804$as_echo "$MAGIC_CMD" >&6; } 7805else 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7807$as_echo "no" >&6; } 7808fi 7809 7810 7811 7812 7813 7814if test -z "$lt_cv_path_MAGIC_CMD"; then 7815 if test -n "$ac_tool_prefix"; then 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7817$as_echo_n "checking for file... " >&6; } 7818if ${lt_cv_path_MAGIC_CMD+:} false; then : 7819 $as_echo_n "(cached) " >&6 7820else 7821 case $MAGIC_CMD in 7822[\\/*] | ?:[\\/]*) 7823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7824 ;; 7825*) 7826 lt_save_MAGIC_CMD="$MAGIC_CMD" 7827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7829 for ac_dir in $ac_dummy; do 7830 IFS="$lt_save_ifs" 7831 test -z "$ac_dir" && ac_dir=. 7832 if test -f $ac_dir/file; then 7833 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7834 if test -n "$file_magic_test_file"; then 7835 case $deplibs_check_method in 7836 "file_magic "*) 7837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7840 $EGREP "$file_magic_regex" > /dev/null; then 7841 : 7842 else 7843 cat <<_LT_EOF 1>&2 7844 7845*** Warning: the command libtool uses to detect shared libraries, 7846*** $file_magic_cmd, produces output that libtool cannot recognize. 7847*** The result is that libtool may fail to recognize shared libraries 7848*** as such. This will affect the creation of libtool libraries that 7849*** depend on shared libraries, but programs linked with such libtool 7850*** libraries will work regardless of this problem. Nevertheless, you 7851*** may want to report the problem to your system manager and/or to 7852*** bug-libtool@gnu.org 7853 7854_LT_EOF 7855 fi ;; 7856 esac 7857 fi 7858 break 7859 fi 7860 done 7861 IFS="$lt_save_ifs" 7862 MAGIC_CMD="$lt_save_MAGIC_CMD" 7863 ;; 7864esac 7865fi 7866 7867MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7868if test -n "$MAGIC_CMD"; then 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7870$as_echo "$MAGIC_CMD" >&6; } 7871else 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7873$as_echo "no" >&6; } 7874fi 7875 7876 7877 else 7878 MAGIC_CMD=: 7879 fi 7880fi 7881 7882 fi 7883 ;; 7884esac 7885 7886# Use C for the default configuration in the libtool script 7887 7888lt_save_CC="$CC" 7889ac_ext=c 7890ac_cpp='$CPP $CPPFLAGS' 7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7893ac_compiler_gnu=$ac_cv_c_compiler_gnu 7894 7895 7896# Source file extension for C test sources. 7897ac_ext=c 7898 7899# Object file extension for compiled C test sources. 7900objext=o 7901objext=$objext 7902 7903# Code to be used in simple compile tests 7904lt_simple_compile_test_code="int some_variable = 0;" 7905 7906# Code to be used in simple link tests 7907lt_simple_link_test_code='int main(){return(0);}' 7908 7909 7910 7911 7912 7913 7914 7915# If no C compiler was specified, use CC. 7916LTCC=${LTCC-"$CC"} 7917 7918# If no C compiler flags were specified, use CFLAGS. 7919LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7920 7921# Allow CC to be a program name with arguments. 7922compiler=$CC 7923 7924# Save the default compiler, since it gets overwritten when the other 7925# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7926compiler_DEFAULT=$CC 7927 7928# save warnings/boilerplate of simple test code 7929ac_outfile=conftest.$ac_objext 7930echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7931eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7932_lt_compiler_boilerplate=`cat conftest.err` 7933$RM conftest* 7934 7935ac_outfile=conftest.$ac_objext 7936echo "$lt_simple_link_test_code" >conftest.$ac_ext 7937eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7938_lt_linker_boilerplate=`cat conftest.err` 7939$RM -r conftest* 7940 7941 7942if test -n "$compiler"; then 7943 7944lt_prog_compiler_no_builtin_flag= 7945 7946if test "$GCC" = yes; then 7947 case $cc_basename in 7948 nvcc*) 7949 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7950 *) 7951 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7952 esac 7953 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7955$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7956if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7957 $as_echo_n "(cached) " >&6 7958else 7959 lt_cv_prog_compiler_rtti_exceptions=no 7960 ac_outfile=conftest.$ac_objext 7961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7962 lt_compiler_flag="-fno-rtti -fno-exceptions" 7963 # Insert the option either (1) after the last *FLAGS variable, or 7964 # (2) before a word containing "conftest.", or (3) at the end. 7965 # Note that $ac_compile itself does not contain backslashes and begins 7966 # with a dollar sign (not a hyphen), so the echo should work correctly. 7967 # The option is referenced via a variable to avoid confusing sed. 7968 lt_compile=`echo "$ac_compile" | $SED \ 7969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7971 -e 's:$: $lt_compiler_flag:'` 7972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7973 (eval "$lt_compile" 2>conftest.err) 7974 ac_status=$? 7975 cat conftest.err >&5 7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7977 if (exit $ac_status) && test -s "$ac_outfile"; then 7978 # The compiler can only warn and ignore the option if not recognized 7979 # So say no if there are warnings other than the usual output. 7980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7983 lt_cv_prog_compiler_rtti_exceptions=yes 7984 fi 7985 fi 7986 $RM conftest* 7987 7988fi 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7990$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7991 7992if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7993 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7994else 7995 : 7996fi 7997 7998fi 7999 8000 8001 8002 8003 8004 8005 lt_prog_compiler_wl= 8006lt_prog_compiler_pic= 8007lt_prog_compiler_static= 8008 8009 8010 if test "$GCC" = yes; then 8011 lt_prog_compiler_wl='-Wl,' 8012 lt_prog_compiler_static='-static' 8013 8014 case $host_os in 8015 aix*) 8016 # All AIX code is PIC. 8017 if test "$host_cpu" = ia64; then 8018 # AIX 5 now supports IA64 processor 8019 lt_prog_compiler_static='-Bstatic' 8020 fi 8021 ;; 8022 8023 amigaos*) 8024 case $host_cpu in 8025 powerpc) 8026 # see comment about AmigaOS4 .so support 8027 lt_prog_compiler_pic='-fPIC' 8028 ;; 8029 m68k) 8030 # FIXME: we need at least 68020 code to build shared libraries, but 8031 # adding the `-m68020' flag to GCC prevents building anything better, 8032 # like `-m68040'. 8033 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8034 ;; 8035 esac 8036 ;; 8037 8038 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8039 # PIC is the default for these OSes. 8040 ;; 8041 8042 mingw* | cygwin* | pw32* | os2* | cegcc*) 8043 # This hack is so that the source file can tell whether it is being 8044 # built for inclusion in a dll (and should export symbols for example). 8045 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8046 # (--disable-auto-import) libraries 8047 lt_prog_compiler_pic='-DDLL_EXPORT' 8048 ;; 8049 8050 darwin* | rhapsody*) 8051 # PIC is the default on this platform 8052 # Common symbols not allowed in MH_DYLIB files 8053 lt_prog_compiler_pic='-fno-common' 8054 ;; 8055 8056 haiku*) 8057 # PIC is the default for Haiku. 8058 # The "-static" flag exists, but is broken. 8059 lt_prog_compiler_static= 8060 ;; 8061 8062 hpux*) 8063 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8064 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8065 # sets the default TLS model and affects inlining. 8066 case $host_cpu in 8067 hppa*64*) 8068 # +Z the default 8069 ;; 8070 *) 8071 lt_prog_compiler_pic='-fPIC' 8072 ;; 8073 esac 8074 ;; 8075 8076 interix[3-9]*) 8077 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8078 # Instead, we relocate shared libraries at runtime. 8079 ;; 8080 8081 msdosdjgpp*) 8082 # Just because we use GCC doesn't mean we suddenly get shared libraries 8083 # on systems that don't support them. 8084 lt_prog_compiler_can_build_shared=no 8085 enable_shared=no 8086 ;; 8087 8088 *nto* | *qnx*) 8089 # QNX uses GNU C++, but need to define -shared option too, otherwise 8090 # it will coredump. 8091 lt_prog_compiler_pic='-fPIC -shared' 8092 ;; 8093 8094 sysv4*MP*) 8095 if test -d /usr/nec; then 8096 lt_prog_compiler_pic=-Kconform_pic 8097 fi 8098 ;; 8099 8100 *) 8101 lt_prog_compiler_pic='-fPIC' 8102 ;; 8103 esac 8104 8105 case $cc_basename in 8106 nvcc*) # Cuda Compiler Driver 2.2 8107 lt_prog_compiler_wl='-Xlinker ' 8108 if test -n "$lt_prog_compiler_pic"; then 8109 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8110 fi 8111 ;; 8112 esac 8113 else 8114 # PORTME Check for flag to pass linker flags through the system compiler. 8115 case $host_os in 8116 aix*) 8117 lt_prog_compiler_wl='-Wl,' 8118 if test "$host_cpu" = ia64; then 8119 # AIX 5 now supports IA64 processor 8120 lt_prog_compiler_static='-Bstatic' 8121 else 8122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8123 fi 8124 ;; 8125 8126 mingw* | cygwin* | pw32* | os2* | cegcc*) 8127 # This hack is so that the source file can tell whether it is being 8128 # built for inclusion in a dll (and should export symbols for example). 8129 lt_prog_compiler_pic='-DDLL_EXPORT' 8130 ;; 8131 8132 hpux9* | hpux10* | hpux11*) 8133 lt_prog_compiler_wl='-Wl,' 8134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8135 # not for PA HP-UX. 8136 case $host_cpu in 8137 hppa*64*|ia64*) 8138 # +Z the default 8139 ;; 8140 *) 8141 lt_prog_compiler_pic='+Z' 8142 ;; 8143 esac 8144 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8145 lt_prog_compiler_static='${wl}-a ${wl}archive' 8146 ;; 8147 8148 irix5* | irix6* | nonstopux*) 8149 lt_prog_compiler_wl='-Wl,' 8150 # PIC (with -KPIC) is the default. 8151 lt_prog_compiler_static='-non_shared' 8152 ;; 8153 8154 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8155 case $cc_basename in 8156 # old Intel for x86_64 which still supported -KPIC. 8157 ecc*) 8158 lt_prog_compiler_wl='-Wl,' 8159 lt_prog_compiler_pic='-KPIC' 8160 lt_prog_compiler_static='-static' 8161 ;; 8162 # icc used to be incompatible with GCC. 8163 # ICC 10 doesn't accept -KPIC any more. 8164 icc* | ifort*) 8165 lt_prog_compiler_wl='-Wl,' 8166 lt_prog_compiler_pic='-fPIC' 8167 lt_prog_compiler_static='-static' 8168 ;; 8169 # Lahey Fortran 8.1. 8170 lf95*) 8171 lt_prog_compiler_wl='-Wl,' 8172 lt_prog_compiler_pic='--shared' 8173 lt_prog_compiler_static='--static' 8174 ;; 8175 nagfor*) 8176 # NAG Fortran compiler 8177 lt_prog_compiler_wl='-Wl,-Wl,,' 8178 lt_prog_compiler_pic='-PIC' 8179 lt_prog_compiler_static='-Bstatic' 8180 ;; 8181 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8182 # Portland Group compilers (*not* the Pentium gcc compiler, 8183 # which looks to be a dead project) 8184 lt_prog_compiler_wl='-Wl,' 8185 lt_prog_compiler_pic='-fpic' 8186 lt_prog_compiler_static='-Bstatic' 8187 ;; 8188 ccc*) 8189 lt_prog_compiler_wl='-Wl,' 8190 # All Alpha code is PIC. 8191 lt_prog_compiler_static='-non_shared' 8192 ;; 8193 xl* | bgxl* | bgf* | mpixl*) 8194 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8195 lt_prog_compiler_wl='-Wl,' 8196 lt_prog_compiler_pic='-qpic' 8197 lt_prog_compiler_static='-qstaticlink' 8198 ;; 8199 *) 8200 case `$CC -V 2>&1 | sed 5q` in 8201 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8202 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8203 lt_prog_compiler_pic='-KPIC' 8204 lt_prog_compiler_static='-Bstatic' 8205 lt_prog_compiler_wl='' 8206 ;; 8207 *Sun\ F* | *Sun*Fortran*) 8208 lt_prog_compiler_pic='-KPIC' 8209 lt_prog_compiler_static='-Bstatic' 8210 lt_prog_compiler_wl='-Qoption ld ' 8211 ;; 8212 *Sun\ C*) 8213 # Sun C 5.9 8214 lt_prog_compiler_pic='-KPIC' 8215 lt_prog_compiler_static='-Bstatic' 8216 lt_prog_compiler_wl='-Wl,' 8217 ;; 8218 *Intel*\ [CF]*Compiler*) 8219 lt_prog_compiler_wl='-Wl,' 8220 lt_prog_compiler_pic='-fPIC' 8221 lt_prog_compiler_static='-static' 8222 ;; 8223 *Portland\ Group*) 8224 lt_prog_compiler_wl='-Wl,' 8225 lt_prog_compiler_pic='-fpic' 8226 lt_prog_compiler_static='-Bstatic' 8227 ;; 8228 esac 8229 ;; 8230 esac 8231 ;; 8232 8233 newsos6) 8234 lt_prog_compiler_pic='-KPIC' 8235 lt_prog_compiler_static='-Bstatic' 8236 ;; 8237 8238 *nto* | *qnx*) 8239 # QNX uses GNU C++, but need to define -shared option too, otherwise 8240 # it will coredump. 8241 lt_prog_compiler_pic='-fPIC -shared' 8242 ;; 8243 8244 osf3* | osf4* | osf5*) 8245 lt_prog_compiler_wl='-Wl,' 8246 # All OSF/1 code is PIC. 8247 lt_prog_compiler_static='-non_shared' 8248 ;; 8249 8250 rdos*) 8251 lt_prog_compiler_static='-non_shared' 8252 ;; 8253 8254 solaris*) 8255 lt_prog_compiler_pic='-KPIC' 8256 lt_prog_compiler_static='-Bstatic' 8257 case $cc_basename in 8258 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8259 lt_prog_compiler_wl='-Qoption ld ';; 8260 *) 8261 lt_prog_compiler_wl='-Wl,';; 8262 esac 8263 ;; 8264 8265 sunos4*) 8266 lt_prog_compiler_wl='-Qoption ld ' 8267 lt_prog_compiler_pic='-PIC' 8268 lt_prog_compiler_static='-Bstatic' 8269 ;; 8270 8271 sysv4 | sysv4.2uw2* | sysv4.3*) 8272 lt_prog_compiler_wl='-Wl,' 8273 lt_prog_compiler_pic='-KPIC' 8274 lt_prog_compiler_static='-Bstatic' 8275 ;; 8276 8277 sysv4*MP*) 8278 if test -d /usr/nec ;then 8279 lt_prog_compiler_pic='-Kconform_pic' 8280 lt_prog_compiler_static='-Bstatic' 8281 fi 8282 ;; 8283 8284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8285 lt_prog_compiler_wl='-Wl,' 8286 lt_prog_compiler_pic='-KPIC' 8287 lt_prog_compiler_static='-Bstatic' 8288 ;; 8289 8290 unicos*) 8291 lt_prog_compiler_wl='-Wl,' 8292 lt_prog_compiler_can_build_shared=no 8293 ;; 8294 8295 uts4*) 8296 lt_prog_compiler_pic='-pic' 8297 lt_prog_compiler_static='-Bstatic' 8298 ;; 8299 8300 *) 8301 lt_prog_compiler_can_build_shared=no 8302 ;; 8303 esac 8304 fi 8305 8306case $host_os in 8307 # For platforms which do not support PIC, -DPIC is meaningless: 8308 *djgpp*) 8309 lt_prog_compiler_pic= 8310 ;; 8311 *) 8312 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8313 ;; 8314esac 8315 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8317$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8318if ${lt_cv_prog_compiler_pic+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8322fi 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8324$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8325lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8326 8327# 8328# Check to make sure the PIC flag actually works. 8329# 8330if test -n "$lt_prog_compiler_pic"; then 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8332$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8333if ${lt_cv_prog_compiler_pic_works+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335else 8336 lt_cv_prog_compiler_pic_works=no 8337 ac_outfile=conftest.$ac_objext 8338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8339 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8340 # Insert the option either (1) after the last *FLAGS variable, or 8341 # (2) before a word containing "conftest.", or (3) at the end. 8342 # Note that $ac_compile itself does not contain backslashes and begins 8343 # with a dollar sign (not a hyphen), so the echo should work correctly. 8344 # The option is referenced via a variable to avoid confusing sed. 8345 lt_compile=`echo "$ac_compile" | $SED \ 8346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8348 -e 's:$: $lt_compiler_flag:'` 8349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8350 (eval "$lt_compile" 2>conftest.err) 8351 ac_status=$? 8352 cat conftest.err >&5 8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 if (exit $ac_status) && test -s "$ac_outfile"; then 8355 # The compiler can only warn and ignore the option if not recognized 8356 # So say no if there are warnings other than the usual output. 8357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8360 lt_cv_prog_compiler_pic_works=yes 8361 fi 8362 fi 8363 $RM conftest* 8364 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8367$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8368 8369if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8370 case $lt_prog_compiler_pic in 8371 "" | " "*) ;; 8372 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8373 esac 8374else 8375 lt_prog_compiler_pic= 8376 lt_prog_compiler_can_build_shared=no 8377fi 8378 8379fi 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391# 8392# Check to make sure the static flag actually works. 8393# 8394wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8396$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8397if ${lt_cv_prog_compiler_static_works+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 lt_cv_prog_compiler_static_works=no 8401 save_LDFLAGS="$LDFLAGS" 8402 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8403 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8405 # The linker can only warn and ignore the option if not recognized 8406 # So say no if there are warnings 8407 if test -s conftest.err; then 8408 # Append any errors to the config.log. 8409 cat conftest.err 1>&5 8410 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8412 if diff conftest.exp conftest.er2 >/dev/null; then 8413 lt_cv_prog_compiler_static_works=yes 8414 fi 8415 else 8416 lt_cv_prog_compiler_static_works=yes 8417 fi 8418 fi 8419 $RM -r conftest* 8420 LDFLAGS="$save_LDFLAGS" 8421 8422fi 8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8424$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8425 8426if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8427 : 8428else 8429 lt_prog_compiler_static= 8430fi 8431 8432 8433 8434 8435 8436 8437 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8439$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8440if ${lt_cv_prog_compiler_c_o+:} false; then : 8441 $as_echo_n "(cached) " >&6 8442else 8443 lt_cv_prog_compiler_c_o=no 8444 $RM -r conftest 2>/dev/null 8445 mkdir conftest 8446 cd conftest 8447 mkdir out 8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8449 8450 lt_compiler_flag="-o out/conftest2.$ac_objext" 8451 # Insert the option either (1) after the last *FLAGS variable, or 8452 # (2) before a word containing "conftest.", or (3) at the end. 8453 # Note that $ac_compile itself does not contain backslashes and begins 8454 # with a dollar sign (not a hyphen), so the echo should work correctly. 8455 lt_compile=`echo "$ac_compile" | $SED \ 8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8458 -e 's:$: $lt_compiler_flag:'` 8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8460 (eval "$lt_compile" 2>out/conftest.err) 8461 ac_status=$? 8462 cat out/conftest.err >&5 8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8464 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8465 then 8466 # The compiler can only warn and ignore the option if not recognized 8467 # So say no if there are warnings 8468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8471 lt_cv_prog_compiler_c_o=yes 8472 fi 8473 fi 8474 chmod u+w . 2>&5 8475 $RM conftest* 8476 # SGI C++ compiler will create directory out/ii_files/ for 8477 # template instantiation 8478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8479 $RM out/* && rmdir out 8480 cd .. 8481 $RM -r conftest 8482 $RM conftest* 8483 8484fi 8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8486$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8487 8488 8489 8490 8491 8492 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8494$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8495if ${lt_cv_prog_compiler_c_o+:} false; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 lt_cv_prog_compiler_c_o=no 8499 $RM -r conftest 2>/dev/null 8500 mkdir conftest 8501 cd conftest 8502 mkdir out 8503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8504 8505 lt_compiler_flag="-o out/conftest2.$ac_objext" 8506 # Insert the option either (1) after the last *FLAGS variable, or 8507 # (2) before a word containing "conftest.", or (3) at the end. 8508 # Note that $ac_compile itself does not contain backslashes and begins 8509 # with a dollar sign (not a hyphen), so the echo should work correctly. 8510 lt_compile=`echo "$ac_compile" | $SED \ 8511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8513 -e 's:$: $lt_compiler_flag:'` 8514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8515 (eval "$lt_compile" 2>out/conftest.err) 8516 ac_status=$? 8517 cat out/conftest.err >&5 8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8520 then 8521 # The compiler can only warn and ignore the option if not recognized 8522 # So say no if there are warnings 8523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8526 lt_cv_prog_compiler_c_o=yes 8527 fi 8528 fi 8529 chmod u+w . 2>&5 8530 $RM conftest* 8531 # SGI C++ compiler will create directory out/ii_files/ for 8532 # template instantiation 8533 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8534 $RM out/* && rmdir out 8535 cd .. 8536 $RM -r conftest 8537 $RM conftest* 8538 8539fi 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8541$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8542 8543 8544 8545 8546hard_links="nottested" 8547if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8548 # do not overwrite the value of need_locks provided by the user 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8550$as_echo_n "checking if we can lock with hard links... " >&6; } 8551 hard_links=yes 8552 $RM conftest* 8553 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8554 touch conftest.a 8555 ln conftest.a conftest.b 2>&5 || hard_links=no 8556 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8558$as_echo "$hard_links" >&6; } 8559 if test "$hard_links" = no; then 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8561$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8562 need_locks=warn 8563 fi 8564else 8565 need_locks=no 8566fi 8567 8568 8569 8570 8571 8572 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8574$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8575 8576 runpath_var= 8577 allow_undefined_flag= 8578 always_export_symbols=no 8579 archive_cmds= 8580 archive_expsym_cmds= 8581 compiler_needs_object=no 8582 enable_shared_with_static_runtimes=no 8583 export_dynamic_flag_spec= 8584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8585 hardcode_automatic=no 8586 hardcode_direct=no 8587 hardcode_direct_absolute=no 8588 hardcode_libdir_flag_spec= 8589 hardcode_libdir_separator= 8590 hardcode_minus_L=no 8591 hardcode_shlibpath_var=unsupported 8592 inherit_rpath=no 8593 link_all_deplibs=unknown 8594 module_cmds= 8595 module_expsym_cmds= 8596 old_archive_from_new_cmds= 8597 old_archive_from_expsyms_cmds= 8598 thread_safe_flag_spec= 8599 whole_archive_flag_spec= 8600 # include_expsyms should be a list of space-separated symbols to be *always* 8601 # included in the symbol list 8602 include_expsyms= 8603 # exclude_expsyms can be an extended regexp of symbols to exclude 8604 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8606 # as well as any symbol that contains `d'. 8607 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8609 # platforms (ab)use it in PIC code, but their linkers get confused if 8610 # the symbol is explicitly referenced. Since portable code cannot 8611 # rely on this symbol name, it's probably fine to never include it in 8612 # preloaded symbol tables. 8613 # Exclude shared library initialization/finalization symbols. 8614 extract_expsyms_cmds= 8615 8616 case $host_os in 8617 cygwin* | mingw* | pw32* | cegcc*) 8618 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8619 # When not using gcc, we currently assume that we are using 8620 # Microsoft Visual C++. 8621 if test "$GCC" != yes; then 8622 with_gnu_ld=no 8623 fi 8624 ;; 8625 interix*) 8626 # we just hope/assume this is gcc and not c89 (= MSVC++) 8627 with_gnu_ld=yes 8628 ;; 8629 openbsd*) 8630 with_gnu_ld=no 8631 ;; 8632 esac 8633 8634 ld_shlibs=yes 8635 8636 # On some targets, GNU ld is compatible enough with the native linker 8637 # that we're better off using the native interface for both. 8638 lt_use_gnu_ld_interface=no 8639 if test "$with_gnu_ld" = yes; then 8640 case $host_os in 8641 aix*) 8642 # The AIX port of GNU ld has always aspired to compatibility 8643 # with the native linker. However, as the warning in the GNU ld 8644 # block says, versions before 2.19.5* couldn't really create working 8645 # shared libraries, regardless of the interface used. 8646 case `$LD -v 2>&1` in 8647 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8648 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8649 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8650 *) 8651 lt_use_gnu_ld_interface=yes 8652 ;; 8653 esac 8654 ;; 8655 *) 8656 lt_use_gnu_ld_interface=yes 8657 ;; 8658 esac 8659 fi 8660 8661 if test "$lt_use_gnu_ld_interface" = yes; then 8662 # If archive_cmds runs LD, not CC, wlarc should be empty 8663 wlarc='${wl}' 8664 8665 # Set some defaults for GNU ld with shared library support. These 8666 # are reset later if shared libraries are not supported. Putting them 8667 # here allows them to be overridden if necessary. 8668 runpath_var=LD_RUN_PATH 8669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8670 export_dynamic_flag_spec='${wl}--export-dynamic' 8671 # ancient GNU ld didn't support --whole-archive et. al. 8672 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8673 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8674 else 8675 whole_archive_flag_spec= 8676 fi 8677 supports_anon_versioning=no 8678 case `$LD -v 2>&1` in 8679 *GNU\ gold*) supports_anon_versioning=yes ;; 8680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8683 *\ 2.11.*) ;; # other 2.11 versions 8684 *) supports_anon_versioning=yes ;; 8685 esac 8686 8687 # See if GNU ld supports shared libraries. 8688 case $host_os in 8689 aix[3-9]*) 8690 # On AIX/PPC, the GNU linker is very broken 8691 if test "$host_cpu" != ia64; then 8692 ld_shlibs=no 8693 cat <<_LT_EOF 1>&2 8694 8695*** Warning: the GNU linker, at least up to release 2.19, is reported 8696*** to be unable to reliably create shared libraries on AIX. 8697*** Therefore, libtool is disabling shared libraries support. If you 8698*** really care for shared libraries, you may want to install binutils 8699*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8700*** You will then need to restart the configuration process. 8701 8702_LT_EOF 8703 fi 8704 ;; 8705 8706 amigaos*) 8707 case $host_cpu in 8708 powerpc) 8709 # see comment about AmigaOS4 .so support 8710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8711 archive_expsym_cmds='' 8712 ;; 8713 m68k) 8714 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)' 8715 hardcode_libdir_flag_spec='-L$libdir' 8716 hardcode_minus_L=yes 8717 ;; 8718 esac 8719 ;; 8720 8721 beos*) 8722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8723 allow_undefined_flag=unsupported 8724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8725 # support --undefined. This deserves some investigation. FIXME 8726 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8727 else 8728 ld_shlibs=no 8729 fi 8730 ;; 8731 8732 cygwin* | mingw* | pw32* | cegcc*) 8733 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8734 # as there is no search path for DLLs. 8735 hardcode_libdir_flag_spec='-L$libdir' 8736 export_dynamic_flag_spec='${wl}--export-all-symbols' 8737 allow_undefined_flag=unsupported 8738 always_export_symbols=no 8739 enable_shared_with_static_runtimes=yes 8740 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' 8741 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8742 8743 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8745 # If the export-symbols file already is a .def file (1st line 8746 # is EXPORTS), use it as is; otherwise, prepend... 8747 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8748 cp $export_symbols $output_objdir/$soname.def; 8749 else 8750 echo EXPORTS > $output_objdir/$soname.def; 8751 cat $export_symbols >> $output_objdir/$soname.def; 8752 fi~ 8753 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8754 else 8755 ld_shlibs=no 8756 fi 8757 ;; 8758 8759 haiku*) 8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8761 link_all_deplibs=yes 8762 ;; 8763 8764 interix[3-9]*) 8765 hardcode_direct=no 8766 hardcode_shlibpath_var=no 8767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8768 export_dynamic_flag_spec='${wl}-E' 8769 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8770 # Instead, shared libraries are loaded at an image base (0x10000000 by 8771 # default) and relocated if they conflict, which is a slow very memory 8772 # consuming and fragmenting process. To avoid this, we pick a random, 8773 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8774 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8775 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8776 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' 8777 ;; 8778 8779 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8780 tmp_diet=no 8781 if test "$host_os" = linux-dietlibc; then 8782 case $cc_basename in 8783 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8784 esac 8785 fi 8786 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8787 && test "$tmp_diet" = no 8788 then 8789 tmp_addflag=' $pic_flag' 8790 tmp_sharedflag='-shared' 8791 case $cc_basename,$host_cpu in 8792 pgcc*) # Portland Group C compiler 8793 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' 8794 tmp_addflag=' $pic_flag' 8795 ;; 8796 pgf77* | pgf90* | pgf95* | pgfortran*) 8797 # Portland Group f77 and f90 compilers 8798 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' 8799 tmp_addflag=' $pic_flag -Mnomain' ;; 8800 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8801 tmp_addflag=' -i_dynamic' ;; 8802 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8803 tmp_addflag=' -i_dynamic -nofor_main' ;; 8804 ifc* | ifort*) # Intel Fortran compiler 8805 tmp_addflag=' -nofor_main' ;; 8806 lf95*) # Lahey Fortran 8.1 8807 whole_archive_flag_spec= 8808 tmp_sharedflag='--shared' ;; 8809 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8810 tmp_sharedflag='-qmkshrobj' 8811 tmp_addflag= ;; 8812 nvcc*) # Cuda Compiler Driver 2.2 8813 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' 8814 compiler_needs_object=yes 8815 ;; 8816 esac 8817 case `$CC -V 2>&1 | sed 5q` in 8818 *Sun\ C*) # Sun C 5.9 8819 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' 8820 compiler_needs_object=yes 8821 tmp_sharedflag='-G' ;; 8822 *Sun\ F*) # Sun Fortran 8.3 8823 tmp_sharedflag='-G' ;; 8824 esac 8825 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8826 8827 if test "x$supports_anon_versioning" = xyes; then 8828 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8829 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8830 echo "local: *; };" >> $output_objdir/$libname.ver~ 8831 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8832 fi 8833 8834 case $cc_basename in 8835 xlf* | bgf* | bgxlf* | mpixlf*) 8836 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8837 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8839 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8840 if test "x$supports_anon_versioning" = xyes; then 8841 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8843 echo "local: *; };" >> $output_objdir/$libname.ver~ 8844 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8845 fi 8846 ;; 8847 esac 8848 else 8849 ld_shlibs=no 8850 fi 8851 ;; 8852 8853 netbsd*) 8854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8855 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8856 wlarc= 8857 else 8858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8859 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8860 fi 8861 ;; 8862 8863 solaris*) 8864 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8865 ld_shlibs=no 8866 cat <<_LT_EOF 1>&2 8867 8868*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8869*** create shared libraries on Solaris systems. Therefore, libtool 8870*** is disabling shared libraries support. We urge you to upgrade GNU 8871*** binutils to release 2.9.1 or newer. Another option is to modify 8872*** your PATH or compiler configuration so that the native linker is 8873*** used, and then restart. 8874 8875_LT_EOF 8876 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8878 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8879 else 8880 ld_shlibs=no 8881 fi 8882 ;; 8883 8884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8885 case `$LD -v 2>&1` in 8886 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8887 ld_shlibs=no 8888 cat <<_LT_EOF 1>&2 8889 8890*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8891*** reliably create shared libraries on SCO systems. Therefore, libtool 8892*** is disabling shared libraries support. We urge you to upgrade GNU 8893*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8894*** your PATH or compiler configuration so that the native linker is 8895*** used, and then restart. 8896 8897_LT_EOF 8898 ;; 8899 *) 8900 # For security reasons, it is highly recommended that you always 8901 # use absolute paths for naming shared libraries, and exclude the 8902 # DT_RUNPATH tag from executables and libraries. But doing so 8903 # requires that you compile everything twice, which is a pain. 8904 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8908 else 8909 ld_shlibs=no 8910 fi 8911 ;; 8912 esac 8913 ;; 8914 8915 sunos4*) 8916 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8917 wlarc= 8918 hardcode_direct=yes 8919 hardcode_shlibpath_var=no 8920 ;; 8921 8922 *) 8923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8925 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8926 else 8927 ld_shlibs=no 8928 fi 8929 ;; 8930 esac 8931 8932 if test "$ld_shlibs" = no; then 8933 runpath_var= 8934 hardcode_libdir_flag_spec= 8935 export_dynamic_flag_spec= 8936 whole_archive_flag_spec= 8937 fi 8938 else 8939 # PORTME fill in a description of your system's linker (not GNU ld) 8940 case $host_os in 8941 aix3*) 8942 allow_undefined_flag=unsupported 8943 always_export_symbols=yes 8944 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' 8945 # Note: this linker hardcodes the directories in LIBPATH if there 8946 # are no directories specified by -L. 8947 hardcode_minus_L=yes 8948 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8949 # Neither direct hardcoding nor static linking is supported with a 8950 # broken collect2. 8951 hardcode_direct=unsupported 8952 fi 8953 ;; 8954 8955 aix[4-9]*) 8956 if test "$host_cpu" = ia64; then 8957 # On IA64, the linker does run time linking by default, so we don't 8958 # have to do anything special. 8959 aix_use_runtimelinking=no 8960 exp_sym_flag='-Bexport' 8961 no_entry_flag="" 8962 else 8963 # If we're using GNU nm, then we don't want the "-C" option. 8964 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8965 # Also, AIX nm treats weak defined symbols like other global 8966 # defined symbols, whereas GNU nm marks them as "W". 8967 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8968 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' 8969 else 8970 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' 8971 fi 8972 aix_use_runtimelinking=no 8973 8974 # Test if we are trying to use run time linking or normal 8975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8976 # need to do runtime linking. 8977 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8978 for ld_flag in $LDFLAGS; do 8979 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8980 aix_use_runtimelinking=yes 8981 break 8982 fi 8983 done 8984 ;; 8985 esac 8986 8987 exp_sym_flag='-bexport' 8988 no_entry_flag='-bnoentry' 8989 fi 8990 8991 # When large executables or shared objects are built, AIX ld can 8992 # have problems creating the table of contents. If linking a library 8993 # or program results in "error TOC overflow" add -mminimal-toc to 8994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8996 8997 archive_cmds='' 8998 hardcode_direct=yes 8999 hardcode_direct_absolute=yes 9000 hardcode_libdir_separator=':' 9001 link_all_deplibs=yes 9002 file_list_spec='${wl}-f,' 9003 9004 if test "$GCC" = yes; then 9005 case $host_os in aix4.[012]|aix4.[012].*) 9006 # We only want to do this on AIX 4.2 and lower, the check 9007 # below for broken collect2 doesn't work under 4.3+ 9008 collect2name=`${CC} -print-prog-name=collect2` 9009 if test -f "$collect2name" && 9010 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9011 then 9012 # We have reworked collect2 9013 : 9014 else 9015 # We have old collect2 9016 hardcode_direct=unsupported 9017 # It fails to find uninstalled libraries when the uninstalled 9018 # path is not listed in the libpath. Setting hardcode_minus_L 9019 # to unsupported forces relinking 9020 hardcode_minus_L=yes 9021 hardcode_libdir_flag_spec='-L$libdir' 9022 hardcode_libdir_separator= 9023 fi 9024 ;; 9025 esac 9026 shared_flag='-shared' 9027 if test "$aix_use_runtimelinking" = yes; then 9028 shared_flag="$shared_flag "'${wl}-G' 9029 fi 9030 else 9031 # not using gcc 9032 if test "$host_cpu" = ia64; then 9033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9034 # chokes on -Wl,-G. The following line is correct: 9035 shared_flag='-G' 9036 else 9037 if test "$aix_use_runtimelinking" = yes; then 9038 shared_flag='${wl}-G' 9039 else 9040 shared_flag='${wl}-bM:SRE' 9041 fi 9042 fi 9043 fi 9044 9045 export_dynamic_flag_spec='${wl}-bexpall' 9046 # It seems that -bexpall does not export symbols beginning with 9047 # underscore (_), so it is better to generate a list of symbols to export. 9048 always_export_symbols=yes 9049 if test "$aix_use_runtimelinking" = yes; then 9050 # Warning - without using the other runtime loading flags (-brtl), 9051 # -berok will link without error, but may produce a broken library. 9052 allow_undefined_flag='-berok' 9053 # Determine the default libpath from the value encoded in an 9054 # empty executable. 9055 if test "${lt_cv_aix_libpath+set}" = set; then 9056 aix_libpath=$lt_cv_aix_libpath 9057else 9058 if ${lt_cv_aix_libpath_+:} false; then : 9059 $as_echo_n "(cached) " >&6 9060else 9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063 9064int 9065main () 9066{ 9067 9068 ; 9069 return 0; 9070} 9071_ACEOF 9072if ac_fn_c_try_link "$LINENO"; then : 9073 9074 lt_aix_libpath_sed=' 9075 /Import File Strings/,/^$/ { 9076 /^0/ { 9077 s/^0 *\([^ ]*\) *$/\1/ 9078 p 9079 } 9080 }' 9081 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9082 # Check for a 64-bit object if we didn't find anything. 9083 if test -z "$lt_cv_aix_libpath_"; then 9084 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9085 fi 9086fi 9087rm -f core conftest.err conftest.$ac_objext \ 9088 conftest$ac_exeext conftest.$ac_ext 9089 if test -z "$lt_cv_aix_libpath_"; then 9090 lt_cv_aix_libpath_="/usr/lib:/lib" 9091 fi 9092 9093fi 9094 9095 aix_libpath=$lt_cv_aix_libpath_ 9096fi 9097 9098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9099 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" 9100 else 9101 if test "$host_cpu" = ia64; then 9102 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9103 allow_undefined_flag="-z nodefs" 9104 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" 9105 else 9106 # Determine the default libpath from the value encoded in an 9107 # empty executable. 9108 if test "${lt_cv_aix_libpath+set}" = set; then 9109 aix_libpath=$lt_cv_aix_libpath 9110else 9111 if ${lt_cv_aix_libpath_+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113else 9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9115/* end confdefs.h. */ 9116 9117int 9118main () 9119{ 9120 9121 ; 9122 return 0; 9123} 9124_ACEOF 9125if ac_fn_c_try_link "$LINENO"; then : 9126 9127 lt_aix_libpath_sed=' 9128 /Import File Strings/,/^$/ { 9129 /^0/ { 9130 s/^0 *\([^ ]*\) *$/\1/ 9131 p 9132 } 9133 }' 9134 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9135 # Check for a 64-bit object if we didn't find anything. 9136 if test -z "$lt_cv_aix_libpath_"; then 9137 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9138 fi 9139fi 9140rm -f core conftest.err conftest.$ac_objext \ 9141 conftest$ac_exeext conftest.$ac_ext 9142 if test -z "$lt_cv_aix_libpath_"; then 9143 lt_cv_aix_libpath_="/usr/lib:/lib" 9144 fi 9145 9146fi 9147 9148 aix_libpath=$lt_cv_aix_libpath_ 9149fi 9150 9151 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9152 # Warning - without using the other run time loading flags, 9153 # -berok will link without error, but may produce a broken library. 9154 no_undefined_flag=' ${wl}-bernotok' 9155 allow_undefined_flag=' ${wl}-berok' 9156 if test "$with_gnu_ld" = yes; then 9157 # We only use this code for GNU lds that support --whole-archive. 9158 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9159 else 9160 # Exported symbols can be pulled into shared objects from archives 9161 whole_archive_flag_spec='$convenience' 9162 fi 9163 archive_cmds_need_lc=yes 9164 # This is similar to how AIX traditionally builds its shared libraries. 9165 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' 9166 fi 9167 fi 9168 ;; 9169 9170 amigaos*) 9171 case $host_cpu in 9172 powerpc) 9173 # see comment about AmigaOS4 .so support 9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9175 archive_expsym_cmds='' 9176 ;; 9177 m68k) 9178 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)' 9179 hardcode_libdir_flag_spec='-L$libdir' 9180 hardcode_minus_L=yes 9181 ;; 9182 esac 9183 ;; 9184 9185 bsdi[45]*) 9186 export_dynamic_flag_spec=-rdynamic 9187 ;; 9188 9189 cygwin* | mingw* | pw32* | cegcc*) 9190 # When not using gcc, we currently assume that we are using 9191 # Microsoft Visual C++. 9192 # hardcode_libdir_flag_spec is actually meaningless, as there is 9193 # no search path for DLLs. 9194 case $cc_basename in 9195 cl*) 9196 # Native MSVC 9197 hardcode_libdir_flag_spec=' ' 9198 allow_undefined_flag=unsupported 9199 always_export_symbols=yes 9200 file_list_spec='@' 9201 # Tell ltmain to make .lib files, not .a files. 9202 libext=lib 9203 # Tell ltmain to make .dll files, not .so files. 9204 shrext_cmds=".dll" 9205 # FIXME: Setting linknames here is a bad hack. 9206 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9207 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9208 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9209 else 9210 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9211 fi~ 9212 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9213 linknames=' 9214 # The linker will not automatically build a static lib if we build a DLL. 9215 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9216 enable_shared_with_static_runtimes=yes 9217 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9219 # Don't use ranlib 9220 old_postinstall_cmds='chmod 644 $oldlib' 9221 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9222 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9223 case $lt_outputfile in 9224 *.exe|*.EXE) ;; 9225 *) 9226 lt_outputfile="$lt_outputfile.exe" 9227 lt_tool_outputfile="$lt_tool_outputfile.exe" 9228 ;; 9229 esac~ 9230 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9231 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9232 $RM "$lt_outputfile.manifest"; 9233 fi' 9234 ;; 9235 *) 9236 # Assume MSVC wrapper 9237 hardcode_libdir_flag_spec=' ' 9238 allow_undefined_flag=unsupported 9239 # Tell ltmain to make .lib files, not .a files. 9240 libext=lib 9241 # Tell ltmain to make .dll files, not .so files. 9242 shrext_cmds=".dll" 9243 # FIXME: Setting linknames here is a bad hack. 9244 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9245 # The linker will automatically build a .lib file if we build a DLL. 9246 old_archive_from_new_cmds='true' 9247 # FIXME: Should let the user specify the lib program. 9248 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9249 enable_shared_with_static_runtimes=yes 9250 ;; 9251 esac 9252 ;; 9253 9254 darwin* | rhapsody*) 9255 9256 9257 archive_cmds_need_lc=no 9258 hardcode_direct=no 9259 hardcode_automatic=yes 9260 hardcode_shlibpath_var=unsupported 9261 if test "$lt_cv_ld_force_load" = "yes"; then 9262 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\"`' 9263 9264 else 9265 whole_archive_flag_spec='' 9266 fi 9267 link_all_deplibs=yes 9268 allow_undefined_flag="$_lt_dar_allow_undefined" 9269 case $cc_basename in 9270 ifort*) _lt_dar_can_shared=yes ;; 9271 *) _lt_dar_can_shared=$GCC ;; 9272 esac 9273 if test "$_lt_dar_can_shared" = "yes"; then 9274 output_verbose_link_cmd=func_echo_all 9275 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9276 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9277 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}" 9278 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}" 9279 9280 else 9281 ld_shlibs=no 9282 fi 9283 9284 ;; 9285 9286 dgux*) 9287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9288 hardcode_libdir_flag_spec='-L$libdir' 9289 hardcode_shlibpath_var=no 9290 ;; 9291 9292 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9293 # support. Future versions do this automatically, but an explicit c++rt0.o 9294 # does not break anything, and helps significantly (at the cost of a little 9295 # extra space). 9296 freebsd2.2*) 9297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9298 hardcode_libdir_flag_spec='-R$libdir' 9299 hardcode_direct=yes 9300 hardcode_shlibpath_var=no 9301 ;; 9302 9303 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9304 freebsd2.*) 9305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9306 hardcode_direct=yes 9307 hardcode_minus_L=yes 9308 hardcode_shlibpath_var=no 9309 ;; 9310 9311 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9312 freebsd* | dragonfly*) 9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9314 hardcode_libdir_flag_spec='-R$libdir' 9315 hardcode_direct=yes 9316 hardcode_shlibpath_var=no 9317 ;; 9318 9319 hpux9*) 9320 if test "$GCC" = yes; then 9321 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' 9322 else 9323 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' 9324 fi 9325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9326 hardcode_libdir_separator=: 9327 hardcode_direct=yes 9328 9329 # hardcode_minus_L: Not really in the search PATH, 9330 # but as the default location of the library. 9331 hardcode_minus_L=yes 9332 export_dynamic_flag_spec='${wl}-E' 9333 ;; 9334 9335 hpux10*) 9336 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9337 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9338 else 9339 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9340 fi 9341 if test "$with_gnu_ld" = no; then 9342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9343 hardcode_libdir_separator=: 9344 hardcode_direct=yes 9345 hardcode_direct_absolute=yes 9346 export_dynamic_flag_spec='${wl}-E' 9347 # hardcode_minus_L: Not really in the search PATH, 9348 # but as the default location of the library. 9349 hardcode_minus_L=yes 9350 fi 9351 ;; 9352 9353 hpux11*) 9354 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9355 case $host_cpu in 9356 hppa*64*) 9357 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9358 ;; 9359 ia64*) 9360 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9361 ;; 9362 *) 9363 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9364 ;; 9365 esac 9366 else 9367 case $host_cpu in 9368 hppa*64*) 9369 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9370 ;; 9371 ia64*) 9372 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9373 ;; 9374 *) 9375 9376 # Older versions of the 11.00 compiler do not understand -b yet 9377 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9379$as_echo_n "checking if $CC understands -b... " >&6; } 9380if ${lt_cv_prog_compiler__b+:} false; then : 9381 $as_echo_n "(cached) " >&6 9382else 9383 lt_cv_prog_compiler__b=no 9384 save_LDFLAGS="$LDFLAGS" 9385 LDFLAGS="$LDFLAGS -b" 9386 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9387 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9388 # The linker can only warn and ignore the option if not recognized 9389 # So say no if there are warnings 9390 if test -s conftest.err; then 9391 # Append any errors to the config.log. 9392 cat conftest.err 1>&5 9393 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9395 if diff conftest.exp conftest.er2 >/dev/null; then 9396 lt_cv_prog_compiler__b=yes 9397 fi 9398 else 9399 lt_cv_prog_compiler__b=yes 9400 fi 9401 fi 9402 $RM -r conftest* 9403 LDFLAGS="$save_LDFLAGS" 9404 9405fi 9406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9407$as_echo "$lt_cv_prog_compiler__b" >&6; } 9408 9409if test x"$lt_cv_prog_compiler__b" = xyes; then 9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9411else 9412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9413fi 9414 9415 ;; 9416 esac 9417 fi 9418 if test "$with_gnu_ld" = no; then 9419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9420 hardcode_libdir_separator=: 9421 9422 case $host_cpu in 9423 hppa*64*|ia64*) 9424 hardcode_direct=no 9425 hardcode_shlibpath_var=no 9426 ;; 9427 *) 9428 hardcode_direct=yes 9429 hardcode_direct_absolute=yes 9430 export_dynamic_flag_spec='${wl}-E' 9431 9432 # hardcode_minus_L: Not really in the search PATH, 9433 # but as the default location of the library. 9434 hardcode_minus_L=yes 9435 ;; 9436 esac 9437 fi 9438 ;; 9439 9440 irix5* | irix6* | nonstopux*) 9441 if test "$GCC" = yes; then 9442 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' 9443 # Try to use the -exported_symbol ld option, if it does not 9444 # work, assume that -exports_file does not work either and 9445 # implicitly export all symbols. 9446 # This should be the same for all languages, so no per-tag cache variable. 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9448$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9449if ${lt_cv_irix_exported_symbol+:} false; then : 9450 $as_echo_n "(cached) " >&6 9451else 9452 save_LDFLAGS="$LDFLAGS" 9453 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455/* end confdefs.h. */ 9456int foo (void) { return 0; } 9457_ACEOF 9458if ac_fn_c_try_link "$LINENO"; then : 9459 lt_cv_irix_exported_symbol=yes 9460else 9461 lt_cv_irix_exported_symbol=no 9462fi 9463rm -f core conftest.err conftest.$ac_objext \ 9464 conftest$ac_exeext conftest.$ac_ext 9465 LDFLAGS="$save_LDFLAGS" 9466fi 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9468$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9469 if test "$lt_cv_irix_exported_symbol" = yes; then 9470 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' 9471 fi 9472 else 9473 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' 9474 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' 9475 fi 9476 archive_cmds_need_lc='no' 9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9478 hardcode_libdir_separator=: 9479 inherit_rpath=yes 9480 link_all_deplibs=yes 9481 ;; 9482 9483 netbsd*) 9484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9486 else 9487 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9488 fi 9489 hardcode_libdir_flag_spec='-R$libdir' 9490 hardcode_direct=yes 9491 hardcode_shlibpath_var=no 9492 ;; 9493 9494 newsos6) 9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9496 hardcode_direct=yes 9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9498 hardcode_libdir_separator=: 9499 hardcode_shlibpath_var=no 9500 ;; 9501 9502 *nto* | *qnx*) 9503 ;; 9504 9505 openbsd*) 9506 if test -f /usr/libexec/ld.so; then 9507 hardcode_direct=yes 9508 hardcode_shlibpath_var=no 9509 hardcode_direct_absolute=yes 9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9512 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9514 export_dynamic_flag_spec='${wl}-E' 9515 else 9516 case $host_os in 9517 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9519 hardcode_libdir_flag_spec='-R$libdir' 9520 ;; 9521 *) 9522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9524 ;; 9525 esac 9526 fi 9527 else 9528 ld_shlibs=no 9529 fi 9530 ;; 9531 9532 os2*) 9533 hardcode_libdir_flag_spec='-L$libdir' 9534 hardcode_minus_L=yes 9535 allow_undefined_flag=unsupported 9536 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' 9537 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9538 ;; 9539 9540 osf3*) 9541 if test "$GCC" = yes; then 9542 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9543 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' 9544 else 9545 allow_undefined_flag=' -expect_unresolved \*' 9546 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' 9547 fi 9548 archive_cmds_need_lc='no' 9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9550 hardcode_libdir_separator=: 9551 ;; 9552 9553 osf4* | osf5*) # as osf3* with the addition of -msym flag 9554 if test "$GCC" = yes; then 9555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9556 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' 9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9558 else 9559 allow_undefined_flag=' -expect_unresolved \*' 9560 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' 9561 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~ 9562 $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' 9563 9564 # Both c and cxx compiler support -rpath directly 9565 hardcode_libdir_flag_spec='-rpath $libdir' 9566 fi 9567 archive_cmds_need_lc='no' 9568 hardcode_libdir_separator=: 9569 ;; 9570 9571 solaris*) 9572 no_undefined_flag=' -z defs' 9573 if test "$GCC" = yes; then 9574 wlarc='${wl}' 9575 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9577 $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' 9578 else 9579 case `$CC -V 2>&1` in 9580 *"Compilers 5.0"*) 9581 wlarc='' 9582 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9585 ;; 9586 *) 9587 wlarc='${wl}' 9588 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9590 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9591 ;; 9592 esac 9593 fi 9594 hardcode_libdir_flag_spec='-R$libdir' 9595 hardcode_shlibpath_var=no 9596 case $host_os in 9597 solaris2.[0-5] | solaris2.[0-5].*) ;; 9598 *) 9599 # The compiler driver will combine and reorder linker options, 9600 # but understands `-z linker_flag'. GCC discards it without `$wl', 9601 # but is careful enough not to reorder. 9602 # Supported since Solaris 2.6 (maybe 2.5.1?) 9603 if test "$GCC" = yes; then 9604 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9605 else 9606 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9607 fi 9608 ;; 9609 esac 9610 link_all_deplibs=yes 9611 ;; 9612 9613 sunos4*) 9614 if test "x$host_vendor" = xsequent; then 9615 # Use $CC to link under sequent, because it throws in some extra .o 9616 # files that make .init and .fini sections work. 9617 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9618 else 9619 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9620 fi 9621 hardcode_libdir_flag_spec='-L$libdir' 9622 hardcode_direct=yes 9623 hardcode_minus_L=yes 9624 hardcode_shlibpath_var=no 9625 ;; 9626 9627 sysv4) 9628 case $host_vendor in 9629 sni) 9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9631 hardcode_direct=yes # is this really true??? 9632 ;; 9633 siemens) 9634 ## LD is ld it makes a PLAMLIB 9635 ## CC just makes a GrossModule. 9636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9637 reload_cmds='$CC -r -o $output$reload_objs' 9638 hardcode_direct=no 9639 ;; 9640 motorola) 9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9642 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9643 ;; 9644 esac 9645 runpath_var='LD_RUN_PATH' 9646 hardcode_shlibpath_var=no 9647 ;; 9648 9649 sysv4.3*) 9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9651 hardcode_shlibpath_var=no 9652 export_dynamic_flag_spec='-Bexport' 9653 ;; 9654 9655 sysv4*MP*) 9656 if test -d /usr/nec; then 9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9658 hardcode_shlibpath_var=no 9659 runpath_var=LD_RUN_PATH 9660 hardcode_runpath_var=yes 9661 ld_shlibs=yes 9662 fi 9663 ;; 9664 9665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9666 no_undefined_flag='${wl}-z,text' 9667 archive_cmds_need_lc=no 9668 hardcode_shlibpath_var=no 9669 runpath_var='LD_RUN_PATH' 9670 9671 if test "$GCC" = yes; then 9672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9674 else 9675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9677 fi 9678 ;; 9679 9680 sysv5* | sco3.2v5* | sco5v6*) 9681 # Note: We can NOT use -z defs as we might desire, because we do not 9682 # link with -lc, and that would cause any symbols used from libc to 9683 # always be unresolved, which means just about no library would 9684 # ever link correctly. If we're not using GNU ld we use -z text 9685 # though, which does catch some bad symbols but isn't as heavy-handed 9686 # as -z defs. 9687 no_undefined_flag='${wl}-z,text' 9688 allow_undefined_flag='${wl}-z,nodefs' 9689 archive_cmds_need_lc=no 9690 hardcode_shlibpath_var=no 9691 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9692 hardcode_libdir_separator=':' 9693 link_all_deplibs=yes 9694 export_dynamic_flag_spec='${wl}-Bexport' 9695 runpath_var='LD_RUN_PATH' 9696 9697 if test "$GCC" = yes; then 9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9700 else 9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9703 fi 9704 ;; 9705 9706 uts4*) 9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9708 hardcode_libdir_flag_spec='-L$libdir' 9709 hardcode_shlibpath_var=no 9710 ;; 9711 9712 *) 9713 ld_shlibs=no 9714 ;; 9715 esac 9716 9717 if test x$host_vendor = xsni; then 9718 case $host in 9719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9720 export_dynamic_flag_spec='${wl}-Blargedynsym' 9721 ;; 9722 esac 9723 fi 9724 fi 9725 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9727$as_echo "$ld_shlibs" >&6; } 9728test "$ld_shlibs" = no && can_build_shared=no 9729 9730with_gnu_ld=$with_gnu_ld 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746# 9747# Do we need to explicitly link libc? 9748# 9749case "x$archive_cmds_need_lc" in 9750x|xyes) 9751 # Assume -lc should be added 9752 archive_cmds_need_lc=yes 9753 9754 if test "$enable_shared" = yes && test "$GCC" = yes; then 9755 case $archive_cmds in 9756 *'~'*) 9757 # FIXME: we may have to deal with multi-command sequences. 9758 ;; 9759 '$CC '*) 9760 # Test whether the compiler implicitly links with -lc since on some 9761 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9762 # to ld, don't add -lc before -lgcc. 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9764$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9765if ${lt_cv_archive_cmds_need_lc+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 $RM conftest* 9769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9770 9771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9772 (eval $ac_compile) 2>&5 9773 ac_status=$? 9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9775 test $ac_status = 0; } 2>conftest.err; then 9776 soname=conftest 9777 lib=conftest 9778 libobjs=conftest.$ac_objext 9779 deplibs= 9780 wl=$lt_prog_compiler_wl 9781 pic_flag=$lt_prog_compiler_pic 9782 compiler_flags=-v 9783 linker_flags=-v 9784 verstring= 9785 output_objdir=. 9786 libname=conftest 9787 lt_save_allow_undefined_flag=$allow_undefined_flag 9788 allow_undefined_flag= 9789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9790 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9791 ac_status=$? 9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9793 test $ac_status = 0; } 9794 then 9795 lt_cv_archive_cmds_need_lc=no 9796 else 9797 lt_cv_archive_cmds_need_lc=yes 9798 fi 9799 allow_undefined_flag=$lt_save_allow_undefined_flag 9800 else 9801 cat conftest.err 1>&5 9802 fi 9803 $RM conftest* 9804 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9807$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9808 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9809 ;; 9810 esac 9811 fi 9812 ;; 9813esac 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 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9967$as_echo_n "checking dynamic linker characteristics... " >&6; } 9968 9969if test "$GCC" = yes; then 9970 case $host_os in 9971 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9972 *) lt_awk_arg="/^libraries:/" ;; 9973 esac 9974 case $host_os in 9975 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9976 *) lt_sed_strip_eq="s,=/,/,g" ;; 9977 esac 9978 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9979 case $lt_search_path_spec in 9980 *\;*) 9981 # if the path contains ";" then we assume it to be the separator 9982 # otherwise default to the standard path separator (i.e. ":") - it is 9983 # assumed that no part of a normal pathname contains ";" but that should 9984 # okay in the real world where ";" in dirpaths is itself problematic. 9985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9986 ;; 9987 *) 9988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9989 ;; 9990 esac 9991 # Ok, now we have the path, separated by spaces, we can step through it 9992 # and add multilib dir if necessary. 9993 lt_tmp_lt_search_path_spec= 9994 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9995 for lt_sys_path in $lt_search_path_spec; do 9996 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9998 else 9999 test -d "$lt_sys_path" && \ 10000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10001 fi 10002 done 10003 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10004BEGIN {RS=" "; FS="/|\n";} { 10005 lt_foo=""; 10006 lt_count=0; 10007 for (lt_i = NF; lt_i > 0; lt_i--) { 10008 if ($lt_i != "" && $lt_i != ".") { 10009 if ($lt_i == "..") { 10010 lt_count++; 10011 } else { 10012 if (lt_count == 0) { 10013 lt_foo="/" $lt_i lt_foo; 10014 } else { 10015 lt_count--; 10016 } 10017 } 10018 } 10019 } 10020 if (lt_foo != "") { lt_freq[lt_foo]++; } 10021 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10022}'` 10023 # AWK program above erroneously prepends '/' to C:/dos/paths 10024 # for these hosts. 10025 case $host_os in 10026 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10027 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10028 esac 10029 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10030else 10031 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10032fi 10033library_names_spec= 10034libname_spec='lib$name' 10035soname_spec= 10036shrext_cmds=".so" 10037postinstall_cmds= 10038postuninstall_cmds= 10039finish_cmds= 10040finish_eval= 10041shlibpath_var= 10042shlibpath_overrides_runpath=unknown 10043version_type=none 10044dynamic_linker="$host_os ld.so" 10045sys_lib_dlsearch_path_spec="/lib /usr/lib" 10046need_lib_prefix=unknown 10047hardcode_into_libs=no 10048 10049# when you set need_version to no, make sure it does not cause -set_version 10050# flags to be left without arguments 10051need_version=unknown 10052 10053case $host_os in 10054aix3*) 10055 version_type=linux # correct to gnu/linux during the next big refactor 10056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10057 shlibpath_var=LIBPATH 10058 10059 # AIX 3 has no versioning support, so we append a major version to the name. 10060 soname_spec='${libname}${release}${shared_ext}$major' 10061 ;; 10062 10063aix[4-9]*) 10064 version_type=linux # correct to gnu/linux during the next big refactor 10065 need_lib_prefix=no 10066 need_version=no 10067 hardcode_into_libs=yes 10068 if test "$host_cpu" = ia64; then 10069 # AIX 5 supports IA64 10070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10071 shlibpath_var=LD_LIBRARY_PATH 10072 else 10073 # With GCC up to 2.95.x, collect2 would create an import file 10074 # for dependence libraries. The import file would start with 10075 # the line `#! .'. This would cause the generated library to 10076 # depend on `.', always an invalid library. This was fixed in 10077 # development snapshots of GCC prior to 3.0. 10078 case $host_os in 10079 aix4 | aix4.[01] | aix4.[01].*) 10080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10081 echo ' yes ' 10082 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10083 : 10084 else 10085 can_build_shared=no 10086 fi 10087 ;; 10088 esac 10089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10090 # soname into executable. Probably we can add versioning support to 10091 # collect2, so additional links can be useful in future. 10092 if test "$aix_use_runtimelinking" = yes; then 10093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10094 # instead of lib<name>.a to let people know that these are not 10095 # typical AIX shared libraries. 10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10097 else 10098 # We preserve .a as extension for shared libraries through AIX4.2 10099 # and later when we are not doing run time linking. 10100 library_names_spec='${libname}${release}.a $libname.a' 10101 soname_spec='${libname}${release}${shared_ext}$major' 10102 fi 10103 shlibpath_var=LIBPATH 10104 fi 10105 ;; 10106 10107amigaos*) 10108 case $host_cpu in 10109 powerpc) 10110 # Since July 2007 AmigaOS4 officially supports .so libraries. 10111 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10113 ;; 10114 m68k) 10115 library_names_spec='$libname.ixlibrary $libname.a' 10116 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10117 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' 10118 ;; 10119 esac 10120 ;; 10121 10122beos*) 10123 library_names_spec='${libname}${shared_ext}' 10124 dynamic_linker="$host_os ld.so" 10125 shlibpath_var=LIBRARY_PATH 10126 ;; 10127 10128bsdi[45]*) 10129 version_type=linux # correct to gnu/linux during the next big refactor 10130 need_version=no 10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10132 soname_spec='${libname}${release}${shared_ext}$major' 10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10134 shlibpath_var=LD_LIBRARY_PATH 10135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10137 # the default ld.so.conf also contains /usr/contrib/lib and 10138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10139 # libtool to hard-code these into programs 10140 ;; 10141 10142cygwin* | mingw* | pw32* | cegcc*) 10143 version_type=windows 10144 shrext_cmds=".dll" 10145 need_version=no 10146 need_lib_prefix=no 10147 10148 case $GCC,$cc_basename in 10149 yes,*) 10150 # gcc 10151 library_names_spec='$libname.dll.a' 10152 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10153 postinstall_cmds='base_file=`basename \${file}`~ 10154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10155 dldir=$destdir/`dirname \$dlpath`~ 10156 test -d \$dldir || mkdir -p \$dldir~ 10157 $install_prog $dir/$dlname \$dldir/$dlname~ 10158 chmod a+x \$dldir/$dlname~ 10159 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10160 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10161 fi' 10162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10163 dlpath=$dir/\$dldll~ 10164 $RM \$dlpath' 10165 shlibpath_overrides_runpath=yes 10166 10167 case $host_os in 10168 cygwin*) 10169 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10171 10172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10173 ;; 10174 mingw* | cegcc*) 10175 # MinGW DLLs use traditional 'lib' prefix 10176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10177 ;; 10178 pw32*) 10179 # pw32 DLLs use 'pw' prefix rather than 'lib' 10180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10181 ;; 10182 esac 10183 dynamic_linker='Win32 ld.exe' 10184 ;; 10185 10186 *,cl*) 10187 # Native MSVC 10188 libname_spec='$name' 10189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10190 library_names_spec='${libname}.dll.lib' 10191 10192 case $build_os in 10193 mingw*) 10194 sys_lib_search_path_spec= 10195 lt_save_ifs=$IFS 10196 IFS=';' 10197 for lt_path in $LIB 10198 do 10199 IFS=$lt_save_ifs 10200 # Let DOS variable expansion print the short 8.3 style file name. 10201 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10202 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10203 done 10204 IFS=$lt_save_ifs 10205 # Convert to MSYS style. 10206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10207 ;; 10208 cygwin*) 10209 # Convert to unix form, then to dos form, then back to unix form 10210 # but this time dos style (no spaces!) so that the unix form looks 10211 # like /cygdrive/c/PROGRA~1:/cygdr... 10212 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10213 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10214 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10215 ;; 10216 *) 10217 sys_lib_search_path_spec="$LIB" 10218 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10219 # It is most probably a Windows format PATH. 10220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10221 else 10222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10223 fi 10224 # FIXME: find the short name or the path components, as spaces are 10225 # common. (e.g. "Program Files" -> "PROGRA~1") 10226 ;; 10227 esac 10228 10229 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10230 postinstall_cmds='base_file=`basename \${file}`~ 10231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10232 dldir=$destdir/`dirname \$dlpath`~ 10233 test -d \$dldir || mkdir -p \$dldir~ 10234 $install_prog $dir/$dlname \$dldir/$dlname' 10235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10236 dlpath=$dir/\$dldll~ 10237 $RM \$dlpath' 10238 shlibpath_overrides_runpath=yes 10239 dynamic_linker='Win32 link.exe' 10240 ;; 10241 10242 *) 10243 # Assume MSVC wrapper 10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10245 dynamic_linker='Win32 ld.exe' 10246 ;; 10247 esac 10248 # FIXME: first we should search . and the directory the executable is in 10249 shlibpath_var=PATH 10250 ;; 10251 10252darwin* | rhapsody*) 10253 dynamic_linker="$host_os dyld" 10254 version_type=darwin 10255 need_lib_prefix=no 10256 need_version=no 10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10258 soname_spec='${libname}${release}${major}$shared_ext' 10259 shlibpath_overrides_runpath=yes 10260 shlibpath_var=DYLD_LIBRARY_PATH 10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10262 10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10265 ;; 10266 10267dgux*) 10268 version_type=linux # correct to gnu/linux during the next big refactor 10269 need_lib_prefix=no 10270 need_version=no 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10272 soname_spec='${libname}${release}${shared_ext}$major' 10273 shlibpath_var=LD_LIBRARY_PATH 10274 ;; 10275 10276freebsd* | dragonfly*) 10277 # DragonFly does not have aout. When/if they implement a new 10278 # versioning mechanism, adjust this. 10279 if test -x /usr/bin/objformat; then 10280 objformat=`/usr/bin/objformat` 10281 else 10282 case $host_os in 10283 freebsd[23].*) objformat=aout ;; 10284 *) objformat=elf ;; 10285 esac 10286 fi 10287 version_type=freebsd-$objformat 10288 case $version_type in 10289 freebsd-elf*) 10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10291 need_version=no 10292 need_lib_prefix=no 10293 ;; 10294 freebsd-*) 10295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10296 need_version=yes 10297 ;; 10298 esac 10299 shlibpath_var=LD_LIBRARY_PATH 10300 case $host_os in 10301 freebsd2.*) 10302 shlibpath_overrides_runpath=yes 10303 ;; 10304 freebsd3.[01]* | freebsdelf3.[01]*) 10305 shlibpath_overrides_runpath=yes 10306 hardcode_into_libs=yes 10307 ;; 10308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10310 shlibpath_overrides_runpath=no 10311 hardcode_into_libs=yes 10312 ;; 10313 *) # from 4.6 on, and DragonFly 10314 shlibpath_overrides_runpath=yes 10315 hardcode_into_libs=yes 10316 ;; 10317 esac 10318 ;; 10319 10320gnu*) 10321 version_type=linux # correct to gnu/linux during the next big refactor 10322 need_lib_prefix=no 10323 need_version=no 10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10325 soname_spec='${libname}${release}${shared_ext}$major' 10326 shlibpath_var=LD_LIBRARY_PATH 10327 shlibpath_overrides_runpath=no 10328 hardcode_into_libs=yes 10329 ;; 10330 10331haiku*) 10332 version_type=linux # correct to gnu/linux during the next big refactor 10333 need_lib_prefix=no 10334 need_version=no 10335 dynamic_linker="$host_os runtime_loader" 10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10337 soname_spec='${libname}${release}${shared_ext}$major' 10338 shlibpath_var=LIBRARY_PATH 10339 shlibpath_overrides_runpath=yes 10340 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10341 hardcode_into_libs=yes 10342 ;; 10343 10344hpux9* | hpux10* | hpux11*) 10345 # Give a soname corresponding to the major version so that dld.sl refuses to 10346 # link against other versions. 10347 version_type=sunos 10348 need_lib_prefix=no 10349 need_version=no 10350 case $host_cpu in 10351 ia64*) 10352 shrext_cmds='.so' 10353 hardcode_into_libs=yes 10354 dynamic_linker="$host_os dld.so" 10355 shlibpath_var=LD_LIBRARY_PATH 10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10358 soname_spec='${libname}${release}${shared_ext}$major' 10359 if test "X$HPUX_IA64_MODE" = X32; then 10360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10361 else 10362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10363 fi 10364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10365 ;; 10366 hppa*64*) 10367 shrext_cmds='.sl' 10368 hardcode_into_libs=yes 10369 dynamic_linker="$host_os dld.sl" 10370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10373 soname_spec='${libname}${release}${shared_ext}$major' 10374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10376 ;; 10377 *) 10378 shrext_cmds='.sl' 10379 dynamic_linker="$host_os dld.sl" 10380 shlibpath_var=SHLIB_PATH 10381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10383 soname_spec='${libname}${release}${shared_ext}$major' 10384 ;; 10385 esac 10386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10387 postinstall_cmds='chmod 555 $lib' 10388 # or fails outright, so override atomically: 10389 install_override_mode=555 10390 ;; 10391 10392interix[3-9]*) 10393 version_type=linux # correct to gnu/linux during the next big refactor 10394 need_lib_prefix=no 10395 need_version=no 10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10397 soname_spec='${libname}${release}${shared_ext}$major' 10398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10399 shlibpath_var=LD_LIBRARY_PATH 10400 shlibpath_overrides_runpath=no 10401 hardcode_into_libs=yes 10402 ;; 10403 10404irix5* | irix6* | nonstopux*) 10405 case $host_os in 10406 nonstopux*) version_type=nonstopux ;; 10407 *) 10408 if test "$lt_cv_prog_gnu_ld" = yes; then 10409 version_type=linux # correct to gnu/linux during the next big refactor 10410 else 10411 version_type=irix 10412 fi ;; 10413 esac 10414 need_lib_prefix=no 10415 need_version=no 10416 soname_spec='${libname}${release}${shared_ext}$major' 10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10418 case $host_os in 10419 irix5* | nonstopux*) 10420 libsuff= shlibsuff= 10421 ;; 10422 *) 10423 case $LD in # libtool.m4 will add one of these switches to LD 10424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10425 libsuff= shlibsuff= libmagic=32-bit;; 10426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10427 libsuff=32 shlibsuff=N32 libmagic=N32;; 10428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10429 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10430 *) libsuff= shlibsuff= libmagic=never-match;; 10431 esac 10432 ;; 10433 esac 10434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10435 shlibpath_overrides_runpath=no 10436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10438 hardcode_into_libs=yes 10439 ;; 10440 10441# No shared lib support for Linux oldld, aout, or coff. 10442linux*oldld* | linux*aout* | linux*coff*) 10443 dynamic_linker=no 10444 ;; 10445 10446# This must be glibc/ELF. 10447linux* | k*bsd*-gnu | kopensolaris*-gnu) 10448 version_type=linux # correct to gnu/linux during the next big refactor 10449 need_lib_prefix=no 10450 need_version=no 10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10452 soname_spec='${libname}${release}${shared_ext}$major' 10453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10454 shlibpath_var=LD_LIBRARY_PATH 10455 shlibpath_overrides_runpath=no 10456 10457 # Some binutils ld are patched to set DT_RUNPATH 10458 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10459 $as_echo_n "(cached) " >&6 10460else 10461 lt_cv_shlibpath_overrides_runpath=no 10462 save_LDFLAGS=$LDFLAGS 10463 save_libdir=$libdir 10464 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10465 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10467/* end confdefs.h. */ 10468 10469int 10470main () 10471{ 10472 10473 ; 10474 return 0; 10475} 10476_ACEOF 10477if ac_fn_c_try_link "$LINENO"; then : 10478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10479 lt_cv_shlibpath_overrides_runpath=yes 10480fi 10481fi 10482rm -f core conftest.err conftest.$ac_objext \ 10483 conftest$ac_exeext conftest.$ac_ext 10484 LDFLAGS=$save_LDFLAGS 10485 libdir=$save_libdir 10486 10487fi 10488 10489 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10490 10491 # This implies no fast_install, which is unacceptable. 10492 # Some rework will be needed to allow for fast_install 10493 # before this can be enabled. 10494 hardcode_into_libs=yes 10495 10496 # Append ld.so.conf contents to the search path 10497 if test -f /etc/ld.so.conf; then 10498 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' ' '` 10499 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10500 fi 10501 10502 # We used to test for /lib/ld.so.1 and disable shared libraries on 10503 # powerpc, because MkLinux only supported shared libraries with the 10504 # GNU dynamic linker. Since this was broken with cross compilers, 10505 # most powerpc-linux boxes support dynamic linking these days and 10506 # people can always --disable-shared, the test was removed, and we 10507 # assume the GNU/Linux dynamic linker is in use. 10508 dynamic_linker='GNU/Linux ld.so' 10509 ;; 10510 10511netbsd*) 10512 version_type=sunos 10513 need_lib_prefix=no 10514 need_version=no 10515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10518 dynamic_linker='NetBSD (a.out) ld.so' 10519 else 10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10521 soname_spec='${libname}${release}${shared_ext}$major' 10522 dynamic_linker='NetBSD ld.elf_so' 10523 fi 10524 shlibpath_var=LD_LIBRARY_PATH 10525 shlibpath_overrides_runpath=yes 10526 hardcode_into_libs=yes 10527 ;; 10528 10529newsos6) 10530 version_type=linux # correct to gnu/linux during the next big refactor 10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10532 shlibpath_var=LD_LIBRARY_PATH 10533 shlibpath_overrides_runpath=yes 10534 ;; 10535 10536*nto* | *qnx*) 10537 version_type=qnx 10538 need_lib_prefix=no 10539 need_version=no 10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10541 soname_spec='${libname}${release}${shared_ext}$major' 10542 shlibpath_var=LD_LIBRARY_PATH 10543 shlibpath_overrides_runpath=no 10544 hardcode_into_libs=yes 10545 dynamic_linker='ldqnx.so' 10546 ;; 10547 10548openbsd*) 10549 version_type=sunos 10550 sys_lib_dlsearch_path_spec="/usr/lib" 10551 need_lib_prefix=no 10552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10553 case $host_os in 10554 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10555 *) need_version=no ;; 10556 esac 10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10559 shlibpath_var=LD_LIBRARY_PATH 10560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10561 case $host_os in 10562 openbsd2.[89] | openbsd2.[89].*) 10563 shlibpath_overrides_runpath=no 10564 ;; 10565 *) 10566 shlibpath_overrides_runpath=yes 10567 ;; 10568 esac 10569 else 10570 shlibpath_overrides_runpath=yes 10571 fi 10572 ;; 10573 10574os2*) 10575 libname_spec='$name' 10576 shrext_cmds=".dll" 10577 need_lib_prefix=no 10578 library_names_spec='$libname${shared_ext} $libname.a' 10579 dynamic_linker='OS/2 ld.exe' 10580 shlibpath_var=LIBPATH 10581 ;; 10582 10583osf3* | osf4* | osf5*) 10584 version_type=osf 10585 need_lib_prefix=no 10586 need_version=no 10587 soname_spec='${libname}${release}${shared_ext}$major' 10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10592 ;; 10593 10594rdos*) 10595 dynamic_linker=no 10596 ;; 10597 10598solaris*) 10599 version_type=linux # correct to gnu/linux during the next big refactor 10600 need_lib_prefix=no 10601 need_version=no 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10603 soname_spec='${libname}${release}${shared_ext}$major' 10604 shlibpath_var=LD_LIBRARY_PATH 10605 shlibpath_overrides_runpath=yes 10606 hardcode_into_libs=yes 10607 # ldd complains unless libraries are executable 10608 postinstall_cmds='chmod +x $lib' 10609 ;; 10610 10611sunos4*) 10612 version_type=sunos 10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10615 shlibpath_var=LD_LIBRARY_PATH 10616 shlibpath_overrides_runpath=yes 10617 if test "$with_gnu_ld" = yes; then 10618 need_lib_prefix=no 10619 fi 10620 need_version=yes 10621 ;; 10622 10623sysv4 | sysv4.3*) 10624 version_type=linux # correct to gnu/linux during the next big refactor 10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10626 soname_spec='${libname}${release}${shared_ext}$major' 10627 shlibpath_var=LD_LIBRARY_PATH 10628 case $host_vendor in 10629 sni) 10630 shlibpath_overrides_runpath=no 10631 need_lib_prefix=no 10632 runpath_var=LD_RUN_PATH 10633 ;; 10634 siemens) 10635 need_lib_prefix=no 10636 ;; 10637 motorola) 10638 need_lib_prefix=no 10639 need_version=no 10640 shlibpath_overrides_runpath=no 10641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10642 ;; 10643 esac 10644 ;; 10645 10646sysv4*MP*) 10647 if test -d /usr/nec ;then 10648 version_type=linux # correct to gnu/linux during the next big refactor 10649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10650 soname_spec='$libname${shared_ext}.$major' 10651 shlibpath_var=LD_LIBRARY_PATH 10652 fi 10653 ;; 10654 10655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10656 version_type=freebsd-elf 10657 need_lib_prefix=no 10658 need_version=no 10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10660 soname_spec='${libname}${release}${shared_ext}$major' 10661 shlibpath_var=LD_LIBRARY_PATH 10662 shlibpath_overrides_runpath=yes 10663 hardcode_into_libs=yes 10664 if test "$with_gnu_ld" = yes; then 10665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10666 else 10667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10668 case $host_os in 10669 sco3.2v5*) 10670 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10671 ;; 10672 esac 10673 fi 10674 sys_lib_dlsearch_path_spec='/usr/lib' 10675 ;; 10676 10677tpf*) 10678 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10679 version_type=linux # correct to gnu/linux during the next big refactor 10680 need_lib_prefix=no 10681 need_version=no 10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10683 shlibpath_var=LD_LIBRARY_PATH 10684 shlibpath_overrides_runpath=no 10685 hardcode_into_libs=yes 10686 ;; 10687 10688uts4*) 10689 version_type=linux # correct to gnu/linux during the next big refactor 10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10691 soname_spec='${libname}${release}${shared_ext}$major' 10692 shlibpath_var=LD_LIBRARY_PATH 10693 ;; 10694 10695*) 10696 dynamic_linker=no 10697 ;; 10698esac 10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10700$as_echo "$dynamic_linker" >&6; } 10701test "$dynamic_linker" = no && can_build_shared=no 10702 10703variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10704if test "$GCC" = yes; then 10705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10706fi 10707 10708if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10709 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10710fi 10711if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10712 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10713fi 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 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10807$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10808hardcode_action= 10809if test -n "$hardcode_libdir_flag_spec" || 10810 test -n "$runpath_var" || 10811 test "X$hardcode_automatic" = "Xyes" ; then 10812 10813 # We can hardcode non-existent directories. 10814 if test "$hardcode_direct" != no && 10815 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10816 # have to relink, otherwise we might link with an installed library 10817 # when we should be linking with a yet-to-be-installed one 10818 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10819 test "$hardcode_minus_L" != no; then 10820 # Linking always hardcodes the temporary library directory. 10821 hardcode_action=relink 10822 else 10823 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10824 hardcode_action=immediate 10825 fi 10826else 10827 # We cannot hardcode anything, or else we can only hardcode existing 10828 # directories. 10829 hardcode_action=unsupported 10830fi 10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10832$as_echo "$hardcode_action" >&6; } 10833 10834if test "$hardcode_action" = relink || 10835 test "$inherit_rpath" = yes; then 10836 # Fast installation is not supported 10837 enable_fast_install=no 10838elif test "$shlibpath_overrides_runpath" = yes || 10839 test "$enable_shared" = no; then 10840 # Fast installation is not necessary 10841 enable_fast_install=needless 10842fi 10843 10844 10845 10846 10847 10848 10849 if test "x$enable_dlopen" != xyes; then 10850 enable_dlopen=unknown 10851 enable_dlopen_self=unknown 10852 enable_dlopen_self_static=unknown 10853else 10854 lt_cv_dlopen=no 10855 lt_cv_dlopen_libs= 10856 10857 case $host_os in 10858 beos*) 10859 lt_cv_dlopen="load_add_on" 10860 lt_cv_dlopen_libs= 10861 lt_cv_dlopen_self=yes 10862 ;; 10863 10864 mingw* | pw32* | cegcc*) 10865 lt_cv_dlopen="LoadLibrary" 10866 lt_cv_dlopen_libs= 10867 ;; 10868 10869 cygwin*) 10870 lt_cv_dlopen="dlopen" 10871 lt_cv_dlopen_libs= 10872 ;; 10873 10874 darwin*) 10875 # if libdl is installed we need to link against it 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10877$as_echo_n "checking for dlopen in -ldl... " >&6; } 10878if ${ac_cv_lib_dl_dlopen+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880else 10881 ac_check_lib_save_LIBS=$LIBS 10882LIBS="-ldl $LIBS" 10883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10884/* end confdefs.h. */ 10885 10886/* Override any GCC internal prototype to avoid an error. 10887 Use char because int might match the return type of a GCC 10888 builtin and then its argument prototype would still apply. */ 10889#ifdef __cplusplus 10890extern "C" 10891#endif 10892char dlopen (); 10893int 10894main () 10895{ 10896return dlopen (); 10897 ; 10898 return 0; 10899} 10900_ACEOF 10901if ac_fn_c_try_link "$LINENO"; then : 10902 ac_cv_lib_dl_dlopen=yes 10903else 10904 ac_cv_lib_dl_dlopen=no 10905fi 10906rm -f core conftest.err conftest.$ac_objext \ 10907 conftest$ac_exeext conftest.$ac_ext 10908LIBS=$ac_check_lib_save_LIBS 10909fi 10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10911$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10912if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10914else 10915 10916 lt_cv_dlopen="dyld" 10917 lt_cv_dlopen_libs= 10918 lt_cv_dlopen_self=yes 10919 10920fi 10921 10922 ;; 10923 10924 *) 10925 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10926if test "x$ac_cv_func_shl_load" = xyes; then : 10927 lt_cv_dlopen="shl_load" 10928else 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10930$as_echo_n "checking for shl_load in -ldld... " >&6; } 10931if ${ac_cv_lib_dld_shl_load+:} false; then : 10932 $as_echo_n "(cached) " >&6 10933else 10934 ac_check_lib_save_LIBS=$LIBS 10935LIBS="-ldld $LIBS" 10936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10937/* end confdefs.h. */ 10938 10939/* Override any GCC internal prototype to avoid an error. 10940 Use char because int might match the return type of a GCC 10941 builtin and then its argument prototype would still apply. */ 10942#ifdef __cplusplus 10943extern "C" 10944#endif 10945char shl_load (); 10946int 10947main () 10948{ 10949return shl_load (); 10950 ; 10951 return 0; 10952} 10953_ACEOF 10954if ac_fn_c_try_link "$LINENO"; then : 10955 ac_cv_lib_dld_shl_load=yes 10956else 10957 ac_cv_lib_dld_shl_load=no 10958fi 10959rm -f core conftest.err conftest.$ac_objext \ 10960 conftest$ac_exeext conftest.$ac_ext 10961LIBS=$ac_check_lib_save_LIBS 10962fi 10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10964$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10965if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10966 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10967else 10968 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10969if test "x$ac_cv_func_dlopen" = xyes; then : 10970 lt_cv_dlopen="dlopen" 10971else 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10973$as_echo_n "checking for dlopen in -ldl... " >&6; } 10974if ${ac_cv_lib_dl_dlopen+:} false; then : 10975 $as_echo_n "(cached) " >&6 10976else 10977 ac_check_lib_save_LIBS=$LIBS 10978LIBS="-ldl $LIBS" 10979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10980/* end confdefs.h. */ 10981 10982/* Override any GCC internal prototype to avoid an error. 10983 Use char because int might match the return type of a GCC 10984 builtin and then its argument prototype would still apply. */ 10985#ifdef __cplusplus 10986extern "C" 10987#endif 10988char dlopen (); 10989int 10990main () 10991{ 10992return dlopen (); 10993 ; 10994 return 0; 10995} 10996_ACEOF 10997if ac_fn_c_try_link "$LINENO"; then : 10998 ac_cv_lib_dl_dlopen=yes 10999else 11000 ac_cv_lib_dl_dlopen=no 11001fi 11002rm -f core conftest.err conftest.$ac_objext \ 11003 conftest$ac_exeext conftest.$ac_ext 11004LIBS=$ac_check_lib_save_LIBS 11005fi 11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11007$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11008if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11010else 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11012$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11013if ${ac_cv_lib_svld_dlopen+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015else 11016 ac_check_lib_save_LIBS=$LIBS 11017LIBS="-lsvld $LIBS" 11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021/* Override any GCC internal prototype to avoid an error. 11022 Use char because int might match the return type of a GCC 11023 builtin and then its argument prototype would still apply. */ 11024#ifdef __cplusplus 11025extern "C" 11026#endif 11027char dlopen (); 11028int 11029main () 11030{ 11031return dlopen (); 11032 ; 11033 return 0; 11034} 11035_ACEOF 11036if ac_fn_c_try_link "$LINENO"; then : 11037 ac_cv_lib_svld_dlopen=yes 11038else 11039 ac_cv_lib_svld_dlopen=no 11040fi 11041rm -f core conftest.err conftest.$ac_objext \ 11042 conftest$ac_exeext conftest.$ac_ext 11043LIBS=$ac_check_lib_save_LIBS 11044fi 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11046$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11047if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11049else 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11051$as_echo_n "checking for dld_link in -ldld... " >&6; } 11052if ${ac_cv_lib_dld_dld_link+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054else 11055 ac_check_lib_save_LIBS=$LIBS 11056LIBS="-ldld $LIBS" 11057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11058/* end confdefs.h. */ 11059 11060/* Override any GCC internal prototype to avoid an error. 11061 Use char because int might match the return type of a GCC 11062 builtin and then its argument prototype would still apply. */ 11063#ifdef __cplusplus 11064extern "C" 11065#endif 11066char dld_link (); 11067int 11068main () 11069{ 11070return dld_link (); 11071 ; 11072 return 0; 11073} 11074_ACEOF 11075if ac_fn_c_try_link "$LINENO"; then : 11076 ac_cv_lib_dld_dld_link=yes 11077else 11078 ac_cv_lib_dld_dld_link=no 11079fi 11080rm -f core conftest.err conftest.$ac_objext \ 11081 conftest$ac_exeext conftest.$ac_ext 11082LIBS=$ac_check_lib_save_LIBS 11083fi 11084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11085$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11086if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11087 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11088fi 11089 11090 11091fi 11092 11093 11094fi 11095 11096 11097fi 11098 11099 11100fi 11101 11102 11103fi 11104 11105 ;; 11106 esac 11107 11108 if test "x$lt_cv_dlopen" != xno; then 11109 enable_dlopen=yes 11110 else 11111 enable_dlopen=no 11112 fi 11113 11114 case $lt_cv_dlopen in 11115 dlopen) 11116 save_CPPFLAGS="$CPPFLAGS" 11117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11118 11119 save_LDFLAGS="$LDFLAGS" 11120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11121 11122 save_LIBS="$LIBS" 11123 LIBS="$lt_cv_dlopen_libs $LIBS" 11124 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11126$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11127if ${lt_cv_dlopen_self+:} false; then : 11128 $as_echo_n "(cached) " >&6 11129else 11130 if test "$cross_compiling" = yes; then : 11131 lt_cv_dlopen_self=cross 11132else 11133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11134 lt_status=$lt_dlunknown 11135 cat > conftest.$ac_ext <<_LT_EOF 11136#line $LINENO "configure" 11137#include "confdefs.h" 11138 11139#if HAVE_DLFCN_H 11140#include <dlfcn.h> 11141#endif 11142 11143#include <stdio.h> 11144 11145#ifdef RTLD_GLOBAL 11146# define LT_DLGLOBAL RTLD_GLOBAL 11147#else 11148# ifdef DL_GLOBAL 11149# define LT_DLGLOBAL DL_GLOBAL 11150# else 11151# define LT_DLGLOBAL 0 11152# endif 11153#endif 11154 11155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11156 find out it does not work in some platform. */ 11157#ifndef LT_DLLAZY_OR_NOW 11158# ifdef RTLD_LAZY 11159# define LT_DLLAZY_OR_NOW RTLD_LAZY 11160# else 11161# ifdef DL_LAZY 11162# define LT_DLLAZY_OR_NOW DL_LAZY 11163# else 11164# ifdef RTLD_NOW 11165# define LT_DLLAZY_OR_NOW RTLD_NOW 11166# else 11167# ifdef DL_NOW 11168# define LT_DLLAZY_OR_NOW DL_NOW 11169# else 11170# define LT_DLLAZY_OR_NOW 0 11171# endif 11172# endif 11173# endif 11174# endif 11175#endif 11176 11177/* When -fvisbility=hidden is used, assume the code has been annotated 11178 correspondingly for the symbols needed. */ 11179#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11180int fnord () __attribute__((visibility("default"))); 11181#endif 11182 11183int fnord () { return 42; } 11184int main () 11185{ 11186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11187 int status = $lt_dlunknown; 11188 11189 if (self) 11190 { 11191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11192 else 11193 { 11194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11195 else puts (dlerror ()); 11196 } 11197 /* dlclose (self); */ 11198 } 11199 else 11200 puts (dlerror ()); 11201 11202 return status; 11203} 11204_LT_EOF 11205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11206 (eval $ac_link) 2>&5 11207 ac_status=$? 11208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11209 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11210 (./conftest; exit; ) >&5 2>/dev/null 11211 lt_status=$? 11212 case x$lt_status in 11213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11216 esac 11217 else : 11218 # compilation failed 11219 lt_cv_dlopen_self=no 11220 fi 11221fi 11222rm -fr conftest* 11223 11224 11225fi 11226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11227$as_echo "$lt_cv_dlopen_self" >&6; } 11228 11229 if test "x$lt_cv_dlopen_self" = xyes; then 11230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11232$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11233if ${lt_cv_dlopen_self_static+:} false; then : 11234 $as_echo_n "(cached) " >&6 11235else 11236 if test "$cross_compiling" = yes; then : 11237 lt_cv_dlopen_self_static=cross 11238else 11239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11240 lt_status=$lt_dlunknown 11241 cat > conftest.$ac_ext <<_LT_EOF 11242#line $LINENO "configure" 11243#include "confdefs.h" 11244 11245#if HAVE_DLFCN_H 11246#include <dlfcn.h> 11247#endif 11248 11249#include <stdio.h> 11250 11251#ifdef RTLD_GLOBAL 11252# define LT_DLGLOBAL RTLD_GLOBAL 11253#else 11254# ifdef DL_GLOBAL 11255# define LT_DLGLOBAL DL_GLOBAL 11256# else 11257# define LT_DLGLOBAL 0 11258# endif 11259#endif 11260 11261/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11262 find out it does not work in some platform. */ 11263#ifndef LT_DLLAZY_OR_NOW 11264# ifdef RTLD_LAZY 11265# define LT_DLLAZY_OR_NOW RTLD_LAZY 11266# else 11267# ifdef DL_LAZY 11268# define LT_DLLAZY_OR_NOW DL_LAZY 11269# else 11270# ifdef RTLD_NOW 11271# define LT_DLLAZY_OR_NOW RTLD_NOW 11272# else 11273# ifdef DL_NOW 11274# define LT_DLLAZY_OR_NOW DL_NOW 11275# else 11276# define LT_DLLAZY_OR_NOW 0 11277# endif 11278# endif 11279# endif 11280# endif 11281#endif 11282 11283/* When -fvisbility=hidden is used, assume the code has been annotated 11284 correspondingly for the symbols needed. */ 11285#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11286int fnord () __attribute__((visibility("default"))); 11287#endif 11288 11289int fnord () { return 42; } 11290int main () 11291{ 11292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11293 int status = $lt_dlunknown; 11294 11295 if (self) 11296 { 11297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11298 else 11299 { 11300 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11301 else puts (dlerror ()); 11302 } 11303 /* dlclose (self); */ 11304 } 11305 else 11306 puts (dlerror ()); 11307 11308 return status; 11309} 11310_LT_EOF 11311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11312 (eval $ac_link) 2>&5 11313 ac_status=$? 11314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11315 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11316 (./conftest; exit; ) >&5 2>/dev/null 11317 lt_status=$? 11318 case x$lt_status in 11319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11322 esac 11323 else : 11324 # compilation failed 11325 lt_cv_dlopen_self_static=no 11326 fi 11327fi 11328rm -fr conftest* 11329 11330 11331fi 11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11333$as_echo "$lt_cv_dlopen_self_static" >&6; } 11334 fi 11335 11336 CPPFLAGS="$save_CPPFLAGS" 11337 LDFLAGS="$save_LDFLAGS" 11338 LIBS="$save_LIBS" 11339 ;; 11340 esac 11341 11342 case $lt_cv_dlopen_self in 11343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11344 *) enable_dlopen_self=unknown ;; 11345 esac 11346 11347 case $lt_cv_dlopen_self_static in 11348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11349 *) enable_dlopen_self_static=unknown ;; 11350 esac 11351fi 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369striplib= 11370old_striplib= 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11372$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11373if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11375 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11377$as_echo "yes" >&6; } 11378else 11379# FIXME - insert some real tests, host_os isn't really good enough 11380 case $host_os in 11381 darwin*) 11382 if test -n "$STRIP" ; then 11383 striplib="$STRIP -x" 11384 old_striplib="$STRIP -S" 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11386$as_echo "yes" >&6; } 11387 else 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11389$as_echo "no" >&6; } 11390 fi 11391 ;; 11392 *) 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11394$as_echo "no" >&6; } 11395 ;; 11396 esac 11397fi 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 # Report which library types will actually be built 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11412$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11414$as_echo "$can_build_shared" >&6; } 11415 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11417$as_echo_n "checking whether to build shared libraries... " >&6; } 11418 test "$can_build_shared" = "no" && enable_shared=no 11419 11420 # On AIX, shared libraries and static libraries use the same namespace, and 11421 # are all built from PIC. 11422 case $host_os in 11423 aix3*) 11424 test "$enable_shared" = yes && enable_static=no 11425 if test -n "$RANLIB"; then 11426 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11427 postinstall_cmds='$RANLIB $lib' 11428 fi 11429 ;; 11430 11431 aix[4-9]*) 11432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11433 test "$enable_shared" = yes && enable_static=no 11434 fi 11435 ;; 11436 esac 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11438$as_echo "$enable_shared" >&6; } 11439 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11441$as_echo_n "checking whether to build static libraries... " >&6; } 11442 # Make sure either enable_shared or enable_static is yes. 11443 test "$enable_shared" = yes || enable_static=yes 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11445$as_echo "$enable_static" >&6; } 11446 11447 11448 11449 11450fi 11451ac_ext=c 11452ac_cpp='$CPP $CPPFLAGS' 11453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11455ac_compiler_gnu=$ac_cv_c_compiler_gnu 11456 11457CC="$lt_save_CC" 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 ac_config_commands="$ac_config_commands libtool" 11474 11475 11476 11477 11478# Only expand once: 11479 11480 11481 11482# Require xorg-macros minimum of 1.12 for DocBook external references 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11495$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11496if ${ac_cv_prog_cc_c99+:} false; then : 11497 $as_echo_n "(cached) " >&6 11498else 11499 ac_cv_prog_cc_c99=no 11500ac_save_CC=$CC 11501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11502/* end confdefs.h. */ 11503#include <stdarg.h> 11504#include <stdbool.h> 11505#include <stdlib.h> 11506#include <wchar.h> 11507#include <stdio.h> 11508 11509// Check varargs macros. These examples are taken from C99 6.10.3.5. 11510#define debug(...) fprintf (stderr, __VA_ARGS__) 11511#define showlist(...) puts (#__VA_ARGS__) 11512#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11513static void 11514test_varargs_macros (void) 11515{ 11516 int x = 1234; 11517 int y = 5678; 11518 debug ("Flag"); 11519 debug ("X = %d\n", x); 11520 showlist (The first, second, and third items.); 11521 report (x>y, "x is %d but y is %d", x, y); 11522} 11523 11524// Check long long types. 11525#define BIG64 18446744073709551615ull 11526#define BIG32 4294967295ul 11527#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11528#if !BIG_OK 11529 your preprocessor is broken; 11530#endif 11531#if BIG_OK 11532#else 11533 your preprocessor is broken; 11534#endif 11535static long long int bignum = -9223372036854775807LL; 11536static unsigned long long int ubignum = BIG64; 11537 11538struct incomplete_array 11539{ 11540 int datasize; 11541 double data[]; 11542}; 11543 11544struct named_init { 11545 int number; 11546 const wchar_t *name; 11547 double average; 11548}; 11549 11550typedef const char *ccp; 11551 11552static inline int 11553test_restrict (ccp restrict text) 11554{ 11555 // See if C++-style comments work. 11556 // Iterate through items via the restricted pointer. 11557 // Also check for declarations in for loops. 11558 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11559 continue; 11560 return 0; 11561} 11562 11563// Check varargs and va_copy. 11564static void 11565test_varargs (const char *format, ...) 11566{ 11567 va_list args; 11568 va_start (args, format); 11569 va_list args_copy; 11570 va_copy (args_copy, args); 11571 11572 const char *str; 11573 int number; 11574 float fnumber; 11575 11576 while (*format) 11577 { 11578 switch (*format++) 11579 { 11580 case 's': // string 11581 str = va_arg (args_copy, const char *); 11582 break; 11583 case 'd': // int 11584 number = va_arg (args_copy, int); 11585 break; 11586 case 'f': // float 11587 fnumber = va_arg (args_copy, double); 11588 break; 11589 default: 11590 break; 11591 } 11592 } 11593 va_end (args_copy); 11594 va_end (args); 11595} 11596 11597int 11598main () 11599{ 11600 11601 // Check bool. 11602 _Bool success = false; 11603 11604 // Check restrict. 11605 if (test_restrict ("String literal") == 0) 11606 success = true; 11607 char *restrict newvar = "Another string"; 11608 11609 // Check varargs. 11610 test_varargs ("s, d' f .", "string", 65, 34.234); 11611 test_varargs_macros (); 11612 11613 // Check flexible array members. 11614 struct incomplete_array *ia = 11615 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11616 ia->datasize = 10; 11617 for (int i = 0; i < ia->datasize; ++i) 11618 ia->data[i] = i * 1.234; 11619 11620 // Check named initializers. 11621 struct named_init ni = { 11622 .number = 34, 11623 .name = L"Test wide string", 11624 .average = 543.34343, 11625 }; 11626 11627 ni.number = 58; 11628 11629 int dynamic_array[ni.number]; 11630 dynamic_array[ni.number - 1] = 543; 11631 11632 // work around unused variable warnings 11633 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11634 || dynamic_array[ni.number - 1] != 543); 11635 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11641do 11642 CC="$ac_save_CC $ac_arg" 11643 if ac_fn_c_try_compile "$LINENO"; then : 11644 ac_cv_prog_cc_c99=$ac_arg 11645fi 11646rm -f core conftest.err conftest.$ac_objext 11647 test "x$ac_cv_prog_cc_c99" != "xno" && break 11648done 11649rm -f conftest.$ac_ext 11650CC=$ac_save_CC 11651 11652fi 11653# AC_CACHE_VAL 11654case "x$ac_cv_prog_cc_c99" in 11655 x) 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11657$as_echo "none needed" >&6; } ;; 11658 xno) 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11660$as_echo "unsupported" >&6; } ;; 11661 *) 11662 CC="$CC $ac_cv_prog_cc_c99" 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11664$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11665esac 11666if test "x$ac_cv_prog_cc_c99" != xno; then : 11667 11668fi 11669 11670 11671 11672 11673 11674 11675ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11676if test "x$ac_cv_have_decl___clang__" = xyes; then : 11677 CLANGCC="yes" 11678else 11679 CLANGCC="no" 11680fi 11681 11682ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11683if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11684 INTELCC="yes" 11685else 11686 INTELCC="no" 11687fi 11688 11689ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11690if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11691 SUNCC="yes" 11692else 11693 SUNCC="no" 11694fi 11695 11696 11697 11698 11699if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11700 if test -n "$ac_tool_prefix"; then 11701 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11702set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11704$as_echo_n "checking for $ac_word... " >&6; } 11705if ${ac_cv_path_PKG_CONFIG+:} false; then : 11706 $as_echo_n "(cached) " >&6 11707else 11708 case $PKG_CONFIG in 11709 [\\/]* | ?:[\\/]*) 11710 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11711 ;; 11712 *) 11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11714for as_dir in $PATH 11715do 11716 IFS=$as_save_IFS 11717 test -z "$as_dir" && as_dir=. 11718 for ac_exec_ext in '' $ac_executable_extensions; do 11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11720 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11722 break 2 11723 fi 11724done 11725 done 11726IFS=$as_save_IFS 11727 11728 ;; 11729esac 11730fi 11731PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11732if test -n "$PKG_CONFIG"; then 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11734$as_echo "$PKG_CONFIG" >&6; } 11735else 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11737$as_echo "no" >&6; } 11738fi 11739 11740 11741fi 11742if test -z "$ac_cv_path_PKG_CONFIG"; then 11743 ac_pt_PKG_CONFIG=$PKG_CONFIG 11744 # Extract the first word of "pkg-config", so it can be a program name with args. 11745set dummy pkg-config; ac_word=$2 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11747$as_echo_n "checking for $ac_word... " >&6; } 11748if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 case $ac_pt_PKG_CONFIG in 11752 [\\/]* | ?:[\\/]*) 11753 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11754 ;; 11755 *) 11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11757for as_dir in $PATH 11758do 11759 IFS=$as_save_IFS 11760 test -z "$as_dir" && as_dir=. 11761 for ac_exec_ext in '' $ac_executable_extensions; do 11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11763 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11765 break 2 11766 fi 11767done 11768 done 11769IFS=$as_save_IFS 11770 11771 ;; 11772esac 11773fi 11774ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11775if test -n "$ac_pt_PKG_CONFIG"; then 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11777$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11778else 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11780$as_echo "no" >&6; } 11781fi 11782 11783 if test "x$ac_pt_PKG_CONFIG" = x; then 11784 PKG_CONFIG="" 11785 else 11786 case $cross_compiling:$ac_tool_warned in 11787yes:) 11788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11790ac_tool_warned=yes ;; 11791esac 11792 PKG_CONFIG=$ac_pt_PKG_CONFIG 11793 fi 11794else 11795 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11796fi 11797 11798fi 11799if test -n "$PKG_CONFIG"; then 11800 _pkg_min_version=0.9.0 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11802$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11803 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11805$as_echo "yes" >&6; } 11806 else 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11808$as_echo "no" >&6; } 11809 PKG_CONFIG="" 11810 fi 11811 11812fi 11813 11814 11815 11816 11817 11818# Check whether --enable-selective-werror was given. 11819if test "${enable_selective_werror+set}" = set; then : 11820 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11821else 11822 SELECTIVE_WERROR=yes 11823fi 11824 11825 11826 11827 11828 11829# -v is too short to test reliably with XORG_TESTSET_CFLAG 11830if test "x$SUNCC" = "xyes"; then 11831 BASE_CFLAGS="-v" 11832else 11833 BASE_CFLAGS="" 11834fi 11835 11836# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850xorg_testset_save_CFLAGS="$CFLAGS" 11851 11852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11857 $as_echo_n "(cached) " >&6 11858else 11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11860/* end confdefs.h. */ 11861int i; 11862_ACEOF 11863if ac_fn_c_try_compile "$LINENO"; then : 11864 xorg_cv_cc_flag_unknown_warning_option=yes 11865else 11866 xorg_cv_cc_flag_unknown_warning_option=no 11867fi 11868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11869fi 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11873 CFLAGS="$xorg_testset_save_CFLAGS" 11874fi 11875 11876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11879 fi 11880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11884 $as_echo_n "(cached) " >&6 11885else 11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11887/* end confdefs.h. */ 11888int i; 11889_ACEOF 11890if ac_fn_c_try_compile "$LINENO"; then : 11891 xorg_cv_cc_flag_unused_command_line_argument=yes 11892else 11893 xorg_cv_cc_flag_unused_command_line_argument=no 11894fi 11895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11896fi 11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11900 CFLAGS="$xorg_testset_save_CFLAGS" 11901fi 11902 11903found="no" 11904 11905 if test $found = "no" ; then 11906 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11908 fi 11909 11910 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11912 fi 11913 11914 CFLAGS="$CFLAGS -Wall" 11915 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11917$as_echo_n "checking if $CC supports -Wall... " >&6; } 11918 cacheid=xorg_cv_cc_flag__Wall 11919 if eval \${$cacheid+:} false; then : 11920 $as_echo_n "(cached) " >&6 11921else 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924int i; 11925int 11926main () 11927{ 11928 11929 ; 11930 return 0; 11931} 11932_ACEOF 11933if ac_fn_c_try_link "$LINENO"; then : 11934 eval $cacheid=yes 11935else 11936 eval $cacheid=no 11937fi 11938rm -f core conftest.err conftest.$ac_objext \ 11939 conftest$ac_exeext conftest.$ac_ext 11940fi 11941 11942 11943 CFLAGS="$xorg_testset_save_CFLAGS" 11944 11945 eval supported=\$$cacheid 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11947$as_echo "$supported" >&6; } 11948 if test "$supported" = "yes" ; then 11949 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11950 found="yes" 11951 fi 11952 fi 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968xorg_testset_save_CFLAGS="$CFLAGS" 11969 11970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11978/* end confdefs.h. */ 11979int i; 11980_ACEOF 11981if ac_fn_c_try_compile "$LINENO"; then : 11982 xorg_cv_cc_flag_unknown_warning_option=yes 11983else 11984 xorg_cv_cc_flag_unknown_warning_option=no 11985fi 11986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11987fi 11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11991 CFLAGS="$xorg_testset_save_CFLAGS" 11992fi 11993 11994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11997 fi 11998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12002 $as_echo_n "(cached) " >&6 12003else 12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12005/* end confdefs.h. */ 12006int i; 12007_ACEOF 12008if ac_fn_c_try_compile "$LINENO"; then : 12009 xorg_cv_cc_flag_unused_command_line_argument=yes 12010else 12011 xorg_cv_cc_flag_unused_command_line_argument=no 12012fi 12013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12014fi 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12018 CFLAGS="$xorg_testset_save_CFLAGS" 12019fi 12020 12021found="no" 12022 12023 if test $found = "no" ; then 12024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12026 fi 12027 12028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12030 fi 12031 12032 CFLAGS="$CFLAGS -Wpointer-arith" 12033 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12035$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12036 cacheid=xorg_cv_cc_flag__Wpointer_arith 12037 if eval \${$cacheid+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039else 12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12041/* end confdefs.h. */ 12042int i; 12043int 12044main () 12045{ 12046 12047 ; 12048 return 0; 12049} 12050_ACEOF 12051if ac_fn_c_try_link "$LINENO"; then : 12052 eval $cacheid=yes 12053else 12054 eval $cacheid=no 12055fi 12056rm -f core conftest.err conftest.$ac_objext \ 12057 conftest$ac_exeext conftest.$ac_ext 12058fi 12059 12060 12061 CFLAGS="$xorg_testset_save_CFLAGS" 12062 12063 eval supported=\$$cacheid 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12065$as_echo "$supported" >&6; } 12066 if test "$supported" = "yes" ; then 12067 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12068 found="yes" 12069 fi 12070 fi 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086xorg_testset_save_CFLAGS="$CFLAGS" 12087 12088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12093 $as_echo_n "(cached) " >&6 12094else 12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12096/* end confdefs.h. */ 12097int i; 12098_ACEOF 12099if ac_fn_c_try_compile "$LINENO"; then : 12100 xorg_cv_cc_flag_unknown_warning_option=yes 12101else 12102 xorg_cv_cc_flag_unknown_warning_option=no 12103fi 12104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12105fi 12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12109 CFLAGS="$xorg_testset_save_CFLAGS" 12110fi 12111 12112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12115 fi 12116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12120 $as_echo_n "(cached) " >&6 12121else 12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12123/* end confdefs.h. */ 12124int i; 12125_ACEOF 12126if ac_fn_c_try_compile "$LINENO"; then : 12127 xorg_cv_cc_flag_unused_command_line_argument=yes 12128else 12129 xorg_cv_cc_flag_unused_command_line_argument=no 12130fi 12131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12132fi 12133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12136 CFLAGS="$xorg_testset_save_CFLAGS" 12137fi 12138 12139found="no" 12140 12141 if test $found = "no" ; then 12142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12144 fi 12145 12146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12148 fi 12149 12150 CFLAGS="$CFLAGS -Wmissing-declarations" 12151 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12153$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12154 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12155 if eval \${$cacheid+:} false; then : 12156 $as_echo_n "(cached) " >&6 12157else 12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12159/* end confdefs.h. */ 12160int i; 12161int 12162main () 12163{ 12164 12165 ; 12166 return 0; 12167} 12168_ACEOF 12169if ac_fn_c_try_link "$LINENO"; then : 12170 eval $cacheid=yes 12171else 12172 eval $cacheid=no 12173fi 12174rm -f core conftest.err conftest.$ac_objext \ 12175 conftest$ac_exeext conftest.$ac_ext 12176fi 12177 12178 12179 CFLAGS="$xorg_testset_save_CFLAGS" 12180 12181 eval supported=\$$cacheid 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12183$as_echo "$supported" >&6; } 12184 if test "$supported" = "yes" ; then 12185 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12186 found="yes" 12187 fi 12188 fi 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204xorg_testset_save_CFLAGS="$CFLAGS" 12205 12206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12211 $as_echo_n "(cached) " >&6 12212else 12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12214/* end confdefs.h. */ 12215int i; 12216_ACEOF 12217if ac_fn_c_try_compile "$LINENO"; then : 12218 xorg_cv_cc_flag_unknown_warning_option=yes 12219else 12220 xorg_cv_cc_flag_unknown_warning_option=no 12221fi 12222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12223fi 12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12227 CFLAGS="$xorg_testset_save_CFLAGS" 12228fi 12229 12230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12233 fi 12234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12238 $as_echo_n "(cached) " >&6 12239else 12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12241/* end confdefs.h. */ 12242int i; 12243_ACEOF 12244if ac_fn_c_try_compile "$LINENO"; then : 12245 xorg_cv_cc_flag_unused_command_line_argument=yes 12246else 12247 xorg_cv_cc_flag_unused_command_line_argument=no 12248fi 12249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12250fi 12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12254 CFLAGS="$xorg_testset_save_CFLAGS" 12255fi 12256 12257found="no" 12258 12259 if test $found = "no" ; then 12260 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12262 fi 12263 12264 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12266 fi 12267 12268 CFLAGS="$CFLAGS -Wformat=2" 12269 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12271$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12272 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12273 if eval \${$cacheid+:} false; then : 12274 $as_echo_n "(cached) " >&6 12275else 12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12277/* end confdefs.h. */ 12278int i; 12279int 12280main () 12281{ 12282 12283 ; 12284 return 0; 12285} 12286_ACEOF 12287if ac_fn_c_try_link "$LINENO"; then : 12288 eval $cacheid=yes 12289else 12290 eval $cacheid=no 12291fi 12292rm -f core conftest.err conftest.$ac_objext \ 12293 conftest$ac_exeext conftest.$ac_ext 12294fi 12295 12296 12297 CFLAGS="$xorg_testset_save_CFLAGS" 12298 12299 eval supported=\$$cacheid 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12301$as_echo "$supported" >&6; } 12302 if test "$supported" = "yes" ; then 12303 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12304 found="yes" 12305 fi 12306 fi 12307 12308 if test $found = "no" ; then 12309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12311 fi 12312 12313 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12315 fi 12316 12317 CFLAGS="$CFLAGS -Wformat" 12318 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12320$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12321 cacheid=xorg_cv_cc_flag__Wformat 12322 if eval \${$cacheid+:} false; then : 12323 $as_echo_n "(cached) " >&6 12324else 12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12326/* end confdefs.h. */ 12327int i; 12328int 12329main () 12330{ 12331 12332 ; 12333 return 0; 12334} 12335_ACEOF 12336if ac_fn_c_try_link "$LINENO"; then : 12337 eval $cacheid=yes 12338else 12339 eval $cacheid=no 12340fi 12341rm -f core conftest.err conftest.$ac_objext \ 12342 conftest$ac_exeext conftest.$ac_ext 12343fi 12344 12345 12346 CFLAGS="$xorg_testset_save_CFLAGS" 12347 12348 eval supported=\$$cacheid 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12350$as_echo "$supported" >&6; } 12351 if test "$supported" = "yes" ; then 12352 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12353 found="yes" 12354 fi 12355 fi 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373xorg_testset_save_CFLAGS="$CFLAGS" 12374 12375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12378$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12379if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12380 $as_echo_n "(cached) " >&6 12381else 12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12383/* end confdefs.h. */ 12384int i; 12385_ACEOF 12386if ac_fn_c_try_compile "$LINENO"; then : 12387 xorg_cv_cc_flag_unknown_warning_option=yes 12388else 12389 xorg_cv_cc_flag_unknown_warning_option=no 12390fi 12391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12392fi 12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12394$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12396 CFLAGS="$xorg_testset_save_CFLAGS" 12397fi 12398 12399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12402 fi 12403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12405$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12406if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12407 $as_echo_n "(cached) " >&6 12408else 12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12410/* end confdefs.h. */ 12411int i; 12412_ACEOF 12413if ac_fn_c_try_compile "$LINENO"; then : 12414 xorg_cv_cc_flag_unused_command_line_argument=yes 12415else 12416 xorg_cv_cc_flag_unused_command_line_argument=no 12417fi 12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12419fi 12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12421$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12423 CFLAGS="$xorg_testset_save_CFLAGS" 12424fi 12425 12426found="no" 12427 12428 if test $found = "no" ; then 12429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12431 fi 12432 12433 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12435 fi 12436 12437 CFLAGS="$CFLAGS -Wstrict-prototypes" 12438 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12440$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12441 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12442 if eval \${$cacheid+:} false; then : 12443 $as_echo_n "(cached) " >&6 12444else 12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12446/* end confdefs.h. */ 12447int i; 12448int 12449main () 12450{ 12451 12452 ; 12453 return 0; 12454} 12455_ACEOF 12456if ac_fn_c_try_link "$LINENO"; then : 12457 eval $cacheid=yes 12458else 12459 eval $cacheid=no 12460fi 12461rm -f core conftest.err conftest.$ac_objext \ 12462 conftest$ac_exeext conftest.$ac_ext 12463fi 12464 12465 12466 CFLAGS="$xorg_testset_save_CFLAGS" 12467 12468 eval supported=\$$cacheid 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12470$as_echo "$supported" >&6; } 12471 if test "$supported" = "yes" ; then 12472 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12473 found="yes" 12474 fi 12475 fi 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491xorg_testset_save_CFLAGS="$CFLAGS" 12492 12493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12496$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12497if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12498 $as_echo_n "(cached) " >&6 12499else 12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12501/* end confdefs.h. */ 12502int i; 12503_ACEOF 12504if ac_fn_c_try_compile "$LINENO"; then : 12505 xorg_cv_cc_flag_unknown_warning_option=yes 12506else 12507 xorg_cv_cc_flag_unknown_warning_option=no 12508fi 12509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12510fi 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12512$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12514 CFLAGS="$xorg_testset_save_CFLAGS" 12515fi 12516 12517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12520 fi 12521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12523$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12524if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12525 $as_echo_n "(cached) " >&6 12526else 12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12528/* end confdefs.h. */ 12529int i; 12530_ACEOF 12531if ac_fn_c_try_compile "$LINENO"; then : 12532 xorg_cv_cc_flag_unused_command_line_argument=yes 12533else 12534 xorg_cv_cc_flag_unused_command_line_argument=no 12535fi 12536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12537fi 12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12539$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12541 CFLAGS="$xorg_testset_save_CFLAGS" 12542fi 12543 12544found="no" 12545 12546 if test $found = "no" ; then 12547 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12549 fi 12550 12551 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12553 fi 12554 12555 CFLAGS="$CFLAGS -Wmissing-prototypes" 12556 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12558$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12559 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12560 if eval \${$cacheid+:} false; then : 12561 $as_echo_n "(cached) " >&6 12562else 12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12564/* end confdefs.h. */ 12565int i; 12566int 12567main () 12568{ 12569 12570 ; 12571 return 0; 12572} 12573_ACEOF 12574if ac_fn_c_try_link "$LINENO"; then : 12575 eval $cacheid=yes 12576else 12577 eval $cacheid=no 12578fi 12579rm -f core conftest.err conftest.$ac_objext \ 12580 conftest$ac_exeext conftest.$ac_ext 12581fi 12582 12583 12584 CFLAGS="$xorg_testset_save_CFLAGS" 12585 12586 eval supported=\$$cacheid 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12588$as_echo "$supported" >&6; } 12589 if test "$supported" = "yes" ; then 12590 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12591 found="yes" 12592 fi 12593 fi 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609xorg_testset_save_CFLAGS="$CFLAGS" 12610 12611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12614$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12615if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12616 $as_echo_n "(cached) " >&6 12617else 12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620int i; 12621_ACEOF 12622if ac_fn_c_try_compile "$LINENO"; then : 12623 xorg_cv_cc_flag_unknown_warning_option=yes 12624else 12625 xorg_cv_cc_flag_unknown_warning_option=no 12626fi 12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12628fi 12629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12630$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12632 CFLAGS="$xorg_testset_save_CFLAGS" 12633fi 12634 12635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12638 fi 12639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12641$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12642if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12643 $as_echo_n "(cached) " >&6 12644else 12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647int i; 12648_ACEOF 12649if ac_fn_c_try_compile "$LINENO"; then : 12650 xorg_cv_cc_flag_unused_command_line_argument=yes 12651else 12652 xorg_cv_cc_flag_unused_command_line_argument=no 12653fi 12654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12655fi 12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12657$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12659 CFLAGS="$xorg_testset_save_CFLAGS" 12660fi 12661 12662found="no" 12663 12664 if test $found = "no" ; then 12665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12667 fi 12668 12669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12671 fi 12672 12673 CFLAGS="$CFLAGS -Wnested-externs" 12674 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12676$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12677 cacheid=xorg_cv_cc_flag__Wnested_externs 12678 if eval \${$cacheid+:} false; then : 12679 $as_echo_n "(cached) " >&6 12680else 12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12682/* end confdefs.h. */ 12683int i; 12684int 12685main () 12686{ 12687 12688 ; 12689 return 0; 12690} 12691_ACEOF 12692if ac_fn_c_try_link "$LINENO"; then : 12693 eval $cacheid=yes 12694else 12695 eval $cacheid=no 12696fi 12697rm -f core conftest.err conftest.$ac_objext \ 12698 conftest$ac_exeext conftest.$ac_ext 12699fi 12700 12701 12702 CFLAGS="$xorg_testset_save_CFLAGS" 12703 12704 eval supported=\$$cacheid 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12706$as_echo "$supported" >&6; } 12707 if test "$supported" = "yes" ; then 12708 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12709 found="yes" 12710 fi 12711 fi 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727xorg_testset_save_CFLAGS="$CFLAGS" 12728 12729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12734 $as_echo_n "(cached) " >&6 12735else 12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12737/* end confdefs.h. */ 12738int i; 12739_ACEOF 12740if ac_fn_c_try_compile "$LINENO"; then : 12741 xorg_cv_cc_flag_unknown_warning_option=yes 12742else 12743 xorg_cv_cc_flag_unknown_warning_option=no 12744fi 12745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12746fi 12747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12750 CFLAGS="$xorg_testset_save_CFLAGS" 12751fi 12752 12753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12756 fi 12757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12761 $as_echo_n "(cached) " >&6 12762else 12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12764/* end confdefs.h. */ 12765int i; 12766_ACEOF 12767if ac_fn_c_try_compile "$LINENO"; then : 12768 xorg_cv_cc_flag_unused_command_line_argument=yes 12769else 12770 xorg_cv_cc_flag_unused_command_line_argument=no 12771fi 12772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12773fi 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12777 CFLAGS="$xorg_testset_save_CFLAGS" 12778fi 12779 12780found="no" 12781 12782 if test $found = "no" ; then 12783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12785 fi 12786 12787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12789 fi 12790 12791 CFLAGS="$CFLAGS -Wbad-function-cast" 12792 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12794$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12795 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12796 if eval \${$cacheid+:} false; then : 12797 $as_echo_n "(cached) " >&6 12798else 12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801int i; 12802int 12803main () 12804{ 12805 12806 ; 12807 return 0; 12808} 12809_ACEOF 12810if ac_fn_c_try_link "$LINENO"; then : 12811 eval $cacheid=yes 12812else 12813 eval $cacheid=no 12814fi 12815rm -f core conftest.err conftest.$ac_objext \ 12816 conftest$ac_exeext conftest.$ac_ext 12817fi 12818 12819 12820 CFLAGS="$xorg_testset_save_CFLAGS" 12821 12822 eval supported=\$$cacheid 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12824$as_echo "$supported" >&6; } 12825 if test "$supported" = "yes" ; then 12826 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12827 found="yes" 12828 fi 12829 fi 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845xorg_testset_save_CFLAGS="$CFLAGS" 12846 12847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12852 $as_echo_n "(cached) " >&6 12853else 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856int i; 12857_ACEOF 12858if ac_fn_c_try_compile "$LINENO"; then : 12859 xorg_cv_cc_flag_unknown_warning_option=yes 12860else 12861 xorg_cv_cc_flag_unknown_warning_option=no 12862fi 12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12864fi 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12868 CFLAGS="$xorg_testset_save_CFLAGS" 12869fi 12870 12871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12874 fi 12875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12879 $as_echo_n "(cached) " >&6 12880else 12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12882/* end confdefs.h. */ 12883int i; 12884_ACEOF 12885if ac_fn_c_try_compile "$LINENO"; then : 12886 xorg_cv_cc_flag_unused_command_line_argument=yes 12887else 12888 xorg_cv_cc_flag_unused_command_line_argument=no 12889fi 12890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12891fi 12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12895 CFLAGS="$xorg_testset_save_CFLAGS" 12896fi 12897 12898found="no" 12899 12900 if test $found = "no" ; then 12901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12903 fi 12904 12905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12907 fi 12908 12909 CFLAGS="$CFLAGS -Wold-style-definition" 12910 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12912$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12913 cacheid=xorg_cv_cc_flag__Wold_style_definition 12914 if eval \${$cacheid+:} false; then : 12915 $as_echo_n "(cached) " >&6 12916else 12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12918/* end confdefs.h. */ 12919int i; 12920int 12921main () 12922{ 12923 12924 ; 12925 return 0; 12926} 12927_ACEOF 12928if ac_fn_c_try_link "$LINENO"; then : 12929 eval $cacheid=yes 12930else 12931 eval $cacheid=no 12932fi 12933rm -f core conftest.err conftest.$ac_objext \ 12934 conftest$ac_exeext conftest.$ac_ext 12935fi 12936 12937 12938 CFLAGS="$xorg_testset_save_CFLAGS" 12939 12940 eval supported=\$$cacheid 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12942$as_echo "$supported" >&6; } 12943 if test "$supported" = "yes" ; then 12944 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12945 found="yes" 12946 fi 12947 fi 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963xorg_testset_save_CFLAGS="$CFLAGS" 12964 12965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12970 $as_echo_n "(cached) " >&6 12971else 12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12973/* end confdefs.h. */ 12974int i; 12975_ACEOF 12976if ac_fn_c_try_compile "$LINENO"; then : 12977 xorg_cv_cc_flag_unknown_warning_option=yes 12978else 12979 xorg_cv_cc_flag_unknown_warning_option=no 12980fi 12981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12982fi 12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12986 CFLAGS="$xorg_testset_save_CFLAGS" 12987fi 12988 12989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12992 fi 12993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12997 $as_echo_n "(cached) " >&6 12998else 12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13000/* end confdefs.h. */ 13001int i; 13002_ACEOF 13003if ac_fn_c_try_compile "$LINENO"; then : 13004 xorg_cv_cc_flag_unused_command_line_argument=yes 13005else 13006 xorg_cv_cc_flag_unused_command_line_argument=no 13007fi 13008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13009fi 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13013 CFLAGS="$xorg_testset_save_CFLAGS" 13014fi 13015 13016found="no" 13017 13018 if test $found = "no" ; then 13019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13021 fi 13022 13023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13025 fi 13026 13027 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13028 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13030$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13031 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13032 if eval \${$cacheid+:} false; then : 13033 $as_echo_n "(cached) " >&6 13034else 13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13036/* end confdefs.h. */ 13037int i; 13038int 13039main () 13040{ 13041 13042 ; 13043 return 0; 13044} 13045_ACEOF 13046if ac_fn_c_try_link "$LINENO"; then : 13047 eval $cacheid=yes 13048else 13049 eval $cacheid=no 13050fi 13051rm -f core conftest.err conftest.$ac_objext \ 13052 conftest$ac_exeext conftest.$ac_ext 13053fi 13054 13055 13056 CFLAGS="$xorg_testset_save_CFLAGS" 13057 13058 eval supported=\$$cacheid 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13060$as_echo "$supported" >&6; } 13061 if test "$supported" = "yes" ; then 13062 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13063 found="yes" 13064 fi 13065 fi 13066 13067 13068 13069 13070 13071# This chunk adds additional warnings that could catch undesired effects. 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085xorg_testset_save_CFLAGS="$CFLAGS" 13086 13087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13092 $as_echo_n "(cached) " >&6 13093else 13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13095/* end confdefs.h. */ 13096int i; 13097_ACEOF 13098if ac_fn_c_try_compile "$LINENO"; then : 13099 xorg_cv_cc_flag_unknown_warning_option=yes 13100else 13101 xorg_cv_cc_flag_unknown_warning_option=no 13102fi 13103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13104fi 13105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13108 CFLAGS="$xorg_testset_save_CFLAGS" 13109fi 13110 13111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13114 fi 13115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13119 $as_echo_n "(cached) " >&6 13120else 13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13122/* end confdefs.h. */ 13123int i; 13124_ACEOF 13125if ac_fn_c_try_compile "$LINENO"; then : 13126 xorg_cv_cc_flag_unused_command_line_argument=yes 13127else 13128 xorg_cv_cc_flag_unused_command_line_argument=no 13129fi 13130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13131fi 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13135 CFLAGS="$xorg_testset_save_CFLAGS" 13136fi 13137 13138found="no" 13139 13140 if test $found = "no" ; then 13141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13143 fi 13144 13145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13147 fi 13148 13149 CFLAGS="$CFLAGS -Wunused" 13150 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13152$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13153 cacheid=xorg_cv_cc_flag__Wunused 13154 if eval \${$cacheid+:} false; then : 13155 $as_echo_n "(cached) " >&6 13156else 13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13158/* end confdefs.h. */ 13159int i; 13160int 13161main () 13162{ 13163 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168if ac_fn_c_try_link "$LINENO"; then : 13169 eval $cacheid=yes 13170else 13171 eval $cacheid=no 13172fi 13173rm -f core conftest.err conftest.$ac_objext \ 13174 conftest$ac_exeext conftest.$ac_ext 13175fi 13176 13177 13178 CFLAGS="$xorg_testset_save_CFLAGS" 13179 13180 eval supported=\$$cacheid 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13182$as_echo "$supported" >&6; } 13183 if test "$supported" = "yes" ; then 13184 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13185 found="yes" 13186 fi 13187 fi 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203xorg_testset_save_CFLAGS="$CFLAGS" 13204 13205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13210 $as_echo_n "(cached) " >&6 13211else 13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13213/* end confdefs.h. */ 13214int i; 13215_ACEOF 13216if ac_fn_c_try_compile "$LINENO"; then : 13217 xorg_cv_cc_flag_unknown_warning_option=yes 13218else 13219 xorg_cv_cc_flag_unknown_warning_option=no 13220fi 13221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13222fi 13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13226 CFLAGS="$xorg_testset_save_CFLAGS" 13227fi 13228 13229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13232 fi 13233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13237 $as_echo_n "(cached) " >&6 13238else 13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13240/* end confdefs.h. */ 13241int i; 13242_ACEOF 13243if ac_fn_c_try_compile "$LINENO"; then : 13244 xorg_cv_cc_flag_unused_command_line_argument=yes 13245else 13246 xorg_cv_cc_flag_unused_command_line_argument=no 13247fi 13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13249fi 13250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13253 CFLAGS="$xorg_testset_save_CFLAGS" 13254fi 13255 13256found="no" 13257 13258 if test $found = "no" ; then 13259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13261 fi 13262 13263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13265 fi 13266 13267 CFLAGS="$CFLAGS -Wuninitialized" 13268 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13270$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13271 cacheid=xorg_cv_cc_flag__Wuninitialized 13272 if eval \${$cacheid+:} false; then : 13273 $as_echo_n "(cached) " >&6 13274else 13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13276/* end confdefs.h. */ 13277int i; 13278int 13279main () 13280{ 13281 13282 ; 13283 return 0; 13284} 13285_ACEOF 13286if ac_fn_c_try_link "$LINENO"; then : 13287 eval $cacheid=yes 13288else 13289 eval $cacheid=no 13290fi 13291rm -f core conftest.err conftest.$ac_objext \ 13292 conftest$ac_exeext conftest.$ac_ext 13293fi 13294 13295 13296 CFLAGS="$xorg_testset_save_CFLAGS" 13297 13298 eval supported=\$$cacheid 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13300$as_echo "$supported" >&6; } 13301 if test "$supported" = "yes" ; then 13302 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13303 found="yes" 13304 fi 13305 fi 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321xorg_testset_save_CFLAGS="$CFLAGS" 13322 13323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13328 $as_echo_n "(cached) " >&6 13329else 13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13331/* end confdefs.h. */ 13332int i; 13333_ACEOF 13334if ac_fn_c_try_compile "$LINENO"; then : 13335 xorg_cv_cc_flag_unknown_warning_option=yes 13336else 13337 xorg_cv_cc_flag_unknown_warning_option=no 13338fi 13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13340fi 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13344 CFLAGS="$xorg_testset_save_CFLAGS" 13345fi 13346 13347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13350 fi 13351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13355 $as_echo_n "(cached) " >&6 13356else 13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358/* end confdefs.h. */ 13359int i; 13360_ACEOF 13361if ac_fn_c_try_compile "$LINENO"; then : 13362 xorg_cv_cc_flag_unused_command_line_argument=yes 13363else 13364 xorg_cv_cc_flag_unused_command_line_argument=no 13365fi 13366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13367fi 13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13371 CFLAGS="$xorg_testset_save_CFLAGS" 13372fi 13373 13374found="no" 13375 13376 if test $found = "no" ; then 13377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13379 fi 13380 13381 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13383 fi 13384 13385 CFLAGS="$CFLAGS -Wshadow" 13386 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13388$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13389 cacheid=xorg_cv_cc_flag__Wshadow 13390 if eval \${$cacheid+:} false; then : 13391 $as_echo_n "(cached) " >&6 13392else 13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13394/* end confdefs.h. */ 13395int i; 13396int 13397main () 13398{ 13399 13400 ; 13401 return 0; 13402} 13403_ACEOF 13404if ac_fn_c_try_link "$LINENO"; then : 13405 eval $cacheid=yes 13406else 13407 eval $cacheid=no 13408fi 13409rm -f core conftest.err conftest.$ac_objext \ 13410 conftest$ac_exeext conftest.$ac_ext 13411fi 13412 13413 13414 CFLAGS="$xorg_testset_save_CFLAGS" 13415 13416 eval supported=\$$cacheid 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13418$as_echo "$supported" >&6; } 13419 if test "$supported" = "yes" ; then 13420 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13421 found="yes" 13422 fi 13423 fi 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439xorg_testset_save_CFLAGS="$CFLAGS" 13440 13441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13446 $as_echo_n "(cached) " >&6 13447else 13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450int i; 13451_ACEOF 13452if ac_fn_c_try_compile "$LINENO"; then : 13453 xorg_cv_cc_flag_unknown_warning_option=yes 13454else 13455 xorg_cv_cc_flag_unknown_warning_option=no 13456fi 13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13458fi 13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13462 CFLAGS="$xorg_testset_save_CFLAGS" 13463fi 13464 13465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13468 fi 13469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13473 $as_echo_n "(cached) " >&6 13474else 13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13476/* end confdefs.h. */ 13477int i; 13478_ACEOF 13479if ac_fn_c_try_compile "$LINENO"; then : 13480 xorg_cv_cc_flag_unused_command_line_argument=yes 13481else 13482 xorg_cv_cc_flag_unused_command_line_argument=no 13483fi 13484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13485fi 13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13489 CFLAGS="$xorg_testset_save_CFLAGS" 13490fi 13491 13492found="no" 13493 13494 if test $found = "no" ; then 13495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13497 fi 13498 13499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13501 fi 13502 13503 CFLAGS="$CFLAGS -Wcast-qual" 13504 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13506$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13507 cacheid=xorg_cv_cc_flag__Wcast_qual 13508 if eval \${$cacheid+:} false; then : 13509 $as_echo_n "(cached) " >&6 13510else 13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13512/* end confdefs.h. */ 13513int i; 13514int 13515main () 13516{ 13517 13518 ; 13519 return 0; 13520} 13521_ACEOF 13522if ac_fn_c_try_link "$LINENO"; then : 13523 eval $cacheid=yes 13524else 13525 eval $cacheid=no 13526fi 13527rm -f core conftest.err conftest.$ac_objext \ 13528 conftest$ac_exeext conftest.$ac_ext 13529fi 13530 13531 13532 CFLAGS="$xorg_testset_save_CFLAGS" 13533 13534 eval supported=\$$cacheid 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13536$as_echo "$supported" >&6; } 13537 if test "$supported" = "yes" ; then 13538 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13539 found="yes" 13540 fi 13541 fi 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557xorg_testset_save_CFLAGS="$CFLAGS" 13558 13559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565else 13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13567/* end confdefs.h. */ 13568int i; 13569_ACEOF 13570if ac_fn_c_try_compile "$LINENO"; then : 13571 xorg_cv_cc_flag_unknown_warning_option=yes 13572else 13573 xorg_cv_cc_flag_unknown_warning_option=no 13574fi 13575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13576fi 13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13580 CFLAGS="$xorg_testset_save_CFLAGS" 13581fi 13582 13583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13586 fi 13587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13591 $as_echo_n "(cached) " >&6 13592else 13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13594/* end confdefs.h. */ 13595int i; 13596_ACEOF 13597if ac_fn_c_try_compile "$LINENO"; then : 13598 xorg_cv_cc_flag_unused_command_line_argument=yes 13599else 13600 xorg_cv_cc_flag_unused_command_line_argument=no 13601fi 13602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13603fi 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13607 CFLAGS="$xorg_testset_save_CFLAGS" 13608fi 13609 13610found="no" 13611 13612 if test $found = "no" ; then 13613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13615 fi 13616 13617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13619 fi 13620 13621 CFLAGS="$CFLAGS -Wmissing-noreturn" 13622 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13624$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13625 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13626 if eval \${$cacheid+:} false; then : 13627 $as_echo_n "(cached) " >&6 13628else 13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13630/* end confdefs.h. */ 13631int i; 13632int 13633main () 13634{ 13635 13636 ; 13637 return 0; 13638} 13639_ACEOF 13640if ac_fn_c_try_link "$LINENO"; then : 13641 eval $cacheid=yes 13642else 13643 eval $cacheid=no 13644fi 13645rm -f core conftest.err conftest.$ac_objext \ 13646 conftest$ac_exeext conftest.$ac_ext 13647fi 13648 13649 13650 CFLAGS="$xorg_testset_save_CFLAGS" 13651 13652 eval supported=\$$cacheid 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13654$as_echo "$supported" >&6; } 13655 if test "$supported" = "yes" ; then 13656 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13657 found="yes" 13658 fi 13659 fi 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675xorg_testset_save_CFLAGS="$CFLAGS" 13676 13677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13682 $as_echo_n "(cached) " >&6 13683else 13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13685/* end confdefs.h. */ 13686int i; 13687_ACEOF 13688if ac_fn_c_try_compile "$LINENO"; then : 13689 xorg_cv_cc_flag_unknown_warning_option=yes 13690else 13691 xorg_cv_cc_flag_unknown_warning_option=no 13692fi 13693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13694fi 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13698 CFLAGS="$xorg_testset_save_CFLAGS" 13699fi 13700 13701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13704 fi 13705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13709 $as_echo_n "(cached) " >&6 13710else 13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13712/* end confdefs.h. */ 13713int i; 13714_ACEOF 13715if ac_fn_c_try_compile "$LINENO"; then : 13716 xorg_cv_cc_flag_unused_command_line_argument=yes 13717else 13718 xorg_cv_cc_flag_unused_command_line_argument=no 13719fi 13720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13721fi 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13725 CFLAGS="$xorg_testset_save_CFLAGS" 13726fi 13727 13728found="no" 13729 13730 if test $found = "no" ; then 13731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13733 fi 13734 13735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13737 fi 13738 13739 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13740 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13742$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13743 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13744 if eval \${$cacheid+:} false; then : 13745 $as_echo_n "(cached) " >&6 13746else 13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13748/* end confdefs.h. */ 13749int i; 13750int 13751main () 13752{ 13753 13754 ; 13755 return 0; 13756} 13757_ACEOF 13758if ac_fn_c_try_link "$LINENO"; then : 13759 eval $cacheid=yes 13760else 13761 eval $cacheid=no 13762fi 13763rm -f core conftest.err conftest.$ac_objext \ 13764 conftest$ac_exeext conftest.$ac_ext 13765fi 13766 13767 13768 CFLAGS="$xorg_testset_save_CFLAGS" 13769 13770 eval supported=\$$cacheid 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13772$as_echo "$supported" >&6; } 13773 if test "$supported" = "yes" ; then 13774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13775 found="yes" 13776 fi 13777 fi 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793xorg_testset_save_CFLAGS="$CFLAGS" 13794 13795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13803/* end confdefs.h. */ 13804int i; 13805_ACEOF 13806if ac_fn_c_try_compile "$LINENO"; then : 13807 xorg_cv_cc_flag_unknown_warning_option=yes 13808else 13809 xorg_cv_cc_flag_unknown_warning_option=no 13810fi 13811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13812fi 13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13816 CFLAGS="$xorg_testset_save_CFLAGS" 13817fi 13818 13819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13822 fi 13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13827 $as_echo_n "(cached) " >&6 13828else 13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13830/* end confdefs.h. */ 13831int i; 13832_ACEOF 13833if ac_fn_c_try_compile "$LINENO"; then : 13834 xorg_cv_cc_flag_unused_command_line_argument=yes 13835else 13836 xorg_cv_cc_flag_unused_command_line_argument=no 13837fi 13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13839fi 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13843 CFLAGS="$xorg_testset_save_CFLAGS" 13844fi 13845 13846found="no" 13847 13848 if test $found = "no" ; then 13849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13851 fi 13852 13853 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13855 fi 13856 13857 CFLAGS="$CFLAGS -Wredundant-decls" 13858 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13860$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13861 cacheid=xorg_cv_cc_flag__Wredundant_decls 13862 if eval \${$cacheid+:} false; then : 13863 $as_echo_n "(cached) " >&6 13864else 13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13866/* end confdefs.h. */ 13867int i; 13868int 13869main () 13870{ 13871 13872 ; 13873 return 0; 13874} 13875_ACEOF 13876if ac_fn_c_try_link "$LINENO"; then : 13877 eval $cacheid=yes 13878else 13879 eval $cacheid=no 13880fi 13881rm -f core conftest.err conftest.$ac_objext \ 13882 conftest$ac_exeext conftest.$ac_ext 13883fi 13884 13885 13886 CFLAGS="$xorg_testset_save_CFLAGS" 13887 13888 eval supported=\$$cacheid 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13890$as_echo "$supported" >&6; } 13891 if test "$supported" = "yes" ; then 13892 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13893 found="yes" 13894 fi 13895 fi 13896 13897 13898 13899# These are currently disabled because they are noisy. They will be enabled 13900# in the future once the codebase is sufficiently modernized to silence 13901# them. For now, I don't want them to drown out the other warnings. 13902# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13903# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13904# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13905 13906# Turn some warnings into errors, so we don't accidently get successful builds 13907# when there are problems that should be fixed. 13908 13909if test "x$SELECTIVE_WERROR" = "xyes" ; then 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923xorg_testset_save_CFLAGS="$CFLAGS" 13924 13925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934int i; 13935_ACEOF 13936if ac_fn_c_try_compile "$LINENO"; then : 13937 xorg_cv_cc_flag_unknown_warning_option=yes 13938else 13939 xorg_cv_cc_flag_unknown_warning_option=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13942fi 13943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13946 CFLAGS="$xorg_testset_save_CFLAGS" 13947fi 13948 13949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13952 fi 13953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13960/* end confdefs.h. */ 13961int i; 13962_ACEOF 13963if ac_fn_c_try_compile "$LINENO"; then : 13964 xorg_cv_cc_flag_unused_command_line_argument=yes 13965else 13966 xorg_cv_cc_flag_unused_command_line_argument=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13969fi 13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13973 CFLAGS="$xorg_testset_save_CFLAGS" 13974fi 13975 13976found="no" 13977 13978 if test $found = "no" ; then 13979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13981 fi 13982 13983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13985 fi 13986 13987 CFLAGS="$CFLAGS -Werror=implicit" 13988 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13990$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13991 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13992 if eval \${$cacheid+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994else 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997int i; 13998int 13999main () 14000{ 14001 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006if ac_fn_c_try_link "$LINENO"; then : 14007 eval $cacheid=yes 14008else 14009 eval $cacheid=no 14010fi 14011rm -f core conftest.err conftest.$ac_objext \ 14012 conftest$ac_exeext conftest.$ac_ext 14013fi 14014 14015 14016 CFLAGS="$xorg_testset_save_CFLAGS" 14017 14018 eval supported=\$$cacheid 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14020$as_echo "$supported" >&6; } 14021 if test "$supported" = "yes" ; then 14022 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14023 found="yes" 14024 fi 14025 fi 14026 14027 if test $found = "no" ; then 14028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14030 fi 14031 14032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14034 fi 14035 14036 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14037 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14039$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14040 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14041 if eval \${$cacheid+:} false; then : 14042 $as_echo_n "(cached) " >&6 14043else 14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14045/* end confdefs.h. */ 14046int i; 14047int 14048main () 14049{ 14050 14051 ; 14052 return 0; 14053} 14054_ACEOF 14055if ac_fn_c_try_link "$LINENO"; then : 14056 eval $cacheid=yes 14057else 14058 eval $cacheid=no 14059fi 14060rm -f core conftest.err conftest.$ac_objext \ 14061 conftest$ac_exeext conftest.$ac_ext 14062fi 14063 14064 14065 CFLAGS="$xorg_testset_save_CFLAGS" 14066 14067 eval supported=\$$cacheid 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14069$as_echo "$supported" >&6; } 14070 if test "$supported" = "yes" ; then 14071 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14072 found="yes" 14073 fi 14074 fi 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090xorg_testset_save_CFLAGS="$CFLAGS" 14091 14092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14097 $as_echo_n "(cached) " >&6 14098else 14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101int i; 14102_ACEOF 14103if ac_fn_c_try_compile "$LINENO"; then : 14104 xorg_cv_cc_flag_unknown_warning_option=yes 14105else 14106 xorg_cv_cc_flag_unknown_warning_option=no 14107fi 14108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14109fi 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14113 CFLAGS="$xorg_testset_save_CFLAGS" 14114fi 14115 14116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14119 fi 14120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14124 $as_echo_n "(cached) " >&6 14125else 14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14127/* end confdefs.h. */ 14128int i; 14129_ACEOF 14130if ac_fn_c_try_compile "$LINENO"; then : 14131 xorg_cv_cc_flag_unused_command_line_argument=yes 14132else 14133 xorg_cv_cc_flag_unused_command_line_argument=no 14134fi 14135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14136fi 14137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14140 CFLAGS="$xorg_testset_save_CFLAGS" 14141fi 14142 14143found="no" 14144 14145 if test $found = "no" ; then 14146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14148 fi 14149 14150 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14152 fi 14153 14154 CFLAGS="$CFLAGS -Werror=nonnull" 14155 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14157$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14158 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14159 if eval \${$cacheid+:} false; then : 14160 $as_echo_n "(cached) " >&6 14161else 14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14163/* end confdefs.h. */ 14164int i; 14165int 14166main () 14167{ 14168 14169 ; 14170 return 0; 14171} 14172_ACEOF 14173if ac_fn_c_try_link "$LINENO"; then : 14174 eval $cacheid=yes 14175else 14176 eval $cacheid=no 14177fi 14178rm -f core conftest.err conftest.$ac_objext \ 14179 conftest$ac_exeext conftest.$ac_ext 14180fi 14181 14182 14183 CFLAGS="$xorg_testset_save_CFLAGS" 14184 14185 eval supported=\$$cacheid 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14187$as_echo "$supported" >&6; } 14188 if test "$supported" = "yes" ; then 14189 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14190 found="yes" 14191 fi 14192 fi 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208xorg_testset_save_CFLAGS="$CFLAGS" 14209 14210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14215 $as_echo_n "(cached) " >&6 14216else 14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14218/* end confdefs.h. */ 14219int i; 14220_ACEOF 14221if ac_fn_c_try_compile "$LINENO"; then : 14222 xorg_cv_cc_flag_unknown_warning_option=yes 14223else 14224 xorg_cv_cc_flag_unknown_warning_option=no 14225fi 14226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14227fi 14228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14231 CFLAGS="$xorg_testset_save_CFLAGS" 14232fi 14233 14234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14237 fi 14238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14242 $as_echo_n "(cached) " >&6 14243else 14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14245/* end confdefs.h. */ 14246int i; 14247_ACEOF 14248if ac_fn_c_try_compile "$LINENO"; then : 14249 xorg_cv_cc_flag_unused_command_line_argument=yes 14250else 14251 xorg_cv_cc_flag_unused_command_line_argument=no 14252fi 14253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14254fi 14255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14258 CFLAGS="$xorg_testset_save_CFLAGS" 14259fi 14260 14261found="no" 14262 14263 if test $found = "no" ; then 14264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14266 fi 14267 14268 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14270 fi 14271 14272 CFLAGS="$CFLAGS -Werror=init-self" 14273 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14275$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14276 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14277 if eval \${$cacheid+:} false; then : 14278 $as_echo_n "(cached) " >&6 14279else 14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14281/* end confdefs.h. */ 14282int i; 14283int 14284main () 14285{ 14286 14287 ; 14288 return 0; 14289} 14290_ACEOF 14291if ac_fn_c_try_link "$LINENO"; then : 14292 eval $cacheid=yes 14293else 14294 eval $cacheid=no 14295fi 14296rm -f core conftest.err conftest.$ac_objext \ 14297 conftest$ac_exeext conftest.$ac_ext 14298fi 14299 14300 14301 CFLAGS="$xorg_testset_save_CFLAGS" 14302 14303 eval supported=\$$cacheid 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14305$as_echo "$supported" >&6; } 14306 if test "$supported" = "yes" ; then 14307 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14308 found="yes" 14309 fi 14310 fi 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326xorg_testset_save_CFLAGS="$CFLAGS" 14327 14328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14333 $as_echo_n "(cached) " >&6 14334else 14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14336/* end confdefs.h. */ 14337int i; 14338_ACEOF 14339if ac_fn_c_try_compile "$LINENO"; then : 14340 xorg_cv_cc_flag_unknown_warning_option=yes 14341else 14342 xorg_cv_cc_flag_unknown_warning_option=no 14343fi 14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14345fi 14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14349 CFLAGS="$xorg_testset_save_CFLAGS" 14350fi 14351 14352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14355 fi 14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14360 $as_echo_n "(cached) " >&6 14361else 14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14363/* end confdefs.h. */ 14364int i; 14365_ACEOF 14366if ac_fn_c_try_compile "$LINENO"; then : 14367 xorg_cv_cc_flag_unused_command_line_argument=yes 14368else 14369 xorg_cv_cc_flag_unused_command_line_argument=no 14370fi 14371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14372fi 14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14376 CFLAGS="$xorg_testset_save_CFLAGS" 14377fi 14378 14379found="no" 14380 14381 if test $found = "no" ; then 14382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14384 fi 14385 14386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14388 fi 14389 14390 CFLAGS="$CFLAGS -Werror=main" 14391 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14393$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14394 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14395 if eval \${$cacheid+:} false; then : 14396 $as_echo_n "(cached) " >&6 14397else 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400int i; 14401int 14402main () 14403{ 14404 14405 ; 14406 return 0; 14407} 14408_ACEOF 14409if ac_fn_c_try_link "$LINENO"; then : 14410 eval $cacheid=yes 14411else 14412 eval $cacheid=no 14413fi 14414rm -f core conftest.err conftest.$ac_objext \ 14415 conftest$ac_exeext conftest.$ac_ext 14416fi 14417 14418 14419 CFLAGS="$xorg_testset_save_CFLAGS" 14420 14421 eval supported=\$$cacheid 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14423$as_echo "$supported" >&6; } 14424 if test "$supported" = "yes" ; then 14425 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14426 found="yes" 14427 fi 14428 fi 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444xorg_testset_save_CFLAGS="$CFLAGS" 14445 14446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14451 $as_echo_n "(cached) " >&6 14452else 14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14454/* end confdefs.h. */ 14455int i; 14456_ACEOF 14457if ac_fn_c_try_compile "$LINENO"; then : 14458 xorg_cv_cc_flag_unknown_warning_option=yes 14459else 14460 xorg_cv_cc_flag_unknown_warning_option=no 14461fi 14462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14463fi 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14467 CFLAGS="$xorg_testset_save_CFLAGS" 14468fi 14469 14470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 fi 14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14478 $as_echo_n "(cached) " >&6 14479else 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482int i; 14483_ACEOF 14484if ac_fn_c_try_compile "$LINENO"; then : 14485 xorg_cv_cc_flag_unused_command_line_argument=yes 14486else 14487 xorg_cv_cc_flag_unused_command_line_argument=no 14488fi 14489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14490fi 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14494 CFLAGS="$xorg_testset_save_CFLAGS" 14495fi 14496 14497found="no" 14498 14499 if test $found = "no" ; then 14500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14502 fi 14503 14504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14506 fi 14507 14508 CFLAGS="$CFLAGS -Werror=missing-braces" 14509 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14511$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14512 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14513 if eval \${$cacheid+:} false; then : 14514 $as_echo_n "(cached) " >&6 14515else 14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14517/* end confdefs.h. */ 14518int i; 14519int 14520main () 14521{ 14522 14523 ; 14524 return 0; 14525} 14526_ACEOF 14527if ac_fn_c_try_link "$LINENO"; then : 14528 eval $cacheid=yes 14529else 14530 eval $cacheid=no 14531fi 14532rm -f core conftest.err conftest.$ac_objext \ 14533 conftest$ac_exeext conftest.$ac_ext 14534fi 14535 14536 14537 CFLAGS="$xorg_testset_save_CFLAGS" 14538 14539 eval supported=\$$cacheid 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14541$as_echo "$supported" >&6; } 14542 if test "$supported" = "yes" ; then 14543 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14544 found="yes" 14545 fi 14546 fi 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562xorg_testset_save_CFLAGS="$CFLAGS" 14563 14564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14569 $as_echo_n "(cached) " >&6 14570else 14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14572/* end confdefs.h. */ 14573int i; 14574_ACEOF 14575if ac_fn_c_try_compile "$LINENO"; then : 14576 xorg_cv_cc_flag_unknown_warning_option=yes 14577else 14578 xorg_cv_cc_flag_unknown_warning_option=no 14579fi 14580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14581fi 14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14585 CFLAGS="$xorg_testset_save_CFLAGS" 14586fi 14587 14588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14591 fi 14592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14596 $as_echo_n "(cached) " >&6 14597else 14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599/* end confdefs.h. */ 14600int i; 14601_ACEOF 14602if ac_fn_c_try_compile "$LINENO"; then : 14603 xorg_cv_cc_flag_unused_command_line_argument=yes 14604else 14605 xorg_cv_cc_flag_unused_command_line_argument=no 14606fi 14607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14608fi 14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14612 CFLAGS="$xorg_testset_save_CFLAGS" 14613fi 14614 14615found="no" 14616 14617 if test $found = "no" ; then 14618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14620 fi 14621 14622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14624 fi 14625 14626 CFLAGS="$CFLAGS -Werror=sequence-point" 14627 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14629$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14630 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14631 if eval \${$cacheid+:} false; then : 14632 $as_echo_n "(cached) " >&6 14633else 14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636int i; 14637int 14638main () 14639{ 14640 14641 ; 14642 return 0; 14643} 14644_ACEOF 14645if ac_fn_c_try_link "$LINENO"; then : 14646 eval $cacheid=yes 14647else 14648 eval $cacheid=no 14649fi 14650rm -f core conftest.err conftest.$ac_objext \ 14651 conftest$ac_exeext conftest.$ac_ext 14652fi 14653 14654 14655 CFLAGS="$xorg_testset_save_CFLAGS" 14656 14657 eval supported=\$$cacheid 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14659$as_echo "$supported" >&6; } 14660 if test "$supported" = "yes" ; then 14661 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14662 found="yes" 14663 fi 14664 fi 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680xorg_testset_save_CFLAGS="$CFLAGS" 14681 14682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14687 $as_echo_n "(cached) " >&6 14688else 14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14690/* end confdefs.h. */ 14691int i; 14692_ACEOF 14693if ac_fn_c_try_compile "$LINENO"; then : 14694 xorg_cv_cc_flag_unknown_warning_option=yes 14695else 14696 xorg_cv_cc_flag_unknown_warning_option=no 14697fi 14698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14699fi 14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14703 CFLAGS="$xorg_testset_save_CFLAGS" 14704fi 14705 14706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14709 fi 14710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14714 $as_echo_n "(cached) " >&6 14715else 14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14717/* end confdefs.h. */ 14718int i; 14719_ACEOF 14720if ac_fn_c_try_compile "$LINENO"; then : 14721 xorg_cv_cc_flag_unused_command_line_argument=yes 14722else 14723 xorg_cv_cc_flag_unused_command_line_argument=no 14724fi 14725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14726fi 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14730 CFLAGS="$xorg_testset_save_CFLAGS" 14731fi 14732 14733found="no" 14734 14735 if test $found = "no" ; then 14736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14738 fi 14739 14740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14742 fi 14743 14744 CFLAGS="$CFLAGS -Werror=return-type" 14745 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14747$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14748 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14749 if eval \${$cacheid+:} false; then : 14750 $as_echo_n "(cached) " >&6 14751else 14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754int i; 14755int 14756main () 14757{ 14758 14759 ; 14760 return 0; 14761} 14762_ACEOF 14763if ac_fn_c_try_link "$LINENO"; then : 14764 eval $cacheid=yes 14765else 14766 eval $cacheid=no 14767fi 14768rm -f core conftest.err conftest.$ac_objext \ 14769 conftest$ac_exeext conftest.$ac_ext 14770fi 14771 14772 14773 CFLAGS="$xorg_testset_save_CFLAGS" 14774 14775 eval supported=\$$cacheid 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14777$as_echo "$supported" >&6; } 14778 if test "$supported" = "yes" ; then 14779 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14780 found="yes" 14781 fi 14782 fi 14783 14784 if test $found = "no" ; then 14785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14787 fi 14788 14789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14791 fi 14792 14793 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14794 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14796$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14797 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14798 if eval \${$cacheid+:} false; then : 14799 $as_echo_n "(cached) " >&6 14800else 14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14802/* end confdefs.h. */ 14803int i; 14804int 14805main () 14806{ 14807 14808 ; 14809 return 0; 14810} 14811_ACEOF 14812if ac_fn_c_try_link "$LINENO"; then : 14813 eval $cacheid=yes 14814else 14815 eval $cacheid=no 14816fi 14817rm -f core conftest.err conftest.$ac_objext \ 14818 conftest$ac_exeext conftest.$ac_ext 14819fi 14820 14821 14822 CFLAGS="$xorg_testset_save_CFLAGS" 14823 14824 eval supported=\$$cacheid 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14826$as_echo "$supported" >&6; } 14827 if test "$supported" = "yes" ; then 14828 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14829 found="yes" 14830 fi 14831 fi 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847xorg_testset_save_CFLAGS="$CFLAGS" 14848 14849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14854 $as_echo_n "(cached) " >&6 14855else 14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14857/* end confdefs.h. */ 14858int i; 14859_ACEOF 14860if ac_fn_c_try_compile "$LINENO"; then : 14861 xorg_cv_cc_flag_unknown_warning_option=yes 14862else 14863 xorg_cv_cc_flag_unknown_warning_option=no 14864fi 14865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14866fi 14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14870 CFLAGS="$xorg_testset_save_CFLAGS" 14871fi 14872 14873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14876 fi 14877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14881 $as_echo_n "(cached) " >&6 14882else 14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14884/* end confdefs.h. */ 14885int i; 14886_ACEOF 14887if ac_fn_c_try_compile "$LINENO"; then : 14888 xorg_cv_cc_flag_unused_command_line_argument=yes 14889else 14890 xorg_cv_cc_flag_unused_command_line_argument=no 14891fi 14892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14893fi 14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14897 CFLAGS="$xorg_testset_save_CFLAGS" 14898fi 14899 14900found="no" 14901 14902 if test $found = "no" ; then 14903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14905 fi 14906 14907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14909 fi 14910 14911 CFLAGS="$CFLAGS -Werror=trigraphs" 14912 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14914$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14915 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14916 if eval \${$cacheid+:} false; then : 14917 $as_echo_n "(cached) " >&6 14918else 14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14920/* end confdefs.h. */ 14921int i; 14922int 14923main () 14924{ 14925 14926 ; 14927 return 0; 14928} 14929_ACEOF 14930if ac_fn_c_try_link "$LINENO"; then : 14931 eval $cacheid=yes 14932else 14933 eval $cacheid=no 14934fi 14935rm -f core conftest.err conftest.$ac_objext \ 14936 conftest$ac_exeext conftest.$ac_ext 14937fi 14938 14939 14940 CFLAGS="$xorg_testset_save_CFLAGS" 14941 14942 eval supported=\$$cacheid 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14944$as_echo "$supported" >&6; } 14945 if test "$supported" = "yes" ; then 14946 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14947 found="yes" 14948 fi 14949 fi 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965xorg_testset_save_CFLAGS="$CFLAGS" 14966 14967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14972 $as_echo_n "(cached) " >&6 14973else 14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975/* end confdefs.h. */ 14976int i; 14977_ACEOF 14978if ac_fn_c_try_compile "$LINENO"; then : 14979 xorg_cv_cc_flag_unknown_warning_option=yes 14980else 14981 xorg_cv_cc_flag_unknown_warning_option=no 14982fi 14983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14984fi 14985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14988 CFLAGS="$xorg_testset_save_CFLAGS" 14989fi 14990 14991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14994 fi 14995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14999 $as_echo_n "(cached) " >&6 15000else 15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15002/* end confdefs.h. */ 15003int i; 15004_ACEOF 15005if ac_fn_c_try_compile "$LINENO"; then : 15006 xorg_cv_cc_flag_unused_command_line_argument=yes 15007else 15008 xorg_cv_cc_flag_unused_command_line_argument=no 15009fi 15010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15011fi 15012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15015 CFLAGS="$xorg_testset_save_CFLAGS" 15016fi 15017 15018found="no" 15019 15020 if test $found = "no" ; then 15021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15023 fi 15024 15025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15027 fi 15028 15029 CFLAGS="$CFLAGS -Werror=array-bounds" 15030 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15032$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15033 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15034 if eval \${$cacheid+:} false; then : 15035 $as_echo_n "(cached) " >&6 15036else 15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15038/* end confdefs.h. */ 15039int i; 15040int 15041main () 15042{ 15043 15044 ; 15045 return 0; 15046} 15047_ACEOF 15048if ac_fn_c_try_link "$LINENO"; then : 15049 eval $cacheid=yes 15050else 15051 eval $cacheid=no 15052fi 15053rm -f core conftest.err conftest.$ac_objext \ 15054 conftest$ac_exeext conftest.$ac_ext 15055fi 15056 15057 15058 CFLAGS="$xorg_testset_save_CFLAGS" 15059 15060 eval supported=\$$cacheid 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15062$as_echo "$supported" >&6; } 15063 if test "$supported" = "yes" ; then 15064 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15065 found="yes" 15066 fi 15067 fi 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083xorg_testset_save_CFLAGS="$CFLAGS" 15084 15085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15090 $as_echo_n "(cached) " >&6 15091else 15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094int i; 15095_ACEOF 15096if ac_fn_c_try_compile "$LINENO"; then : 15097 xorg_cv_cc_flag_unknown_warning_option=yes 15098else 15099 xorg_cv_cc_flag_unknown_warning_option=no 15100fi 15101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15102fi 15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15106 CFLAGS="$xorg_testset_save_CFLAGS" 15107fi 15108 15109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15112 fi 15113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15117 $as_echo_n "(cached) " >&6 15118else 15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15120/* end confdefs.h. */ 15121int i; 15122_ACEOF 15123if ac_fn_c_try_compile "$LINENO"; then : 15124 xorg_cv_cc_flag_unused_command_line_argument=yes 15125else 15126 xorg_cv_cc_flag_unused_command_line_argument=no 15127fi 15128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15129fi 15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15133 CFLAGS="$xorg_testset_save_CFLAGS" 15134fi 15135 15136found="no" 15137 15138 if test $found = "no" ; then 15139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15141 fi 15142 15143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15145 fi 15146 15147 CFLAGS="$CFLAGS -Werror=write-strings" 15148 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15150$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15151 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15152 if eval \${$cacheid+:} false; then : 15153 $as_echo_n "(cached) " >&6 15154else 15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156/* end confdefs.h. */ 15157int i; 15158int 15159main () 15160{ 15161 15162 ; 15163 return 0; 15164} 15165_ACEOF 15166if ac_fn_c_try_link "$LINENO"; then : 15167 eval $cacheid=yes 15168else 15169 eval $cacheid=no 15170fi 15171rm -f core conftest.err conftest.$ac_objext \ 15172 conftest$ac_exeext conftest.$ac_ext 15173fi 15174 15175 15176 CFLAGS="$xorg_testset_save_CFLAGS" 15177 15178 eval supported=\$$cacheid 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15180$as_echo "$supported" >&6; } 15181 if test "$supported" = "yes" ; then 15182 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15183 found="yes" 15184 fi 15185 fi 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201xorg_testset_save_CFLAGS="$CFLAGS" 15202 15203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15208 $as_echo_n "(cached) " >&6 15209else 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211/* end confdefs.h. */ 15212int i; 15213_ACEOF 15214if ac_fn_c_try_compile "$LINENO"; then : 15215 xorg_cv_cc_flag_unknown_warning_option=yes 15216else 15217 xorg_cv_cc_flag_unknown_warning_option=no 15218fi 15219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15220fi 15221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15224 CFLAGS="$xorg_testset_save_CFLAGS" 15225fi 15226 15227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15230 fi 15231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15235 $as_echo_n "(cached) " >&6 15236else 15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15238/* end confdefs.h. */ 15239int i; 15240_ACEOF 15241if ac_fn_c_try_compile "$LINENO"; then : 15242 xorg_cv_cc_flag_unused_command_line_argument=yes 15243else 15244 xorg_cv_cc_flag_unused_command_line_argument=no 15245fi 15246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15247fi 15248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15251 CFLAGS="$xorg_testset_save_CFLAGS" 15252fi 15253 15254found="no" 15255 15256 if test $found = "no" ; then 15257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15259 fi 15260 15261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15263 fi 15264 15265 CFLAGS="$CFLAGS -Werror=address" 15266 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15268$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15269 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15270 if eval \${$cacheid+:} false; then : 15271 $as_echo_n "(cached) " >&6 15272else 15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15274/* end confdefs.h. */ 15275int i; 15276int 15277main () 15278{ 15279 15280 ; 15281 return 0; 15282} 15283_ACEOF 15284if ac_fn_c_try_link "$LINENO"; then : 15285 eval $cacheid=yes 15286else 15287 eval $cacheid=no 15288fi 15289rm -f core conftest.err conftest.$ac_objext \ 15290 conftest$ac_exeext conftest.$ac_ext 15291fi 15292 15293 15294 CFLAGS="$xorg_testset_save_CFLAGS" 15295 15296 eval supported=\$$cacheid 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15298$as_echo "$supported" >&6; } 15299 if test "$supported" = "yes" ; then 15300 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15301 found="yes" 15302 fi 15303 fi 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319xorg_testset_save_CFLAGS="$CFLAGS" 15320 15321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327else 15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15329/* end confdefs.h. */ 15330int i; 15331_ACEOF 15332if ac_fn_c_try_compile "$LINENO"; then : 15333 xorg_cv_cc_flag_unknown_warning_option=yes 15334else 15335 xorg_cv_cc_flag_unknown_warning_option=no 15336fi 15337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15338fi 15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15342 CFLAGS="$xorg_testset_save_CFLAGS" 15343fi 15344 15345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15348 fi 15349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15353 $as_echo_n "(cached) " >&6 15354else 15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15356/* end confdefs.h. */ 15357int i; 15358_ACEOF 15359if ac_fn_c_try_compile "$LINENO"; then : 15360 xorg_cv_cc_flag_unused_command_line_argument=yes 15361else 15362 xorg_cv_cc_flag_unused_command_line_argument=no 15363fi 15364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15365fi 15366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15369 CFLAGS="$xorg_testset_save_CFLAGS" 15370fi 15371 15372found="no" 15373 15374 if test $found = "no" ; then 15375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15377 fi 15378 15379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15381 fi 15382 15383 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15384 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15386$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15387 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15388 if eval \${$cacheid+:} false; then : 15389 $as_echo_n "(cached) " >&6 15390else 15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15392/* end confdefs.h. */ 15393int i; 15394int 15395main () 15396{ 15397 15398 ; 15399 return 0; 15400} 15401_ACEOF 15402if ac_fn_c_try_link "$LINENO"; then : 15403 eval $cacheid=yes 15404else 15405 eval $cacheid=no 15406fi 15407rm -f core conftest.err conftest.$ac_objext \ 15408 conftest$ac_exeext conftest.$ac_ext 15409fi 15410 15411 15412 CFLAGS="$xorg_testset_save_CFLAGS" 15413 15414 eval supported=\$$cacheid 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15416$as_echo "$supported" >&6; } 15417 if test "$supported" = "yes" ; then 15418 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15419 found="yes" 15420 fi 15421 fi 15422 15423 if test $found = "no" ; then 15424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15426 fi 15427 15428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15430 fi 15431 15432 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15433 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15435$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15436 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15437 if eval \${$cacheid+:} false; then : 15438 $as_echo_n "(cached) " >&6 15439else 15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15441/* end confdefs.h. */ 15442int i; 15443int 15444main () 15445{ 15446 15447 ; 15448 return 0; 15449} 15450_ACEOF 15451if ac_fn_c_try_link "$LINENO"; then : 15452 eval $cacheid=yes 15453else 15454 eval $cacheid=no 15455fi 15456rm -f core conftest.err conftest.$ac_objext \ 15457 conftest$ac_exeext conftest.$ac_ext 15458fi 15459 15460 15461 CFLAGS="$xorg_testset_save_CFLAGS" 15462 15463 eval supported=\$$cacheid 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15465$as_echo "$supported" >&6; } 15466 if test "$supported" = "yes" ; then 15467 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15468 found="yes" 15469 fi 15470 fi 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486xorg_testset_save_CFLAGS="$CFLAGS" 15487 15488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15493 $as_echo_n "(cached) " >&6 15494else 15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15496/* end confdefs.h. */ 15497int i; 15498_ACEOF 15499if ac_fn_c_try_compile "$LINENO"; then : 15500 xorg_cv_cc_flag_unknown_warning_option=yes 15501else 15502 xorg_cv_cc_flag_unknown_warning_option=no 15503fi 15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15505fi 15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15509 CFLAGS="$xorg_testset_save_CFLAGS" 15510fi 15511 15512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15515 fi 15516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15520 $as_echo_n "(cached) " >&6 15521else 15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15523/* end confdefs.h. */ 15524int i; 15525_ACEOF 15526if ac_fn_c_try_compile "$LINENO"; then : 15527 xorg_cv_cc_flag_unused_command_line_argument=yes 15528else 15529 xorg_cv_cc_flag_unused_command_line_argument=no 15530fi 15531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15532fi 15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15536 CFLAGS="$xorg_testset_save_CFLAGS" 15537fi 15538 15539found="no" 15540 15541 if test $found = "no" ; then 15542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15544 fi 15545 15546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15548 fi 15549 15550 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15551 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15553$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15554 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15555 if eval \${$cacheid+:} false; then : 15556 $as_echo_n "(cached) " >&6 15557else 15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15559/* end confdefs.h. */ 15560int i; 15561int 15562main () 15563{ 15564 15565 ; 15566 return 0; 15567} 15568_ACEOF 15569if ac_fn_c_try_link "$LINENO"; then : 15570 eval $cacheid=yes 15571else 15572 eval $cacheid=no 15573fi 15574rm -f core conftest.err conftest.$ac_objext \ 15575 conftest$ac_exeext conftest.$ac_ext 15576fi 15577 15578 15579 CFLAGS="$xorg_testset_save_CFLAGS" 15580 15581 eval supported=\$$cacheid 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15583$as_echo "$supported" >&6; } 15584 if test "$supported" = "yes" ; then 15585 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15586 found="yes" 15587 fi 15588 fi 15589 15590 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15591else 15592{ $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 15593$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;} 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607xorg_testset_save_CFLAGS="$CFLAGS" 15608 15609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15614 $as_echo_n "(cached) " >&6 15615else 15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15617/* end confdefs.h. */ 15618int i; 15619_ACEOF 15620if ac_fn_c_try_compile "$LINENO"; then : 15621 xorg_cv_cc_flag_unknown_warning_option=yes 15622else 15623 xorg_cv_cc_flag_unknown_warning_option=no 15624fi 15625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15626fi 15627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15630 CFLAGS="$xorg_testset_save_CFLAGS" 15631fi 15632 15633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15636 fi 15637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15641 $as_echo_n "(cached) " >&6 15642else 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645int i; 15646_ACEOF 15647if ac_fn_c_try_compile "$LINENO"; then : 15648 xorg_cv_cc_flag_unused_command_line_argument=yes 15649else 15650 xorg_cv_cc_flag_unused_command_line_argument=no 15651fi 15652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15653fi 15654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15657 CFLAGS="$xorg_testset_save_CFLAGS" 15658fi 15659 15660found="no" 15661 15662 if test $found = "no" ; then 15663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15665 fi 15666 15667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15669 fi 15670 15671 CFLAGS="$CFLAGS -Wimplicit" 15672 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15674$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15675 cacheid=xorg_cv_cc_flag__Wimplicit 15676 if eval \${$cacheid+:} false; then : 15677 $as_echo_n "(cached) " >&6 15678else 15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15680/* end confdefs.h. */ 15681int i; 15682int 15683main () 15684{ 15685 15686 ; 15687 return 0; 15688} 15689_ACEOF 15690if ac_fn_c_try_link "$LINENO"; then : 15691 eval $cacheid=yes 15692else 15693 eval $cacheid=no 15694fi 15695rm -f core conftest.err conftest.$ac_objext \ 15696 conftest$ac_exeext conftest.$ac_ext 15697fi 15698 15699 15700 CFLAGS="$xorg_testset_save_CFLAGS" 15701 15702 eval supported=\$$cacheid 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15704$as_echo "$supported" >&6; } 15705 if test "$supported" = "yes" ; then 15706 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15707 found="yes" 15708 fi 15709 fi 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725xorg_testset_save_CFLAGS="$CFLAGS" 15726 15727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15732 $as_echo_n "(cached) " >&6 15733else 15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735/* end confdefs.h. */ 15736int i; 15737_ACEOF 15738if ac_fn_c_try_compile "$LINENO"; then : 15739 xorg_cv_cc_flag_unknown_warning_option=yes 15740else 15741 xorg_cv_cc_flag_unknown_warning_option=no 15742fi 15743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15744fi 15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15748 CFLAGS="$xorg_testset_save_CFLAGS" 15749fi 15750 15751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15754 fi 15755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760else 15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15762/* end confdefs.h. */ 15763int i; 15764_ACEOF 15765if ac_fn_c_try_compile "$LINENO"; then : 15766 xorg_cv_cc_flag_unused_command_line_argument=yes 15767else 15768 xorg_cv_cc_flag_unused_command_line_argument=no 15769fi 15770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15771fi 15772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15775 CFLAGS="$xorg_testset_save_CFLAGS" 15776fi 15777 15778found="no" 15779 15780 if test $found = "no" ; then 15781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15783 fi 15784 15785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15787 fi 15788 15789 CFLAGS="$CFLAGS -Wnonnull" 15790 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15792$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15793 cacheid=xorg_cv_cc_flag__Wnonnull 15794 if eval \${$cacheid+:} false; then : 15795 $as_echo_n "(cached) " >&6 15796else 15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15798/* end confdefs.h. */ 15799int i; 15800int 15801main () 15802{ 15803 15804 ; 15805 return 0; 15806} 15807_ACEOF 15808if ac_fn_c_try_link "$LINENO"; then : 15809 eval $cacheid=yes 15810else 15811 eval $cacheid=no 15812fi 15813rm -f core conftest.err conftest.$ac_objext \ 15814 conftest$ac_exeext conftest.$ac_ext 15815fi 15816 15817 15818 CFLAGS="$xorg_testset_save_CFLAGS" 15819 15820 eval supported=\$$cacheid 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15822$as_echo "$supported" >&6; } 15823 if test "$supported" = "yes" ; then 15824 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15825 found="yes" 15826 fi 15827 fi 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843xorg_testset_save_CFLAGS="$CFLAGS" 15844 15845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15850 $as_echo_n "(cached) " >&6 15851else 15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853/* end confdefs.h. */ 15854int i; 15855_ACEOF 15856if ac_fn_c_try_compile "$LINENO"; then : 15857 xorg_cv_cc_flag_unknown_warning_option=yes 15858else 15859 xorg_cv_cc_flag_unknown_warning_option=no 15860fi 15861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15862fi 15863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15866 CFLAGS="$xorg_testset_save_CFLAGS" 15867fi 15868 15869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15872 fi 15873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878else 15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881int i; 15882_ACEOF 15883if ac_fn_c_try_compile "$LINENO"; then : 15884 xorg_cv_cc_flag_unused_command_line_argument=yes 15885else 15886 xorg_cv_cc_flag_unused_command_line_argument=no 15887fi 15888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15889fi 15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15893 CFLAGS="$xorg_testset_save_CFLAGS" 15894fi 15895 15896found="no" 15897 15898 if test $found = "no" ; then 15899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15901 fi 15902 15903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15905 fi 15906 15907 CFLAGS="$CFLAGS -Winit-self" 15908 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15910$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15911 cacheid=xorg_cv_cc_flag__Winit_self 15912 if eval \${$cacheid+:} false; then : 15913 $as_echo_n "(cached) " >&6 15914else 15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15916/* end confdefs.h. */ 15917int i; 15918int 15919main () 15920{ 15921 15922 ; 15923 return 0; 15924} 15925_ACEOF 15926if ac_fn_c_try_link "$LINENO"; then : 15927 eval $cacheid=yes 15928else 15929 eval $cacheid=no 15930fi 15931rm -f core conftest.err conftest.$ac_objext \ 15932 conftest$ac_exeext conftest.$ac_ext 15933fi 15934 15935 15936 CFLAGS="$xorg_testset_save_CFLAGS" 15937 15938 eval supported=\$$cacheid 15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15940$as_echo "$supported" >&6; } 15941 if test "$supported" = "yes" ; then 15942 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15943 found="yes" 15944 fi 15945 fi 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961xorg_testset_save_CFLAGS="$CFLAGS" 15962 15963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15968 $as_echo_n "(cached) " >&6 15969else 15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15971/* end confdefs.h. */ 15972int i; 15973_ACEOF 15974if ac_fn_c_try_compile "$LINENO"; then : 15975 xorg_cv_cc_flag_unknown_warning_option=yes 15976else 15977 xorg_cv_cc_flag_unknown_warning_option=no 15978fi 15979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15980fi 15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15984 CFLAGS="$xorg_testset_save_CFLAGS" 15985fi 15986 15987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15990 fi 15991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15995 $as_echo_n "(cached) " >&6 15996else 15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15998/* end confdefs.h. */ 15999int i; 16000_ACEOF 16001if ac_fn_c_try_compile "$LINENO"; then : 16002 xorg_cv_cc_flag_unused_command_line_argument=yes 16003else 16004 xorg_cv_cc_flag_unused_command_line_argument=no 16005fi 16006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16007fi 16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16011 CFLAGS="$xorg_testset_save_CFLAGS" 16012fi 16013 16014found="no" 16015 16016 if test $found = "no" ; then 16017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16019 fi 16020 16021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16023 fi 16024 16025 CFLAGS="$CFLAGS -Wmain" 16026 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16028$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16029 cacheid=xorg_cv_cc_flag__Wmain 16030 if eval \${$cacheid+:} false; then : 16031 $as_echo_n "(cached) " >&6 16032else 16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16034/* end confdefs.h. */ 16035int i; 16036int 16037main () 16038{ 16039 16040 ; 16041 return 0; 16042} 16043_ACEOF 16044if ac_fn_c_try_link "$LINENO"; then : 16045 eval $cacheid=yes 16046else 16047 eval $cacheid=no 16048fi 16049rm -f core conftest.err conftest.$ac_objext \ 16050 conftest$ac_exeext conftest.$ac_ext 16051fi 16052 16053 16054 CFLAGS="$xorg_testset_save_CFLAGS" 16055 16056 eval supported=\$$cacheid 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16058$as_echo "$supported" >&6; } 16059 if test "$supported" = "yes" ; then 16060 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16061 found="yes" 16062 fi 16063 fi 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079xorg_testset_save_CFLAGS="$CFLAGS" 16080 16081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16086 $as_echo_n "(cached) " >&6 16087else 16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16089/* end confdefs.h. */ 16090int i; 16091_ACEOF 16092if ac_fn_c_try_compile "$LINENO"; then : 16093 xorg_cv_cc_flag_unknown_warning_option=yes 16094else 16095 xorg_cv_cc_flag_unknown_warning_option=no 16096fi 16097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16098fi 16099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16102 CFLAGS="$xorg_testset_save_CFLAGS" 16103fi 16104 16105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16108 fi 16109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16113 $as_echo_n "(cached) " >&6 16114else 16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16116/* end confdefs.h. */ 16117int i; 16118_ACEOF 16119if ac_fn_c_try_compile "$LINENO"; then : 16120 xorg_cv_cc_flag_unused_command_line_argument=yes 16121else 16122 xorg_cv_cc_flag_unused_command_line_argument=no 16123fi 16124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16125fi 16126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16129 CFLAGS="$xorg_testset_save_CFLAGS" 16130fi 16131 16132found="no" 16133 16134 if test $found = "no" ; then 16135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16137 fi 16138 16139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16141 fi 16142 16143 CFLAGS="$CFLAGS -Wmissing-braces" 16144 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16146$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16147 cacheid=xorg_cv_cc_flag__Wmissing_braces 16148 if eval \${$cacheid+:} false; then : 16149 $as_echo_n "(cached) " >&6 16150else 16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16152/* end confdefs.h. */ 16153int i; 16154int 16155main () 16156{ 16157 16158 ; 16159 return 0; 16160} 16161_ACEOF 16162if ac_fn_c_try_link "$LINENO"; then : 16163 eval $cacheid=yes 16164else 16165 eval $cacheid=no 16166fi 16167rm -f core conftest.err conftest.$ac_objext \ 16168 conftest$ac_exeext conftest.$ac_ext 16169fi 16170 16171 16172 CFLAGS="$xorg_testset_save_CFLAGS" 16173 16174 eval supported=\$$cacheid 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16176$as_echo "$supported" >&6; } 16177 if test "$supported" = "yes" ; then 16178 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16179 found="yes" 16180 fi 16181 fi 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197xorg_testset_save_CFLAGS="$CFLAGS" 16198 16199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16204 $as_echo_n "(cached) " >&6 16205else 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208int i; 16209_ACEOF 16210if ac_fn_c_try_compile "$LINENO"; then : 16211 xorg_cv_cc_flag_unknown_warning_option=yes 16212else 16213 xorg_cv_cc_flag_unknown_warning_option=no 16214fi 16215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16216fi 16217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16220 CFLAGS="$xorg_testset_save_CFLAGS" 16221fi 16222 16223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16226 fi 16227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16231 $as_echo_n "(cached) " >&6 16232else 16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16234/* end confdefs.h. */ 16235int i; 16236_ACEOF 16237if ac_fn_c_try_compile "$LINENO"; then : 16238 xorg_cv_cc_flag_unused_command_line_argument=yes 16239else 16240 xorg_cv_cc_flag_unused_command_line_argument=no 16241fi 16242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16243fi 16244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16247 CFLAGS="$xorg_testset_save_CFLAGS" 16248fi 16249 16250found="no" 16251 16252 if test $found = "no" ; then 16253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16255 fi 16256 16257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16259 fi 16260 16261 CFLAGS="$CFLAGS -Wsequence-point" 16262 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16264$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16265 cacheid=xorg_cv_cc_flag__Wsequence_point 16266 if eval \${$cacheid+:} false; then : 16267 $as_echo_n "(cached) " >&6 16268else 16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16270/* end confdefs.h. */ 16271int i; 16272int 16273main () 16274{ 16275 16276 ; 16277 return 0; 16278} 16279_ACEOF 16280if ac_fn_c_try_link "$LINENO"; then : 16281 eval $cacheid=yes 16282else 16283 eval $cacheid=no 16284fi 16285rm -f core conftest.err conftest.$ac_objext \ 16286 conftest$ac_exeext conftest.$ac_ext 16287fi 16288 16289 16290 CFLAGS="$xorg_testset_save_CFLAGS" 16291 16292 eval supported=\$$cacheid 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16294$as_echo "$supported" >&6; } 16295 if test "$supported" = "yes" ; then 16296 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16297 found="yes" 16298 fi 16299 fi 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315xorg_testset_save_CFLAGS="$CFLAGS" 16316 16317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16322 $as_echo_n "(cached) " >&6 16323else 16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16325/* end confdefs.h. */ 16326int i; 16327_ACEOF 16328if ac_fn_c_try_compile "$LINENO"; then : 16329 xorg_cv_cc_flag_unknown_warning_option=yes 16330else 16331 xorg_cv_cc_flag_unknown_warning_option=no 16332fi 16333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16334fi 16335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16338 CFLAGS="$xorg_testset_save_CFLAGS" 16339fi 16340 16341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16344 fi 16345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16349 $as_echo_n "(cached) " >&6 16350else 16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353int i; 16354_ACEOF 16355if ac_fn_c_try_compile "$LINENO"; then : 16356 xorg_cv_cc_flag_unused_command_line_argument=yes 16357else 16358 xorg_cv_cc_flag_unused_command_line_argument=no 16359fi 16360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16361fi 16362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16365 CFLAGS="$xorg_testset_save_CFLAGS" 16366fi 16367 16368found="no" 16369 16370 if test $found = "no" ; then 16371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16373 fi 16374 16375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16377 fi 16378 16379 CFLAGS="$CFLAGS -Wreturn-type" 16380 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16382$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16383 cacheid=xorg_cv_cc_flag__Wreturn_type 16384 if eval \${$cacheid+:} false; then : 16385 $as_echo_n "(cached) " >&6 16386else 16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16388/* end confdefs.h. */ 16389int i; 16390int 16391main () 16392{ 16393 16394 ; 16395 return 0; 16396} 16397_ACEOF 16398if ac_fn_c_try_link "$LINENO"; then : 16399 eval $cacheid=yes 16400else 16401 eval $cacheid=no 16402fi 16403rm -f core conftest.err conftest.$ac_objext \ 16404 conftest$ac_exeext conftest.$ac_ext 16405fi 16406 16407 16408 CFLAGS="$xorg_testset_save_CFLAGS" 16409 16410 eval supported=\$$cacheid 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16412$as_echo "$supported" >&6; } 16413 if test "$supported" = "yes" ; then 16414 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16415 found="yes" 16416 fi 16417 fi 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433xorg_testset_save_CFLAGS="$CFLAGS" 16434 16435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16440 $as_echo_n "(cached) " >&6 16441else 16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16443/* end confdefs.h. */ 16444int i; 16445_ACEOF 16446if ac_fn_c_try_compile "$LINENO"; then : 16447 xorg_cv_cc_flag_unknown_warning_option=yes 16448else 16449 xorg_cv_cc_flag_unknown_warning_option=no 16450fi 16451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16452fi 16453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16456 CFLAGS="$xorg_testset_save_CFLAGS" 16457fi 16458 16459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16462 fi 16463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16467 $as_echo_n "(cached) " >&6 16468else 16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470/* end confdefs.h. */ 16471int i; 16472_ACEOF 16473if ac_fn_c_try_compile "$LINENO"; then : 16474 xorg_cv_cc_flag_unused_command_line_argument=yes 16475else 16476 xorg_cv_cc_flag_unused_command_line_argument=no 16477fi 16478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16479fi 16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16483 CFLAGS="$xorg_testset_save_CFLAGS" 16484fi 16485 16486found="no" 16487 16488 if test $found = "no" ; then 16489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16491 fi 16492 16493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16495 fi 16496 16497 CFLAGS="$CFLAGS -Wtrigraphs" 16498 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16500$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16501 cacheid=xorg_cv_cc_flag__Wtrigraphs 16502 if eval \${$cacheid+:} false; then : 16503 $as_echo_n "(cached) " >&6 16504else 16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16506/* end confdefs.h. */ 16507int i; 16508int 16509main () 16510{ 16511 16512 ; 16513 return 0; 16514} 16515_ACEOF 16516if ac_fn_c_try_link "$LINENO"; then : 16517 eval $cacheid=yes 16518else 16519 eval $cacheid=no 16520fi 16521rm -f core conftest.err conftest.$ac_objext \ 16522 conftest$ac_exeext conftest.$ac_ext 16523fi 16524 16525 16526 CFLAGS="$xorg_testset_save_CFLAGS" 16527 16528 eval supported=\$$cacheid 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16530$as_echo "$supported" >&6; } 16531 if test "$supported" = "yes" ; then 16532 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16533 found="yes" 16534 fi 16535 fi 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551xorg_testset_save_CFLAGS="$CFLAGS" 16552 16553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16558 $as_echo_n "(cached) " >&6 16559else 16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16561/* end confdefs.h. */ 16562int i; 16563_ACEOF 16564if ac_fn_c_try_compile "$LINENO"; then : 16565 xorg_cv_cc_flag_unknown_warning_option=yes 16566else 16567 xorg_cv_cc_flag_unknown_warning_option=no 16568fi 16569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16570fi 16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16574 CFLAGS="$xorg_testset_save_CFLAGS" 16575fi 16576 16577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16580 fi 16581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16585 $as_echo_n "(cached) " >&6 16586else 16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16588/* end confdefs.h. */ 16589int i; 16590_ACEOF 16591if ac_fn_c_try_compile "$LINENO"; then : 16592 xorg_cv_cc_flag_unused_command_line_argument=yes 16593else 16594 xorg_cv_cc_flag_unused_command_line_argument=no 16595fi 16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16597fi 16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16601 CFLAGS="$xorg_testset_save_CFLAGS" 16602fi 16603 16604found="no" 16605 16606 if test $found = "no" ; then 16607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16609 fi 16610 16611 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16613 fi 16614 16615 CFLAGS="$CFLAGS -Warray-bounds" 16616 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16618$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16619 cacheid=xorg_cv_cc_flag__Warray_bounds 16620 if eval \${$cacheid+:} false; then : 16621 $as_echo_n "(cached) " >&6 16622else 16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16624/* end confdefs.h. */ 16625int i; 16626int 16627main () 16628{ 16629 16630 ; 16631 return 0; 16632} 16633_ACEOF 16634if ac_fn_c_try_link "$LINENO"; then : 16635 eval $cacheid=yes 16636else 16637 eval $cacheid=no 16638fi 16639rm -f core conftest.err conftest.$ac_objext \ 16640 conftest$ac_exeext conftest.$ac_ext 16641fi 16642 16643 16644 CFLAGS="$xorg_testset_save_CFLAGS" 16645 16646 eval supported=\$$cacheid 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16648$as_echo "$supported" >&6; } 16649 if test "$supported" = "yes" ; then 16650 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16651 found="yes" 16652 fi 16653 fi 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669xorg_testset_save_CFLAGS="$CFLAGS" 16670 16671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16676 $as_echo_n "(cached) " >&6 16677else 16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16679/* end confdefs.h. */ 16680int i; 16681_ACEOF 16682if ac_fn_c_try_compile "$LINENO"; then : 16683 xorg_cv_cc_flag_unknown_warning_option=yes 16684else 16685 xorg_cv_cc_flag_unknown_warning_option=no 16686fi 16687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16688fi 16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16692 CFLAGS="$xorg_testset_save_CFLAGS" 16693fi 16694 16695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16698 fi 16699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16703 $as_echo_n "(cached) " >&6 16704else 16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16706/* end confdefs.h. */ 16707int i; 16708_ACEOF 16709if ac_fn_c_try_compile "$LINENO"; then : 16710 xorg_cv_cc_flag_unused_command_line_argument=yes 16711else 16712 xorg_cv_cc_flag_unused_command_line_argument=no 16713fi 16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16715fi 16716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16719 CFLAGS="$xorg_testset_save_CFLAGS" 16720fi 16721 16722found="no" 16723 16724 if test $found = "no" ; then 16725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16727 fi 16728 16729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16731 fi 16732 16733 CFLAGS="$CFLAGS -Wwrite-strings" 16734 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16736$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16737 cacheid=xorg_cv_cc_flag__Wwrite_strings 16738 if eval \${$cacheid+:} false; then : 16739 $as_echo_n "(cached) " >&6 16740else 16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16742/* end confdefs.h. */ 16743int i; 16744int 16745main () 16746{ 16747 16748 ; 16749 return 0; 16750} 16751_ACEOF 16752if ac_fn_c_try_link "$LINENO"; then : 16753 eval $cacheid=yes 16754else 16755 eval $cacheid=no 16756fi 16757rm -f core conftest.err conftest.$ac_objext \ 16758 conftest$ac_exeext conftest.$ac_ext 16759fi 16760 16761 16762 CFLAGS="$xorg_testset_save_CFLAGS" 16763 16764 eval supported=\$$cacheid 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16766$as_echo "$supported" >&6; } 16767 if test "$supported" = "yes" ; then 16768 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16769 found="yes" 16770 fi 16771 fi 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787xorg_testset_save_CFLAGS="$CFLAGS" 16788 16789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16794 $as_echo_n "(cached) " >&6 16795else 16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797/* end confdefs.h. */ 16798int i; 16799_ACEOF 16800if ac_fn_c_try_compile "$LINENO"; then : 16801 xorg_cv_cc_flag_unknown_warning_option=yes 16802else 16803 xorg_cv_cc_flag_unknown_warning_option=no 16804fi 16805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16806fi 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16810 CFLAGS="$xorg_testset_save_CFLAGS" 16811fi 16812 16813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16816 fi 16817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16821 $as_echo_n "(cached) " >&6 16822else 16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16824/* end confdefs.h. */ 16825int i; 16826_ACEOF 16827if ac_fn_c_try_compile "$LINENO"; then : 16828 xorg_cv_cc_flag_unused_command_line_argument=yes 16829else 16830 xorg_cv_cc_flag_unused_command_line_argument=no 16831fi 16832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16833fi 16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16837 CFLAGS="$xorg_testset_save_CFLAGS" 16838fi 16839 16840found="no" 16841 16842 if test $found = "no" ; then 16843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16845 fi 16846 16847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16849 fi 16850 16851 CFLAGS="$CFLAGS -Waddress" 16852 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16854$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16855 cacheid=xorg_cv_cc_flag__Waddress 16856 if eval \${$cacheid+:} false; then : 16857 $as_echo_n "(cached) " >&6 16858else 16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16860/* end confdefs.h. */ 16861int i; 16862int 16863main () 16864{ 16865 16866 ; 16867 return 0; 16868} 16869_ACEOF 16870if ac_fn_c_try_link "$LINENO"; then : 16871 eval $cacheid=yes 16872else 16873 eval $cacheid=no 16874fi 16875rm -f core conftest.err conftest.$ac_objext \ 16876 conftest$ac_exeext conftest.$ac_ext 16877fi 16878 16879 16880 CFLAGS="$xorg_testset_save_CFLAGS" 16881 16882 eval supported=\$$cacheid 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16884$as_echo "$supported" >&6; } 16885 if test "$supported" = "yes" ; then 16886 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16887 found="yes" 16888 fi 16889 fi 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905xorg_testset_save_CFLAGS="$CFLAGS" 16906 16907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16912 $as_echo_n "(cached) " >&6 16913else 16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16915/* end confdefs.h. */ 16916int i; 16917_ACEOF 16918if ac_fn_c_try_compile "$LINENO"; then : 16919 xorg_cv_cc_flag_unknown_warning_option=yes 16920else 16921 xorg_cv_cc_flag_unknown_warning_option=no 16922fi 16923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16924fi 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16928 CFLAGS="$xorg_testset_save_CFLAGS" 16929fi 16930 16931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16934 fi 16935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16939 $as_echo_n "(cached) " >&6 16940else 16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16942/* end confdefs.h. */ 16943int i; 16944_ACEOF 16945if ac_fn_c_try_compile "$LINENO"; then : 16946 xorg_cv_cc_flag_unused_command_line_argument=yes 16947else 16948 xorg_cv_cc_flag_unused_command_line_argument=no 16949fi 16950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16951fi 16952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16955 CFLAGS="$xorg_testset_save_CFLAGS" 16956fi 16957 16958found="no" 16959 16960 if test $found = "no" ; then 16961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16963 fi 16964 16965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16967 fi 16968 16969 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16970 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16972$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16973 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16974 if eval \${$cacheid+:} false; then : 16975 $as_echo_n "(cached) " >&6 16976else 16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16978/* end confdefs.h. */ 16979int i; 16980int 16981main () 16982{ 16983 16984 ; 16985 return 0; 16986} 16987_ACEOF 16988if ac_fn_c_try_link "$LINENO"; then : 16989 eval $cacheid=yes 16990else 16991 eval $cacheid=no 16992fi 16993rm -f core conftest.err conftest.$ac_objext \ 16994 conftest$ac_exeext conftest.$ac_ext 16995fi 16996 16997 16998 CFLAGS="$xorg_testset_save_CFLAGS" 16999 17000 eval supported=\$$cacheid 17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17002$as_echo "$supported" >&6; } 17003 if test "$supported" = "yes" ; then 17004 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17005 found="yes" 17006 fi 17007 fi 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023xorg_testset_save_CFLAGS="$CFLAGS" 17024 17025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17030 $as_echo_n "(cached) " >&6 17031else 17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17033/* end confdefs.h. */ 17034int i; 17035_ACEOF 17036if ac_fn_c_try_compile "$LINENO"; then : 17037 xorg_cv_cc_flag_unknown_warning_option=yes 17038else 17039 xorg_cv_cc_flag_unknown_warning_option=no 17040fi 17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17042fi 17043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17046 CFLAGS="$xorg_testset_save_CFLAGS" 17047fi 17048 17049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17052 fi 17053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17057 $as_echo_n "(cached) " >&6 17058else 17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17060/* end confdefs.h. */ 17061int i; 17062_ACEOF 17063if ac_fn_c_try_compile "$LINENO"; then : 17064 xorg_cv_cc_flag_unused_command_line_argument=yes 17065else 17066 xorg_cv_cc_flag_unused_command_line_argument=no 17067fi 17068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17069fi 17070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17073 CFLAGS="$xorg_testset_save_CFLAGS" 17074fi 17075 17076found="no" 17077 17078 if test $found = "no" ; then 17079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17081 fi 17082 17083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17085 fi 17086 17087 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17088 17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17090$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17091 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17092 if eval \${$cacheid+:} false; then : 17093 $as_echo_n "(cached) " >&6 17094else 17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17096/* end confdefs.h. */ 17097int i; 17098int 17099main () 17100{ 17101 17102 ; 17103 return 0; 17104} 17105_ACEOF 17106if ac_fn_c_try_link "$LINENO"; then : 17107 eval $cacheid=yes 17108else 17109 eval $cacheid=no 17110fi 17111rm -f core conftest.err conftest.$ac_objext \ 17112 conftest$ac_exeext conftest.$ac_ext 17113fi 17114 17115 17116 CFLAGS="$xorg_testset_save_CFLAGS" 17117 17118 eval supported=\$$cacheid 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17120$as_echo "$supported" >&6; } 17121 if test "$supported" = "yes" ; then 17122 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17123 found="yes" 17124 fi 17125 fi 17126 17127 17128fi 17129 17130 17131 17132 17133 17134 17135 17136 CWARNFLAGS="$BASE_CFLAGS" 17137 if test "x$GCC" = xyes ; then 17138 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17139 fi 17140 17141 17142 17143 17144 17145 17146 17147 17148# Check whether --enable-strict-compilation was given. 17149if test "${enable_strict_compilation+set}" = set; then : 17150 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17151else 17152 STRICT_COMPILE=no 17153fi 17154 17155 17156 17157 17158 17159 17160STRICT_CFLAGS="" 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174xorg_testset_save_CFLAGS="$CFLAGS" 17175 17176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17181 $as_echo_n "(cached) " >&6 17182else 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184/* end confdefs.h. */ 17185int i; 17186_ACEOF 17187if ac_fn_c_try_compile "$LINENO"; then : 17188 xorg_cv_cc_flag_unknown_warning_option=yes 17189else 17190 xorg_cv_cc_flag_unknown_warning_option=no 17191fi 17192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17193fi 17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17197 CFLAGS="$xorg_testset_save_CFLAGS" 17198fi 17199 17200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17203 fi 17204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211/* end confdefs.h. */ 17212int i; 17213_ACEOF 17214if ac_fn_c_try_compile "$LINENO"; then : 17215 xorg_cv_cc_flag_unused_command_line_argument=yes 17216else 17217 xorg_cv_cc_flag_unused_command_line_argument=no 17218fi 17219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17220fi 17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17224 CFLAGS="$xorg_testset_save_CFLAGS" 17225fi 17226 17227found="no" 17228 17229 if test $found = "no" ; then 17230 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17232 fi 17233 17234 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17236 fi 17237 17238 CFLAGS="$CFLAGS -pedantic" 17239 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17241$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17242 cacheid=xorg_cv_cc_flag__pedantic 17243 if eval \${$cacheid+:} false; then : 17244 $as_echo_n "(cached) " >&6 17245else 17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17247/* end confdefs.h. */ 17248int i; 17249int 17250main () 17251{ 17252 17253 ; 17254 return 0; 17255} 17256_ACEOF 17257if ac_fn_c_try_link "$LINENO"; then : 17258 eval $cacheid=yes 17259else 17260 eval $cacheid=no 17261fi 17262rm -f core conftest.err conftest.$ac_objext \ 17263 conftest$ac_exeext conftest.$ac_ext 17264fi 17265 17266 17267 CFLAGS="$xorg_testset_save_CFLAGS" 17268 17269 eval supported=\$$cacheid 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17271$as_echo "$supported" >&6; } 17272 if test "$supported" = "yes" ; then 17273 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17274 found="yes" 17275 fi 17276 fi 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292xorg_testset_save_CFLAGS="$CFLAGS" 17293 17294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17299 $as_echo_n "(cached) " >&6 17300else 17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17302/* end confdefs.h. */ 17303int i; 17304_ACEOF 17305if ac_fn_c_try_compile "$LINENO"; then : 17306 xorg_cv_cc_flag_unknown_warning_option=yes 17307else 17308 xorg_cv_cc_flag_unknown_warning_option=no 17309fi 17310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17311fi 17312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17315 CFLAGS="$xorg_testset_save_CFLAGS" 17316fi 17317 17318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17321 fi 17322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17326 $as_echo_n "(cached) " >&6 17327else 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330int i; 17331_ACEOF 17332if ac_fn_c_try_compile "$LINENO"; then : 17333 xorg_cv_cc_flag_unused_command_line_argument=yes 17334else 17335 xorg_cv_cc_flag_unused_command_line_argument=no 17336fi 17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17338fi 17339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17342 CFLAGS="$xorg_testset_save_CFLAGS" 17343fi 17344 17345found="no" 17346 17347 if test $found = "no" ; then 17348 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17350 fi 17351 17352 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17354 fi 17355 17356 CFLAGS="$CFLAGS -Werror" 17357 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17359$as_echo_n "checking if $CC supports -Werror... " >&6; } 17360 cacheid=xorg_cv_cc_flag__Werror 17361 if eval \${$cacheid+:} false; then : 17362 $as_echo_n "(cached) " >&6 17363else 17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17365/* end confdefs.h. */ 17366int i; 17367int 17368main () 17369{ 17370 17371 ; 17372 return 0; 17373} 17374_ACEOF 17375if ac_fn_c_try_link "$LINENO"; then : 17376 eval $cacheid=yes 17377else 17378 eval $cacheid=no 17379fi 17380rm -f core conftest.err conftest.$ac_objext \ 17381 conftest$ac_exeext conftest.$ac_ext 17382fi 17383 17384 17385 CFLAGS="$xorg_testset_save_CFLAGS" 17386 17387 eval supported=\$$cacheid 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17389$as_echo "$supported" >&6; } 17390 if test "$supported" = "yes" ; then 17391 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17392 found="yes" 17393 fi 17394 fi 17395 17396 if test $found = "no" ; then 17397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17399 fi 17400 17401 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17403 fi 17404 17405 CFLAGS="$CFLAGS -errwarn" 17406 17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17408$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17409 cacheid=xorg_cv_cc_flag__errwarn 17410 if eval \${$cacheid+:} false; then : 17411 $as_echo_n "(cached) " >&6 17412else 17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17414/* end confdefs.h. */ 17415int i; 17416int 17417main () 17418{ 17419 17420 ; 17421 return 0; 17422} 17423_ACEOF 17424if ac_fn_c_try_link "$LINENO"; then : 17425 eval $cacheid=yes 17426else 17427 eval $cacheid=no 17428fi 17429rm -f core conftest.err conftest.$ac_objext \ 17430 conftest$ac_exeext conftest.$ac_ext 17431fi 17432 17433 17434 CFLAGS="$xorg_testset_save_CFLAGS" 17435 17436 eval supported=\$$cacheid 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17438$as_echo "$supported" >&6; } 17439 if test "$supported" = "yes" ; then 17440 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17441 found="yes" 17442 fi 17443 fi 17444 17445 17446 17447# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17448# activate it with -Werror, so we add it here explicitly. 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462xorg_testset_save_CFLAGS="$CFLAGS" 17463 17464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17469 $as_echo_n "(cached) " >&6 17470else 17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17472/* end confdefs.h. */ 17473int i; 17474_ACEOF 17475if ac_fn_c_try_compile "$LINENO"; then : 17476 xorg_cv_cc_flag_unknown_warning_option=yes 17477else 17478 xorg_cv_cc_flag_unknown_warning_option=no 17479fi 17480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17481fi 17482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17485 CFLAGS="$xorg_testset_save_CFLAGS" 17486fi 17487 17488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17491 fi 17492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17496 $as_echo_n "(cached) " >&6 17497else 17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17499/* end confdefs.h. */ 17500int i; 17501_ACEOF 17502if ac_fn_c_try_compile "$LINENO"; then : 17503 xorg_cv_cc_flag_unused_command_line_argument=yes 17504else 17505 xorg_cv_cc_flag_unused_command_line_argument=no 17506fi 17507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17508fi 17509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17512 CFLAGS="$xorg_testset_save_CFLAGS" 17513fi 17514 17515found="no" 17516 17517 if test $found = "no" ; then 17518 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17520 fi 17521 17522 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17524 fi 17525 17526 CFLAGS="$CFLAGS -Werror=attributes" 17527 17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17529$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17530 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17531 if eval \${$cacheid+:} false; then : 17532 $as_echo_n "(cached) " >&6 17533else 17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17535/* end confdefs.h. */ 17536int i; 17537int 17538main () 17539{ 17540 17541 ; 17542 return 0; 17543} 17544_ACEOF 17545if ac_fn_c_try_link "$LINENO"; then : 17546 eval $cacheid=yes 17547else 17548 eval $cacheid=no 17549fi 17550rm -f core conftest.err conftest.$ac_objext \ 17551 conftest$ac_exeext conftest.$ac_ext 17552fi 17553 17554 17555 CFLAGS="$xorg_testset_save_CFLAGS" 17556 17557 eval supported=\$$cacheid 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17559$as_echo "$supported" >&6; } 17560 if test "$supported" = "yes" ; then 17561 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17562 found="yes" 17563 fi 17564 fi 17565 17566 17567 17568if test "x$STRICT_COMPILE" = "xyes"; then 17569 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17570 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17571fi 17572 17573 17574 17575 17576 17577 17578cat >>confdefs.h <<_ACEOF 17579#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17580_ACEOF 17581 17582 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17583 if test "x$PVM" = "x"; then 17584 PVM="0" 17585 fi 17586 17587cat >>confdefs.h <<_ACEOF 17588#define PACKAGE_VERSION_MINOR $PVM 17589_ACEOF 17590 17591 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17592 if test "x$PVP" = "x"; then 17593 PVP="0" 17594 fi 17595 17596cat >>confdefs.h <<_ACEOF 17597#define PACKAGE_VERSION_PATCHLEVEL $PVP 17598_ACEOF 17599 17600 17601 17602CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17603mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17604|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17605echo 'git directory not found: installing possibly empty changelog.' >&2)" 17606 17607 17608 17609 17610macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17611INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17612mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17613|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17614echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17615 17616 17617 17618 17619 17620 17621if test x$APP_MAN_SUFFIX = x ; then 17622 APP_MAN_SUFFIX=1 17623fi 17624if test x$APP_MAN_DIR = x ; then 17625 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17626fi 17627 17628if test x$LIB_MAN_SUFFIX = x ; then 17629 LIB_MAN_SUFFIX=3 17630fi 17631if test x$LIB_MAN_DIR = x ; then 17632 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17633fi 17634 17635if test x$FILE_MAN_SUFFIX = x ; then 17636 case $host_os in 17637 solaris*) FILE_MAN_SUFFIX=4 ;; 17638 *) FILE_MAN_SUFFIX=5 ;; 17639 esac 17640fi 17641if test x$FILE_MAN_DIR = x ; then 17642 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17643fi 17644 17645if test x$MISC_MAN_SUFFIX = x ; then 17646 case $host_os in 17647 solaris*) MISC_MAN_SUFFIX=5 ;; 17648 *) MISC_MAN_SUFFIX=7 ;; 17649 esac 17650fi 17651if test x$MISC_MAN_DIR = x ; then 17652 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17653fi 17654 17655if test x$DRIVER_MAN_SUFFIX = x ; then 17656 case $host_os in 17657 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17658 *) DRIVER_MAN_SUFFIX=4 ;; 17659 esac 17660fi 17661if test x$DRIVER_MAN_DIR = x ; then 17662 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17663fi 17664 17665if test x$ADMIN_MAN_SUFFIX = x ; then 17666 case $host_os in 17667 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17668 *) ADMIN_MAN_SUFFIX=8 ;; 17669 esac 17670fi 17671if test x$ADMIN_MAN_DIR = x ; then 17672 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17673fi 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689XORG_MAN_PAGE="X Version 11" 17690 17691MAN_SUBSTS="\ 17692 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17693 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17694 -e 's|__xservername__|Xorg|g' \ 17695 -e 's|__xconfigfile__|xorg.conf|g' \ 17696 -e 's|__projectroot__|\$(prefix)|g' \ 17697 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17698 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17699 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17700 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17701 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17702 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17703 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17704 17705 17706 17707# Check whether --enable-silent-rules was given. 17708if test "${enable_silent_rules+set}" = set; then : 17709 enableval=$enable_silent_rules; 17710fi 17711 17712case $enable_silent_rules in 17713yes) AM_DEFAULT_VERBOSITY=0;; 17714no) AM_DEFAULT_VERBOSITY=1;; 17715*) AM_DEFAULT_VERBOSITY=0;; 17716esac 17717AM_BACKSLASH='\' 17718 17719 17720 17721 17722# Check whether --enable-specs was given. 17723if test "${enable_specs+set}" = set; then : 17724 enableval=$enable_specs; build_specs=$enableval 17725else 17726 build_specs=yes 17727fi 17728 17729 17730 if test x$build_specs = xyes; then 17731 ENABLE_SPECS_TRUE= 17732 ENABLE_SPECS_FALSE='#' 17733else 17734 ENABLE_SPECS_TRUE='#' 17735 ENABLE_SPECS_FALSE= 17736fi 17737 17738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17739$as_echo_n "checking whether to build functional specifications... " >&6; } 17740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17741$as_echo "$build_specs" >&6; } 17742 17743 17744 17745 17746 17747# Check whether --with-xmlto was given. 17748if test "${with_xmlto+set}" = set; then : 17749 withval=$with_xmlto; use_xmlto=$withval 17750else 17751 use_xmlto=auto 17752fi 17753 17754 17755 17756if test "x$use_xmlto" = x"auto"; then 17757 # Extract the first word of "xmlto", so it can be a program name with args. 17758set dummy xmlto; ac_word=$2 17759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17760$as_echo_n "checking for $ac_word... " >&6; } 17761if ${ac_cv_path_XMLTO+:} false; then : 17762 $as_echo_n "(cached) " >&6 17763else 17764 case $XMLTO in 17765 [\\/]* | ?:[\\/]*) 17766 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17767 ;; 17768 *) 17769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17770for as_dir in $PATH 17771do 17772 IFS=$as_save_IFS 17773 test -z "$as_dir" && as_dir=. 17774 for ac_exec_ext in '' $ac_executable_extensions; do 17775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17776 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17778 break 2 17779 fi 17780done 17781 done 17782IFS=$as_save_IFS 17783 17784 ;; 17785esac 17786fi 17787XMLTO=$ac_cv_path_XMLTO 17788if test -n "$XMLTO"; then 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17790$as_echo "$XMLTO" >&6; } 17791else 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17793$as_echo "no" >&6; } 17794fi 17795 17796 17797 if test "x$XMLTO" = "x"; then 17798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17799$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17800 have_xmlto=no 17801 else 17802 have_xmlto=yes 17803 fi 17804elif test "x$use_xmlto" = x"yes" ; then 17805 # Extract the first word of "xmlto", so it can be a program name with args. 17806set dummy xmlto; ac_word=$2 17807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17808$as_echo_n "checking for $ac_word... " >&6; } 17809if ${ac_cv_path_XMLTO+:} false; then : 17810 $as_echo_n "(cached) " >&6 17811else 17812 case $XMLTO in 17813 [\\/]* | ?:[\\/]*) 17814 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17815 ;; 17816 *) 17817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17818for as_dir in $PATH 17819do 17820 IFS=$as_save_IFS 17821 test -z "$as_dir" && as_dir=. 17822 for ac_exec_ext in '' $ac_executable_extensions; do 17823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17824 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17826 break 2 17827 fi 17828done 17829 done 17830IFS=$as_save_IFS 17831 17832 ;; 17833esac 17834fi 17835XMLTO=$ac_cv_path_XMLTO 17836if test -n "$XMLTO"; then 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17838$as_echo "$XMLTO" >&6; } 17839else 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17841$as_echo "no" >&6; } 17842fi 17843 17844 17845 if test "x$XMLTO" = "x"; then 17846 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17847 fi 17848 have_xmlto=yes 17849elif test "x$use_xmlto" = x"no" ; then 17850 if test "x$XMLTO" != "x"; then 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17852$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17853 fi 17854 have_xmlto=no 17855else 17856 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17857fi 17858 17859# Test for a minimum version of xmlto, if provided. 17860if test "$have_xmlto" = yes; then 17861 # scrape the xmlto version 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17863$as_echo_n "checking the xmlto version... " >&6; } 17864 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17866$as_echo "$xmlto_version" >&6; } 17867 as_arg_v1=$xmlto_version 17868as_arg_v2=0.0.22 17869awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17870case $? in #( 17871 1) : 17872 if test "x$use_xmlto" = xauto; then 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17874$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17875 have_xmlto=no 17876 else 17877 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17878 fi ;; #( 17879 0) : 17880 ;; #( 17881 2) : 17882 ;; #( 17883 *) : 17884 ;; 17885esac 17886fi 17887 17888# Test for the ability of xmlto to generate a text target 17889have_xmlto_text=no 17890cat > conftest.xml << "EOF" 17891EOF 17892if test "$have_xmlto" = yes; then : 17893 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17894 have_xmlto_text=yes 17895else 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17897$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17898fi 17899fi 17900rm -f conftest.xml 17901 if test $have_xmlto_text = yes; then 17902 HAVE_XMLTO_TEXT_TRUE= 17903 HAVE_XMLTO_TEXT_FALSE='#' 17904else 17905 HAVE_XMLTO_TEXT_TRUE='#' 17906 HAVE_XMLTO_TEXT_FALSE= 17907fi 17908 17909 if test "$have_xmlto" = yes; then 17910 HAVE_XMLTO_TRUE= 17911 HAVE_XMLTO_FALSE='#' 17912else 17913 HAVE_XMLTO_TRUE='#' 17914 HAVE_XMLTO_FALSE= 17915fi 17916 17917 17918 17919 17920 17921 17922# Check whether --with-fop was given. 17923if test "${with_fop+set}" = set; then : 17924 withval=$with_fop; use_fop=$withval 17925else 17926 use_fop=auto 17927fi 17928 17929 17930 17931if test "x$use_fop" = x"auto"; then 17932 # Extract the first word of "fop", so it can be a program name with args. 17933set dummy fop; ac_word=$2 17934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17935$as_echo_n "checking for $ac_word... " >&6; } 17936if ${ac_cv_path_FOP+:} false; then : 17937 $as_echo_n "(cached) " >&6 17938else 17939 case $FOP in 17940 [\\/]* | ?:[\\/]*) 17941 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17942 ;; 17943 *) 17944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17945for as_dir in $PATH 17946do 17947 IFS=$as_save_IFS 17948 test -z "$as_dir" && as_dir=. 17949 for ac_exec_ext in '' $ac_executable_extensions; do 17950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17951 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17953 break 2 17954 fi 17955done 17956 done 17957IFS=$as_save_IFS 17958 17959 ;; 17960esac 17961fi 17962FOP=$ac_cv_path_FOP 17963if test -n "$FOP"; then 17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17965$as_echo "$FOP" >&6; } 17966else 17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17968$as_echo "no" >&6; } 17969fi 17970 17971 17972 if test "x$FOP" = "x"; then 17973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 17974$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 17975 have_fop=no 17976 else 17977 have_fop=yes 17978 fi 17979elif test "x$use_fop" = x"yes" ; then 17980 # Extract the first word of "fop", so it can be a program name with args. 17981set dummy fop; ac_word=$2 17982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17983$as_echo_n "checking for $ac_word... " >&6; } 17984if ${ac_cv_path_FOP+:} false; then : 17985 $as_echo_n "(cached) " >&6 17986else 17987 case $FOP in 17988 [\\/]* | ?:[\\/]*) 17989 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17990 ;; 17991 *) 17992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17993for as_dir in $PATH 17994do 17995 IFS=$as_save_IFS 17996 test -z "$as_dir" && as_dir=. 17997 for ac_exec_ext in '' $ac_executable_extensions; do 17998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17999 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18001 break 2 18002 fi 18003done 18004 done 18005IFS=$as_save_IFS 18006 18007 ;; 18008esac 18009fi 18010FOP=$ac_cv_path_FOP 18011if test -n "$FOP"; then 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18013$as_echo "$FOP" >&6; } 18014else 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18016$as_echo "no" >&6; } 18017fi 18018 18019 18020 if test "x$FOP" = "x"; then 18021 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18022 fi 18023 have_fop=yes 18024elif test "x$use_fop" = x"no" ; then 18025 if test "x$FOP" != "x"; then 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18027$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18028 fi 18029 have_fop=no 18030else 18031 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18032fi 18033 18034# Test for a minimum version of fop, if provided. 18035 18036 if test "$have_fop" = yes; then 18037 HAVE_FOP_TRUE= 18038 HAVE_FOP_FALSE='#' 18039else 18040 HAVE_FOP_TRUE='#' 18041 HAVE_FOP_FALSE= 18042fi 18043 18044 18045 18046 18047# Preserves the interface, should it be implemented later 18048 18049 18050 18051# Check whether --with-xsltproc was given. 18052if test "${with_xsltproc+set}" = set; then : 18053 withval=$with_xsltproc; use_xsltproc=$withval 18054else 18055 use_xsltproc=auto 18056fi 18057 18058 18059 18060if test "x$use_xsltproc" = x"auto"; then 18061 # Extract the first word of "xsltproc", so it can be a program name with args. 18062set dummy xsltproc; ac_word=$2 18063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18064$as_echo_n "checking for $ac_word... " >&6; } 18065if ${ac_cv_path_XSLTPROC+:} false; then : 18066 $as_echo_n "(cached) " >&6 18067else 18068 case $XSLTPROC in 18069 [\\/]* | ?:[\\/]*) 18070 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18071 ;; 18072 *) 18073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18074for as_dir in $PATH 18075do 18076 IFS=$as_save_IFS 18077 test -z "$as_dir" && as_dir=. 18078 for ac_exec_ext in '' $ac_executable_extensions; do 18079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18080 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18082 break 2 18083 fi 18084done 18085 done 18086IFS=$as_save_IFS 18087 18088 ;; 18089esac 18090fi 18091XSLTPROC=$ac_cv_path_XSLTPROC 18092if test -n "$XSLTPROC"; then 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18094$as_echo "$XSLTPROC" >&6; } 18095else 18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18097$as_echo "no" >&6; } 18098fi 18099 18100 18101 if test "x$XSLTPROC" = "x"; then 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18103$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18104 have_xsltproc=no 18105 else 18106 have_xsltproc=yes 18107 fi 18108elif test "x$use_xsltproc" = x"yes" ; then 18109 # Extract the first word of "xsltproc", so it can be a program name with args. 18110set dummy xsltproc; ac_word=$2 18111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18112$as_echo_n "checking for $ac_word... " >&6; } 18113if ${ac_cv_path_XSLTPROC+:} false; then : 18114 $as_echo_n "(cached) " >&6 18115else 18116 case $XSLTPROC in 18117 [\\/]* | ?:[\\/]*) 18118 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18119 ;; 18120 *) 18121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18122for as_dir in $PATH 18123do 18124 IFS=$as_save_IFS 18125 test -z "$as_dir" && as_dir=. 18126 for ac_exec_ext in '' $ac_executable_extensions; do 18127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18128 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18130 break 2 18131 fi 18132done 18133 done 18134IFS=$as_save_IFS 18135 18136 ;; 18137esac 18138fi 18139XSLTPROC=$ac_cv_path_XSLTPROC 18140if test -n "$XSLTPROC"; then 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18142$as_echo "$XSLTPROC" >&6; } 18143else 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18145$as_echo "no" >&6; } 18146fi 18147 18148 18149 if test "x$XSLTPROC" = "x"; then 18150 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18151 fi 18152 have_xsltproc=yes 18153elif test "x$use_xsltproc" = x"no" ; then 18154 if test "x$XSLTPROC" != "x"; then 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18156$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18157 fi 18158 have_xsltproc=no 18159else 18160 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18161fi 18162 18163 if test "$have_xsltproc" = yes; then 18164 HAVE_XSLTPROC_TRUE= 18165 HAVE_XSLTPROC_FALSE='#' 18166else 18167 HAVE_XSLTPROC_TRUE='#' 18168 HAVE_XSLTPROC_FALSE= 18169fi 18170 18171 18172 18173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18174$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18175XORG_SGML_PATH= 18176if test -n "$PKG_CONFIG" && \ 18177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18178 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18179 ac_status=$? 18180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18181 test $ac_status = 0; }; then 18182 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18183else 18184 : 18185 18186fi 18187 18188# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18189# the path and the name of the doc stylesheet 18190if test "x$XORG_SGML_PATH" != "x" ; then 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18192$as_echo "$XORG_SGML_PATH" >&6; } 18193 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18194 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18195else 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18197$as_echo "no" >&6; } 18198fi 18199 18200 18201 18202 18203 if test "x$XSL_STYLESHEET" != "x"; then 18204 HAVE_STYLESHEETS_TRUE= 18205 HAVE_STYLESHEETS_FALSE='#' 18206else 18207 HAVE_STYLESHEETS_TRUE='#' 18208 HAVE_STYLESHEETS_FALSE= 18209fi 18210 18211 18212 18213# Some compilers do not support per target -c and -o flags 18214if test "x$CC" != xcc; then 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 18216$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 18217else 18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 18219$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 18220fi 18221set dummy $CC; ac_cc=`$as_echo "$2" | 18222 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 18223if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225else 18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18227/* end confdefs.h. */ 18228 18229int 18230main () 18231{ 18232 18233 ; 18234 return 0; 18235} 18236_ACEOF 18237# Make sure it works both with $CC and with simple cc. 18238# We do the test twice because some compilers refuse to overwrite an 18239# existing .o file with -o, though they will create one. 18240ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 18241rm -f conftest2.* 18242if { { case "(($ac_try" in 18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18244 *) ac_try_echo=$ac_try;; 18245esac 18246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18247$as_echo "$ac_try_echo"; } >&5 18248 (eval "$ac_try") 2>&5 18249 ac_status=$? 18250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18251 test $ac_status = 0; } && 18252 test -f conftest2.$ac_objext && { { case "(($ac_try" in 18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18254 *) ac_try_echo=$ac_try;; 18255esac 18256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18257$as_echo "$ac_try_echo"; } >&5 18258 (eval "$ac_try") 2>&5 18259 ac_status=$? 18260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18261 test $ac_status = 0; }; 18262then 18263 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 18264 if test "x$CC" != xcc; then 18265 # Test first that cc exists at all. 18266 if { ac_try='cc -c conftest.$ac_ext >&5' 18267 { { case "(($ac_try" in 18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18269 *) ac_try_echo=$ac_try;; 18270esac 18271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18272$as_echo "$ac_try_echo"; } >&5 18273 (eval "$ac_try") 2>&5 18274 ac_status=$? 18275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18276 test $ac_status = 0; }; }; then 18277 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 18278 rm -f conftest2.* 18279 if { { case "(($ac_try" in 18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18281 *) ac_try_echo=$ac_try;; 18282esac 18283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18284$as_echo "$ac_try_echo"; } >&5 18285 (eval "$ac_try") 2>&5 18286 ac_status=$? 18287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18288 test $ac_status = 0; } && 18289 test -f conftest2.$ac_objext && { { case "(($ac_try" in 18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18291 *) ac_try_echo=$ac_try;; 18292esac 18293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18294$as_echo "$ac_try_echo"; } >&5 18295 (eval "$ac_try") 2>&5 18296 ac_status=$? 18297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18298 test $ac_status = 0; }; 18299 then 18300 # cc works too. 18301 : 18302 else 18303 # cc exists but doesn't like -o. 18304 eval ac_cv_prog_cc_${ac_cc}_c_o=no 18305 fi 18306 fi 18307 fi 18308else 18309 eval ac_cv_prog_cc_${ac_cc}_c_o=no 18310fi 18311rm -f core conftest* 18312 18313fi 18314if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18316$as_echo "yes" >&6; } 18317else 18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18319$as_echo "no" >&6; } 18320 18321$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 18322 18323fi 18324 18325# FIXME: we rely on the cache variable name because 18326# there is no other way. 18327set dummy $CC 18328am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 18329eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 18330if test "$am_t" != yes; then 18331 # Losing compiler, so override with the script. 18332 # FIXME: It is wrong to rewrite CC. 18333 # But if we don't then we get into trouble of one sort or another. 18334 # A longer-term fix would be to have automake use am__CC in this case, 18335 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 18336 CC="$am_aux_dir/compile $CC" 18337fi 18338 18339 18340 18341# Checks for programs. 18342for ac_prog in gawk mawk nawk awk 18343do 18344 # Extract the first word of "$ac_prog", so it can be a program name with args. 18345set dummy $ac_prog; ac_word=$2 18346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18347$as_echo_n "checking for $ac_word... " >&6; } 18348if ${ac_cv_prog_AWK+:} false; then : 18349 $as_echo_n "(cached) " >&6 18350else 18351 if test -n "$AWK"; then 18352 ac_cv_prog_AWK="$AWK" # Let the user override the test. 18353else 18354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18355for as_dir in $PATH 18356do 18357 IFS=$as_save_IFS 18358 test -z "$as_dir" && as_dir=. 18359 for ac_exec_ext in '' $ac_executable_extensions; do 18360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18361 ac_cv_prog_AWK="$ac_prog" 18362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18363 break 2 18364 fi 18365done 18366 done 18367IFS=$as_save_IFS 18368 18369fi 18370fi 18371AWK=$ac_cv_prog_AWK 18372if test -n "$AWK"; then 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 18374$as_echo "$AWK" >&6; } 18375else 18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18377$as_echo "no" >&6; } 18378fi 18379 18380 18381 test -n "$AWK" && break 18382done 18383 18384 18385# Need to call this explicitly since the first call to PKG_CHECK_MODULES 18386# is in an if statement, and later calls would break if it's skipped. 18387 18388 18389if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18390 if test -n "$ac_tool_prefix"; then 18391 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18392set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18394$as_echo_n "checking for $ac_word... " >&6; } 18395if ${ac_cv_path_PKG_CONFIG+:} false; then : 18396 $as_echo_n "(cached) " >&6 18397else 18398 case $PKG_CONFIG in 18399 [\\/]* | ?:[\\/]*) 18400 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18401 ;; 18402 *) 18403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18404for as_dir in $PATH 18405do 18406 IFS=$as_save_IFS 18407 test -z "$as_dir" && as_dir=. 18408 for ac_exec_ext in '' $ac_executable_extensions; do 18409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18410 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18412 break 2 18413 fi 18414done 18415 done 18416IFS=$as_save_IFS 18417 18418 ;; 18419esac 18420fi 18421PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18422if test -n "$PKG_CONFIG"; then 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18424$as_echo "$PKG_CONFIG" >&6; } 18425else 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18427$as_echo "no" >&6; } 18428fi 18429 18430 18431fi 18432if test -z "$ac_cv_path_PKG_CONFIG"; then 18433 ac_pt_PKG_CONFIG=$PKG_CONFIG 18434 # Extract the first word of "pkg-config", so it can be a program name with args. 18435set dummy pkg-config; ac_word=$2 18436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18437$as_echo_n "checking for $ac_word... " >&6; } 18438if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18439 $as_echo_n "(cached) " >&6 18440else 18441 case $ac_pt_PKG_CONFIG in 18442 [\\/]* | ?:[\\/]*) 18443 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18444 ;; 18445 *) 18446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18447for as_dir in $PATH 18448do 18449 IFS=$as_save_IFS 18450 test -z "$as_dir" && as_dir=. 18451 for ac_exec_ext in '' $ac_executable_extensions; do 18452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18453 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18455 break 2 18456 fi 18457done 18458 done 18459IFS=$as_save_IFS 18460 18461 ;; 18462esac 18463fi 18464ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18465if test -n "$ac_pt_PKG_CONFIG"; then 18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18467$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18468else 18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18470$as_echo "no" >&6; } 18471fi 18472 18473 if test "x$ac_pt_PKG_CONFIG" = x; then 18474 PKG_CONFIG="" 18475 else 18476 case $cross_compiling:$ac_tool_warned in 18477yes:) 18478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18480ac_tool_warned=yes ;; 18481esac 18482 PKG_CONFIG=$ac_pt_PKG_CONFIG 18483 fi 18484else 18485 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18486fi 18487 18488fi 18489if test -n "$PKG_CONFIG"; then 18490 _pkg_min_version=0.9.0 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18492$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18493 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18495$as_echo "yes" >&6; } 18496 else 18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18498$as_echo "no" >&6; } 18499 PKG_CONFIG="" 18500 fi 18501 18502fi 18503 18504# 18505# fix libtool to set SONAME to libXaw.so.$major 18506# 18507ac_config_commands="$ac_config_commands libtool_hack" 18508 18509 18510# OSX/Win32 rules are different. 18511platform_win32=no 18512platform_darwin=no 18513LIBEXT=so 18514case $host_os in 18515 cygwin*|mingw*) 18516 LIBEXT=dll.a 18517 platform_win32=yes 18518 ;; 18519 darwin*) 18520 LIBEXT=dylib 18521 platform_darwin=yes 18522 ;; 18523esac 18524 18525 if test "x$platform_win32" = "xyes"; then 18526 PLATFORM_WIN32_TRUE= 18527 PLATFORM_WIN32_FALSE='#' 18528else 18529 PLATFORM_WIN32_TRUE='#' 18530 PLATFORM_WIN32_FALSE= 18531fi 18532 18533 if test "x$platform_darwin" = "xyes"; then 18534 PLATFORM_DARWIN_TRUE= 18535 PLATFORM_DARWIN_FALSE='#' 18536else 18537 PLATFORM_DARWIN_TRUE='#' 18538 PLATFORM_DARWIN_FALSE= 18539fi 18540 18541 18542# Whether to build Xaw6 18543 18544# Check whether --enable-xaw6 was given. 18545if test "${enable_xaw6+set}" = set; then : 18546 enableval=$enable_xaw6; build_v6=$enableval 18547else 18548 build_v6=yes 18549fi 18550 18551 18552if test "x$build_v6" = xyes; then 18553 18554pkg_failed=no 18555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW6" >&5 18556$as_echo_n "checking for XAW6... " >&6; } 18557 18558if test -n "$XAW6_CFLAGS"; then 18559 pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS" 18560 elif test -n "$PKG_CONFIG"; then 18561 if test -n "$PKG_CONFIG" && \ 18562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5 18563 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5 18564 ac_status=$? 18565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18566 test $ac_status = 0; }; then 18567 pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null` 18568else 18569 pkg_failed=yes 18570fi 18571 else 18572 pkg_failed=untried 18573fi 18574if test -n "$XAW6_LIBS"; then 18575 pkg_cv_XAW6_LIBS="$XAW6_LIBS" 18576 elif test -n "$PKG_CONFIG"; then 18577 if test -n "$PKG_CONFIG" && \ 18578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5 18579 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5 18580 ac_status=$? 18581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18582 test $ac_status = 0; }; then 18583 pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null` 18584else 18585 pkg_failed=yes 18586fi 18587 else 18588 pkg_failed=untried 18589fi 18590 18591 18592 18593if test $pkg_failed = yes; then 18594 18595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18596 _pkg_short_errors_supported=yes 18597else 18598 _pkg_short_errors_supported=no 18599fi 18600 if test $_pkg_short_errors_supported = yes; then 18601 XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu" 2>&1` 18602 else 18603 XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu" 2>&1` 18604 fi 18605 # Put the nasty error message in config.log where it belongs 18606 echo "$XAW6_PKG_ERRORS" >&5 18607 18608 as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met: 18609 18610$XAW6_PKG_ERRORS 18611 18612Consider adjusting the PKG_CONFIG_PATH environment variable if you 18613installed software in a non-standard prefix. 18614 18615Alternatively, you may set the environment variables XAW6_CFLAGS 18616and XAW6_LIBS to avoid the need to call pkg-config. 18617See the pkg-config man page for more details. 18618" "$LINENO" 5 18619elif test $pkg_failed = untried; then 18620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18622as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18623is in your PATH or set the PKG_CONFIG environment variable to the full 18624path to pkg-config. 18625 18626Alternatively, you may set the environment variables XAW6_CFLAGS 18627and XAW6_LIBS to avoid the need to call pkg-config. 18628See the pkg-config man page for more details. 18629 18630To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18631See \`config.log' for more details" "$LINENO" 5; } 18632else 18633 XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS 18634 XAW6_LIBS=$pkg_cv_XAW6_LIBS 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18636$as_echo "yes" >&6; } 18637 : 18638fi 18639fi 18640 18641 18642# Whether to build Xaw7 18643 18644# Check whether --enable-xaw7 was given. 18645if test "${enable_xaw7+set}" = set; then : 18646 enableval=$enable_xaw7; build_v7=$enableval 18647else 18648 build_v7=yes 18649fi 18650 18651 18652if test "x$build_v7" = xyes; then 18653 18654pkg_failed=no 18655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW7" >&5 18656$as_echo_n "checking for XAW7... " >&6; } 18657 18658if test -n "$XAW7_CFLAGS"; then 18659 pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS" 18660 elif test -n "$PKG_CONFIG"; then 18661 if test -n "$PKG_CONFIG" && \ 18662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5 18663 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5 18664 ac_status=$? 18665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18666 test $ac_status = 0; }; then 18667 pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null` 18668else 18669 pkg_failed=yes 18670fi 18671 else 18672 pkg_failed=untried 18673fi 18674if test -n "$XAW7_LIBS"; then 18675 pkg_cv_XAW7_LIBS="$XAW7_LIBS" 18676 elif test -n "$PKG_CONFIG"; then 18677 if test -n "$PKG_CONFIG" && \ 18678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5 18679 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5 18680 ac_status=$? 18681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18682 test $ac_status = 0; }; then 18683 pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null` 18684else 18685 pkg_failed=yes 18686fi 18687 else 18688 pkg_failed=untried 18689fi 18690 18691 18692 18693if test $pkg_failed = yes; then 18694 18695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18696 _pkg_short_errors_supported=yes 18697else 18698 _pkg_short_errors_supported=no 18699fi 18700 if test $_pkg_short_errors_supported = yes; then 18701 XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1` 18702 else 18703 XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1` 18704 fi 18705 # Put the nasty error message in config.log where it belongs 18706 echo "$XAW7_PKG_ERRORS" >&5 18707 18708 as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met: 18709 18710$XAW7_PKG_ERRORS 18711 18712Consider adjusting the PKG_CONFIG_PATH environment variable if you 18713installed software in a non-standard prefix. 18714 18715Alternatively, you may set the environment variables XAW7_CFLAGS 18716and XAW7_LIBS to avoid the need to call pkg-config. 18717See the pkg-config man page for more details. 18718" "$LINENO" 5 18719elif test $pkg_failed = untried; then 18720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18722as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18723is in your PATH or set the PKG_CONFIG environment variable to the full 18724path to pkg-config. 18725 18726Alternatively, you may set the environment variables XAW7_CFLAGS 18727and XAW7_LIBS to avoid the need to call pkg-config. 18728See the pkg-config man page for more details. 18729 18730To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18731See \`config.log' for more details" "$LINENO" 5; } 18732else 18733 XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS 18734 XAW7_LIBS=$pkg_cv_XAW7_LIBS 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18736$as_echo "yes" >&6; } 18737 : 18738fi 18739fi 18740 18741 18742 if test x$build_v6 = xyes; then 18743 BUILD_XAW6_TRUE= 18744 BUILD_XAW6_FALSE='#' 18745else 18746 BUILD_XAW6_TRUE='#' 18747 BUILD_XAW6_FALSE= 18748fi 18749 18750 if test x$build_v7 = xyes; then 18751 BUILD_XAW7_TRUE= 18752 BUILD_XAW7_FALSE='#' 18753else 18754 BUILD_XAW7_TRUE='#' 18755 BUILD_XAW7_FALSE= 18756fi 18757 18758 18759# Checks for header files. 18760for ac_header in wctype.h wchar.h widec.h 18761do : 18762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18763ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18764if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18765 cat >>confdefs.h <<_ACEOF 18766#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18767_ACEOF 18768 18769fi 18770 18771done 18772 18773 18774# Checks for functions 18775for ac_func in iswalnum getpagesize 18776do : 18777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18778ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18779if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18780 cat >>confdefs.h <<_ACEOF 18781#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18782_ACEOF 18783 18784fi 18785done 18786 18787 18788ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile src/Makefile" 18789 18790 18791if test "x$build_v6" = xyes; then 18792 ac_config_files="$ac_config_files xaw6.pc" 18793 18794fi 18795 18796if test "x$build_v7" = xyes; then 18797 ac_config_files="$ac_config_files xaw7.pc" 18798 18799fi 18800 18801cat >confcache <<\_ACEOF 18802# This file is a shell script that caches the results of configure 18803# tests run on this system so they can be shared between configure 18804# scripts and configure runs, see configure's option --config-cache. 18805# It is not useful on other systems. If it contains results you don't 18806# want to keep, you may remove or edit it. 18807# 18808# config.status only pays attention to the cache file if you give it 18809# the --recheck option to rerun configure. 18810# 18811# `ac_cv_env_foo' variables (set or unset) will be overridden when 18812# loading this file, other *unset* `ac_cv_foo' will be assigned the 18813# following values. 18814 18815_ACEOF 18816 18817# The following way of writing the cache mishandles newlines in values, 18818# but we know of no workaround that is simple, portable, and efficient. 18819# So, we kill variables containing newlines. 18820# Ultrix sh set writes to stderr and can't be redirected directly, 18821# and sets the high bit in the cache file unless we assign to the vars. 18822( 18823 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18824 eval ac_val=\$$ac_var 18825 case $ac_val in #( 18826 *${as_nl}*) 18827 case $ac_var in #( 18828 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18829$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18830 esac 18831 case $ac_var in #( 18832 _ | IFS | as_nl) ;; #( 18833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18834 *) { eval $ac_var=; unset $ac_var;} ;; 18835 esac ;; 18836 esac 18837 done 18838 18839 (set) 2>&1 | 18840 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18841 *${as_nl}ac_space=\ *) 18842 # `set' does not quote correctly, so add quotes: double-quote 18843 # substitution turns \\\\ into \\, and sed turns \\ into \. 18844 sed -n \ 18845 "s/'/'\\\\''/g; 18846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18847 ;; #( 18848 *) 18849 # `set' quotes correctly as required by POSIX, so do not add quotes. 18850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18851 ;; 18852 esac | 18853 sort 18854) | 18855 sed ' 18856 /^ac_cv_env_/b end 18857 t clear 18858 :clear 18859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18860 t end 18861 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18862 :end' >>confcache 18863if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18864 if test -w "$cache_file"; then 18865 if test "x$cache_file" != "x/dev/null"; then 18866 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18867$as_echo "$as_me: updating cache $cache_file" >&6;} 18868 if test ! -f "$cache_file" || test -h "$cache_file"; then 18869 cat confcache >"$cache_file" 18870 else 18871 case $cache_file in #( 18872 */* | ?:*) 18873 mv -f confcache "$cache_file"$$ && 18874 mv -f "$cache_file"$$ "$cache_file" ;; #( 18875 *) 18876 mv -f confcache "$cache_file" ;; 18877 esac 18878 fi 18879 fi 18880 else 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18882$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18883 fi 18884fi 18885rm -f confcache 18886 18887test "x$prefix" = xNONE && prefix=$ac_default_prefix 18888# Let make expand exec_prefix. 18889test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18890 18891DEFS=-DHAVE_CONFIG_H 18892 18893ac_libobjs= 18894ac_ltlibobjs= 18895U= 18896for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18897 # 1. Remove the extension, and $U if already installed. 18898 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18899 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18900 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18901 # will be set to the directory where LIBOBJS objects are built. 18902 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18903 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18904done 18905LIBOBJS=$ac_libobjs 18906 18907LTLIBOBJS=$ac_ltlibobjs 18908 18909 18910 if test -n "$EXEEXT"; then 18911 am__EXEEXT_TRUE= 18912 am__EXEEXT_FALSE='#' 18913else 18914 am__EXEEXT_TRUE='#' 18915 am__EXEEXT_FALSE= 18916fi 18917 18918if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18919 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18920Usually this means the macro was only invoked conditionally." "$LINENO" 5 18921fi 18922if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18923 as_fn_error $? "conditional \"AMDEP\" was never defined. 18924Usually this means the macro was only invoked conditionally." "$LINENO" 5 18925fi 18926if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18927 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18928Usually this means the macro was only invoked conditionally." "$LINENO" 5 18929fi 18930if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 18931 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 18932Usually this means the macro was only invoked conditionally." "$LINENO" 5 18933fi 18934if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18935 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18936Usually this means the macro was only invoked conditionally." "$LINENO" 5 18937fi 18938if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18939 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18940Usually this means the macro was only invoked conditionally." "$LINENO" 5 18941fi 18942if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18943 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18944Usually this means the macro was only invoked conditionally." "$LINENO" 5 18945fi 18946if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18947 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18948Usually this means the macro was only invoked conditionally." "$LINENO" 5 18949fi 18950if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18951 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18952Usually this means the macro was only invoked conditionally." "$LINENO" 5 18953fi 18954if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then 18955 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined. 18956Usually this means the macro was only invoked conditionally." "$LINENO" 5 18957fi 18958if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then 18959 as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined. 18960Usually this means the macro was only invoked conditionally." "$LINENO" 5 18961fi 18962if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then 18963 as_fn_error $? "conditional \"BUILD_XAW6\" was never defined. 18964Usually this means the macro was only invoked conditionally." "$LINENO" 5 18965fi 18966if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then 18967 as_fn_error $? "conditional \"BUILD_XAW7\" was never defined. 18968Usually this means the macro was only invoked conditionally." "$LINENO" 5 18969fi 18970 18971: "${CONFIG_STATUS=./config.status}" 18972ac_write_fail=0 18973ac_clean_files_save=$ac_clean_files 18974ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18975{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18976$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18977as_write_fail=0 18978cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18979#! $SHELL 18980# Generated by $as_me. 18981# Run this file to recreate the current configuration. 18982# Compiler output produced by configure, useful for debugging 18983# configure, is in config.log if it exists. 18984 18985debug=false 18986ac_cs_recheck=false 18987ac_cs_silent=false 18988 18989SHELL=\${CONFIG_SHELL-$SHELL} 18990export SHELL 18991_ASEOF 18992cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18993## -------------------- ## 18994## M4sh Initialization. ## 18995## -------------------- ## 18996 18997# Be more Bourne compatible 18998DUALCASE=1; export DUALCASE # for MKS sh 18999if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19000 emulate sh 19001 NULLCMD=: 19002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19003 # is contrary to our usage. Disable this feature. 19004 alias -g '${1+"$@"}'='"$@"' 19005 setopt NO_GLOB_SUBST 19006else 19007 case `(set -o) 2>/dev/null` in #( 19008 *posix*) : 19009 set -o posix ;; #( 19010 *) : 19011 ;; 19012esac 19013fi 19014 19015 19016as_nl=' 19017' 19018export as_nl 19019# Printing a long string crashes Solaris 7 /usr/bin/printf. 19020as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19021as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19022as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19023# Prefer a ksh shell builtin over an external printf program on Solaris, 19024# but without wasting forks for bash or zsh. 19025if test -z "$BASH_VERSION$ZSH_VERSION" \ 19026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19027 as_echo='print -r --' 19028 as_echo_n='print -rn --' 19029elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19030 as_echo='printf %s\n' 19031 as_echo_n='printf %s' 19032else 19033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19034 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19035 as_echo_n='/usr/ucb/echo -n' 19036 else 19037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19038 as_echo_n_body='eval 19039 arg=$1; 19040 case $arg in #( 19041 *"$as_nl"*) 19042 expr "X$arg" : "X\\(.*\\)$as_nl"; 19043 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19044 esac; 19045 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19046 ' 19047 export as_echo_n_body 19048 as_echo_n='sh -c $as_echo_n_body as_echo' 19049 fi 19050 export as_echo_body 19051 as_echo='sh -c $as_echo_body as_echo' 19052fi 19053 19054# The user is always right. 19055if test "${PATH_SEPARATOR+set}" != set; then 19056 PATH_SEPARATOR=: 19057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19059 PATH_SEPARATOR=';' 19060 } 19061fi 19062 19063 19064# IFS 19065# We need space, tab and new line, in precisely that order. Quoting is 19066# there to prevent editors from complaining about space-tab. 19067# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19068# splitting by setting IFS to empty value.) 19069IFS=" "" $as_nl" 19070 19071# Find who we are. Look in the path if we contain no directory separator. 19072as_myself= 19073case $0 in #(( 19074 *[\\/]* ) as_myself=$0 ;; 19075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19076for as_dir in $PATH 19077do 19078 IFS=$as_save_IFS 19079 test -z "$as_dir" && as_dir=. 19080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19081 done 19082IFS=$as_save_IFS 19083 19084 ;; 19085esac 19086# We did not find ourselves, most probably we were run as `sh COMMAND' 19087# in which case we are not to be found in the path. 19088if test "x$as_myself" = x; then 19089 as_myself=$0 19090fi 19091if test ! -f "$as_myself"; then 19092 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19093 exit 1 19094fi 19095 19096# Unset variables that we do not need and which cause bugs (e.g. in 19097# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19098# suppresses any "Segmentation fault" message there. '((' could 19099# trigger a bug in pdksh 5.2.14. 19100for as_var in BASH_ENV ENV MAIL MAILPATH 19101do eval test x\${$as_var+set} = xset \ 19102 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19103done 19104PS1='$ ' 19105PS2='> ' 19106PS4='+ ' 19107 19108# NLS nuisances. 19109LC_ALL=C 19110export LC_ALL 19111LANGUAGE=C 19112export LANGUAGE 19113 19114# CDPATH. 19115(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19116 19117 19118# as_fn_error STATUS ERROR [LINENO LOG_FD] 19119# ---------------------------------------- 19120# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19121# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19122# script with STATUS, using 1 if that was 0. 19123as_fn_error () 19124{ 19125 as_status=$1; test $as_status -eq 0 && as_status=1 19126 if test "$4"; then 19127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19128 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19129 fi 19130 $as_echo "$as_me: error: $2" >&2 19131 as_fn_exit $as_status 19132} # as_fn_error 19133 19134 19135# as_fn_set_status STATUS 19136# ----------------------- 19137# Set $? to STATUS, without forking. 19138as_fn_set_status () 19139{ 19140 return $1 19141} # as_fn_set_status 19142 19143# as_fn_exit STATUS 19144# ----------------- 19145# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19146as_fn_exit () 19147{ 19148 set +e 19149 as_fn_set_status $1 19150 exit $1 19151} # as_fn_exit 19152 19153# as_fn_unset VAR 19154# --------------- 19155# Portably unset VAR. 19156as_fn_unset () 19157{ 19158 { eval $1=; unset $1;} 19159} 19160as_unset=as_fn_unset 19161# as_fn_append VAR VALUE 19162# ---------------------- 19163# Append the text in VALUE to the end of the definition contained in VAR. Take 19164# advantage of any shell optimizations that allow amortized linear growth over 19165# repeated appends, instead of the typical quadratic growth present in naive 19166# implementations. 19167if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19168 eval 'as_fn_append () 19169 { 19170 eval $1+=\$2 19171 }' 19172else 19173 as_fn_append () 19174 { 19175 eval $1=\$$1\$2 19176 } 19177fi # as_fn_append 19178 19179# as_fn_arith ARG... 19180# ------------------ 19181# Perform arithmetic evaluation on the ARGs, and store the result in the 19182# global $as_val. Take advantage of shells that can avoid forks. The arguments 19183# must be portable across $(()) and expr. 19184if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19185 eval 'as_fn_arith () 19186 { 19187 as_val=$(( $* )) 19188 }' 19189else 19190 as_fn_arith () 19191 { 19192 as_val=`expr "$@" || test $? -eq 1` 19193 } 19194fi # as_fn_arith 19195 19196 19197if expr a : '\(a\)' >/dev/null 2>&1 && 19198 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19199 as_expr=expr 19200else 19201 as_expr=false 19202fi 19203 19204if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19205 as_basename=basename 19206else 19207 as_basename=false 19208fi 19209 19210if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19211 as_dirname=dirname 19212else 19213 as_dirname=false 19214fi 19215 19216as_me=`$as_basename -- "$0" || 19217$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19218 X"$0" : 'X\(//\)$' \| \ 19219 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19220$as_echo X/"$0" | 19221 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19222 s//\1/ 19223 q 19224 } 19225 /^X\/\(\/\/\)$/{ 19226 s//\1/ 19227 q 19228 } 19229 /^X\/\(\/\).*/{ 19230 s//\1/ 19231 q 19232 } 19233 s/.*/./; q'` 19234 19235# Avoid depending upon Character Ranges. 19236as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19237as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19238as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19239as_cr_digits='0123456789' 19240as_cr_alnum=$as_cr_Letters$as_cr_digits 19241 19242ECHO_C= ECHO_N= ECHO_T= 19243case `echo -n x` in #((((( 19244-n*) 19245 case `echo 'xy\c'` in 19246 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19247 xy) ECHO_C='\c';; 19248 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19249 ECHO_T=' ';; 19250 esac;; 19251*) 19252 ECHO_N='-n';; 19253esac 19254 19255rm -f conf$$ conf$$.exe conf$$.file 19256if test -d conf$$.dir; then 19257 rm -f conf$$.dir/conf$$.file 19258else 19259 rm -f conf$$.dir 19260 mkdir conf$$.dir 2>/dev/null 19261fi 19262if (echo >conf$$.file) 2>/dev/null; then 19263 if ln -s conf$$.file conf$$ 2>/dev/null; then 19264 as_ln_s='ln -s' 19265 # ... but there are two gotchas: 19266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19268 # In both cases, we have to default to `cp -p'. 19269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19270 as_ln_s='cp -p' 19271 elif ln conf$$.file conf$$ 2>/dev/null; then 19272 as_ln_s=ln 19273 else 19274 as_ln_s='cp -p' 19275 fi 19276else 19277 as_ln_s='cp -p' 19278fi 19279rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19280rmdir conf$$.dir 2>/dev/null 19281 19282 19283# as_fn_mkdir_p 19284# ------------- 19285# Create "$as_dir" as a directory, including parents if necessary. 19286as_fn_mkdir_p () 19287{ 19288 19289 case $as_dir in #( 19290 -*) as_dir=./$as_dir;; 19291 esac 19292 test -d "$as_dir" || eval $as_mkdir_p || { 19293 as_dirs= 19294 while :; do 19295 case $as_dir in #( 19296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19297 *) as_qdir=$as_dir;; 19298 esac 19299 as_dirs="'$as_qdir' $as_dirs" 19300 as_dir=`$as_dirname -- "$as_dir" || 19301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19302 X"$as_dir" : 'X\(//\)[^/]' \| \ 19303 X"$as_dir" : 'X\(//\)$' \| \ 19304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19305$as_echo X"$as_dir" | 19306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19307 s//\1/ 19308 q 19309 } 19310 /^X\(\/\/\)[^/].*/{ 19311 s//\1/ 19312 q 19313 } 19314 /^X\(\/\/\)$/{ 19315 s//\1/ 19316 q 19317 } 19318 /^X\(\/\).*/{ 19319 s//\1/ 19320 q 19321 } 19322 s/.*/./; q'` 19323 test -d "$as_dir" && break 19324 done 19325 test -z "$as_dirs" || eval "mkdir $as_dirs" 19326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19327 19328 19329} # as_fn_mkdir_p 19330if mkdir -p . 2>/dev/null; then 19331 as_mkdir_p='mkdir -p "$as_dir"' 19332else 19333 test -d ./-p && rmdir ./-p 19334 as_mkdir_p=false 19335fi 19336 19337if test -x / >/dev/null 2>&1; then 19338 as_test_x='test -x' 19339else 19340 if ls -dL / >/dev/null 2>&1; then 19341 as_ls_L_option=L 19342 else 19343 as_ls_L_option= 19344 fi 19345 as_test_x=' 19346 eval sh -c '\'' 19347 if test -d "$1"; then 19348 test -d "$1/."; 19349 else 19350 case $1 in #( 19351 -*)set "./$1";; 19352 esac; 19353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19354 ???[sx]*):;;*)false;;esac;fi 19355 '\'' sh 19356 ' 19357fi 19358as_executable_p=$as_test_x 19359 19360# Sed expression to map a string onto a valid CPP name. 19361as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19362 19363# Sed expression to map a string onto a valid variable name. 19364as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19365 19366 19367exec 6>&1 19368## ----------------------------------- ## 19369## Main body of $CONFIG_STATUS script. ## 19370## ----------------------------------- ## 19371_ASEOF 19372test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19373 19374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19375# Save the log message, to keep $0 and so on meaningful, and to 19376# report actual input values of CONFIG_FILES etc. instead of their 19377# values after options handling. 19378ac_log=" 19379This file was extended by libXaw $as_me 1.0.11, which was 19380generated by GNU Autoconf 2.68. Invocation command line was 19381 19382 CONFIG_FILES = $CONFIG_FILES 19383 CONFIG_HEADERS = $CONFIG_HEADERS 19384 CONFIG_LINKS = $CONFIG_LINKS 19385 CONFIG_COMMANDS = $CONFIG_COMMANDS 19386 $ $0 $@ 19387 19388on `(hostname || uname -n) 2>/dev/null | sed 1q` 19389" 19390 19391_ACEOF 19392 19393case $ac_config_files in *" 19394"*) set x $ac_config_files; shift; ac_config_files=$*;; 19395esac 19396 19397case $ac_config_headers in *" 19398"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19399esac 19400 19401 19402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19403# Files that config.status was made for. 19404config_files="$ac_config_files" 19405config_headers="$ac_config_headers" 19406config_commands="$ac_config_commands" 19407 19408_ACEOF 19409 19410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19411ac_cs_usage="\ 19412\`$as_me' instantiates files and other configuration actions 19413from templates according to the current configuration. Unless the files 19414and actions are specified as TAGs, all are instantiated by default. 19415 19416Usage: $0 [OPTION]... [TAG]... 19417 19418 -h, --help print this help, then exit 19419 -V, --version print version number and configuration settings, then exit 19420 --config print configuration, then exit 19421 -q, --quiet, --silent 19422 do not print progress messages 19423 -d, --debug don't remove temporary files 19424 --recheck update $as_me by reconfiguring in the same conditions 19425 --file=FILE[:TEMPLATE] 19426 instantiate the configuration file FILE 19427 --header=FILE[:TEMPLATE] 19428 instantiate the configuration header FILE 19429 19430Configuration files: 19431$config_files 19432 19433Configuration headers: 19434$config_headers 19435 19436Configuration commands: 19437$config_commands 19438 19439Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19440 19441_ACEOF 19442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19443ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19444ac_cs_version="\\ 19445libXaw config.status 1.0.11 19446configured by $0, generated by GNU Autoconf 2.68, 19447 with options \\"\$ac_cs_config\\" 19448 19449Copyright (C) 2010 Free Software Foundation, Inc. 19450This config.status script is free software; the Free Software Foundation 19451gives unlimited permission to copy, distribute and modify it." 19452 19453ac_pwd='$ac_pwd' 19454srcdir='$srcdir' 19455INSTALL='$INSTALL' 19456MKDIR_P='$MKDIR_P' 19457AWK='$AWK' 19458test -n "\$AWK" || AWK=awk 19459_ACEOF 19460 19461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19462# The default lists apply if the user does not specify any file. 19463ac_need_defaults=: 19464while test $# != 0 19465do 19466 case $1 in 19467 --*=?*) 19468 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19469 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19470 ac_shift=: 19471 ;; 19472 --*=) 19473 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19474 ac_optarg= 19475 ac_shift=: 19476 ;; 19477 *) 19478 ac_option=$1 19479 ac_optarg=$2 19480 ac_shift=shift 19481 ;; 19482 esac 19483 19484 case $ac_option in 19485 # Handling of the options. 19486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19487 ac_cs_recheck=: ;; 19488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19489 $as_echo "$ac_cs_version"; exit ;; 19490 --config | --confi | --conf | --con | --co | --c ) 19491 $as_echo "$ac_cs_config"; exit ;; 19492 --debug | --debu | --deb | --de | --d | -d ) 19493 debug=: ;; 19494 --file | --fil | --fi | --f ) 19495 $ac_shift 19496 case $ac_optarg in 19497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19498 '') as_fn_error $? "missing file argument" ;; 19499 esac 19500 as_fn_append CONFIG_FILES " '$ac_optarg'" 19501 ac_need_defaults=false;; 19502 --header | --heade | --head | --hea ) 19503 $ac_shift 19504 case $ac_optarg in 19505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19506 esac 19507 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19508 ac_need_defaults=false;; 19509 --he | --h) 19510 # Conflict between --help and --header 19511 as_fn_error $? "ambiguous option: \`$1' 19512Try \`$0 --help' for more information.";; 19513 --help | --hel | -h ) 19514 $as_echo "$ac_cs_usage"; exit ;; 19515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19516 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19517 ac_cs_silent=: ;; 19518 19519 # This is an error. 19520 -*) as_fn_error $? "unrecognized option: \`$1' 19521Try \`$0 --help' for more information." ;; 19522 19523 *) as_fn_append ac_config_targets " $1" 19524 ac_need_defaults=false ;; 19525 19526 esac 19527 shift 19528done 19529 19530ac_configure_extra_args= 19531 19532if $ac_cs_silent; then 19533 exec 6>/dev/null 19534 ac_configure_extra_args="$ac_configure_extra_args --silent" 19535fi 19536 19537_ACEOF 19538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19539if \$ac_cs_recheck; then 19540 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19541 shift 19542 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19543 CONFIG_SHELL='$SHELL' 19544 export CONFIG_SHELL 19545 exec "\$@" 19546fi 19547 19548_ACEOF 19549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19550exec 5>>config.log 19551{ 19552 echo 19553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19554## Running $as_me. ## 19555_ASBOX 19556 $as_echo "$ac_log" 19557} >&5 19558 19559_ACEOF 19560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19561# 19562# INIT-COMMANDS 19563# 19564AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19565 19566 19567# The HP-UX ksh and POSIX shell print the target directory to stdout 19568# if CDPATH is set. 19569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19570 19571sed_quote_subst='$sed_quote_subst' 19572double_quote_subst='$double_quote_subst' 19573delay_variable_subst='$delay_variable_subst' 19574macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19575macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19576enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19577enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19578pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19579enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19580SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19581ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19582PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19583host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19584host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19585host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19586build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19587build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19588build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19589SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19590Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19591GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19592EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19593FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19594LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19595NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19596LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19597max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19598ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19599exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19600lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19601lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19602lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19603lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19604lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19605reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19606reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19607OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19608deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19609file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19610file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19611want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19612DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19613sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19614AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19615AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19616archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19617STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19618RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19619old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19620old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19621old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19622lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19623CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19624CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19625compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19626GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19627lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19628lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19629lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19630lt_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"`' 19631nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19632lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19633objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19634MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19635lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19636lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19637lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19638lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19639lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19640need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19641MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19642DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19643NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19644LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19645OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19646OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19647libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19648shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19649extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19650archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19651enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19652export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19653whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19654compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19655old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19656old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19657archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19658archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19659module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19660module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19661with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19662allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19663no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19664hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19665hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19666hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19667hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19668hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19669hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19670hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19671inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19672link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19673always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19674export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19675exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19676include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19677prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19678postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19679file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19680variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19681need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19682need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19683version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19684runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19685shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19686shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19687libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19688library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19689soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19690install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19691postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19692postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19693finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19694finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19695hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19696sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19697sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19698hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19699enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19700enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19701enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19702old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19703striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19704 19705LTCC='$LTCC' 19706LTCFLAGS='$LTCFLAGS' 19707compiler='$compiler_DEFAULT' 19708 19709# A function that is used when there is no print builtin or printf. 19710func_fallback_echo () 19711{ 19712 eval 'cat <<_LTECHO_EOF 19713\$1 19714_LTECHO_EOF' 19715} 19716 19717# Quote evaled strings. 19718for var in SHELL \ 19719ECHO \ 19720PATH_SEPARATOR \ 19721SED \ 19722GREP \ 19723EGREP \ 19724FGREP \ 19725LD \ 19726NM \ 19727LN_S \ 19728lt_SP2NL \ 19729lt_NL2SP \ 19730reload_flag \ 19731OBJDUMP \ 19732deplibs_check_method \ 19733file_magic_cmd \ 19734file_magic_glob \ 19735want_nocaseglob \ 19736DLLTOOL \ 19737sharedlib_from_linklib_cmd \ 19738AR \ 19739AR_FLAGS \ 19740archiver_list_spec \ 19741STRIP \ 19742RANLIB \ 19743CC \ 19744CFLAGS \ 19745compiler \ 19746lt_cv_sys_global_symbol_pipe \ 19747lt_cv_sys_global_symbol_to_cdecl \ 19748lt_cv_sys_global_symbol_to_c_name_address \ 19749lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19750nm_file_list_spec \ 19751lt_prog_compiler_no_builtin_flag \ 19752lt_prog_compiler_pic \ 19753lt_prog_compiler_wl \ 19754lt_prog_compiler_static \ 19755lt_cv_prog_compiler_c_o \ 19756need_locks \ 19757MANIFEST_TOOL \ 19758DSYMUTIL \ 19759NMEDIT \ 19760LIPO \ 19761OTOOL \ 19762OTOOL64 \ 19763shrext_cmds \ 19764export_dynamic_flag_spec \ 19765whole_archive_flag_spec \ 19766compiler_needs_object \ 19767with_gnu_ld \ 19768allow_undefined_flag \ 19769no_undefined_flag \ 19770hardcode_libdir_flag_spec \ 19771hardcode_libdir_separator \ 19772exclude_expsyms \ 19773include_expsyms \ 19774file_list_spec \ 19775variables_saved_for_relink \ 19776libname_spec \ 19777library_names_spec \ 19778soname_spec \ 19779install_override_mode \ 19780finish_eval \ 19781old_striplib \ 19782striplib; do 19783 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19784 *[\\\\\\\`\\"\\\$]*) 19785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19786 ;; 19787 *) 19788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19789 ;; 19790 esac 19791done 19792 19793# Double-quote double-evaled strings. 19794for var in reload_cmds \ 19795old_postinstall_cmds \ 19796old_postuninstall_cmds \ 19797old_archive_cmds \ 19798extract_expsyms_cmds \ 19799old_archive_from_new_cmds \ 19800old_archive_from_expsyms_cmds \ 19801archive_cmds \ 19802archive_expsym_cmds \ 19803module_cmds \ 19804module_expsym_cmds \ 19805export_symbols_cmds \ 19806prelink_cmds \ 19807postlink_cmds \ 19808postinstall_cmds \ 19809postuninstall_cmds \ 19810finish_cmds \ 19811sys_lib_search_path_spec \ 19812sys_lib_dlsearch_path_spec; do 19813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19814 *[\\\\\\\`\\"\\\$]*) 19815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19816 ;; 19817 *) 19818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19819 ;; 19820 esac 19821done 19822 19823ac_aux_dir='$ac_aux_dir' 19824xsi_shell='$xsi_shell' 19825lt_shell_append='$lt_shell_append' 19826 19827# See if we are running on zsh, and set the options which allow our 19828# commands through without removal of \ escapes INIT. 19829if test -n "\${ZSH_VERSION+set}" ; then 19830 setopt NO_GLOB_SUBST 19831fi 19832 19833 19834 PACKAGE='$PACKAGE' 19835 VERSION='$VERSION' 19836 TIMESTAMP='$TIMESTAMP' 19837 RM='$RM' 19838 ofile='$ofile' 19839 19840 19841 19842 19843_ACEOF 19844 19845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19846 19847# Handling of arguments. 19848for ac_config_target in $ac_config_targets 19849do 19850 case $ac_config_target in 19851 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19852 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19853 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19854 "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;; 19855 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19856 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19857 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19858 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19859 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19860 "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;; 19861 "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;; 19862 19863 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19864 esac 19865done 19866 19867 19868# If the user did not use the arguments to specify the items to instantiate, 19869# then the envvar interface is used. Set only those that are not. 19870# We use the long form for the default assignment because of an extremely 19871# bizarre bug on SunOS 4.1.3. 19872if $ac_need_defaults; then 19873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19876fi 19877 19878# Have a temporary directory for convenience. Make it in the build tree 19879# simply because there is no reason against having it here, and in addition, 19880# creating and moving files from /tmp can sometimes cause problems. 19881# Hook for its removal unless debugging. 19882# Note that there is a small window in which the directory will not be cleaned: 19883# after its creation but before its name has been assigned to `$tmp'. 19884$debug || 19885{ 19886 tmp= ac_tmp= 19887 trap 'exit_status=$? 19888 : "${ac_tmp:=$tmp}" 19889 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19890' 0 19891 trap 'as_fn_exit 1' 1 2 13 15 19892} 19893# Create a (secure) tmp directory for tmp files. 19894 19895{ 19896 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19897 test -d "$tmp" 19898} || 19899{ 19900 tmp=./conf$$-$RANDOM 19901 (umask 077 && mkdir "$tmp") 19902} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19903ac_tmp=$tmp 19904 19905# Set up the scripts for CONFIG_FILES section. 19906# No need to generate them if there are no CONFIG_FILES. 19907# This happens for instance with `./config.status config.h'. 19908if test -n "$CONFIG_FILES"; then 19909 19910 19911ac_cr=`echo X | tr X '\015'` 19912# On cygwin, bash can eat \r inside `` if the user requested igncr. 19913# But we know of no other shell where ac_cr would be empty at this 19914# point, so we can use a bashism as a fallback. 19915if test "x$ac_cr" = x; then 19916 eval ac_cr=\$\'\\r\' 19917fi 19918ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19919if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19920 ac_cs_awk_cr='\\r' 19921else 19922 ac_cs_awk_cr=$ac_cr 19923fi 19924 19925echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19926_ACEOF 19927 19928 19929{ 19930 echo "cat >conf$$subs.awk <<_ACEOF" && 19931 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19932 echo "_ACEOF" 19933} >conf$$subs.sh || 19934 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19935ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19936ac_delim='%!_!# ' 19937for ac_last_try in false false false false false :; do 19938 . ./conf$$subs.sh || 19939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19940 19941 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19942 if test $ac_delim_n = $ac_delim_num; then 19943 break 19944 elif $ac_last_try; then 19945 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19946 else 19947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19948 fi 19949done 19950rm -f conf$$subs.sh 19951 19952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19953cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19954_ACEOF 19955sed -n ' 19956h 19957s/^/S["/; s/!.*/"]=/ 19958p 19959g 19960s/^[^!]*!// 19961:repl 19962t repl 19963s/'"$ac_delim"'$// 19964t delim 19965:nl 19966h 19967s/\(.\{148\}\)..*/\1/ 19968t more1 19969s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19970p 19971n 19972b repl 19973:more1 19974s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19975p 19976g 19977s/.\{148\}// 19978t nl 19979:delim 19980h 19981s/\(.\{148\}\)..*/\1/ 19982t more2 19983s/["\\]/\\&/g; s/^/"/; s/$/"/ 19984p 19985b 19986:more2 19987s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19988p 19989g 19990s/.\{148\}// 19991t delim 19992' <conf$$subs.awk | sed ' 19993/^[^""]/{ 19994 N 19995 s/\n// 19996} 19997' >>$CONFIG_STATUS || ac_write_fail=1 19998rm -f conf$$subs.awk 19999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20000_ACAWK 20001cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20002 for (key in S) S_is_set[key] = 1 20003 FS = "" 20004 20005} 20006{ 20007 line = $ 0 20008 nfields = split(line, field, "@") 20009 substed = 0 20010 len = length(field[1]) 20011 for (i = 2; i < nfields; i++) { 20012 key = field[i] 20013 keylen = length(key) 20014 if (S_is_set[key]) { 20015 value = S[key] 20016 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20017 len += length(value) + length(field[++i]) 20018 substed = 1 20019 } else 20020 len += 1 + keylen 20021 } 20022 20023 print line 20024} 20025 20026_ACAWK 20027_ACEOF 20028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20029if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20030 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20031else 20032 cat 20033fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20034 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20035_ACEOF 20036 20037# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20038# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20039# trailing colons and then remove the whole line if VPATH becomes empty 20040# (actually we leave an empty line to preserve line numbers). 20041if test "x$srcdir" = x.; then 20042 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20043h 20044s/// 20045s/^/:/ 20046s/[ ]*$/:/ 20047s/:\$(srcdir):/:/g 20048s/:\${srcdir}:/:/g 20049s/:@srcdir@:/:/g 20050s/^:*// 20051s/:*$// 20052x 20053s/\(=[ ]*\).*/\1/ 20054G 20055s/\n// 20056s/^[^=]*=[ ]*$// 20057}' 20058fi 20059 20060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20061fi # test -n "$CONFIG_FILES" 20062 20063# Set up the scripts for CONFIG_HEADERS section. 20064# No need to generate them if there are no CONFIG_HEADERS. 20065# This happens for instance with `./config.status Makefile'. 20066if test -n "$CONFIG_HEADERS"; then 20067cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20068BEGIN { 20069_ACEOF 20070 20071# Transform confdefs.h into an awk script `defines.awk', embedded as 20072# here-document in config.status, that substitutes the proper values into 20073# config.h.in to produce config.h. 20074 20075# Create a delimiter string that does not exist in confdefs.h, to ease 20076# handling of long lines. 20077ac_delim='%!_!# ' 20078for ac_last_try in false false :; do 20079 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20080 if test -z "$ac_tt"; then 20081 break 20082 elif $ac_last_try; then 20083 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20084 else 20085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20086 fi 20087done 20088 20089# For the awk script, D is an array of macro values keyed by name, 20090# likewise P contains macro parameters if any. Preserve backslash 20091# newline sequences. 20092 20093ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20094sed -n ' 20095s/.\{148\}/&'"$ac_delim"'/g 20096t rset 20097:rset 20098s/^[ ]*#[ ]*define[ ][ ]*/ / 20099t def 20100d 20101:def 20102s/\\$// 20103t bsnl 20104s/["\\]/\\&/g 20105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20106D["\1"]=" \3"/p 20107s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20108d 20109:bsnl 20110s/["\\]/\\&/g 20111s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20112D["\1"]=" \3\\\\\\n"\\/p 20113t cont 20114s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20115t cont 20116d 20117:cont 20118n 20119s/.\{148\}/&'"$ac_delim"'/g 20120t clear 20121:clear 20122s/\\$// 20123t bsnlc 20124s/["\\]/\\&/g; s/^/"/; s/$/"/p 20125d 20126:bsnlc 20127s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20128b cont 20129' <confdefs.h | sed ' 20130s/'"$ac_delim"'/"\\\ 20131"/g' >>$CONFIG_STATUS || ac_write_fail=1 20132 20133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20134 for (key in D) D_is_set[key] = 1 20135 FS = "" 20136} 20137/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20138 line = \$ 0 20139 split(line, arg, " ") 20140 if (arg[1] == "#") { 20141 defundef = arg[2] 20142 mac1 = arg[3] 20143 } else { 20144 defundef = substr(arg[1], 2) 20145 mac1 = arg[2] 20146 } 20147 split(mac1, mac2, "(") #) 20148 macro = mac2[1] 20149 prefix = substr(line, 1, index(line, defundef) - 1) 20150 if (D_is_set[macro]) { 20151 # Preserve the white space surrounding the "#". 20152 print prefix "define", macro P[macro] D[macro] 20153 next 20154 } else { 20155 # Replace #undef with comments. This is necessary, for example, 20156 # in the case of _POSIX_SOURCE, which is predefined and required 20157 # on some systems where configure will not decide to define it. 20158 if (defundef == "undef") { 20159 print "/*", prefix defundef, macro, "*/" 20160 next 20161 } 20162 } 20163} 20164{ print } 20165_ACAWK 20166_ACEOF 20167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20168 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20169fi # test -n "$CONFIG_HEADERS" 20170 20171 20172eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20173shift 20174for ac_tag 20175do 20176 case $ac_tag in 20177 :[FHLC]) ac_mode=$ac_tag; continue;; 20178 esac 20179 case $ac_mode$ac_tag in 20180 :[FHL]*:*);; 20181 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20182 :[FH]-) ac_tag=-:-;; 20183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20184 esac 20185 ac_save_IFS=$IFS 20186 IFS=: 20187 set x $ac_tag 20188 IFS=$ac_save_IFS 20189 shift 20190 ac_file=$1 20191 shift 20192 20193 case $ac_mode in 20194 :L) ac_source=$1;; 20195 :[FH]) 20196 ac_file_inputs= 20197 for ac_f 20198 do 20199 case $ac_f in 20200 -) ac_f="$ac_tmp/stdin";; 20201 *) # Look for the file first in the build tree, then in the source tree 20202 # (if the path is not absolute). The absolute path cannot be DOS-style, 20203 # because $ac_f cannot contain `:'. 20204 test -f "$ac_f" || 20205 case $ac_f in 20206 [\\/$]*) false;; 20207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20208 esac || 20209 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20210 esac 20211 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20212 as_fn_append ac_file_inputs " '$ac_f'" 20213 done 20214 20215 # Let's still pretend it is `configure' which instantiates (i.e., don't 20216 # use $as_me), people would be surprised to read: 20217 # /* config.h. Generated by config.status. */ 20218 configure_input='Generated from '` 20219 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20220 `' by configure.' 20221 if test x"$ac_file" != x-; then 20222 configure_input="$ac_file. $configure_input" 20223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20224$as_echo "$as_me: creating $ac_file" >&6;} 20225 fi 20226 # Neutralize special characters interpreted by sed in replacement strings. 20227 case $configure_input in #( 20228 *\&* | *\|* | *\\* ) 20229 ac_sed_conf_input=`$as_echo "$configure_input" | 20230 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20231 *) ac_sed_conf_input=$configure_input;; 20232 esac 20233 20234 case $ac_tag in 20235 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20237 esac 20238 ;; 20239 esac 20240 20241 ac_dir=`$as_dirname -- "$ac_file" || 20242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20243 X"$ac_file" : 'X\(//\)[^/]' \| \ 20244 X"$ac_file" : 'X\(//\)$' \| \ 20245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20246$as_echo X"$ac_file" | 20247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20248 s//\1/ 20249 q 20250 } 20251 /^X\(\/\/\)[^/].*/{ 20252 s//\1/ 20253 q 20254 } 20255 /^X\(\/\/\)$/{ 20256 s//\1/ 20257 q 20258 } 20259 /^X\(\/\).*/{ 20260 s//\1/ 20261 q 20262 } 20263 s/.*/./; q'` 20264 as_dir="$ac_dir"; as_fn_mkdir_p 20265 ac_builddir=. 20266 20267case "$ac_dir" in 20268.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20269*) 20270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20271 # A ".." for each directory in $ac_dir_suffix. 20272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20273 case $ac_top_builddir_sub in 20274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20276 esac ;; 20277esac 20278ac_abs_top_builddir=$ac_pwd 20279ac_abs_builddir=$ac_pwd$ac_dir_suffix 20280# for backward compatibility: 20281ac_top_builddir=$ac_top_build_prefix 20282 20283case $srcdir in 20284 .) # We are building in place. 20285 ac_srcdir=. 20286 ac_top_srcdir=$ac_top_builddir_sub 20287 ac_abs_top_srcdir=$ac_pwd ;; 20288 [\\/]* | ?:[\\/]* ) # Absolute name. 20289 ac_srcdir=$srcdir$ac_dir_suffix; 20290 ac_top_srcdir=$srcdir 20291 ac_abs_top_srcdir=$srcdir ;; 20292 *) # Relative name. 20293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20294 ac_top_srcdir=$ac_top_build_prefix$srcdir 20295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20296esac 20297ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20298 20299 20300 case $ac_mode in 20301 :F) 20302 # 20303 # CONFIG_FILE 20304 # 20305 20306 case $INSTALL in 20307 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20308 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20309 esac 20310 ac_MKDIR_P=$MKDIR_P 20311 case $MKDIR_P in 20312 [\\/$]* | ?:[\\/]* ) ;; 20313 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20314 esac 20315_ACEOF 20316 20317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20318# If the template does not know about datarootdir, expand it. 20319# FIXME: This hack should be removed a few years after 2.60. 20320ac_datarootdir_hack=; ac_datarootdir_seen= 20321ac_sed_dataroot=' 20322/datarootdir/ { 20323 p 20324 q 20325} 20326/@datadir@/p 20327/@docdir@/p 20328/@infodir@/p 20329/@localedir@/p 20330/@mandir@/p' 20331case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20332*datarootdir*) ac_datarootdir_seen=yes;; 20333*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20335$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20336_ACEOF 20337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20338 ac_datarootdir_hack=' 20339 s&@datadir@&$datadir&g 20340 s&@docdir@&$docdir&g 20341 s&@infodir@&$infodir&g 20342 s&@localedir@&$localedir&g 20343 s&@mandir@&$mandir&g 20344 s&\\\${datarootdir}&$datarootdir&g' ;; 20345esac 20346_ACEOF 20347 20348# Neutralize VPATH when `$srcdir' = `.'. 20349# Shell code in configure.ac might set extrasub. 20350# FIXME: do we really want to maintain this feature? 20351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20352ac_sed_extra="$ac_vpsub 20353$extrasub 20354_ACEOF 20355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20356:t 20357/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20358s|@configure_input@|$ac_sed_conf_input|;t t 20359s&@top_builddir@&$ac_top_builddir_sub&;t t 20360s&@top_build_prefix@&$ac_top_build_prefix&;t t 20361s&@srcdir@&$ac_srcdir&;t t 20362s&@abs_srcdir@&$ac_abs_srcdir&;t t 20363s&@top_srcdir@&$ac_top_srcdir&;t t 20364s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20365s&@builddir@&$ac_builddir&;t t 20366s&@abs_builddir@&$ac_abs_builddir&;t t 20367s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20368s&@INSTALL@&$ac_INSTALL&;t t 20369s&@MKDIR_P@&$ac_MKDIR_P&;t t 20370$ac_datarootdir_hack 20371" 20372eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20373 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20374 20375test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20376 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20378 "$ac_tmp/out"`; test -z "$ac_out"; } && 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20380which seems to be undefined. Please make sure it is defined" >&5 20381$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20382which seems to be undefined. Please make sure it is defined" >&2;} 20383 20384 rm -f "$ac_tmp/stdin" 20385 case $ac_file in 20386 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20387 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20388 esac \ 20389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20390 ;; 20391 :H) 20392 # 20393 # CONFIG_HEADER 20394 # 20395 if test x"$ac_file" != x-; then 20396 { 20397 $as_echo "/* $configure_input */" \ 20398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20399 } >"$ac_tmp/config.h" \ 20400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20401 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20402 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20403$as_echo "$as_me: $ac_file is unchanged" >&6;} 20404 else 20405 rm -f "$ac_file" 20406 mv "$ac_tmp/config.h" "$ac_file" \ 20407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20408 fi 20409 else 20410 $as_echo "/* $configure_input */" \ 20411 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20412 || as_fn_error $? "could not create -" "$LINENO" 5 20413 fi 20414# Compute "$ac_file"'s index in $config_headers. 20415_am_arg="$ac_file" 20416_am_stamp_count=1 20417for _am_header in $config_headers :; do 20418 case $_am_header in 20419 $_am_arg | $_am_arg:* ) 20420 break ;; 20421 * ) 20422 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20423 esac 20424done 20425echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20426$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20427 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20428 X"$_am_arg" : 'X\(//\)$' \| \ 20429 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20430$as_echo X"$_am_arg" | 20431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20432 s//\1/ 20433 q 20434 } 20435 /^X\(\/\/\)[^/].*/{ 20436 s//\1/ 20437 q 20438 } 20439 /^X\(\/\/\)$/{ 20440 s//\1/ 20441 q 20442 } 20443 /^X\(\/\).*/{ 20444 s//\1/ 20445 q 20446 } 20447 s/.*/./; q'`/stamp-h$_am_stamp_count 20448 ;; 20449 20450 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20451$as_echo "$as_me: executing $ac_file commands" >&6;} 20452 ;; 20453 esac 20454 20455 20456 case $ac_file$ac_mode in 20457 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20458 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20459 # are listed without --file. Let's play safe and only enable the eval 20460 # if we detect the quoting. 20461 case $CONFIG_FILES in 20462 *\'*) eval set x "$CONFIG_FILES" ;; 20463 *) set x $CONFIG_FILES ;; 20464 esac 20465 shift 20466 for mf 20467 do 20468 # Strip MF so we end up with the name of the file. 20469 mf=`echo "$mf" | sed -e 's/:.*$//'` 20470 # Check whether this is an Automake generated Makefile or not. 20471 # We used to match only the files named `Makefile.in', but 20472 # some people rename them; so instead we look at the file content. 20473 # Grep'ing the first line is not enough: some people post-process 20474 # each Makefile.in and add a new line on top of each file to say so. 20475 # Grep'ing the whole file is not good either: AIX grep has a line 20476 # limit of 2048, but all sed's we know have understand at least 4000. 20477 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20478 dirpart=`$as_dirname -- "$mf" || 20479$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20480 X"$mf" : 'X\(//\)[^/]' \| \ 20481 X"$mf" : 'X\(//\)$' \| \ 20482 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20483$as_echo X"$mf" | 20484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20485 s//\1/ 20486 q 20487 } 20488 /^X\(\/\/\)[^/].*/{ 20489 s//\1/ 20490 q 20491 } 20492 /^X\(\/\/\)$/{ 20493 s//\1/ 20494 q 20495 } 20496 /^X\(\/\).*/{ 20497 s//\1/ 20498 q 20499 } 20500 s/.*/./; q'` 20501 else 20502 continue 20503 fi 20504 # Extract the definition of DEPDIR, am__include, and am__quote 20505 # from the Makefile without running `make'. 20506 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20507 test -z "$DEPDIR" && continue 20508 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20509 test -z "am__include" && continue 20510 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20511 # When using ansi2knr, U may be empty or an underscore; expand it 20512 U=`sed -n 's/^U = //p' < "$mf"` 20513 # Find all dependency output files, they are included files with 20514 # $(DEPDIR) in their names. We invoke sed twice because it is the 20515 # simplest approach to changing $(DEPDIR) to its actual value in the 20516 # expansion. 20517 for file in `sed -n " 20518 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20519 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20520 # Make sure the directory exists. 20521 test -f "$dirpart/$file" && continue 20522 fdir=`$as_dirname -- "$file" || 20523$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20524 X"$file" : 'X\(//\)[^/]' \| \ 20525 X"$file" : 'X\(//\)$' \| \ 20526 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20527$as_echo X"$file" | 20528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20529 s//\1/ 20530 q 20531 } 20532 /^X\(\/\/\)[^/].*/{ 20533 s//\1/ 20534 q 20535 } 20536 /^X\(\/\/\)$/{ 20537 s//\1/ 20538 q 20539 } 20540 /^X\(\/\).*/{ 20541 s//\1/ 20542 q 20543 } 20544 s/.*/./; q'` 20545 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20546 # echo "creating $dirpart/$file" 20547 echo '# dummy' > "$dirpart/$file" 20548 done 20549 done 20550} 20551 ;; 20552 "libtool":C) 20553 20554 # See if we are running on zsh, and set the options which allow our 20555 # commands through without removal of \ escapes. 20556 if test -n "${ZSH_VERSION+set}" ; then 20557 setopt NO_GLOB_SUBST 20558 fi 20559 20560 cfgfile="${ofile}T" 20561 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20562 $RM "$cfgfile" 20563 20564 cat <<_LT_EOF >> "$cfgfile" 20565#! $SHELL 20566 20567# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20568# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20569# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20570# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20571# 20572# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20573# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20574# Foundation, Inc. 20575# Written by Gordon Matzigkeit, 1996 20576# 20577# This file is part of GNU Libtool. 20578# 20579# GNU Libtool is free software; you can redistribute it and/or 20580# modify it under the terms of the GNU General Public License as 20581# published by the Free Software Foundation; either version 2 of 20582# the License, or (at your option) any later version. 20583# 20584# As a special exception to the GNU General Public License, 20585# if you distribute this file as part of a program or library that 20586# is built using GNU Libtool, you may include this file under the 20587# same distribution terms that you use for the rest of that program. 20588# 20589# GNU Libtool is distributed in the hope that it will be useful, 20590# but WITHOUT ANY WARRANTY; without even the implied warranty of 20591# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20592# GNU General Public License for more details. 20593# 20594# You should have received a copy of the GNU General Public License 20595# along with GNU Libtool; see the file COPYING. If not, a copy 20596# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20597# obtained by writing to the Free Software Foundation, Inc., 20598# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20599 20600 20601# The names of the tagged configurations supported by this script. 20602available_tags="" 20603 20604# ### BEGIN LIBTOOL CONFIG 20605 20606# Which release of libtool.m4 was used? 20607macro_version=$macro_version 20608macro_revision=$macro_revision 20609 20610# Whether or not to build shared libraries. 20611build_libtool_libs=$enable_shared 20612 20613# Whether or not to build static libraries. 20614build_old_libs=$enable_static 20615 20616# What type of objects to build. 20617pic_mode=$pic_mode 20618 20619# Whether or not to optimize for fast installation. 20620fast_install=$enable_fast_install 20621 20622# Shell to use when invoking shell scripts. 20623SHELL=$lt_SHELL 20624 20625# An echo program that protects backslashes. 20626ECHO=$lt_ECHO 20627 20628# The PATH separator for the build system. 20629PATH_SEPARATOR=$lt_PATH_SEPARATOR 20630 20631# The host system. 20632host_alias=$host_alias 20633host=$host 20634host_os=$host_os 20635 20636# The build system. 20637build_alias=$build_alias 20638build=$build 20639build_os=$build_os 20640 20641# A sed program that does not truncate output. 20642SED=$lt_SED 20643 20644# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20645Xsed="\$SED -e 1s/^X//" 20646 20647# A grep program that handles long lines. 20648GREP=$lt_GREP 20649 20650# An ERE matcher. 20651EGREP=$lt_EGREP 20652 20653# A literal string matcher. 20654FGREP=$lt_FGREP 20655 20656# A BSD- or MS-compatible name lister. 20657NM=$lt_NM 20658 20659# Whether we need soft or hard links. 20660LN_S=$lt_LN_S 20661 20662# What is the maximum length of a command? 20663max_cmd_len=$max_cmd_len 20664 20665# Object file suffix (normally "o"). 20666objext=$ac_objext 20667 20668# Executable file suffix (normally ""). 20669exeext=$exeext 20670 20671# whether the shell understands "unset". 20672lt_unset=$lt_unset 20673 20674# turn spaces into newlines. 20675SP2NL=$lt_lt_SP2NL 20676 20677# turn newlines into spaces. 20678NL2SP=$lt_lt_NL2SP 20679 20680# convert \$build file names to \$host format. 20681to_host_file_cmd=$lt_cv_to_host_file_cmd 20682 20683# convert \$build files to toolchain format. 20684to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20685 20686# An object symbol dumper. 20687OBJDUMP=$lt_OBJDUMP 20688 20689# Method to check whether dependent libraries are shared objects. 20690deplibs_check_method=$lt_deplibs_check_method 20691 20692# Command to use when deplibs_check_method = "file_magic". 20693file_magic_cmd=$lt_file_magic_cmd 20694 20695# How to find potential files when deplibs_check_method = "file_magic". 20696file_magic_glob=$lt_file_magic_glob 20697 20698# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20699want_nocaseglob=$lt_want_nocaseglob 20700 20701# DLL creation program. 20702DLLTOOL=$lt_DLLTOOL 20703 20704# Command to associate shared and link libraries. 20705sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20706 20707# The archiver. 20708AR=$lt_AR 20709 20710# Flags to create an archive. 20711AR_FLAGS=$lt_AR_FLAGS 20712 20713# How to feed a file listing to the archiver. 20714archiver_list_spec=$lt_archiver_list_spec 20715 20716# A symbol stripping program. 20717STRIP=$lt_STRIP 20718 20719# Commands used to install an old-style archive. 20720RANLIB=$lt_RANLIB 20721old_postinstall_cmds=$lt_old_postinstall_cmds 20722old_postuninstall_cmds=$lt_old_postuninstall_cmds 20723 20724# Whether to use a lock for old archive extraction. 20725lock_old_archive_extraction=$lock_old_archive_extraction 20726 20727# A C compiler. 20728LTCC=$lt_CC 20729 20730# LTCC compiler flags. 20731LTCFLAGS=$lt_CFLAGS 20732 20733# Take the output of nm and produce a listing of raw symbols and C names. 20734global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20735 20736# Transform the output of nm in a proper C declaration. 20737global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20738 20739# Transform the output of nm in a C name address pair. 20740global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20741 20742# Transform the output of nm in a C name address pair when lib prefix is needed. 20743global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20744 20745# Specify filename containing input files for \$NM. 20746nm_file_list_spec=$lt_nm_file_list_spec 20747 20748# The root where to search for dependent libraries,and in which our libraries should be installed. 20749lt_sysroot=$lt_sysroot 20750 20751# The name of the directory that contains temporary libtool files. 20752objdir=$objdir 20753 20754# Used to examine libraries when file_magic_cmd begins with "file". 20755MAGIC_CMD=$MAGIC_CMD 20756 20757# Must we lock files when doing compilation? 20758need_locks=$lt_need_locks 20759 20760# Manifest tool. 20761MANIFEST_TOOL=$lt_MANIFEST_TOOL 20762 20763# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20764DSYMUTIL=$lt_DSYMUTIL 20765 20766# Tool to change global to local symbols on Mac OS X. 20767NMEDIT=$lt_NMEDIT 20768 20769# Tool to manipulate fat objects and archives on Mac OS X. 20770LIPO=$lt_LIPO 20771 20772# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20773OTOOL=$lt_OTOOL 20774 20775# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20776OTOOL64=$lt_OTOOL64 20777 20778# Old archive suffix (normally "a"). 20779libext=$libext 20780 20781# Shared library suffix (normally ".so"). 20782shrext_cmds=$lt_shrext_cmds 20783 20784# The commands to extract the exported symbol list from a shared archive. 20785extract_expsyms_cmds=$lt_extract_expsyms_cmds 20786 20787# Variables whose values should be saved in libtool wrapper scripts and 20788# restored at link time. 20789variables_saved_for_relink=$lt_variables_saved_for_relink 20790 20791# Do we need the "lib" prefix for modules? 20792need_lib_prefix=$need_lib_prefix 20793 20794# Do we need a version for libraries? 20795need_version=$need_version 20796 20797# Library versioning type. 20798version_type=$version_type 20799 20800# Shared library runtime path variable. 20801runpath_var=$runpath_var 20802 20803# Shared library path variable. 20804shlibpath_var=$shlibpath_var 20805 20806# Is shlibpath searched before the hard-coded library search path? 20807shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20808 20809# Format of library name prefix. 20810libname_spec=$lt_libname_spec 20811 20812# List of archive names. First name is the real one, the rest are links. 20813# The last name is the one that the linker finds with -lNAME 20814library_names_spec=$lt_library_names_spec 20815 20816# The coded name of the library, if different from the real name. 20817soname_spec=$lt_soname_spec 20818 20819# Permission mode override for installation of shared libraries. 20820install_override_mode=$lt_install_override_mode 20821 20822# Command to use after installation of a shared archive. 20823postinstall_cmds=$lt_postinstall_cmds 20824 20825# Command to use after uninstallation of a shared archive. 20826postuninstall_cmds=$lt_postuninstall_cmds 20827 20828# Commands used to finish a libtool library installation in a directory. 20829finish_cmds=$lt_finish_cmds 20830 20831# As "finish_cmds", except a single script fragment to be evaled but 20832# not shown. 20833finish_eval=$lt_finish_eval 20834 20835# Whether we should hardcode library paths into libraries. 20836hardcode_into_libs=$hardcode_into_libs 20837 20838# Compile-time system search path for libraries. 20839sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20840 20841# Run-time system search path for libraries. 20842sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20843 20844# Whether dlopen is supported. 20845dlopen_support=$enable_dlopen 20846 20847# Whether dlopen of programs is supported. 20848dlopen_self=$enable_dlopen_self 20849 20850# Whether dlopen of statically linked programs is supported. 20851dlopen_self_static=$enable_dlopen_self_static 20852 20853# Commands to strip libraries. 20854old_striplib=$lt_old_striplib 20855striplib=$lt_striplib 20856 20857 20858# The linker used to build libraries. 20859LD=$lt_LD 20860 20861# How to create reloadable object files. 20862reload_flag=$lt_reload_flag 20863reload_cmds=$lt_reload_cmds 20864 20865# Commands used to build an old-style archive. 20866old_archive_cmds=$lt_old_archive_cmds 20867 20868# A language specific compiler. 20869CC=$lt_compiler 20870 20871# Is the compiler the GNU compiler? 20872with_gcc=$GCC 20873 20874# Compiler flag to turn off builtin functions. 20875no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20876 20877# Additional compiler flags for building library objects. 20878pic_flag=$lt_lt_prog_compiler_pic 20879 20880# How to pass a linker flag through the compiler. 20881wl=$lt_lt_prog_compiler_wl 20882 20883# Compiler flag to prevent dynamic linking. 20884link_static_flag=$lt_lt_prog_compiler_static 20885 20886# Does compiler simultaneously support -c and -o options? 20887compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20888 20889# Whether or not to add -lc for building shared libraries. 20890build_libtool_need_lc=$archive_cmds_need_lc 20891 20892# Whether or not to disallow shared libs when runtime libs are static. 20893allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20894 20895# Compiler flag to allow reflexive dlopens. 20896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20897 20898# Compiler flag to generate shared objects directly from archives. 20899whole_archive_flag_spec=$lt_whole_archive_flag_spec 20900 20901# Whether the compiler copes with passing no objects directly. 20902compiler_needs_object=$lt_compiler_needs_object 20903 20904# Create an old-style archive from a shared archive. 20905old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20906 20907# Create a temporary old-style archive to link instead of a shared archive. 20908old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20909 20910# Commands used to build a shared archive. 20911archive_cmds=$lt_archive_cmds 20912archive_expsym_cmds=$lt_archive_expsym_cmds 20913 20914# Commands used to build a loadable module if different from building 20915# a shared archive. 20916module_cmds=$lt_module_cmds 20917module_expsym_cmds=$lt_module_expsym_cmds 20918 20919# Whether we are building with GNU ld or not. 20920with_gnu_ld=$lt_with_gnu_ld 20921 20922# Flag that allows shared libraries with undefined symbols to be built. 20923allow_undefined_flag=$lt_allow_undefined_flag 20924 20925# Flag that enforces no undefined symbols. 20926no_undefined_flag=$lt_no_undefined_flag 20927 20928# Flag to hardcode \$libdir into a binary during linking. 20929# This must work even if \$libdir does not exist 20930hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20931 20932# Whether we need a single "-rpath" flag with a separated argument. 20933hardcode_libdir_separator=$lt_hardcode_libdir_separator 20934 20935# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20936# DIR into the resulting binary. 20937hardcode_direct=$hardcode_direct 20938 20939# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20940# DIR into the resulting binary and the resulting library dependency is 20941# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20942# library is relocated. 20943hardcode_direct_absolute=$hardcode_direct_absolute 20944 20945# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20946# into the resulting binary. 20947hardcode_minus_L=$hardcode_minus_L 20948 20949# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20950# into the resulting binary. 20951hardcode_shlibpath_var=$hardcode_shlibpath_var 20952 20953# Set to "yes" if building a shared library automatically hardcodes DIR 20954# into the library and all subsequent libraries and executables linked 20955# against it. 20956hardcode_automatic=$hardcode_automatic 20957 20958# Set to yes if linker adds runtime paths of dependent libraries 20959# to runtime path list. 20960inherit_rpath=$inherit_rpath 20961 20962# Whether libtool must link a program against all its dependency libraries. 20963link_all_deplibs=$link_all_deplibs 20964 20965# Set to "yes" if exported symbols are required. 20966always_export_symbols=$always_export_symbols 20967 20968# The commands to list exported symbols. 20969export_symbols_cmds=$lt_export_symbols_cmds 20970 20971# Symbols that should not be listed in the preloaded symbols. 20972exclude_expsyms=$lt_exclude_expsyms 20973 20974# Symbols that must always be exported. 20975include_expsyms=$lt_include_expsyms 20976 20977# Commands necessary for linking programs (against libraries) with templates. 20978prelink_cmds=$lt_prelink_cmds 20979 20980# Commands necessary for finishing linking programs. 20981postlink_cmds=$lt_postlink_cmds 20982 20983# Specify filename containing input files. 20984file_list_spec=$lt_file_list_spec 20985 20986# How to hardcode a shared library path into an executable. 20987hardcode_action=$hardcode_action 20988 20989# ### END LIBTOOL CONFIG 20990 20991_LT_EOF 20992 20993 case $host_os in 20994 aix3*) 20995 cat <<\_LT_EOF >> "$cfgfile" 20996# AIX sometimes has problems with the GCC collect2 program. For some 20997# reason, if we set the COLLECT_NAMES environment variable, the problems 20998# vanish in a puff of smoke. 20999if test "X${COLLECT_NAMES+set}" != Xset; then 21000 COLLECT_NAMES= 21001 export COLLECT_NAMES 21002fi 21003_LT_EOF 21004 ;; 21005 esac 21006 21007 21008ltmain="$ac_aux_dir/ltmain.sh" 21009 21010 21011 # We use sed instead of cat because bash on DJGPP gets confused if 21012 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21013 # text mode, it properly converts lines to CR/LF. This bash problem 21014 # is reportedly fixed, but why not run on old versions too? 21015 sed '$q' "$ltmain" >> "$cfgfile" \ 21016 || (rm -f "$cfgfile"; exit 1) 21017 21018 if test x"$xsi_shell" = xyes; then 21019 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21020func_dirname ()\ 21021{\ 21022\ case ${1} in\ 21023\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21024\ * ) func_dirname_result="${3}" ;;\ 21025\ esac\ 21026} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21027 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21029test 0 -eq $? || _lt_function_replace_fail=: 21030 21031 21032 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21033func_basename ()\ 21034{\ 21035\ func_basename_result="${1##*/}"\ 21036} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21037 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21039test 0 -eq $? || _lt_function_replace_fail=: 21040 21041 21042 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21043func_dirname_and_basename ()\ 21044{\ 21045\ case ${1} in\ 21046\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21047\ * ) func_dirname_result="${3}" ;;\ 21048\ esac\ 21049\ func_basename_result="${1##*/}"\ 21050} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21051 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21053test 0 -eq $? || _lt_function_replace_fail=: 21054 21055 21056 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21057func_stripname ()\ 21058{\ 21059\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21060\ # positional parameters, so assign one to ordinary parameter first.\ 21061\ func_stripname_result=${3}\ 21062\ func_stripname_result=${func_stripname_result#"${1}"}\ 21063\ func_stripname_result=${func_stripname_result%"${2}"}\ 21064} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21065 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21067test 0 -eq $? || _lt_function_replace_fail=: 21068 21069 21070 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21071func_split_long_opt ()\ 21072{\ 21073\ func_split_long_opt_name=${1%%=*}\ 21074\ func_split_long_opt_arg=${1#*=}\ 21075} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21076 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21078test 0 -eq $? || _lt_function_replace_fail=: 21079 21080 21081 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21082func_split_short_opt ()\ 21083{\ 21084\ func_split_short_opt_arg=${1#??}\ 21085\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21086} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21087 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21089test 0 -eq $? || _lt_function_replace_fail=: 21090 21091 21092 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21093func_lo2o ()\ 21094{\ 21095\ case ${1} in\ 21096\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21097\ *) func_lo2o_result=${1} ;;\ 21098\ esac\ 21099} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21100 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21102test 0 -eq $? || _lt_function_replace_fail=: 21103 21104 21105 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21106func_xform ()\ 21107{\ 21108 func_xform_result=${1%.*}.lo\ 21109} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21110 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21112test 0 -eq $? || _lt_function_replace_fail=: 21113 21114 21115 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21116func_arith ()\ 21117{\ 21118 func_arith_result=$(( $* ))\ 21119} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21120 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21122test 0 -eq $? || _lt_function_replace_fail=: 21123 21124 21125 sed -e '/^func_len ()$/,/^} # func_len /c\ 21126func_len ()\ 21127{\ 21128 func_len_result=${#1}\ 21129} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21130 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21132test 0 -eq $? || _lt_function_replace_fail=: 21133 21134fi 21135 21136if test x"$lt_shell_append" = xyes; then 21137 sed -e '/^func_append ()$/,/^} # func_append /c\ 21138func_append ()\ 21139{\ 21140 eval "${1}+=\\${2}"\ 21141} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21142 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21144test 0 -eq $? || _lt_function_replace_fail=: 21145 21146 21147 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21148func_append_quoted ()\ 21149{\ 21150\ func_quote_for_eval "${2}"\ 21151\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21152} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21153 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21155test 0 -eq $? || _lt_function_replace_fail=: 21156 21157 21158 # Save a `func_append' function call where possible by direct use of '+=' 21159 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21160 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21162 test 0 -eq $? || _lt_function_replace_fail=: 21163else 21164 # Save a `func_append' function call even when '+=' is not available 21165 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21166 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21168 test 0 -eq $? || _lt_function_replace_fail=: 21169fi 21170 21171if test x"$_lt_function_replace_fail" = x":"; then 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21173$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21174fi 21175 21176 21177 mv -f "$cfgfile" "$ofile" || 21178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21179 chmod +x "$ofile" 21180 21181 ;; 21182 "libtool_hack":C) 21183 cp -f libtool libtool_ 21184 test -z "$SED" && SED=sed 21185 $SED '1,/^soname_spec/{ 21186/^soname_spec/i\ 21187# X.Org hack to match monolithic Xaw SONAME\ 21188xorglibxawname="libXaw" 21189/^soname_spec/s/libname/xorglibxawname/ 21190}' libtool_ > libtool 21191 rm -f libtool_ 21192 ;; 21193 21194 esac 21195done # for ac_tag 21196 21197 21198as_fn_exit 0 21199_ACEOF 21200ac_clean_files=$ac_clean_files_save 21201 21202test $ac_write_fail = 0 || 21203 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21204 21205 21206# configure is writing to config.log, and then calls config.status. 21207# config.status does its own redirection, appending to config.log. 21208# Unfortunately, on DOS this fails, as config.log is still kept open 21209# by configure, so config.status won't be able to write to it; its 21210# output is simply discarded. So we exec the FD to /dev/null, 21211# effectively closing config.log, so it can be properly (re)opened and 21212# appended to by config.status. When coming back to configure, we 21213# need to make the FD available again. 21214if test "$no_create" != yes; then 21215 ac_cs_success=: 21216 ac_config_status_args= 21217 test "$silent" = yes && 21218 ac_config_status_args="$ac_config_status_args --quiet" 21219 exec 5>/dev/null 21220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21221 exec 5>>config.log 21222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21223 # would make configure fail if this is the last instruction. 21224 $ac_cs_success || as_fn_exit 1 21225fi 21226if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21228$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21229fi 21230 21231