configure revision a96d7823
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXfont2 2.0.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='libXfont2' 653PACKAGE_TARNAME='libXfont2' 654PACKAGE_VERSION='2.0.1' 655PACKAGE_STRING='libXfont2 2.0.1' 656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_subst_vars='am__EXEEXT_FALSE 697am__EXEEXT_TRUE 698LTLIBOBJS 699LIBOBJS 700OS_CFLAGS 701XFONT_LIBS 702XFONT_CFLAGS 703MATH_LIBS 704XFONT_FC_FALSE 705XFONT_FC_TRUE 706XFONT_FONTFILE_FALSE 707XFONT_FONTFILE_TRUE 708XFONT_BITMAP_FALSE 709XFONT_BITMAP_TRUE 710XFONT_SNFFORMAT_FALSE 711XFONT_SNFFORMAT_TRUE 712XFONT_BDFFORMAT_FALSE 713XFONT_BDFFORMAT_TRUE 714XFONT_PCF_OR_BUILTIN_FALSE 715XFONT_PCF_OR_BUILTIN_TRUE 716XFONT_PCFFORMAT_FALSE 717XFONT_PCFFORMAT_TRUE 718XFONT_BUILTINS_FALSE 719XFONT_BUILTINS_TRUE 720Z_LIBS 721X_BZIP2_FONT_COMPRESSION_FALSE 722X_BZIP2_FONT_COMPRESSION_TRUE 723X_GZIP_FONT_COMPRESSION 724FREETYPE_REQUIRES 725ft_config 726FREETYPE_LIBS 727FREETYPE_CFLAGS 728XFONT_FREETYPE_FALSE 729XFONT_FREETYPE_TRUE 730GCC_CFLAGS 731HAVE_STYLESHEETS_FALSE 732HAVE_STYLESHEETS_TRUE 733XSL_STYLESHEET 734STYLESHEET_SRCDIR 735XORG_SGML_PATH 736HAVE_FOP_FALSE 737HAVE_FOP_TRUE 738FOP 739HAVE_XMLTO_FALSE 740HAVE_XMLTO_TRUE 741HAVE_XMLTO_TEXT_FALSE 742HAVE_XMLTO_TEXT_TRUE 743XMLTO 744ENABLE_DEVEL_DOCS_FALSE 745ENABLE_DEVEL_DOCS_TRUE 746MAN_SUBSTS 747XORG_MAN_PAGE 748ADMIN_MAN_DIR 749DRIVER_MAN_DIR 750MISC_MAN_DIR 751FILE_MAN_DIR 752LIB_MAN_DIR 753APP_MAN_DIR 754ADMIN_MAN_SUFFIX 755DRIVER_MAN_SUFFIX 756MISC_MAN_SUFFIX 757FILE_MAN_SUFFIX 758LIB_MAN_SUFFIX 759APP_MAN_SUFFIX 760INSTALL_CMD 761PKG_CONFIG_LIBDIR 762PKG_CONFIG_PATH 763PKG_CONFIG 764CHANGELOG_CMD 765STRICT_CFLAGS 766CWARNFLAGS 767BASE_CFLAGS 768OTOOL64 769OTOOL 770LIPO 771NMEDIT 772DSYMUTIL 773MANIFEST_TOOL 774RANLIB 775ac_ct_AR 776AR 777DLLTOOL 778OBJDUMP 779LN_S 780NM 781ac_ct_DUMPBIN 782DUMPBIN 783LD 784FGREP 785SED 786host_os 787host_vendor 788host_cpu 789host 790build_os 791build_vendor 792build_cpu 793build 794LIBTOOL 795EGREP 796GREP 797CPP 798am__fastdepCC_FALSE 799am__fastdepCC_TRUE 800CCDEPMODE 801am__nodep 802AMDEPBACKSLASH 803AMDEP_FALSE 804AMDEP_TRUE 805am__quote 806am__include 807DEPDIR 808OBJEXT 809EXEEXT 810ac_ct_CC 811CPPFLAGS 812LDFLAGS 813CFLAGS 814CC 815AM_BACKSLASH 816AM_DEFAULT_VERBOSITY 817AM_DEFAULT_V 818AM_V 819am__untar 820am__tar 821AMTAR 822am__leading_dot 823SET_MAKE 824AWK 825mkdir_p 826MKDIR_P 827INSTALL_STRIP_PROGRAM 828STRIP 829install_sh 830MAKEINFO 831AUTOHEADER 832AUTOMAKE 833AUTOCONF 834ACLOCAL 835VERSION 836PACKAGE 837CYGPATH_W 838am__isrc 839INSTALL_DATA 840INSTALL_SCRIPT 841INSTALL_PROGRAM 842target_alias 843host_alias 844build_alias 845LIBS 846ECHO_T 847ECHO_N 848ECHO_C 849DEFS 850mandir 851localedir 852libdir 853psdir 854pdfdir 855dvidir 856htmldir 857infodir 858docdir 859oldincludedir 860includedir 861runstatedir 862localstatedir 863sharedstatedir 864sysconfdir 865datadir 866datarootdir 867libexecdir 868sbindir 869bindir 870program_transform_name 871prefix 872exec_prefix 873PACKAGE_URL 874PACKAGE_BUGREPORT 875PACKAGE_STRING 876PACKAGE_VERSION 877PACKAGE_TARNAME 878PACKAGE_NAME 879PATH_SEPARATOR 880SHELL' 881ac_subst_files='' 882ac_user_opts=' 883enable_option_checking 884enable_silent_rules 885enable_dependency_tracking 886enable_shared 887enable_static 888with_pic 889enable_fast_install 890with_gnu_ld 891with_sysroot 892enable_libtool_lock 893enable_selective_werror 894enable_strict_compilation 895enable_devel_docs 896with_xmlto 897with_fop 898enable_freetype 899with_freetype_config 900with_bzip2 901enable_builtins 902enable_pcfformat 903enable_bdfformat 904enable_snfformat 905enable_fc 906enable_unix_transport 907enable_tcp_transport 908enable_ipv6 909enable_local_transport 910' 911 ac_precious_vars='build_alias 912host_alias 913target_alias 914CC 915CFLAGS 916LDFLAGS 917LIBS 918CPPFLAGS 919CPP 920PKG_CONFIG 921PKG_CONFIG_PATH 922PKG_CONFIG_LIBDIR 923XMLTO 924FOP 925FREETYPE_CFLAGS 926FREETYPE_LIBS 927XFONT_CFLAGS 928XFONT_LIBS' 929 930 931# Initialize some variables set by options. 932ac_init_help= 933ac_init_version=false 934ac_unrecognized_opts= 935ac_unrecognized_sep= 936# The variables have the same names as the options, with 937# dashes changed to underlines. 938cache_file=/dev/null 939exec_prefix=NONE 940no_create= 941no_recursion= 942prefix=NONE 943program_prefix=NONE 944program_suffix=NONE 945program_transform_name=s,x,x, 946silent= 947site= 948srcdir= 949verbose= 950x_includes=NONE 951x_libraries=NONE 952 953# Installation directory options. 954# These are left unexpanded so users can "make install exec_prefix=/foo" 955# and all the variables that are supposed to be based on exec_prefix 956# by default will actually change. 957# Use braces instead of parens because sh, perl, etc. also accept them. 958# (The list follows the same order as the GNU Coding Standards.) 959bindir='${exec_prefix}/bin' 960sbindir='${exec_prefix}/sbin' 961libexecdir='${exec_prefix}/libexec' 962datarootdir='${prefix}/share' 963datadir='${datarootdir}' 964sysconfdir='${prefix}/etc' 965sharedstatedir='${prefix}/com' 966localstatedir='${prefix}/var' 967runstatedir='${localstatedir}/run' 968includedir='${prefix}/include' 969oldincludedir='/usr/include' 970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 971infodir='${datarootdir}/info' 972htmldir='${docdir}' 973dvidir='${docdir}' 974pdfdir='${docdir}' 975psdir='${docdir}' 976libdir='${exec_prefix}/lib' 977localedir='${datarootdir}/locale' 978mandir='${datarootdir}/man' 979 980ac_prev= 981ac_dashdash= 982for ac_option 983do 984 # If the previous option needs an argument, assign it. 985 if test -n "$ac_prev"; then 986 eval $ac_prev=\$ac_option 987 ac_prev= 988 continue 989 fi 990 991 case $ac_option in 992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 993 *=) ac_optarg= ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 as_fn_error $? "invalid feature name: $ac_useropt" 1040 ac_useropt_orig=$ac_useropt 1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1042 case $ac_user_opts in 1043 *" 1044"enable_$ac_useropt" 1045"*) ;; 1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1047 ac_unrecognized_sep=', ';; 1048 esac 1049 eval enable_$ac_useropt=no ;; 1050 1051 -docdir | --docdir | --docdi | --doc | --do) 1052 ac_prev=docdir ;; 1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1054 docdir=$ac_optarg ;; 1055 1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1057 ac_prev=dvidir ;; 1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1059 dvidir=$ac_optarg ;; 1060 1061 -enable-* | --enable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 as_fn_error $? "invalid feature name: $ac_useropt" 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=\$ac_optarg ;; 1076 1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1079 | --exec | --exe | --ex) 1080 ac_prev=exec_prefix ;; 1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1083 | --exec=* | --exe=* | --ex=*) 1084 exec_prefix=$ac_optarg ;; 1085 1086 -gas | --gas | --ga | --g) 1087 # Obsolete; use --with-gas. 1088 with_gas=yes ;; 1089 1090 -help | --help | --hel | --he | -h) 1091 ac_init_help=long ;; 1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1093 ac_init_help=recursive ;; 1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1095 ac_init_help=short ;; 1096 1097 -host | --host | --hos | --ho) 1098 ac_prev=host_alias ;; 1099 -host=* | --host=* | --hos=* | --ho=*) 1100 host_alias=$ac_optarg ;; 1101 1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1103 ac_prev=htmldir ;; 1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1105 | --ht=*) 1106 htmldir=$ac_optarg ;; 1107 1108 -includedir | --includedir | --includedi | --included | --include \ 1109 | --includ | --inclu | --incl | --inc) 1110 ac_prev=includedir ;; 1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1112 | --includ=* | --inclu=* | --incl=* | --inc=*) 1113 includedir=$ac_optarg ;; 1114 1115 -infodir | --infodir | --infodi | --infod | --info | --inf) 1116 ac_prev=infodir ;; 1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1118 infodir=$ac_optarg ;; 1119 1120 -libdir | --libdir | --libdi | --libd) 1121 ac_prev=libdir ;; 1122 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1123 libdir=$ac_optarg ;; 1124 1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1126 | --libexe | --libex | --libe) 1127 ac_prev=libexecdir ;; 1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1129 | --libexe=* | --libex=* | --libe=*) 1130 libexecdir=$ac_optarg ;; 1131 1132 -localedir | --localedir | --localedi | --localed | --locale) 1133 ac_prev=localedir ;; 1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1135 localedir=$ac_optarg ;; 1136 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1138 | --localstate | --localstat | --localsta | --localst | --locals) 1139 ac_prev=localstatedir ;; 1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1142 localstatedir=$ac_optarg ;; 1143 1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1145 ac_prev=mandir ;; 1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1147 mandir=$ac_optarg ;; 1148 1149 -nfp | --nfp | --nf) 1150 # Obsolete; use --without-fp. 1151 with_fp=no ;; 1152 1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1154 | --no-cr | --no-c | -n) 1155 no_create=yes ;; 1156 1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1159 no_recursion=yes ;; 1160 1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1163 | --oldin | --oldi | --old | --ol | --o) 1164 ac_prev=oldincludedir ;; 1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1168 oldincludedir=$ac_optarg ;; 1169 1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1171 ac_prev=prefix ;; 1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1173 prefix=$ac_optarg ;; 1174 1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1176 | --program-pre | --program-pr | --program-p) 1177 ac_prev=program_prefix ;; 1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1180 program_prefix=$ac_optarg ;; 1181 1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1183 | --program-suf | --program-su | --program-s) 1184 ac_prev=program_suffix ;; 1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1187 program_suffix=$ac_optarg ;; 1188 1189 -program-transform-name | --program-transform-name \ 1190 | --program-transform-nam | --program-transform-na \ 1191 | --program-transform-n | --program-transform- \ 1192 | --program-transform | --program-transfor \ 1193 | --program-transfo | --program-transf \ 1194 | --program-trans | --program-tran \ 1195 | --progr-tra | --program-tr | --program-t) 1196 ac_prev=program_transform_name ;; 1197 -program-transform-name=* | --program-transform-name=* \ 1198 | --program-transform-nam=* | --program-transform-na=* \ 1199 | --program-transform-n=* | --program-transform-=* \ 1200 | --program-transform=* | --program-transfor=* \ 1201 | --program-transfo=* | --program-transf=* \ 1202 | --program-trans=* | --program-tran=* \ 1203 | --progr-tra=* | --program-tr=* | --program-t=*) 1204 program_transform_name=$ac_optarg ;; 1205 1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1207 ac_prev=pdfdir ;; 1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1209 pdfdir=$ac_optarg ;; 1210 1211 -psdir | --psdir | --psdi | --psd | --ps) 1212 ac_prev=psdir ;; 1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1214 psdir=$ac_optarg ;; 1215 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 silent=yes ;; 1219 1220 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1221 | --runstate | --runstat | --runsta | --runst | --runs \ 1222 | --run | --ru | --r) 1223 ac_prev=runstatedir ;; 1224 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1225 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1226 | --run=* | --ru=* | --r=*) 1227 runstatedir=$ac_optarg ;; 1228 1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1230 ac_prev=sbindir ;; 1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1232 | --sbi=* | --sb=*) 1233 sbindir=$ac_optarg ;; 1234 1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1237 | --sharedst | --shareds | --shared | --share | --shar \ 1238 | --sha | --sh) 1239 ac_prev=sharedstatedir ;; 1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1243 | --sha=* | --sh=*) 1244 sharedstatedir=$ac_optarg ;; 1245 1246 -site | --site | --sit) 1247 ac_prev=site ;; 1248 -site=* | --site=* | --sit=*) 1249 site=$ac_optarg ;; 1250 1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1252 ac_prev=srcdir ;; 1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1254 srcdir=$ac_optarg ;; 1255 1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1257 | --syscon | --sysco | --sysc | --sys | --sy) 1258 ac_prev=sysconfdir ;; 1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1261 sysconfdir=$ac_optarg ;; 1262 1263 -target | --target | --targe | --targ | --tar | --ta | --t) 1264 ac_prev=target_alias ;; 1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1266 target_alias=$ac_optarg ;; 1267 1268 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1269 verbose=yes ;; 1270 1271 -version | --version | --versio | --versi | --vers | -V) 1272 ac_init_version=: ;; 1273 1274 -with-* | --with-*) 1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1276 # Reject names that are not valid shell variable names. 1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1278 as_fn_error $? "invalid package name: $ac_useropt" 1279 ac_useropt_orig=$ac_useropt 1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1281 case $ac_user_opts in 1282 *" 1283"with_$ac_useropt" 1284"*) ;; 1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1286 ac_unrecognized_sep=', ';; 1287 esac 1288 eval with_$ac_useropt=\$ac_optarg ;; 1289 1290 -without-* | --without-*) 1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1292 # Reject names that are not valid shell variable names. 1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1294 as_fn_error $? "invalid package name: $ac_useropt" 1295 ac_useropt_orig=$ac_useropt 1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1297 case $ac_user_opts in 1298 *" 1299"with_$ac_useropt" 1300"*) ;; 1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1302 ac_unrecognized_sep=', ';; 1303 esac 1304 eval with_$ac_useropt=no ;; 1305 1306 --x) 1307 # Obsolete; use --with-x. 1308 with_x=yes ;; 1309 1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1311 | --x-incl | --x-inc | --x-in | --x-i) 1312 ac_prev=x_includes ;; 1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1315 x_includes=$ac_optarg ;; 1316 1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1319 ac_prev=x_libraries ;; 1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1322 x_libraries=$ac_optarg ;; 1323 1324 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1325Try \`$0 --help' for more information" 1326 ;; 1327 1328 *=*) 1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1330 # Reject names that are not valid shell variable names. 1331 case $ac_envvar in #( 1332 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1333 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1334 esac 1335 eval $ac_envvar=\$ac_optarg 1336 export $ac_envvar ;; 1337 1338 *) 1339 # FIXME: should be removed in autoconf 3.0. 1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1343 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1344 ;; 1345 1346 esac 1347done 1348 1349if test -n "$ac_prev"; then 1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1351 as_fn_error $? "missing argument to $ac_option" 1352fi 1353 1354if test -n "$ac_unrecognized_opts"; then 1355 case $enable_option_checking in 1356 no) ;; 1357 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1359 esac 1360fi 1361 1362# Check all directory arguments for consistency. 1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1364 datadir sysconfdir sharedstatedir localstatedir includedir \ 1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1366 libdir localedir mandir runstatedir 1367do 1368 eval ac_val=\$$ac_var 1369 # Remove trailing slashes. 1370 case $ac_val in 1371 */ ) 1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1373 eval $ac_var=\$ac_val;; 1374 esac 1375 # Be sure to have absolute directory names. 1376 case $ac_val in 1377 [\\/$]* | ?:[\\/]* ) continue;; 1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1379 esac 1380 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1381done 1382 1383# There might be people who depend on the old broken behavior: `$host' 1384# used to hold the argument of --host etc. 1385# FIXME: To remove some day. 1386build=$build_alias 1387host=$host_alias 1388target=$target_alias 1389 1390# FIXME: To remove some day. 1391if test "x$host_alias" != x; then 1392 if test "x$build_alias" = x; then 1393 cross_compiling=maybe 1394 elif test "x$build_alias" != "x$host_alias"; then 1395 cross_compiling=yes 1396 fi 1397fi 1398 1399ac_tool_prefix= 1400test -n "$host_alias" && ac_tool_prefix=$host_alias- 1401 1402test "$silent" = yes && exec 6>/dev/null 1403 1404 1405ac_pwd=`pwd` && test -n "$ac_pwd" && 1406ac_ls_di=`ls -di .` && 1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1408 as_fn_error $? "working directory cannot be determined" 1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1410 as_fn_error $? "pwd does not report name of working directory" 1411 1412 1413# Find the source files, if location was not specified. 1414if test -z "$srcdir"; then 1415 ac_srcdir_defaulted=yes 1416 # Try the directory containing this script, then the parent directory. 1417 ac_confdir=`$as_dirname -- "$as_myself" || 1418$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1419 X"$as_myself" : 'X\(//\)[^/]' \| \ 1420 X"$as_myself" : 'X\(//\)$' \| \ 1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1422$as_echo X"$as_myself" | 1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)[^/].*/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)$/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\).*/{ 1436 s//\1/ 1437 q 1438 } 1439 s/.*/./; q'` 1440 srcdir=$ac_confdir 1441 if test ! -r "$srcdir/$ac_unique_file"; then 1442 srcdir=.. 1443 fi 1444else 1445 ac_srcdir_defaulted=no 1446fi 1447if test ! -r "$srcdir/$ac_unique_file"; then 1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1450fi 1451ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1452ac_abs_confdir=`( 1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1454 pwd)` 1455# When building in place, set srcdir=. 1456if test "$ac_abs_confdir" = "$ac_pwd"; then 1457 srcdir=. 1458fi 1459# Remove unnecessary trailing slashes from srcdir. 1460# Double slashes in file names in object file debugging info 1461# mess up M-x gdb in Emacs. 1462case $srcdir in 1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1464esac 1465for ac_var in $ac_precious_vars; do 1466 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1467 eval ac_env_${ac_var}_value=\$${ac_var} 1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1469 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1470done 1471 1472# 1473# Report the --help message. 1474# 1475if test "$ac_init_help" = "long"; then 1476 # Omit some internal or obsolete options to make the list less imposing. 1477 # This message is too long to be a string in the A/UX 3.1 sh. 1478 cat <<_ACEOF 1479\`configure' configures libXfont2 2.0.1 to adapt to many kinds of systems. 1480 1481Usage: $0 [OPTION]... [VAR=VALUE]... 1482 1483To assign environment variables (e.g., CC, CFLAGS...), specify them as 1484VAR=VALUE. See below for descriptions of some of the useful variables. 1485 1486Defaults for the options are specified in brackets. 1487 1488Configuration: 1489 -h, --help display this help and exit 1490 --help=short display options specific to this package 1491 --help=recursive display the short help of all the included packages 1492 -V, --version display version information and exit 1493 -q, --quiet, --silent do not print \`checking ...' messages 1494 --cache-file=FILE cache test results in FILE [disabled] 1495 -C, --config-cache alias for \`--cache-file=config.cache' 1496 -n, --no-create do not create output files 1497 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1498 1499Installation directories: 1500 --prefix=PREFIX install architecture-independent files in PREFIX 1501 [$ac_default_prefix] 1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1503 [PREFIX] 1504 1505By default, \`make install' will install all the files in 1506\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1507an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1508for instance \`--prefix=\$HOME'. 1509 1510For better control, use the options below. 1511 1512Fine tuning of the installation directories: 1513 --bindir=DIR user executables [EPREFIX/bin] 1514 --sbindir=DIR system admin executables [EPREFIX/sbin] 1515 --libexecdir=DIR program executables [EPREFIX/libexec] 1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1519 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1520 --libdir=DIR object code libraries [EPREFIX/lib] 1521 --includedir=DIR C header files [PREFIX/include] 1522 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1525 --infodir=DIR info documentation [DATAROOTDIR/info] 1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1527 --mandir=DIR man documentation [DATAROOTDIR/man] 1528 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont2] 1529 --htmldir=DIR html documentation [DOCDIR] 1530 --dvidir=DIR dvi documentation [DOCDIR] 1531 --pdfdir=DIR pdf documentation [DOCDIR] 1532 --psdir=DIR ps documentation [DOCDIR] 1533_ACEOF 1534 1535 cat <<\_ACEOF 1536 1537Program names: 1538 --program-prefix=PREFIX prepend PREFIX to installed program names 1539 --program-suffix=SUFFIX append SUFFIX to installed program names 1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1541 1542System types: 1543 --build=BUILD configure for building on BUILD [guessed] 1544 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1545_ACEOF 1546fi 1547 1548if test -n "$ac_init_help"; then 1549 case $ac_init_help in 1550 short | recursive ) echo "Configuration of libXfont2 2.0.1:";; 1551 esac 1552 cat <<\_ACEOF 1553 1554Optional Features: 1555 --disable-option-checking ignore unrecognized --enable/--with options 1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1558 --enable-silent-rules less verbose build output (undo: "make V=1") 1559 --disable-silent-rules verbose build output (undo: "make V=0") 1560 --enable-dependency-tracking 1561 do not reject slow dependency extractors 1562 --disable-dependency-tracking 1563 speeds up one-time build 1564 --enable-shared[=PKGS] build shared libraries [default=yes] 1565 --enable-static[=PKGS] build static libraries [default=yes] 1566 --enable-fast-install[=PKGS] 1567 optimize for fast installation [default=yes] 1568 --disable-libtool-lock avoid locking (might break parallel builds) 1569 --disable-selective-werror 1570 Turn off selective compiler errors. (default: 1571 enabled) 1572 --enable-strict-compilation 1573 Enable all warnings from compiler and make them 1574 errors (default: disabled) 1575 --enable-devel-docs Enable building the developer documentation 1576 (default: yes) 1577 --disable-freetype Build freetype backend (default: enabled) 1578 --disable-builtins Support builtin fonts (default: enabled) 1579 --disable-pcfformat Support PCF format bitmap fonts (default: enabled) 1580 --disable-bdfformat Support BDF format bitmap fonts (default: enabled) 1581 --enable-snfformat Support SNF format bitmap fonts (default: disabled) 1582 --disable-fc Support connections to xfs servers (default: 1583 enabled) 1584 --enable-unix-transport Enable UNIX domain socket transport 1585 --enable-tcp-transport Enable TCP socket transport 1586 --enable-ipv6 Enable IPv6 support 1587 --enable-local-transport 1588 Enable os-specific local transport 1589 1590Optional Packages: 1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1593 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1594 both] 1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1596 --with-sysroot=DIR Search for dependent libraries within DIR 1597 (or the compiler's sysroot if not specified). 1598 --with-xmlto Use xmlto to regenerate documentation (default: 1599 auto) 1600 --with-fop Use fop to regenerate documentation (default: auto) 1601 --with-freetype-config=PROG 1602 Use FreeType configuration program PROG 1603 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts 1604 (default: no) 1605 1606Some influential environment variables: 1607 CC C compiler command 1608 CFLAGS C compiler flags 1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1610 nonstandard directory <lib dir> 1611 LIBS libraries to pass to the linker, e.g. -l<library> 1612 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1613 you have headers in a nonstandard directory <include dir> 1614 CPP C preprocessor 1615 PKG_CONFIG path to pkg-config utility 1616 PKG_CONFIG_PATH 1617 directories to add to pkg-config's search path 1618 PKG_CONFIG_LIBDIR 1619 path overriding pkg-config's built-in search path 1620 XMLTO Path to xmlto command 1621 FOP Path to fop command 1622 FREETYPE_CFLAGS 1623 C compiler flags for FREETYPE, overriding pkg-config 1624 FREETYPE_LIBS 1625 linker flags for FREETYPE, overriding pkg-config 1626 XFONT_CFLAGS 1627 C compiler flags for XFONT, overriding pkg-config 1628 XFONT_LIBS linker flags for XFONT, overriding pkg-config 1629 1630Use these variables to override the choices made by `configure' or to help 1631it to find libraries and programs with nonstandard names/locations. 1632 1633Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1634_ACEOF 1635ac_status=$? 1636fi 1637 1638if test "$ac_init_help" = "recursive"; then 1639 # If there are subdirs, report their specific --help. 1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1641 test -d "$ac_dir" || 1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1643 continue 1644 ac_builddir=. 1645 1646case "$ac_dir" in 1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1648*) 1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1650 # A ".." for each directory in $ac_dir_suffix. 1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1652 case $ac_top_builddir_sub in 1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1655 esac ;; 1656esac 1657ac_abs_top_builddir=$ac_pwd 1658ac_abs_builddir=$ac_pwd$ac_dir_suffix 1659# for backward compatibility: 1660ac_top_builddir=$ac_top_build_prefix 1661 1662case $srcdir in 1663 .) # We are building in place. 1664 ac_srcdir=. 1665 ac_top_srcdir=$ac_top_builddir_sub 1666 ac_abs_top_srcdir=$ac_pwd ;; 1667 [\\/]* | ?:[\\/]* ) # Absolute name. 1668 ac_srcdir=$srcdir$ac_dir_suffix; 1669 ac_top_srcdir=$srcdir 1670 ac_abs_top_srcdir=$srcdir ;; 1671 *) # Relative name. 1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1673 ac_top_srcdir=$ac_top_build_prefix$srcdir 1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1675esac 1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1677 1678 cd "$ac_dir" || { ac_status=$?; continue; } 1679 # Check for guested configure. 1680 if test -f "$ac_srcdir/configure.gnu"; then 1681 echo && 1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1683 elif test -f "$ac_srcdir/configure"; then 1684 echo && 1685 $SHELL "$ac_srcdir/configure" --help=recursive 1686 else 1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1688 fi || ac_status=$? 1689 cd "$ac_pwd" || { ac_status=$?; break; } 1690 done 1691fi 1692 1693test -n "$ac_init_help" && exit $ac_status 1694if $ac_init_version; then 1695 cat <<\_ACEOF 1696libXfont2 configure 2.0.1 1697generated by GNU Autoconf 2.69 1698 1699Copyright (C) 2012 Free Software Foundation, Inc. 1700This configure script is free software; the Free Software Foundation 1701gives unlimited permission to copy, distribute and modify it. 1702_ACEOF 1703 exit 1704fi 1705 1706## ------------------------ ## 1707## Autoconf initialization. ## 1708## ------------------------ ## 1709 1710# ac_fn_c_try_compile LINENO 1711# -------------------------- 1712# Try to compile conftest.$ac_ext, and return whether this succeeded. 1713ac_fn_c_try_compile () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 rm -f conftest.$ac_objext 1717 if { { ac_try="$ac_compile" 1718case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_compile") 2>conftest.err 1725 ac_status=$? 1726 if test -s conftest.err; then 1727 grep -v '^ *+' conftest.err >conftest.er1 1728 cat conftest.er1 >&5 1729 mv -f conftest.er1 conftest.err 1730 fi 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { 1733 test -z "$ac_c_werror_flag" || 1734 test ! -s conftest.err 1735 } && test -s conftest.$ac_objext; then : 1736 ac_retval=0 1737else 1738 $as_echo "$as_me: failed program was:" >&5 1739sed 's/^/| /' conftest.$ac_ext >&5 1740 1741 ac_retval=1 1742fi 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_compile 1747 1748# ac_fn_c_try_cpp LINENO 1749# ---------------------- 1750# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1751ac_fn_c_try_cpp () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 if { { ac_try="$ac_cpp conftest.$ac_ext" 1755case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1762 ac_status=$? 1763 if test -s conftest.err; then 1764 grep -v '^ *+' conftest.err >conftest.er1 1765 cat conftest.er1 >&5 1766 mv -f conftest.er1 conftest.err 1767 fi 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; } > conftest.i && { 1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1771 test ! -s conftest.err 1772 }; then : 1773 ac_retval=0 1774else 1775 $as_echo "$as_me: failed program was:" >&5 1776sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=1 1779fi 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_cpp 1784 1785# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1786# ------------------------------------------------------- 1787# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1788# the include files in INCLUDES and setting the cache variable VAR 1789# accordingly. 1790ac_fn_c_check_header_mongrel () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 if eval \${$3+:} false; then : 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798fi 1799eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801$as_echo "$ac_res" >&6; } 1802else 1803 # Is the header compilable? 1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1805$as_echo_n "checking $2 usability... " >&6; } 1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808$4 1809#include <$2> 1810_ACEOF 1811if ac_fn_c_try_compile "$LINENO"; then : 1812 ac_header_compiler=yes 1813else 1814 ac_header_compiler=no 1815fi 1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1818$as_echo "$ac_header_compiler" >&6; } 1819 1820# Is the header present? 1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1822$as_echo_n "checking $2 presence... " >&6; } 1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825#include <$2> 1826_ACEOF 1827if ac_fn_c_try_cpp "$LINENO"; then : 1828 ac_header_preproc=yes 1829else 1830 ac_header_preproc=no 1831fi 1832rm -f conftest.err conftest.i conftest.$ac_ext 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1834$as_echo "$ac_header_preproc" >&6; } 1835 1836# So? What about this header? 1837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1838 yes:no: ) 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1840$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1843 ;; 1844 no:yes:* ) 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1846$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1848$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1850$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1852$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1855( $as_echo "## ---------------------------------------------------------------------- ## 1856## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1857## ---------------------------------------------------------------------- ##" 1858 ) | sed "s/^/$as_me: WARNING: /" >&2 1859 ;; 1860esac 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1862$as_echo_n "checking for $2... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 eval "$3=\$ac_header_compiler" 1867fi 1868eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870$as_echo "$ac_res" >&6; } 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_header_mongrel 1875 1876# ac_fn_c_try_run LINENO 1877# ---------------------- 1878# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1879# that executables *can* be run. 1880ac_fn_c_try_run () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 if { { ac_try="$ac_link" 1884case "(($ac_try" in 1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1886 *) ac_try_echo=$ac_try;; 1887esac 1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1889$as_echo "$ac_try_echo"; } >&5 1890 (eval "$ac_link") 2>&5 1891 ac_status=$? 1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1894 { { case "(($ac_try" in 1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1896 *) ac_try_echo=$ac_try;; 1897esac 1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1899$as_echo "$ac_try_echo"; } >&5 1900 (eval "$ac_try") 2>&5 1901 ac_status=$? 1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903 test $ac_status = 0; }; }; then : 1904 ac_retval=0 1905else 1906 $as_echo "$as_me: program exited with status $ac_status" >&5 1907 $as_echo "$as_me: failed program was:" >&5 1908sed 's/^/| /' conftest.$ac_ext >&5 1909 1910 ac_retval=$ac_status 1911fi 1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1914 as_fn_set_status $ac_retval 1915 1916} # ac_fn_c_try_run 1917 1918# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1919# ------------------------------------------------------- 1920# Tests whether HEADER exists and can be compiled using the include files in 1921# INCLUDES, setting the cache variable VAR accordingly. 1922ac_fn_c_check_header_compile () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1926$as_echo_n "checking for $2... " >&6; } 1927if eval \${$3+:} false; then : 1928 $as_echo_n "(cached) " >&6 1929else 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932$4 1933#include <$2> 1934_ACEOF 1935if ac_fn_c_try_compile "$LINENO"; then : 1936 eval "$3=yes" 1937else 1938 eval "$3=no" 1939fi 1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1941fi 1942eval ac_res=\$$3 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1944$as_echo "$ac_res" >&6; } 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 1947} # ac_fn_c_check_header_compile 1948 1949# ac_fn_c_try_link LINENO 1950# ----------------------- 1951# Try to link conftest.$ac_ext, and return whether this succeeded. 1952ac_fn_c_try_link () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 rm -f conftest.$ac_objext conftest$ac_exeext 1956 if { { ac_try="$ac_link" 1957case "(($ac_try" in 1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1959 *) ac_try_echo=$ac_try;; 1960esac 1961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1962$as_echo "$ac_try_echo"; } >&5 1963 (eval "$ac_link") 2>conftest.err 1964 ac_status=$? 1965 if test -s conftest.err; then 1966 grep -v '^ *+' conftest.err >conftest.er1 1967 cat conftest.er1 >&5 1968 mv -f conftest.er1 conftest.err 1969 fi 1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1971 test $ac_status = 0; } && { 1972 test -z "$ac_c_werror_flag" || 1973 test ! -s conftest.err 1974 } && test -s conftest$ac_exeext && { 1975 test "$cross_compiling" = yes || 1976 test -x conftest$ac_exeext 1977 }; then : 1978 ac_retval=0 1979else 1980 $as_echo "$as_me: failed program was:" >&5 1981sed 's/^/| /' conftest.$ac_ext >&5 1982 1983 ac_retval=1 1984fi 1985 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1986 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1987 # interfere with the next link command; also delete a directory that is 1988 # left behind by Apple's compiler. We do this before executing the actions. 1989 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1991 as_fn_set_status $ac_retval 1992 1993} # ac_fn_c_try_link 1994 1995# ac_fn_c_check_func LINENO FUNC VAR 1996# ---------------------------------- 1997# Tests whether FUNC exists, setting the cache variable VAR accordingly 1998ac_fn_c_check_func () 1999{ 2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2002$as_echo_n "checking for $2... " >&6; } 2003if eval \${$3+:} false; then : 2004 $as_echo_n "(cached) " >&6 2005else 2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2007/* end confdefs.h. */ 2008/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2009 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2010#define $2 innocuous_$2 2011 2012/* System header to define __stub macros and hopefully few prototypes, 2013 which can conflict with char $2 (); below. 2014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2015 <limits.h> exists even on freestanding compilers. */ 2016 2017#ifdef __STDC__ 2018# include <limits.h> 2019#else 2020# include <assert.h> 2021#endif 2022 2023#undef $2 2024 2025/* Override any GCC internal prototype to avoid an error. 2026 Use char because int might match the return type of a GCC 2027 builtin and then its argument prototype would still apply. */ 2028#ifdef __cplusplus 2029extern "C" 2030#endif 2031char $2 (); 2032/* The GNU C library defines this for functions which it implements 2033 to always fail with ENOSYS. Some functions are actually named 2034 something starting with __ and the normal name is an alias. */ 2035#if defined __stub_$2 || defined __stub___$2 2036choke me 2037#endif 2038 2039int 2040main () 2041{ 2042return $2 (); 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_link "$LINENO"; then : 2048 eval "$3=yes" 2049else 2050 eval "$3=no" 2051fi 2052rm -f core conftest.err conftest.$ac_objext \ 2053 conftest$ac_exeext conftest.$ac_ext 2054fi 2055eval ac_res=\$$3 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2057$as_echo "$ac_res" >&6; } 2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2059 2060} # ac_fn_c_check_func 2061 2062# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2063# --------------------------------------------- 2064# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2065# accordingly. 2066ac_fn_c_check_decl () 2067{ 2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2069 as_decl_name=`echo $2|sed 's/ *(.*//'` 2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2072$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2073if eval \${$3+:} false; then : 2074 $as_echo_n "(cached) " >&6 2075else 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2077/* end confdefs.h. */ 2078$4 2079int 2080main () 2081{ 2082#ifndef $as_decl_name 2083#ifdef __cplusplus 2084 (void) $as_decl_use; 2085#else 2086 (void) $as_decl_name; 2087#endif 2088#endif 2089 2090 ; 2091 return 0; 2092} 2093_ACEOF 2094if ac_fn_c_try_compile "$LINENO"; then : 2095 eval "$3=yes" 2096else 2097 eval "$3=no" 2098fi 2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2100fi 2101eval ac_res=\$$3 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2103$as_echo "$ac_res" >&6; } 2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2105 2106} # ac_fn_c_check_decl 2107 2108# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2109# ---------------------------------------------------- 2110# Tries to find if the field MEMBER exists in type AGGR, after including 2111# INCLUDES, setting cache variable VAR accordingly. 2112ac_fn_c_check_member () 2113{ 2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2116$as_echo_n "checking for $2.$3... " >&6; } 2117if eval \${$4+:} false; then : 2118 $as_echo_n "(cached) " >&6 2119else 2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2121/* end confdefs.h. */ 2122$5 2123int 2124main () 2125{ 2126static $2 ac_aggr; 2127if (ac_aggr.$3) 2128return 0; 2129 ; 2130 return 0; 2131} 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 eval "$4=yes" 2135else 2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2137/* end confdefs.h. */ 2138$5 2139int 2140main () 2141{ 2142static $2 ac_aggr; 2143if (sizeof ac_aggr.$3) 2144return 0; 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_compile "$LINENO"; then : 2150 eval "$4=yes" 2151else 2152 eval "$4=no" 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2157fi 2158eval ac_res=\$$4 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2160$as_echo "$ac_res" >&6; } 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_c_check_member 2164 2165# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2166# ------------------------------------------- 2167# Tests whether TYPE exists after having included INCLUDES, setting cache 2168# variable VAR accordingly. 2169ac_fn_c_check_type () 2170{ 2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2173$as_echo_n "checking for $2... " >&6; } 2174if eval \${$3+:} false; then : 2175 $as_echo_n "(cached) " >&6 2176else 2177 eval "$3=no" 2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$4 2181int 2182main () 2183{ 2184if (sizeof ($2)) 2185 return 0; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO"; then : 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194int 2195main () 2196{ 2197if (sizeof (($2))) 2198 return 0; 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 2205else 2206 eval "$3=yes" 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211fi 2212eval ac_res=\$$3 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2214$as_echo "$ac_res" >&6; } 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 2217} # ac_fn_c_check_type 2218cat >config.log <<_ACEOF 2219This file contains any messages produced by compilers while 2220running configure, to aid debugging if configure makes a mistake. 2221 2222It was created by libXfont2 $as_me 2.0.1, which was 2223generated by GNU Autoconf 2.69. Invocation command line was 2224 2225 $ $0 $@ 2226 2227_ACEOF 2228exec 5>>config.log 2229{ 2230cat <<_ASUNAME 2231## --------- ## 2232## Platform. ## 2233## --------- ## 2234 2235hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2236uname -m = `(uname -m) 2>/dev/null || echo unknown` 2237uname -r = `(uname -r) 2>/dev/null || echo unknown` 2238uname -s = `(uname -s) 2>/dev/null || echo unknown` 2239uname -v = `(uname -v) 2>/dev/null || echo unknown` 2240 2241/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2242/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2243 2244/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2245/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2246/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2247/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2248/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2249/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2250/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2251 2252_ASUNAME 2253 2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2255for as_dir in $PATH 2256do 2257 IFS=$as_save_IFS 2258 test -z "$as_dir" && as_dir=. 2259 $as_echo "PATH: $as_dir" 2260 done 2261IFS=$as_save_IFS 2262 2263} >&5 2264 2265cat >&5 <<_ACEOF 2266 2267 2268## ----------- ## 2269## Core tests. ## 2270## ----------- ## 2271 2272_ACEOF 2273 2274 2275# Keep a trace of the command line. 2276# Strip out --no-create and --no-recursion so they do not pile up. 2277# Strip out --silent because we don't want to record it for future runs. 2278# Also quote any args containing shell meta-characters. 2279# Make two passes to allow for proper duplicate-argument suppression. 2280ac_configure_args= 2281ac_configure_args0= 2282ac_configure_args1= 2283ac_must_keep_next=false 2284for ac_pass in 1 2 2285do 2286 for ac_arg 2287 do 2288 case $ac_arg in 2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2291 | -silent | --silent | --silen | --sile | --sil) 2292 continue ;; 2293 *\'*) 2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2295 esac 2296 case $ac_pass in 2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2298 2) 2299 as_fn_append ac_configure_args1 " '$ac_arg'" 2300 if test $ac_must_keep_next = true; then 2301 ac_must_keep_next=false # Got value, back to normal. 2302 else 2303 case $ac_arg in 2304 *=* | --config-cache | -C | -disable-* | --disable-* \ 2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2307 | -with-* | --with-* | -without-* | --without-* | --x) 2308 case "$ac_configure_args0 " in 2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2310 esac 2311 ;; 2312 -* ) ac_must_keep_next=true ;; 2313 esac 2314 fi 2315 as_fn_append ac_configure_args " '$ac_arg'" 2316 ;; 2317 esac 2318 done 2319done 2320{ ac_configure_args0=; unset ac_configure_args0;} 2321{ ac_configure_args1=; unset ac_configure_args1;} 2322 2323# When interrupted or exit'd, cleanup temporary files, and complete 2324# config.log. We remove comments because anyway the quotes in there 2325# would cause problems or look ugly. 2326# WARNING: Use '\'' to represent an apostrophe within the trap. 2327# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2328trap 'exit_status=$? 2329 # Save into config.log some information that might help in debugging. 2330 { 2331 echo 2332 2333 $as_echo "## ---------------- ## 2334## Cache variables. ## 2335## ---------------- ##" 2336 echo 2337 # The following way of writing the cache mishandles newlines in values, 2338( 2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2340 eval ac_val=\$$ac_var 2341 case $ac_val in #( 2342 *${as_nl}*) 2343 case $ac_var in #( 2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2345$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2346 esac 2347 case $ac_var in #( 2348 _ | IFS | as_nl) ;; #( 2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2350 *) { eval $ac_var=; unset $ac_var;} ;; 2351 esac ;; 2352 esac 2353 done 2354 (set) 2>&1 | 2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2356 *${as_nl}ac_space=\ *) 2357 sed -n \ 2358 "s/'\''/'\''\\\\'\'''\''/g; 2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2360 ;; #( 2361 *) 2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2363 ;; 2364 esac | 2365 sort 2366) 2367 echo 2368 2369 $as_echo "## ----------------- ## 2370## Output variables. ## 2371## ----------------- ##" 2372 echo 2373 for ac_var in $ac_subst_vars 2374 do 2375 eval ac_val=\$$ac_var 2376 case $ac_val in 2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2378 esac 2379 $as_echo "$ac_var='\''$ac_val'\''" 2380 done | sort 2381 echo 2382 2383 if test -n "$ac_subst_files"; then 2384 $as_echo "## ------------------- ## 2385## File substitutions. ## 2386## ------------------- ##" 2387 echo 2388 for ac_var in $ac_subst_files 2389 do 2390 eval ac_val=\$$ac_var 2391 case $ac_val in 2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2393 esac 2394 $as_echo "$ac_var='\''$ac_val'\''" 2395 done | sort 2396 echo 2397 fi 2398 2399 if test -s confdefs.h; then 2400 $as_echo "## ----------- ## 2401## confdefs.h. ## 2402## ----------- ##" 2403 echo 2404 cat confdefs.h 2405 echo 2406 fi 2407 test "$ac_signal" != 0 && 2408 $as_echo "$as_me: caught signal $ac_signal" 2409 $as_echo "$as_me: exit $exit_status" 2410 } >&5 2411 rm -f core *.core core.conftest.* && 2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2413 exit $exit_status 2414' 0 2415for ac_signal in 1 2 13 15; do 2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2417done 2418ac_signal=0 2419 2420# confdefs.h avoids OS command line length limits that DEFS can exceed. 2421rm -f -r conftest* confdefs.h 2422 2423$as_echo "/* confdefs.h */" > confdefs.h 2424 2425# Predefined preprocessor variables. 2426 2427cat >>confdefs.h <<_ACEOF 2428#define PACKAGE_NAME "$PACKAGE_NAME" 2429_ACEOF 2430 2431cat >>confdefs.h <<_ACEOF 2432#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2433_ACEOF 2434 2435cat >>confdefs.h <<_ACEOF 2436#define PACKAGE_VERSION "$PACKAGE_VERSION" 2437_ACEOF 2438 2439cat >>confdefs.h <<_ACEOF 2440#define PACKAGE_STRING "$PACKAGE_STRING" 2441_ACEOF 2442 2443cat >>confdefs.h <<_ACEOF 2444#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2445_ACEOF 2446 2447cat >>confdefs.h <<_ACEOF 2448#define PACKAGE_URL "$PACKAGE_URL" 2449_ACEOF 2450 2451 2452# Let the site file select an alternate cache file if it wants to. 2453# Prefer an explicitly selected file to automatically selected ones. 2454ac_site_file1=NONE 2455ac_site_file2=NONE 2456if test -n "$CONFIG_SITE"; then 2457 # We do not want a PATH search for config.site. 2458 case $CONFIG_SITE in #(( 2459 -*) ac_site_file1=./$CONFIG_SITE;; 2460 */*) ac_site_file1=$CONFIG_SITE;; 2461 *) ac_site_file1=./$CONFIG_SITE;; 2462 esac 2463elif test "x$prefix" != xNONE; then 2464 ac_site_file1=$prefix/share/config.site 2465 ac_site_file2=$prefix/etc/config.site 2466else 2467 ac_site_file1=$ac_default_prefix/share/config.site 2468 ac_site_file2=$ac_default_prefix/etc/config.site 2469fi 2470for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2471do 2472 test "x$ac_site_file" = xNONE && continue 2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2475$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2476 sed 's/^/| /' "$ac_site_file" >&5 2477 . "$ac_site_file" \ 2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2480as_fn_error $? "failed to load site script $ac_site_file 2481See \`config.log' for more details" "$LINENO" 5; } 2482 fi 2483done 2484 2485if test -r "$cache_file"; then 2486 # Some versions of bash will fail to source /dev/null (special files 2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2490$as_echo "$as_me: loading cache $cache_file" >&6;} 2491 case $cache_file in 2492 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2493 *) . "./$cache_file";; 2494 esac 2495 fi 2496else 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2498$as_echo "$as_me: creating cache $cache_file" >&6;} 2499 >$cache_file 2500fi 2501 2502# Check that the precious variables saved in the cache have kept the same 2503# value. 2504ac_cache_corrupted=false 2505for ac_var in $ac_precious_vars; do 2506 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2507 eval ac_new_set=\$ac_env_${ac_var}_set 2508 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2509 eval ac_new_val=\$ac_env_${ac_var}_value 2510 case $ac_old_set,$ac_new_set in 2511 set,) 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2513$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2514 ac_cache_corrupted=: ;; 2515 ,set) 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2517$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2518 ac_cache_corrupted=: ;; 2519 ,);; 2520 *) 2521 if test "x$ac_old_val" != "x$ac_new_val"; then 2522 # differences in whitespace do not lead to failure. 2523 ac_old_val_w=`echo x $ac_old_val` 2524 ac_new_val_w=`echo x $ac_new_val` 2525 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2527$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2528 ac_cache_corrupted=: 2529 else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2531$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2532 eval $ac_var=\$ac_old_val 2533 fi 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2535$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2537$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2538 fi;; 2539 esac 2540 # Pass precious variables to config.status. 2541 if test "$ac_new_set" = set; then 2542 case $ac_new_val in 2543 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2544 *) ac_arg=$ac_var=$ac_new_val ;; 2545 esac 2546 case " $ac_configure_args " in 2547 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2548 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2549 esac 2550 fi 2551done 2552if $ac_cache_corrupted; then 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2556$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2557 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2558fi 2559## -------------------- ## 2560## Main body of script. ## 2561## -------------------- ## 2562 2563ac_ext=c 2564ac_cpp='$CPP $CPPFLAGS' 2565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2567ac_compiler_gnu=$ac_cv_c_compiler_gnu 2568 2569 2570 2571ac_config_headers="$ac_config_headers config.h" 2572 2573 2574 2575# Initialize Automake 2576am__api_version='1.15' 2577 2578ac_aux_dir= 2579for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2580 if test -f "$ac_dir/install-sh"; then 2581 ac_aux_dir=$ac_dir 2582 ac_install_sh="$ac_aux_dir/install-sh -c" 2583 break 2584 elif test -f "$ac_dir/install.sh"; then 2585 ac_aux_dir=$ac_dir 2586 ac_install_sh="$ac_aux_dir/install.sh -c" 2587 break 2588 elif test -f "$ac_dir/shtool"; then 2589 ac_aux_dir=$ac_dir 2590 ac_install_sh="$ac_aux_dir/shtool install -c" 2591 break 2592 fi 2593done 2594if test -z "$ac_aux_dir"; then 2595 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2596fi 2597 2598# These three variables are undocumented and unsupported, 2599# and are intended to be withdrawn in a future Autoconf release. 2600# They can cause serious problems if a builder's source tree is in a directory 2601# whose full name contains unusual characters. 2602ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2603ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2604ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2605 2606 2607# Find a good install program. We prefer a C program (faster), 2608# so one script is as good as another. But avoid the broken or 2609# incompatible versions: 2610# SysV /etc/install, /usr/sbin/install 2611# SunOS /usr/etc/install 2612# IRIX /sbin/install 2613# AIX /bin/install 2614# AmigaOS /C/install, which installs bootblocks on floppy discs 2615# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2616# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2618# OS/2's system install, which has a completely different semantic 2619# ./install, which can be erroneously created by make from ./install.sh. 2620# Reject install programs that cannot install multiple files. 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2622$as_echo_n "checking for a BSD-compatible install... " >&6; } 2623if test -z "$INSTALL"; then 2624if ${ac_cv_path_install+:} false; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628for as_dir in $PATH 2629do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 # Account for people who put trailing slashes in PATH elements. 2633case $as_dir/ in #(( 2634 ./ | .// | /[cC]/* | \ 2635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2637 /usr/ucb/* ) ;; 2638 *) 2639 # OSF1 and SCO ODT 3.0 have their own names for install. 2640 # Don't use installbsd from OSF since it installs stuff as root 2641 # by default. 2642 for ac_prog in ginstall scoinst install; do 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2645 if test $ac_prog = install && 2646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2647 # AIX install. It has an incompatible calling convention. 2648 : 2649 elif test $ac_prog = install && 2650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2651 # program-specific install script used by HP pwplus--don't use. 2652 : 2653 else 2654 rm -rf conftest.one conftest.two conftest.dir 2655 echo one > conftest.one 2656 echo two > conftest.two 2657 mkdir conftest.dir 2658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2659 test -s conftest.one && test -s conftest.two && 2660 test -s conftest.dir/conftest.one && 2661 test -s conftest.dir/conftest.two 2662 then 2663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2664 break 3 2665 fi 2666 fi 2667 fi 2668 done 2669 done 2670 ;; 2671esac 2672 2673 done 2674IFS=$as_save_IFS 2675 2676rm -rf conftest.one conftest.two conftest.dir 2677 2678fi 2679 if test "${ac_cv_path_install+set}" = set; then 2680 INSTALL=$ac_cv_path_install 2681 else 2682 # As a last resort, use the slow shell script. Don't cache a 2683 # value for INSTALL within a source directory, because that will 2684 # break other packages using the cache if that directory is 2685 # removed, or if the value is a relative name. 2686 INSTALL=$ac_install_sh 2687 fi 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2690$as_echo "$INSTALL" >&6; } 2691 2692# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2693# It thinks the first close brace ends the variable substitution. 2694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2695 2696test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2697 2698test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2699 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2701$as_echo_n "checking whether build environment is sane... " >&6; } 2702# Reject unsafe characters in $srcdir or the absolute working directory 2703# name. Accept space and tab only in the latter. 2704am_lf=' 2705' 2706case `pwd` in 2707 *[\\\"\#\$\&\'\`$am_lf]*) 2708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2709esac 2710case $srcdir in 2711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2712 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2713esac 2714 2715# Do 'set' in a subshell so we don't clobber the current shell's 2716# arguments. Must try -L first in case configure is actually a 2717# symlink; some systems play weird games with the mod time of symlinks 2718# (eg FreeBSD returns the mod time of the symlink's containing 2719# directory). 2720if ( 2721 am_has_slept=no 2722 for am_try in 1 2; do 2723 echo "timestamp, slept: $am_has_slept" > conftest.file 2724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2725 if test "$*" = "X"; then 2726 # -L didn't work. 2727 set X `ls -t "$srcdir/configure" conftest.file` 2728 fi 2729 if test "$*" != "X $srcdir/configure conftest.file" \ 2730 && test "$*" != "X conftest.file $srcdir/configure"; then 2731 2732 # If neither matched, then we have a broken ls. This can happen 2733 # if, for instance, CONFIG_SHELL is bash and it inherits a 2734 # broken ls alias from the environment. This has actually 2735 # happened. Such a system could not be considered "sane". 2736 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2737 alias in your environment" "$LINENO" 5 2738 fi 2739 if test "$2" = conftest.file || test $am_try -eq 2; then 2740 break 2741 fi 2742 # Just in case. 2743 sleep 1 2744 am_has_slept=yes 2745 done 2746 test "$2" = conftest.file 2747 ) 2748then 2749 # Ok. 2750 : 2751else 2752 as_fn_error $? "newly created file is older than distributed files! 2753Check your system clock" "$LINENO" 5 2754fi 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2756$as_echo "yes" >&6; } 2757# If we didn't sleep, we still need to ensure time stamps of config.status and 2758# generated files are strictly newer. 2759am_sleep_pid= 2760if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2761 ( sleep 1 ) & 2762 am_sleep_pid=$! 2763fi 2764 2765rm -f conftest.file 2766 2767test "$program_prefix" != NONE && 2768 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2769# Use a double $ so make ignores it. 2770test "$program_suffix" != NONE && 2771 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2772# Double any \ or $. 2773# By default was `s,x,x', remove it if useless. 2774ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2775program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2776 2777# Expand $ac_aux_dir to an absolute path. 2778am_aux_dir=`cd "$ac_aux_dir" && pwd` 2779 2780if test x"${MISSING+set}" != xset; then 2781 case $am_aux_dir in 2782 *\ * | *\ *) 2783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2784 *) 2785 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2786 esac 2787fi 2788# Use eval to expand $SHELL 2789if eval "$MISSING --is-lightweight"; then 2790 am_missing_run="$MISSING " 2791else 2792 am_missing_run= 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2794$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2795fi 2796 2797if test x"${install_sh+set}" != xset; then 2798 case $am_aux_dir in 2799 *\ * | *\ *) 2800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2801 *) 2802 install_sh="\${SHELL} $am_aux_dir/install-sh" 2803 esac 2804fi 2805 2806# Installed binaries are usually stripped using 'strip' when the user 2807# run "make install-strip". However 'strip' might not be the right 2808# tool to use in cross-compilation environments, therefore Automake 2809# will honor the 'STRIP' environment variable to overrule this program. 2810if test "$cross_compiling" != no; then 2811 if test -n "$ac_tool_prefix"; then 2812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2813set dummy ${ac_tool_prefix}strip; ac_word=$2 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815$as_echo_n "checking for $ac_word... " >&6; } 2816if ${ac_cv_prog_STRIP+:} false; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 if test -n "$STRIP"; then 2820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2821else 2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2823for as_dir in $PATH 2824do 2825 IFS=$as_save_IFS 2826 test -z "$as_dir" && as_dir=. 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2829 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837fi 2838fi 2839STRIP=$ac_cv_prog_STRIP 2840if test -n "$STRIP"; then 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2842$as_echo "$STRIP" >&6; } 2843else 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2845$as_echo "no" >&6; } 2846fi 2847 2848 2849fi 2850if test -z "$ac_cv_prog_STRIP"; then 2851 ac_ct_STRIP=$STRIP 2852 # Extract the first word of "strip", so it can be a program name with args. 2853set dummy strip; ac_word=$2 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855$as_echo_n "checking for $ac_word... " >&6; } 2856if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if test -n "$ac_ct_STRIP"; then 2860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_ac_ct_STRIP="strip" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877fi 2878fi 2879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2880if test -n "$ac_ct_STRIP"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2882$as_echo "$ac_ct_STRIP" >&6; } 2883else 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885$as_echo "no" >&6; } 2886fi 2887 2888 if test "x$ac_ct_STRIP" = x; then 2889 STRIP=":" 2890 else 2891 case $cross_compiling:$ac_tool_warned in 2892yes:) 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2895ac_tool_warned=yes ;; 2896esac 2897 STRIP=$ac_ct_STRIP 2898 fi 2899else 2900 STRIP="$ac_cv_prog_STRIP" 2901fi 2902 2903fi 2904INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2905 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2907$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2908if test -z "$MKDIR_P"; then 2909 if ${ac_cv_path_mkdir+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_prog in mkdir gmkdir; do 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2921 'mkdir (GNU coreutils) '* | \ 2922 'mkdir (coreutils) '* | \ 2923 'mkdir (fileutils) '4.1*) 2924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2925 break 3;; 2926 esac 2927 done 2928 done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933 2934 test -d ./--version && rmdir ./--version 2935 if test "${ac_cv_path_mkdir+set}" = set; then 2936 MKDIR_P="$ac_cv_path_mkdir -p" 2937 else 2938 # As a last resort, use the slow shell script. Don't cache a 2939 # value for MKDIR_P within a source directory, because that will 2940 # break other packages using the cache if that directory is 2941 # removed, or if the value is a relative name. 2942 MKDIR_P="$ac_install_sh -d" 2943 fi 2944fi 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2946$as_echo "$MKDIR_P" >&6; } 2947 2948for ac_prog in gawk mawk nawk awk 2949do 2950 # Extract the first word of "$ac_prog", so it can be a program name with args. 2951set dummy $ac_prog; ac_word=$2 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2953$as_echo_n "checking for $ac_word... " >&6; } 2954if ${ac_cv_prog_AWK+:} false; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 if test -n "$AWK"; then 2958 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_AWK="$ac_prog" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977AWK=$ac_cv_prog_AWK 2978if test -n "$AWK"; then 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2980$as_echo "$AWK" >&6; } 2981else 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983$as_echo "no" >&6; } 2984fi 2985 2986 2987 test -n "$AWK" && break 2988done 2989 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2991$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2992set x ${MAKE-make} 2993ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2994if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2995 $as_echo_n "(cached) " >&6 2996else 2997 cat >conftest.make <<\_ACEOF 2998SHELL = /bin/sh 2999all: 3000 @echo '@@@%%%=$(MAKE)=@@@%%%' 3001_ACEOF 3002# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3003case `${MAKE-make} -f conftest.make 2>/dev/null` in 3004 *@@@%%%=?*=@@@%%%*) 3005 eval ac_cv_prog_make_${ac_make}_set=yes;; 3006 *) 3007 eval ac_cv_prog_make_${ac_make}_set=no;; 3008esac 3009rm -f conftest.make 3010fi 3011if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3013$as_echo "yes" >&6; } 3014 SET_MAKE= 3015else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017$as_echo "no" >&6; } 3018 SET_MAKE="MAKE=${MAKE-make}" 3019fi 3020 3021rm -rf .tst 2>/dev/null 3022mkdir .tst 2>/dev/null 3023if test -d .tst; then 3024 am__leading_dot=. 3025else 3026 am__leading_dot=_ 3027fi 3028rmdir .tst 2>/dev/null 3029 3030# Check whether --enable-silent-rules was given. 3031if test "${enable_silent_rules+set}" = set; then : 3032 enableval=$enable_silent_rules; 3033fi 3034 3035case $enable_silent_rules in # ((( 3036 yes) AM_DEFAULT_VERBOSITY=0;; 3037 no) AM_DEFAULT_VERBOSITY=1;; 3038 *) AM_DEFAULT_VERBOSITY=1;; 3039esac 3040am_make=${MAKE-make} 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3042$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3043if ${am_cv_make_support_nested_variables+:} false; then : 3044 $as_echo_n "(cached) " >&6 3045else 3046 if $as_echo 'TRUE=$(BAR$(V)) 3047BAR0=false 3048BAR1=true 3049V=1 3050am__doit: 3051 @$(TRUE) 3052.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3053 am_cv_make_support_nested_variables=yes 3054else 3055 am_cv_make_support_nested_variables=no 3056fi 3057fi 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3059$as_echo "$am_cv_make_support_nested_variables" >&6; } 3060if test $am_cv_make_support_nested_variables = yes; then 3061 AM_V='$(V)' 3062 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3063else 3064 AM_V=$AM_DEFAULT_VERBOSITY 3065 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3066fi 3067AM_BACKSLASH='\' 3068 3069if test "`cd $srcdir && pwd`" != "`pwd`"; then 3070 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3071 # is not polluted with repeated "-I." 3072 am__isrc=' -I$(srcdir)' 3073 # test to see if srcdir already configured 3074 if test -f $srcdir/config.status; then 3075 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3076 fi 3077fi 3078 3079# test whether we have cygpath 3080if test -z "$CYGPATH_W"; then 3081 if (cygpath --version) >/dev/null 2>/dev/null; then 3082 CYGPATH_W='cygpath -w' 3083 else 3084 CYGPATH_W=echo 3085 fi 3086fi 3087 3088 3089# Define the identity of the package. 3090 PACKAGE='libXfont2' 3091 VERSION='2.0.1' 3092 3093 3094cat >>confdefs.h <<_ACEOF 3095#define PACKAGE "$PACKAGE" 3096_ACEOF 3097 3098 3099cat >>confdefs.h <<_ACEOF 3100#define VERSION "$VERSION" 3101_ACEOF 3102 3103# Some tools Automake needs. 3104 3105ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3106 3107 3108AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3109 3110 3111AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3112 3113 3114AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3115 3116 3117MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3118 3119# For better backward compatibility. To be removed once Automake 1.9.x 3120# dies out for good. For more background, see: 3121# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3122# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3123mkdir_p='$(MKDIR_P)' 3124 3125# We need awk for the "check" target (and possibly the TAP driver). The 3126# system "awk" is bad on some platforms. 3127# Always define AMTAR for backward compatibility. Yes, it's still used 3128# in the wild :-( We should find a proper way to deprecate it ... 3129AMTAR='$${TAR-tar}' 3130 3131 3132# We'll loop over all known methods to create a tar archive until one works. 3133_am_tools='gnutar pax cpio none' 3134 3135am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3136 3137 3138 3139 3140 3141 3142# POSIX will say in a future version that running "rm -f" with no argument 3143# is OK; and we want to be able to make that assumption in our Makefile 3144# recipes. So use an aggressive probe to check that the usage we want is 3145# actually supported "in the wild" to an acceptable degree. 3146# See automake bug#10828. 3147# To make any issue more visible, cause the running configure to be aborted 3148# by default if the 'rm' program in use doesn't match our expectations; the 3149# user can still override this though. 3150if rm -f && rm -fr && rm -rf; then : OK; else 3151 cat >&2 <<'END' 3152Oops! 3153 3154Your 'rm' program seems unable to run without file operands specified 3155on the command line, even when the '-f' option is present. This is contrary 3156to the behaviour of most rm programs out there, and not conforming with 3157the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3158 3159Please tell bug-automake@gnu.org about your system, including the value 3160of your $PATH and any error possibly output before this message. This 3161can help us improve future automake versions. 3162 3163END 3164 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3165 echo 'Configuration will proceed anyway, since you have set the' >&2 3166 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3167 echo >&2 3168 else 3169 cat >&2 <<'END' 3170Aborting the configuration process, to ensure you take notice of the issue. 3171 3172You can download and install GNU coreutils to get an 'rm' implementation 3173that behaves properly: <http://www.gnu.org/software/coreutils/>. 3174 3175If you want to complete the configuration process using your problematic 3176'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3177to "yes", and re-run configure. 3178 3179END 3180 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3181 fi 3182fi 3183 3184 3185# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3186# Must be called before any macros that run the compiler (like 3187# AC_PROG_LIBTOOL) to avoid autoconf errors. 3188DEPDIR="${am__leading_dot}deps" 3189 3190ac_config_commands="$ac_config_commands depfiles" 3191 3192 3193am_make=${MAKE-make} 3194cat > confinc << 'END' 3195am__doit: 3196 @echo this is the am__doit target 3197.PHONY: am__doit 3198END 3199# If we don't find an include directive, just comment out the code. 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3201$as_echo_n "checking for style of include used by $am_make... " >&6; } 3202am__include="#" 3203am__quote= 3204_am_result=none 3205# First try GNU make style include. 3206echo "include confinc" > confmf 3207# Ignore all kinds of additional output from 'make'. 3208case `$am_make -s -f confmf 2> /dev/null` in #( 3209*the\ am__doit\ target*) 3210 am__include=include 3211 am__quote= 3212 _am_result=GNU 3213 ;; 3214esac 3215# Now try BSD make style include. 3216if test "$am__include" = "#"; then 3217 echo '.include "confinc"' > confmf 3218 case `$am_make -s -f confmf 2> /dev/null` in #( 3219 *the\ am__doit\ target*) 3220 am__include=.include 3221 am__quote="\"" 3222 _am_result=BSD 3223 ;; 3224 esac 3225fi 3226 3227 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3229$as_echo "$_am_result" >&6; } 3230rm -f confinc confmf 3231 3232# Check whether --enable-dependency-tracking was given. 3233if test "${enable_dependency_tracking+set}" = set; then : 3234 enableval=$enable_dependency_tracking; 3235fi 3236 3237if test "x$enable_dependency_tracking" != xno; then 3238 am_depcomp="$ac_aux_dir/depcomp" 3239 AMDEPBACKSLASH='\' 3240 am__nodep='_no' 3241fi 3242 if test "x$enable_dependency_tracking" != xno; then 3243 AMDEP_TRUE= 3244 AMDEP_FALSE='#' 3245else 3246 AMDEP_TRUE='#' 3247 AMDEP_FALSE= 3248fi 3249 3250 3251ac_ext=c 3252ac_cpp='$CPP $CPPFLAGS' 3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3255ac_compiler_gnu=$ac_cv_c_compiler_gnu 3256if test -n "$ac_tool_prefix"; then 3257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3258set dummy ${ac_tool_prefix}gcc; ac_word=$2 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3260$as_echo_n "checking for $ac_word... " >&6; } 3261if ${ac_cv_prog_CC+:} false; then : 3262 $as_echo_n "(cached) " >&6 3263else 3264 if test -n "$CC"; then 3265 ac_cv_prog_CC="$CC" # Let the user override the test. 3266else 3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3268for as_dir in $PATH 3269do 3270 IFS=$as_save_IFS 3271 test -z "$as_dir" && as_dir=. 3272 for ac_exec_ext in '' $ac_executable_extensions; do 3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3274 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3276 break 2 3277 fi 3278done 3279 done 3280IFS=$as_save_IFS 3281 3282fi 3283fi 3284CC=$ac_cv_prog_CC 3285if test -n "$CC"; then 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3287$as_echo "$CC" >&6; } 3288else 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3290$as_echo "no" >&6; } 3291fi 3292 3293 3294fi 3295if test -z "$ac_cv_prog_CC"; then 3296 ac_ct_CC=$CC 3297 # Extract the first word of "gcc", so it can be a program name with args. 3298set dummy gcc; ac_word=$2 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3300$as_echo_n "checking for $ac_word... " >&6; } 3301if ${ac_cv_prog_ac_ct_CC+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 if test -n "$ac_ct_CC"; then 3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3306else 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3308for as_dir in $PATH 3309do 3310 IFS=$as_save_IFS 3311 test -z "$as_dir" && as_dir=. 3312 for ac_exec_ext in '' $ac_executable_extensions; do 3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3314 ac_cv_prog_ac_ct_CC="gcc" 3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3316 break 2 3317 fi 3318done 3319 done 3320IFS=$as_save_IFS 3321 3322fi 3323fi 3324ac_ct_CC=$ac_cv_prog_ac_ct_CC 3325if test -n "$ac_ct_CC"; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3327$as_echo "$ac_ct_CC" >&6; } 3328else 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331fi 3332 3333 if test "x$ac_ct_CC" = x; then 3334 CC="" 3335 else 3336 case $cross_compiling:$ac_tool_warned in 3337yes:) 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3340ac_tool_warned=yes ;; 3341esac 3342 CC=$ac_ct_CC 3343 fi 3344else 3345 CC="$ac_cv_prog_CC" 3346fi 3347 3348if test -z "$CC"; then 3349 if test -n "$ac_tool_prefix"; then 3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3351set dummy ${ac_tool_prefix}cc; ac_word=$2 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3353$as_echo_n "checking for $ac_word... " >&6; } 3354if ${ac_cv_prog_CC+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if test -n "$CC"; then 3358 ac_cv_prog_CC="$CC" # Let the user override the test. 3359else 3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3361for as_dir in $PATH 3362do 3363 IFS=$as_save_IFS 3364 test -z "$as_dir" && as_dir=. 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3367 ac_cv_prog_CC="${ac_tool_prefix}cc" 3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375fi 3376fi 3377CC=$ac_cv_prog_CC 3378if test -n "$CC"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3380$as_echo "$CC" >&6; } 3381else 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383$as_echo "no" >&6; } 3384fi 3385 3386 3387 fi 3388fi 3389if test -z "$CC"; then 3390 # Extract the first word of "cc", so it can be a program name with args. 3391set dummy cc; ac_word=$2 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3393$as_echo_n "checking for $ac_word... " >&6; } 3394if ${ac_cv_prog_CC+:} false; then : 3395 $as_echo_n "(cached) " >&6 3396else 3397 if test -n "$CC"; then 3398 ac_cv_prog_CC="$CC" # Let the user override the test. 3399else 3400 ac_prog_rejected=no 3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3402for as_dir in $PATH 3403do 3404 IFS=$as_save_IFS 3405 test -z "$as_dir" && as_dir=. 3406 for ac_exec_ext in '' $ac_executable_extensions; do 3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3409 ac_prog_rejected=yes 3410 continue 3411 fi 3412 ac_cv_prog_CC="cc" 3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3414 break 2 3415 fi 3416done 3417 done 3418IFS=$as_save_IFS 3419 3420if test $ac_prog_rejected = yes; then 3421 # We found a bogon in the path, so make sure we never use it. 3422 set dummy $ac_cv_prog_CC 3423 shift 3424 if test $# != 0; then 3425 # We chose a different compiler from the bogus one. 3426 # However, it has the same basename, so the bogon will be chosen 3427 # first if we set CC to just the basename; use the full file name. 3428 shift 3429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3430 fi 3431fi 3432fi 3433fi 3434CC=$ac_cv_prog_CC 3435if test -n "$CC"; then 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3437$as_echo "$CC" >&6; } 3438else 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3440$as_echo "no" >&6; } 3441fi 3442 3443 3444fi 3445if test -z "$CC"; then 3446 if test -n "$ac_tool_prefix"; then 3447 for ac_prog in cl.exe 3448 do 3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3450set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3452$as_echo_n "checking for $ac_word... " >&6; } 3453if ${ac_cv_prog_CC+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 if test -n "$CC"; then 3457 ac_cv_prog_CC="$CC" # Let the user override the test. 3458else 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 test -z "$as_dir" && as_dir=. 3464 for ac_exec_ext in '' $ac_executable_extensions; do 3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3468 break 2 3469 fi 3470done 3471 done 3472IFS=$as_save_IFS 3473 3474fi 3475fi 3476CC=$ac_cv_prog_CC 3477if test -n "$CC"; then 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3479$as_echo "$CC" >&6; } 3480else 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3482$as_echo "no" >&6; } 3483fi 3484 3485 3486 test -n "$CC" && break 3487 done 3488fi 3489if test -z "$CC"; then 3490 ac_ct_CC=$CC 3491 for ac_prog in cl.exe 3492do 3493 # Extract the first word of "$ac_prog", so it can be a program name with args. 3494set dummy $ac_prog; ac_word=$2 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3496$as_echo_n "checking for $ac_word... " >&6; } 3497if ${ac_cv_prog_ac_ct_CC+:} false; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 if test -n "$ac_ct_CC"; then 3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3502else 3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3504for as_dir in $PATH 3505do 3506 IFS=$as_save_IFS 3507 test -z "$as_dir" && as_dir=. 3508 for ac_exec_ext in '' $ac_executable_extensions; do 3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3510 ac_cv_prog_ac_ct_CC="$ac_prog" 3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3512 break 2 3513 fi 3514done 3515 done 3516IFS=$as_save_IFS 3517 3518fi 3519fi 3520ac_ct_CC=$ac_cv_prog_ac_ct_CC 3521if test -n "$ac_ct_CC"; then 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3523$as_echo "$ac_ct_CC" >&6; } 3524else 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3526$as_echo "no" >&6; } 3527fi 3528 3529 3530 test -n "$ac_ct_CC" && break 3531done 3532 3533 if test "x$ac_ct_CC" = x; then 3534 CC="" 3535 else 3536 case $cross_compiling:$ac_tool_warned in 3537yes:) 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3540ac_tool_warned=yes ;; 3541esac 3542 CC=$ac_ct_CC 3543 fi 3544fi 3545 3546fi 3547 3548 3549test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3551as_fn_error $? "no acceptable C compiler found in \$PATH 3552See \`config.log' for more details" "$LINENO" 5; } 3553 3554# Provide some information about the compiler. 3555$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3556set X $ac_compile 3557ac_compiler=$2 3558for ac_option in --version -v -V -qversion; do 3559 { { ac_try="$ac_compiler $ac_option >&5" 3560case "(($ac_try" in 3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3562 *) ac_try_echo=$ac_try;; 3563esac 3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3565$as_echo "$ac_try_echo"; } >&5 3566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3567 ac_status=$? 3568 if test -s conftest.err; then 3569 sed '10a\ 3570... rest of stderr output deleted ... 3571 10q' conftest.err >conftest.er1 3572 cat conftest.er1 >&5 3573 fi 3574 rm -f conftest.er1 conftest.err 3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3576 test $ac_status = 0; } 3577done 3578 3579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581 3582int 3583main () 3584{ 3585 3586 ; 3587 return 0; 3588} 3589_ACEOF 3590ac_clean_files_save=$ac_clean_files 3591ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3592# Try to create an executable without -o first, disregard a.out. 3593# It will help us diagnose broken compilers, and finding out an intuition 3594# of exeext. 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3596$as_echo_n "checking whether the C compiler works... " >&6; } 3597ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3598 3599# The possible output files: 3600ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3601 3602ac_rmfiles= 3603for ac_file in $ac_files 3604do 3605 case $ac_file in 3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3607 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3608 esac 3609done 3610rm -f $ac_rmfiles 3611 3612if { { ac_try="$ac_link_default" 3613case "(($ac_try" in 3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3615 *) ac_try_echo=$ac_try;; 3616esac 3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3618$as_echo "$ac_try_echo"; } >&5 3619 (eval "$ac_link_default") 2>&5 3620 ac_status=$? 3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3622 test $ac_status = 0; }; then : 3623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3624# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3625# in a Makefile. We should not override ac_cv_exeext if it was cached, 3626# so that the user can short-circuit this test for compilers unknown to 3627# Autoconf. 3628for ac_file in $ac_files '' 3629do 3630 test -f "$ac_file" || continue 3631 case $ac_file in 3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3633 ;; 3634 [ab].out ) 3635 # We found the default executable, but exeext='' is most 3636 # certainly right. 3637 break;; 3638 *.* ) 3639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3640 then :; else 3641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3642 fi 3643 # We set ac_cv_exeext here because the later test for it is not 3644 # safe: cross compilers may not add the suffix if given an `-o' 3645 # argument, so we may need to know it at that point already. 3646 # Even if this section looks crufty: it has the advantage of 3647 # actually working. 3648 break;; 3649 * ) 3650 break;; 3651 esac 3652done 3653test "$ac_cv_exeext" = no && ac_cv_exeext= 3654 3655else 3656 ac_file='' 3657fi 3658if test -z "$ac_file"; then : 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3660$as_echo "no" >&6; } 3661$as_echo "$as_me: failed program was:" >&5 3662sed 's/^/| /' conftest.$ac_ext >&5 3663 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 77 "C compiler cannot create executables 3667See \`config.log' for more details" "$LINENO" 5; } 3668else 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3670$as_echo "yes" >&6; } 3671fi 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3673$as_echo_n "checking for C compiler default output file name... " >&6; } 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3675$as_echo "$ac_file" >&6; } 3676ac_exeext=$ac_cv_exeext 3677 3678rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3679ac_clean_files=$ac_clean_files_save 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3681$as_echo_n "checking for suffix of executables... " >&6; } 3682if { { ac_try="$ac_link" 3683case "(($ac_try" in 3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3685 *) ac_try_echo=$ac_try;; 3686esac 3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3688$as_echo "$ac_try_echo"; } >&5 3689 (eval "$ac_link") 2>&5 3690 ac_status=$? 3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3692 test $ac_status = 0; }; then : 3693 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3694# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3695# work properly (i.e., refer to `conftest.exe'), while it won't with 3696# `rm'. 3697for ac_file in conftest.exe conftest conftest.*; do 3698 test -f "$ac_file" || continue 3699 case $ac_file in 3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3702 break;; 3703 * ) break;; 3704 esac 3705done 3706else 3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3709as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3710See \`config.log' for more details" "$LINENO" 5; } 3711fi 3712rm -f conftest conftest$ac_cv_exeext 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3714$as_echo "$ac_cv_exeext" >&6; } 3715 3716rm -f conftest.$ac_ext 3717EXEEXT=$ac_cv_exeext 3718ac_exeext=$EXEEXT 3719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721#include <stdio.h> 3722int 3723main () 3724{ 3725FILE *f = fopen ("conftest.out", "w"); 3726 return ferror (f) || fclose (f) != 0; 3727 3728 ; 3729 return 0; 3730} 3731_ACEOF 3732ac_clean_files="$ac_clean_files conftest.out" 3733# Check that the compiler produces executables we can run. If not, either 3734# the compiler is broken, or we cross compile. 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3736$as_echo_n "checking whether we are cross compiling... " >&6; } 3737if test "$cross_compiling" != yes; then 3738 { { ac_try="$ac_link" 3739case "(($ac_try" in 3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3741 *) ac_try_echo=$ac_try;; 3742esac 3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3744$as_echo "$ac_try_echo"; } >&5 3745 (eval "$ac_link") 2>&5 3746 ac_status=$? 3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3748 test $ac_status = 0; } 3749 if { ac_try='./conftest$ac_cv_exeext' 3750 { { case "(($ac_try" in 3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3752 *) ac_try_echo=$ac_try;; 3753esac 3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3755$as_echo "$ac_try_echo"; } >&5 3756 (eval "$ac_try") 2>&5 3757 ac_status=$? 3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3759 test $ac_status = 0; }; }; then 3760 cross_compiling=no 3761 else 3762 if test "$cross_compiling" = maybe; then 3763 cross_compiling=yes 3764 else 3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3767as_fn_error $? "cannot run C compiled programs. 3768If you meant to cross compile, use \`--host'. 3769See \`config.log' for more details" "$LINENO" 5; } 3770 fi 3771 fi 3772fi 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3774$as_echo "$cross_compiling" >&6; } 3775 3776rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3777ac_clean_files=$ac_clean_files_save 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3779$as_echo_n "checking for suffix of object files... " >&6; } 3780if ${ac_cv_objext+:} false; then : 3781 $as_echo_n "(cached) " >&6 3782else 3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785 3786int 3787main () 3788{ 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794rm -f conftest.o conftest.obj 3795if { { ac_try="$ac_compile" 3796case "(($ac_try" in 3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3798 *) ac_try_echo=$ac_try;; 3799esac 3800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3801$as_echo "$ac_try_echo"; } >&5 3802 (eval "$ac_compile") 2>&5 3803 ac_status=$? 3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3805 test $ac_status = 0; }; then : 3806 for ac_file in conftest.o conftest.obj conftest.*; do 3807 test -f "$ac_file" || continue; 3808 case $ac_file in 3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3811 break;; 3812 esac 3813done 3814else 3815 $as_echo "$as_me: failed program was:" >&5 3816sed 's/^/| /' conftest.$ac_ext >&5 3817 3818{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3820as_fn_error $? "cannot compute suffix of object files: cannot compile 3821See \`config.log' for more details" "$LINENO" 5; } 3822fi 3823rm -f conftest.$ac_cv_objext conftest.$ac_ext 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3826$as_echo "$ac_cv_objext" >&6; } 3827OBJEXT=$ac_cv_objext 3828ac_objext=$OBJEXT 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3830$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3831if ${ac_cv_c_compiler_gnu+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833else 3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3835/* end confdefs.h. */ 3836 3837int 3838main () 3839{ 3840#ifndef __GNUC__ 3841 choke me 3842#endif 3843 3844 ; 3845 return 0; 3846} 3847_ACEOF 3848if ac_fn_c_try_compile "$LINENO"; then : 3849 ac_compiler_gnu=yes 3850else 3851 ac_compiler_gnu=no 3852fi 3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3854ac_cv_c_compiler_gnu=$ac_compiler_gnu 3855 3856fi 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3858$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3859if test $ac_compiler_gnu = yes; then 3860 GCC=yes 3861else 3862 GCC= 3863fi 3864ac_test_CFLAGS=${CFLAGS+set} 3865ac_save_CFLAGS=$CFLAGS 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3867$as_echo_n "checking whether $CC accepts -g... " >&6; } 3868if ${ac_cv_prog_cc_g+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 ac_save_c_werror_flag=$ac_c_werror_flag 3872 ac_c_werror_flag=yes 3873 ac_cv_prog_cc_g=no 3874 CFLAGS="-g" 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877 3878int 3879main () 3880{ 3881 3882 ; 3883 return 0; 3884} 3885_ACEOF 3886if ac_fn_c_try_compile "$LINENO"; then : 3887 ac_cv_prog_cc_g=yes 3888else 3889 CFLAGS="" 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891/* end confdefs.h. */ 3892 3893int 3894main () 3895{ 3896 3897 ; 3898 return 0; 3899} 3900_ACEOF 3901if ac_fn_c_try_compile "$LINENO"; then : 3902 3903else 3904 ac_c_werror_flag=$ac_save_c_werror_flag 3905 CFLAGS="-g" 3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3907/* end confdefs.h. */ 3908 3909int 3910main () 3911{ 3912 3913 ; 3914 return 0; 3915} 3916_ACEOF 3917if ac_fn_c_try_compile "$LINENO"; then : 3918 ac_cv_prog_cc_g=yes 3919fi 3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3921fi 3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3923fi 3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3925 ac_c_werror_flag=$ac_save_c_werror_flag 3926fi 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3928$as_echo "$ac_cv_prog_cc_g" >&6; } 3929if test "$ac_test_CFLAGS" = set; then 3930 CFLAGS=$ac_save_CFLAGS 3931elif test $ac_cv_prog_cc_g = yes; then 3932 if test "$GCC" = yes; then 3933 CFLAGS="-g -O2" 3934 else 3935 CFLAGS="-g" 3936 fi 3937else 3938 if test "$GCC" = yes; then 3939 CFLAGS="-O2" 3940 else 3941 CFLAGS= 3942 fi 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3945$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3946if ${ac_cv_prog_cc_c89+:} false; then : 3947 $as_echo_n "(cached) " >&6 3948else 3949 ac_cv_prog_cc_c89=no 3950ac_save_CC=$CC 3951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953#include <stdarg.h> 3954#include <stdio.h> 3955struct stat; 3956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3957struct buf { int x; }; 3958FILE * (*rcsopen) (struct buf *, struct stat *, int); 3959static char *e (p, i) 3960 char **p; 3961 int i; 3962{ 3963 return p[i]; 3964} 3965static char *f (char * (*g) (char **, int), char **p, ...) 3966{ 3967 char *s; 3968 va_list v; 3969 va_start (v,p); 3970 s = g (p, va_arg (v,int)); 3971 va_end (v); 3972 return s; 3973} 3974 3975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3976 function prototypes and stuff, but not '\xHH' hex character constants. 3977 These don't provoke an error unfortunately, instead are silently treated 3978 as 'x'. The following induces an error, until -std is added to get 3979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3980 array size at least. It's necessary to write '\x00'==0 to get something 3981 that's true only with -std. */ 3982int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3983 3984/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3985 inside strings and character constants. */ 3986#define FOO(x) 'x' 3987int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3988 3989int test (int i, double x); 3990struct s1 {int (*f) (int a);}; 3991struct s2 {int (*f) (double a);}; 3992int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3993int argc; 3994char **argv; 3995int 3996main () 3997{ 3998return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3999 ; 4000 return 0; 4001} 4002_ACEOF 4003for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4005do 4006 CC="$ac_save_CC $ac_arg" 4007 if ac_fn_c_try_compile "$LINENO"; then : 4008 ac_cv_prog_cc_c89=$ac_arg 4009fi 4010rm -f core conftest.err conftest.$ac_objext 4011 test "x$ac_cv_prog_cc_c89" != "xno" && break 4012done 4013rm -f conftest.$ac_ext 4014CC=$ac_save_CC 4015 4016fi 4017# AC_CACHE_VAL 4018case "x$ac_cv_prog_cc_c89" in 4019 x) 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4021$as_echo "none needed" >&6; } ;; 4022 xno) 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4024$as_echo "unsupported" >&6; } ;; 4025 *) 4026 CC="$CC $ac_cv_prog_cc_c89" 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4028$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4029esac 4030if test "x$ac_cv_prog_cc_c89" != xno; then : 4031 4032fi 4033 4034ac_ext=c 4035ac_cpp='$CPP $CPPFLAGS' 4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4038ac_compiler_gnu=$ac_cv_c_compiler_gnu 4039 4040ac_ext=c 4041ac_cpp='$CPP $CPPFLAGS' 4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4044ac_compiler_gnu=$ac_cv_c_compiler_gnu 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4046$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4047if ${am_cv_prog_cc_c_o+:} false; then : 4048 $as_echo_n "(cached) " >&6 4049else 4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4051/* end confdefs.h. */ 4052 4053int 4054main () 4055{ 4056 4057 ; 4058 return 0; 4059} 4060_ACEOF 4061 # Make sure it works both with $CC and with simple cc. 4062 # Following AC_PROG_CC_C_O, we do the test twice because some 4063 # compilers refuse to overwrite an existing .o file with -o, 4064 # though they will create one. 4065 am_cv_prog_cc_c_o=yes 4066 for am_i in 1 2; do 4067 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4068 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4069 ac_status=$? 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 (exit $ac_status); } \ 4072 && test -f conftest2.$ac_objext; then 4073 : OK 4074 else 4075 am_cv_prog_cc_c_o=no 4076 break 4077 fi 4078 done 4079 rm -f core conftest* 4080 unset am_i 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4083$as_echo "$am_cv_prog_cc_c_o" >&6; } 4084if test "$am_cv_prog_cc_c_o" != yes; then 4085 # Losing compiler, so override with the script. 4086 # FIXME: It is wrong to rewrite CC. 4087 # But if we don't then we get into trouble of one sort or another. 4088 # A longer-term fix would be to have automake use am__CC in this case, 4089 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4090 CC="$am_aux_dir/compile $CC" 4091fi 4092ac_ext=c 4093ac_cpp='$CPP $CPPFLAGS' 4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4096ac_compiler_gnu=$ac_cv_c_compiler_gnu 4097 4098 4099depcc="$CC" am_compiler_list= 4100 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4102$as_echo_n "checking dependency style of $depcc... " >&6; } 4103if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4104 $as_echo_n "(cached) " >&6 4105else 4106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4107 # We make a subdir and do the tests there. Otherwise we can end up 4108 # making bogus files that we don't know about and never remove. For 4109 # instance it was reported that on HP-UX the gcc test will end up 4110 # making a dummy file named 'D' -- because '-MD' means "put the output 4111 # in D". 4112 rm -rf conftest.dir 4113 mkdir conftest.dir 4114 # Copy depcomp to subdir because otherwise we won't find it if we're 4115 # using a relative directory. 4116 cp "$am_depcomp" conftest.dir 4117 cd conftest.dir 4118 # We will build objects and dependencies in a subdirectory because 4119 # it helps to detect inapplicable dependency modes. For instance 4120 # both Tru64's cc and ICC support -MD to output dependencies as a 4121 # side effect of compilation, but ICC will put the dependencies in 4122 # the current directory while Tru64 will put them in the object 4123 # directory. 4124 mkdir sub 4125 4126 am_cv_CC_dependencies_compiler_type=none 4127 if test "$am_compiler_list" = ""; then 4128 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4129 fi 4130 am__universal=false 4131 case " $depcc " in #( 4132 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4133 esac 4134 4135 for depmode in $am_compiler_list; do 4136 # Setup a source with many dependencies, because some compilers 4137 # like to wrap large dependency lists on column 80 (with \), and 4138 # we should not choose a depcomp mode which is confused by this. 4139 # 4140 # We need to recreate these files for each test, as the compiler may 4141 # overwrite some of them when testing with obscure command lines. 4142 # This happens at least with the AIX C compiler. 4143 : > sub/conftest.c 4144 for i in 1 2 3 4 5 6; do 4145 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4146 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4147 # Solaris 10 /bin/sh. 4148 echo '/* dummy */' > sub/conftst$i.h 4149 done 4150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4151 4152 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4153 # mode. It turns out that the SunPro C++ compiler does not properly 4154 # handle '-M -o', and we need to detect this. Also, some Intel 4155 # versions had trouble with output in subdirs. 4156 am__obj=sub/conftest.${OBJEXT-o} 4157 am__minus_obj="-o $am__obj" 4158 case $depmode in 4159 gcc) 4160 # This depmode causes a compiler race in universal mode. 4161 test "$am__universal" = false || continue 4162 ;; 4163 nosideeffect) 4164 # After this tag, mechanisms are not by side-effect, so they'll 4165 # only be used when explicitly requested. 4166 if test "x$enable_dependency_tracking" = xyes; then 4167 continue 4168 else 4169 break 4170 fi 4171 ;; 4172 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4173 # This compiler won't grok '-c -o', but also, the minuso test has 4174 # not run yet. These depmodes are late enough in the game, and 4175 # so weak that their functioning should not be impacted. 4176 am__obj=conftest.${OBJEXT-o} 4177 am__minus_obj= 4178 ;; 4179 none) break ;; 4180 esac 4181 if depmode=$depmode \ 4182 source=sub/conftest.c object=$am__obj \ 4183 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4184 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4185 >/dev/null 2>conftest.err && 4186 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4188 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4190 # icc doesn't choke on unknown options, it will just issue warnings 4191 # or remarks (even with -Werror). So we grep stderr for any message 4192 # that says an option was ignored or not supported. 4193 # When given -MP, icc 7.0 and 7.1 complain thusly: 4194 # icc: Command line warning: ignoring option '-M'; no argument required 4195 # The diagnosis changed in icc 8.0: 4196 # icc: Command line remark: option '-MP' not supported 4197 if (grep 'ignoring option' conftest.err || 4198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4199 am_cv_CC_dependencies_compiler_type=$depmode 4200 break 4201 fi 4202 fi 4203 done 4204 4205 cd .. 4206 rm -rf conftest.dir 4207else 4208 am_cv_CC_dependencies_compiler_type=none 4209fi 4210 4211fi 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4213$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4214CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4215 4216 if 4217 test "x$enable_dependency_tracking" != xno \ 4218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4219 am__fastdepCC_TRUE= 4220 am__fastdepCC_FALSE='#' 4221else 4222 am__fastdepCC_TRUE='#' 4223 am__fastdepCC_FALSE= 4224fi 4225 4226 4227 4228ac_ext=c 4229ac_cpp='$CPP $CPPFLAGS' 4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4232ac_compiler_gnu=$ac_cv_c_compiler_gnu 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4234$as_echo_n "checking how to run the C preprocessor... " >&6; } 4235# On Suns, sometimes $CPP names a directory. 4236if test -n "$CPP" && test -d "$CPP"; then 4237 CPP= 4238fi 4239if test -z "$CPP"; then 4240 if ${ac_cv_prog_CPP+:} false; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 # Double quotes because CPP needs to be expanded 4244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4245 do 4246 ac_preproc_ok=false 4247for ac_c_preproc_warn_flag in '' yes 4248do 4249 # Use a header file that comes with gcc, so configuring glibc 4250 # with a fresh cross-compiler works. 4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4252 # <limits.h> exists even on freestanding compilers. 4253 # On the NeXT, cc -E runs the code through the compiler's parser, 4254 # not just through cpp. "Syntax error" is here to catch this case. 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257#ifdef __STDC__ 4258# include <limits.h> 4259#else 4260# include <assert.h> 4261#endif 4262 Syntax error 4263_ACEOF 4264if ac_fn_c_try_cpp "$LINENO"; then : 4265 4266else 4267 # Broken: fails on valid input. 4268continue 4269fi 4270rm -f conftest.err conftest.i conftest.$ac_ext 4271 4272 # OK, works on sane cases. Now check whether nonexistent headers 4273 # can be detected and how. 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276#include <ac_nonexistent.h> 4277_ACEOF 4278if ac_fn_c_try_cpp "$LINENO"; then : 4279 # Broken: success on invalid input. 4280continue 4281else 4282 # Passes both tests. 4283ac_preproc_ok=: 4284break 4285fi 4286rm -f conftest.err conftest.i conftest.$ac_ext 4287 4288done 4289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4290rm -f conftest.i conftest.err conftest.$ac_ext 4291if $ac_preproc_ok; then : 4292 break 4293fi 4294 4295 done 4296 ac_cv_prog_CPP=$CPP 4297 4298fi 4299 CPP=$ac_cv_prog_CPP 4300else 4301 ac_cv_prog_CPP=$CPP 4302fi 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4304$as_echo "$CPP" >&6; } 4305ac_preproc_ok=false 4306for ac_c_preproc_warn_flag in '' yes 4307do 4308 # Use a header file that comes with gcc, so configuring glibc 4309 # with a fresh cross-compiler works. 4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4311 # <limits.h> exists even on freestanding compilers. 4312 # On the NeXT, cc -E runs the code through the compiler's parser, 4313 # not just through cpp. "Syntax error" is here to catch this case. 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4315/* end confdefs.h. */ 4316#ifdef __STDC__ 4317# include <limits.h> 4318#else 4319# include <assert.h> 4320#endif 4321 Syntax error 4322_ACEOF 4323if ac_fn_c_try_cpp "$LINENO"; then : 4324 4325else 4326 # Broken: fails on valid input. 4327continue 4328fi 4329rm -f conftest.err conftest.i conftest.$ac_ext 4330 4331 # OK, works on sane cases. Now check whether nonexistent headers 4332 # can be detected and how. 4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4334/* end confdefs.h. */ 4335#include <ac_nonexistent.h> 4336_ACEOF 4337if ac_fn_c_try_cpp "$LINENO"; then : 4338 # Broken: success on invalid input. 4339continue 4340else 4341 # Passes both tests. 4342ac_preproc_ok=: 4343break 4344fi 4345rm -f conftest.err conftest.i conftest.$ac_ext 4346 4347done 4348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4349rm -f conftest.i conftest.err conftest.$ac_ext 4350if $ac_preproc_ok; then : 4351 4352else 4353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4355as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4356See \`config.log' for more details" "$LINENO" 5; } 4357fi 4358 4359ac_ext=c 4360ac_cpp='$CPP $CPPFLAGS' 4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4363ac_compiler_gnu=$ac_cv_c_compiler_gnu 4364 4365 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4367$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4368if ${ac_cv_path_GREP+:} false; then : 4369 $as_echo_n "(cached) " >&6 4370else 4371 if test -z "$GREP"; then 4372 ac_path_GREP_found=false 4373 # Loop through the user's path and test for each of PROGNAME-LIST 4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4376do 4377 IFS=$as_save_IFS 4378 test -z "$as_dir" && as_dir=. 4379 for ac_prog in grep ggrep; do 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4382 as_fn_executable_p "$ac_path_GREP" || continue 4383# Check for GNU ac_path_GREP and select it if it is found. 4384 # Check for GNU $ac_path_GREP 4385case `"$ac_path_GREP" --version 2>&1` in 4386*GNU*) 4387 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4388*) 4389 ac_count=0 4390 $as_echo_n 0123456789 >"conftest.in" 4391 while : 4392 do 4393 cat "conftest.in" "conftest.in" >"conftest.tmp" 4394 mv "conftest.tmp" "conftest.in" 4395 cp "conftest.in" "conftest.nl" 4396 $as_echo 'GREP' >> "conftest.nl" 4397 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4399 as_fn_arith $ac_count + 1 && ac_count=$as_val 4400 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4401 # Best one so far, save it but keep looking for a better one 4402 ac_cv_path_GREP="$ac_path_GREP" 4403 ac_path_GREP_max=$ac_count 4404 fi 4405 # 10*(2^10) chars as input seems more than enough 4406 test $ac_count -gt 10 && break 4407 done 4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4409esac 4410 4411 $ac_path_GREP_found && break 3 4412 done 4413 done 4414 done 4415IFS=$as_save_IFS 4416 if test -z "$ac_cv_path_GREP"; then 4417 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4418 fi 4419else 4420 ac_cv_path_GREP=$GREP 4421fi 4422 4423fi 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4425$as_echo "$ac_cv_path_GREP" >&6; } 4426 GREP="$ac_cv_path_GREP" 4427 4428 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4430$as_echo_n "checking for egrep... " >&6; } 4431if ${ac_cv_path_EGREP+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4435 then ac_cv_path_EGREP="$GREP -E" 4436 else 4437 if test -z "$EGREP"; then 4438 ac_path_EGREP_found=false 4439 # Loop through the user's path and test for each of PROGNAME-LIST 4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_prog in egrep; do 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4448 as_fn_executable_p "$ac_path_EGREP" || continue 4449# Check for GNU ac_path_EGREP and select it if it is found. 4450 # Check for GNU $ac_path_EGREP 4451case `"$ac_path_EGREP" --version 2>&1` in 4452*GNU*) 4453 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4454*) 4455 ac_count=0 4456 $as_echo_n 0123456789 >"conftest.in" 4457 while : 4458 do 4459 cat "conftest.in" "conftest.in" >"conftest.tmp" 4460 mv "conftest.tmp" "conftest.in" 4461 cp "conftest.in" "conftest.nl" 4462 $as_echo 'EGREP' >> "conftest.nl" 4463 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4465 as_fn_arith $ac_count + 1 && ac_count=$as_val 4466 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4467 # Best one so far, save it but keep looking for a better one 4468 ac_cv_path_EGREP="$ac_path_EGREP" 4469 ac_path_EGREP_max=$ac_count 4470 fi 4471 # 10*(2^10) chars as input seems more than enough 4472 test $ac_count -gt 10 && break 4473 done 4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4475esac 4476 4477 $ac_path_EGREP_found && break 3 4478 done 4479 done 4480 done 4481IFS=$as_save_IFS 4482 if test -z "$ac_cv_path_EGREP"; then 4483 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4484 fi 4485else 4486 ac_cv_path_EGREP=$EGREP 4487fi 4488 4489 fi 4490fi 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4492$as_echo "$ac_cv_path_EGREP" >&6; } 4493 EGREP="$ac_cv_path_EGREP" 4494 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4497$as_echo_n "checking for ANSI C header files... " >&6; } 4498if ${ac_cv_header_stdc+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502/* end confdefs.h. */ 4503#include <stdlib.h> 4504#include <stdarg.h> 4505#include <string.h> 4506#include <float.h> 4507 4508int 4509main () 4510{ 4511 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516if ac_fn_c_try_compile "$LINENO"; then : 4517 ac_cv_header_stdc=yes 4518else 4519 ac_cv_header_stdc=no 4520fi 4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4522 4523if test $ac_cv_header_stdc = yes; then 4524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527#include <string.h> 4528 4529_ACEOF 4530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4531 $EGREP "memchr" >/dev/null 2>&1; then : 4532 4533else 4534 ac_cv_header_stdc=no 4535fi 4536rm -f conftest* 4537 4538fi 4539 4540if test $ac_cv_header_stdc = yes; then 4541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4543/* end confdefs.h. */ 4544#include <stdlib.h> 4545 4546_ACEOF 4547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4548 $EGREP "free" >/dev/null 2>&1; then : 4549 4550else 4551 ac_cv_header_stdc=no 4552fi 4553rm -f conftest* 4554 4555fi 4556 4557if test $ac_cv_header_stdc = yes; then 4558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4559 if test "$cross_compiling" = yes; then : 4560 : 4561else 4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4563/* end confdefs.h. */ 4564#include <ctype.h> 4565#include <stdlib.h> 4566#if ((' ' & 0x0FF) == 0x020) 4567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4569#else 4570# define ISLOWER(c) \ 4571 (('a' <= (c) && (c) <= 'i') \ 4572 || ('j' <= (c) && (c) <= 'r') \ 4573 || ('s' <= (c) && (c) <= 'z')) 4574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4575#endif 4576 4577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4578int 4579main () 4580{ 4581 int i; 4582 for (i = 0; i < 256; i++) 4583 if (XOR (islower (i), ISLOWER (i)) 4584 || toupper (i) != TOUPPER (i)) 4585 return 2; 4586 return 0; 4587} 4588_ACEOF 4589if ac_fn_c_try_run "$LINENO"; then : 4590 4591else 4592 ac_cv_header_stdc=no 4593fi 4594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4595 conftest.$ac_objext conftest.beam conftest.$ac_ext 4596fi 4597 4598fi 4599fi 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4601$as_echo "$ac_cv_header_stdc" >&6; } 4602if test $ac_cv_header_stdc = yes; then 4603 4604$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4605 4606fi 4607 4608# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4609for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4610 inttypes.h stdint.h unistd.h 4611do : 4612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4613ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4614" 4615if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4616 cat >>confdefs.h <<_ACEOF 4617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4618_ACEOF 4619 4620fi 4621 4622done 4623 4624 4625 4626 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4627if test "x$ac_cv_header_minix_config_h" = xyes; then : 4628 MINIX=yes 4629else 4630 MINIX= 4631fi 4632 4633 4634 if test "$MINIX" = yes; then 4635 4636$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4637 4638 4639$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4640 4641 4642$as_echo "#define _MINIX 1" >>confdefs.h 4643 4644 fi 4645 4646 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4648$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4649if ${ac_cv_safe_to_define___extensions__+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4653/* end confdefs.h. */ 4654 4655# define __EXTENSIONS__ 1 4656 $ac_includes_default 4657int 4658main () 4659{ 4660 4661 ; 4662 return 0; 4663} 4664_ACEOF 4665if ac_fn_c_try_compile "$LINENO"; then : 4666 ac_cv_safe_to_define___extensions__=yes 4667else 4668 ac_cv_safe_to_define___extensions__=no 4669fi 4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4671fi 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4673$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4674 test $ac_cv_safe_to_define___extensions__ = yes && 4675 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4676 4677 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4678 4679 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4680 4681 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4682 4683 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4684 4685 4686 4687# Initialize libtool 4688case `pwd` in 4689 *\ * | *\ *) 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4691$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4692esac 4693 4694 4695 4696macro_version='2.4.2' 4697macro_revision='1.3337' 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711ltmain="$ac_aux_dir/ltmain.sh" 4712 4713# Make sure we can run config.sub. 4714$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4715 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4716 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4718$as_echo_n "checking build system type... " >&6; } 4719if ${ac_cv_build+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 ac_build_alias=$build_alias 4723test "x$ac_build_alias" = x && 4724 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4725test "x$ac_build_alias" = x && 4726 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4727ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4728 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4729 4730fi 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4732$as_echo "$ac_cv_build" >&6; } 4733case $ac_cv_build in 4734*-*-*) ;; 4735*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4736esac 4737build=$ac_cv_build 4738ac_save_IFS=$IFS; IFS='-' 4739set x $ac_cv_build 4740shift 4741build_cpu=$1 4742build_vendor=$2 4743shift; shift 4744# Remember, the first character of IFS is used to create $*, 4745# except with old shells: 4746build_os=$* 4747IFS=$ac_save_IFS 4748case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4749 4750 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4752$as_echo_n "checking host system type... " >&6; } 4753if ${ac_cv_host+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 if test "x$host_alias" = x; then 4757 ac_cv_host=$ac_cv_build 4758else 4759 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4761fi 4762 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4765$as_echo "$ac_cv_host" >&6; } 4766case $ac_cv_host in 4767*-*-*) ;; 4768*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4769esac 4770host=$ac_cv_host 4771ac_save_IFS=$IFS; IFS='-' 4772set x $ac_cv_host 4773shift 4774host_cpu=$1 4775host_vendor=$2 4776shift; shift 4777# Remember, the first character of IFS is used to create $*, 4778# except with old shells: 4779host_os=$* 4780IFS=$ac_save_IFS 4781case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4782 4783 4784# Backslashify metacharacters that are still active within 4785# double-quoted strings. 4786sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4787 4788# Same as above, but do not quote variable references. 4789double_quote_subst='s/\(["`\\]\)/\\\1/g' 4790 4791# Sed substitution to delay expansion of an escaped shell variable in a 4792# double_quote_subst'ed string. 4793delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4794 4795# Sed substitution to delay expansion of an escaped single quote. 4796delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4797 4798# Sed substitution to avoid accidental globbing in evaled expressions 4799no_glob_subst='s/\*/\\\*/g' 4800 4801ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4802ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4803ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4804 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4806$as_echo_n "checking how to print strings... " >&6; } 4807# Test print first, because it will be a builtin if present. 4808if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4809 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4810 ECHO='print -r --' 4811elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4812 ECHO='printf %s\n' 4813else 4814 # Use this function as a fallback that always works. 4815 func_fallback_echo () 4816 { 4817 eval 'cat <<_LTECHO_EOF 4818$1 4819_LTECHO_EOF' 4820 } 4821 ECHO='func_fallback_echo' 4822fi 4823 4824# func_echo_all arg... 4825# Invoke $ECHO with all args, space-separated. 4826func_echo_all () 4827{ 4828 $ECHO "" 4829} 4830 4831case "$ECHO" in 4832 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4833$as_echo "printf" >&6; } ;; 4834 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4835$as_echo "print -r" >&6; } ;; 4836 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4837$as_echo "cat" >&6; } ;; 4838esac 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4854$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4855if ${ac_cv_path_SED+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4859 for ac_i in 1 2 3 4 5 6 7; do 4860 ac_script="$ac_script$as_nl$ac_script" 4861 done 4862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4863 { ac_script=; unset ac_script;} 4864 if test -z "$SED"; then 4865 ac_path_SED_found=false 4866 # Loop through the user's path and test for each of PROGNAME-LIST 4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868for as_dir in $PATH 4869do 4870 IFS=$as_save_IFS 4871 test -z "$as_dir" && as_dir=. 4872 for ac_prog in sed gsed; do 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4875 as_fn_executable_p "$ac_path_SED" || continue 4876# Check for GNU ac_path_SED and select it if it is found. 4877 # Check for GNU $ac_path_SED 4878case `"$ac_path_SED" --version 2>&1` in 4879*GNU*) 4880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4881*) 4882 ac_count=0 4883 $as_echo_n 0123456789 >"conftest.in" 4884 while : 4885 do 4886 cat "conftest.in" "conftest.in" >"conftest.tmp" 4887 mv "conftest.tmp" "conftest.in" 4888 cp "conftest.in" "conftest.nl" 4889 $as_echo '' >> "conftest.nl" 4890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4892 as_fn_arith $ac_count + 1 && ac_count=$as_val 4893 if test $ac_count -gt ${ac_path_SED_max-0}; then 4894 # Best one so far, save it but keep looking for a better one 4895 ac_cv_path_SED="$ac_path_SED" 4896 ac_path_SED_max=$ac_count 4897 fi 4898 # 10*(2^10) chars as input seems more than enough 4899 test $ac_count -gt 10 && break 4900 done 4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4902esac 4903 4904 $ac_path_SED_found && break 3 4905 done 4906 done 4907 done 4908IFS=$as_save_IFS 4909 if test -z "$ac_cv_path_SED"; then 4910 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4911 fi 4912else 4913 ac_cv_path_SED=$SED 4914fi 4915 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4918$as_echo "$ac_cv_path_SED" >&6; } 4919 SED="$ac_cv_path_SED" 4920 rm -f conftest.sed 4921 4922test -z "$SED" && SED=sed 4923Xsed="$SED -e 1s/^X//" 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4936$as_echo_n "checking for fgrep... " >&6; } 4937if ${ac_cv_path_FGREP+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4941 then ac_cv_path_FGREP="$GREP -F" 4942 else 4943 if test -z "$FGREP"; then 4944 ac_path_FGREP_found=false 4945 # Loop through the user's path and test for each of PROGNAME-LIST 4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4948do 4949 IFS=$as_save_IFS 4950 test -z "$as_dir" && as_dir=. 4951 for ac_prog in fgrep; do 4952 for ac_exec_ext in '' $ac_executable_extensions; do 4953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4954 as_fn_executable_p "$ac_path_FGREP" || continue 4955# Check for GNU ac_path_FGREP and select it if it is found. 4956 # Check for GNU $ac_path_FGREP 4957case `"$ac_path_FGREP" --version 2>&1` in 4958*GNU*) 4959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4960*) 4961 ac_count=0 4962 $as_echo_n 0123456789 >"conftest.in" 4963 while : 4964 do 4965 cat "conftest.in" "conftest.in" >"conftest.tmp" 4966 mv "conftest.tmp" "conftest.in" 4967 cp "conftest.in" "conftest.nl" 4968 $as_echo 'FGREP' >> "conftest.nl" 4969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4971 as_fn_arith $ac_count + 1 && ac_count=$as_val 4972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4973 # Best one so far, save it but keep looking for a better one 4974 ac_cv_path_FGREP="$ac_path_FGREP" 4975 ac_path_FGREP_max=$ac_count 4976 fi 4977 # 10*(2^10) chars as input seems more than enough 4978 test $ac_count -gt 10 && break 4979 done 4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4981esac 4982 4983 $ac_path_FGREP_found && break 3 4984 done 4985 done 4986 done 4987IFS=$as_save_IFS 4988 if test -z "$ac_cv_path_FGREP"; then 4989 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4990 fi 4991else 4992 ac_cv_path_FGREP=$FGREP 4993fi 4994 4995 fi 4996fi 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4998$as_echo "$ac_cv_path_FGREP" >&6; } 4999 FGREP="$ac_cv_path_FGREP" 5000 5001 5002test -z "$GREP" && GREP=grep 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022# Check whether --with-gnu-ld was given. 5023if test "${with_gnu_ld+set}" = set; then : 5024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5025else 5026 with_gnu_ld=no 5027fi 5028 5029ac_prog=ld 5030if test "$GCC" = yes; then 5031 # Check if gcc -print-prog-name=ld gives a path. 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5033$as_echo_n "checking for ld used by $CC... " >&6; } 5034 case $host in 5035 *-*-mingw*) 5036 # gcc leaves a trailing carriage return which upsets mingw 5037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5038 *) 5039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5040 esac 5041 case $ac_prog in 5042 # Accept absolute paths. 5043 [\\/]* | ?:[\\/]*) 5044 re_direlt='/[^/][^/]*/\.\./' 5045 # Canonicalize the pathname of ld 5046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5049 done 5050 test -z "$LD" && LD="$ac_prog" 5051 ;; 5052 "") 5053 # If it fails, then pretend we aren't using GCC. 5054 ac_prog=ld 5055 ;; 5056 *) 5057 # If it is relative, then search for the first ld in PATH. 5058 with_gnu_ld=unknown 5059 ;; 5060 esac 5061elif test "$with_gnu_ld" = yes; then 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5063$as_echo_n "checking for GNU ld... " >&6; } 5064else 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5066$as_echo_n "checking for non-GNU ld... " >&6; } 5067fi 5068if ${lt_cv_path_LD+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 if test -z "$LD"; then 5072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5073 for ac_dir in $PATH; do 5074 IFS="$lt_save_ifs" 5075 test -z "$ac_dir" && ac_dir=. 5076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5077 lt_cv_path_LD="$ac_dir/$ac_prog" 5078 # Check to see if the program is GNU ld. I'd rather use --version, 5079 # but apparently some variants of GNU ld only accept -v. 5080 # Break only if it was the GNU/non-GNU ld that we prefer. 5081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5082 *GNU* | *'with BFD'*) 5083 test "$with_gnu_ld" != no && break 5084 ;; 5085 *) 5086 test "$with_gnu_ld" != yes && break 5087 ;; 5088 esac 5089 fi 5090 done 5091 IFS="$lt_save_ifs" 5092else 5093 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5094fi 5095fi 5096 5097LD="$lt_cv_path_LD" 5098if test -n "$LD"; then 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5100$as_echo "$LD" >&6; } 5101else 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5103$as_echo "no" >&6; } 5104fi 5105test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5107$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5108if ${lt_cv_prog_gnu_ld+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5112case `$LD -v 2>&1 </dev/null` in 5113*GNU* | *'with BFD'*) 5114 lt_cv_prog_gnu_ld=yes 5115 ;; 5116*) 5117 lt_cv_prog_gnu_ld=no 5118 ;; 5119esac 5120fi 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5122$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5123with_gnu_ld=$lt_cv_prog_gnu_ld 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5134$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5135if ${lt_cv_path_NM+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 if test -n "$NM"; then 5139 # Let the user override the test. 5140 lt_cv_path_NM="$NM" 5141else 5142 lt_nm_to_check="${ac_tool_prefix}nm" 5143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5144 lt_nm_to_check="$lt_nm_to_check nm" 5145 fi 5146 for lt_tmp_nm in $lt_nm_to_check; do 5147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5149 IFS="$lt_save_ifs" 5150 test -z "$ac_dir" && ac_dir=. 5151 tmp_nm="$ac_dir/$lt_tmp_nm" 5152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5153 # Check to see if the nm accepts a BSD-compat flag. 5154 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5155 # nm: unknown option "B" ignored 5156 # Tru64's nm complains that /dev/null is an invalid object file 5157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5158 */dev/null* | *'Invalid file or object type'*) 5159 lt_cv_path_NM="$tmp_nm -B" 5160 break 5161 ;; 5162 *) 5163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5164 */dev/null*) 5165 lt_cv_path_NM="$tmp_nm -p" 5166 break 5167 ;; 5168 *) 5169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5170 continue # so that we can try to find one that supports BSD flags 5171 ;; 5172 esac 5173 ;; 5174 esac 5175 fi 5176 done 5177 IFS="$lt_save_ifs" 5178 done 5179 : ${lt_cv_path_NM=no} 5180fi 5181fi 5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5183$as_echo "$lt_cv_path_NM" >&6; } 5184if test "$lt_cv_path_NM" != "no"; then 5185 NM="$lt_cv_path_NM" 5186else 5187 # Didn't find any BSD compatible name lister, look for dumpbin. 5188 if test -n "$DUMPBIN"; then : 5189 # Let the user override the test. 5190 else 5191 if test -n "$ac_tool_prefix"; then 5192 for ac_prog in dumpbin "link -dump" 5193 do 5194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5195set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5197$as_echo_n "checking for $ac_word... " >&6; } 5198if ${ac_cv_prog_DUMPBIN+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 if test -n "$DUMPBIN"; then 5202 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5203else 5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5205for as_dir in $PATH 5206do 5207 IFS=$as_save_IFS 5208 test -z "$as_dir" && as_dir=. 5209 for ac_exec_ext in '' $ac_executable_extensions; do 5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5211 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5213 break 2 5214 fi 5215done 5216 done 5217IFS=$as_save_IFS 5218 5219fi 5220fi 5221DUMPBIN=$ac_cv_prog_DUMPBIN 5222if test -n "$DUMPBIN"; then 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5224$as_echo "$DUMPBIN" >&6; } 5225else 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5227$as_echo "no" >&6; } 5228fi 5229 5230 5231 test -n "$DUMPBIN" && break 5232 done 5233fi 5234if test -z "$DUMPBIN"; then 5235 ac_ct_DUMPBIN=$DUMPBIN 5236 for ac_prog in dumpbin "link -dump" 5237do 5238 # Extract the first word of "$ac_prog", so it can be a program name with args. 5239set dummy $ac_prog; ac_word=$2 5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5241$as_echo_n "checking for $ac_word... " >&6; } 5242if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5243 $as_echo_n "(cached) " >&6 5244else 5245 if test -n "$ac_ct_DUMPBIN"; then 5246 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5247else 5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5249for as_dir in $PATH 5250do 5251 IFS=$as_save_IFS 5252 test -z "$as_dir" && as_dir=. 5253 for ac_exec_ext in '' $ac_executable_extensions; do 5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5255 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5257 break 2 5258 fi 5259done 5260 done 5261IFS=$as_save_IFS 5262 5263fi 5264fi 5265ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5266if test -n "$ac_ct_DUMPBIN"; then 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5268$as_echo "$ac_ct_DUMPBIN" >&6; } 5269else 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5271$as_echo "no" >&6; } 5272fi 5273 5274 5275 test -n "$ac_ct_DUMPBIN" && break 5276done 5277 5278 if test "x$ac_ct_DUMPBIN" = x; then 5279 DUMPBIN=":" 5280 else 5281 case $cross_compiling:$ac_tool_warned in 5282yes:) 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5285ac_tool_warned=yes ;; 5286esac 5287 DUMPBIN=$ac_ct_DUMPBIN 5288 fi 5289fi 5290 5291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5292 *COFF*) 5293 DUMPBIN="$DUMPBIN -symbols" 5294 ;; 5295 *) 5296 DUMPBIN=: 5297 ;; 5298 esac 5299 fi 5300 5301 if test "$DUMPBIN" != ":"; then 5302 NM="$DUMPBIN" 5303 fi 5304fi 5305test -z "$NM" && NM=nm 5306 5307 5308 5309 5310 5311 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5313$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5314if ${lt_cv_nm_interface+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 lt_cv_nm_interface="BSD nm" 5318 echo "int some_variable = 0;" > conftest.$ac_ext 5319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5320 (eval "$ac_compile" 2>conftest.err) 5321 cat conftest.err >&5 5322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5324 cat conftest.err >&5 5325 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5326 cat conftest.out >&5 5327 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5328 lt_cv_nm_interface="MS dumpbin" 5329 fi 5330 rm -f conftest* 5331fi 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5333$as_echo "$lt_cv_nm_interface" >&6; } 5334 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5336$as_echo_n "checking whether ln -s works... " >&6; } 5337LN_S=$as_ln_s 5338if test "$LN_S" = "ln -s"; then 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5340$as_echo "yes" >&6; } 5341else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5343$as_echo "no, using $LN_S" >&6; } 5344fi 5345 5346# find the maximum length of command line arguments 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5348$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5349if ${lt_cv_sys_max_cmd_len+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 i=0 5353 teststring="ABCD" 5354 5355 case $build_os in 5356 msdosdjgpp*) 5357 # On DJGPP, this test can blow up pretty badly due to problems in libc 5358 # (any single argument exceeding 2000 bytes causes a buffer overrun 5359 # during glob expansion). Even if it were fixed, the result of this 5360 # check would be larger than it should be. 5361 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5362 ;; 5363 5364 gnu*) 5365 # Under GNU Hurd, this test is not required because there is 5366 # no limit to the length of command line arguments. 5367 # Libtool will interpret -1 as no limit whatsoever 5368 lt_cv_sys_max_cmd_len=-1; 5369 ;; 5370 5371 cygwin* | mingw* | cegcc*) 5372 # On Win9x/ME, this test blows up -- it succeeds, but takes 5373 # about 5 minutes as the teststring grows exponentially. 5374 # Worse, since 9x/ME are not pre-emptively multitasking, 5375 # you end up with a "frozen" computer, even though with patience 5376 # the test eventually succeeds (with a max line length of 256k). 5377 # Instead, let's just punt: use the minimum linelength reported by 5378 # all of the supported platforms: 8192 (on NT/2K/XP). 5379 lt_cv_sys_max_cmd_len=8192; 5380 ;; 5381 5382 mint*) 5383 # On MiNT this can take a long time and run out of memory. 5384 lt_cv_sys_max_cmd_len=8192; 5385 ;; 5386 5387 amigaos*) 5388 # On AmigaOS with pdksh, this test takes hours, literally. 5389 # So we just punt and use a minimum line length of 8192. 5390 lt_cv_sys_max_cmd_len=8192; 5391 ;; 5392 5393 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5394 # This has been around since 386BSD, at least. Likely further. 5395 if test -x /sbin/sysctl; then 5396 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5397 elif test -x /usr/sbin/sysctl; then 5398 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5399 else 5400 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5401 fi 5402 # And add a safety zone 5403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5405 ;; 5406 5407 interix*) 5408 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5409 lt_cv_sys_max_cmd_len=196608 5410 ;; 5411 5412 os2*) 5413 # The test takes a long time on OS/2. 5414 lt_cv_sys_max_cmd_len=8192 5415 ;; 5416 5417 osf*) 5418 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5419 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5420 # nice to cause kernel panics so lets avoid the loop below. 5421 # First set a reasonable default. 5422 lt_cv_sys_max_cmd_len=16384 5423 # 5424 if test -x /sbin/sysconfig; then 5425 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5426 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5427 esac 5428 fi 5429 ;; 5430 sco3.2v5*) 5431 lt_cv_sys_max_cmd_len=102400 5432 ;; 5433 sysv5* | sco5v6* | sysv4.2uw2*) 5434 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5435 if test -n "$kargmax"; then 5436 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5437 else 5438 lt_cv_sys_max_cmd_len=32768 5439 fi 5440 ;; 5441 *) 5442 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5443 if test -n "$lt_cv_sys_max_cmd_len"; then 5444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5446 else 5447 # Make teststring a little bigger before we do anything with it. 5448 # a 1K string should be a reasonable start. 5449 for i in 1 2 3 4 5 6 7 8 ; do 5450 teststring=$teststring$teststring 5451 done 5452 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5453 # If test is not a shell built-in, we'll probably end up computing a 5454 # maximum length that is only half of the actual maximum length, but 5455 # we can't tell. 5456 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5457 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5458 test $i != 17 # 1/2 MB should be enough 5459 do 5460 i=`expr $i + 1` 5461 teststring=$teststring$teststring 5462 done 5463 # Only check the string length outside the loop. 5464 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5465 teststring= 5466 # Add a significant safety factor because C++ compilers can tack on 5467 # massive amounts of additional arguments before passing them to the 5468 # linker. It appears as though 1/2 is a usable value. 5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5470 fi 5471 ;; 5472 esac 5473 5474fi 5475 5476if test -n $lt_cv_sys_max_cmd_len ; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5478$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5479else 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5481$as_echo "none" >&6; } 5482fi 5483max_cmd_len=$lt_cv_sys_max_cmd_len 5484 5485 5486 5487 5488 5489 5490: ${CP="cp -f"} 5491: ${MV="mv -f"} 5492: ${RM="rm -f"} 5493 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5495$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5496# Try some XSI features 5497xsi_shell=no 5498( _lt_dummy="a/b/c" 5499 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5500 = c,a/b,b/c, \ 5501 && eval 'test $(( 1 + 1 )) -eq 2 \ 5502 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5503 && xsi_shell=yes 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5505$as_echo "$xsi_shell" >&6; } 5506 5507 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5509$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5510lt_shell_append=no 5511( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5512 >/dev/null 2>&1 \ 5513 && lt_shell_append=yes 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5515$as_echo "$lt_shell_append" >&6; } 5516 5517 5518if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5519 lt_unset=unset 5520else 5521 lt_unset=false 5522fi 5523 5524 5525 5526 5527 5528# test EBCDIC or ASCII 5529case `echo X|tr X '\101'` in 5530 A) # ASCII based system 5531 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5532 lt_SP2NL='tr \040 \012' 5533 lt_NL2SP='tr \015\012 \040\040' 5534 ;; 5535 *) # EBCDIC based system 5536 lt_SP2NL='tr \100 \n' 5537 lt_NL2SP='tr \r\n \100\100' 5538 ;; 5539esac 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5550$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5551if ${lt_cv_to_host_file_cmd+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 case $host in 5555 *-*-mingw* ) 5556 case $build in 5557 *-*-mingw* ) # actually msys 5558 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5559 ;; 5560 *-*-cygwin* ) 5561 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5562 ;; 5563 * ) # otherwise, assume *nix 5564 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5565 ;; 5566 esac 5567 ;; 5568 *-*-cygwin* ) 5569 case $build in 5570 *-*-mingw* ) # actually msys 5571 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5572 ;; 5573 *-*-cygwin* ) 5574 lt_cv_to_host_file_cmd=func_convert_file_noop 5575 ;; 5576 * ) # otherwise, assume *nix 5577 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5578 ;; 5579 esac 5580 ;; 5581 * ) # unhandled hosts (and "normal" native builds) 5582 lt_cv_to_host_file_cmd=func_convert_file_noop 5583 ;; 5584esac 5585 5586fi 5587 5588to_host_file_cmd=$lt_cv_to_host_file_cmd 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5590$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5591 5592 5593 5594 5595 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5597$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5598if ${lt_cv_to_tool_file_cmd+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 #assume ordinary cross tools, or native build. 5602lt_cv_to_tool_file_cmd=func_convert_file_noop 5603case $host in 5604 *-*-mingw* ) 5605 case $build in 5606 *-*-mingw* ) # actually msys 5607 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5608 ;; 5609 esac 5610 ;; 5611esac 5612 5613fi 5614 5615to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5617$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5618 5619 5620 5621 5622 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5624$as_echo_n "checking for $LD option to reload object files... " >&6; } 5625if ${lt_cv_ld_reload_flag+:} false; then : 5626 $as_echo_n "(cached) " >&6 5627else 5628 lt_cv_ld_reload_flag='-r' 5629fi 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5631$as_echo "$lt_cv_ld_reload_flag" >&6; } 5632reload_flag=$lt_cv_ld_reload_flag 5633case $reload_flag in 5634"" | " "*) ;; 5635*) reload_flag=" $reload_flag" ;; 5636esac 5637reload_cmds='$LD$reload_flag -o $output$reload_objs' 5638case $host_os in 5639 cygwin* | mingw* | pw32* | cegcc*) 5640 if test "$GCC" != yes; then 5641 reload_cmds=false 5642 fi 5643 ;; 5644 darwin*) 5645 if test "$GCC" = yes; then 5646 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5647 else 5648 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5649 fi 5650 ;; 5651esac 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661if test -n "$ac_tool_prefix"; then 5662 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5663set dummy ${ac_tool_prefix}objdump; ac_word=$2 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665$as_echo_n "checking for $ac_word... " >&6; } 5666if ${ac_cv_prog_OBJDUMP+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 if test -n "$OBJDUMP"; then 5670 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5671else 5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5673for as_dir in $PATH 5674do 5675 IFS=$as_save_IFS 5676 test -z "$as_dir" && as_dir=. 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5679 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5681 break 2 5682 fi 5683done 5684 done 5685IFS=$as_save_IFS 5686 5687fi 5688fi 5689OBJDUMP=$ac_cv_prog_OBJDUMP 5690if test -n "$OBJDUMP"; then 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5692$as_echo "$OBJDUMP" >&6; } 5693else 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5695$as_echo "no" >&6; } 5696fi 5697 5698 5699fi 5700if test -z "$ac_cv_prog_OBJDUMP"; then 5701 ac_ct_OBJDUMP=$OBJDUMP 5702 # Extract the first word of "objdump", so it can be a program name with args. 5703set dummy objdump; ac_word=$2 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5705$as_echo_n "checking for $ac_word... " >&6; } 5706if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 if test -n "$ac_ct_OBJDUMP"; then 5710 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5711else 5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713for as_dir in $PATH 5714do 5715 IFS=$as_save_IFS 5716 test -z "$as_dir" && as_dir=. 5717 for ac_exec_ext in '' $ac_executable_extensions; do 5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5719 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5721 break 2 5722 fi 5723done 5724 done 5725IFS=$as_save_IFS 5726 5727fi 5728fi 5729ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5730if test -n "$ac_ct_OBJDUMP"; then 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5732$as_echo "$ac_ct_OBJDUMP" >&6; } 5733else 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5735$as_echo "no" >&6; } 5736fi 5737 5738 if test "x$ac_ct_OBJDUMP" = x; then 5739 OBJDUMP="false" 5740 else 5741 case $cross_compiling:$ac_tool_warned in 5742yes:) 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5745ac_tool_warned=yes ;; 5746esac 5747 OBJDUMP=$ac_ct_OBJDUMP 5748 fi 5749else 5750 OBJDUMP="$ac_cv_prog_OBJDUMP" 5751fi 5752 5753test -z "$OBJDUMP" && OBJDUMP=objdump 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5764$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5765if ${lt_cv_deplibs_check_method+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 lt_cv_file_magic_cmd='$MAGIC_CMD' 5769lt_cv_file_magic_test_file= 5770lt_cv_deplibs_check_method='unknown' 5771# Need to set the preceding variable on all platforms that support 5772# interlibrary dependencies. 5773# 'none' -- dependencies not supported. 5774# `unknown' -- same as none, but documents that we really don't know. 5775# 'pass_all' -- all dependencies passed with no checks. 5776# 'test_compile' -- check by making test program. 5777# 'file_magic [[regex]]' -- check by looking for files in library path 5778# which responds to the $file_magic_cmd with a given extended regex. 5779# If you have `file' or equivalent on your system and you're not sure 5780# whether `pass_all' will *always* work, you probably want this one. 5781 5782case $host_os in 5783aix[4-9]*) 5784 lt_cv_deplibs_check_method=pass_all 5785 ;; 5786 5787beos*) 5788 lt_cv_deplibs_check_method=pass_all 5789 ;; 5790 5791bsdi[45]*) 5792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5793 lt_cv_file_magic_cmd='/usr/bin/file -L' 5794 lt_cv_file_magic_test_file=/shlib/libc.so 5795 ;; 5796 5797cygwin*) 5798 # func_win32_libid is a shell function defined in ltmain.sh 5799 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5800 lt_cv_file_magic_cmd='func_win32_libid' 5801 ;; 5802 5803mingw* | pw32*) 5804 # Base MSYS/MinGW do not provide the 'file' command needed by 5805 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5806 # unless we find 'file', for example because we are cross-compiling. 5807 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5808 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5810 lt_cv_file_magic_cmd='func_win32_libid' 5811 else 5812 # Keep this pattern in sync with the one in func_win32_libid. 5813 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5814 lt_cv_file_magic_cmd='$OBJDUMP -f' 5815 fi 5816 ;; 5817 5818cegcc*) 5819 # use the weaker test based on 'objdump'. See mingw*. 5820 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5821 lt_cv_file_magic_cmd='$OBJDUMP -f' 5822 ;; 5823 5824darwin* | rhapsody*) 5825 lt_cv_deplibs_check_method=pass_all 5826 ;; 5827 5828freebsd* | dragonfly*) 5829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5830 case $host_cpu in 5831 i*86 ) 5832 # Not sure whether the presence of OpenBSD here was a mistake. 5833 # Let's accept both of them until this is cleared up. 5834 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5835 lt_cv_file_magic_cmd=/usr/bin/file 5836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5837 ;; 5838 esac 5839 else 5840 lt_cv_deplibs_check_method=pass_all 5841 fi 5842 ;; 5843 5844gnu*) 5845 lt_cv_deplibs_check_method=pass_all 5846 ;; 5847 5848haiku*) 5849 lt_cv_deplibs_check_method=pass_all 5850 ;; 5851 5852hpux10.20* | hpux11*) 5853 lt_cv_file_magic_cmd=/usr/bin/file 5854 case $host_cpu in 5855 ia64*) 5856 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5857 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5858 ;; 5859 hppa*64*) 5860 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]' 5861 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5862 ;; 5863 *) 5864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5865 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5866 ;; 5867 esac 5868 ;; 5869 5870interix[3-9]*) 5871 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5873 ;; 5874 5875irix5* | irix6* | nonstopux*) 5876 case $LD in 5877 *-32|*"-32 ") libmagic=32-bit;; 5878 *-n32|*"-n32 ") libmagic=N32;; 5879 *-64|*"-64 ") libmagic=64-bit;; 5880 *) libmagic=never-match;; 5881 esac 5882 lt_cv_deplibs_check_method=pass_all 5883 ;; 5884 5885# This must be glibc/ELF. 5886linux* | k*bsd*-gnu | kopensolaris*-gnu) 5887 lt_cv_deplibs_check_method=pass_all 5888 ;; 5889 5890netbsd* | netbsdelf*-gnu) 5891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5893 else 5894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5895 fi 5896 ;; 5897 5898newos6*) 5899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5900 lt_cv_file_magic_cmd=/usr/bin/file 5901 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5902 ;; 5903 5904*nto* | *qnx*) 5905 lt_cv_deplibs_check_method=pass_all 5906 ;; 5907 5908openbsd*) 5909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5911 else 5912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5913 fi 5914 ;; 5915 5916osf3* | osf4* | osf5*) 5917 lt_cv_deplibs_check_method=pass_all 5918 ;; 5919 5920rdos*) 5921 lt_cv_deplibs_check_method=pass_all 5922 ;; 5923 5924solaris*) 5925 lt_cv_deplibs_check_method=pass_all 5926 ;; 5927 5928sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5929 lt_cv_deplibs_check_method=pass_all 5930 ;; 5931 5932sysv4 | sysv4.3*) 5933 case $host_vendor in 5934 motorola) 5935 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]' 5936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5937 ;; 5938 ncr) 5939 lt_cv_deplibs_check_method=pass_all 5940 ;; 5941 sequent) 5942 lt_cv_file_magic_cmd='/bin/file' 5943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5944 ;; 5945 sni) 5946 lt_cv_file_magic_cmd='/bin/file' 5947 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5948 lt_cv_file_magic_test_file=/lib/libc.so 5949 ;; 5950 siemens) 5951 lt_cv_deplibs_check_method=pass_all 5952 ;; 5953 pc) 5954 lt_cv_deplibs_check_method=pass_all 5955 ;; 5956 esac 5957 ;; 5958 5959tpf*) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962esac 5963 5964fi 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5966$as_echo "$lt_cv_deplibs_check_method" >&6; } 5967 5968file_magic_glob= 5969want_nocaseglob=no 5970if test "$build" = "$host"; then 5971 case $host_os in 5972 mingw* | pw32*) 5973 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5974 want_nocaseglob=yes 5975 else 5976 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5977 fi 5978 ;; 5979 esac 5980fi 5981 5982file_magic_cmd=$lt_cv_file_magic_cmd 5983deplibs_check_method=$lt_cv_deplibs_check_method 5984test -z "$deplibs_check_method" && deplibs_check_method=unknown 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007if test -n "$ac_tool_prefix"; then 6008 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6009set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6011$as_echo_n "checking for $ac_word... " >&6; } 6012if ${ac_cv_prog_DLLTOOL+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 if test -n "$DLLTOOL"; then 6016 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6017else 6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6019for as_dir in $PATH 6020do 6021 IFS=$as_save_IFS 6022 test -z "$as_dir" && as_dir=. 6023 for ac_exec_ext in '' $ac_executable_extensions; do 6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6025 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6027 break 2 6028 fi 6029done 6030 done 6031IFS=$as_save_IFS 6032 6033fi 6034fi 6035DLLTOOL=$ac_cv_prog_DLLTOOL 6036if test -n "$DLLTOOL"; then 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6038$as_echo "$DLLTOOL" >&6; } 6039else 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6041$as_echo "no" >&6; } 6042fi 6043 6044 6045fi 6046if test -z "$ac_cv_prog_DLLTOOL"; then 6047 ac_ct_DLLTOOL=$DLLTOOL 6048 # Extract the first word of "dlltool", so it can be a program name with args. 6049set dummy dlltool; ac_word=$2 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6051$as_echo_n "checking for $ac_word... " >&6; } 6052if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -n "$ac_ct_DLLTOOL"; then 6056 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6057else 6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6059for as_dir in $PATH 6060do 6061 IFS=$as_save_IFS 6062 test -z "$as_dir" && as_dir=. 6063 for ac_exec_ext in '' $ac_executable_extensions; do 6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6065 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6067 break 2 6068 fi 6069done 6070 done 6071IFS=$as_save_IFS 6072 6073fi 6074fi 6075ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6076if test -n "$ac_ct_DLLTOOL"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6078$as_echo "$ac_ct_DLLTOOL" >&6; } 6079else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081$as_echo "no" >&6; } 6082fi 6083 6084 if test "x$ac_ct_DLLTOOL" = x; then 6085 DLLTOOL="false" 6086 else 6087 case $cross_compiling:$ac_tool_warned in 6088yes:) 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6091ac_tool_warned=yes ;; 6092esac 6093 DLLTOOL=$ac_ct_DLLTOOL 6094 fi 6095else 6096 DLLTOOL="$ac_cv_prog_DLLTOOL" 6097fi 6098 6099test -z "$DLLTOOL" && DLLTOOL=dlltool 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6111$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6112if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 lt_cv_sharedlib_from_linklib_cmd='unknown' 6116 6117case $host_os in 6118cygwin* | mingw* | pw32* | cegcc*) 6119 # two different shell functions defined in ltmain.sh 6120 # decide which to use based on capabilities of $DLLTOOL 6121 case `$DLLTOOL --help 2>&1` in 6122 *--identify-strict*) 6123 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6124 ;; 6125 *) 6126 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6127 ;; 6128 esac 6129 ;; 6130*) 6131 # fallback: assume linklib IS sharedlib 6132 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6133 ;; 6134esac 6135 6136fi 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6138$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6139sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6140test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6141 6142 6143 6144 6145 6146 6147 6148if test -n "$ac_tool_prefix"; then 6149 for ac_prog in ar 6150 do 6151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6152set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6154$as_echo_n "checking for $ac_word... " >&6; } 6155if ${ac_cv_prog_AR+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 if test -n "$AR"; then 6159 ac_cv_prog_AR="$AR" # Let the user override the test. 6160else 6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $PATH 6163do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6168 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172done 6173 done 6174IFS=$as_save_IFS 6175 6176fi 6177fi 6178AR=$ac_cv_prog_AR 6179if test -n "$AR"; then 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6181$as_echo "$AR" >&6; } 6182else 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6184$as_echo "no" >&6; } 6185fi 6186 6187 6188 test -n "$AR" && break 6189 done 6190fi 6191if test -z "$AR"; then 6192 ac_ct_AR=$AR 6193 for ac_prog in ar 6194do 6195 # Extract the first word of "$ac_prog", so it can be a program name with args. 6196set dummy $ac_prog; ac_word=$2 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198$as_echo_n "checking for $ac_word... " >&6; } 6199if ${ac_cv_prog_ac_ct_AR+:} false; then : 6200 $as_echo_n "(cached) " >&6 6201else 6202 if test -n "$ac_ct_AR"; then 6203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6204else 6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206for as_dir in $PATH 6207do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6212 ac_cv_prog_ac_ct_AR="$ac_prog" 6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216done 6217 done 6218IFS=$as_save_IFS 6219 6220fi 6221fi 6222ac_ct_AR=$ac_cv_prog_ac_ct_AR 6223if test -n "$ac_ct_AR"; then 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6225$as_echo "$ac_ct_AR" >&6; } 6226else 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6228$as_echo "no" >&6; } 6229fi 6230 6231 6232 test -n "$ac_ct_AR" && break 6233done 6234 6235 if test "x$ac_ct_AR" = x; then 6236 AR="false" 6237 else 6238 case $cross_compiling:$ac_tool_warned in 6239yes:) 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6242ac_tool_warned=yes ;; 6243esac 6244 AR=$ac_ct_AR 6245 fi 6246fi 6247 6248: ${AR=ar} 6249: ${AR_FLAGS=cru} 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6262$as_echo_n "checking for archiver @FILE support... " >&6; } 6263if ${lt_cv_ar_at_file+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 lt_cv_ar_at_file=no 6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268/* end confdefs.h. */ 6269 6270int 6271main () 6272{ 6273 6274 ; 6275 return 0; 6276} 6277_ACEOF 6278if ac_fn_c_try_compile "$LINENO"; then : 6279 echo conftest.$ac_objext > conftest.lst 6280 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6282 (eval $lt_ar_try) 2>&5 6283 ac_status=$? 6284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6285 test $ac_status = 0; } 6286 if test "$ac_status" -eq 0; then 6287 # Ensure the archiver fails upon bogus file names. 6288 rm -f conftest.$ac_objext libconftest.a 6289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6290 (eval $lt_ar_try) 2>&5 6291 ac_status=$? 6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6293 test $ac_status = 0; } 6294 if test "$ac_status" -ne 0; then 6295 lt_cv_ar_at_file=@ 6296 fi 6297 fi 6298 rm -f conftest.* libconftest.a 6299 6300fi 6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6302 6303fi 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6305$as_echo "$lt_cv_ar_at_file" >&6; } 6306 6307if test "x$lt_cv_ar_at_file" = xno; then 6308 archiver_list_spec= 6309else 6310 archiver_list_spec=$lt_cv_ar_at_file 6311fi 6312 6313 6314 6315 6316 6317 6318 6319if test -n "$ac_tool_prefix"; then 6320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6321set dummy ${ac_tool_prefix}strip; ac_word=$2 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6323$as_echo_n "checking for $ac_word... " >&6; } 6324if ${ac_cv_prog_STRIP+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 if test -n "$STRIP"; then 6328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6329else 6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6331for as_dir in $PATH 6332do 6333 IFS=$as_save_IFS 6334 test -z "$as_dir" && as_dir=. 6335 for ac_exec_ext in '' $ac_executable_extensions; do 6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6337 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6339 break 2 6340 fi 6341done 6342 done 6343IFS=$as_save_IFS 6344 6345fi 6346fi 6347STRIP=$ac_cv_prog_STRIP 6348if test -n "$STRIP"; then 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6350$as_echo "$STRIP" >&6; } 6351else 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6353$as_echo "no" >&6; } 6354fi 6355 6356 6357fi 6358if test -z "$ac_cv_prog_STRIP"; then 6359 ac_ct_STRIP=$STRIP 6360 # Extract the first word of "strip", so it can be a program name with args. 6361set dummy strip; ac_word=$2 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6363$as_echo_n "checking for $ac_word... " >&6; } 6364if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6365 $as_echo_n "(cached) " >&6 6366else 6367 if test -n "$ac_ct_STRIP"; then 6368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6369else 6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371for as_dir in $PATH 6372do 6373 IFS=$as_save_IFS 6374 test -z "$as_dir" && as_dir=. 6375 for ac_exec_ext in '' $ac_executable_extensions; do 6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6377 ac_cv_prog_ac_ct_STRIP="strip" 6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6379 break 2 6380 fi 6381done 6382 done 6383IFS=$as_save_IFS 6384 6385fi 6386fi 6387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6388if test -n "$ac_ct_STRIP"; then 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6390$as_echo "$ac_ct_STRIP" >&6; } 6391else 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6393$as_echo "no" >&6; } 6394fi 6395 6396 if test "x$ac_ct_STRIP" = x; then 6397 STRIP=":" 6398 else 6399 case $cross_compiling:$ac_tool_warned in 6400yes:) 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6403ac_tool_warned=yes ;; 6404esac 6405 STRIP=$ac_ct_STRIP 6406 fi 6407else 6408 STRIP="$ac_cv_prog_STRIP" 6409fi 6410 6411test -z "$STRIP" && STRIP=: 6412 6413 6414 6415 6416 6417 6418if test -n "$ac_tool_prefix"; then 6419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6420set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if ${ac_cv_prog_RANLIB+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$RANLIB"; then 6427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6436 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441 done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446RANLIB=$ac_cv_prog_RANLIB 6447if test -n "$RANLIB"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6449$as_echo "$RANLIB" >&6; } 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 6456fi 6457if test -z "$ac_cv_prog_RANLIB"; then 6458 ac_ct_RANLIB=$RANLIB 6459 # Extract the first word of "ranlib", so it can be a program name with args. 6460set dummy ranlib; ac_word=$2 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$ac_ct_RANLIB"; then 6467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6476 ac_cv_prog_ac_ct_RANLIB="ranlib" 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481 done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6487if test -n "$ac_ct_RANLIB"; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6489$as_echo "$ac_ct_RANLIB" >&6; } 6490else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 if test "x$ac_ct_RANLIB" = x; then 6496 RANLIB=":" 6497 else 6498 case $cross_compiling:$ac_tool_warned in 6499yes:) 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6502ac_tool_warned=yes ;; 6503esac 6504 RANLIB=$ac_ct_RANLIB 6505 fi 6506else 6507 RANLIB="$ac_cv_prog_RANLIB" 6508fi 6509 6510test -z "$RANLIB" && RANLIB=: 6511 6512 6513 6514 6515 6516 6517# Determine commands to create old-style static archives. 6518old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6519old_postinstall_cmds='chmod 644 $oldlib' 6520old_postuninstall_cmds= 6521 6522if test -n "$RANLIB"; then 6523 case $host_os in 6524 openbsd*) 6525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6526 ;; 6527 *) 6528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6529 ;; 6530 esac 6531 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6532fi 6533 6534case $host_os in 6535 darwin*) 6536 lock_old_archive_extraction=yes ;; 6537 *) 6538 lock_old_archive_extraction=no ;; 6539esac 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579# If no C compiler was specified, use CC. 6580LTCC=${LTCC-"$CC"} 6581 6582# If no C compiler flags were specified, use CFLAGS. 6583LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6584 6585# Allow CC to be a program name with arguments. 6586compiler=$CC 6587 6588 6589# Check for command to grab the raw symbol name followed by C symbol from nm. 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6591$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6592if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 6596# These are sane defaults that work on at least a few old systems. 6597# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6598 6599# Character class describing NM global symbol codes. 6600symcode='[BCDEGRST]' 6601 6602# Regexp to match symbols that can be accessed directly from C. 6603sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6604 6605# Define system-specific variables. 6606case $host_os in 6607aix*) 6608 symcode='[BCDT]' 6609 ;; 6610cygwin* | mingw* | pw32* | cegcc*) 6611 symcode='[ABCDGISTW]' 6612 ;; 6613hpux*) 6614 if test "$host_cpu" = ia64; then 6615 symcode='[ABCDEGRST]' 6616 fi 6617 ;; 6618irix* | nonstopux*) 6619 symcode='[BCDEGRST]' 6620 ;; 6621osf*) 6622 symcode='[BCDEGQRST]' 6623 ;; 6624solaris*) 6625 symcode='[BDRT]' 6626 ;; 6627sco3.2v5*) 6628 symcode='[DT]' 6629 ;; 6630sysv4.2uw2*) 6631 symcode='[DT]' 6632 ;; 6633sysv5* | sco5v6* | unixware* | OpenUNIX*) 6634 symcode='[ABDT]' 6635 ;; 6636sysv4) 6637 symcode='[DFNSTU]' 6638 ;; 6639esac 6640 6641# If we're using GNU nm, then use its standard symbol codes. 6642case `$NM -V 2>&1` in 6643*GNU* | *'with BFD'*) 6644 symcode='[ABCDGIRSTW]' ;; 6645esac 6646 6647# Transform an extracted symbol line into a proper C declaration. 6648# Some systems (esp. on ia64) link data and code symbols differently, 6649# so use this general approach. 6650lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6651 6652# Transform an extracted symbol line into symbol name and symbol address 6653lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6654lt_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'" 6655 6656# Handle CRLF in mingw tool chain 6657opt_cr= 6658case $build_os in 6659mingw*) 6660 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6661 ;; 6662esac 6663 6664# Try without a prefix underscore, then with it. 6665for ac_symprfx in "" "_"; do 6666 6667 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6668 symxfrm="\\1 $ac_symprfx\\2 \\2" 6669 6670 # Write the raw and C identifiers. 6671 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6672 # Fake it for dumpbin and say T for any non-static function 6673 # and D for any global variable. 6674 # Also find C++ and __fastcall symbols from MSVC++, 6675 # which start with @ or ?. 6676 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6677" {last_section=section; section=\$ 3};"\ 6678" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6679" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6680" \$ 0!~/External *\|/{next};"\ 6681" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6682" {if(hide[section]) next};"\ 6683" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6684" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6685" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6686" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6687" ' prfx=^$ac_symprfx" 6688 else 6689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6690 fi 6691 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6692 6693 # Check to see that the pipe works correctly. 6694 pipe_works=no 6695 6696 rm -f conftest* 6697 cat > conftest.$ac_ext <<_LT_EOF 6698#ifdef __cplusplus 6699extern "C" { 6700#endif 6701char nm_test_var; 6702void nm_test_func(void); 6703void nm_test_func(void){} 6704#ifdef __cplusplus 6705} 6706#endif 6707int main(){nm_test_var='a';nm_test_func();return(0);} 6708_LT_EOF 6709 6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6711 (eval $ac_compile) 2>&5 6712 ac_status=$? 6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6714 test $ac_status = 0; }; then 6715 # Now try to grab the symbols. 6716 nlist=conftest.nm 6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6718 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6719 ac_status=$? 6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6721 test $ac_status = 0; } && test -s "$nlist"; then 6722 # Try sorting and uniquifying the output. 6723 if sort "$nlist" | uniq > "$nlist"T; then 6724 mv -f "$nlist"T "$nlist" 6725 else 6726 rm -f "$nlist"T 6727 fi 6728 6729 # Make sure that we snagged all the symbols we need. 6730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6732 cat <<_LT_EOF > conftest.$ac_ext 6733/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6734#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6735/* DATA imports from DLLs on WIN32 con't be const, because runtime 6736 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6737# define LT_DLSYM_CONST 6738#elif defined(__osf__) 6739/* This system does not cope well with relocations in const data. */ 6740# define LT_DLSYM_CONST 6741#else 6742# define LT_DLSYM_CONST const 6743#endif 6744 6745#ifdef __cplusplus 6746extern "C" { 6747#endif 6748 6749_LT_EOF 6750 # Now generate the symbol file. 6751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6752 6753 cat <<_LT_EOF >> conftest.$ac_ext 6754 6755/* The mapping between symbol names and symbols. */ 6756LT_DLSYM_CONST struct { 6757 const char *name; 6758 void *address; 6759} 6760lt__PROGRAM__LTX_preloaded_symbols[] = 6761{ 6762 { "@PROGRAM@", (void *) 0 }, 6763_LT_EOF 6764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6765 cat <<\_LT_EOF >> conftest.$ac_ext 6766 {0, (void *) 0} 6767}; 6768 6769/* This works around a problem in FreeBSD linker */ 6770#ifdef FREEBSD_WORKAROUND 6771static const void *lt_preloaded_setup() { 6772 return lt__PROGRAM__LTX_preloaded_symbols; 6773} 6774#endif 6775 6776#ifdef __cplusplus 6777} 6778#endif 6779_LT_EOF 6780 # Now try linking the two files. 6781 mv conftest.$ac_objext conftstm.$ac_objext 6782 lt_globsym_save_LIBS=$LIBS 6783 lt_globsym_save_CFLAGS=$CFLAGS 6784 LIBS="conftstm.$ac_objext" 6785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6787 (eval $ac_link) 2>&5 6788 ac_status=$? 6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6790 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6791 pipe_works=yes 6792 fi 6793 LIBS=$lt_globsym_save_LIBS 6794 CFLAGS=$lt_globsym_save_CFLAGS 6795 else 6796 echo "cannot find nm_test_func in $nlist" >&5 6797 fi 6798 else 6799 echo "cannot find nm_test_var in $nlist" >&5 6800 fi 6801 else 6802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6803 fi 6804 else 6805 echo "$progname: failed program was:" >&5 6806 cat conftest.$ac_ext >&5 6807 fi 6808 rm -rf conftest* conftst* 6809 6810 # Do not use the global_symbol_pipe unless it works. 6811 if test "$pipe_works" = yes; then 6812 break 6813 else 6814 lt_cv_sys_global_symbol_pipe= 6815 fi 6816done 6817 6818fi 6819 6820if test -z "$lt_cv_sys_global_symbol_pipe"; then 6821 lt_cv_sys_global_symbol_to_cdecl= 6822fi 6823if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6825$as_echo "failed" >&6; } 6826else 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6828$as_echo "ok" >&6; } 6829fi 6830 6831# Response file support. 6832if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6833 nm_file_list_spec='@' 6834elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6835 nm_file_list_spec='@' 6836fi 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6865$as_echo_n "checking for sysroot... " >&6; } 6866 6867# Check whether --with-sysroot was given. 6868if test "${with_sysroot+set}" = set; then : 6869 withval=$with_sysroot; 6870else 6871 with_sysroot=no 6872fi 6873 6874 6875lt_sysroot= 6876case ${with_sysroot} in #( 6877 yes) 6878 if test "$GCC" = yes; then 6879 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6880 fi 6881 ;; #( 6882 /*) 6883 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6884 ;; #( 6885 no|'') 6886 ;; #( 6887 *) 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6889$as_echo "${with_sysroot}" >&6; } 6890 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6891 ;; 6892esac 6893 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6895$as_echo "${lt_sysroot:-no}" >&6; } 6896 6897 6898 6899 6900 6901# Check whether --enable-libtool-lock was given. 6902if test "${enable_libtool_lock+set}" = set; then : 6903 enableval=$enable_libtool_lock; 6904fi 6905 6906test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6907 6908# Some flags need to be propagated to the compiler or linker for good 6909# libtool support. 6910case $host in 6911ia64-*-hpux*) 6912 # Find out which ABI we are using. 6913 echo 'int i;' > conftest.$ac_ext 6914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6915 (eval $ac_compile) 2>&5 6916 ac_status=$? 6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6918 test $ac_status = 0; }; then 6919 case `/usr/bin/file conftest.$ac_objext` in 6920 *ELF-32*) 6921 HPUX_IA64_MODE="32" 6922 ;; 6923 *ELF-64*) 6924 HPUX_IA64_MODE="64" 6925 ;; 6926 esac 6927 fi 6928 rm -rf conftest* 6929 ;; 6930*-*-irix6*) 6931 # Find out which ABI we are using. 6932 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6934 (eval $ac_compile) 2>&5 6935 ac_status=$? 6936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6937 test $ac_status = 0; }; then 6938 if test "$lt_cv_prog_gnu_ld" = yes; then 6939 case `/usr/bin/file conftest.$ac_objext` in 6940 *32-bit*) 6941 LD="${LD-ld} -melf32bsmip" 6942 ;; 6943 *N32*) 6944 LD="${LD-ld} -melf32bmipn32" 6945 ;; 6946 *64-bit*) 6947 LD="${LD-ld} -melf64bmip" 6948 ;; 6949 esac 6950 else 6951 case `/usr/bin/file conftest.$ac_objext` in 6952 *32-bit*) 6953 LD="${LD-ld} -32" 6954 ;; 6955 *N32*) 6956 LD="${LD-ld} -n32" 6957 ;; 6958 *64-bit*) 6959 LD="${LD-ld} -64" 6960 ;; 6961 esac 6962 fi 6963 fi 6964 rm -rf conftest* 6965 ;; 6966 6967x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6968s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6969 # Find out which ABI we are using. 6970 echo 'int i;' > conftest.$ac_ext 6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6972 (eval $ac_compile) 2>&5 6973 ac_status=$? 6974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6975 test $ac_status = 0; }; then 6976 case `/usr/bin/file conftest.o` in 6977 *32-bit*) 6978 case $host in 6979 x86_64-*kfreebsd*-gnu) 6980 LD="${LD-ld} -m elf_i386_fbsd" 6981 ;; 6982 x86_64-*linux*) 6983 LD="${LD-ld} -m elf_i386" 6984 ;; 6985 ppc64-*linux*|powerpc64-*linux*) 6986 LD="${LD-ld} -m elf32ppclinux" 6987 ;; 6988 s390x-*linux*) 6989 LD="${LD-ld} -m elf_s390" 6990 ;; 6991 sparc64-*linux*) 6992 LD="${LD-ld} -m elf32_sparc" 6993 ;; 6994 esac 6995 ;; 6996 *64-bit*) 6997 case $host in 6998 x86_64-*kfreebsd*-gnu) 6999 LD="${LD-ld} -m elf_x86_64_fbsd" 7000 ;; 7001 x86_64-*linux*) 7002 LD="${LD-ld} -m elf_x86_64" 7003 ;; 7004 ppc*-*linux*|powerpc*-*linux*) 7005 LD="${LD-ld} -m elf64ppc" 7006 ;; 7007 s390*-*linux*|s390*-*tpf*) 7008 LD="${LD-ld} -m elf64_s390" 7009 ;; 7010 sparc*-*linux*) 7011 LD="${LD-ld} -m elf64_sparc" 7012 ;; 7013 esac 7014 ;; 7015 esac 7016 fi 7017 rm -rf conftest* 7018 ;; 7019 7020*-*-sco3.2v5*) 7021 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7022 SAVE_CFLAGS="$CFLAGS" 7023 CFLAGS="$CFLAGS -belf" 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7025$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7026if ${lt_cv_cc_needs_belf+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028else 7029 ac_ext=c 7030ac_cpp='$CPP $CPPFLAGS' 7031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7033ac_compiler_gnu=$ac_cv_c_compiler_gnu 7034 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037 7038int 7039main () 7040{ 7041 7042 ; 7043 return 0; 7044} 7045_ACEOF 7046if ac_fn_c_try_link "$LINENO"; then : 7047 lt_cv_cc_needs_belf=yes 7048else 7049 lt_cv_cc_needs_belf=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext \ 7052 conftest$ac_exeext conftest.$ac_ext 7053 ac_ext=c 7054ac_cpp='$CPP $CPPFLAGS' 7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7057ac_compiler_gnu=$ac_cv_c_compiler_gnu 7058 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7061$as_echo "$lt_cv_cc_needs_belf" >&6; } 7062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7064 CFLAGS="$SAVE_CFLAGS" 7065 fi 7066 ;; 7067*-*solaris*) 7068 # Find out which ABI we are using. 7069 echo 'int i;' > conftest.$ac_ext 7070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7071 (eval $ac_compile) 2>&5 7072 ac_status=$? 7073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7074 test $ac_status = 0; }; then 7075 case `/usr/bin/file conftest.o` in 7076 *64-bit*) 7077 case $lt_cv_prog_gnu_ld in 7078 yes*) 7079 case $host in 7080 i?86-*-solaris*) 7081 LD="${LD-ld} -m elf_x86_64" 7082 ;; 7083 sparc*-*-solaris*) 7084 LD="${LD-ld} -m elf64_sparc" 7085 ;; 7086 esac 7087 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7088 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7089 LD="${LD-ld}_sol2" 7090 fi 7091 ;; 7092 *) 7093 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7094 LD="${LD-ld} -64" 7095 fi 7096 ;; 7097 esac 7098 ;; 7099 esac 7100 fi 7101 rm -rf conftest* 7102 ;; 7103esac 7104 7105need_locks="$enable_libtool_lock" 7106 7107if test -n "$ac_tool_prefix"; then 7108 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7109set dummy ${ac_tool_prefix}mt; ac_word=$2 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7111$as_echo_n "checking for $ac_word... " >&6; } 7112if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114else 7115 if test -n "$MANIFEST_TOOL"; then 7116 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7117else 7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7119for as_dir in $PATH 7120do 7121 IFS=$as_save_IFS 7122 test -z "$as_dir" && as_dir=. 7123 for ac_exec_ext in '' $ac_executable_extensions; do 7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7125 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7127 break 2 7128 fi 7129done 7130 done 7131IFS=$as_save_IFS 7132 7133fi 7134fi 7135MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7136if test -n "$MANIFEST_TOOL"; then 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7138$as_echo "$MANIFEST_TOOL" >&6; } 7139else 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7141$as_echo "no" >&6; } 7142fi 7143 7144 7145fi 7146if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7147 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7148 # Extract the first word of "mt", so it can be a program name with args. 7149set dummy mt; ac_word=$2 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7151$as_echo_n "checking for $ac_word... " >&6; } 7152if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7153 $as_echo_n "(cached) " >&6 7154else 7155 if test -n "$ac_ct_MANIFEST_TOOL"; then 7156 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7157else 7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7159for as_dir in $PATH 7160do 7161 IFS=$as_save_IFS 7162 test -z "$as_dir" && as_dir=. 7163 for ac_exec_ext in '' $ac_executable_extensions; do 7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7165 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7167 break 2 7168 fi 7169done 7170 done 7171IFS=$as_save_IFS 7172 7173fi 7174fi 7175ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7176if test -n "$ac_ct_MANIFEST_TOOL"; then 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7178$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7179else 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7181$as_echo "no" >&6; } 7182fi 7183 7184 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7185 MANIFEST_TOOL=":" 7186 else 7187 case $cross_compiling:$ac_tool_warned in 7188yes:) 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7191ac_tool_warned=yes ;; 7192esac 7193 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7194 fi 7195else 7196 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7197fi 7198 7199test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7201$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7202if ${lt_cv_path_mainfest_tool+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 lt_cv_path_mainfest_tool=no 7206 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7207 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7208 cat conftest.err >&5 7209 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7210 lt_cv_path_mainfest_tool=yes 7211 fi 7212 rm -f conftest* 7213fi 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7215$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7216if test "x$lt_cv_path_mainfest_tool" != xyes; then 7217 MANIFEST_TOOL=: 7218fi 7219 7220 7221 7222 7223 7224 7225 case $host_os in 7226 rhapsody* | darwin*) 7227 if test -n "$ac_tool_prefix"; then 7228 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7229set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231$as_echo_n "checking for $ac_word... " >&6; } 7232if ${ac_cv_prog_DSYMUTIL+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 if test -n "$DSYMUTIL"; then 7236 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 for ac_exec_ext in '' $ac_executable_extensions; do 7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7245 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7247 break 2 7248 fi 7249done 7250 done 7251IFS=$as_save_IFS 7252 7253fi 7254fi 7255DSYMUTIL=$ac_cv_prog_DSYMUTIL 7256if test -n "$DSYMUTIL"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7258$as_echo "$DSYMUTIL" >&6; } 7259else 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 7265fi 7266if test -z "$ac_cv_prog_DSYMUTIL"; then 7267 ac_ct_DSYMUTIL=$DSYMUTIL 7268 # Extract the first word of "dsymutil", so it can be a program name with args. 7269set dummy dsymutil; ac_word=$2 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7271$as_echo_n "checking for $ac_word... " >&6; } 7272if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7273 $as_echo_n "(cached) " >&6 7274else 7275 if test -n "$ac_ct_DSYMUTIL"; then 7276 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7277else 7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7279for as_dir in $PATH 7280do 7281 IFS=$as_save_IFS 7282 test -z "$as_dir" && as_dir=. 7283 for ac_exec_ext in '' $ac_executable_extensions; do 7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7285 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7287 break 2 7288 fi 7289done 7290 done 7291IFS=$as_save_IFS 7292 7293fi 7294fi 7295ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7296if test -n "$ac_ct_DSYMUTIL"; then 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7298$as_echo "$ac_ct_DSYMUTIL" >&6; } 7299else 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7301$as_echo "no" >&6; } 7302fi 7303 7304 if test "x$ac_ct_DSYMUTIL" = x; then 7305 DSYMUTIL=":" 7306 else 7307 case $cross_compiling:$ac_tool_warned in 7308yes:) 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7311ac_tool_warned=yes ;; 7312esac 7313 DSYMUTIL=$ac_ct_DSYMUTIL 7314 fi 7315else 7316 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7317fi 7318 7319 if test -n "$ac_tool_prefix"; then 7320 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7321set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7323$as_echo_n "checking for $ac_word... " >&6; } 7324if ${ac_cv_prog_NMEDIT+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 if test -n "$NMEDIT"; then 7328 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7329else 7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7337 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342 done 7343IFS=$as_save_IFS 7344 7345fi 7346fi 7347NMEDIT=$ac_cv_prog_NMEDIT 7348if test -n "$NMEDIT"; then 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7350$as_echo "$NMEDIT" >&6; } 7351else 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7353$as_echo "no" >&6; } 7354fi 7355 7356 7357fi 7358if test -z "$ac_cv_prog_NMEDIT"; then 7359 ac_ct_NMEDIT=$NMEDIT 7360 # Extract the first word of "nmedit", so it can be a program name with args. 7361set dummy nmedit; ac_word=$2 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7363$as_echo_n "checking for $ac_word... " >&6; } 7364if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 if test -n "$ac_ct_NMEDIT"; then 7368 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7369else 7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7371for as_dir in $PATH 7372do 7373 IFS=$as_save_IFS 7374 test -z "$as_dir" && as_dir=. 7375 for ac_exec_ext in '' $ac_executable_extensions; do 7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7377 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7379 break 2 7380 fi 7381done 7382 done 7383IFS=$as_save_IFS 7384 7385fi 7386fi 7387ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7388if test -n "$ac_ct_NMEDIT"; then 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7390$as_echo "$ac_ct_NMEDIT" >&6; } 7391else 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7393$as_echo "no" >&6; } 7394fi 7395 7396 if test "x$ac_ct_NMEDIT" = x; then 7397 NMEDIT=":" 7398 else 7399 case $cross_compiling:$ac_tool_warned in 7400yes:) 7401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7403ac_tool_warned=yes ;; 7404esac 7405 NMEDIT=$ac_ct_NMEDIT 7406 fi 7407else 7408 NMEDIT="$ac_cv_prog_NMEDIT" 7409fi 7410 7411 if test -n "$ac_tool_prefix"; then 7412 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7413set dummy ${ac_tool_prefix}lipo; ac_word=$2 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7415$as_echo_n "checking for $ac_word... " >&6; } 7416if ${ac_cv_prog_LIPO+:} false; then : 7417 $as_echo_n "(cached) " >&6 7418else 7419 if test -n "$LIPO"; then 7420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7421else 7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7423for as_dir in $PATH 7424do 7425 IFS=$as_save_IFS 7426 test -z "$as_dir" && as_dir=. 7427 for ac_exec_ext in '' $ac_executable_extensions; do 7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7429 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7431 break 2 7432 fi 7433done 7434 done 7435IFS=$as_save_IFS 7436 7437fi 7438fi 7439LIPO=$ac_cv_prog_LIPO 7440if test -n "$LIPO"; then 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7442$as_echo "$LIPO" >&6; } 7443else 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7445$as_echo "no" >&6; } 7446fi 7447 7448 7449fi 7450if test -z "$ac_cv_prog_LIPO"; then 7451 ac_ct_LIPO=$LIPO 7452 # Extract the first word of "lipo", so it can be a program name with args. 7453set dummy lipo; ac_word=$2 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7455$as_echo_n "checking for $ac_word... " >&6; } 7456if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 if test -n "$ac_ct_LIPO"; then 7460 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7461else 7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7463for as_dir in $PATH 7464do 7465 IFS=$as_save_IFS 7466 test -z "$as_dir" && as_dir=. 7467 for ac_exec_ext in '' $ac_executable_extensions; do 7468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7469 ac_cv_prog_ac_ct_LIPO="lipo" 7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7471 break 2 7472 fi 7473done 7474 done 7475IFS=$as_save_IFS 7476 7477fi 7478fi 7479ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7480if test -n "$ac_ct_LIPO"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7482$as_echo "$ac_ct_LIPO" >&6; } 7483else 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7485$as_echo "no" >&6; } 7486fi 7487 7488 if test "x$ac_ct_LIPO" = x; then 7489 LIPO=":" 7490 else 7491 case $cross_compiling:$ac_tool_warned in 7492yes:) 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7495ac_tool_warned=yes ;; 7496esac 7497 LIPO=$ac_ct_LIPO 7498 fi 7499else 7500 LIPO="$ac_cv_prog_LIPO" 7501fi 7502 7503 if test -n "$ac_tool_prefix"; then 7504 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7505set dummy ${ac_tool_prefix}otool; ac_word=$2 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7507$as_echo_n "checking for $ac_word... " >&6; } 7508if ${ac_cv_prog_OTOOL+:} false; then : 7509 $as_echo_n "(cached) " >&6 7510else 7511 if test -n "$OTOOL"; then 7512 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7513else 7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7515for as_dir in $PATH 7516do 7517 IFS=$as_save_IFS 7518 test -z "$as_dir" && as_dir=. 7519 for ac_exec_ext in '' $ac_executable_extensions; do 7520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7521 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7523 break 2 7524 fi 7525done 7526 done 7527IFS=$as_save_IFS 7528 7529fi 7530fi 7531OTOOL=$ac_cv_prog_OTOOL 7532if test -n "$OTOOL"; then 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7534$as_echo "$OTOOL" >&6; } 7535else 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7537$as_echo "no" >&6; } 7538fi 7539 7540 7541fi 7542if test -z "$ac_cv_prog_OTOOL"; then 7543 ac_ct_OTOOL=$OTOOL 7544 # Extract the first word of "otool", so it can be a program name with args. 7545set dummy otool; ac_word=$2 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7547$as_echo_n "checking for $ac_word... " >&6; } 7548if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 if test -n "$ac_ct_OTOOL"; then 7552 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7553else 7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7555for as_dir in $PATH 7556do 7557 IFS=$as_save_IFS 7558 test -z "$as_dir" && as_dir=. 7559 for ac_exec_ext in '' $ac_executable_extensions; do 7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7561 ac_cv_prog_ac_ct_OTOOL="otool" 7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7563 break 2 7564 fi 7565done 7566 done 7567IFS=$as_save_IFS 7568 7569fi 7570fi 7571ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7572if test -n "$ac_ct_OTOOL"; then 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7574$as_echo "$ac_ct_OTOOL" >&6; } 7575else 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7577$as_echo "no" >&6; } 7578fi 7579 7580 if test "x$ac_ct_OTOOL" = x; then 7581 OTOOL=":" 7582 else 7583 case $cross_compiling:$ac_tool_warned in 7584yes:) 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7587ac_tool_warned=yes ;; 7588esac 7589 OTOOL=$ac_ct_OTOOL 7590 fi 7591else 7592 OTOOL="$ac_cv_prog_OTOOL" 7593fi 7594 7595 if test -n "$ac_tool_prefix"; then 7596 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7597set dummy ${ac_tool_prefix}otool64; ac_word=$2 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7599$as_echo_n "checking for $ac_word... " >&6; } 7600if ${ac_cv_prog_OTOOL64+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 if test -n "$OTOOL64"; then 7604 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7605else 7606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7607for as_dir in $PATH 7608do 7609 IFS=$as_save_IFS 7610 test -z "$as_dir" && as_dir=. 7611 for ac_exec_ext in '' $ac_executable_extensions; do 7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7613 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7615 break 2 7616 fi 7617done 7618 done 7619IFS=$as_save_IFS 7620 7621fi 7622fi 7623OTOOL64=$ac_cv_prog_OTOOL64 7624if test -n "$OTOOL64"; then 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7626$as_echo "$OTOOL64" >&6; } 7627else 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7629$as_echo "no" >&6; } 7630fi 7631 7632 7633fi 7634if test -z "$ac_cv_prog_OTOOL64"; then 7635 ac_ct_OTOOL64=$OTOOL64 7636 # Extract the first word of "otool64", so it can be a program name with args. 7637set dummy otool64; ac_word=$2 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7639$as_echo_n "checking for $ac_word... " >&6; } 7640if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 if test -n "$ac_ct_OTOOL64"; then 7644 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7645else 7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7647for as_dir in $PATH 7648do 7649 IFS=$as_save_IFS 7650 test -z "$as_dir" && as_dir=. 7651 for ac_exec_ext in '' $ac_executable_extensions; do 7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7653 ac_cv_prog_ac_ct_OTOOL64="otool64" 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7655 break 2 7656 fi 7657done 7658 done 7659IFS=$as_save_IFS 7660 7661fi 7662fi 7663ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7664if test -n "$ac_ct_OTOOL64"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7666$as_echo "$ac_ct_OTOOL64" >&6; } 7667else 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7669$as_echo "no" >&6; } 7670fi 7671 7672 if test "x$ac_ct_OTOOL64" = x; then 7673 OTOOL64=":" 7674 else 7675 case $cross_compiling:$ac_tool_warned in 7676yes:) 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7679ac_tool_warned=yes ;; 7680esac 7681 OTOOL64=$ac_ct_OTOOL64 7682 fi 7683else 7684 OTOOL64="$ac_cv_prog_OTOOL64" 7685fi 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7714$as_echo_n "checking for -single_module linker flag... " >&6; } 7715if ${lt_cv_apple_cc_single_mod+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 lt_cv_apple_cc_single_mod=no 7719 if test -z "${LT_MULTI_MODULE}"; then 7720 # By default we will add the -single_module flag. You can override 7721 # by either setting the environment variable LT_MULTI_MODULE 7722 # non-empty at configure time, or by adding -multi_module to the 7723 # link flags. 7724 rm -rf libconftest.dylib* 7725 echo "int foo(void){return 1;}" > conftest.c 7726 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7727-dynamiclib -Wl,-single_module conftest.c" >&5 7728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7729 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7730 _lt_result=$? 7731 # If there is a non-empty error log, and "single_module" 7732 # appears in it, assume the flag caused a linker warning 7733 if test -s conftest.err && $GREP single_module conftest.err; then 7734 cat conftest.err >&5 7735 # Otherwise, if the output was created with a 0 exit code from 7736 # the compiler, it worked. 7737 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7738 lt_cv_apple_cc_single_mod=yes 7739 else 7740 cat conftest.err >&5 7741 fi 7742 rm -rf libconftest.dylib* 7743 rm -f conftest.* 7744 fi 7745fi 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7747$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7748 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7750$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7751if ${lt_cv_ld_exported_symbols_list+:} false; then : 7752 $as_echo_n "(cached) " >&6 7753else 7754 lt_cv_ld_exported_symbols_list=no 7755 save_LDFLAGS=$LDFLAGS 7756 echo "_main" > conftest.sym 7757 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760 7761int 7762main () 7763{ 7764 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769if ac_fn_c_try_link "$LINENO"; then : 7770 lt_cv_ld_exported_symbols_list=yes 7771else 7772 lt_cv_ld_exported_symbols_list=no 7773fi 7774rm -f core conftest.err conftest.$ac_objext \ 7775 conftest$ac_exeext conftest.$ac_ext 7776 LDFLAGS="$save_LDFLAGS" 7777 7778fi 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7780$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7781 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7783$as_echo_n "checking for -force_load linker flag... " >&6; } 7784if ${lt_cv_ld_force_load+:} false; then : 7785 $as_echo_n "(cached) " >&6 7786else 7787 lt_cv_ld_force_load=no 7788 cat > conftest.c << _LT_EOF 7789int forced_loaded() { return 2;} 7790_LT_EOF 7791 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7792 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7793 echo "$AR cru libconftest.a conftest.o" >&5 7794 $AR cru libconftest.a conftest.o 2>&5 7795 echo "$RANLIB libconftest.a" >&5 7796 $RANLIB libconftest.a 2>&5 7797 cat > conftest.c << _LT_EOF 7798int main() { return 0;} 7799_LT_EOF 7800 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7801 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7802 _lt_result=$? 7803 if test -s conftest.err && $GREP force_load conftest.err; then 7804 cat conftest.err >&5 7805 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7806 lt_cv_ld_force_load=yes 7807 else 7808 cat conftest.err >&5 7809 fi 7810 rm -f conftest.err libconftest.a conftest conftest.c 7811 rm -rf conftest.dSYM 7812 7813fi 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7815$as_echo "$lt_cv_ld_force_load" >&6; } 7816 case $host_os in 7817 rhapsody* | darwin1.[012]) 7818 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7819 darwin1.*) 7820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7821 darwin*) # darwin 5.x on 7822 # if running on 10.5 or later, the deployment target defaults 7823 # to the OS version, if on x86, and 10.4, the deployment 7824 # target defaults to 10.4. Don't you love it? 7825 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7826 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7828 10.[012]*) 7829 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7830 10.*) 7831 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7832 esac 7833 ;; 7834 esac 7835 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7836 _lt_dar_single_mod='$single_module' 7837 fi 7838 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7839 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7840 else 7841 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7842 fi 7843 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7844 _lt_dsymutil='~$DSYMUTIL $lib || :' 7845 else 7846 _lt_dsymutil= 7847 fi 7848 ;; 7849 esac 7850 7851for ac_header in dlfcn.h 7852do : 7853 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7854" 7855if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7856 cat >>confdefs.h <<_ACEOF 7857#define HAVE_DLFCN_H 1 7858_ACEOF 7859 7860fi 7861 7862done 7863 7864 7865 7866 7867 7868# Set options 7869 7870 7871 7872 enable_dlopen=no 7873 7874 7875 enable_win32_dll=no 7876 7877 7878 # Check whether --enable-shared was given. 7879if test "${enable_shared+set}" = set; then : 7880 enableval=$enable_shared; p=${PACKAGE-default} 7881 case $enableval in 7882 yes) enable_shared=yes ;; 7883 no) enable_shared=no ;; 7884 *) 7885 enable_shared=no 7886 # Look at the argument we got. We use all the common list separators. 7887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7888 for pkg in $enableval; do 7889 IFS="$lt_save_ifs" 7890 if test "X$pkg" = "X$p"; then 7891 enable_shared=yes 7892 fi 7893 done 7894 IFS="$lt_save_ifs" 7895 ;; 7896 esac 7897else 7898 enable_shared=yes 7899fi 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 # Check whether --enable-static was given. 7910if test "${enable_static+set}" = set; then : 7911 enableval=$enable_static; p=${PACKAGE-default} 7912 case $enableval in 7913 yes) enable_static=yes ;; 7914 no) enable_static=no ;; 7915 *) 7916 enable_static=no 7917 # Look at the argument we got. We use all the common list separators. 7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7919 for pkg in $enableval; do 7920 IFS="$lt_save_ifs" 7921 if test "X$pkg" = "X$p"; then 7922 enable_static=yes 7923 fi 7924 done 7925 IFS="$lt_save_ifs" 7926 ;; 7927 esac 7928else 7929 enable_static=yes 7930fi 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941# Check whether --with-pic was given. 7942if test "${with_pic+set}" = set; then : 7943 withval=$with_pic; lt_p=${PACKAGE-default} 7944 case $withval in 7945 yes|no) pic_mode=$withval ;; 7946 *) 7947 pic_mode=default 7948 # Look at the argument we got. We use all the common list separators. 7949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7950 for lt_pkg in $withval; do 7951 IFS="$lt_save_ifs" 7952 if test "X$lt_pkg" = "X$lt_p"; then 7953 pic_mode=yes 7954 fi 7955 done 7956 IFS="$lt_save_ifs" 7957 ;; 7958 esac 7959else 7960 pic_mode=default 7961fi 7962 7963 7964test -z "$pic_mode" && pic_mode=default 7965 7966 7967 7968 7969 7970 7971 7972 # Check whether --enable-fast-install was given. 7973if test "${enable_fast_install+set}" = set; then : 7974 enableval=$enable_fast_install; p=${PACKAGE-default} 7975 case $enableval in 7976 yes) enable_fast_install=yes ;; 7977 no) enable_fast_install=no ;; 7978 *) 7979 enable_fast_install=no 7980 # Look at the argument we got. We use all the common list separators. 7981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7982 for pkg in $enableval; do 7983 IFS="$lt_save_ifs" 7984 if test "X$pkg" = "X$p"; then 7985 enable_fast_install=yes 7986 fi 7987 done 7988 IFS="$lt_save_ifs" 7989 ;; 7990 esac 7991else 7992 enable_fast_install=yes 7993fi 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005# This can be used to rebuild libtool when needed 8006LIBTOOL_DEPS="$ltmain" 8007 8008# Always use our own libtool. 8009LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040test -z "$LN_S" && LN_S="ln -s" 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055if test -n "${ZSH_VERSION+set}" ; then 8056 setopt NO_GLOB_SUBST 8057fi 8058 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8060$as_echo_n "checking for objdir... " >&6; } 8061if ${lt_cv_objdir+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 rm -f .libs 2>/dev/null 8065mkdir .libs 2>/dev/null 8066if test -d .libs; then 8067 lt_cv_objdir=.libs 8068else 8069 # MS-DOS does not allow filenames that begin with a dot. 8070 lt_cv_objdir=_libs 8071fi 8072rmdir .libs 2>/dev/null 8073fi 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8075$as_echo "$lt_cv_objdir" >&6; } 8076objdir=$lt_cv_objdir 8077 8078 8079 8080 8081 8082cat >>confdefs.h <<_ACEOF 8083#define LT_OBJDIR "$lt_cv_objdir/" 8084_ACEOF 8085 8086 8087 8088 8089case $host_os in 8090aix3*) 8091 # AIX sometimes has problems with the GCC collect2 program. For some 8092 # reason, if we set the COLLECT_NAMES environment variable, the problems 8093 # vanish in a puff of smoke. 8094 if test "X${COLLECT_NAMES+set}" != Xset; then 8095 COLLECT_NAMES= 8096 export COLLECT_NAMES 8097 fi 8098 ;; 8099esac 8100 8101# Global variables: 8102ofile=libtool 8103can_build_shared=yes 8104 8105# All known linkers require a `.a' archive for static linking (except MSVC, 8106# which needs '.lib'). 8107libext=a 8108 8109with_gnu_ld="$lt_cv_prog_gnu_ld" 8110 8111old_CC="$CC" 8112old_CFLAGS="$CFLAGS" 8113 8114# Set sane defaults for various variables 8115test -z "$CC" && CC=cc 8116test -z "$LTCC" && LTCC=$CC 8117test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8118test -z "$LD" && LD=ld 8119test -z "$ac_objext" && ac_objext=o 8120 8121for cc_temp in $compiler""; do 8122 case $cc_temp in 8123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8125 \-*) ;; 8126 *) break;; 8127 esac 8128done 8129cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8130 8131 8132# Only perform the check for file, if the check method requires it 8133test -z "$MAGIC_CMD" && MAGIC_CMD=file 8134case $deplibs_check_method in 8135file_magic*) 8136 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8138$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8139if ${lt_cv_path_MAGIC_CMD+:} false; then : 8140 $as_echo_n "(cached) " >&6 8141else 8142 case $MAGIC_CMD in 8143[\\/*] | ?:[\\/]*) 8144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8145 ;; 8146*) 8147 lt_save_MAGIC_CMD="$MAGIC_CMD" 8148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8149 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8150 for ac_dir in $ac_dummy; do 8151 IFS="$lt_save_ifs" 8152 test -z "$ac_dir" && ac_dir=. 8153 if test -f $ac_dir/${ac_tool_prefix}file; then 8154 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8155 if test -n "$file_magic_test_file"; then 8156 case $deplibs_check_method in 8157 "file_magic "*) 8158 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8160 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8161 $EGREP "$file_magic_regex" > /dev/null; then 8162 : 8163 else 8164 cat <<_LT_EOF 1>&2 8165 8166*** Warning: the command libtool uses to detect shared libraries, 8167*** $file_magic_cmd, produces output that libtool cannot recognize. 8168*** The result is that libtool may fail to recognize shared libraries 8169*** as such. This will affect the creation of libtool libraries that 8170*** depend on shared libraries, but programs linked with such libtool 8171*** libraries will work regardless of this problem. Nevertheless, you 8172*** may want to report the problem to your system manager and/or to 8173*** bug-libtool@gnu.org 8174 8175_LT_EOF 8176 fi ;; 8177 esac 8178 fi 8179 break 8180 fi 8181 done 8182 IFS="$lt_save_ifs" 8183 MAGIC_CMD="$lt_save_MAGIC_CMD" 8184 ;; 8185esac 8186fi 8187 8188MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8189if test -n "$MAGIC_CMD"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8191$as_echo "$MAGIC_CMD" >&6; } 8192else 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8194$as_echo "no" >&6; } 8195fi 8196 8197 8198 8199 8200 8201if test -z "$lt_cv_path_MAGIC_CMD"; then 8202 if test -n "$ac_tool_prefix"; then 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8204$as_echo_n "checking for file... " >&6; } 8205if ${lt_cv_path_MAGIC_CMD+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 case $MAGIC_CMD in 8209[\\/*] | ?:[\\/]*) 8210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8211 ;; 8212*) 8213 lt_save_MAGIC_CMD="$MAGIC_CMD" 8214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8216 for ac_dir in $ac_dummy; do 8217 IFS="$lt_save_ifs" 8218 test -z "$ac_dir" && ac_dir=. 8219 if test -f $ac_dir/file; then 8220 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8221 if test -n "$file_magic_test_file"; then 8222 case $deplibs_check_method in 8223 "file_magic "*) 8224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8227 $EGREP "$file_magic_regex" > /dev/null; then 8228 : 8229 else 8230 cat <<_LT_EOF 1>&2 8231 8232*** Warning: the command libtool uses to detect shared libraries, 8233*** $file_magic_cmd, produces output that libtool cannot recognize. 8234*** The result is that libtool may fail to recognize shared libraries 8235*** as such. This will affect the creation of libtool libraries that 8236*** depend on shared libraries, but programs linked with such libtool 8237*** libraries will work regardless of this problem. Nevertheless, you 8238*** may want to report the problem to your system manager and/or to 8239*** bug-libtool@gnu.org 8240 8241_LT_EOF 8242 fi ;; 8243 esac 8244 fi 8245 break 8246 fi 8247 done 8248 IFS="$lt_save_ifs" 8249 MAGIC_CMD="$lt_save_MAGIC_CMD" 8250 ;; 8251esac 8252fi 8253 8254MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8255if test -n "$MAGIC_CMD"; then 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8257$as_echo "$MAGIC_CMD" >&6; } 8258else 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8260$as_echo "no" >&6; } 8261fi 8262 8263 8264 else 8265 MAGIC_CMD=: 8266 fi 8267fi 8268 8269 fi 8270 ;; 8271esac 8272 8273# Use C for the default configuration in the libtool script 8274 8275lt_save_CC="$CC" 8276ac_ext=c 8277ac_cpp='$CPP $CPPFLAGS' 8278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8280ac_compiler_gnu=$ac_cv_c_compiler_gnu 8281 8282 8283# Source file extension for C test sources. 8284ac_ext=c 8285 8286# Object file extension for compiled C test sources. 8287objext=o 8288objext=$objext 8289 8290# Code to be used in simple compile tests 8291lt_simple_compile_test_code="int some_variable = 0;" 8292 8293# Code to be used in simple link tests 8294lt_simple_link_test_code='int main(){return(0);}' 8295 8296 8297 8298 8299 8300 8301 8302# If no C compiler was specified, use CC. 8303LTCC=${LTCC-"$CC"} 8304 8305# If no C compiler flags were specified, use CFLAGS. 8306LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8307 8308# Allow CC to be a program name with arguments. 8309compiler=$CC 8310 8311# Save the default compiler, since it gets overwritten when the other 8312# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8313compiler_DEFAULT=$CC 8314 8315# save warnings/boilerplate of simple test code 8316ac_outfile=conftest.$ac_objext 8317echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8318eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8319_lt_compiler_boilerplate=`cat conftest.err` 8320$RM conftest* 8321 8322ac_outfile=conftest.$ac_objext 8323echo "$lt_simple_link_test_code" >conftest.$ac_ext 8324eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8325_lt_linker_boilerplate=`cat conftest.err` 8326$RM -r conftest* 8327 8328 8329if test -n "$compiler"; then 8330 8331lt_prog_compiler_no_builtin_flag= 8332 8333if test "$GCC" = yes; then 8334 case $cc_basename in 8335 nvcc*) 8336 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8337 *) 8338 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8339 esac 8340 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8342$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8343if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8344 $as_echo_n "(cached) " >&6 8345else 8346 lt_cv_prog_compiler_rtti_exceptions=no 8347 ac_outfile=conftest.$ac_objext 8348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8349 lt_compiler_flag="-fno-rtti -fno-exceptions" 8350 # Insert the option either (1) after the last *FLAGS variable, or 8351 # (2) before a word containing "conftest.", or (3) at the end. 8352 # Note that $ac_compile itself does not contain backslashes and begins 8353 # with a dollar sign (not a hyphen), so the echo should work correctly. 8354 # The option is referenced via a variable to avoid confusing sed. 8355 lt_compile=`echo "$ac_compile" | $SED \ 8356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8358 -e 's:$: $lt_compiler_flag:'` 8359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8360 (eval "$lt_compile" 2>conftest.err) 8361 ac_status=$? 8362 cat conftest.err >&5 8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8364 if (exit $ac_status) && test -s "$ac_outfile"; then 8365 # The compiler can only warn and ignore the option if not recognized 8366 # So say no if there are warnings other than the usual output. 8367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8370 lt_cv_prog_compiler_rtti_exceptions=yes 8371 fi 8372 fi 8373 $RM conftest* 8374 8375fi 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8377$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8378 8379if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8381else 8382 : 8383fi 8384 8385fi 8386 8387 8388 8389 8390 8391 8392 lt_prog_compiler_wl= 8393lt_prog_compiler_pic= 8394lt_prog_compiler_static= 8395 8396 8397 if test "$GCC" = yes; then 8398 lt_prog_compiler_wl='-Wl,' 8399 lt_prog_compiler_static='-static' 8400 8401 case $host_os in 8402 aix*) 8403 # All AIX code is PIC. 8404 if test "$host_cpu" = ia64; then 8405 # AIX 5 now supports IA64 processor 8406 lt_prog_compiler_static='-Bstatic' 8407 fi 8408 ;; 8409 8410 amigaos*) 8411 case $host_cpu in 8412 powerpc) 8413 # see comment about AmigaOS4 .so support 8414 lt_prog_compiler_pic='-fPIC' 8415 ;; 8416 m68k) 8417 # FIXME: we need at least 68020 code to build shared libraries, but 8418 # adding the `-m68020' flag to GCC prevents building anything better, 8419 # like `-m68040'. 8420 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8421 ;; 8422 esac 8423 ;; 8424 8425 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8426 # PIC is the default for these OSes. 8427 ;; 8428 8429 mingw* | cygwin* | pw32* | os2* | cegcc*) 8430 # This hack is so that the source file can tell whether it is being 8431 # built for inclusion in a dll (and should export symbols for example). 8432 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8433 # (--disable-auto-import) libraries 8434 lt_prog_compiler_pic='-DDLL_EXPORT' 8435 ;; 8436 8437 darwin* | rhapsody*) 8438 # PIC is the default on this platform 8439 # Common symbols not allowed in MH_DYLIB files 8440 lt_prog_compiler_pic='-fno-common' 8441 ;; 8442 8443 haiku*) 8444 # PIC is the default for Haiku. 8445 # The "-static" flag exists, but is broken. 8446 lt_prog_compiler_static= 8447 ;; 8448 8449 hpux*) 8450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8452 # sets the default TLS model and affects inlining. 8453 case $host_cpu in 8454 hppa*64*) 8455 # +Z the default 8456 ;; 8457 *) 8458 lt_prog_compiler_pic='-fPIC' 8459 ;; 8460 esac 8461 ;; 8462 8463 interix[3-9]*) 8464 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8465 # Instead, we relocate shared libraries at runtime. 8466 ;; 8467 8468 msdosdjgpp*) 8469 # Just because we use GCC doesn't mean we suddenly get shared libraries 8470 # on systems that don't support them. 8471 lt_prog_compiler_can_build_shared=no 8472 enable_shared=no 8473 ;; 8474 8475 *nto* | *qnx*) 8476 # QNX uses GNU C++, but need to define -shared option too, otherwise 8477 # it will coredump. 8478 lt_prog_compiler_pic='-fPIC -shared' 8479 ;; 8480 8481 sysv4*MP*) 8482 if test -d /usr/nec; then 8483 lt_prog_compiler_pic=-Kconform_pic 8484 fi 8485 ;; 8486 8487 *) 8488 lt_prog_compiler_pic='-fPIC' 8489 ;; 8490 esac 8491 8492 case $cc_basename in 8493 nvcc*) # Cuda Compiler Driver 2.2 8494 lt_prog_compiler_wl='-Xlinker ' 8495 if test -n "$lt_prog_compiler_pic"; then 8496 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8497 fi 8498 ;; 8499 esac 8500 else 8501 # PORTME Check for flag to pass linker flags through the system compiler. 8502 case $host_os in 8503 aix*) 8504 lt_prog_compiler_wl='-Wl,' 8505 if test "$host_cpu" = ia64; then 8506 # AIX 5 now supports IA64 processor 8507 lt_prog_compiler_static='-Bstatic' 8508 else 8509 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8510 fi 8511 ;; 8512 8513 mingw* | cygwin* | pw32* | os2* | cegcc*) 8514 # This hack is so that the source file can tell whether it is being 8515 # built for inclusion in a dll (and should export symbols for example). 8516 lt_prog_compiler_pic='-DDLL_EXPORT' 8517 ;; 8518 8519 hpux9* | hpux10* | hpux11*) 8520 lt_prog_compiler_wl='-Wl,' 8521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8522 # not for PA HP-UX. 8523 case $host_cpu in 8524 hppa*64*|ia64*) 8525 # +Z the default 8526 ;; 8527 *) 8528 lt_prog_compiler_pic='+Z' 8529 ;; 8530 esac 8531 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8532 lt_prog_compiler_static='${wl}-a ${wl}archive' 8533 ;; 8534 8535 irix5* | irix6* | nonstopux*) 8536 lt_prog_compiler_wl='-Wl,' 8537 # PIC (with -KPIC) is the default. 8538 lt_prog_compiler_static='-non_shared' 8539 ;; 8540 8541 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8542 case $cc_basename in 8543 # old Intel for x86_64 which still supported -KPIC. 8544 ecc*) 8545 lt_prog_compiler_wl='-Wl,' 8546 lt_prog_compiler_pic='-KPIC' 8547 lt_prog_compiler_static='-static' 8548 ;; 8549 # icc used to be incompatible with GCC. 8550 # ICC 10 doesn't accept -KPIC any more. 8551 icc* | ifort*) 8552 lt_prog_compiler_wl='-Wl,' 8553 lt_prog_compiler_pic='-fPIC' 8554 lt_prog_compiler_static='-static' 8555 ;; 8556 # Lahey Fortran 8.1. 8557 lf95*) 8558 lt_prog_compiler_wl='-Wl,' 8559 lt_prog_compiler_pic='--shared' 8560 lt_prog_compiler_static='--static' 8561 ;; 8562 nagfor*) 8563 # NAG Fortran compiler 8564 lt_prog_compiler_wl='-Wl,-Wl,,' 8565 lt_prog_compiler_pic='-PIC' 8566 lt_prog_compiler_static='-Bstatic' 8567 ;; 8568 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8569 # Portland Group compilers (*not* the Pentium gcc compiler, 8570 # which looks to be a dead project) 8571 lt_prog_compiler_wl='-Wl,' 8572 lt_prog_compiler_pic='-fpic' 8573 lt_prog_compiler_static='-Bstatic' 8574 ;; 8575 ccc*) 8576 lt_prog_compiler_wl='-Wl,' 8577 # All Alpha code is PIC. 8578 lt_prog_compiler_static='-non_shared' 8579 ;; 8580 xl* | bgxl* | bgf* | mpixl*) 8581 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8582 lt_prog_compiler_wl='-Wl,' 8583 lt_prog_compiler_pic='-qpic' 8584 lt_prog_compiler_static='-qstaticlink' 8585 ;; 8586 *) 8587 case `$CC -V 2>&1 | sed 5q` in 8588 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8589 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8590 lt_prog_compiler_pic='-KPIC' 8591 lt_prog_compiler_static='-Bstatic' 8592 lt_prog_compiler_wl='' 8593 ;; 8594 *Sun\ F* | *Sun*Fortran*) 8595 lt_prog_compiler_pic='-KPIC' 8596 lt_prog_compiler_static='-Bstatic' 8597 lt_prog_compiler_wl='-Qoption ld ' 8598 ;; 8599 *Sun\ C*) 8600 # Sun C 5.9 8601 lt_prog_compiler_pic='-KPIC' 8602 lt_prog_compiler_static='-Bstatic' 8603 lt_prog_compiler_wl='-Wl,' 8604 ;; 8605 *Intel*\ [CF]*Compiler*) 8606 lt_prog_compiler_wl='-Wl,' 8607 lt_prog_compiler_pic='-fPIC' 8608 lt_prog_compiler_static='-static' 8609 ;; 8610 *Portland\ Group*) 8611 lt_prog_compiler_wl='-Wl,' 8612 lt_prog_compiler_pic='-fpic' 8613 lt_prog_compiler_static='-Bstatic' 8614 ;; 8615 esac 8616 ;; 8617 esac 8618 ;; 8619 8620 newsos6) 8621 lt_prog_compiler_pic='-KPIC' 8622 lt_prog_compiler_static='-Bstatic' 8623 ;; 8624 8625 *nto* | *qnx*) 8626 # QNX uses GNU C++, but need to define -shared option too, otherwise 8627 # it will coredump. 8628 lt_prog_compiler_pic='-fPIC -shared' 8629 ;; 8630 8631 osf3* | osf4* | osf5*) 8632 lt_prog_compiler_wl='-Wl,' 8633 # All OSF/1 code is PIC. 8634 lt_prog_compiler_static='-non_shared' 8635 ;; 8636 8637 rdos*) 8638 lt_prog_compiler_static='-non_shared' 8639 ;; 8640 8641 solaris*) 8642 lt_prog_compiler_pic='-KPIC' 8643 lt_prog_compiler_static='-Bstatic' 8644 case $cc_basename in 8645 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8646 lt_prog_compiler_wl='-Qoption ld ';; 8647 *) 8648 lt_prog_compiler_wl='-Wl,';; 8649 esac 8650 ;; 8651 8652 sunos4*) 8653 lt_prog_compiler_wl='-Qoption ld ' 8654 lt_prog_compiler_pic='-PIC' 8655 lt_prog_compiler_static='-Bstatic' 8656 ;; 8657 8658 sysv4 | sysv4.2uw2* | sysv4.3*) 8659 lt_prog_compiler_wl='-Wl,' 8660 lt_prog_compiler_pic='-KPIC' 8661 lt_prog_compiler_static='-Bstatic' 8662 ;; 8663 8664 sysv4*MP*) 8665 if test -d /usr/nec ;then 8666 lt_prog_compiler_pic='-Kconform_pic' 8667 lt_prog_compiler_static='-Bstatic' 8668 fi 8669 ;; 8670 8671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8672 lt_prog_compiler_wl='-Wl,' 8673 lt_prog_compiler_pic='-KPIC' 8674 lt_prog_compiler_static='-Bstatic' 8675 ;; 8676 8677 unicos*) 8678 lt_prog_compiler_wl='-Wl,' 8679 lt_prog_compiler_can_build_shared=no 8680 ;; 8681 8682 uts4*) 8683 lt_prog_compiler_pic='-pic' 8684 lt_prog_compiler_static='-Bstatic' 8685 ;; 8686 8687 *) 8688 lt_prog_compiler_can_build_shared=no 8689 ;; 8690 esac 8691 fi 8692 8693case $host_os in 8694 # For platforms which do not support PIC, -DPIC is meaningless: 8695 *djgpp*) 8696 lt_prog_compiler_pic= 8697 ;; 8698 *) 8699 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8700 ;; 8701esac 8702 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8704$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8705if ${lt_cv_prog_compiler_pic+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8709fi 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8711$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8712lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8713 8714# 8715# Check to make sure the PIC flag actually works. 8716# 8717if test -n "$lt_prog_compiler_pic"; then 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8719$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8720if ${lt_cv_prog_compiler_pic_works+:} false; then : 8721 $as_echo_n "(cached) " >&6 8722else 8723 lt_cv_prog_compiler_pic_works=no 8724 ac_outfile=conftest.$ac_objext 8725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8726 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8727 # Insert the option either (1) after the last *FLAGS variable, or 8728 # (2) before a word containing "conftest.", or (3) at the end. 8729 # Note that $ac_compile itself does not contain backslashes and begins 8730 # with a dollar sign (not a hyphen), so the echo should work correctly. 8731 # The option is referenced via a variable to avoid confusing sed. 8732 lt_compile=`echo "$ac_compile" | $SED \ 8733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8735 -e 's:$: $lt_compiler_flag:'` 8736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8737 (eval "$lt_compile" 2>conftest.err) 8738 ac_status=$? 8739 cat conftest.err >&5 8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8741 if (exit $ac_status) && test -s "$ac_outfile"; then 8742 # The compiler can only warn and ignore the option if not recognized 8743 # So say no if there are warnings other than the usual output. 8744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8747 lt_cv_prog_compiler_pic_works=yes 8748 fi 8749 fi 8750 $RM conftest* 8751 8752fi 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8754$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8755 8756if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8757 case $lt_prog_compiler_pic in 8758 "" | " "*) ;; 8759 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8760 esac 8761else 8762 lt_prog_compiler_pic= 8763 lt_prog_compiler_can_build_shared=no 8764fi 8765 8766fi 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778# 8779# Check to make sure the static flag actually works. 8780# 8781wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8783$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8784if ${lt_cv_prog_compiler_static_works+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 lt_cv_prog_compiler_static_works=no 8788 save_LDFLAGS="$LDFLAGS" 8789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8790 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8792 # The linker can only warn and ignore the option if not recognized 8793 # So say no if there are warnings 8794 if test -s conftest.err; then 8795 # Append any errors to the config.log. 8796 cat conftest.err 1>&5 8797 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8799 if diff conftest.exp conftest.er2 >/dev/null; then 8800 lt_cv_prog_compiler_static_works=yes 8801 fi 8802 else 8803 lt_cv_prog_compiler_static_works=yes 8804 fi 8805 fi 8806 $RM -r conftest* 8807 LDFLAGS="$save_LDFLAGS" 8808 8809fi 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8811$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8812 8813if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8814 : 8815else 8816 lt_prog_compiler_static= 8817fi 8818 8819 8820 8821 8822 8823 8824 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8826$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8827if ${lt_cv_prog_compiler_c_o+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 lt_cv_prog_compiler_c_o=no 8831 $RM -r conftest 2>/dev/null 8832 mkdir conftest 8833 cd conftest 8834 mkdir out 8835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8836 8837 lt_compiler_flag="-o out/conftest2.$ac_objext" 8838 # Insert the option either (1) after the last *FLAGS variable, or 8839 # (2) before a word containing "conftest.", or (3) at the end. 8840 # Note that $ac_compile itself does not contain backslashes and begins 8841 # with a dollar sign (not a hyphen), so the echo should work correctly. 8842 lt_compile=`echo "$ac_compile" | $SED \ 8843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8845 -e 's:$: $lt_compiler_flag:'` 8846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8847 (eval "$lt_compile" 2>out/conftest.err) 8848 ac_status=$? 8849 cat out/conftest.err >&5 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8852 then 8853 # The compiler can only warn and ignore the option if not recognized 8854 # So say no if there are warnings 8855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8858 lt_cv_prog_compiler_c_o=yes 8859 fi 8860 fi 8861 chmod u+w . 2>&5 8862 $RM conftest* 8863 # SGI C++ compiler will create directory out/ii_files/ for 8864 # template instantiation 8865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8866 $RM out/* && rmdir out 8867 cd .. 8868 $RM -r conftest 8869 $RM conftest* 8870 8871fi 8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8873$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8874 8875 8876 8877 8878 8879 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8881$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8882if ${lt_cv_prog_compiler_c_o+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884else 8885 lt_cv_prog_compiler_c_o=no 8886 $RM -r conftest 2>/dev/null 8887 mkdir conftest 8888 cd conftest 8889 mkdir out 8890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8891 8892 lt_compiler_flag="-o out/conftest2.$ac_objext" 8893 # Insert the option either (1) after the last *FLAGS variable, or 8894 # (2) before a word containing "conftest.", or (3) at the end. 8895 # Note that $ac_compile itself does not contain backslashes and begins 8896 # with a dollar sign (not a hyphen), so the echo should work correctly. 8897 lt_compile=`echo "$ac_compile" | $SED \ 8898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8900 -e 's:$: $lt_compiler_flag:'` 8901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8902 (eval "$lt_compile" 2>out/conftest.err) 8903 ac_status=$? 8904 cat out/conftest.err >&5 8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8906 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8907 then 8908 # The compiler can only warn and ignore the option if not recognized 8909 # So say no if there are warnings 8910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8913 lt_cv_prog_compiler_c_o=yes 8914 fi 8915 fi 8916 chmod u+w . 2>&5 8917 $RM conftest* 8918 # SGI C++ compiler will create directory out/ii_files/ for 8919 # template instantiation 8920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8921 $RM out/* && rmdir out 8922 cd .. 8923 $RM -r conftest 8924 $RM conftest* 8925 8926fi 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8928$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8929 8930 8931 8932 8933hard_links="nottested" 8934if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8935 # do not overwrite the value of need_locks provided by the user 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8937$as_echo_n "checking if we can lock with hard links... " >&6; } 8938 hard_links=yes 8939 $RM conftest* 8940 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8941 touch conftest.a 8942 ln conftest.a conftest.b 2>&5 || hard_links=no 8943 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8945$as_echo "$hard_links" >&6; } 8946 if test "$hard_links" = no; then 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8948$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8949 need_locks=warn 8950 fi 8951else 8952 need_locks=no 8953fi 8954 8955 8956 8957 8958 8959 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8961$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8962 8963 runpath_var= 8964 allow_undefined_flag= 8965 always_export_symbols=no 8966 archive_cmds= 8967 archive_expsym_cmds= 8968 compiler_needs_object=no 8969 enable_shared_with_static_runtimes=no 8970 export_dynamic_flag_spec= 8971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8972 hardcode_automatic=no 8973 hardcode_direct=no 8974 hardcode_direct_absolute=no 8975 hardcode_libdir_flag_spec= 8976 hardcode_libdir_separator= 8977 hardcode_minus_L=no 8978 hardcode_shlibpath_var=unsupported 8979 inherit_rpath=no 8980 link_all_deplibs=unknown 8981 module_cmds= 8982 module_expsym_cmds= 8983 old_archive_from_new_cmds= 8984 old_archive_from_expsyms_cmds= 8985 thread_safe_flag_spec= 8986 whole_archive_flag_spec= 8987 # include_expsyms should be a list of space-separated symbols to be *always* 8988 # included in the symbol list 8989 include_expsyms= 8990 # exclude_expsyms can be an extended regexp of symbols to exclude 8991 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8992 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8993 # as well as any symbol that contains `d'. 8994 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8995 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8996 # platforms (ab)use it in PIC code, but their linkers get confused if 8997 # the symbol is explicitly referenced. Since portable code cannot 8998 # rely on this symbol name, it's probably fine to never include it in 8999 # preloaded symbol tables. 9000 # Exclude shared library initialization/finalization symbols. 9001 extract_expsyms_cmds= 9002 9003 case $host_os in 9004 cygwin* | mingw* | pw32* | cegcc*) 9005 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9006 # When not using gcc, we currently assume that we are using 9007 # Microsoft Visual C++. 9008 if test "$GCC" != yes; then 9009 with_gnu_ld=no 9010 fi 9011 ;; 9012 interix*) 9013 # we just hope/assume this is gcc and not c89 (= MSVC++) 9014 with_gnu_ld=yes 9015 ;; 9016 openbsd*) 9017 with_gnu_ld=no 9018 ;; 9019 linux* | k*bsd*-gnu | gnu*) 9020 link_all_deplibs=no 9021 ;; 9022 esac 9023 9024 ld_shlibs=yes 9025 9026 # On some targets, GNU ld is compatible enough with the native linker 9027 # that we're better off using the native interface for both. 9028 lt_use_gnu_ld_interface=no 9029 if test "$with_gnu_ld" = yes; then 9030 case $host_os in 9031 aix*) 9032 # The AIX port of GNU ld has always aspired to compatibility 9033 # with the native linker. However, as the warning in the GNU ld 9034 # block says, versions before 2.19.5* couldn't really create working 9035 # shared libraries, regardless of the interface used. 9036 case `$LD -v 2>&1` in 9037 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9038 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9039 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9040 *) 9041 lt_use_gnu_ld_interface=yes 9042 ;; 9043 esac 9044 ;; 9045 *) 9046 lt_use_gnu_ld_interface=yes 9047 ;; 9048 esac 9049 fi 9050 9051 if test "$lt_use_gnu_ld_interface" = yes; then 9052 # If archive_cmds runs LD, not CC, wlarc should be empty 9053 wlarc='${wl}' 9054 9055 # Set some defaults for GNU ld with shared library support. These 9056 # are reset later if shared libraries are not supported. Putting them 9057 # here allows them to be overridden if necessary. 9058 runpath_var=LD_RUN_PATH 9059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9060 export_dynamic_flag_spec='${wl}--export-dynamic' 9061 # ancient GNU ld didn't support --whole-archive et. al. 9062 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9063 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9064 else 9065 whole_archive_flag_spec= 9066 fi 9067 supports_anon_versioning=no 9068 case `$LD -v 2>&1` in 9069 *GNU\ gold*) supports_anon_versioning=yes ;; 9070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9073 *\ 2.11.*) ;; # other 2.11 versions 9074 *) supports_anon_versioning=yes ;; 9075 esac 9076 9077 # See if GNU ld supports shared libraries. 9078 case $host_os in 9079 aix[3-9]*) 9080 # On AIX/PPC, the GNU linker is very broken 9081 if test "$host_cpu" != ia64; then 9082 ld_shlibs=no 9083 cat <<_LT_EOF 1>&2 9084 9085*** Warning: the GNU linker, at least up to release 2.19, is reported 9086*** to be unable to reliably create shared libraries on AIX. 9087*** Therefore, libtool is disabling shared libraries support. If you 9088*** really care for shared libraries, you may want to install binutils 9089*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9090*** You will then need to restart the configuration process. 9091 9092_LT_EOF 9093 fi 9094 ;; 9095 9096 amigaos*) 9097 case $host_cpu in 9098 powerpc) 9099 # see comment about AmigaOS4 .so support 9100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9101 archive_expsym_cmds='' 9102 ;; 9103 m68k) 9104 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)' 9105 hardcode_libdir_flag_spec='-L$libdir' 9106 hardcode_minus_L=yes 9107 ;; 9108 esac 9109 ;; 9110 9111 beos*) 9112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9113 allow_undefined_flag=unsupported 9114 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9115 # support --undefined. This deserves some investigation. FIXME 9116 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9117 else 9118 ld_shlibs=no 9119 fi 9120 ;; 9121 9122 cygwin* | mingw* | pw32* | cegcc*) 9123 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9124 # as there is no search path for DLLs. 9125 hardcode_libdir_flag_spec='-L$libdir' 9126 export_dynamic_flag_spec='${wl}--export-all-symbols' 9127 allow_undefined_flag=unsupported 9128 always_export_symbols=no 9129 enable_shared_with_static_runtimes=yes 9130 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' 9131 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9132 9133 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9135 # If the export-symbols file already is a .def file (1st line 9136 # is EXPORTS), use it as is; otherwise, prepend... 9137 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9138 cp $export_symbols $output_objdir/$soname.def; 9139 else 9140 echo EXPORTS > $output_objdir/$soname.def; 9141 cat $export_symbols >> $output_objdir/$soname.def; 9142 fi~ 9143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9144 else 9145 ld_shlibs=no 9146 fi 9147 ;; 9148 9149 haiku*) 9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9151 link_all_deplibs=yes 9152 ;; 9153 9154 interix[3-9]*) 9155 hardcode_direct=no 9156 hardcode_shlibpath_var=no 9157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9158 export_dynamic_flag_spec='${wl}-E' 9159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9160 # Instead, shared libraries are loaded at an image base (0x10000000 by 9161 # default) and relocated if they conflict, which is a slow very memory 9162 # consuming and fragmenting process. To avoid this, we pick a random, 9163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9164 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9166 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' 9167 ;; 9168 9169 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9170 tmp_diet=no 9171 if test "$host_os" = linux-dietlibc; then 9172 case $cc_basename in 9173 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9174 esac 9175 fi 9176 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9177 && test "$tmp_diet" = no 9178 then 9179 tmp_addflag=' $pic_flag' 9180 tmp_sharedflag='-shared' 9181 case $cc_basename,$host_cpu in 9182 pgcc*) # Portland Group C compiler 9183 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' 9184 tmp_addflag=' $pic_flag' 9185 ;; 9186 pgf77* | pgf90* | pgf95* | pgfortran*) 9187 # Portland Group f77 and f90 compilers 9188 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' 9189 tmp_addflag=' $pic_flag -Mnomain' ;; 9190 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9191 tmp_addflag=' -i_dynamic' ;; 9192 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9193 tmp_addflag=' -i_dynamic -nofor_main' ;; 9194 ifc* | ifort*) # Intel Fortran compiler 9195 tmp_addflag=' -nofor_main' ;; 9196 lf95*) # Lahey Fortran 8.1 9197 whole_archive_flag_spec= 9198 tmp_sharedflag='--shared' ;; 9199 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9200 tmp_sharedflag='-qmkshrobj' 9201 tmp_addflag= ;; 9202 nvcc*) # Cuda Compiler Driver 2.2 9203 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' 9204 compiler_needs_object=yes 9205 ;; 9206 esac 9207 case `$CC -V 2>&1 | sed 5q` in 9208 *Sun\ C*) # Sun C 5.9 9209 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' 9210 compiler_needs_object=yes 9211 tmp_sharedflag='-G' ;; 9212 *Sun\ F*) # Sun Fortran 8.3 9213 tmp_sharedflag='-G' ;; 9214 esac 9215 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9216 9217 if test "x$supports_anon_versioning" = xyes; then 9218 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9220 echo "local: *; };" >> $output_objdir/$libname.ver~ 9221 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9222 fi 9223 9224 case $cc_basename in 9225 xlf* | bgf* | bgxlf* | mpixlf*) 9226 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9227 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9229 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9230 if test "x$supports_anon_versioning" = xyes; then 9231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9233 echo "local: *; };" >> $output_objdir/$libname.ver~ 9234 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9235 fi 9236 ;; 9237 esac 9238 else 9239 ld_shlibs=no 9240 fi 9241 ;; 9242 9243 netbsd* | netbsdelf*-gnu) 9244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9245 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9246 wlarc= 9247 else 9248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9249 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9250 fi 9251 ;; 9252 9253 solaris*) 9254 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9255 ld_shlibs=no 9256 cat <<_LT_EOF 1>&2 9257 9258*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9259*** create shared libraries on Solaris systems. Therefore, libtool 9260*** is disabling shared libraries support. We urge you to upgrade GNU 9261*** binutils to release 2.9.1 or newer. Another option is to modify 9262*** your PATH or compiler configuration so that the native linker is 9263*** used, and then restart. 9264 9265_LT_EOF 9266 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9268 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9269 else 9270 ld_shlibs=no 9271 fi 9272 ;; 9273 9274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9275 case `$LD -v 2>&1` in 9276 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9277 ld_shlibs=no 9278 cat <<_LT_EOF 1>&2 9279 9280*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9281*** reliably create shared libraries on SCO systems. Therefore, libtool 9282*** is disabling shared libraries support. We urge you to upgrade GNU 9283*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9284*** your PATH or compiler configuration so that the native linker is 9285*** used, and then restart. 9286 9287_LT_EOF 9288 ;; 9289 *) 9290 # For security reasons, it is highly recommended that you always 9291 # use absolute paths for naming shared libraries, and exclude the 9292 # DT_RUNPATH tag from executables and libraries. But doing so 9293 # requires that you compile everything twice, which is a pain. 9294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9298 else 9299 ld_shlibs=no 9300 fi 9301 ;; 9302 esac 9303 ;; 9304 9305 sunos4*) 9306 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9307 wlarc= 9308 hardcode_direct=yes 9309 hardcode_shlibpath_var=no 9310 ;; 9311 9312 *) 9313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9315 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9316 else 9317 ld_shlibs=no 9318 fi 9319 ;; 9320 esac 9321 9322 if test "$ld_shlibs" = no; then 9323 runpath_var= 9324 hardcode_libdir_flag_spec= 9325 export_dynamic_flag_spec= 9326 whole_archive_flag_spec= 9327 fi 9328 else 9329 # PORTME fill in a description of your system's linker (not GNU ld) 9330 case $host_os in 9331 aix3*) 9332 allow_undefined_flag=unsupported 9333 always_export_symbols=yes 9334 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' 9335 # Note: this linker hardcodes the directories in LIBPATH if there 9336 # are no directories specified by -L. 9337 hardcode_minus_L=yes 9338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9339 # Neither direct hardcoding nor static linking is supported with a 9340 # broken collect2. 9341 hardcode_direct=unsupported 9342 fi 9343 ;; 9344 9345 aix[4-9]*) 9346 if test "$host_cpu" = ia64; then 9347 # On IA64, the linker does run time linking by default, so we don't 9348 # have to do anything special. 9349 aix_use_runtimelinking=no 9350 exp_sym_flag='-Bexport' 9351 no_entry_flag="" 9352 else 9353 # If we're using GNU nm, then we don't want the "-C" option. 9354 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9355 # Also, AIX nm treats weak defined symbols like other global 9356 # defined symbols, whereas GNU nm marks them as "W". 9357 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9358 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' 9359 else 9360 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' 9361 fi 9362 aix_use_runtimelinking=no 9363 9364 # Test if we are trying to use run time linking or normal 9365 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9366 # need to do runtime linking. 9367 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9368 for ld_flag in $LDFLAGS; do 9369 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9370 aix_use_runtimelinking=yes 9371 break 9372 fi 9373 done 9374 ;; 9375 esac 9376 9377 exp_sym_flag='-bexport' 9378 no_entry_flag='-bnoentry' 9379 fi 9380 9381 # When large executables or shared objects are built, AIX ld can 9382 # have problems creating the table of contents. If linking a library 9383 # or program results in "error TOC overflow" add -mminimal-toc to 9384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9386 9387 archive_cmds='' 9388 hardcode_direct=yes 9389 hardcode_direct_absolute=yes 9390 hardcode_libdir_separator=':' 9391 link_all_deplibs=yes 9392 file_list_spec='${wl}-f,' 9393 9394 if test "$GCC" = yes; then 9395 case $host_os in aix4.[012]|aix4.[012].*) 9396 # We only want to do this on AIX 4.2 and lower, the check 9397 # below for broken collect2 doesn't work under 4.3+ 9398 collect2name=`${CC} -print-prog-name=collect2` 9399 if test -f "$collect2name" && 9400 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9401 then 9402 # We have reworked collect2 9403 : 9404 else 9405 # We have old collect2 9406 hardcode_direct=unsupported 9407 # It fails to find uninstalled libraries when the uninstalled 9408 # path is not listed in the libpath. Setting hardcode_minus_L 9409 # to unsupported forces relinking 9410 hardcode_minus_L=yes 9411 hardcode_libdir_flag_spec='-L$libdir' 9412 hardcode_libdir_separator= 9413 fi 9414 ;; 9415 esac 9416 shared_flag='-shared' 9417 if test "$aix_use_runtimelinking" = yes; then 9418 shared_flag="$shared_flag "'${wl}-G' 9419 fi 9420 link_all_deplibs=no 9421 else 9422 # not using gcc 9423 if test "$host_cpu" = ia64; then 9424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9425 # chokes on -Wl,-G. The following line is correct: 9426 shared_flag='-G' 9427 else 9428 if test "$aix_use_runtimelinking" = yes; then 9429 shared_flag='${wl}-G' 9430 else 9431 shared_flag='${wl}-bM:SRE' 9432 fi 9433 fi 9434 fi 9435 9436 export_dynamic_flag_spec='${wl}-bexpall' 9437 # It seems that -bexpall does not export symbols beginning with 9438 # underscore (_), so it is better to generate a list of symbols to export. 9439 always_export_symbols=yes 9440 if test "$aix_use_runtimelinking" = yes; then 9441 # Warning - without using the other runtime loading flags (-brtl), 9442 # -berok will link without error, but may produce a broken library. 9443 allow_undefined_flag='-berok' 9444 # Determine the default libpath from the value encoded in an 9445 # empty executable. 9446 if test "${lt_cv_aix_libpath+set}" = set; then 9447 aix_libpath=$lt_cv_aix_libpath 9448else 9449 if ${lt_cv_aix_libpath_+:} false; then : 9450 $as_echo_n "(cached) " >&6 9451else 9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9453/* end confdefs.h. */ 9454 9455int 9456main () 9457{ 9458 9459 ; 9460 return 0; 9461} 9462_ACEOF 9463if ac_fn_c_try_link "$LINENO"; then : 9464 9465 lt_aix_libpath_sed=' 9466 /Import File Strings/,/^$/ { 9467 /^0/ { 9468 s/^0 *\([^ ]*\) *$/\1/ 9469 p 9470 } 9471 }' 9472 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9473 # Check for a 64-bit object if we didn't find anything. 9474 if test -z "$lt_cv_aix_libpath_"; then 9475 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9476 fi 9477fi 9478rm -f core conftest.err conftest.$ac_objext \ 9479 conftest$ac_exeext conftest.$ac_ext 9480 if test -z "$lt_cv_aix_libpath_"; then 9481 lt_cv_aix_libpath_="/usr/lib:/lib" 9482 fi 9483 9484fi 9485 9486 aix_libpath=$lt_cv_aix_libpath_ 9487fi 9488 9489 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9490 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" 9491 else 9492 if test "$host_cpu" = ia64; then 9493 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9494 allow_undefined_flag="-z nodefs" 9495 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" 9496 else 9497 # Determine the default libpath from the value encoded in an 9498 # empty executable. 9499 if test "${lt_cv_aix_libpath+set}" = set; then 9500 aix_libpath=$lt_cv_aix_libpath 9501else 9502 if ${lt_cv_aix_libpath_+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506/* end confdefs.h. */ 9507 9508int 9509main () 9510{ 9511 9512 ; 9513 return 0; 9514} 9515_ACEOF 9516if ac_fn_c_try_link "$LINENO"; then : 9517 9518 lt_aix_libpath_sed=' 9519 /Import File Strings/,/^$/ { 9520 /^0/ { 9521 s/^0 *\([^ ]*\) *$/\1/ 9522 p 9523 } 9524 }' 9525 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9526 # Check for a 64-bit object if we didn't find anything. 9527 if test -z "$lt_cv_aix_libpath_"; then 9528 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9529 fi 9530fi 9531rm -f core conftest.err conftest.$ac_objext \ 9532 conftest$ac_exeext conftest.$ac_ext 9533 if test -z "$lt_cv_aix_libpath_"; then 9534 lt_cv_aix_libpath_="/usr/lib:/lib" 9535 fi 9536 9537fi 9538 9539 aix_libpath=$lt_cv_aix_libpath_ 9540fi 9541 9542 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9543 # Warning - without using the other run time loading flags, 9544 # -berok will link without error, but may produce a broken library. 9545 no_undefined_flag=' ${wl}-bernotok' 9546 allow_undefined_flag=' ${wl}-berok' 9547 if test "$with_gnu_ld" = yes; then 9548 # We only use this code for GNU lds that support --whole-archive. 9549 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9550 else 9551 # Exported symbols can be pulled into shared objects from archives 9552 whole_archive_flag_spec='$convenience' 9553 fi 9554 archive_cmds_need_lc=yes 9555 # This is similar to how AIX traditionally builds its shared libraries. 9556 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' 9557 fi 9558 fi 9559 ;; 9560 9561 amigaos*) 9562 case $host_cpu in 9563 powerpc) 9564 # see comment about AmigaOS4 .so support 9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9566 archive_expsym_cmds='' 9567 ;; 9568 m68k) 9569 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)' 9570 hardcode_libdir_flag_spec='-L$libdir' 9571 hardcode_minus_L=yes 9572 ;; 9573 esac 9574 ;; 9575 9576 bsdi[45]*) 9577 export_dynamic_flag_spec=-rdynamic 9578 ;; 9579 9580 cygwin* | mingw* | pw32* | cegcc*) 9581 # When not using gcc, we currently assume that we are using 9582 # Microsoft Visual C++. 9583 # hardcode_libdir_flag_spec is actually meaningless, as there is 9584 # no search path for DLLs. 9585 case $cc_basename in 9586 cl*) 9587 # Native MSVC 9588 hardcode_libdir_flag_spec=' ' 9589 allow_undefined_flag=unsupported 9590 always_export_symbols=yes 9591 file_list_spec='@' 9592 # Tell ltmain to make .lib files, not .a files. 9593 libext=lib 9594 # Tell ltmain to make .dll files, not .so files. 9595 shrext_cmds=".dll" 9596 # FIXME: Setting linknames here is a bad hack. 9597 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9598 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9599 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9600 else 9601 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9602 fi~ 9603 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9604 linknames=' 9605 # The linker will not automatically build a static lib if we build a DLL. 9606 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9607 enable_shared_with_static_runtimes=yes 9608 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9610 # Don't use ranlib 9611 old_postinstall_cmds='chmod 644 $oldlib' 9612 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9613 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9614 case $lt_outputfile in 9615 *.exe|*.EXE) ;; 9616 *) 9617 lt_outputfile="$lt_outputfile.exe" 9618 lt_tool_outputfile="$lt_tool_outputfile.exe" 9619 ;; 9620 esac~ 9621 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9622 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9623 $RM "$lt_outputfile.manifest"; 9624 fi' 9625 ;; 9626 *) 9627 # Assume MSVC wrapper 9628 hardcode_libdir_flag_spec=' ' 9629 allow_undefined_flag=unsupported 9630 # Tell ltmain to make .lib files, not .a files. 9631 libext=lib 9632 # Tell ltmain to make .dll files, not .so files. 9633 shrext_cmds=".dll" 9634 # FIXME: Setting linknames here is a bad hack. 9635 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9636 # The linker will automatically build a .lib file if we build a DLL. 9637 old_archive_from_new_cmds='true' 9638 # FIXME: Should let the user specify the lib program. 9639 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9640 enable_shared_with_static_runtimes=yes 9641 ;; 9642 esac 9643 ;; 9644 9645 darwin* | rhapsody*) 9646 9647 9648 archive_cmds_need_lc=no 9649 hardcode_direct=no 9650 hardcode_automatic=yes 9651 hardcode_shlibpath_var=unsupported 9652 if test "$lt_cv_ld_force_load" = "yes"; then 9653 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\"`' 9654 9655 else 9656 whole_archive_flag_spec='' 9657 fi 9658 link_all_deplibs=yes 9659 allow_undefined_flag="$_lt_dar_allow_undefined" 9660 case $cc_basename in 9661 ifort*) _lt_dar_can_shared=yes ;; 9662 *) _lt_dar_can_shared=$GCC ;; 9663 esac 9664 if test "$_lt_dar_can_shared" = "yes"; then 9665 output_verbose_link_cmd=func_echo_all 9666 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9667 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9668 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}" 9669 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}" 9670 9671 else 9672 ld_shlibs=no 9673 fi 9674 9675 ;; 9676 9677 dgux*) 9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9679 hardcode_libdir_flag_spec='-L$libdir' 9680 hardcode_shlibpath_var=no 9681 ;; 9682 9683 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9684 # support. Future versions do this automatically, but an explicit c++rt0.o 9685 # does not break anything, and helps significantly (at the cost of a little 9686 # extra space). 9687 freebsd2.2*) 9688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9689 hardcode_libdir_flag_spec='-R$libdir' 9690 hardcode_direct=yes 9691 hardcode_shlibpath_var=no 9692 ;; 9693 9694 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9695 freebsd2.*) 9696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9697 hardcode_direct=yes 9698 hardcode_minus_L=yes 9699 hardcode_shlibpath_var=no 9700 ;; 9701 9702 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9703 freebsd* | dragonfly*) 9704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9705 hardcode_libdir_flag_spec='-R$libdir' 9706 hardcode_direct=yes 9707 hardcode_shlibpath_var=no 9708 ;; 9709 9710 hpux9*) 9711 if test "$GCC" = yes; then 9712 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' 9713 else 9714 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' 9715 fi 9716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9717 hardcode_libdir_separator=: 9718 hardcode_direct=yes 9719 9720 # hardcode_minus_L: Not really in the search PATH, 9721 # but as the default location of the library. 9722 hardcode_minus_L=yes 9723 export_dynamic_flag_spec='${wl}-E' 9724 ;; 9725 9726 hpux10*) 9727 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9728 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9729 else 9730 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9731 fi 9732 if test "$with_gnu_ld" = no; then 9733 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9734 hardcode_libdir_separator=: 9735 hardcode_direct=yes 9736 hardcode_direct_absolute=yes 9737 export_dynamic_flag_spec='${wl}-E' 9738 # hardcode_minus_L: Not really in the search PATH, 9739 # but as the default location of the library. 9740 hardcode_minus_L=yes 9741 fi 9742 ;; 9743 9744 hpux11*) 9745 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9746 case $host_cpu in 9747 hppa*64*) 9748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9749 ;; 9750 ia64*) 9751 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9752 ;; 9753 *) 9754 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9755 ;; 9756 esac 9757 else 9758 case $host_cpu in 9759 hppa*64*) 9760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9761 ;; 9762 ia64*) 9763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9764 ;; 9765 *) 9766 9767 # Older versions of the 11.00 compiler do not understand -b yet 9768 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9770$as_echo_n "checking if $CC understands -b... " >&6; } 9771if ${lt_cv_prog_compiler__b+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 lt_cv_prog_compiler__b=no 9775 save_LDFLAGS="$LDFLAGS" 9776 LDFLAGS="$LDFLAGS -b" 9777 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9779 # The linker can only warn and ignore the option if not recognized 9780 # So say no if there are warnings 9781 if test -s conftest.err; then 9782 # Append any errors to the config.log. 9783 cat conftest.err 1>&5 9784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9786 if diff conftest.exp conftest.er2 >/dev/null; then 9787 lt_cv_prog_compiler__b=yes 9788 fi 9789 else 9790 lt_cv_prog_compiler__b=yes 9791 fi 9792 fi 9793 $RM -r conftest* 9794 LDFLAGS="$save_LDFLAGS" 9795 9796fi 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9798$as_echo "$lt_cv_prog_compiler__b" >&6; } 9799 9800if test x"$lt_cv_prog_compiler__b" = xyes; then 9801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9802else 9803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9804fi 9805 9806 ;; 9807 esac 9808 fi 9809 if test "$with_gnu_ld" = no; then 9810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9811 hardcode_libdir_separator=: 9812 9813 case $host_cpu in 9814 hppa*64*|ia64*) 9815 hardcode_direct=no 9816 hardcode_shlibpath_var=no 9817 ;; 9818 *) 9819 hardcode_direct=yes 9820 hardcode_direct_absolute=yes 9821 export_dynamic_flag_spec='${wl}-E' 9822 9823 # hardcode_minus_L: Not really in the search PATH, 9824 # but as the default location of the library. 9825 hardcode_minus_L=yes 9826 ;; 9827 esac 9828 fi 9829 ;; 9830 9831 irix5* | irix6* | nonstopux*) 9832 if test "$GCC" = yes; then 9833 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' 9834 # Try to use the -exported_symbol ld option, if it does not 9835 # work, assume that -exports_file does not work either and 9836 # implicitly export all symbols. 9837 # This should be the same for all languages, so no per-tag cache variable. 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9839$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9840if ${lt_cv_irix_exported_symbol+:} false; then : 9841 $as_echo_n "(cached) " >&6 9842else 9843 save_LDFLAGS="$LDFLAGS" 9844 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847int foo (void) { return 0; } 9848_ACEOF 9849if ac_fn_c_try_link "$LINENO"; then : 9850 lt_cv_irix_exported_symbol=yes 9851else 9852 lt_cv_irix_exported_symbol=no 9853fi 9854rm -f core conftest.err conftest.$ac_objext \ 9855 conftest$ac_exeext conftest.$ac_ext 9856 LDFLAGS="$save_LDFLAGS" 9857fi 9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9859$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9860 if test "$lt_cv_irix_exported_symbol" = yes; then 9861 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' 9862 fi 9863 else 9864 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' 9865 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' 9866 fi 9867 archive_cmds_need_lc='no' 9868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9869 hardcode_libdir_separator=: 9870 inherit_rpath=yes 9871 link_all_deplibs=yes 9872 ;; 9873 9874 netbsd* | netbsdelf*-gnu) 9875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9877 else 9878 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9879 fi 9880 hardcode_libdir_flag_spec='-R$libdir' 9881 hardcode_direct=yes 9882 hardcode_shlibpath_var=no 9883 ;; 9884 9885 newsos6) 9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9887 hardcode_direct=yes 9888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9889 hardcode_libdir_separator=: 9890 hardcode_shlibpath_var=no 9891 ;; 9892 9893 *nto* | *qnx*) 9894 ;; 9895 9896 openbsd*) 9897 if test -f /usr/libexec/ld.so; then 9898 hardcode_direct=yes 9899 hardcode_shlibpath_var=no 9900 hardcode_direct_absolute=yes 9901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9903 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9905 export_dynamic_flag_spec='${wl}-E' 9906 else 9907 case $host_os in 9908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9910 hardcode_libdir_flag_spec='-R$libdir' 9911 ;; 9912 *) 9913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9915 ;; 9916 esac 9917 fi 9918 else 9919 ld_shlibs=no 9920 fi 9921 ;; 9922 9923 os2*) 9924 hardcode_libdir_flag_spec='-L$libdir' 9925 hardcode_minus_L=yes 9926 allow_undefined_flag=unsupported 9927 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' 9928 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9929 ;; 9930 9931 osf3*) 9932 if test "$GCC" = yes; then 9933 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9934 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' 9935 else 9936 allow_undefined_flag=' -expect_unresolved \*' 9937 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' 9938 fi 9939 archive_cmds_need_lc='no' 9940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9941 hardcode_libdir_separator=: 9942 ;; 9943 9944 osf4* | osf5*) # as osf3* with the addition of -msym flag 9945 if test "$GCC" = yes; then 9946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9947 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' 9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9949 else 9950 allow_undefined_flag=' -expect_unresolved \*' 9951 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' 9952 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~ 9953 $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' 9954 9955 # Both c and cxx compiler support -rpath directly 9956 hardcode_libdir_flag_spec='-rpath $libdir' 9957 fi 9958 archive_cmds_need_lc='no' 9959 hardcode_libdir_separator=: 9960 ;; 9961 9962 solaris*) 9963 no_undefined_flag=' -z defs' 9964 if test "$GCC" = yes; then 9965 wlarc='${wl}' 9966 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9968 $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' 9969 else 9970 case `$CC -V 2>&1` in 9971 *"Compilers 5.0"*) 9972 wlarc='' 9973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9976 ;; 9977 *) 9978 wlarc='${wl}' 9979 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9981 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9982 ;; 9983 esac 9984 fi 9985 hardcode_libdir_flag_spec='-R$libdir' 9986 hardcode_shlibpath_var=no 9987 case $host_os in 9988 solaris2.[0-5] | solaris2.[0-5].*) ;; 9989 *) 9990 # The compiler driver will combine and reorder linker options, 9991 # but understands `-z linker_flag'. GCC discards it without `$wl', 9992 # but is careful enough not to reorder. 9993 # Supported since Solaris 2.6 (maybe 2.5.1?) 9994 if test "$GCC" = yes; then 9995 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9996 else 9997 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9998 fi 9999 ;; 10000 esac 10001 link_all_deplibs=yes 10002 ;; 10003 10004 sunos4*) 10005 if test "x$host_vendor" = xsequent; then 10006 # Use $CC to link under sequent, because it throws in some extra .o 10007 # files that make .init and .fini sections work. 10008 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10009 else 10010 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10011 fi 10012 hardcode_libdir_flag_spec='-L$libdir' 10013 hardcode_direct=yes 10014 hardcode_minus_L=yes 10015 hardcode_shlibpath_var=no 10016 ;; 10017 10018 sysv4) 10019 case $host_vendor in 10020 sni) 10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10022 hardcode_direct=yes # is this really true??? 10023 ;; 10024 siemens) 10025 ## LD is ld it makes a PLAMLIB 10026 ## CC just makes a GrossModule. 10027 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10028 reload_cmds='$CC -r -o $output$reload_objs' 10029 hardcode_direct=no 10030 ;; 10031 motorola) 10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10033 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10034 ;; 10035 esac 10036 runpath_var='LD_RUN_PATH' 10037 hardcode_shlibpath_var=no 10038 ;; 10039 10040 sysv4.3*) 10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10042 hardcode_shlibpath_var=no 10043 export_dynamic_flag_spec='-Bexport' 10044 ;; 10045 10046 sysv4*MP*) 10047 if test -d /usr/nec; then 10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10049 hardcode_shlibpath_var=no 10050 runpath_var=LD_RUN_PATH 10051 hardcode_runpath_var=yes 10052 ld_shlibs=yes 10053 fi 10054 ;; 10055 10056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10057 no_undefined_flag='${wl}-z,text' 10058 archive_cmds_need_lc=no 10059 hardcode_shlibpath_var=no 10060 runpath_var='LD_RUN_PATH' 10061 10062 if test "$GCC" = yes; then 10063 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10064 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10065 else 10066 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10067 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10068 fi 10069 ;; 10070 10071 sysv5* | sco3.2v5* | sco5v6*) 10072 # Note: We can NOT use -z defs as we might desire, because we do not 10073 # link with -lc, and that would cause any symbols used from libc to 10074 # always be unresolved, which means just about no library would 10075 # ever link correctly. If we're not using GNU ld we use -z text 10076 # though, which does catch some bad symbols but isn't as heavy-handed 10077 # as -z defs. 10078 no_undefined_flag='${wl}-z,text' 10079 allow_undefined_flag='${wl}-z,nodefs' 10080 archive_cmds_need_lc=no 10081 hardcode_shlibpath_var=no 10082 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10083 hardcode_libdir_separator=':' 10084 link_all_deplibs=yes 10085 export_dynamic_flag_spec='${wl}-Bexport' 10086 runpath_var='LD_RUN_PATH' 10087 10088 if test "$GCC" = yes; then 10089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10091 else 10092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10094 fi 10095 ;; 10096 10097 uts4*) 10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10099 hardcode_libdir_flag_spec='-L$libdir' 10100 hardcode_shlibpath_var=no 10101 ;; 10102 10103 *) 10104 ld_shlibs=no 10105 ;; 10106 esac 10107 10108 if test x$host_vendor = xsni; then 10109 case $host in 10110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10111 export_dynamic_flag_spec='${wl}-Blargedynsym' 10112 ;; 10113 esac 10114 fi 10115 fi 10116 10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10118$as_echo "$ld_shlibs" >&6; } 10119test "$ld_shlibs" = no && can_build_shared=no 10120 10121with_gnu_ld=$with_gnu_ld 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137# 10138# Do we need to explicitly link libc? 10139# 10140case "x$archive_cmds_need_lc" in 10141x|xyes) 10142 # Assume -lc should be added 10143 archive_cmds_need_lc=yes 10144 10145 if test "$enable_shared" = yes && test "$GCC" = yes; then 10146 case $archive_cmds in 10147 *'~'*) 10148 # FIXME: we may have to deal with multi-command sequences. 10149 ;; 10150 '$CC '*) 10151 # Test whether the compiler implicitly links with -lc since on some 10152 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10153 # to ld, don't add -lc before -lgcc. 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10155$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10156if ${lt_cv_archive_cmds_need_lc+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158else 10159 $RM conftest* 10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10161 10162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10163 (eval $ac_compile) 2>&5 10164 ac_status=$? 10165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10166 test $ac_status = 0; } 2>conftest.err; then 10167 soname=conftest 10168 lib=conftest 10169 libobjs=conftest.$ac_objext 10170 deplibs= 10171 wl=$lt_prog_compiler_wl 10172 pic_flag=$lt_prog_compiler_pic 10173 compiler_flags=-v 10174 linker_flags=-v 10175 verstring= 10176 output_objdir=. 10177 libname=conftest 10178 lt_save_allow_undefined_flag=$allow_undefined_flag 10179 allow_undefined_flag= 10180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10181 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10182 ac_status=$? 10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10184 test $ac_status = 0; } 10185 then 10186 lt_cv_archive_cmds_need_lc=no 10187 else 10188 lt_cv_archive_cmds_need_lc=yes 10189 fi 10190 allow_undefined_flag=$lt_save_allow_undefined_flag 10191 else 10192 cat conftest.err 1>&5 10193 fi 10194 $RM conftest* 10195 10196fi 10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10198$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10199 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10200 ;; 10201 esac 10202 fi 10203 ;; 10204esac 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10358$as_echo_n "checking dynamic linker characteristics... " >&6; } 10359 10360if test "$GCC" = yes; then 10361 case $host_os in 10362 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10363 *) lt_awk_arg="/^libraries:/" ;; 10364 esac 10365 case $host_os in 10366 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10367 *) lt_sed_strip_eq="s,=/,/,g" ;; 10368 esac 10369 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10370 case $lt_search_path_spec in 10371 *\;*) 10372 # if the path contains ";" then we assume it to be the separator 10373 # otherwise default to the standard path separator (i.e. ":") - it is 10374 # assumed that no part of a normal pathname contains ";" but that should 10375 # okay in the real world where ";" in dirpaths is itself problematic. 10376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10377 ;; 10378 *) 10379 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10380 ;; 10381 esac 10382 # Ok, now we have the path, separated by spaces, we can step through it 10383 # and add multilib dir if necessary. 10384 lt_tmp_lt_search_path_spec= 10385 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10386 for lt_sys_path in $lt_search_path_spec; do 10387 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10388 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10389 else 10390 test -d "$lt_sys_path" && \ 10391 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10392 fi 10393 done 10394 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10395BEGIN {RS=" "; FS="/|\n";} { 10396 lt_foo=""; 10397 lt_count=0; 10398 for (lt_i = NF; lt_i > 0; lt_i--) { 10399 if ($lt_i != "" && $lt_i != ".") { 10400 if ($lt_i == "..") { 10401 lt_count++; 10402 } else { 10403 if (lt_count == 0) { 10404 lt_foo="/" $lt_i lt_foo; 10405 } else { 10406 lt_count--; 10407 } 10408 } 10409 } 10410 } 10411 if (lt_foo != "") { lt_freq[lt_foo]++; } 10412 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10413}'` 10414 # AWK program above erroneously prepends '/' to C:/dos/paths 10415 # for these hosts. 10416 case $host_os in 10417 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10418 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10419 esac 10420 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10421else 10422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10423fi 10424library_names_spec= 10425libname_spec='lib$name' 10426soname_spec= 10427shrext_cmds=".so" 10428postinstall_cmds= 10429postuninstall_cmds= 10430finish_cmds= 10431finish_eval= 10432shlibpath_var= 10433shlibpath_overrides_runpath=unknown 10434version_type=none 10435dynamic_linker="$host_os ld.so" 10436sys_lib_dlsearch_path_spec="/lib /usr/lib" 10437need_lib_prefix=unknown 10438hardcode_into_libs=no 10439 10440# when you set need_version to no, make sure it does not cause -set_version 10441# flags to be left without arguments 10442need_version=unknown 10443 10444case $host_os in 10445aix3*) 10446 version_type=linux # correct to gnu/linux during the next big refactor 10447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10448 shlibpath_var=LIBPATH 10449 10450 # AIX 3 has no versioning support, so we append a major version to the name. 10451 soname_spec='${libname}${release}${shared_ext}$major' 10452 ;; 10453 10454aix[4-9]*) 10455 version_type=linux # correct to gnu/linux during the next big refactor 10456 need_lib_prefix=no 10457 need_version=no 10458 hardcode_into_libs=yes 10459 if test "$host_cpu" = ia64; then 10460 # AIX 5 supports IA64 10461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10462 shlibpath_var=LD_LIBRARY_PATH 10463 else 10464 # With GCC up to 2.95.x, collect2 would create an import file 10465 # for dependence libraries. The import file would start with 10466 # the line `#! .'. This would cause the generated library to 10467 # depend on `.', always an invalid library. This was fixed in 10468 # development snapshots of GCC prior to 3.0. 10469 case $host_os in 10470 aix4 | aix4.[01] | aix4.[01].*) 10471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10472 echo ' yes ' 10473 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10474 : 10475 else 10476 can_build_shared=no 10477 fi 10478 ;; 10479 esac 10480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10481 # soname into executable. Probably we can add versioning support to 10482 # collect2, so additional links can be useful in future. 10483 if test "$aix_use_runtimelinking" = yes; then 10484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10485 # instead of lib<name>.a to let people know that these are not 10486 # typical AIX shared libraries. 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10488 else 10489 # We preserve .a as extension for shared libraries through AIX4.2 10490 # and later when we are not doing run time linking. 10491 library_names_spec='${libname}${release}.a $libname.a' 10492 soname_spec='${libname}${release}${shared_ext}$major' 10493 fi 10494 shlibpath_var=LIBPATH 10495 fi 10496 ;; 10497 10498amigaos*) 10499 case $host_cpu in 10500 powerpc) 10501 # Since July 2007 AmigaOS4 officially supports .so libraries. 10502 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10504 ;; 10505 m68k) 10506 library_names_spec='$libname.ixlibrary $libname.a' 10507 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10508 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' 10509 ;; 10510 esac 10511 ;; 10512 10513beos*) 10514 library_names_spec='${libname}${shared_ext}' 10515 dynamic_linker="$host_os ld.so" 10516 shlibpath_var=LIBRARY_PATH 10517 ;; 10518 10519bsdi[45]*) 10520 version_type=linux # correct to gnu/linux during the next big refactor 10521 need_version=no 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10525 shlibpath_var=LD_LIBRARY_PATH 10526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10528 # the default ld.so.conf also contains /usr/contrib/lib and 10529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10530 # libtool to hard-code these into programs 10531 ;; 10532 10533cygwin* | mingw* | pw32* | cegcc*) 10534 version_type=windows 10535 shrext_cmds=".dll" 10536 need_version=no 10537 need_lib_prefix=no 10538 10539 case $GCC,$cc_basename in 10540 yes,*) 10541 # gcc 10542 library_names_spec='$libname.dll.a' 10543 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10544 postinstall_cmds='base_file=`basename \${file}`~ 10545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10546 dldir=$destdir/`dirname \$dlpath`~ 10547 test -d \$dldir || mkdir -p \$dldir~ 10548 $install_prog $dir/$dlname \$dldir/$dlname~ 10549 chmod a+x \$dldir/$dlname~ 10550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10551 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10552 fi' 10553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10554 dlpath=$dir/\$dldll~ 10555 $RM \$dlpath' 10556 shlibpath_overrides_runpath=yes 10557 10558 case $host_os in 10559 cygwin*) 10560 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10562 10563 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10564 ;; 10565 mingw* | cegcc*) 10566 # MinGW DLLs use traditional 'lib' prefix 10567 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10568 ;; 10569 pw32*) 10570 # pw32 DLLs use 'pw' prefix rather than 'lib' 10571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10572 ;; 10573 esac 10574 dynamic_linker='Win32 ld.exe' 10575 ;; 10576 10577 *,cl*) 10578 # Native MSVC 10579 libname_spec='$name' 10580 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10581 library_names_spec='${libname}.dll.lib' 10582 10583 case $build_os in 10584 mingw*) 10585 sys_lib_search_path_spec= 10586 lt_save_ifs=$IFS 10587 IFS=';' 10588 for lt_path in $LIB 10589 do 10590 IFS=$lt_save_ifs 10591 # Let DOS variable expansion print the short 8.3 style file name. 10592 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10593 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10594 done 10595 IFS=$lt_save_ifs 10596 # Convert to MSYS style. 10597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10598 ;; 10599 cygwin*) 10600 # Convert to unix form, then to dos form, then back to unix form 10601 # but this time dos style (no spaces!) so that the unix form looks 10602 # like /cygdrive/c/PROGRA~1:/cygdr... 10603 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10604 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10605 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10606 ;; 10607 *) 10608 sys_lib_search_path_spec="$LIB" 10609 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10610 # It is most probably a Windows format PATH. 10611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10612 else 10613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10614 fi 10615 # FIXME: find the short name or the path components, as spaces are 10616 # common. (e.g. "Program Files" -> "PROGRA~1") 10617 ;; 10618 esac 10619 10620 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10621 postinstall_cmds='base_file=`basename \${file}`~ 10622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10623 dldir=$destdir/`dirname \$dlpath`~ 10624 test -d \$dldir || mkdir -p \$dldir~ 10625 $install_prog $dir/$dlname \$dldir/$dlname' 10626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10627 dlpath=$dir/\$dldll~ 10628 $RM \$dlpath' 10629 shlibpath_overrides_runpath=yes 10630 dynamic_linker='Win32 link.exe' 10631 ;; 10632 10633 *) 10634 # Assume MSVC wrapper 10635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10636 dynamic_linker='Win32 ld.exe' 10637 ;; 10638 esac 10639 # FIXME: first we should search . and the directory the executable is in 10640 shlibpath_var=PATH 10641 ;; 10642 10643darwin* | rhapsody*) 10644 dynamic_linker="$host_os dyld" 10645 version_type=darwin 10646 need_lib_prefix=no 10647 need_version=no 10648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10649 soname_spec='${libname}${release}${major}$shared_ext' 10650 shlibpath_overrides_runpath=yes 10651 shlibpath_var=DYLD_LIBRARY_PATH 10652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10653 10654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10656 ;; 10657 10658dgux*) 10659 version_type=linux # correct to gnu/linux during the next big refactor 10660 need_lib_prefix=no 10661 need_version=no 10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10663 soname_spec='${libname}${release}${shared_ext}$major' 10664 shlibpath_var=LD_LIBRARY_PATH 10665 ;; 10666 10667freebsd* | dragonfly*) 10668 # DragonFly does not have aout. When/if they implement a new 10669 # versioning mechanism, adjust this. 10670 if test -x /usr/bin/objformat; then 10671 objformat=`/usr/bin/objformat` 10672 else 10673 case $host_os in 10674 freebsd[23].*) objformat=aout ;; 10675 *) objformat=elf ;; 10676 esac 10677 fi 10678 version_type=freebsd-$objformat 10679 case $version_type in 10680 freebsd-elf*) 10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10682 need_version=no 10683 need_lib_prefix=no 10684 ;; 10685 freebsd-*) 10686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10687 need_version=yes 10688 ;; 10689 esac 10690 shlibpath_var=LD_LIBRARY_PATH 10691 case $host_os in 10692 freebsd2.*) 10693 shlibpath_overrides_runpath=yes 10694 ;; 10695 freebsd3.[01]* | freebsdelf3.[01]*) 10696 shlibpath_overrides_runpath=yes 10697 hardcode_into_libs=yes 10698 ;; 10699 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10700 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10701 shlibpath_overrides_runpath=no 10702 hardcode_into_libs=yes 10703 ;; 10704 *) # from 4.6 on, and DragonFly 10705 shlibpath_overrides_runpath=yes 10706 hardcode_into_libs=yes 10707 ;; 10708 esac 10709 ;; 10710 10711gnu*) 10712 version_type=linux # correct to gnu/linux during the next big refactor 10713 need_lib_prefix=no 10714 need_version=no 10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10716 soname_spec='${libname}${release}${shared_ext}$major' 10717 shlibpath_var=LD_LIBRARY_PATH 10718 shlibpath_overrides_runpath=no 10719 hardcode_into_libs=yes 10720 ;; 10721 10722haiku*) 10723 version_type=linux # correct to gnu/linux during the next big refactor 10724 need_lib_prefix=no 10725 need_version=no 10726 dynamic_linker="$host_os runtime_loader" 10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10728 soname_spec='${libname}${release}${shared_ext}$major' 10729 shlibpath_var=LIBRARY_PATH 10730 shlibpath_overrides_runpath=yes 10731 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10732 hardcode_into_libs=yes 10733 ;; 10734 10735hpux9* | hpux10* | hpux11*) 10736 # Give a soname corresponding to the major version so that dld.sl refuses to 10737 # link against other versions. 10738 version_type=sunos 10739 need_lib_prefix=no 10740 need_version=no 10741 case $host_cpu in 10742 ia64*) 10743 shrext_cmds='.so' 10744 hardcode_into_libs=yes 10745 dynamic_linker="$host_os dld.so" 10746 shlibpath_var=LD_LIBRARY_PATH 10747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10749 soname_spec='${libname}${release}${shared_ext}$major' 10750 if test "X$HPUX_IA64_MODE" = X32; then 10751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10752 else 10753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10754 fi 10755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10756 ;; 10757 hppa*64*) 10758 shrext_cmds='.sl' 10759 hardcode_into_libs=yes 10760 dynamic_linker="$host_os dld.sl" 10761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10764 soname_spec='${libname}${release}${shared_ext}$major' 10765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10767 ;; 10768 *) 10769 shrext_cmds='.sl' 10770 dynamic_linker="$host_os dld.sl" 10771 shlibpath_var=SHLIB_PATH 10772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10774 soname_spec='${libname}${release}${shared_ext}$major' 10775 ;; 10776 esac 10777 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10778 postinstall_cmds='chmod 555 $lib' 10779 # or fails outright, so override atomically: 10780 install_override_mode=555 10781 ;; 10782 10783interix[3-9]*) 10784 version_type=linux # correct to gnu/linux during the next big refactor 10785 need_lib_prefix=no 10786 need_version=no 10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10788 soname_spec='${libname}${release}${shared_ext}$major' 10789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10790 shlibpath_var=LD_LIBRARY_PATH 10791 shlibpath_overrides_runpath=no 10792 hardcode_into_libs=yes 10793 ;; 10794 10795irix5* | irix6* | nonstopux*) 10796 case $host_os in 10797 nonstopux*) version_type=nonstopux ;; 10798 *) 10799 if test "$lt_cv_prog_gnu_ld" = yes; then 10800 version_type=linux # correct to gnu/linux during the next big refactor 10801 else 10802 version_type=irix 10803 fi ;; 10804 esac 10805 need_lib_prefix=no 10806 need_version=no 10807 soname_spec='${libname}${release}${shared_ext}$major' 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10809 case $host_os in 10810 irix5* | nonstopux*) 10811 libsuff= shlibsuff= 10812 ;; 10813 *) 10814 case $LD in # libtool.m4 will add one of these switches to LD 10815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10816 libsuff= shlibsuff= libmagic=32-bit;; 10817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10818 libsuff=32 shlibsuff=N32 libmagic=N32;; 10819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10820 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10821 *) libsuff= shlibsuff= libmagic=never-match;; 10822 esac 10823 ;; 10824 esac 10825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10826 shlibpath_overrides_runpath=no 10827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10829 hardcode_into_libs=yes 10830 ;; 10831 10832# No shared lib support for Linux oldld, aout, or coff. 10833linux*oldld* | linux*aout* | linux*coff*) 10834 dynamic_linker=no 10835 ;; 10836 10837# This must be glibc/ELF. 10838linux* | k*bsd*-gnu | kopensolaris*-gnu) 10839 version_type=linux # correct to gnu/linux during the next big refactor 10840 need_lib_prefix=no 10841 need_version=no 10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10843 soname_spec='${libname}${release}${shared_ext}$major' 10844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10845 shlibpath_var=LD_LIBRARY_PATH 10846 shlibpath_overrides_runpath=no 10847 10848 # Some binutils ld are patched to set DT_RUNPATH 10849 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10850 $as_echo_n "(cached) " >&6 10851else 10852 lt_cv_shlibpath_overrides_runpath=no 10853 save_LDFLAGS=$LDFLAGS 10854 save_libdir=$libdir 10855 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10856 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859 10860int 10861main () 10862{ 10863 10864 ; 10865 return 0; 10866} 10867_ACEOF 10868if ac_fn_c_try_link "$LINENO"; then : 10869 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10870 lt_cv_shlibpath_overrides_runpath=yes 10871fi 10872fi 10873rm -f core conftest.err conftest.$ac_objext \ 10874 conftest$ac_exeext conftest.$ac_ext 10875 LDFLAGS=$save_LDFLAGS 10876 libdir=$save_libdir 10877 10878fi 10879 10880 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10881 10882 # This implies no fast_install, which is unacceptable. 10883 # Some rework will be needed to allow for fast_install 10884 # before this can be enabled. 10885 hardcode_into_libs=yes 10886 10887 # Append ld.so.conf contents to the search path 10888 if test -f /etc/ld.so.conf; then 10889 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' ' '` 10890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10891 fi 10892 10893 # We used to test for /lib/ld.so.1 and disable shared libraries on 10894 # powerpc, because MkLinux only supported shared libraries with the 10895 # GNU dynamic linker. Since this was broken with cross compilers, 10896 # most powerpc-linux boxes support dynamic linking these days and 10897 # people can always --disable-shared, the test was removed, and we 10898 # assume the GNU/Linux dynamic linker is in use. 10899 dynamic_linker='GNU/Linux ld.so' 10900 ;; 10901 10902netbsdelf*-gnu) 10903 version_type=linux 10904 need_lib_prefix=no 10905 need_version=no 10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10907 soname_spec='${libname}${release}${shared_ext}$major' 10908 shlibpath_var=LD_LIBRARY_PATH 10909 shlibpath_overrides_runpath=no 10910 hardcode_into_libs=yes 10911 dynamic_linker='NetBSD ld.elf_so' 10912 ;; 10913 10914netbsd*) 10915 version_type=sunos 10916 need_lib_prefix=no 10917 need_version=no 10918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10921 dynamic_linker='NetBSD (a.out) ld.so' 10922 else 10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10924 soname_spec='${libname}${release}${shared_ext}$major' 10925 dynamic_linker='NetBSD ld.elf_so' 10926 fi 10927 shlibpath_var=LD_LIBRARY_PATH 10928 shlibpath_overrides_runpath=yes 10929 hardcode_into_libs=yes 10930 ;; 10931 10932newsos6) 10933 version_type=linux # correct to gnu/linux during the next big refactor 10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10935 shlibpath_var=LD_LIBRARY_PATH 10936 shlibpath_overrides_runpath=yes 10937 ;; 10938 10939*nto* | *qnx*) 10940 version_type=qnx 10941 need_lib_prefix=no 10942 need_version=no 10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10944 soname_spec='${libname}${release}${shared_ext}$major' 10945 shlibpath_var=LD_LIBRARY_PATH 10946 shlibpath_overrides_runpath=no 10947 hardcode_into_libs=yes 10948 dynamic_linker='ldqnx.so' 10949 ;; 10950 10951openbsd*) 10952 version_type=sunos 10953 sys_lib_dlsearch_path_spec="/usr/lib" 10954 need_lib_prefix=no 10955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10956 case $host_os in 10957 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10958 *) need_version=no ;; 10959 esac 10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10962 shlibpath_var=LD_LIBRARY_PATH 10963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10964 case $host_os in 10965 openbsd2.[89] | openbsd2.[89].*) 10966 shlibpath_overrides_runpath=no 10967 ;; 10968 *) 10969 shlibpath_overrides_runpath=yes 10970 ;; 10971 esac 10972 else 10973 shlibpath_overrides_runpath=yes 10974 fi 10975 ;; 10976 10977os2*) 10978 libname_spec='$name' 10979 shrext_cmds=".dll" 10980 need_lib_prefix=no 10981 library_names_spec='$libname${shared_ext} $libname.a' 10982 dynamic_linker='OS/2 ld.exe' 10983 shlibpath_var=LIBPATH 10984 ;; 10985 10986osf3* | osf4* | osf5*) 10987 version_type=osf 10988 need_lib_prefix=no 10989 need_version=no 10990 soname_spec='${libname}${release}${shared_ext}$major' 10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10992 shlibpath_var=LD_LIBRARY_PATH 10993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10995 ;; 10996 10997rdos*) 10998 dynamic_linker=no 10999 ;; 11000 11001solaris*) 11002 version_type=linux # correct to gnu/linux during the next big refactor 11003 need_lib_prefix=no 11004 need_version=no 11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11006 soname_spec='${libname}${release}${shared_ext}$major' 11007 shlibpath_var=LD_LIBRARY_PATH 11008 shlibpath_overrides_runpath=yes 11009 hardcode_into_libs=yes 11010 # ldd complains unless libraries are executable 11011 postinstall_cmds='chmod +x $lib' 11012 ;; 11013 11014sunos4*) 11015 version_type=sunos 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11018 shlibpath_var=LD_LIBRARY_PATH 11019 shlibpath_overrides_runpath=yes 11020 if test "$with_gnu_ld" = yes; then 11021 need_lib_prefix=no 11022 fi 11023 need_version=yes 11024 ;; 11025 11026sysv4 | sysv4.3*) 11027 version_type=linux # correct to gnu/linux during the next big refactor 11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11029 soname_spec='${libname}${release}${shared_ext}$major' 11030 shlibpath_var=LD_LIBRARY_PATH 11031 case $host_vendor in 11032 sni) 11033 shlibpath_overrides_runpath=no 11034 need_lib_prefix=no 11035 runpath_var=LD_RUN_PATH 11036 ;; 11037 siemens) 11038 need_lib_prefix=no 11039 ;; 11040 motorola) 11041 need_lib_prefix=no 11042 need_version=no 11043 shlibpath_overrides_runpath=no 11044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11045 ;; 11046 esac 11047 ;; 11048 11049sysv4*MP*) 11050 if test -d /usr/nec ;then 11051 version_type=linux # correct to gnu/linux during the next big refactor 11052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11053 soname_spec='$libname${shared_ext}.$major' 11054 shlibpath_var=LD_LIBRARY_PATH 11055 fi 11056 ;; 11057 11058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11059 version_type=freebsd-elf 11060 need_lib_prefix=no 11061 need_version=no 11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11063 soname_spec='${libname}${release}${shared_ext}$major' 11064 shlibpath_var=LD_LIBRARY_PATH 11065 shlibpath_overrides_runpath=yes 11066 hardcode_into_libs=yes 11067 if test "$with_gnu_ld" = yes; then 11068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11069 else 11070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11071 case $host_os in 11072 sco3.2v5*) 11073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11074 ;; 11075 esac 11076 fi 11077 sys_lib_dlsearch_path_spec='/usr/lib' 11078 ;; 11079 11080tpf*) 11081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11082 version_type=linux # correct to gnu/linux during the next big refactor 11083 need_lib_prefix=no 11084 need_version=no 11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11086 shlibpath_var=LD_LIBRARY_PATH 11087 shlibpath_overrides_runpath=no 11088 hardcode_into_libs=yes 11089 ;; 11090 11091uts4*) 11092 version_type=linux # correct to gnu/linux during the next big refactor 11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11094 soname_spec='${libname}${release}${shared_ext}$major' 11095 shlibpath_var=LD_LIBRARY_PATH 11096 ;; 11097 11098*) 11099 dynamic_linker=no 11100 ;; 11101esac 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11103$as_echo "$dynamic_linker" >&6; } 11104test "$dynamic_linker" = no && can_build_shared=no 11105 11106variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11107if test "$GCC" = yes; then 11108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11109fi 11110 11111if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11113fi 11114if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11116fi 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11210$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11211hardcode_action= 11212if test -n "$hardcode_libdir_flag_spec" || 11213 test -n "$runpath_var" || 11214 test "X$hardcode_automatic" = "Xyes" ; then 11215 11216 # We can hardcode non-existent directories. 11217 if test "$hardcode_direct" != no && 11218 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11219 # have to relink, otherwise we might link with an installed library 11220 # when we should be linking with a yet-to-be-installed one 11221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11222 test "$hardcode_minus_L" != no; then 11223 # Linking always hardcodes the temporary library directory. 11224 hardcode_action=relink 11225 else 11226 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11227 hardcode_action=immediate 11228 fi 11229else 11230 # We cannot hardcode anything, or else we can only hardcode existing 11231 # directories. 11232 hardcode_action=unsupported 11233fi 11234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11235$as_echo "$hardcode_action" >&6; } 11236 11237if test "$hardcode_action" = relink || 11238 test "$inherit_rpath" = yes; then 11239 # Fast installation is not supported 11240 enable_fast_install=no 11241elif test "$shlibpath_overrides_runpath" = yes || 11242 test "$enable_shared" = no; then 11243 # Fast installation is not necessary 11244 enable_fast_install=needless 11245fi 11246 11247 11248 11249 11250 11251 11252 if test "x$enable_dlopen" != xyes; then 11253 enable_dlopen=unknown 11254 enable_dlopen_self=unknown 11255 enable_dlopen_self_static=unknown 11256else 11257 lt_cv_dlopen=no 11258 lt_cv_dlopen_libs= 11259 11260 case $host_os in 11261 beos*) 11262 lt_cv_dlopen="load_add_on" 11263 lt_cv_dlopen_libs= 11264 lt_cv_dlopen_self=yes 11265 ;; 11266 11267 mingw* | pw32* | cegcc*) 11268 lt_cv_dlopen="LoadLibrary" 11269 lt_cv_dlopen_libs= 11270 ;; 11271 11272 cygwin*) 11273 lt_cv_dlopen="dlopen" 11274 lt_cv_dlopen_libs= 11275 ;; 11276 11277 darwin*) 11278 # if libdl is installed we need to link against it 11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11280$as_echo_n "checking for dlopen in -ldl... " >&6; } 11281if ${ac_cv_lib_dl_dlopen+:} false; then : 11282 $as_echo_n "(cached) " >&6 11283else 11284 ac_check_lib_save_LIBS=$LIBS 11285LIBS="-ldl $LIBS" 11286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11287/* end confdefs.h. */ 11288 11289/* Override any GCC internal prototype to avoid an error. 11290 Use char because int might match the return type of a GCC 11291 builtin and then its argument prototype would still apply. */ 11292#ifdef __cplusplus 11293extern "C" 11294#endif 11295char dlopen (); 11296int 11297main () 11298{ 11299return dlopen (); 11300 ; 11301 return 0; 11302} 11303_ACEOF 11304if ac_fn_c_try_link "$LINENO"; then : 11305 ac_cv_lib_dl_dlopen=yes 11306else 11307 ac_cv_lib_dl_dlopen=no 11308fi 11309rm -f core conftest.err conftest.$ac_objext \ 11310 conftest$ac_exeext conftest.$ac_ext 11311LIBS=$ac_check_lib_save_LIBS 11312fi 11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11314$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11315if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11317else 11318 11319 lt_cv_dlopen="dyld" 11320 lt_cv_dlopen_libs= 11321 lt_cv_dlopen_self=yes 11322 11323fi 11324 11325 ;; 11326 11327 *) 11328 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11329if test "x$ac_cv_func_shl_load" = xyes; then : 11330 lt_cv_dlopen="shl_load" 11331else 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11333$as_echo_n "checking for shl_load in -ldld... " >&6; } 11334if ${ac_cv_lib_dld_shl_load+:} false; then : 11335 $as_echo_n "(cached) " >&6 11336else 11337 ac_check_lib_save_LIBS=$LIBS 11338LIBS="-ldld $LIBS" 11339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11340/* end confdefs.h. */ 11341 11342/* Override any GCC internal prototype to avoid an error. 11343 Use char because int might match the return type of a GCC 11344 builtin and then its argument prototype would still apply. */ 11345#ifdef __cplusplus 11346extern "C" 11347#endif 11348char shl_load (); 11349int 11350main () 11351{ 11352return shl_load (); 11353 ; 11354 return 0; 11355} 11356_ACEOF 11357if ac_fn_c_try_link "$LINENO"; then : 11358 ac_cv_lib_dld_shl_load=yes 11359else 11360 ac_cv_lib_dld_shl_load=no 11361fi 11362rm -f core conftest.err conftest.$ac_objext \ 11363 conftest$ac_exeext conftest.$ac_ext 11364LIBS=$ac_check_lib_save_LIBS 11365fi 11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11367$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11368if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11370else 11371 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11372if test "x$ac_cv_func_dlopen" = xyes; then : 11373 lt_cv_dlopen="dlopen" 11374else 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11376$as_echo_n "checking for dlopen in -ldl... " >&6; } 11377if ${ac_cv_lib_dl_dlopen+:} false; then : 11378 $as_echo_n "(cached) " >&6 11379else 11380 ac_check_lib_save_LIBS=$LIBS 11381LIBS="-ldl $LIBS" 11382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11383/* end confdefs.h. */ 11384 11385/* Override any GCC internal prototype to avoid an error. 11386 Use char because int might match the return type of a GCC 11387 builtin and then its argument prototype would still apply. */ 11388#ifdef __cplusplus 11389extern "C" 11390#endif 11391char dlopen (); 11392int 11393main () 11394{ 11395return dlopen (); 11396 ; 11397 return 0; 11398} 11399_ACEOF 11400if ac_fn_c_try_link "$LINENO"; then : 11401 ac_cv_lib_dl_dlopen=yes 11402else 11403 ac_cv_lib_dl_dlopen=no 11404fi 11405rm -f core conftest.err conftest.$ac_objext \ 11406 conftest$ac_exeext conftest.$ac_ext 11407LIBS=$ac_check_lib_save_LIBS 11408fi 11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11410$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11411if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11413else 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11415$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11416if ${ac_cv_lib_svld_dlopen+:} false; then : 11417 $as_echo_n "(cached) " >&6 11418else 11419 ac_check_lib_save_LIBS=$LIBS 11420LIBS="-lsvld $LIBS" 11421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11422/* end confdefs.h. */ 11423 11424/* Override any GCC internal prototype to avoid an error. 11425 Use char because int might match the return type of a GCC 11426 builtin and then its argument prototype would still apply. */ 11427#ifdef __cplusplus 11428extern "C" 11429#endif 11430char dlopen (); 11431int 11432main () 11433{ 11434return dlopen (); 11435 ; 11436 return 0; 11437} 11438_ACEOF 11439if ac_fn_c_try_link "$LINENO"; then : 11440 ac_cv_lib_svld_dlopen=yes 11441else 11442 ac_cv_lib_svld_dlopen=no 11443fi 11444rm -f core conftest.err conftest.$ac_objext \ 11445 conftest$ac_exeext conftest.$ac_ext 11446LIBS=$ac_check_lib_save_LIBS 11447fi 11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11449$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11450if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11452else 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11454$as_echo_n "checking for dld_link in -ldld... " >&6; } 11455if ${ac_cv_lib_dld_dld_link+:} false; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 ac_check_lib_save_LIBS=$LIBS 11459LIBS="-ldld $LIBS" 11460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11461/* end confdefs.h. */ 11462 11463/* Override any GCC internal prototype to avoid an error. 11464 Use char because int might match the return type of a GCC 11465 builtin and then its argument prototype would still apply. */ 11466#ifdef __cplusplus 11467extern "C" 11468#endif 11469char dld_link (); 11470int 11471main () 11472{ 11473return dld_link (); 11474 ; 11475 return 0; 11476} 11477_ACEOF 11478if ac_fn_c_try_link "$LINENO"; then : 11479 ac_cv_lib_dld_dld_link=yes 11480else 11481 ac_cv_lib_dld_dld_link=no 11482fi 11483rm -f core conftest.err conftest.$ac_objext \ 11484 conftest$ac_exeext conftest.$ac_ext 11485LIBS=$ac_check_lib_save_LIBS 11486fi 11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11488$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11489if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11491fi 11492 11493 11494fi 11495 11496 11497fi 11498 11499 11500fi 11501 11502 11503fi 11504 11505 11506fi 11507 11508 ;; 11509 esac 11510 11511 if test "x$lt_cv_dlopen" != xno; then 11512 enable_dlopen=yes 11513 else 11514 enable_dlopen=no 11515 fi 11516 11517 case $lt_cv_dlopen in 11518 dlopen) 11519 save_CPPFLAGS="$CPPFLAGS" 11520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11521 11522 save_LDFLAGS="$LDFLAGS" 11523 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11524 11525 save_LIBS="$LIBS" 11526 LIBS="$lt_cv_dlopen_libs $LIBS" 11527 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11529$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11530if ${lt_cv_dlopen_self+:} false; then : 11531 $as_echo_n "(cached) " >&6 11532else 11533 if test "$cross_compiling" = yes; then : 11534 lt_cv_dlopen_self=cross 11535else 11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11537 lt_status=$lt_dlunknown 11538 cat > conftest.$ac_ext <<_LT_EOF 11539#line $LINENO "configure" 11540#include "confdefs.h" 11541 11542#if HAVE_DLFCN_H 11543#include <dlfcn.h> 11544#endif 11545 11546#include <stdio.h> 11547 11548#ifdef RTLD_GLOBAL 11549# define LT_DLGLOBAL RTLD_GLOBAL 11550#else 11551# ifdef DL_GLOBAL 11552# define LT_DLGLOBAL DL_GLOBAL 11553# else 11554# define LT_DLGLOBAL 0 11555# endif 11556#endif 11557 11558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11559 find out it does not work in some platform. */ 11560#ifndef LT_DLLAZY_OR_NOW 11561# ifdef RTLD_LAZY 11562# define LT_DLLAZY_OR_NOW RTLD_LAZY 11563# else 11564# ifdef DL_LAZY 11565# define LT_DLLAZY_OR_NOW DL_LAZY 11566# else 11567# ifdef RTLD_NOW 11568# define LT_DLLAZY_OR_NOW RTLD_NOW 11569# else 11570# ifdef DL_NOW 11571# define LT_DLLAZY_OR_NOW DL_NOW 11572# else 11573# define LT_DLLAZY_OR_NOW 0 11574# endif 11575# endif 11576# endif 11577# endif 11578#endif 11579 11580/* When -fvisbility=hidden is used, assume the code has been annotated 11581 correspondingly for the symbols needed. */ 11582#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11583int fnord () __attribute__((visibility("default"))); 11584#endif 11585 11586int fnord () { return 42; } 11587int main () 11588{ 11589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11590 int status = $lt_dlunknown; 11591 11592 if (self) 11593 { 11594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11595 else 11596 { 11597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11598 else puts (dlerror ()); 11599 } 11600 /* dlclose (self); */ 11601 } 11602 else 11603 puts (dlerror ()); 11604 11605 return status; 11606} 11607_LT_EOF 11608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11609 (eval $ac_link) 2>&5 11610 ac_status=$? 11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11613 (./conftest; exit; ) >&5 2>/dev/null 11614 lt_status=$? 11615 case x$lt_status in 11616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11618 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11619 esac 11620 else : 11621 # compilation failed 11622 lt_cv_dlopen_self=no 11623 fi 11624fi 11625rm -fr conftest* 11626 11627 11628fi 11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11630$as_echo "$lt_cv_dlopen_self" >&6; } 11631 11632 if test "x$lt_cv_dlopen_self" = xyes; then 11633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11635$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11636if ${lt_cv_dlopen_self_static+:} false; then : 11637 $as_echo_n "(cached) " >&6 11638else 11639 if test "$cross_compiling" = yes; then : 11640 lt_cv_dlopen_self_static=cross 11641else 11642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11643 lt_status=$lt_dlunknown 11644 cat > conftest.$ac_ext <<_LT_EOF 11645#line $LINENO "configure" 11646#include "confdefs.h" 11647 11648#if HAVE_DLFCN_H 11649#include <dlfcn.h> 11650#endif 11651 11652#include <stdio.h> 11653 11654#ifdef RTLD_GLOBAL 11655# define LT_DLGLOBAL RTLD_GLOBAL 11656#else 11657# ifdef DL_GLOBAL 11658# define LT_DLGLOBAL DL_GLOBAL 11659# else 11660# define LT_DLGLOBAL 0 11661# endif 11662#endif 11663 11664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11665 find out it does not work in some platform. */ 11666#ifndef LT_DLLAZY_OR_NOW 11667# ifdef RTLD_LAZY 11668# define LT_DLLAZY_OR_NOW RTLD_LAZY 11669# else 11670# ifdef DL_LAZY 11671# define LT_DLLAZY_OR_NOW DL_LAZY 11672# else 11673# ifdef RTLD_NOW 11674# define LT_DLLAZY_OR_NOW RTLD_NOW 11675# else 11676# ifdef DL_NOW 11677# define LT_DLLAZY_OR_NOW DL_NOW 11678# else 11679# define LT_DLLAZY_OR_NOW 0 11680# endif 11681# endif 11682# endif 11683# endif 11684#endif 11685 11686/* When -fvisbility=hidden is used, assume the code has been annotated 11687 correspondingly for the symbols needed. */ 11688#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11689int fnord () __attribute__((visibility("default"))); 11690#endif 11691 11692int fnord () { return 42; } 11693int main () 11694{ 11695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11696 int status = $lt_dlunknown; 11697 11698 if (self) 11699 { 11700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11701 else 11702 { 11703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11704 else puts (dlerror ()); 11705 } 11706 /* dlclose (self); */ 11707 } 11708 else 11709 puts (dlerror ()); 11710 11711 return status; 11712} 11713_LT_EOF 11714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11715 (eval $ac_link) 2>&5 11716 ac_status=$? 11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11719 (./conftest; exit; ) >&5 2>/dev/null 11720 lt_status=$? 11721 case x$lt_status in 11722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11725 esac 11726 else : 11727 # compilation failed 11728 lt_cv_dlopen_self_static=no 11729 fi 11730fi 11731rm -fr conftest* 11732 11733 11734fi 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11736$as_echo "$lt_cv_dlopen_self_static" >&6; } 11737 fi 11738 11739 CPPFLAGS="$save_CPPFLAGS" 11740 LDFLAGS="$save_LDFLAGS" 11741 LIBS="$save_LIBS" 11742 ;; 11743 esac 11744 11745 case $lt_cv_dlopen_self in 11746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11747 *) enable_dlopen_self=unknown ;; 11748 esac 11749 11750 case $lt_cv_dlopen_self_static in 11751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11752 *) enable_dlopen_self_static=unknown ;; 11753 esac 11754fi 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772striplib= 11773old_striplib= 11774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11775$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11776if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11777 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11778 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11780$as_echo "yes" >&6; } 11781else 11782# FIXME - insert some real tests, host_os isn't really good enough 11783 case $host_os in 11784 darwin*) 11785 if test -n "$STRIP" ; then 11786 striplib="$STRIP -x" 11787 old_striplib="$STRIP -S" 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11789$as_echo "yes" >&6; } 11790 else 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11792$as_echo "no" >&6; } 11793 fi 11794 ;; 11795 *) 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11797$as_echo "no" >&6; } 11798 ;; 11799 esac 11800fi 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 # Report which library types will actually be built 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11815$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11817$as_echo "$can_build_shared" >&6; } 11818 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11820$as_echo_n "checking whether to build shared libraries... " >&6; } 11821 test "$can_build_shared" = "no" && enable_shared=no 11822 11823 # On AIX, shared libraries and static libraries use the same namespace, and 11824 # are all built from PIC. 11825 case $host_os in 11826 aix3*) 11827 test "$enable_shared" = yes && enable_static=no 11828 if test -n "$RANLIB"; then 11829 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11830 postinstall_cmds='$RANLIB $lib' 11831 fi 11832 ;; 11833 11834 aix[4-9]*) 11835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11836 test "$enable_shared" = yes && enable_static=no 11837 fi 11838 ;; 11839 esac 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11841$as_echo "$enable_shared" >&6; } 11842 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11844$as_echo_n "checking whether to build static libraries... " >&6; } 11845 # Make sure either enable_shared or enable_static is yes. 11846 test "$enable_shared" = yes || enable_static=yes 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11848$as_echo "$enable_static" >&6; } 11849 11850 11851 11852 11853fi 11854ac_ext=c 11855ac_cpp='$CPP $CPPFLAGS' 11856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11858ac_compiler_gnu=$ac_cv_c_compiler_gnu 11859 11860CC="$lt_save_CC" 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 ac_config_commands="$ac_config_commands libtool" 11877 11878 11879 11880 11881# Only expand once: 11882 11883 11884 11885# Require xorg-macros minimum of 1.10 for DocBook XML documentation 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11898$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11899if ${ac_cv_prog_cc_c99+:} false; then : 11900 $as_echo_n "(cached) " >&6 11901else 11902 ac_cv_prog_cc_c99=no 11903ac_save_CC=$CC 11904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11905/* end confdefs.h. */ 11906#include <stdarg.h> 11907#include <stdbool.h> 11908#include <stdlib.h> 11909#include <wchar.h> 11910#include <stdio.h> 11911 11912// Check varargs macros. These examples are taken from C99 6.10.3.5. 11913#define debug(...) fprintf (stderr, __VA_ARGS__) 11914#define showlist(...) puts (#__VA_ARGS__) 11915#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11916static void 11917test_varargs_macros (void) 11918{ 11919 int x = 1234; 11920 int y = 5678; 11921 debug ("Flag"); 11922 debug ("X = %d\n", x); 11923 showlist (The first, second, and third items.); 11924 report (x>y, "x is %d but y is %d", x, y); 11925} 11926 11927// Check long long types. 11928#define BIG64 18446744073709551615ull 11929#define BIG32 4294967295ul 11930#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11931#if !BIG_OK 11932 your preprocessor is broken; 11933#endif 11934#if BIG_OK 11935#else 11936 your preprocessor is broken; 11937#endif 11938static long long int bignum = -9223372036854775807LL; 11939static unsigned long long int ubignum = BIG64; 11940 11941struct incomplete_array 11942{ 11943 int datasize; 11944 double data[]; 11945}; 11946 11947struct named_init { 11948 int number; 11949 const wchar_t *name; 11950 double average; 11951}; 11952 11953typedef const char *ccp; 11954 11955static inline int 11956test_restrict (ccp restrict text) 11957{ 11958 // See if C++-style comments work. 11959 // Iterate through items via the restricted pointer. 11960 // Also check for declarations in for loops. 11961 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11962 continue; 11963 return 0; 11964} 11965 11966// Check varargs and va_copy. 11967static void 11968test_varargs (const char *format, ...) 11969{ 11970 va_list args; 11971 va_start (args, format); 11972 va_list args_copy; 11973 va_copy (args_copy, args); 11974 11975 const char *str; 11976 int number; 11977 float fnumber; 11978 11979 while (*format) 11980 { 11981 switch (*format++) 11982 { 11983 case 's': // string 11984 str = va_arg (args_copy, const char *); 11985 break; 11986 case 'd': // int 11987 number = va_arg (args_copy, int); 11988 break; 11989 case 'f': // float 11990 fnumber = va_arg (args_copy, double); 11991 break; 11992 default: 11993 break; 11994 } 11995 } 11996 va_end (args_copy); 11997 va_end (args); 11998} 11999 12000int 12001main () 12002{ 12003 12004 // Check bool. 12005 _Bool success = false; 12006 12007 // Check restrict. 12008 if (test_restrict ("String literal") == 0) 12009 success = true; 12010 char *restrict newvar = "Another string"; 12011 12012 // Check varargs. 12013 test_varargs ("s, d' f .", "string", 65, 34.234); 12014 test_varargs_macros (); 12015 12016 // Check flexible array members. 12017 struct incomplete_array *ia = 12018 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12019 ia->datasize = 10; 12020 for (int i = 0; i < ia->datasize; ++i) 12021 ia->data[i] = i * 1.234; 12022 12023 // Check named initializers. 12024 struct named_init ni = { 12025 .number = 34, 12026 .name = L"Test wide string", 12027 .average = 543.34343, 12028 }; 12029 12030 ni.number = 58; 12031 12032 int dynamic_array[ni.number]; 12033 dynamic_array[ni.number - 1] = 543; 12034 12035 // work around unused variable warnings 12036 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12037 || dynamic_array[ni.number - 1] != 543); 12038 12039 ; 12040 return 0; 12041} 12042_ACEOF 12043for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12044do 12045 CC="$ac_save_CC $ac_arg" 12046 if ac_fn_c_try_compile "$LINENO"; then : 12047 ac_cv_prog_cc_c99=$ac_arg 12048fi 12049rm -f core conftest.err conftest.$ac_objext 12050 test "x$ac_cv_prog_cc_c99" != "xno" && break 12051done 12052rm -f conftest.$ac_ext 12053CC=$ac_save_CC 12054 12055fi 12056# AC_CACHE_VAL 12057case "x$ac_cv_prog_cc_c99" in 12058 x) 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12060$as_echo "none needed" >&6; } ;; 12061 xno) 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12063$as_echo "unsupported" >&6; } ;; 12064 *) 12065 CC="$CC $ac_cv_prog_cc_c99" 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12067$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12068esac 12069if test "x$ac_cv_prog_cc_c99" != xno; then : 12070 12071fi 12072 12073 12074 12075 12076 12077 12078ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12079if test "x$ac_cv_have_decl___clang__" = xyes; then : 12080 CLANGCC="yes" 12081else 12082 CLANGCC="no" 12083fi 12084 12085ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12086if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12087 INTELCC="yes" 12088else 12089 INTELCC="no" 12090fi 12091 12092ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12093if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12094 SUNCC="yes" 12095else 12096 SUNCC="no" 12097fi 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12108 if test -n "$ac_tool_prefix"; then 12109 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12110set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12112$as_echo_n "checking for $ac_word... " >&6; } 12113if ${ac_cv_path_PKG_CONFIG+:} false; then : 12114 $as_echo_n "(cached) " >&6 12115else 12116 case $PKG_CONFIG in 12117 [\\/]* | ?:[\\/]*) 12118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12119 ;; 12120 *) 12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12122for as_dir in $PATH 12123do 12124 IFS=$as_save_IFS 12125 test -z "$as_dir" && as_dir=. 12126 for ac_exec_ext in '' $ac_executable_extensions; do 12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12130 break 2 12131 fi 12132done 12133 done 12134IFS=$as_save_IFS 12135 12136 ;; 12137esac 12138fi 12139PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12140if test -n "$PKG_CONFIG"; then 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12142$as_echo "$PKG_CONFIG" >&6; } 12143else 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12145$as_echo "no" >&6; } 12146fi 12147 12148 12149fi 12150if test -z "$ac_cv_path_PKG_CONFIG"; then 12151 ac_pt_PKG_CONFIG=$PKG_CONFIG 12152 # Extract the first word of "pkg-config", so it can be a program name with args. 12153set dummy pkg-config; ac_word=$2 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12155$as_echo_n "checking for $ac_word... " >&6; } 12156if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12157 $as_echo_n "(cached) " >&6 12158else 12159 case $ac_pt_PKG_CONFIG in 12160 [\\/]* | ?:[\\/]*) 12161 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12162 ;; 12163 *) 12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12165for as_dir in $PATH 12166do 12167 IFS=$as_save_IFS 12168 test -z "$as_dir" && as_dir=. 12169 for ac_exec_ext in '' $ac_executable_extensions; do 12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12171 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12173 break 2 12174 fi 12175done 12176 done 12177IFS=$as_save_IFS 12178 12179 ;; 12180esac 12181fi 12182ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12183if test -n "$ac_pt_PKG_CONFIG"; then 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12185$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12186else 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12188$as_echo "no" >&6; } 12189fi 12190 12191 if test "x$ac_pt_PKG_CONFIG" = x; then 12192 PKG_CONFIG="" 12193 else 12194 case $cross_compiling:$ac_tool_warned in 12195yes:) 12196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12198ac_tool_warned=yes ;; 12199esac 12200 PKG_CONFIG=$ac_pt_PKG_CONFIG 12201 fi 12202else 12203 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12204fi 12205 12206fi 12207if test -n "$PKG_CONFIG"; then 12208 _pkg_min_version=0.9.0 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12210$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12211 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12213$as_echo "yes" >&6; } 12214 else 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12216$as_echo "no" >&6; } 12217 PKG_CONFIG="" 12218 fi 12219fi 12220 12221 12222 12223 12224 12225# Check whether --enable-selective-werror was given. 12226if test "${enable_selective_werror+set}" = set; then : 12227 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12228else 12229 SELECTIVE_WERROR=yes 12230fi 12231 12232 12233 12234 12235 12236# -v is too short to test reliably with XORG_TESTSET_CFLAG 12237if test "x$SUNCC" = "xyes"; then 12238 BASE_CFLAGS="-v" 12239else 12240 BASE_CFLAGS="" 12241fi 12242 12243# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257xorg_testset_save_CFLAGS="$CFLAGS" 12258 12259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12264 $as_echo_n "(cached) " >&6 12265else 12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12267/* end confdefs.h. */ 12268int i; 12269_ACEOF 12270if ac_fn_c_try_compile "$LINENO"; then : 12271 xorg_cv_cc_flag_unknown_warning_option=yes 12272else 12273 xorg_cv_cc_flag_unknown_warning_option=no 12274fi 12275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12276fi 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12280 CFLAGS="$xorg_testset_save_CFLAGS" 12281fi 12282 12283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12286 fi 12287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12291 $as_echo_n "(cached) " >&6 12292else 12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12294/* end confdefs.h. */ 12295int i; 12296_ACEOF 12297if ac_fn_c_try_compile "$LINENO"; then : 12298 xorg_cv_cc_flag_unused_command_line_argument=yes 12299else 12300 xorg_cv_cc_flag_unused_command_line_argument=no 12301fi 12302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12303fi 12304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12307 CFLAGS="$xorg_testset_save_CFLAGS" 12308fi 12309 12310found="no" 12311 12312 if test $found = "no" ; then 12313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12315 fi 12316 12317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12319 fi 12320 12321 CFLAGS="$CFLAGS -Wall" 12322 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12324$as_echo_n "checking if $CC supports -Wall... " >&6; } 12325 cacheid=xorg_cv_cc_flag__Wall 12326 if eval \${$cacheid+:} false; then : 12327 $as_echo_n "(cached) " >&6 12328else 12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12330/* end confdefs.h. */ 12331int i; 12332int 12333main () 12334{ 12335 12336 ; 12337 return 0; 12338} 12339_ACEOF 12340if ac_fn_c_try_link "$LINENO"; then : 12341 eval $cacheid=yes 12342else 12343 eval $cacheid=no 12344fi 12345rm -f core conftest.err conftest.$ac_objext \ 12346 conftest$ac_exeext conftest.$ac_ext 12347fi 12348 12349 12350 CFLAGS="$xorg_testset_save_CFLAGS" 12351 12352 eval supported=\$$cacheid 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12354$as_echo "$supported" >&6; } 12355 if test "$supported" = "yes" ; then 12356 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12357 found="yes" 12358 fi 12359 fi 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375xorg_testset_save_CFLAGS="$CFLAGS" 12376 12377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12382 $as_echo_n "(cached) " >&6 12383else 12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12385/* end confdefs.h. */ 12386int i; 12387_ACEOF 12388if ac_fn_c_try_compile "$LINENO"; then : 12389 xorg_cv_cc_flag_unknown_warning_option=yes 12390else 12391 xorg_cv_cc_flag_unknown_warning_option=no 12392fi 12393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12394fi 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12398 CFLAGS="$xorg_testset_save_CFLAGS" 12399fi 12400 12401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12404 fi 12405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12409 $as_echo_n "(cached) " >&6 12410else 12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12412/* end confdefs.h. */ 12413int i; 12414_ACEOF 12415if ac_fn_c_try_compile "$LINENO"; then : 12416 xorg_cv_cc_flag_unused_command_line_argument=yes 12417else 12418 xorg_cv_cc_flag_unused_command_line_argument=no 12419fi 12420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12421fi 12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12425 CFLAGS="$xorg_testset_save_CFLAGS" 12426fi 12427 12428found="no" 12429 12430 if test $found = "no" ; then 12431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12433 fi 12434 12435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12437 fi 12438 12439 CFLAGS="$CFLAGS -Wpointer-arith" 12440 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12442$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12443 cacheid=xorg_cv_cc_flag__Wpointer_arith 12444 if eval \${$cacheid+:} false; then : 12445 $as_echo_n "(cached) " >&6 12446else 12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12448/* end confdefs.h. */ 12449int i; 12450int 12451main () 12452{ 12453 12454 ; 12455 return 0; 12456} 12457_ACEOF 12458if ac_fn_c_try_link "$LINENO"; then : 12459 eval $cacheid=yes 12460else 12461 eval $cacheid=no 12462fi 12463rm -f core conftest.err conftest.$ac_objext \ 12464 conftest$ac_exeext conftest.$ac_ext 12465fi 12466 12467 12468 CFLAGS="$xorg_testset_save_CFLAGS" 12469 12470 eval supported=\$$cacheid 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12472$as_echo "$supported" >&6; } 12473 if test "$supported" = "yes" ; then 12474 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12475 found="yes" 12476 fi 12477 fi 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493xorg_testset_save_CFLAGS="$CFLAGS" 12494 12495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12500 $as_echo_n "(cached) " >&6 12501else 12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12503/* end confdefs.h. */ 12504int i; 12505_ACEOF 12506if ac_fn_c_try_compile "$LINENO"; then : 12507 xorg_cv_cc_flag_unknown_warning_option=yes 12508else 12509 xorg_cv_cc_flag_unknown_warning_option=no 12510fi 12511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12512fi 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12516 CFLAGS="$xorg_testset_save_CFLAGS" 12517fi 12518 12519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12522 fi 12523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12527 $as_echo_n "(cached) " >&6 12528else 12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12530/* end confdefs.h. */ 12531int i; 12532_ACEOF 12533if ac_fn_c_try_compile "$LINENO"; then : 12534 xorg_cv_cc_flag_unused_command_line_argument=yes 12535else 12536 xorg_cv_cc_flag_unused_command_line_argument=no 12537fi 12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12539fi 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12543 CFLAGS="$xorg_testset_save_CFLAGS" 12544fi 12545 12546found="no" 12547 12548 if test $found = "no" ; then 12549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12551 fi 12552 12553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12555 fi 12556 12557 CFLAGS="$CFLAGS -Wmissing-declarations" 12558 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12560$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12561 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12562 if eval \${$cacheid+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567int i; 12568int 12569main () 12570{ 12571 12572 ; 12573 return 0; 12574} 12575_ACEOF 12576if ac_fn_c_try_link "$LINENO"; then : 12577 eval $cacheid=yes 12578else 12579 eval $cacheid=no 12580fi 12581rm -f core conftest.err conftest.$ac_objext \ 12582 conftest$ac_exeext conftest.$ac_ext 12583fi 12584 12585 12586 CFLAGS="$xorg_testset_save_CFLAGS" 12587 12588 eval supported=\$$cacheid 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12590$as_echo "$supported" >&6; } 12591 if test "$supported" = "yes" ; then 12592 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12593 found="yes" 12594 fi 12595 fi 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611xorg_testset_save_CFLAGS="$CFLAGS" 12612 12613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12618 $as_echo_n "(cached) " >&6 12619else 12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12621/* end confdefs.h. */ 12622int i; 12623_ACEOF 12624if ac_fn_c_try_compile "$LINENO"; then : 12625 xorg_cv_cc_flag_unknown_warning_option=yes 12626else 12627 xorg_cv_cc_flag_unknown_warning_option=no 12628fi 12629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12630fi 12631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12634 CFLAGS="$xorg_testset_save_CFLAGS" 12635fi 12636 12637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12640 fi 12641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12645 $as_echo_n "(cached) " >&6 12646else 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649int i; 12650_ACEOF 12651if ac_fn_c_try_compile "$LINENO"; then : 12652 xorg_cv_cc_flag_unused_command_line_argument=yes 12653else 12654 xorg_cv_cc_flag_unused_command_line_argument=no 12655fi 12656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12657fi 12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12661 CFLAGS="$xorg_testset_save_CFLAGS" 12662fi 12663 12664found="no" 12665 12666 if test $found = "no" ; then 12667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12669 fi 12670 12671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12673 fi 12674 12675 CFLAGS="$CFLAGS -Wformat=2" 12676 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12678$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12679 cacheid=xorg_cv_cc_flag__Wformat_2 12680 if eval \${$cacheid+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12684/* end confdefs.h. */ 12685int i; 12686int 12687main () 12688{ 12689 12690 ; 12691 return 0; 12692} 12693_ACEOF 12694if ac_fn_c_try_link "$LINENO"; then : 12695 eval $cacheid=yes 12696else 12697 eval $cacheid=no 12698fi 12699rm -f core conftest.err conftest.$ac_objext \ 12700 conftest$ac_exeext conftest.$ac_ext 12701fi 12702 12703 12704 CFLAGS="$xorg_testset_save_CFLAGS" 12705 12706 eval supported=\$$cacheid 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12708$as_echo "$supported" >&6; } 12709 if test "$supported" = "yes" ; then 12710 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12711 found="yes" 12712 fi 12713 fi 12714 12715 if test $found = "no" ; then 12716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12718 fi 12719 12720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12722 fi 12723 12724 CFLAGS="$CFLAGS -Wformat" 12725 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12727$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12728 cacheid=xorg_cv_cc_flag__Wformat 12729 if eval \${$cacheid+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731else 12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12733/* end confdefs.h. */ 12734int i; 12735int 12736main () 12737{ 12738 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_link "$LINENO"; then : 12744 eval $cacheid=yes 12745else 12746 eval $cacheid=no 12747fi 12748rm -f core conftest.err conftest.$ac_objext \ 12749 conftest$ac_exeext conftest.$ac_ext 12750fi 12751 12752 12753 CFLAGS="$xorg_testset_save_CFLAGS" 12754 12755 eval supported=\$$cacheid 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12757$as_echo "$supported" >&6; } 12758 if test "$supported" = "yes" ; then 12759 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12760 found="yes" 12761 fi 12762 fi 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780xorg_testset_save_CFLAGS="$CFLAGS" 12781 12782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12787 $as_echo_n "(cached) " >&6 12788else 12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12790/* end confdefs.h. */ 12791int i; 12792_ACEOF 12793if ac_fn_c_try_compile "$LINENO"; then : 12794 xorg_cv_cc_flag_unknown_warning_option=yes 12795else 12796 xorg_cv_cc_flag_unknown_warning_option=no 12797fi 12798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12799fi 12800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12803 CFLAGS="$xorg_testset_save_CFLAGS" 12804fi 12805 12806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12809 fi 12810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12814 $as_echo_n "(cached) " >&6 12815else 12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12817/* end confdefs.h. */ 12818int i; 12819_ACEOF 12820if ac_fn_c_try_compile "$LINENO"; then : 12821 xorg_cv_cc_flag_unused_command_line_argument=yes 12822else 12823 xorg_cv_cc_flag_unused_command_line_argument=no 12824fi 12825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12826fi 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12830 CFLAGS="$xorg_testset_save_CFLAGS" 12831fi 12832 12833found="no" 12834 12835 if test $found = "no" ; then 12836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12838 fi 12839 12840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12842 fi 12843 12844 CFLAGS="$CFLAGS -Wstrict-prototypes" 12845 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12847$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12848 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12849 if eval \${$cacheid+:} false; then : 12850 $as_echo_n "(cached) " >&6 12851else 12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12853/* end confdefs.h. */ 12854int i; 12855int 12856main () 12857{ 12858 12859 ; 12860 return 0; 12861} 12862_ACEOF 12863if ac_fn_c_try_link "$LINENO"; then : 12864 eval $cacheid=yes 12865else 12866 eval $cacheid=no 12867fi 12868rm -f core conftest.err conftest.$ac_objext \ 12869 conftest$ac_exeext conftest.$ac_ext 12870fi 12871 12872 12873 CFLAGS="$xorg_testset_save_CFLAGS" 12874 12875 eval supported=\$$cacheid 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12877$as_echo "$supported" >&6; } 12878 if test "$supported" = "yes" ; then 12879 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12880 found="yes" 12881 fi 12882 fi 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898xorg_testset_save_CFLAGS="$CFLAGS" 12899 12900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12905 $as_echo_n "(cached) " >&6 12906else 12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12908/* end confdefs.h. */ 12909int i; 12910_ACEOF 12911if ac_fn_c_try_compile "$LINENO"; then : 12912 xorg_cv_cc_flag_unknown_warning_option=yes 12913else 12914 xorg_cv_cc_flag_unknown_warning_option=no 12915fi 12916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12917fi 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12921 CFLAGS="$xorg_testset_save_CFLAGS" 12922fi 12923 12924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12927 fi 12928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12932 $as_echo_n "(cached) " >&6 12933else 12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12935/* end confdefs.h. */ 12936int i; 12937_ACEOF 12938if ac_fn_c_try_compile "$LINENO"; then : 12939 xorg_cv_cc_flag_unused_command_line_argument=yes 12940else 12941 xorg_cv_cc_flag_unused_command_line_argument=no 12942fi 12943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12944fi 12945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12948 CFLAGS="$xorg_testset_save_CFLAGS" 12949fi 12950 12951found="no" 12952 12953 if test $found = "no" ; then 12954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12956 fi 12957 12958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12960 fi 12961 12962 CFLAGS="$CFLAGS -Wmissing-prototypes" 12963 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12965$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12966 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12967 if eval \${$cacheid+:} false; then : 12968 $as_echo_n "(cached) " >&6 12969else 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12971/* end confdefs.h. */ 12972int i; 12973int 12974main () 12975{ 12976 12977 ; 12978 return 0; 12979} 12980_ACEOF 12981if ac_fn_c_try_link "$LINENO"; then : 12982 eval $cacheid=yes 12983else 12984 eval $cacheid=no 12985fi 12986rm -f core conftest.err conftest.$ac_objext \ 12987 conftest$ac_exeext conftest.$ac_ext 12988fi 12989 12990 12991 CFLAGS="$xorg_testset_save_CFLAGS" 12992 12993 eval supported=\$$cacheid 12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12995$as_echo "$supported" >&6; } 12996 if test "$supported" = "yes" ; then 12997 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12998 found="yes" 12999 fi 13000 fi 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016xorg_testset_save_CFLAGS="$CFLAGS" 13017 13018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13023 $as_echo_n "(cached) " >&6 13024else 13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13026/* end confdefs.h. */ 13027int i; 13028_ACEOF 13029if ac_fn_c_try_compile "$LINENO"; then : 13030 xorg_cv_cc_flag_unknown_warning_option=yes 13031else 13032 xorg_cv_cc_flag_unknown_warning_option=no 13033fi 13034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13035fi 13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13039 CFLAGS="$xorg_testset_save_CFLAGS" 13040fi 13041 13042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13045 fi 13046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054int i; 13055_ACEOF 13056if ac_fn_c_try_compile "$LINENO"; then : 13057 xorg_cv_cc_flag_unused_command_line_argument=yes 13058else 13059 xorg_cv_cc_flag_unused_command_line_argument=no 13060fi 13061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13062fi 13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13066 CFLAGS="$xorg_testset_save_CFLAGS" 13067fi 13068 13069found="no" 13070 13071 if test $found = "no" ; then 13072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13074 fi 13075 13076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13078 fi 13079 13080 CFLAGS="$CFLAGS -Wnested-externs" 13081 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13083$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13084 cacheid=xorg_cv_cc_flag__Wnested_externs 13085 if eval \${$cacheid+:} false; then : 13086 $as_echo_n "(cached) " >&6 13087else 13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13089/* end confdefs.h. */ 13090int i; 13091int 13092main () 13093{ 13094 13095 ; 13096 return 0; 13097} 13098_ACEOF 13099if ac_fn_c_try_link "$LINENO"; then : 13100 eval $cacheid=yes 13101else 13102 eval $cacheid=no 13103fi 13104rm -f core conftest.err conftest.$ac_objext \ 13105 conftest$ac_exeext conftest.$ac_ext 13106fi 13107 13108 13109 CFLAGS="$xorg_testset_save_CFLAGS" 13110 13111 eval supported=\$$cacheid 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13113$as_echo "$supported" >&6; } 13114 if test "$supported" = "yes" ; then 13115 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13116 found="yes" 13117 fi 13118 fi 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134xorg_testset_save_CFLAGS="$CFLAGS" 13135 13136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13141 $as_echo_n "(cached) " >&6 13142else 13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145int i; 13146_ACEOF 13147if ac_fn_c_try_compile "$LINENO"; then : 13148 xorg_cv_cc_flag_unknown_warning_option=yes 13149else 13150 xorg_cv_cc_flag_unknown_warning_option=no 13151fi 13152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13153fi 13154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13157 CFLAGS="$xorg_testset_save_CFLAGS" 13158fi 13159 13160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13163 fi 13164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172int i; 13173_ACEOF 13174if ac_fn_c_try_compile "$LINENO"; then : 13175 xorg_cv_cc_flag_unused_command_line_argument=yes 13176else 13177 xorg_cv_cc_flag_unused_command_line_argument=no 13178fi 13179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13180fi 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13184 CFLAGS="$xorg_testset_save_CFLAGS" 13185fi 13186 13187found="no" 13188 13189 if test $found = "no" ; then 13190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13192 fi 13193 13194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13196 fi 13197 13198 CFLAGS="$CFLAGS -Wbad-function-cast" 13199 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13201$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13202 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13203 if eval \${$cacheid+:} false; then : 13204 $as_echo_n "(cached) " >&6 13205else 13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208int i; 13209int 13210main () 13211{ 13212 13213 ; 13214 return 0; 13215} 13216_ACEOF 13217if ac_fn_c_try_link "$LINENO"; then : 13218 eval $cacheid=yes 13219else 13220 eval $cacheid=no 13221fi 13222rm -f core conftest.err conftest.$ac_objext \ 13223 conftest$ac_exeext conftest.$ac_ext 13224fi 13225 13226 13227 CFLAGS="$xorg_testset_save_CFLAGS" 13228 13229 eval supported=\$$cacheid 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13231$as_echo "$supported" >&6; } 13232 if test "$supported" = "yes" ; then 13233 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13234 found="yes" 13235 fi 13236 fi 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252xorg_testset_save_CFLAGS="$CFLAGS" 13253 13254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13259 $as_echo_n "(cached) " >&6 13260else 13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13262/* end confdefs.h. */ 13263int i; 13264_ACEOF 13265if ac_fn_c_try_compile "$LINENO"; then : 13266 xorg_cv_cc_flag_unknown_warning_option=yes 13267else 13268 xorg_cv_cc_flag_unknown_warning_option=no 13269fi 13270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13271fi 13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13275 CFLAGS="$xorg_testset_save_CFLAGS" 13276fi 13277 13278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13281 fi 13282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13286 $as_echo_n "(cached) " >&6 13287else 13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13289/* end confdefs.h. */ 13290int i; 13291_ACEOF 13292if ac_fn_c_try_compile "$LINENO"; then : 13293 xorg_cv_cc_flag_unused_command_line_argument=yes 13294else 13295 xorg_cv_cc_flag_unused_command_line_argument=no 13296fi 13297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13298fi 13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13302 CFLAGS="$xorg_testset_save_CFLAGS" 13303fi 13304 13305found="no" 13306 13307 if test $found = "no" ; then 13308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13310 fi 13311 13312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13314 fi 13315 13316 CFLAGS="$CFLAGS -Wold-style-definition" 13317 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13319$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13320 cacheid=xorg_cv_cc_flag__Wold_style_definition 13321 if eval \${$cacheid+:} false; then : 13322 $as_echo_n "(cached) " >&6 13323else 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325/* end confdefs.h. */ 13326int i; 13327int 13328main () 13329{ 13330 13331 ; 13332 return 0; 13333} 13334_ACEOF 13335if ac_fn_c_try_link "$LINENO"; then : 13336 eval $cacheid=yes 13337else 13338 eval $cacheid=no 13339fi 13340rm -f core conftest.err conftest.$ac_objext \ 13341 conftest$ac_exeext conftest.$ac_ext 13342fi 13343 13344 13345 CFLAGS="$xorg_testset_save_CFLAGS" 13346 13347 eval supported=\$$cacheid 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13349$as_echo "$supported" >&6; } 13350 if test "$supported" = "yes" ; then 13351 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13352 found="yes" 13353 fi 13354 fi 13355 13356 if test $found = "no" ; then 13357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13359 fi 13360 13361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13363 fi 13364 13365 CFLAGS="$CFLAGS -fd" 13366 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13368$as_echo_n "checking if $CC supports -fd... " >&6; } 13369 cacheid=xorg_cv_cc_flag__fd 13370 if eval \${$cacheid+:} false; then : 13371 $as_echo_n "(cached) " >&6 13372else 13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13374/* end confdefs.h. */ 13375int i; 13376int 13377main () 13378{ 13379 13380 ; 13381 return 0; 13382} 13383_ACEOF 13384if ac_fn_c_try_link "$LINENO"; then : 13385 eval $cacheid=yes 13386else 13387 eval $cacheid=no 13388fi 13389rm -f core conftest.err conftest.$ac_objext \ 13390 conftest$ac_exeext conftest.$ac_ext 13391fi 13392 13393 13394 CFLAGS="$xorg_testset_save_CFLAGS" 13395 13396 eval supported=\$$cacheid 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13398$as_echo "$supported" >&6; } 13399 if test "$supported" = "yes" ; then 13400 BASE_CFLAGS="$BASE_CFLAGS -fd" 13401 found="yes" 13402 fi 13403 fi 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419xorg_testset_save_CFLAGS="$CFLAGS" 13420 13421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13426 $as_echo_n "(cached) " >&6 13427else 13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13429/* end confdefs.h. */ 13430int i; 13431_ACEOF 13432if ac_fn_c_try_compile "$LINENO"; then : 13433 xorg_cv_cc_flag_unknown_warning_option=yes 13434else 13435 xorg_cv_cc_flag_unknown_warning_option=no 13436fi 13437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13438fi 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13442 CFLAGS="$xorg_testset_save_CFLAGS" 13443fi 13444 13445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13448 fi 13449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13453 $as_echo_n "(cached) " >&6 13454else 13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456/* end confdefs.h. */ 13457int i; 13458_ACEOF 13459if ac_fn_c_try_compile "$LINENO"; then : 13460 xorg_cv_cc_flag_unused_command_line_argument=yes 13461else 13462 xorg_cv_cc_flag_unused_command_line_argument=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13465fi 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13469 CFLAGS="$xorg_testset_save_CFLAGS" 13470fi 13471 13472found="no" 13473 13474 if test $found = "no" ; then 13475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13477 fi 13478 13479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13481 fi 13482 13483 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13484 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13486$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13487 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13488 if eval \${$cacheid+:} false; then : 13489 $as_echo_n "(cached) " >&6 13490else 13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13492/* end confdefs.h. */ 13493int i; 13494int 13495main () 13496{ 13497 13498 ; 13499 return 0; 13500} 13501_ACEOF 13502if ac_fn_c_try_link "$LINENO"; then : 13503 eval $cacheid=yes 13504else 13505 eval $cacheid=no 13506fi 13507rm -f core conftest.err conftest.$ac_objext \ 13508 conftest$ac_exeext conftest.$ac_ext 13509fi 13510 13511 13512 CFLAGS="$xorg_testset_save_CFLAGS" 13513 13514 eval supported=\$$cacheid 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13516$as_echo "$supported" >&6; } 13517 if test "$supported" = "yes" ; then 13518 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13519 found="yes" 13520 fi 13521 fi 13522 13523 13524 13525 13526 13527# This chunk adds additional warnings that could catch undesired effects. 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541xorg_testset_save_CFLAGS="$CFLAGS" 13542 13543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13548 $as_echo_n "(cached) " >&6 13549else 13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13551/* end confdefs.h. */ 13552int i; 13553_ACEOF 13554if ac_fn_c_try_compile "$LINENO"; then : 13555 xorg_cv_cc_flag_unknown_warning_option=yes 13556else 13557 xorg_cv_cc_flag_unknown_warning_option=no 13558fi 13559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13560fi 13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13564 CFLAGS="$xorg_testset_save_CFLAGS" 13565fi 13566 13567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13570 fi 13571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13575 $as_echo_n "(cached) " >&6 13576else 13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13578/* end confdefs.h. */ 13579int i; 13580_ACEOF 13581if ac_fn_c_try_compile "$LINENO"; then : 13582 xorg_cv_cc_flag_unused_command_line_argument=yes 13583else 13584 xorg_cv_cc_flag_unused_command_line_argument=no 13585fi 13586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13587fi 13588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13591 CFLAGS="$xorg_testset_save_CFLAGS" 13592fi 13593 13594found="no" 13595 13596 if test $found = "no" ; then 13597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13599 fi 13600 13601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13603 fi 13604 13605 CFLAGS="$CFLAGS -Wunused" 13606 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13608$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13609 cacheid=xorg_cv_cc_flag__Wunused 13610 if eval \${$cacheid+:} false; then : 13611 $as_echo_n "(cached) " >&6 13612else 13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13614/* end confdefs.h. */ 13615int i; 13616int 13617main () 13618{ 13619 13620 ; 13621 return 0; 13622} 13623_ACEOF 13624if ac_fn_c_try_link "$LINENO"; then : 13625 eval $cacheid=yes 13626else 13627 eval $cacheid=no 13628fi 13629rm -f core conftest.err conftest.$ac_objext \ 13630 conftest$ac_exeext conftest.$ac_ext 13631fi 13632 13633 13634 CFLAGS="$xorg_testset_save_CFLAGS" 13635 13636 eval supported=\$$cacheid 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13638$as_echo "$supported" >&6; } 13639 if test "$supported" = "yes" ; then 13640 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13641 found="yes" 13642 fi 13643 fi 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659xorg_testset_save_CFLAGS="$CFLAGS" 13660 13661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13666 $as_echo_n "(cached) " >&6 13667else 13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13669/* end confdefs.h. */ 13670int i; 13671_ACEOF 13672if ac_fn_c_try_compile "$LINENO"; then : 13673 xorg_cv_cc_flag_unknown_warning_option=yes 13674else 13675 xorg_cv_cc_flag_unknown_warning_option=no 13676fi 13677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13678fi 13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13682 CFLAGS="$xorg_testset_save_CFLAGS" 13683fi 13684 13685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13688 fi 13689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13693 $as_echo_n "(cached) " >&6 13694else 13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13696/* end confdefs.h. */ 13697int i; 13698_ACEOF 13699if ac_fn_c_try_compile "$LINENO"; then : 13700 xorg_cv_cc_flag_unused_command_line_argument=yes 13701else 13702 xorg_cv_cc_flag_unused_command_line_argument=no 13703fi 13704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13705fi 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13709 CFLAGS="$xorg_testset_save_CFLAGS" 13710fi 13711 13712found="no" 13713 13714 if test $found = "no" ; then 13715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13717 fi 13718 13719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13721 fi 13722 13723 CFLAGS="$CFLAGS -Wuninitialized" 13724 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13726$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13727 cacheid=xorg_cv_cc_flag__Wuninitialized 13728 if eval \${$cacheid+:} false; then : 13729 $as_echo_n "(cached) " >&6 13730else 13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13732/* end confdefs.h. */ 13733int i; 13734int 13735main () 13736{ 13737 13738 ; 13739 return 0; 13740} 13741_ACEOF 13742if ac_fn_c_try_link "$LINENO"; then : 13743 eval $cacheid=yes 13744else 13745 eval $cacheid=no 13746fi 13747rm -f core conftest.err conftest.$ac_objext \ 13748 conftest$ac_exeext conftest.$ac_ext 13749fi 13750 13751 13752 CFLAGS="$xorg_testset_save_CFLAGS" 13753 13754 eval supported=\$$cacheid 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13756$as_echo "$supported" >&6; } 13757 if test "$supported" = "yes" ; then 13758 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13759 found="yes" 13760 fi 13761 fi 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777xorg_testset_save_CFLAGS="$CFLAGS" 13778 13779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13784 $as_echo_n "(cached) " >&6 13785else 13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13787/* end confdefs.h. */ 13788int i; 13789_ACEOF 13790if ac_fn_c_try_compile "$LINENO"; then : 13791 xorg_cv_cc_flag_unknown_warning_option=yes 13792else 13793 xorg_cv_cc_flag_unknown_warning_option=no 13794fi 13795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13796fi 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13800 CFLAGS="$xorg_testset_save_CFLAGS" 13801fi 13802 13803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13806 fi 13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13814/* end confdefs.h. */ 13815int i; 13816_ACEOF 13817if ac_fn_c_try_compile "$LINENO"; then : 13818 xorg_cv_cc_flag_unused_command_line_argument=yes 13819else 13820 xorg_cv_cc_flag_unused_command_line_argument=no 13821fi 13822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13823fi 13824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13827 CFLAGS="$xorg_testset_save_CFLAGS" 13828fi 13829 13830found="no" 13831 13832 if test $found = "no" ; then 13833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13835 fi 13836 13837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13839 fi 13840 13841 CFLAGS="$CFLAGS -Wshadow" 13842 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13844$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13845 cacheid=xorg_cv_cc_flag__Wshadow 13846 if eval \${$cacheid+:} false; then : 13847 $as_echo_n "(cached) " >&6 13848else 13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13850/* end confdefs.h. */ 13851int i; 13852int 13853main () 13854{ 13855 13856 ; 13857 return 0; 13858} 13859_ACEOF 13860if ac_fn_c_try_link "$LINENO"; then : 13861 eval $cacheid=yes 13862else 13863 eval $cacheid=no 13864fi 13865rm -f core conftest.err conftest.$ac_objext \ 13866 conftest$ac_exeext conftest.$ac_ext 13867fi 13868 13869 13870 CFLAGS="$xorg_testset_save_CFLAGS" 13871 13872 eval supported=\$$cacheid 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13874$as_echo "$supported" >&6; } 13875 if test "$supported" = "yes" ; then 13876 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13877 found="yes" 13878 fi 13879 fi 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895xorg_testset_save_CFLAGS="$CFLAGS" 13896 13897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13902 $as_echo_n "(cached) " >&6 13903else 13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905/* end confdefs.h. */ 13906int i; 13907_ACEOF 13908if ac_fn_c_try_compile "$LINENO"; then : 13909 xorg_cv_cc_flag_unknown_warning_option=yes 13910else 13911 xorg_cv_cc_flag_unknown_warning_option=no 13912fi 13913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13914fi 13915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919fi 13920 13921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13924 fi 13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13929 $as_echo_n "(cached) " >&6 13930else 13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13932/* end confdefs.h. */ 13933int i; 13934_ACEOF 13935if ac_fn_c_try_compile "$LINENO"; then : 13936 xorg_cv_cc_flag_unused_command_line_argument=yes 13937else 13938 xorg_cv_cc_flag_unused_command_line_argument=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13941fi 13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13945 CFLAGS="$xorg_testset_save_CFLAGS" 13946fi 13947 13948found="no" 13949 13950 if test $found = "no" ; then 13951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13953 fi 13954 13955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13957 fi 13958 13959 CFLAGS="$CFLAGS -Wmissing-noreturn" 13960 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13962$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13963 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13964 if eval \${$cacheid+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13968/* end confdefs.h. */ 13969int i; 13970int 13971main () 13972{ 13973 13974 ; 13975 return 0; 13976} 13977_ACEOF 13978if ac_fn_c_try_link "$LINENO"; then : 13979 eval $cacheid=yes 13980else 13981 eval $cacheid=no 13982fi 13983rm -f core conftest.err conftest.$ac_objext \ 13984 conftest$ac_exeext conftest.$ac_ext 13985fi 13986 13987 13988 CFLAGS="$xorg_testset_save_CFLAGS" 13989 13990 eval supported=\$$cacheid 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13992$as_echo "$supported" >&6; } 13993 if test "$supported" = "yes" ; then 13994 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13995 found="yes" 13996 fi 13997 fi 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013xorg_testset_save_CFLAGS="$CFLAGS" 14014 14015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14020 $as_echo_n "(cached) " >&6 14021else 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024int i; 14025_ACEOF 14026if ac_fn_c_try_compile "$LINENO"; then : 14027 xorg_cv_cc_flag_unknown_warning_option=yes 14028else 14029 xorg_cv_cc_flag_unknown_warning_option=no 14030fi 14031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14032fi 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14036 CFLAGS="$xorg_testset_save_CFLAGS" 14037fi 14038 14039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14042 fi 14043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051int i; 14052_ACEOF 14053if ac_fn_c_try_compile "$LINENO"; then : 14054 xorg_cv_cc_flag_unused_command_line_argument=yes 14055else 14056 xorg_cv_cc_flag_unused_command_line_argument=no 14057fi 14058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14059fi 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14063 CFLAGS="$xorg_testset_save_CFLAGS" 14064fi 14065 14066found="no" 14067 14068 if test $found = "no" ; then 14069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14071 fi 14072 14073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14075 fi 14076 14077 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14078 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14080$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14081 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14082 if eval \${$cacheid+:} false; then : 14083 $as_echo_n "(cached) " >&6 14084else 14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14086/* end confdefs.h. */ 14087int i; 14088int 14089main () 14090{ 14091 14092 ; 14093 return 0; 14094} 14095_ACEOF 14096if ac_fn_c_try_link "$LINENO"; then : 14097 eval $cacheid=yes 14098else 14099 eval $cacheid=no 14100fi 14101rm -f core conftest.err conftest.$ac_objext \ 14102 conftest$ac_exeext conftest.$ac_ext 14103fi 14104 14105 14106 CFLAGS="$xorg_testset_save_CFLAGS" 14107 14108 eval supported=\$$cacheid 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14110$as_echo "$supported" >&6; } 14111 if test "$supported" = "yes" ; then 14112 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14113 found="yes" 14114 fi 14115 fi 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131xorg_testset_save_CFLAGS="$CFLAGS" 14132 14133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14138 $as_echo_n "(cached) " >&6 14139else 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142int i; 14143_ACEOF 14144if ac_fn_c_try_compile "$LINENO"; then : 14145 xorg_cv_cc_flag_unknown_warning_option=yes 14146else 14147 xorg_cv_cc_flag_unknown_warning_option=no 14148fi 14149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14150fi 14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14154 CFLAGS="$xorg_testset_save_CFLAGS" 14155fi 14156 14157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14160 fi 14161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14165 $as_echo_n "(cached) " >&6 14166else 14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168/* end confdefs.h. */ 14169int i; 14170_ACEOF 14171if ac_fn_c_try_compile "$LINENO"; then : 14172 xorg_cv_cc_flag_unused_command_line_argument=yes 14173else 14174 xorg_cv_cc_flag_unused_command_line_argument=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14177fi 14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182fi 14183 14184found="no" 14185 14186 if test $found = "no" ; then 14187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14189 fi 14190 14191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14193 fi 14194 14195 CFLAGS="$CFLAGS -Wredundant-decls" 14196 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14198$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14199 cacheid=xorg_cv_cc_flag__Wredundant_decls 14200 if eval \${$cacheid+:} false; then : 14201 $as_echo_n "(cached) " >&6 14202else 14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205int i; 14206int 14207main () 14208{ 14209 14210 ; 14211 return 0; 14212} 14213_ACEOF 14214if ac_fn_c_try_link "$LINENO"; then : 14215 eval $cacheid=yes 14216else 14217 eval $cacheid=no 14218fi 14219rm -f core conftest.err conftest.$ac_objext \ 14220 conftest$ac_exeext conftest.$ac_ext 14221fi 14222 14223 14224 CFLAGS="$xorg_testset_save_CFLAGS" 14225 14226 eval supported=\$$cacheid 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14228$as_echo "$supported" >&6; } 14229 if test "$supported" = "yes" ; then 14230 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14231 found="yes" 14232 fi 14233 fi 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249xorg_testset_save_CFLAGS="$CFLAGS" 14250 14251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14256 $as_echo_n "(cached) " >&6 14257else 14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14259/* end confdefs.h. */ 14260int i; 14261_ACEOF 14262if ac_fn_c_try_compile "$LINENO"; then : 14263 xorg_cv_cc_flag_unknown_warning_option=yes 14264else 14265 xorg_cv_cc_flag_unknown_warning_option=no 14266fi 14267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14268fi 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14272 CFLAGS="$xorg_testset_save_CFLAGS" 14273fi 14274 14275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14278 fi 14279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284else 14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14286/* end confdefs.h. */ 14287int i; 14288_ACEOF 14289if ac_fn_c_try_compile "$LINENO"; then : 14290 xorg_cv_cc_flag_unused_command_line_argument=yes 14291else 14292 xorg_cv_cc_flag_unused_command_line_argument=no 14293fi 14294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14295fi 14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14299 CFLAGS="$xorg_testset_save_CFLAGS" 14300fi 14301 14302found="no" 14303 14304 if test $found = "no" ; then 14305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14307 fi 14308 14309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14311 fi 14312 14313 CFLAGS="$CFLAGS -Wlogical-op" 14314 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14316$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14317 cacheid=xorg_cv_cc_flag__Wlogical_op 14318 if eval \${$cacheid+:} false; then : 14319 $as_echo_n "(cached) " >&6 14320else 14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14322/* end confdefs.h. */ 14323int i; 14324int 14325main () 14326{ 14327 14328 ; 14329 return 0; 14330} 14331_ACEOF 14332if ac_fn_c_try_link "$LINENO"; then : 14333 eval $cacheid=yes 14334else 14335 eval $cacheid=no 14336fi 14337rm -f core conftest.err conftest.$ac_objext \ 14338 conftest$ac_exeext conftest.$ac_ext 14339fi 14340 14341 14342 CFLAGS="$xorg_testset_save_CFLAGS" 14343 14344 eval supported=\$$cacheid 14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14346$as_echo "$supported" >&6; } 14347 if test "$supported" = "yes" ; then 14348 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14349 found="yes" 14350 fi 14351 fi 14352 14353 14354 14355# These are currently disabled because they are noisy. They will be enabled 14356# in the future once the codebase is sufficiently modernized to silence 14357# them. For now, I don't want them to drown out the other warnings. 14358# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14359# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14360# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14361 14362# Turn some warnings into errors, so we don't accidently get successful builds 14363# when there are problems that should be fixed. 14364 14365if test "x$SELECTIVE_WERROR" = "xyes" ; then 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379xorg_testset_save_CFLAGS="$CFLAGS" 14380 14381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14386 $as_echo_n "(cached) " >&6 14387else 14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14389/* end confdefs.h. */ 14390int i; 14391_ACEOF 14392if ac_fn_c_try_compile "$LINENO"; then : 14393 xorg_cv_cc_flag_unknown_warning_option=yes 14394else 14395 xorg_cv_cc_flag_unknown_warning_option=no 14396fi 14397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14398fi 14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14402 CFLAGS="$xorg_testset_save_CFLAGS" 14403fi 14404 14405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14408 fi 14409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14413 $as_echo_n "(cached) " >&6 14414else 14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14416/* end confdefs.h. */ 14417int i; 14418_ACEOF 14419if ac_fn_c_try_compile "$LINENO"; then : 14420 xorg_cv_cc_flag_unused_command_line_argument=yes 14421else 14422 xorg_cv_cc_flag_unused_command_line_argument=no 14423fi 14424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14425fi 14426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14429 CFLAGS="$xorg_testset_save_CFLAGS" 14430fi 14431 14432found="no" 14433 14434 if test $found = "no" ; then 14435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14437 fi 14438 14439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14441 fi 14442 14443 CFLAGS="$CFLAGS -Werror=implicit" 14444 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14446$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14447 cacheid=xorg_cv_cc_flag__Werror_implicit 14448 if eval \${$cacheid+:} false; then : 14449 $as_echo_n "(cached) " >&6 14450else 14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14452/* end confdefs.h. */ 14453int i; 14454int 14455main () 14456{ 14457 14458 ; 14459 return 0; 14460} 14461_ACEOF 14462if ac_fn_c_try_link "$LINENO"; then : 14463 eval $cacheid=yes 14464else 14465 eval $cacheid=no 14466fi 14467rm -f core conftest.err conftest.$ac_objext \ 14468 conftest$ac_exeext conftest.$ac_ext 14469fi 14470 14471 14472 CFLAGS="$xorg_testset_save_CFLAGS" 14473 14474 eval supported=\$$cacheid 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14476$as_echo "$supported" >&6; } 14477 if test "$supported" = "yes" ; then 14478 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14479 found="yes" 14480 fi 14481 fi 14482 14483 if test $found = "no" ; then 14484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14486 fi 14487 14488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14490 fi 14491 14492 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14493 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14495$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14496 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14497 if eval \${$cacheid+:} false; then : 14498 $as_echo_n "(cached) " >&6 14499else 14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14501/* end confdefs.h. */ 14502int i; 14503int 14504main () 14505{ 14506 14507 ; 14508 return 0; 14509} 14510_ACEOF 14511if ac_fn_c_try_link "$LINENO"; then : 14512 eval $cacheid=yes 14513else 14514 eval $cacheid=no 14515fi 14516rm -f core conftest.err conftest.$ac_objext \ 14517 conftest$ac_exeext conftest.$ac_ext 14518fi 14519 14520 14521 CFLAGS="$xorg_testset_save_CFLAGS" 14522 14523 eval supported=\$$cacheid 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14525$as_echo "$supported" >&6; } 14526 if test "$supported" = "yes" ; then 14527 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14528 found="yes" 14529 fi 14530 fi 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546xorg_testset_save_CFLAGS="$CFLAGS" 14547 14548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14553 $as_echo_n "(cached) " >&6 14554else 14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14556/* end confdefs.h. */ 14557int i; 14558_ACEOF 14559if ac_fn_c_try_compile "$LINENO"; then : 14560 xorg_cv_cc_flag_unknown_warning_option=yes 14561else 14562 xorg_cv_cc_flag_unknown_warning_option=no 14563fi 14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14565fi 14566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14569 CFLAGS="$xorg_testset_save_CFLAGS" 14570fi 14571 14572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14575 fi 14576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14580 $as_echo_n "(cached) " >&6 14581else 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584int i; 14585_ACEOF 14586if ac_fn_c_try_compile "$LINENO"; then : 14587 xorg_cv_cc_flag_unused_command_line_argument=yes 14588else 14589 xorg_cv_cc_flag_unused_command_line_argument=no 14590fi 14591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14592fi 14593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14596 CFLAGS="$xorg_testset_save_CFLAGS" 14597fi 14598 14599found="no" 14600 14601 if test $found = "no" ; then 14602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14604 fi 14605 14606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14608 fi 14609 14610 CFLAGS="$CFLAGS -Werror=nonnull" 14611 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14613$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14614 cacheid=xorg_cv_cc_flag__Werror_nonnull 14615 if eval \${$cacheid+:} false; then : 14616 $as_echo_n "(cached) " >&6 14617else 14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14619/* end confdefs.h. */ 14620int i; 14621int 14622main () 14623{ 14624 14625 ; 14626 return 0; 14627} 14628_ACEOF 14629if ac_fn_c_try_link "$LINENO"; then : 14630 eval $cacheid=yes 14631else 14632 eval $cacheid=no 14633fi 14634rm -f core conftest.err conftest.$ac_objext \ 14635 conftest$ac_exeext conftest.$ac_ext 14636fi 14637 14638 14639 CFLAGS="$xorg_testset_save_CFLAGS" 14640 14641 eval supported=\$$cacheid 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14643$as_echo "$supported" >&6; } 14644 if test "$supported" = "yes" ; then 14645 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14646 found="yes" 14647 fi 14648 fi 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664xorg_testset_save_CFLAGS="$CFLAGS" 14665 14666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14671 $as_echo_n "(cached) " >&6 14672else 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14674/* end confdefs.h. */ 14675int i; 14676_ACEOF 14677if ac_fn_c_try_compile "$LINENO"; then : 14678 xorg_cv_cc_flag_unknown_warning_option=yes 14679else 14680 xorg_cv_cc_flag_unknown_warning_option=no 14681fi 14682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14683fi 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14687 CFLAGS="$xorg_testset_save_CFLAGS" 14688fi 14689 14690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14693 fi 14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14701/* end confdefs.h. */ 14702int i; 14703_ACEOF 14704if ac_fn_c_try_compile "$LINENO"; then : 14705 xorg_cv_cc_flag_unused_command_line_argument=yes 14706else 14707 xorg_cv_cc_flag_unused_command_line_argument=no 14708fi 14709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14710fi 14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14714 CFLAGS="$xorg_testset_save_CFLAGS" 14715fi 14716 14717found="no" 14718 14719 if test $found = "no" ; then 14720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 fi 14723 14724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14726 fi 14727 14728 CFLAGS="$CFLAGS -Werror=init-self" 14729 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14731$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14732 cacheid=xorg_cv_cc_flag__Werror_init_self 14733 if eval \${$cacheid+:} false; then : 14734 $as_echo_n "(cached) " >&6 14735else 14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14737/* end confdefs.h. */ 14738int i; 14739int 14740main () 14741{ 14742 14743 ; 14744 return 0; 14745} 14746_ACEOF 14747if ac_fn_c_try_link "$LINENO"; then : 14748 eval $cacheid=yes 14749else 14750 eval $cacheid=no 14751fi 14752rm -f core conftest.err conftest.$ac_objext \ 14753 conftest$ac_exeext conftest.$ac_ext 14754fi 14755 14756 14757 CFLAGS="$xorg_testset_save_CFLAGS" 14758 14759 eval supported=\$$cacheid 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14761$as_echo "$supported" >&6; } 14762 if test "$supported" = "yes" ; then 14763 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14764 found="yes" 14765 fi 14766 fi 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782xorg_testset_save_CFLAGS="$CFLAGS" 14783 14784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14789 $as_echo_n "(cached) " >&6 14790else 14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14792/* end confdefs.h. */ 14793int i; 14794_ACEOF 14795if ac_fn_c_try_compile "$LINENO"; then : 14796 xorg_cv_cc_flag_unknown_warning_option=yes 14797else 14798 xorg_cv_cc_flag_unknown_warning_option=no 14799fi 14800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14801fi 14802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14805 CFLAGS="$xorg_testset_save_CFLAGS" 14806fi 14807 14808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14811 fi 14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14816 $as_echo_n "(cached) " >&6 14817else 14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14819/* end confdefs.h. */ 14820int i; 14821_ACEOF 14822if ac_fn_c_try_compile "$LINENO"; then : 14823 xorg_cv_cc_flag_unused_command_line_argument=yes 14824else 14825 xorg_cv_cc_flag_unused_command_line_argument=no 14826fi 14827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14828fi 14829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14832 CFLAGS="$xorg_testset_save_CFLAGS" 14833fi 14834 14835found="no" 14836 14837 if test $found = "no" ; then 14838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14840 fi 14841 14842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14844 fi 14845 14846 CFLAGS="$CFLAGS -Werror=main" 14847 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14849$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14850 cacheid=xorg_cv_cc_flag__Werror_main 14851 if eval \${$cacheid+:} false; then : 14852 $as_echo_n "(cached) " >&6 14853else 14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856int i; 14857int 14858main () 14859{ 14860 14861 ; 14862 return 0; 14863} 14864_ACEOF 14865if ac_fn_c_try_link "$LINENO"; then : 14866 eval $cacheid=yes 14867else 14868 eval $cacheid=no 14869fi 14870rm -f core conftest.err conftest.$ac_objext \ 14871 conftest$ac_exeext conftest.$ac_ext 14872fi 14873 14874 14875 CFLAGS="$xorg_testset_save_CFLAGS" 14876 14877 eval supported=\$$cacheid 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14879$as_echo "$supported" >&6; } 14880 if test "$supported" = "yes" ; then 14881 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14882 found="yes" 14883 fi 14884 fi 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900xorg_testset_save_CFLAGS="$CFLAGS" 14901 14902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14907 $as_echo_n "(cached) " >&6 14908else 14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14910/* end confdefs.h. */ 14911int i; 14912_ACEOF 14913if ac_fn_c_try_compile "$LINENO"; then : 14914 xorg_cv_cc_flag_unknown_warning_option=yes 14915else 14916 xorg_cv_cc_flag_unknown_warning_option=no 14917fi 14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14919fi 14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14923 CFLAGS="$xorg_testset_save_CFLAGS" 14924fi 14925 14926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14929 fi 14930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14934 $as_echo_n "(cached) " >&6 14935else 14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14937/* end confdefs.h. */ 14938int i; 14939_ACEOF 14940if ac_fn_c_try_compile "$LINENO"; then : 14941 xorg_cv_cc_flag_unused_command_line_argument=yes 14942else 14943 xorg_cv_cc_flag_unused_command_line_argument=no 14944fi 14945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14946fi 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14950 CFLAGS="$xorg_testset_save_CFLAGS" 14951fi 14952 14953found="no" 14954 14955 if test $found = "no" ; then 14956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14958 fi 14959 14960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14962 fi 14963 14964 CFLAGS="$CFLAGS -Werror=missing-braces" 14965 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14967$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14968 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14969 if eval \${$cacheid+:} false; then : 14970 $as_echo_n "(cached) " >&6 14971else 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973/* end confdefs.h. */ 14974int i; 14975int 14976main () 14977{ 14978 14979 ; 14980 return 0; 14981} 14982_ACEOF 14983if ac_fn_c_try_link "$LINENO"; then : 14984 eval $cacheid=yes 14985else 14986 eval $cacheid=no 14987fi 14988rm -f core conftest.err conftest.$ac_objext \ 14989 conftest$ac_exeext conftest.$ac_ext 14990fi 14991 14992 14993 CFLAGS="$xorg_testset_save_CFLAGS" 14994 14995 eval supported=\$$cacheid 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14997$as_echo "$supported" >&6; } 14998 if test "$supported" = "yes" ; then 14999 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15000 found="yes" 15001 fi 15002 fi 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018xorg_testset_save_CFLAGS="$CFLAGS" 15019 15020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15025 $as_echo_n "(cached) " >&6 15026else 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029int i; 15030_ACEOF 15031if ac_fn_c_try_compile "$LINENO"; then : 15032 xorg_cv_cc_flag_unknown_warning_option=yes 15033else 15034 xorg_cv_cc_flag_unknown_warning_option=no 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15037fi 15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15041 CFLAGS="$xorg_testset_save_CFLAGS" 15042fi 15043 15044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15047 fi 15048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15052 $as_echo_n "(cached) " >&6 15053else 15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15055/* end confdefs.h. */ 15056int i; 15057_ACEOF 15058if ac_fn_c_try_compile "$LINENO"; then : 15059 xorg_cv_cc_flag_unused_command_line_argument=yes 15060else 15061 xorg_cv_cc_flag_unused_command_line_argument=no 15062fi 15063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15064fi 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15068 CFLAGS="$xorg_testset_save_CFLAGS" 15069fi 15070 15071found="no" 15072 15073 if test $found = "no" ; then 15074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15076 fi 15077 15078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15080 fi 15081 15082 CFLAGS="$CFLAGS -Werror=sequence-point" 15083 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15085$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15086 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15087 if eval \${$cacheid+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15091/* end confdefs.h. */ 15092int i; 15093int 15094main () 15095{ 15096 15097 ; 15098 return 0; 15099} 15100_ACEOF 15101if ac_fn_c_try_link "$LINENO"; then : 15102 eval $cacheid=yes 15103else 15104 eval $cacheid=no 15105fi 15106rm -f core conftest.err conftest.$ac_objext \ 15107 conftest$ac_exeext conftest.$ac_ext 15108fi 15109 15110 15111 CFLAGS="$xorg_testset_save_CFLAGS" 15112 15113 eval supported=\$$cacheid 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15115$as_echo "$supported" >&6; } 15116 if test "$supported" = "yes" ; then 15117 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15118 found="yes" 15119 fi 15120 fi 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136xorg_testset_save_CFLAGS="$CFLAGS" 15137 15138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15143 $as_echo_n "(cached) " >&6 15144else 15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15146/* end confdefs.h. */ 15147int i; 15148_ACEOF 15149if ac_fn_c_try_compile "$LINENO"; then : 15150 xorg_cv_cc_flag_unknown_warning_option=yes 15151else 15152 xorg_cv_cc_flag_unknown_warning_option=no 15153fi 15154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15155fi 15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15159 CFLAGS="$xorg_testset_save_CFLAGS" 15160fi 15161 15162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15165 fi 15166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15170 $as_echo_n "(cached) " >&6 15171else 15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15173/* end confdefs.h. */ 15174int i; 15175_ACEOF 15176if ac_fn_c_try_compile "$LINENO"; then : 15177 xorg_cv_cc_flag_unused_command_line_argument=yes 15178else 15179 xorg_cv_cc_flag_unused_command_line_argument=no 15180fi 15181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15182fi 15183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15186 CFLAGS="$xorg_testset_save_CFLAGS" 15187fi 15188 15189found="no" 15190 15191 if test $found = "no" ; then 15192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15194 fi 15195 15196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15198 fi 15199 15200 CFLAGS="$CFLAGS -Werror=return-type" 15201 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15203$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15204 cacheid=xorg_cv_cc_flag__Werror_return_type 15205 if eval \${$cacheid+:} false; then : 15206 $as_echo_n "(cached) " >&6 15207else 15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15209/* end confdefs.h. */ 15210int i; 15211int 15212main () 15213{ 15214 15215 ; 15216 return 0; 15217} 15218_ACEOF 15219if ac_fn_c_try_link "$LINENO"; then : 15220 eval $cacheid=yes 15221else 15222 eval $cacheid=no 15223fi 15224rm -f core conftest.err conftest.$ac_objext \ 15225 conftest$ac_exeext conftest.$ac_ext 15226fi 15227 15228 15229 CFLAGS="$xorg_testset_save_CFLAGS" 15230 15231 eval supported=\$$cacheid 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15233$as_echo "$supported" >&6; } 15234 if test "$supported" = "yes" ; then 15235 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15236 found="yes" 15237 fi 15238 fi 15239 15240 if test $found = "no" ; then 15241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15243 fi 15244 15245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15247 fi 15248 15249 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15250 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15252$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15253 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15254 if eval \${$cacheid+:} false; then : 15255 $as_echo_n "(cached) " >&6 15256else 15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15258/* end confdefs.h. */ 15259int i; 15260int 15261main () 15262{ 15263 15264 ; 15265 return 0; 15266} 15267_ACEOF 15268if ac_fn_c_try_link "$LINENO"; then : 15269 eval $cacheid=yes 15270else 15271 eval $cacheid=no 15272fi 15273rm -f core conftest.err conftest.$ac_objext \ 15274 conftest$ac_exeext conftest.$ac_ext 15275fi 15276 15277 15278 CFLAGS="$xorg_testset_save_CFLAGS" 15279 15280 eval supported=\$$cacheid 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15282$as_echo "$supported" >&6; } 15283 if test "$supported" = "yes" ; then 15284 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15285 found="yes" 15286 fi 15287 fi 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303xorg_testset_save_CFLAGS="$CFLAGS" 15304 15305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15310 $as_echo_n "(cached) " >&6 15311else 15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15313/* end confdefs.h. */ 15314int i; 15315_ACEOF 15316if ac_fn_c_try_compile "$LINENO"; then : 15317 xorg_cv_cc_flag_unknown_warning_option=yes 15318else 15319 xorg_cv_cc_flag_unknown_warning_option=no 15320fi 15321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15322fi 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15326 CFLAGS="$xorg_testset_save_CFLAGS" 15327fi 15328 15329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15332 fi 15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15337 $as_echo_n "(cached) " >&6 15338else 15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15340/* end confdefs.h. */ 15341int i; 15342_ACEOF 15343if ac_fn_c_try_compile "$LINENO"; then : 15344 xorg_cv_cc_flag_unused_command_line_argument=yes 15345else 15346 xorg_cv_cc_flag_unused_command_line_argument=no 15347fi 15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15349fi 15350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354fi 15355 15356found="no" 15357 15358 if test $found = "no" ; then 15359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15361 fi 15362 15363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15365 fi 15366 15367 CFLAGS="$CFLAGS -Werror=trigraphs" 15368 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15370$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15371 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15372 if eval \${$cacheid+:} false; then : 15373 $as_echo_n "(cached) " >&6 15374else 15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15376/* end confdefs.h. */ 15377int i; 15378int 15379main () 15380{ 15381 15382 ; 15383 return 0; 15384} 15385_ACEOF 15386if ac_fn_c_try_link "$LINENO"; then : 15387 eval $cacheid=yes 15388else 15389 eval $cacheid=no 15390fi 15391rm -f core conftest.err conftest.$ac_objext \ 15392 conftest$ac_exeext conftest.$ac_ext 15393fi 15394 15395 15396 CFLAGS="$xorg_testset_save_CFLAGS" 15397 15398 eval supported=\$$cacheid 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15400$as_echo "$supported" >&6; } 15401 if test "$supported" = "yes" ; then 15402 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15403 found="yes" 15404 fi 15405 fi 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421xorg_testset_save_CFLAGS="$CFLAGS" 15422 15423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15428 $as_echo_n "(cached) " >&6 15429else 15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15431/* end confdefs.h. */ 15432int i; 15433_ACEOF 15434if ac_fn_c_try_compile "$LINENO"; then : 15435 xorg_cv_cc_flag_unknown_warning_option=yes 15436else 15437 xorg_cv_cc_flag_unknown_warning_option=no 15438fi 15439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15440fi 15441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15444 CFLAGS="$xorg_testset_save_CFLAGS" 15445fi 15446 15447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15450 fi 15451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15455 $as_echo_n "(cached) " >&6 15456else 15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15458/* end confdefs.h. */ 15459int i; 15460_ACEOF 15461if ac_fn_c_try_compile "$LINENO"; then : 15462 xorg_cv_cc_flag_unused_command_line_argument=yes 15463else 15464 xorg_cv_cc_flag_unused_command_line_argument=no 15465fi 15466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15467fi 15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15471 CFLAGS="$xorg_testset_save_CFLAGS" 15472fi 15473 15474found="no" 15475 15476 if test $found = "no" ; then 15477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15479 fi 15480 15481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15483 fi 15484 15485 CFLAGS="$CFLAGS -Werror=array-bounds" 15486 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15488$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15489 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15490 if eval \${$cacheid+:} false; then : 15491 $as_echo_n "(cached) " >&6 15492else 15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15494/* end confdefs.h. */ 15495int i; 15496int 15497main () 15498{ 15499 15500 ; 15501 return 0; 15502} 15503_ACEOF 15504if ac_fn_c_try_link "$LINENO"; then : 15505 eval $cacheid=yes 15506else 15507 eval $cacheid=no 15508fi 15509rm -f core conftest.err conftest.$ac_objext \ 15510 conftest$ac_exeext conftest.$ac_ext 15511fi 15512 15513 15514 CFLAGS="$xorg_testset_save_CFLAGS" 15515 15516 eval supported=\$$cacheid 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15518$as_echo "$supported" >&6; } 15519 if test "$supported" = "yes" ; then 15520 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15521 found="yes" 15522 fi 15523 fi 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539xorg_testset_save_CFLAGS="$CFLAGS" 15540 15541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15546 $as_echo_n "(cached) " >&6 15547else 15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15549/* end confdefs.h. */ 15550int i; 15551_ACEOF 15552if ac_fn_c_try_compile "$LINENO"; then : 15553 xorg_cv_cc_flag_unknown_warning_option=yes 15554else 15555 xorg_cv_cc_flag_unknown_warning_option=no 15556fi 15557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15558fi 15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15562 CFLAGS="$xorg_testset_save_CFLAGS" 15563fi 15564 15565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15568 fi 15569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15573 $as_echo_n "(cached) " >&6 15574else 15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15576/* end confdefs.h. */ 15577int i; 15578_ACEOF 15579if ac_fn_c_try_compile "$LINENO"; then : 15580 xorg_cv_cc_flag_unused_command_line_argument=yes 15581else 15582 xorg_cv_cc_flag_unused_command_line_argument=no 15583fi 15584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15585fi 15586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15589 CFLAGS="$xorg_testset_save_CFLAGS" 15590fi 15591 15592found="no" 15593 15594 if test $found = "no" ; then 15595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15597 fi 15598 15599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15601 fi 15602 15603 CFLAGS="$CFLAGS -Werror=write-strings" 15604 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15606$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15607 cacheid=xorg_cv_cc_flag__Werror_write_strings 15608 if eval \${$cacheid+:} false; then : 15609 $as_echo_n "(cached) " >&6 15610else 15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15612/* end confdefs.h. */ 15613int i; 15614int 15615main () 15616{ 15617 15618 ; 15619 return 0; 15620} 15621_ACEOF 15622if ac_fn_c_try_link "$LINENO"; then : 15623 eval $cacheid=yes 15624else 15625 eval $cacheid=no 15626fi 15627rm -f core conftest.err conftest.$ac_objext \ 15628 conftest$ac_exeext conftest.$ac_ext 15629fi 15630 15631 15632 CFLAGS="$xorg_testset_save_CFLAGS" 15633 15634 eval supported=\$$cacheid 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15636$as_echo "$supported" >&6; } 15637 if test "$supported" = "yes" ; then 15638 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15639 found="yes" 15640 fi 15641 fi 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657xorg_testset_save_CFLAGS="$CFLAGS" 15658 15659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15664 $as_echo_n "(cached) " >&6 15665else 15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15667/* end confdefs.h. */ 15668int i; 15669_ACEOF 15670if ac_fn_c_try_compile "$LINENO"; then : 15671 xorg_cv_cc_flag_unknown_warning_option=yes 15672else 15673 xorg_cv_cc_flag_unknown_warning_option=no 15674fi 15675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15676fi 15677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15680 CFLAGS="$xorg_testset_save_CFLAGS" 15681fi 15682 15683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15686 fi 15687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15691 $as_echo_n "(cached) " >&6 15692else 15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15694/* end confdefs.h. */ 15695int i; 15696_ACEOF 15697if ac_fn_c_try_compile "$LINENO"; then : 15698 xorg_cv_cc_flag_unused_command_line_argument=yes 15699else 15700 xorg_cv_cc_flag_unused_command_line_argument=no 15701fi 15702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15703fi 15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15707 CFLAGS="$xorg_testset_save_CFLAGS" 15708fi 15709 15710found="no" 15711 15712 if test $found = "no" ; then 15713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15715 fi 15716 15717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15719 fi 15720 15721 CFLAGS="$CFLAGS -Werror=address" 15722 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15724$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15725 cacheid=xorg_cv_cc_flag__Werror_address 15726 if eval \${$cacheid+:} false; then : 15727 $as_echo_n "(cached) " >&6 15728else 15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15730/* end confdefs.h. */ 15731int i; 15732int 15733main () 15734{ 15735 15736 ; 15737 return 0; 15738} 15739_ACEOF 15740if ac_fn_c_try_link "$LINENO"; then : 15741 eval $cacheid=yes 15742else 15743 eval $cacheid=no 15744fi 15745rm -f core conftest.err conftest.$ac_objext \ 15746 conftest$ac_exeext conftest.$ac_ext 15747fi 15748 15749 15750 CFLAGS="$xorg_testset_save_CFLAGS" 15751 15752 eval supported=\$$cacheid 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15754$as_echo "$supported" >&6; } 15755 if test "$supported" = "yes" ; then 15756 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15757 found="yes" 15758 fi 15759 fi 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775xorg_testset_save_CFLAGS="$CFLAGS" 15776 15777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15782 $as_echo_n "(cached) " >&6 15783else 15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15785/* end confdefs.h. */ 15786int i; 15787_ACEOF 15788if ac_fn_c_try_compile "$LINENO"; then : 15789 xorg_cv_cc_flag_unknown_warning_option=yes 15790else 15791 xorg_cv_cc_flag_unknown_warning_option=no 15792fi 15793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15794fi 15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799fi 15800 15801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15804 fi 15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15809 $as_echo_n "(cached) " >&6 15810else 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813int i; 15814_ACEOF 15815if ac_fn_c_try_compile "$LINENO"; then : 15816 xorg_cv_cc_flag_unused_command_line_argument=yes 15817else 15818 xorg_cv_cc_flag_unused_command_line_argument=no 15819fi 15820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15821fi 15822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15825 CFLAGS="$xorg_testset_save_CFLAGS" 15826fi 15827 15828found="no" 15829 15830 if test $found = "no" ; then 15831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15833 fi 15834 15835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15837 fi 15838 15839 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15840 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15842$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15843 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15844 if eval \${$cacheid+:} false; then : 15845 $as_echo_n "(cached) " >&6 15846else 15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15848/* end confdefs.h. */ 15849int i; 15850int 15851main () 15852{ 15853 15854 ; 15855 return 0; 15856} 15857_ACEOF 15858if ac_fn_c_try_link "$LINENO"; then : 15859 eval $cacheid=yes 15860else 15861 eval $cacheid=no 15862fi 15863rm -f core conftest.err conftest.$ac_objext \ 15864 conftest$ac_exeext conftest.$ac_ext 15865fi 15866 15867 15868 CFLAGS="$xorg_testset_save_CFLAGS" 15869 15870 eval supported=\$$cacheid 15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15872$as_echo "$supported" >&6; } 15873 if test "$supported" = "yes" ; then 15874 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15875 found="yes" 15876 fi 15877 fi 15878 15879 if test $found = "no" ; then 15880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15882 fi 15883 15884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15886 fi 15887 15888 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15889 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15891$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15892 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15893 if eval \${$cacheid+:} false; then : 15894 $as_echo_n "(cached) " >&6 15895else 15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15897/* end confdefs.h. */ 15898int i; 15899int 15900main () 15901{ 15902 15903 ; 15904 return 0; 15905} 15906_ACEOF 15907if ac_fn_c_try_link "$LINENO"; then : 15908 eval $cacheid=yes 15909else 15910 eval $cacheid=no 15911fi 15912rm -f core conftest.err conftest.$ac_objext \ 15913 conftest$ac_exeext conftest.$ac_ext 15914fi 15915 15916 15917 CFLAGS="$xorg_testset_save_CFLAGS" 15918 15919 eval supported=\$$cacheid 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15921$as_echo "$supported" >&6; } 15922 if test "$supported" = "yes" ; then 15923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15924 found="yes" 15925 fi 15926 fi 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942xorg_testset_save_CFLAGS="$CFLAGS" 15943 15944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15949 $as_echo_n "(cached) " >&6 15950else 15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15952/* end confdefs.h. */ 15953int i; 15954_ACEOF 15955if ac_fn_c_try_compile "$LINENO"; then : 15956 xorg_cv_cc_flag_unknown_warning_option=yes 15957else 15958 xorg_cv_cc_flag_unknown_warning_option=no 15959fi 15960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15961fi 15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15965 CFLAGS="$xorg_testset_save_CFLAGS" 15966fi 15967 15968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15971 fi 15972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15976 $as_echo_n "(cached) " >&6 15977else 15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15979/* end confdefs.h. */ 15980int i; 15981_ACEOF 15982if ac_fn_c_try_compile "$LINENO"; then : 15983 xorg_cv_cc_flag_unused_command_line_argument=yes 15984else 15985 xorg_cv_cc_flag_unused_command_line_argument=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15988fi 15989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993fi 15994 15995found="no" 15996 15997 if test $found = "no" ; then 15998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16000 fi 16001 16002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16004 fi 16005 16006 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16007 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16009$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16010 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16011 if eval \${$cacheid+:} false; then : 16012 $as_echo_n "(cached) " >&6 16013else 16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16015/* end confdefs.h. */ 16016int i; 16017int 16018main () 16019{ 16020 16021 ; 16022 return 0; 16023} 16024_ACEOF 16025if ac_fn_c_try_link "$LINENO"; then : 16026 eval $cacheid=yes 16027else 16028 eval $cacheid=no 16029fi 16030rm -f core conftest.err conftest.$ac_objext \ 16031 conftest$ac_exeext conftest.$ac_ext 16032fi 16033 16034 16035 CFLAGS="$xorg_testset_save_CFLAGS" 16036 16037 eval supported=\$$cacheid 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16039$as_echo "$supported" >&6; } 16040 if test "$supported" = "yes" ; then 16041 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16042 found="yes" 16043 fi 16044 fi 16045 16046 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16047else 16048{ $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 16049$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;} 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063xorg_testset_save_CFLAGS="$CFLAGS" 16064 16065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071else 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074int i; 16075_ACEOF 16076if ac_fn_c_try_compile "$LINENO"; then : 16077 xorg_cv_cc_flag_unknown_warning_option=yes 16078else 16079 xorg_cv_cc_flag_unknown_warning_option=no 16080fi 16081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16082fi 16083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16086 CFLAGS="$xorg_testset_save_CFLAGS" 16087fi 16088 16089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16092 fi 16093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16097 $as_echo_n "(cached) " >&6 16098else 16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16100/* end confdefs.h. */ 16101int i; 16102_ACEOF 16103if ac_fn_c_try_compile "$LINENO"; then : 16104 xorg_cv_cc_flag_unused_command_line_argument=yes 16105else 16106 xorg_cv_cc_flag_unused_command_line_argument=no 16107fi 16108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16109fi 16110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16113 CFLAGS="$xorg_testset_save_CFLAGS" 16114fi 16115 16116found="no" 16117 16118 if test $found = "no" ; then 16119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16121 fi 16122 16123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16125 fi 16126 16127 CFLAGS="$CFLAGS -Wimplicit" 16128 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16130$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16131 cacheid=xorg_cv_cc_flag__Wimplicit 16132 if eval \${$cacheid+:} false; then : 16133 $as_echo_n "(cached) " >&6 16134else 16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16136/* end confdefs.h. */ 16137int i; 16138int 16139main () 16140{ 16141 16142 ; 16143 return 0; 16144} 16145_ACEOF 16146if ac_fn_c_try_link "$LINENO"; then : 16147 eval $cacheid=yes 16148else 16149 eval $cacheid=no 16150fi 16151rm -f core conftest.err conftest.$ac_objext \ 16152 conftest$ac_exeext conftest.$ac_ext 16153fi 16154 16155 16156 CFLAGS="$xorg_testset_save_CFLAGS" 16157 16158 eval supported=\$$cacheid 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16160$as_echo "$supported" >&6; } 16161 if test "$supported" = "yes" ; then 16162 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16163 found="yes" 16164 fi 16165 fi 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181xorg_testset_save_CFLAGS="$CFLAGS" 16182 16183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16188 $as_echo_n "(cached) " >&6 16189else 16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16191/* end confdefs.h. */ 16192int i; 16193_ACEOF 16194if ac_fn_c_try_compile "$LINENO"; then : 16195 xorg_cv_cc_flag_unknown_warning_option=yes 16196else 16197 xorg_cv_cc_flag_unknown_warning_option=no 16198fi 16199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16200fi 16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16204 CFLAGS="$xorg_testset_save_CFLAGS" 16205fi 16206 16207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16210 fi 16211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16215 $as_echo_n "(cached) " >&6 16216else 16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16218/* end confdefs.h. */ 16219int i; 16220_ACEOF 16221if ac_fn_c_try_compile "$LINENO"; then : 16222 xorg_cv_cc_flag_unused_command_line_argument=yes 16223else 16224 xorg_cv_cc_flag_unused_command_line_argument=no 16225fi 16226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16227fi 16228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16231 CFLAGS="$xorg_testset_save_CFLAGS" 16232fi 16233 16234found="no" 16235 16236 if test $found = "no" ; then 16237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16239 fi 16240 16241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16243 fi 16244 16245 CFLAGS="$CFLAGS -Wnonnull" 16246 16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16248$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16249 cacheid=xorg_cv_cc_flag__Wnonnull 16250 if eval \${$cacheid+:} false; then : 16251 $as_echo_n "(cached) " >&6 16252else 16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16254/* end confdefs.h. */ 16255int i; 16256int 16257main () 16258{ 16259 16260 ; 16261 return 0; 16262} 16263_ACEOF 16264if ac_fn_c_try_link "$LINENO"; then : 16265 eval $cacheid=yes 16266else 16267 eval $cacheid=no 16268fi 16269rm -f core conftest.err conftest.$ac_objext \ 16270 conftest$ac_exeext conftest.$ac_ext 16271fi 16272 16273 16274 CFLAGS="$xorg_testset_save_CFLAGS" 16275 16276 eval supported=\$$cacheid 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16278$as_echo "$supported" >&6; } 16279 if test "$supported" = "yes" ; then 16280 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16281 found="yes" 16282 fi 16283 fi 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299xorg_testset_save_CFLAGS="$CFLAGS" 16300 16301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16306 $as_echo_n "(cached) " >&6 16307else 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310int i; 16311_ACEOF 16312if ac_fn_c_try_compile "$LINENO"; then : 16313 xorg_cv_cc_flag_unknown_warning_option=yes 16314else 16315 xorg_cv_cc_flag_unknown_warning_option=no 16316fi 16317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16318fi 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16322 CFLAGS="$xorg_testset_save_CFLAGS" 16323fi 16324 16325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16328 fi 16329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16333 $as_echo_n "(cached) " >&6 16334else 16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16336/* end confdefs.h. */ 16337int i; 16338_ACEOF 16339if ac_fn_c_try_compile "$LINENO"; then : 16340 xorg_cv_cc_flag_unused_command_line_argument=yes 16341else 16342 xorg_cv_cc_flag_unused_command_line_argument=no 16343fi 16344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16345fi 16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16349 CFLAGS="$xorg_testset_save_CFLAGS" 16350fi 16351 16352found="no" 16353 16354 if test $found = "no" ; then 16355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16357 fi 16358 16359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16361 fi 16362 16363 CFLAGS="$CFLAGS -Winit-self" 16364 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16366$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16367 cacheid=xorg_cv_cc_flag__Winit_self 16368 if eval \${$cacheid+:} false; then : 16369 $as_echo_n "(cached) " >&6 16370else 16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16372/* end confdefs.h. */ 16373int i; 16374int 16375main () 16376{ 16377 16378 ; 16379 return 0; 16380} 16381_ACEOF 16382if ac_fn_c_try_link "$LINENO"; then : 16383 eval $cacheid=yes 16384else 16385 eval $cacheid=no 16386fi 16387rm -f core conftest.err conftest.$ac_objext \ 16388 conftest$ac_exeext conftest.$ac_ext 16389fi 16390 16391 16392 CFLAGS="$xorg_testset_save_CFLAGS" 16393 16394 eval supported=\$$cacheid 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16396$as_echo "$supported" >&6; } 16397 if test "$supported" = "yes" ; then 16398 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16399 found="yes" 16400 fi 16401 fi 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417xorg_testset_save_CFLAGS="$CFLAGS" 16418 16419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16424 $as_echo_n "(cached) " >&6 16425else 16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16427/* end confdefs.h. */ 16428int i; 16429_ACEOF 16430if ac_fn_c_try_compile "$LINENO"; then : 16431 xorg_cv_cc_flag_unknown_warning_option=yes 16432else 16433 xorg_cv_cc_flag_unknown_warning_option=no 16434fi 16435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16436fi 16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16440 CFLAGS="$xorg_testset_save_CFLAGS" 16441fi 16442 16443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16446 fi 16447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16451 $as_echo_n "(cached) " >&6 16452else 16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16454/* end confdefs.h. */ 16455int i; 16456_ACEOF 16457if ac_fn_c_try_compile "$LINENO"; then : 16458 xorg_cv_cc_flag_unused_command_line_argument=yes 16459else 16460 xorg_cv_cc_flag_unused_command_line_argument=no 16461fi 16462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16463fi 16464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16467 CFLAGS="$xorg_testset_save_CFLAGS" 16468fi 16469 16470found="no" 16471 16472 if test $found = "no" ; then 16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 fi 16476 16477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16479 fi 16480 16481 CFLAGS="$CFLAGS -Wmain" 16482 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16484$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16485 cacheid=xorg_cv_cc_flag__Wmain 16486 if eval \${$cacheid+:} false; then : 16487 $as_echo_n "(cached) " >&6 16488else 16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16490/* end confdefs.h. */ 16491int i; 16492int 16493main () 16494{ 16495 16496 ; 16497 return 0; 16498} 16499_ACEOF 16500if ac_fn_c_try_link "$LINENO"; then : 16501 eval $cacheid=yes 16502else 16503 eval $cacheid=no 16504fi 16505rm -f core conftest.err conftest.$ac_objext \ 16506 conftest$ac_exeext conftest.$ac_ext 16507fi 16508 16509 16510 CFLAGS="$xorg_testset_save_CFLAGS" 16511 16512 eval supported=\$$cacheid 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16514$as_echo "$supported" >&6; } 16515 if test "$supported" = "yes" ; then 16516 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16517 found="yes" 16518 fi 16519 fi 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535xorg_testset_save_CFLAGS="$CFLAGS" 16536 16537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16542 $as_echo_n "(cached) " >&6 16543else 16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16545/* end confdefs.h. */ 16546int i; 16547_ACEOF 16548if ac_fn_c_try_compile "$LINENO"; then : 16549 xorg_cv_cc_flag_unknown_warning_option=yes 16550else 16551 xorg_cv_cc_flag_unknown_warning_option=no 16552fi 16553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16554fi 16555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16558 CFLAGS="$xorg_testset_save_CFLAGS" 16559fi 16560 16561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16564 fi 16565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16569 $as_echo_n "(cached) " >&6 16570else 16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16572/* end confdefs.h. */ 16573int i; 16574_ACEOF 16575if ac_fn_c_try_compile "$LINENO"; then : 16576 xorg_cv_cc_flag_unused_command_line_argument=yes 16577else 16578 xorg_cv_cc_flag_unused_command_line_argument=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16581fi 16582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586fi 16587 16588found="no" 16589 16590 if test $found = "no" ; then 16591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16593 fi 16594 16595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16597 fi 16598 16599 CFLAGS="$CFLAGS -Wmissing-braces" 16600 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16602$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16603 cacheid=xorg_cv_cc_flag__Wmissing_braces 16604 if eval \${$cacheid+:} false; then : 16605 $as_echo_n "(cached) " >&6 16606else 16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609int i; 16610int 16611main () 16612{ 16613 16614 ; 16615 return 0; 16616} 16617_ACEOF 16618if ac_fn_c_try_link "$LINENO"; then : 16619 eval $cacheid=yes 16620else 16621 eval $cacheid=no 16622fi 16623rm -f core conftest.err conftest.$ac_objext \ 16624 conftest$ac_exeext conftest.$ac_ext 16625fi 16626 16627 16628 CFLAGS="$xorg_testset_save_CFLAGS" 16629 16630 eval supported=\$$cacheid 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16632$as_echo "$supported" >&6; } 16633 if test "$supported" = "yes" ; then 16634 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16635 found="yes" 16636 fi 16637 fi 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653xorg_testset_save_CFLAGS="$CFLAGS" 16654 16655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16660 $as_echo_n "(cached) " >&6 16661else 16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16663/* end confdefs.h. */ 16664int i; 16665_ACEOF 16666if ac_fn_c_try_compile "$LINENO"; then : 16667 xorg_cv_cc_flag_unknown_warning_option=yes 16668else 16669 xorg_cv_cc_flag_unknown_warning_option=no 16670fi 16671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16672fi 16673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16676 CFLAGS="$xorg_testset_save_CFLAGS" 16677fi 16678 16679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16682 fi 16683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16687 $as_echo_n "(cached) " >&6 16688else 16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16690/* end confdefs.h. */ 16691int i; 16692_ACEOF 16693if ac_fn_c_try_compile "$LINENO"; then : 16694 xorg_cv_cc_flag_unused_command_line_argument=yes 16695else 16696 xorg_cv_cc_flag_unused_command_line_argument=no 16697fi 16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16699fi 16700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16703 CFLAGS="$xorg_testset_save_CFLAGS" 16704fi 16705 16706found="no" 16707 16708 if test $found = "no" ; then 16709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16711 fi 16712 16713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16715 fi 16716 16717 CFLAGS="$CFLAGS -Wsequence-point" 16718 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16720$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16721 cacheid=xorg_cv_cc_flag__Wsequence_point 16722 if eval \${$cacheid+:} false; then : 16723 $as_echo_n "(cached) " >&6 16724else 16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16726/* end confdefs.h. */ 16727int i; 16728int 16729main () 16730{ 16731 16732 ; 16733 return 0; 16734} 16735_ACEOF 16736if ac_fn_c_try_link "$LINENO"; then : 16737 eval $cacheid=yes 16738else 16739 eval $cacheid=no 16740fi 16741rm -f core conftest.err conftest.$ac_objext \ 16742 conftest$ac_exeext conftest.$ac_ext 16743fi 16744 16745 16746 CFLAGS="$xorg_testset_save_CFLAGS" 16747 16748 eval supported=\$$cacheid 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16750$as_echo "$supported" >&6; } 16751 if test "$supported" = "yes" ; then 16752 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16753 found="yes" 16754 fi 16755 fi 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771xorg_testset_save_CFLAGS="$CFLAGS" 16772 16773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16778 $as_echo_n "(cached) " >&6 16779else 16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16781/* end confdefs.h. */ 16782int i; 16783_ACEOF 16784if ac_fn_c_try_compile "$LINENO"; then : 16785 xorg_cv_cc_flag_unknown_warning_option=yes 16786else 16787 xorg_cv_cc_flag_unknown_warning_option=no 16788fi 16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16790fi 16791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16794 CFLAGS="$xorg_testset_save_CFLAGS" 16795fi 16796 16797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16800 fi 16801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16805 $as_echo_n "(cached) " >&6 16806else 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16808/* end confdefs.h. */ 16809int i; 16810_ACEOF 16811if ac_fn_c_try_compile "$LINENO"; then : 16812 xorg_cv_cc_flag_unused_command_line_argument=yes 16813else 16814 xorg_cv_cc_flag_unused_command_line_argument=no 16815fi 16816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16817fi 16818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16821 CFLAGS="$xorg_testset_save_CFLAGS" 16822fi 16823 16824found="no" 16825 16826 if test $found = "no" ; then 16827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16829 fi 16830 16831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16833 fi 16834 16835 CFLAGS="$CFLAGS -Wreturn-type" 16836 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16838$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16839 cacheid=xorg_cv_cc_flag__Wreturn_type 16840 if eval \${$cacheid+:} false; then : 16841 $as_echo_n "(cached) " >&6 16842else 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844/* end confdefs.h. */ 16845int i; 16846int 16847main () 16848{ 16849 16850 ; 16851 return 0; 16852} 16853_ACEOF 16854if ac_fn_c_try_link "$LINENO"; then : 16855 eval $cacheid=yes 16856else 16857 eval $cacheid=no 16858fi 16859rm -f core conftest.err conftest.$ac_objext \ 16860 conftest$ac_exeext conftest.$ac_ext 16861fi 16862 16863 16864 CFLAGS="$xorg_testset_save_CFLAGS" 16865 16866 eval supported=\$$cacheid 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16868$as_echo "$supported" >&6; } 16869 if test "$supported" = "yes" ; then 16870 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16871 found="yes" 16872 fi 16873 fi 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889xorg_testset_save_CFLAGS="$CFLAGS" 16890 16891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16896 $as_echo_n "(cached) " >&6 16897else 16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16899/* end confdefs.h. */ 16900int i; 16901_ACEOF 16902if ac_fn_c_try_compile "$LINENO"; then : 16903 xorg_cv_cc_flag_unknown_warning_option=yes 16904else 16905 xorg_cv_cc_flag_unknown_warning_option=no 16906fi 16907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16908fi 16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16912 CFLAGS="$xorg_testset_save_CFLAGS" 16913fi 16914 16915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16918 fi 16919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16923 $as_echo_n "(cached) " >&6 16924else 16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16926/* end confdefs.h. */ 16927int i; 16928_ACEOF 16929if ac_fn_c_try_compile "$LINENO"; then : 16930 xorg_cv_cc_flag_unused_command_line_argument=yes 16931else 16932 xorg_cv_cc_flag_unused_command_line_argument=no 16933fi 16934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16935fi 16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16939 CFLAGS="$xorg_testset_save_CFLAGS" 16940fi 16941 16942found="no" 16943 16944 if test $found = "no" ; then 16945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16947 fi 16948 16949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16951 fi 16952 16953 CFLAGS="$CFLAGS -Wtrigraphs" 16954 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16956$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16957 cacheid=xorg_cv_cc_flag__Wtrigraphs 16958 if eval \${$cacheid+:} false; then : 16959 $as_echo_n "(cached) " >&6 16960else 16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16962/* end confdefs.h. */ 16963int i; 16964int 16965main () 16966{ 16967 16968 ; 16969 return 0; 16970} 16971_ACEOF 16972if ac_fn_c_try_link "$LINENO"; then : 16973 eval $cacheid=yes 16974else 16975 eval $cacheid=no 16976fi 16977rm -f core conftest.err conftest.$ac_objext \ 16978 conftest$ac_exeext conftest.$ac_ext 16979fi 16980 16981 16982 CFLAGS="$xorg_testset_save_CFLAGS" 16983 16984 eval supported=\$$cacheid 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16986$as_echo "$supported" >&6; } 16987 if test "$supported" = "yes" ; then 16988 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16989 found="yes" 16990 fi 16991 fi 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007xorg_testset_save_CFLAGS="$CFLAGS" 17008 17009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17014 $as_echo_n "(cached) " >&6 17015else 17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17017/* end confdefs.h. */ 17018int i; 17019_ACEOF 17020if ac_fn_c_try_compile "$LINENO"; then : 17021 xorg_cv_cc_flag_unknown_warning_option=yes 17022else 17023 xorg_cv_cc_flag_unknown_warning_option=no 17024fi 17025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17026fi 17027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17030 CFLAGS="$xorg_testset_save_CFLAGS" 17031fi 17032 17033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17036 fi 17037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17041 $as_echo_n "(cached) " >&6 17042else 17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17044/* end confdefs.h. */ 17045int i; 17046_ACEOF 17047if ac_fn_c_try_compile "$LINENO"; then : 17048 xorg_cv_cc_flag_unused_command_line_argument=yes 17049else 17050 xorg_cv_cc_flag_unused_command_line_argument=no 17051fi 17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17053fi 17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17057 CFLAGS="$xorg_testset_save_CFLAGS" 17058fi 17059 17060found="no" 17061 17062 if test $found = "no" ; then 17063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17065 fi 17066 17067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17069 fi 17070 17071 CFLAGS="$CFLAGS -Warray-bounds" 17072 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17074$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17075 cacheid=xorg_cv_cc_flag__Warray_bounds 17076 if eval \${$cacheid+:} false; then : 17077 $as_echo_n "(cached) " >&6 17078else 17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17080/* end confdefs.h. */ 17081int i; 17082int 17083main () 17084{ 17085 17086 ; 17087 return 0; 17088} 17089_ACEOF 17090if ac_fn_c_try_link "$LINENO"; then : 17091 eval $cacheid=yes 17092else 17093 eval $cacheid=no 17094fi 17095rm -f core conftest.err conftest.$ac_objext \ 17096 conftest$ac_exeext conftest.$ac_ext 17097fi 17098 17099 17100 CFLAGS="$xorg_testset_save_CFLAGS" 17101 17102 eval supported=\$$cacheid 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17104$as_echo "$supported" >&6; } 17105 if test "$supported" = "yes" ; then 17106 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17107 found="yes" 17108 fi 17109 fi 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125xorg_testset_save_CFLAGS="$CFLAGS" 17126 17127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17132 $as_echo_n "(cached) " >&6 17133else 17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136int i; 17137_ACEOF 17138if ac_fn_c_try_compile "$LINENO"; then : 17139 xorg_cv_cc_flag_unknown_warning_option=yes 17140else 17141 xorg_cv_cc_flag_unknown_warning_option=no 17142fi 17143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17144fi 17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17148 CFLAGS="$xorg_testset_save_CFLAGS" 17149fi 17150 17151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17154 fi 17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17159 $as_echo_n "(cached) " >&6 17160else 17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17162/* end confdefs.h. */ 17163int i; 17164_ACEOF 17165if ac_fn_c_try_compile "$LINENO"; then : 17166 xorg_cv_cc_flag_unused_command_line_argument=yes 17167else 17168 xorg_cv_cc_flag_unused_command_line_argument=no 17169fi 17170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17171fi 17172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17175 CFLAGS="$xorg_testset_save_CFLAGS" 17176fi 17177 17178found="no" 17179 17180 if test $found = "no" ; then 17181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17183 fi 17184 17185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17187 fi 17188 17189 CFLAGS="$CFLAGS -Wwrite-strings" 17190 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17192$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17193 cacheid=xorg_cv_cc_flag__Wwrite_strings 17194 if eval \${$cacheid+:} false; then : 17195 $as_echo_n "(cached) " >&6 17196else 17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17198/* end confdefs.h. */ 17199int i; 17200int 17201main () 17202{ 17203 17204 ; 17205 return 0; 17206} 17207_ACEOF 17208if ac_fn_c_try_link "$LINENO"; then : 17209 eval $cacheid=yes 17210else 17211 eval $cacheid=no 17212fi 17213rm -f core conftest.err conftest.$ac_objext \ 17214 conftest$ac_exeext conftest.$ac_ext 17215fi 17216 17217 17218 CFLAGS="$xorg_testset_save_CFLAGS" 17219 17220 eval supported=\$$cacheid 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17222$as_echo "$supported" >&6; } 17223 if test "$supported" = "yes" ; then 17224 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17225 found="yes" 17226 fi 17227 fi 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243xorg_testset_save_CFLAGS="$CFLAGS" 17244 17245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17250 $as_echo_n "(cached) " >&6 17251else 17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253/* end confdefs.h. */ 17254int i; 17255_ACEOF 17256if ac_fn_c_try_compile "$LINENO"; then : 17257 xorg_cv_cc_flag_unknown_warning_option=yes 17258else 17259 xorg_cv_cc_flag_unknown_warning_option=no 17260fi 17261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17262fi 17263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17266 CFLAGS="$xorg_testset_save_CFLAGS" 17267fi 17268 17269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17272 fi 17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17277 $as_echo_n "(cached) " >&6 17278else 17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280/* end confdefs.h. */ 17281int i; 17282_ACEOF 17283if ac_fn_c_try_compile "$LINENO"; then : 17284 xorg_cv_cc_flag_unused_command_line_argument=yes 17285else 17286 xorg_cv_cc_flag_unused_command_line_argument=no 17287fi 17288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17289fi 17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17293 CFLAGS="$xorg_testset_save_CFLAGS" 17294fi 17295 17296found="no" 17297 17298 if test $found = "no" ; then 17299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17301 fi 17302 17303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17305 fi 17306 17307 CFLAGS="$CFLAGS -Waddress" 17308 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17310$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17311 cacheid=xorg_cv_cc_flag__Waddress 17312 if eval \${$cacheid+:} false; then : 17313 $as_echo_n "(cached) " >&6 17314else 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316/* end confdefs.h. */ 17317int i; 17318int 17319main () 17320{ 17321 17322 ; 17323 return 0; 17324} 17325_ACEOF 17326if ac_fn_c_try_link "$LINENO"; then : 17327 eval $cacheid=yes 17328else 17329 eval $cacheid=no 17330fi 17331rm -f core conftest.err conftest.$ac_objext \ 17332 conftest$ac_exeext conftest.$ac_ext 17333fi 17334 17335 17336 CFLAGS="$xorg_testset_save_CFLAGS" 17337 17338 eval supported=\$$cacheid 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17340$as_echo "$supported" >&6; } 17341 if test "$supported" = "yes" ; then 17342 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17343 found="yes" 17344 fi 17345 fi 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361xorg_testset_save_CFLAGS="$CFLAGS" 17362 17363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17368 $as_echo_n "(cached) " >&6 17369else 17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17371/* end confdefs.h. */ 17372int i; 17373_ACEOF 17374if ac_fn_c_try_compile "$LINENO"; then : 17375 xorg_cv_cc_flag_unknown_warning_option=yes 17376else 17377 xorg_cv_cc_flag_unknown_warning_option=no 17378fi 17379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17380fi 17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17384 CFLAGS="$xorg_testset_save_CFLAGS" 17385fi 17386 17387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17390 fi 17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17395 $as_echo_n "(cached) " >&6 17396else 17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17398/* end confdefs.h. */ 17399int i; 17400_ACEOF 17401if ac_fn_c_try_compile "$LINENO"; then : 17402 xorg_cv_cc_flag_unused_command_line_argument=yes 17403else 17404 xorg_cv_cc_flag_unused_command_line_argument=no 17405fi 17406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17407fi 17408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17411 CFLAGS="$xorg_testset_save_CFLAGS" 17412fi 17413 17414found="no" 17415 17416 if test $found = "no" ; then 17417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17419 fi 17420 17421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17423 fi 17424 17425 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17426 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17428$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17429 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17430 if eval \${$cacheid+:} false; then : 17431 $as_echo_n "(cached) " >&6 17432else 17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17434/* end confdefs.h. */ 17435int i; 17436int 17437main () 17438{ 17439 17440 ; 17441 return 0; 17442} 17443_ACEOF 17444if ac_fn_c_try_link "$LINENO"; then : 17445 eval $cacheid=yes 17446else 17447 eval $cacheid=no 17448fi 17449rm -f core conftest.err conftest.$ac_objext \ 17450 conftest$ac_exeext conftest.$ac_ext 17451fi 17452 17453 17454 CFLAGS="$xorg_testset_save_CFLAGS" 17455 17456 eval supported=\$$cacheid 17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17458$as_echo "$supported" >&6; } 17459 if test "$supported" = "yes" ; then 17460 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17461 found="yes" 17462 fi 17463 fi 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479xorg_testset_save_CFLAGS="$CFLAGS" 17480 17481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17486 $as_echo_n "(cached) " >&6 17487else 17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17489/* end confdefs.h. */ 17490int i; 17491_ACEOF 17492if ac_fn_c_try_compile "$LINENO"; then : 17493 xorg_cv_cc_flag_unknown_warning_option=yes 17494else 17495 xorg_cv_cc_flag_unknown_warning_option=no 17496fi 17497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17498fi 17499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17502 CFLAGS="$xorg_testset_save_CFLAGS" 17503fi 17504 17505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17508 fi 17509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514else 17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17516/* end confdefs.h. */ 17517int i; 17518_ACEOF 17519if ac_fn_c_try_compile "$LINENO"; then : 17520 xorg_cv_cc_flag_unused_command_line_argument=yes 17521else 17522 xorg_cv_cc_flag_unused_command_line_argument=no 17523fi 17524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17525fi 17526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17529 CFLAGS="$xorg_testset_save_CFLAGS" 17530fi 17531 17532found="no" 17533 17534 if test $found = "no" ; then 17535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17537 fi 17538 17539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17541 fi 17542 17543 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17544 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17546$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17547 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17548 if eval \${$cacheid+:} false; then : 17549 $as_echo_n "(cached) " >&6 17550else 17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17552/* end confdefs.h. */ 17553int i; 17554int 17555main () 17556{ 17557 17558 ; 17559 return 0; 17560} 17561_ACEOF 17562if ac_fn_c_try_link "$LINENO"; then : 17563 eval $cacheid=yes 17564else 17565 eval $cacheid=no 17566fi 17567rm -f core conftest.err conftest.$ac_objext \ 17568 conftest$ac_exeext conftest.$ac_ext 17569fi 17570 17571 17572 CFLAGS="$xorg_testset_save_CFLAGS" 17573 17574 eval supported=\$$cacheid 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17576$as_echo "$supported" >&6; } 17577 if test "$supported" = "yes" ; then 17578 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17579 found="yes" 17580 fi 17581 fi 17582 17583 17584fi 17585 17586 17587 17588 17589 17590 17591 17592 CWARNFLAGS="$BASE_CFLAGS" 17593 if test "x$GCC" = xyes ; then 17594 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17595 fi 17596 17597 17598 17599 17600 17601 17602 17603 17604# Check whether --enable-strict-compilation was given. 17605if test "${enable_strict_compilation+set}" = set; then : 17606 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17607else 17608 STRICT_COMPILE=no 17609fi 17610 17611 17612 17613 17614 17615 17616STRICT_CFLAGS="" 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630xorg_testset_save_CFLAGS="$CFLAGS" 17631 17632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17635$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17636if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17637 $as_echo_n "(cached) " >&6 17638else 17639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17640/* end confdefs.h. */ 17641int i; 17642_ACEOF 17643if ac_fn_c_try_compile "$LINENO"; then : 17644 xorg_cv_cc_flag_unknown_warning_option=yes 17645else 17646 xorg_cv_cc_flag_unknown_warning_option=no 17647fi 17648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17649fi 17650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17651$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17653 CFLAGS="$xorg_testset_save_CFLAGS" 17654fi 17655 17656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17659 fi 17660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17662$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17663if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17664 $as_echo_n "(cached) " >&6 17665else 17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17667/* end confdefs.h. */ 17668int i; 17669_ACEOF 17670if ac_fn_c_try_compile "$LINENO"; then : 17671 xorg_cv_cc_flag_unused_command_line_argument=yes 17672else 17673 xorg_cv_cc_flag_unused_command_line_argument=no 17674fi 17675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17676fi 17677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17678$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17680 CFLAGS="$xorg_testset_save_CFLAGS" 17681fi 17682 17683found="no" 17684 17685 if test $found = "no" ; then 17686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17688 fi 17689 17690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17692 fi 17693 17694 CFLAGS="$CFLAGS -pedantic" 17695 17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17697$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17698 cacheid=xorg_cv_cc_flag__pedantic 17699 if eval \${$cacheid+:} false; then : 17700 $as_echo_n "(cached) " >&6 17701else 17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17703/* end confdefs.h. */ 17704int i; 17705int 17706main () 17707{ 17708 17709 ; 17710 return 0; 17711} 17712_ACEOF 17713if ac_fn_c_try_link "$LINENO"; then : 17714 eval $cacheid=yes 17715else 17716 eval $cacheid=no 17717fi 17718rm -f core conftest.err conftest.$ac_objext \ 17719 conftest$ac_exeext conftest.$ac_ext 17720fi 17721 17722 17723 CFLAGS="$xorg_testset_save_CFLAGS" 17724 17725 eval supported=\$$cacheid 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17727$as_echo "$supported" >&6; } 17728 if test "$supported" = "yes" ; then 17729 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17730 found="yes" 17731 fi 17732 fi 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748xorg_testset_save_CFLAGS="$CFLAGS" 17749 17750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17755 $as_echo_n "(cached) " >&6 17756else 17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17758/* end confdefs.h. */ 17759int i; 17760_ACEOF 17761if ac_fn_c_try_compile "$LINENO"; then : 17762 xorg_cv_cc_flag_unknown_warning_option=yes 17763else 17764 xorg_cv_cc_flag_unknown_warning_option=no 17765fi 17766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17767fi 17768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17771 CFLAGS="$xorg_testset_save_CFLAGS" 17772fi 17773 17774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17777 fi 17778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17782 $as_echo_n "(cached) " >&6 17783else 17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17785/* end confdefs.h. */ 17786int i; 17787_ACEOF 17788if ac_fn_c_try_compile "$LINENO"; then : 17789 xorg_cv_cc_flag_unused_command_line_argument=yes 17790else 17791 xorg_cv_cc_flag_unused_command_line_argument=no 17792fi 17793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17794fi 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17798 CFLAGS="$xorg_testset_save_CFLAGS" 17799fi 17800 17801found="no" 17802 17803 if test $found = "no" ; then 17804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17806 fi 17807 17808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17810 fi 17811 17812 CFLAGS="$CFLAGS -Werror" 17813 17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17815$as_echo_n "checking if $CC supports -Werror... " >&6; } 17816 cacheid=xorg_cv_cc_flag__Werror 17817 if eval \${$cacheid+:} false; then : 17818 $as_echo_n "(cached) " >&6 17819else 17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17821/* end confdefs.h. */ 17822int i; 17823int 17824main () 17825{ 17826 17827 ; 17828 return 0; 17829} 17830_ACEOF 17831if ac_fn_c_try_link "$LINENO"; then : 17832 eval $cacheid=yes 17833else 17834 eval $cacheid=no 17835fi 17836rm -f core conftest.err conftest.$ac_objext \ 17837 conftest$ac_exeext conftest.$ac_ext 17838fi 17839 17840 17841 CFLAGS="$xorg_testset_save_CFLAGS" 17842 17843 eval supported=\$$cacheid 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17845$as_echo "$supported" >&6; } 17846 if test "$supported" = "yes" ; then 17847 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17848 found="yes" 17849 fi 17850 fi 17851 17852 if test $found = "no" ; then 17853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17855 fi 17856 17857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17859 fi 17860 17861 CFLAGS="$CFLAGS -errwarn" 17862 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17864$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17865 cacheid=xorg_cv_cc_flag__errwarn 17866 if eval \${$cacheid+:} false; then : 17867 $as_echo_n "(cached) " >&6 17868else 17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17870/* end confdefs.h. */ 17871int i; 17872int 17873main () 17874{ 17875 17876 ; 17877 return 0; 17878} 17879_ACEOF 17880if ac_fn_c_try_link "$LINENO"; then : 17881 eval $cacheid=yes 17882else 17883 eval $cacheid=no 17884fi 17885rm -f core conftest.err conftest.$ac_objext \ 17886 conftest$ac_exeext conftest.$ac_ext 17887fi 17888 17889 17890 CFLAGS="$xorg_testset_save_CFLAGS" 17891 17892 eval supported=\$$cacheid 17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17894$as_echo "$supported" >&6; } 17895 if test "$supported" = "yes" ; then 17896 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17897 found="yes" 17898 fi 17899 fi 17900 17901 17902 17903# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17904# activate it with -Werror, so we add it here explicitly. 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918xorg_testset_save_CFLAGS="$CFLAGS" 17919 17920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17925 $as_echo_n "(cached) " >&6 17926else 17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17928/* end confdefs.h. */ 17929int i; 17930_ACEOF 17931if ac_fn_c_try_compile "$LINENO"; then : 17932 xorg_cv_cc_flag_unknown_warning_option=yes 17933else 17934 xorg_cv_cc_flag_unknown_warning_option=no 17935fi 17936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17937fi 17938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17941 CFLAGS="$xorg_testset_save_CFLAGS" 17942fi 17943 17944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17947 fi 17948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17952 $as_echo_n "(cached) " >&6 17953else 17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17955/* end confdefs.h. */ 17956int i; 17957_ACEOF 17958if ac_fn_c_try_compile "$LINENO"; then : 17959 xorg_cv_cc_flag_unused_command_line_argument=yes 17960else 17961 xorg_cv_cc_flag_unused_command_line_argument=no 17962fi 17963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17964fi 17965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17968 CFLAGS="$xorg_testset_save_CFLAGS" 17969fi 17970 17971found="no" 17972 17973 if test $found = "no" ; then 17974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17976 fi 17977 17978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17980 fi 17981 17982 CFLAGS="$CFLAGS -Werror=attributes" 17983 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17985$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17986 cacheid=xorg_cv_cc_flag__Werror_attributes 17987 if eval \${$cacheid+:} false; then : 17988 $as_echo_n "(cached) " >&6 17989else 17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17991/* end confdefs.h. */ 17992int i; 17993int 17994main () 17995{ 17996 17997 ; 17998 return 0; 17999} 18000_ACEOF 18001if ac_fn_c_try_link "$LINENO"; then : 18002 eval $cacheid=yes 18003else 18004 eval $cacheid=no 18005fi 18006rm -f core conftest.err conftest.$ac_objext \ 18007 conftest$ac_exeext conftest.$ac_ext 18008fi 18009 18010 18011 CFLAGS="$xorg_testset_save_CFLAGS" 18012 18013 eval supported=\$$cacheid 18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18015$as_echo "$supported" >&6; } 18016 if test "$supported" = "yes" ; then 18017 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18018 found="yes" 18019 fi 18020 fi 18021 18022 18023 18024if test "x$STRICT_COMPILE" = "xyes"; then 18025 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18026 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18027fi 18028 18029 18030 18031 18032 18033 18034cat >>confdefs.h <<_ACEOF 18035#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18036_ACEOF 18037 18038 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18039 if test "x$PVM" = "x"; then 18040 PVM="0" 18041 fi 18042 18043cat >>confdefs.h <<_ACEOF 18044#define PACKAGE_VERSION_MINOR $PVM 18045_ACEOF 18046 18047 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18048 if test "x$PVP" = "x"; then 18049 PVP="0" 18050 fi 18051 18052cat >>confdefs.h <<_ACEOF 18053#define PACKAGE_VERSION_PATCHLEVEL $PVP 18054_ACEOF 18055 18056 18057 18058CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18059mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18060|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18061echo 'git directory not found: installing possibly empty changelog.' >&2)" 18062 18063 18064 18065 18066macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18067INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18068mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18069|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18070echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18071 18072 18073 18074 18075 18076 18077if test x$APP_MAN_SUFFIX = x ; then 18078 APP_MAN_SUFFIX=1 18079fi 18080if test x$APP_MAN_DIR = x ; then 18081 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18082fi 18083 18084if test x$LIB_MAN_SUFFIX = x ; then 18085 LIB_MAN_SUFFIX=3 18086fi 18087if test x$LIB_MAN_DIR = x ; then 18088 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18089fi 18090 18091if test x$FILE_MAN_SUFFIX = x ; then 18092 case $host_os in 18093 solaris*) FILE_MAN_SUFFIX=4 ;; 18094 *) FILE_MAN_SUFFIX=5 ;; 18095 esac 18096fi 18097if test x$FILE_MAN_DIR = x ; then 18098 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18099fi 18100 18101if test x$MISC_MAN_SUFFIX = x ; then 18102 case $host_os in 18103 solaris*) MISC_MAN_SUFFIX=5 ;; 18104 *) MISC_MAN_SUFFIX=7 ;; 18105 esac 18106fi 18107if test x$MISC_MAN_DIR = x ; then 18108 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18109fi 18110 18111if test x$DRIVER_MAN_SUFFIX = x ; then 18112 case $host_os in 18113 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18114 *) DRIVER_MAN_SUFFIX=4 ;; 18115 esac 18116fi 18117if test x$DRIVER_MAN_DIR = x ; then 18118 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18119fi 18120 18121if test x$ADMIN_MAN_SUFFIX = x ; then 18122 case $host_os in 18123 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18124 *) ADMIN_MAN_SUFFIX=8 ;; 18125 esac 18126fi 18127if test x$ADMIN_MAN_DIR = x ; then 18128 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18129fi 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145XORG_MAN_PAGE="X Version 11" 18146 18147MAN_SUBSTS="\ 18148 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18149 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18150 -e 's|__xservername__|Xorg|g' \ 18151 -e 's|__xconfigfile__|xorg.conf|g' \ 18152 -e 's|__projectroot__|\$(prefix)|g' \ 18153 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18154 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18155 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18156 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18157 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18158 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18159 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18160 18161 18162 18163# Check whether --enable-silent-rules was given. 18164if test "${enable_silent_rules+set}" = set; then : 18165 enableval=$enable_silent_rules; 18166fi 18167 18168case $enable_silent_rules in # ((( 18169 yes) AM_DEFAULT_VERBOSITY=0;; 18170 no) AM_DEFAULT_VERBOSITY=1;; 18171 *) AM_DEFAULT_VERBOSITY=0;; 18172esac 18173am_make=${MAKE-make} 18174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18175$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18176if ${am_cv_make_support_nested_variables+:} false; then : 18177 $as_echo_n "(cached) " >&6 18178else 18179 if $as_echo 'TRUE=$(BAR$(V)) 18180BAR0=false 18181BAR1=true 18182V=1 18183am__doit: 18184 @$(TRUE) 18185.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18186 am_cv_make_support_nested_variables=yes 18187else 18188 am_cv_make_support_nested_variables=no 18189fi 18190fi 18191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18192$as_echo "$am_cv_make_support_nested_variables" >&6; } 18193if test $am_cv_make_support_nested_variables = yes; then 18194 AM_V='$(V)' 18195 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18196else 18197 AM_V=$AM_DEFAULT_VERBOSITY 18198 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18199fi 18200AM_BACKSLASH='\' 18201 18202 18203 18204 18205# Check whether --enable-devel-docs was given. 18206if test "${enable_devel_docs+set}" = set; then : 18207 enableval=$enable_devel_docs; build_devel_docs=$enableval 18208else 18209 build_devel_docs=yes 18210fi 18211 18212 18213 if test x$build_devel_docs = xyes; then 18214 ENABLE_DEVEL_DOCS_TRUE= 18215 ENABLE_DEVEL_DOCS_FALSE='#' 18216else 18217 ENABLE_DEVEL_DOCS_TRUE='#' 18218 ENABLE_DEVEL_DOCS_FALSE= 18219fi 18220 18221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 18222$as_echo_n "checking whether to build developer documentation... " >&6; } 18223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 18224$as_echo "$build_devel_docs" >&6; } 18225 18226 18227 18228 18229 18230# Check whether --with-xmlto was given. 18231if test "${with_xmlto+set}" = set; then : 18232 withval=$with_xmlto; use_xmlto=$withval 18233else 18234 use_xmlto=auto 18235fi 18236 18237 18238 18239if test "x$use_xmlto" = x"auto"; then 18240 # Extract the first word of "xmlto", so it can be a program name with args. 18241set dummy xmlto; ac_word=$2 18242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18243$as_echo_n "checking for $ac_word... " >&6; } 18244if ${ac_cv_path_XMLTO+:} false; then : 18245 $as_echo_n "(cached) " >&6 18246else 18247 case $XMLTO in 18248 [\\/]* | ?:[\\/]*) 18249 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18250 ;; 18251 *) 18252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18253for as_dir in $PATH 18254do 18255 IFS=$as_save_IFS 18256 test -z "$as_dir" && as_dir=. 18257 for ac_exec_ext in '' $ac_executable_extensions; do 18258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18259 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18261 break 2 18262 fi 18263done 18264 done 18265IFS=$as_save_IFS 18266 18267 ;; 18268esac 18269fi 18270XMLTO=$ac_cv_path_XMLTO 18271if test -n "$XMLTO"; then 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18273$as_echo "$XMLTO" >&6; } 18274else 18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18276$as_echo "no" >&6; } 18277fi 18278 18279 18280 if test "x$XMLTO" = "x"; then 18281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18282$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18283 have_xmlto=no 18284 else 18285 have_xmlto=yes 18286 fi 18287elif test "x$use_xmlto" = x"yes" ; then 18288 # Extract the first word of "xmlto", so it can be a program name with args. 18289set dummy xmlto; ac_word=$2 18290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18291$as_echo_n "checking for $ac_word... " >&6; } 18292if ${ac_cv_path_XMLTO+:} false; then : 18293 $as_echo_n "(cached) " >&6 18294else 18295 case $XMLTO in 18296 [\\/]* | ?:[\\/]*) 18297 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18298 ;; 18299 *) 18300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18301for as_dir in $PATH 18302do 18303 IFS=$as_save_IFS 18304 test -z "$as_dir" && as_dir=. 18305 for ac_exec_ext in '' $ac_executable_extensions; do 18306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18307 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18309 break 2 18310 fi 18311done 18312 done 18313IFS=$as_save_IFS 18314 18315 ;; 18316esac 18317fi 18318XMLTO=$ac_cv_path_XMLTO 18319if test -n "$XMLTO"; then 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18321$as_echo "$XMLTO" >&6; } 18322else 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18324$as_echo "no" >&6; } 18325fi 18326 18327 18328 if test "x$XMLTO" = "x"; then 18329 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18330 fi 18331 have_xmlto=yes 18332elif test "x$use_xmlto" = x"no" ; then 18333 if test "x$XMLTO" != "x"; then 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18335$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18336 fi 18337 have_xmlto=no 18338else 18339 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18340fi 18341 18342# Test for a minimum version of xmlto, if provided. 18343if test "$have_xmlto" = yes; then 18344 # scrape the xmlto version 18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18346$as_echo_n "checking the xmlto version... " >&6; } 18347 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18349$as_echo "$xmlto_version" >&6; } 18350 as_arg_v1=$xmlto_version 18351as_arg_v2=0.0.22 18352awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18353case $? in #( 18354 1) : 18355 if test "x$use_xmlto" = xauto; then 18356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18357$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18358 have_xmlto=no 18359 else 18360 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18361 fi ;; #( 18362 0) : 18363 ;; #( 18364 2) : 18365 ;; #( 18366 *) : 18367 ;; 18368esac 18369fi 18370 18371# Test for the ability of xmlto to generate a text target 18372have_xmlto_text=no 18373cat > conftest.xml << "EOF" 18374EOF 18375if test "$have_xmlto" = yes; then : 18376 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18377 have_xmlto_text=yes 18378else 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18380$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18381fi 18382fi 18383rm -f conftest.xml 18384 if test $have_xmlto_text = yes; then 18385 HAVE_XMLTO_TEXT_TRUE= 18386 HAVE_XMLTO_TEXT_FALSE='#' 18387else 18388 HAVE_XMLTO_TEXT_TRUE='#' 18389 HAVE_XMLTO_TEXT_FALSE= 18390fi 18391 18392 if test "$have_xmlto" = yes; then 18393 HAVE_XMLTO_TRUE= 18394 HAVE_XMLTO_FALSE='#' 18395else 18396 HAVE_XMLTO_TRUE='#' 18397 HAVE_XMLTO_FALSE= 18398fi 18399 18400 18401 18402 18403 18404 18405# Check whether --with-fop was given. 18406if test "${with_fop+set}" = set; then : 18407 withval=$with_fop; use_fop=$withval 18408else 18409 use_fop=auto 18410fi 18411 18412 18413 18414if test "x$use_fop" = x"auto"; then 18415 # Extract the first word of "fop", so it can be a program name with args. 18416set dummy fop; ac_word=$2 18417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18418$as_echo_n "checking for $ac_word... " >&6; } 18419if ${ac_cv_path_FOP+:} false; then : 18420 $as_echo_n "(cached) " >&6 18421else 18422 case $FOP in 18423 [\\/]* | ?:[\\/]*) 18424 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18425 ;; 18426 *) 18427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18428for as_dir in $PATH 18429do 18430 IFS=$as_save_IFS 18431 test -z "$as_dir" && as_dir=. 18432 for ac_exec_ext in '' $ac_executable_extensions; do 18433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18434 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18436 break 2 18437 fi 18438done 18439 done 18440IFS=$as_save_IFS 18441 18442 ;; 18443esac 18444fi 18445FOP=$ac_cv_path_FOP 18446if test -n "$FOP"; then 18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18448$as_echo "$FOP" >&6; } 18449else 18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18451$as_echo "no" >&6; } 18452fi 18453 18454 18455 if test "x$FOP" = "x"; then 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18457$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18458 have_fop=no 18459 else 18460 have_fop=yes 18461 fi 18462elif test "x$use_fop" = x"yes" ; then 18463 # Extract the first word of "fop", so it can be a program name with args. 18464set dummy fop; ac_word=$2 18465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18466$as_echo_n "checking for $ac_word... " >&6; } 18467if ${ac_cv_path_FOP+:} false; then : 18468 $as_echo_n "(cached) " >&6 18469else 18470 case $FOP in 18471 [\\/]* | ?:[\\/]*) 18472 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18473 ;; 18474 *) 18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18476for as_dir in $PATH 18477do 18478 IFS=$as_save_IFS 18479 test -z "$as_dir" && as_dir=. 18480 for ac_exec_ext in '' $ac_executable_extensions; do 18481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18482 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18484 break 2 18485 fi 18486done 18487 done 18488IFS=$as_save_IFS 18489 18490 ;; 18491esac 18492fi 18493FOP=$ac_cv_path_FOP 18494if test -n "$FOP"; then 18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18496$as_echo "$FOP" >&6; } 18497else 18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18499$as_echo "no" >&6; } 18500fi 18501 18502 18503 if test "x$FOP" = "x"; then 18504 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18505 fi 18506 have_fop=yes 18507elif test "x$use_fop" = x"no" ; then 18508 if test "x$FOP" != "x"; then 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18510$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18511 fi 18512 have_fop=no 18513else 18514 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18515fi 18516 18517# Test for a minimum version of fop, if provided. 18518 18519 if test "$have_fop" = yes; then 18520 HAVE_FOP_TRUE= 18521 HAVE_FOP_FALSE='#' 18522else 18523 HAVE_FOP_TRUE='#' 18524 HAVE_FOP_FALSE= 18525fi 18526 18527 18528 18529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5 18530$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; } 18531XORG_SGML_PATH= 18532if test -n "$PKG_CONFIG" && \ 18533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5 18534 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5 18535 ac_status=$? 18536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18537 test $ac_status = 0; }; then 18538 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18539else 18540 : 18541 18542fi 18543 18544# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18545# the path and the name of the doc stylesheet 18546if test "x$XORG_SGML_PATH" != "x" ; then 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18548$as_echo "$XORG_SGML_PATH" >&6; } 18549 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18550 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18551else 18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18553$as_echo "no" >&6; } 18554fi 18555 18556 18557 18558 18559 if test "x$XSL_STYLESHEET" != "x"; then 18560 HAVE_STYLESHEETS_TRUE= 18561 HAVE_STYLESHEETS_FALSE='#' 18562else 18563 HAVE_STYLESHEETS_TRUE='#' 18564 HAVE_STYLESHEETS_FALSE= 18565fi 18566 18567 18568 18569# Checks for header files. 18570for ac_header in endian.h poll.h sys/poll.h 18571do : 18572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18573ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18574if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18575 cat >>confdefs.h <<_ACEOF 18576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18577_ACEOF 18578 18579fi 18580 18581done 18582 18583 18584# Checks for library functions. 18585for ac_func in poll readlink 18586do : 18587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18589if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18590 cat >>confdefs.h <<_ACEOF 18591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18592_ACEOF 18593 18594fi 18595done 18596 18597 18598# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config 18599# must first be located explicitly. 18600 18601 18602 18603 18604 18605 18606 18607if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18608 if test -n "$ac_tool_prefix"; then 18609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18610set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18612$as_echo_n "checking for $ac_word... " >&6; } 18613if ${ac_cv_path_PKG_CONFIG+:} false; then : 18614 $as_echo_n "(cached) " >&6 18615else 18616 case $PKG_CONFIG in 18617 [\\/]* | ?:[\\/]*) 18618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18619 ;; 18620 *) 18621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18622for as_dir in $PATH 18623do 18624 IFS=$as_save_IFS 18625 test -z "$as_dir" && as_dir=. 18626 for ac_exec_ext in '' $ac_executable_extensions; do 18627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18630 break 2 18631 fi 18632done 18633 done 18634IFS=$as_save_IFS 18635 18636 ;; 18637esac 18638fi 18639PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18640if test -n "$PKG_CONFIG"; then 18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18642$as_echo "$PKG_CONFIG" >&6; } 18643else 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18645$as_echo "no" >&6; } 18646fi 18647 18648 18649fi 18650if test -z "$ac_cv_path_PKG_CONFIG"; then 18651 ac_pt_PKG_CONFIG=$PKG_CONFIG 18652 # Extract the first word of "pkg-config", so it can be a program name with args. 18653set dummy pkg-config; ac_word=$2 18654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18655$as_echo_n "checking for $ac_word... " >&6; } 18656if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18657 $as_echo_n "(cached) " >&6 18658else 18659 case $ac_pt_PKG_CONFIG in 18660 [\\/]* | ?:[\\/]*) 18661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18662 ;; 18663 *) 18664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18665for as_dir in $PATH 18666do 18667 IFS=$as_save_IFS 18668 test -z "$as_dir" && as_dir=. 18669 for ac_exec_ext in '' $ac_executable_extensions; do 18670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18673 break 2 18674 fi 18675done 18676 done 18677IFS=$as_save_IFS 18678 18679 ;; 18680esac 18681fi 18682ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18683if test -n "$ac_pt_PKG_CONFIG"; then 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18685$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18686else 18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18688$as_echo "no" >&6; } 18689fi 18690 18691 if test "x$ac_pt_PKG_CONFIG" = x; then 18692 PKG_CONFIG="" 18693 else 18694 case $cross_compiling:$ac_tool_warned in 18695yes:) 18696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18698ac_tool_warned=yes ;; 18699esac 18700 PKG_CONFIG=$ac_pt_PKG_CONFIG 18701 fi 18702else 18703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18704fi 18705 18706fi 18707if test -n "$PKG_CONFIG"; then 18708 _pkg_min_version=0.9.0 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18710$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18713$as_echo "yes" >&6; } 18714 else 18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18716$as_echo "no" >&6; } 18717 PKG_CONFIG="" 18718 fi 18719fi 18720 18721with_cflags="" 18722if test "x$GCC" = "xyes"; then 18723 18724 for flag in \ 18725 -Wall \ 18726 -Wextra \ 18727 -Wno-sign-compare \ 18728 -Wno-missing-field-initializers \ 18729 -Wno-unused-parameter \ 18730 -Wstrict-prototypes \ 18731 -Wmissing-prototypes \ 18732 -fvisibility=hidden \ 18733 -pipe \ 18734 -fno-strict-aliasing \ 18735 -ffunction-sections \ 18736 -fdata-sections \ 18737 -fno-strict-aliasing \ 18738 -fdiagnostics-show-option \ 18739 -fno-common; do 18740 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5 18742$as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; } 18743if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 18744 $as_echo_n "(cached) " >&6 18745else 18746 eval "cc_save_CFLAGS='${CFLAGS}'" 18747 eval "CFLAGS='-Werror $flag'" 18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18749/* end confdefs.h. */ 18750int a = 0; int main(void) { return a; } 18751_ACEOF 18752if ac_fn_c_try_link "$LINENO"; then : 18753 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'" 18754else 18755 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'" 18756fi 18757rm -f core conftest.err conftest.$ac_objext \ 18758 conftest$ac_exeext conftest.$ac_ext 18759 eval "CFLAGS='$cc_save_CFLAGS'" 18760fi 18761eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` 18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18763$as_echo "$ac_res" >&6; } 18764 18765 if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then : 18766 eval "with_cflags='${with_cflags} $flag'" 18767fi 18768 18769 done 18770 18771fi 18772GCC_CFLAGS=$with_cflags 18773 18774 18775# 18776# select libraries to include 18777# 18778 18779XFONT_FONTFILE=no 18780 18781# 18782# FreeType for all scalable (OpenType, TrueType, PostScript) and 18783# some bitmap formats (BDF & PCF) 18784# 18785# Check whether --enable-freetype was given. 18786if test "${enable_freetype+set}" = set; then : 18787 enableval=$enable_freetype; XFONT_FREETYPE=$enableval 18788else 18789 XFONT_FREETYPE=yes 18790fi 18791 18792 if test x$XFONT_FREETYPE = xyes; then 18793 XFONT_FREETYPE_TRUE= 18794 XFONT_FREETYPE_FALSE='#' 18795else 18796 XFONT_FREETYPE_TRUE='#' 18797 XFONT_FREETYPE_FALSE= 18798fi 18799 18800if test x$XFONT_FREETYPE = xyes; then 18801 18802$as_echo "#define XFONT_FREETYPE 1" >>confdefs.h 18803 18804 18805# Check whether --with-freetype-config was given. 18806if test "${with_freetype_config+set}" = set; then : 18807 withval=$with_freetype_config; freetype_config=$withval 18808else 18809 freetype_config=auto 18810fi 18811 18812 18813 if test "$freetype_config" = "auto" ; then 18814 18815pkg_failed=no 18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 18817$as_echo_n "checking for FREETYPE... " >&6; } 18818 18819if test -n "$FREETYPE_CFLAGS"; then 18820 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 18821 elif test -n "$PKG_CONFIG"; then 18822 if test -n "$PKG_CONFIG" && \ 18823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 18824 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 18825 ac_status=$? 18826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18827 test $ac_status = 0; }; then 18828 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 18829 test "x$?" != "x0" && pkg_failed=yes 18830else 18831 pkg_failed=yes 18832fi 18833 else 18834 pkg_failed=untried 18835fi 18836if test -n "$FREETYPE_LIBS"; then 18837 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 18838 elif test -n "$PKG_CONFIG"; then 18839 if test -n "$PKG_CONFIG" && \ 18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 18841 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 18842 ac_status=$? 18843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18844 test $ac_status = 0; }; then 18845 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 18846 test "x$?" != "x0" && pkg_failed=yes 18847else 18848 pkg_failed=yes 18849fi 18850 else 18851 pkg_failed=untried 18852fi 18853 18854 18855 18856if test $pkg_failed = yes; then 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18858$as_echo "no" >&6; } 18859 18860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18861 _pkg_short_errors_supported=yes 18862else 18863 _pkg_short_errors_supported=no 18864fi 18865 if test $_pkg_short_errors_supported = yes; then 18866 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 18867 else 18868 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 18869 fi 18870 # Put the nasty error message in config.log where it belongs 18871 echo "$FREETYPE_PKG_ERRORS" >&5 18872 18873 freetype_config=yes 18874elif test $pkg_failed = untried; then 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18876$as_echo "no" >&6; } 18877 freetype_config=yes 18878else 18879 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 18880 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18882$as_echo "yes" >&6; } 18883 freetype_config=no 18884fi 18885 fi 18886 18887 if test "$freetype_config" = "yes"; then 18888 # Extract the first word of "freetype-config", so it can be a program name with args. 18889set dummy freetype-config; ac_word=$2 18890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18891$as_echo_n "checking for $ac_word... " >&6; } 18892if ${ac_cv_path_ft_config+:} false; then : 18893 $as_echo_n "(cached) " >&6 18894else 18895 case $ft_config in 18896 [\\/]* | ?:[\\/]*) 18897 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 18898 ;; 18899 *) 18900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18901for as_dir in $PATH 18902do 18903 IFS=$as_save_IFS 18904 test -z "$as_dir" && as_dir=. 18905 for ac_exec_ext in '' $ac_executable_extensions; do 18906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18907 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext" 18908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18909 break 2 18910 fi 18911done 18912 done 18913IFS=$as_save_IFS 18914 18915 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 18916 ;; 18917esac 18918fi 18919ft_config=$ac_cv_path_ft_config 18920if test -n "$ft_config"; then 18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5 18922$as_echo "$ft_config" >&6; } 18923else 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18925$as_echo "no" >&6; } 18926fi 18927 18928 18929 if test "$ft_config" = "no"; then 18930 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5 18931 fi 18932 else 18933 ft_config="$freetype_config" 18934 fi 18935 18936 if test "$freetype_config" != "no"; then 18937 FREETYPE_CFLAGS="`$ft_config --cflags`" 18938 FREETYPE_LIBS="`$ft_config --libs`" 18939 fi 18940 FREETYPE_REQUIRES="freetype2" 18941 XFONT_FONTFILE=yes 18942else 18943 FREETYPE_CFLAGS="" 18944 FREETYPE_LIBS="" 18945 FREETYPE_REQUIRES="" 18946fi 18947 18948 18949 18950 18951# 18952# Bitmap fonts in files: 18953# Builtins (gzipped pcf format in .text segment) 18954# PCF 18955# BDF 18956# SNF 18957# 18958 18959 18960$as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h 18961 18962X_GZIP_FONT_COMPRESSION=1 18963 18964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 18965$as_echo_n "checking for gzopen in -lz... " >&6; } 18966if ${ac_cv_lib_z_gzopen+:} false; then : 18967 $as_echo_n "(cached) " >&6 18968else 18969 ac_check_lib_save_LIBS=$LIBS 18970LIBS="-lz $LIBS" 18971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18972/* end confdefs.h. */ 18973 18974/* Override any GCC internal prototype to avoid an error. 18975 Use char because int might match the return type of a GCC 18976 builtin and then its argument prototype would still apply. */ 18977#ifdef __cplusplus 18978extern "C" 18979#endif 18980char gzopen (); 18981int 18982main () 18983{ 18984return gzopen (); 18985 ; 18986 return 0; 18987} 18988_ACEOF 18989if ac_fn_c_try_link "$LINENO"; then : 18990 ac_cv_lib_z_gzopen=yes 18991else 18992 ac_cv_lib_z_gzopen=no 18993fi 18994rm -f core conftest.err conftest.$ac_objext \ 18995 conftest$ac_exeext conftest.$ac_ext 18996LIBS=$ac_check_lib_save_LIBS 18997fi 18998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 18999$as_echo "$ac_cv_lib_z_gzopen" >&6; } 19000if test "x$ac_cv_lib_z_gzopen" = xyes; then : 19001 Z_LIBS=-lz 19002else 19003 as_fn_error $? "*** zlib is required" "$LINENO" 5 19004fi 19005 19006 19007 19008# Check whether --with-bzip2 was given. 19009if test "${with_bzip2+set}" = set; then : 19010 withval=$with_bzip2; 19011else 19012 with_bzip2=no 19013fi 19014 19015if test "x$with_bzip2" = xyes; then 19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 19017$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; } 19018if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then : 19019 $as_echo_n "(cached) " >&6 19020else 19021 ac_check_lib_save_LIBS=$LIBS 19022LIBS="-lbz2 $LIBS" 19023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19024/* end confdefs.h. */ 19025 19026/* Override any GCC internal prototype to avoid an error. 19027 Use char because int might match the return type of a GCC 19028 builtin and then its argument prototype would still apply. */ 19029#ifdef __cplusplus 19030extern "C" 19031#endif 19032char BZ2_bzopen (); 19033int 19034main () 19035{ 19036return BZ2_bzopen (); 19037 ; 19038 return 0; 19039} 19040_ACEOF 19041if ac_fn_c_try_link "$LINENO"; then : 19042 ac_cv_lib_bz2_BZ2_bzopen=yes 19043else 19044 ac_cv_lib_bz2_BZ2_bzopen=no 19045fi 19046rm -f core conftest.err conftest.$ac_objext \ 19047 conftest$ac_exeext conftest.$ac_ext 19048LIBS=$ac_check_lib_save_LIBS 19049fi 19050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 19051$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 19052if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then : 19053 Z_LIBS="$Z_LIBS -lbz2" 19054else 19055 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 19056fi 19057 19058 19059$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 19060 19061fi 19062 if test "x$with_bzip2" = xyes ; then 19063 X_BZIP2_FONT_COMPRESSION_TRUE= 19064 X_BZIP2_FONT_COMPRESSION_FALSE='#' 19065else 19066 X_BZIP2_FONT_COMPRESSION_TRUE='#' 19067 X_BZIP2_FONT_COMPRESSION_FALSE= 19068fi 19069 19070 19071 19072# Check whether --enable-builtins was given. 19073if test "${enable_builtins+set}" = set; then : 19074 enableval=$enable_builtins; XFONT_BUILTINS=$enableval 19075else 19076 XFONT_BUILTINS=yes 19077fi 19078 19079 if test "x$XFONT_BUILTINS" = xyes ; then 19080 XFONT_BUILTINS_TRUE= 19081 XFONT_BUILTINS_FALSE='#' 19082else 19083 XFONT_BUILTINS_TRUE='#' 19084 XFONT_BUILTINS_FALSE= 19085fi 19086 19087if test "x$XFONT_BUILTINS" = xyes; then 19088 19089$as_echo "#define XFONT_BUILTINS 1" >>confdefs.h 19090 19091 XFONT_BITMAP=yes 19092fi 19093 19094# Check whether --enable-pcfformat was given. 19095if test "${enable_pcfformat+set}" = set; then : 19096 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval 19097else 19098 XFONT_PCFFORMAT=yes 19099fi 19100 19101 if test "x$XFONT_PCFFORMAT" = xyes; then 19102 XFONT_PCFFORMAT_TRUE= 19103 XFONT_PCFFORMAT_FALSE='#' 19104else 19105 XFONT_PCFFORMAT_TRUE='#' 19106 XFONT_PCFFORMAT_FALSE= 19107fi 19108 19109if test "x$XFONT_PCFFORMAT" = xyes; then 19110 19111$as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h 19112 19113 XFONT_BITMAP=yes 19114fi 19115 19116 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then 19117 XFONT_PCF_OR_BUILTIN_TRUE= 19118 XFONT_PCF_OR_BUILTIN_FALSE='#' 19119else 19120 XFONT_PCF_OR_BUILTIN_TRUE='#' 19121 XFONT_PCF_OR_BUILTIN_FALSE= 19122fi 19123 19124 19125# Check whether --enable-bdfformat was given. 19126if test "${enable_bdfformat+set}" = set; then : 19127 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval 19128else 19129 XFONT_BDFFORMAT=yes 19130fi 19131 19132 if test "x$XFONT_BDFFORMAT" = xyes; then 19133 XFONT_BDFFORMAT_TRUE= 19134 XFONT_BDFFORMAT_FALSE='#' 19135else 19136 XFONT_BDFFORMAT_TRUE='#' 19137 XFONT_BDFFORMAT_FALSE= 19138fi 19139 19140if test "x$XFONT_BDFFORMAT" = xyes; then 19141 19142$as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h 19143 19144 XFONT_BITMAP=yes 19145fi 19146 19147# Check whether --enable-snfformat was given. 19148if test "${enable_snfformat+set}" = set; then : 19149 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval 19150else 19151 XFONT_SNFFORMAT=no 19152fi 19153 19154 if test "x$XFONT_SNFFORMAT" = xyes; then 19155 XFONT_SNFFORMAT_TRUE= 19156 XFONT_SNFFORMAT_FALSE='#' 19157else 19158 XFONT_SNFFORMAT_TRUE='#' 19159 XFONT_SNFFORMAT_FALSE= 19160fi 19161 19162if test "x$XFONT_SNFFORMAT" = xyes; then 19163 19164$as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h 19165 19166 XFONT_BITMAP=yes 19167fi 19168 19169 if test "x$XFONT_BITMAP" = xyes ; then 19170 XFONT_BITMAP_TRUE= 19171 XFONT_BITMAP_FALSE='#' 19172else 19173 XFONT_BITMAP_TRUE='#' 19174 XFONT_BITMAP_FALSE= 19175fi 19176 19177if test "x$XFONT_BITMAP" = xyes; then 19178 19179$as_echo "#define XFONT_BITMAP 1" >>confdefs.h 19180 19181 XFONT_FONTFILE=yes 19182fi 19183 19184 if test "x$XFONT_FONTFILE" = xyes; then 19185 XFONT_FONTFILE_TRUE= 19186 XFONT_FONTFILE_FALSE='#' 19187else 19188 XFONT_FONTFILE_TRUE='#' 19189 XFONT_FONTFILE_FALSE= 19190fi 19191 19192if test "x$XFONT_FONTFILE" = xyes; then 19193 19194$as_echo "#define XFONT_FONTFILE 1" >>confdefs.h 19195 19196fi 19197 19198# 19199# Support connection to font servers? 19200# 19201 19202# Check whether --enable-fc was given. 19203if test "${enable_fc+set}" = set; then : 19204 enableval=$enable_fc; XFONT_FC=$enableval 19205else 19206 XFONT_FC=yes 19207fi 19208 19209 if test "x$XFONT_FC" = xyes; then 19210 XFONT_FC_TRUE= 19211 XFONT_FC_FALSE='#' 19212else 19213 XFONT_FC_TRUE='#' 19214 XFONT_FC_FALSE= 19215fi 19216 19217if test "x$XFONT_FC" = xyes; then 19218 19219$as_echo "#define XFONT_FC 1" >>confdefs.h 19220 19221fi 19222 19223 19224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5 19225$as_echo_n "checking for hypot in -lm... " >&6; } 19226if ${ac_cv_lib_m_hypot+:} false; then : 19227 $as_echo_n "(cached) " >&6 19228else 19229 ac_check_lib_save_LIBS=$LIBS 19230LIBS="-lm $LIBS" 19231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19232/* end confdefs.h. */ 19233 19234/* Override any GCC internal prototype to avoid an error. 19235 Use char because int might match the return type of a GCC 19236 builtin and then its argument prototype would still apply. */ 19237#ifdef __cplusplus 19238extern "C" 19239#endif 19240char hypot (); 19241int 19242main () 19243{ 19244return hypot (); 19245 ; 19246 return 0; 19247} 19248_ACEOF 19249if ac_fn_c_try_link "$LINENO"; then : 19250 ac_cv_lib_m_hypot=yes 19251else 19252 ac_cv_lib_m_hypot=no 19253fi 19254rm -f core conftest.err conftest.$ac_objext \ 19255 conftest$ac_exeext conftest.$ac_ext 19256LIBS=$ac_check_lib_save_LIBS 19257fi 19258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5 19259$as_echo "$ac_cv_lib_m_hypot" >&6; } 19260if test "x$ac_cv_lib_m_hypot" = xyes; then : 19261 MATH_LIBS=-lm 19262 19263else 19264 as_fn_error $? "*** libm is required" "$LINENO" 5 19265fi 19266 19267 19268 19269pkg_failed=no 19270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5 19271$as_echo_n "checking for XFONT... " >&6; } 19272 19273if test -n "$XFONT_CFLAGS"; then 19274 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS" 19275 elif test -n "$PKG_CONFIG"; then 19276 if test -n "$PKG_CONFIG" && \ 19277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 19278 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 19279 ac_status=$? 19280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19281 test $ac_status = 0; }; then 19282 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 19283 test "x$?" != "x0" && pkg_failed=yes 19284else 19285 pkg_failed=yes 19286fi 19287 else 19288 pkg_failed=untried 19289fi 19290if test -n "$XFONT_LIBS"; then 19291 pkg_cv_XFONT_LIBS="$XFONT_LIBS" 19292 elif test -n "$PKG_CONFIG"; then 19293 if test -n "$PKG_CONFIG" && \ 19294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 19295 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 19296 ac_status=$? 19297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19298 test $ac_status = 0; }; then 19299 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 19300 test "x$?" != "x0" && pkg_failed=yes 19301else 19302 pkg_failed=yes 19303fi 19304 else 19305 pkg_failed=untried 19306fi 19307 19308 19309 19310if test $pkg_failed = yes; then 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19312$as_echo "no" >&6; } 19313 19314if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19315 _pkg_short_errors_supported=yes 19316else 19317 _pkg_short_errors_supported=no 19318fi 19319 if test $_pkg_short_errors_supported = yes; then 19320 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 19321 else 19322 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 19323 fi 19324 # Put the nasty error message in config.log where it belongs 19325 echo "$XFONT_PKG_ERRORS" >&5 19326 19327 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met: 19328 19329$XFONT_PKG_ERRORS 19330 19331Consider adjusting the PKG_CONFIG_PATH environment variable if you 19332installed software in a non-standard prefix. 19333 19334Alternatively, you may set the environment variables XFONT_CFLAGS 19335and XFONT_LIBS to avoid the need to call pkg-config. 19336See the pkg-config man page for more details." "$LINENO" 5 19337elif test $pkg_failed = untried; then 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19339$as_echo "no" >&6; } 19340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19342as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19343is in your PATH or set the PKG_CONFIG environment variable to the full 19344path to pkg-config. 19345 19346Alternatively, you may set the environment variables XFONT_CFLAGS 19347and XFONT_LIBS to avoid the need to call pkg-config. 19348See the pkg-config man page for more details. 19349 19350To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19351See \`config.log' for more details" "$LINENO" 5; } 19352else 19353 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS 19354 XFONT_LIBS=$pkg_cv_XFONT_LIBS 19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19356$as_echo "yes" >&6; } 19357 19358fi 19359 19360# Transport selection macro from xtrans.m4 19361 19362 19363 case $host_os in 19364 mingw*) unixdef="no" ;; 19365 *) unixdef="yes" ;; 19366 esac 19367 # Check whether --enable-unix-transport was given. 19368if test "${enable_unix_transport+set}" = set; then : 19369 enableval=$enable_unix_transport; UNIXCONN=$enableval 19370else 19371 UNIXCONN=$unixdef 19372fi 19373 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 19375$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 19376 if test "$UNIXCONN" = "yes"; then 19377 19378$as_echo "#define UNIXCONN 1" >>confdefs.h 19379 19380 fi 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 19382$as_echo "$UNIXCONN" >&6; } 19383 # Check whether --enable-tcp-transport was given. 19384if test "${enable_tcp_transport+set}" = set; then : 19385 enableval=$enable_tcp_transport; TCPCONN=$enableval 19386else 19387 TCPCONN=yes 19388fi 19389 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 19391$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 19393$as_echo "$TCPCONN" >&6; } 19394 if test "$TCPCONN" = "yes"; then 19395 19396$as_echo "#define TCPCONN 1" >>confdefs.h 19397 19398 19399 # SVR4 hides these in libraries other than libc 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19401$as_echo_n "checking for library containing socket... " >&6; } 19402if ${ac_cv_search_socket+:} false; then : 19403 $as_echo_n "(cached) " >&6 19404else 19405 ac_func_search_save_LIBS=$LIBS 19406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19407/* end confdefs.h. */ 19408 19409/* Override any GCC internal prototype to avoid an error. 19410 Use char because int might match the return type of a GCC 19411 builtin and then its argument prototype would still apply. */ 19412#ifdef __cplusplus 19413extern "C" 19414#endif 19415char socket (); 19416int 19417main () 19418{ 19419return socket (); 19420 ; 19421 return 0; 19422} 19423_ACEOF 19424for ac_lib in '' socket; do 19425 if test -z "$ac_lib"; then 19426 ac_res="none required" 19427 else 19428 ac_res=-l$ac_lib 19429 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19430 fi 19431 if ac_fn_c_try_link "$LINENO"; then : 19432 ac_cv_search_socket=$ac_res 19433fi 19434rm -f core conftest.err conftest.$ac_objext \ 19435 conftest$ac_exeext 19436 if ${ac_cv_search_socket+:} false; then : 19437 break 19438fi 19439done 19440if ${ac_cv_search_socket+:} false; then : 19441 19442else 19443 ac_cv_search_socket=no 19444fi 19445rm conftest.$ac_ext 19446LIBS=$ac_func_search_save_LIBS 19447fi 19448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19449$as_echo "$ac_cv_search_socket" >&6; } 19450ac_res=$ac_cv_search_socket 19451if test "$ac_res" != no; then : 19452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19453 19454fi 19455 19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19457$as_echo_n "checking for library containing gethostbyname... " >&6; } 19458if ${ac_cv_search_gethostbyname+:} false; then : 19459 $as_echo_n "(cached) " >&6 19460else 19461 ac_func_search_save_LIBS=$LIBS 19462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19463/* end confdefs.h. */ 19464 19465/* Override any GCC internal prototype to avoid an error. 19466 Use char because int might match the return type of a GCC 19467 builtin and then its argument prototype would still apply. */ 19468#ifdef __cplusplus 19469extern "C" 19470#endif 19471char gethostbyname (); 19472int 19473main () 19474{ 19475return gethostbyname (); 19476 ; 19477 return 0; 19478} 19479_ACEOF 19480for ac_lib in '' nsl; do 19481 if test -z "$ac_lib"; then 19482 ac_res="none required" 19483 else 19484 ac_res=-l$ac_lib 19485 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19486 fi 19487 if ac_fn_c_try_link "$LINENO"; then : 19488 ac_cv_search_gethostbyname=$ac_res 19489fi 19490rm -f core conftest.err conftest.$ac_objext \ 19491 conftest$ac_exeext 19492 if ${ac_cv_search_gethostbyname+:} false; then : 19493 break 19494fi 19495done 19496if ${ac_cv_search_gethostbyname+:} false; then : 19497 19498else 19499 ac_cv_search_gethostbyname=no 19500fi 19501rm conftest.$ac_ext 19502LIBS=$ac_func_search_save_LIBS 19503fi 19504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19505$as_echo "$ac_cv_search_gethostbyname" >&6; } 19506ac_res=$ac_cv_search_gethostbyname 19507if test "$ac_res" != no; then : 19508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19509 19510fi 19511 19512 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19514$as_echo_n "checking for main in -lws2_32... " >&6; } 19515if ${ac_cv_lib_ws2_32_main+:} false; then : 19516 $as_echo_n "(cached) " >&6 19517else 19518 ac_check_lib_save_LIBS=$LIBS 19519LIBS="-lws2_32 $LIBS" 19520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19521/* end confdefs.h. */ 19522 19523 19524int 19525main () 19526{ 19527return main (); 19528 ; 19529 return 0; 19530} 19531_ACEOF 19532if ac_fn_c_try_link "$LINENO"; then : 19533 ac_cv_lib_ws2_32_main=yes 19534else 19535 ac_cv_lib_ws2_32_main=no 19536fi 19537rm -f core conftest.err conftest.$ac_objext \ 19538 conftest$ac_exeext conftest.$ac_ext 19539LIBS=$ac_check_lib_save_LIBS 19540fi 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19542$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19543if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19544 cat >>confdefs.h <<_ACEOF 19545#define HAVE_LIBWS2_32 1 19546_ACEOF 19547 19548 LIBS="-lws2_32 $LIBS" 19549 19550fi 19551 19552 fi 19553 19554 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 19555 # Check whether --enable-ipv6 was given. 19556if test "${enable_ipv6+set}" = set; then : 19557 enableval=$enable_ipv6; IPV6CONN=$enableval 19558else 19559 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19560if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19561 IPV6CONN=yes 19562else 19563 IPV6CONN=no 19564fi 19565 19566fi 19567 19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 19569$as_echo_n "checking if IPv6 support should be built... " >&6; } 19570 if test "$IPV6CONN" = "yes"; then 19571 19572$as_echo "#define IPv6 1" >>confdefs.h 19573 19574 fi 19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 19576$as_echo "$IPV6CONN" >&6; } 19577 19578 # 4.3BSD-Reno added a new member to struct sockaddr_in 19579 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 19580#include <sys/types.h> 19581#include <sys/socket.h> 19582#include <netinet/in.h> 19583 19584" 19585if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 19586 19587$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 19588 19589fi 19590 19591 19592 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 19593 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 19594$ac_includes_default 19595#include <sys/socket.h> 19596" 19597if test "x$ac_cv_type_socklen_t" = xyes; then : 19598 19599cat >>confdefs.h <<_ACEOF 19600#define HAVE_SOCKLEN_T 1 19601_ACEOF 19602 19603 19604fi 19605 19606 19607 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 19608 # _XOPEN_SOURCE to get it (such as on Solaris) 19609 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19610$ac_includes_default 19611#include <sys/socket.h> 19612 19613" 19614if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19615 19616fi 19617 19618 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 19619 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19620 unset ac_cv_member_struct_msghdr_msg_control 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 19622$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 19623 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19624#define _XOPEN_SOURCE 600 19625$ac_includes_default 19626#include <sys/socket.h> 19627 19628" 19629if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19630 19631$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 19632 19633 19634fi 19635 19636 fi 19637 # If that didn't work, fall back to XPG5/UNIX98 with C89 19638 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19639 unset ac_cv_member_struct_msghdr_msg_control 19640 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 19641$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 19642 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19643#define _XOPEN_SOURCE 500 19644$ac_includes_default 19645#include <sys/socket.h> 19646 19647" 19648if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19649 19650$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 19651 19652 19653fi 19654 19655 fi 19656 19657 19658 19659 fi 19660 case $host_os in 19661 solaris*|sco*|sysv4*) localdef="yes" ;; 19662 *) localdef="no" ;; 19663 esac 19664 # Check whether --enable-local-transport was given. 19665if test "${enable_local_transport+set}" = set; then : 19666 enableval=$enable_local_transport; LOCALCONN=$enableval 19667else 19668 LOCALCONN=$localdef 19669fi 19670 19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 19672$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 19674$as_echo "$LOCALCONN" >&6; } 19675 if test "$LOCALCONN" = "yes"; then 19676 19677$as_echo "#define LOCALCONN 1" >>confdefs.h 19678 19679 fi 19680 19681 19682 19683case $host_os in 19684 linux*) 19685 OS_CFLAGS="-D_XOPEN_SOURCE" 19686 ;; 19687 *) 19688 OS_CFLAGS= 19689 ;; 19690esac 19691OS_CFLAGS="$OS_CFLAGS $GCC_CFLAGS" 19692 19693 19694 19695ac_config_files="$ac_config_files Makefile doc/Makefile xfont2.pc" 19696 19697cat >confcache <<\_ACEOF 19698# This file is a shell script that caches the results of configure 19699# tests run on this system so they can be shared between configure 19700# scripts and configure runs, see configure's option --config-cache. 19701# It is not useful on other systems. If it contains results you don't 19702# want to keep, you may remove or edit it. 19703# 19704# config.status only pays attention to the cache file if you give it 19705# the --recheck option to rerun configure. 19706# 19707# `ac_cv_env_foo' variables (set or unset) will be overridden when 19708# loading this file, other *unset* `ac_cv_foo' will be assigned the 19709# following values. 19710 19711_ACEOF 19712 19713# The following way of writing the cache mishandles newlines in values, 19714# but we know of no workaround that is simple, portable, and efficient. 19715# So, we kill variables containing newlines. 19716# Ultrix sh set writes to stderr and can't be redirected directly, 19717# and sets the high bit in the cache file unless we assign to the vars. 19718( 19719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19720 eval ac_val=\$$ac_var 19721 case $ac_val in #( 19722 *${as_nl}*) 19723 case $ac_var in #( 19724 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19725$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19726 esac 19727 case $ac_var in #( 19728 _ | IFS | as_nl) ;; #( 19729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19730 *) { eval $ac_var=; unset $ac_var;} ;; 19731 esac ;; 19732 esac 19733 done 19734 19735 (set) 2>&1 | 19736 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19737 *${as_nl}ac_space=\ *) 19738 # `set' does not quote correctly, so add quotes: double-quote 19739 # substitution turns \\\\ into \\, and sed turns \\ into \. 19740 sed -n \ 19741 "s/'/'\\\\''/g; 19742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19743 ;; #( 19744 *) 19745 # `set' quotes correctly as required by POSIX, so do not add quotes. 19746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19747 ;; 19748 esac | 19749 sort 19750) | 19751 sed ' 19752 /^ac_cv_env_/b end 19753 t clear 19754 :clear 19755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19756 t end 19757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19758 :end' >>confcache 19759if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19760 if test -w "$cache_file"; then 19761 if test "x$cache_file" != "x/dev/null"; then 19762 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19763$as_echo "$as_me: updating cache $cache_file" >&6;} 19764 if test ! -f "$cache_file" || test -h "$cache_file"; then 19765 cat confcache >"$cache_file" 19766 else 19767 case $cache_file in #( 19768 */* | ?:*) 19769 mv -f confcache "$cache_file"$$ && 19770 mv -f "$cache_file"$$ "$cache_file" ;; #( 19771 *) 19772 mv -f confcache "$cache_file" ;; 19773 esac 19774 fi 19775 fi 19776 else 19777 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19778$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19779 fi 19780fi 19781rm -f confcache 19782 19783test "x$prefix" = xNONE && prefix=$ac_default_prefix 19784# Let make expand exec_prefix. 19785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19786 19787DEFS=-DHAVE_CONFIG_H 19788 19789ac_libobjs= 19790ac_ltlibobjs= 19791U= 19792for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19793 # 1. Remove the extension, and $U if already installed. 19794 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19795 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19796 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19797 # will be set to the directory where LIBOBJS objects are built. 19798 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19799 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19800done 19801LIBOBJS=$ac_libobjs 19802 19803LTLIBOBJS=$ac_ltlibobjs 19804 19805 19806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19807$as_echo_n "checking that generated files are newer than configure... " >&6; } 19808 if test -n "$am_sleep_pid"; then 19809 # Hide warnings about reused PIDs. 19810 wait $am_sleep_pid 2>/dev/null 19811 fi 19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19813$as_echo "done" >&6; } 19814 if test -n "$EXEEXT"; then 19815 am__EXEEXT_TRUE= 19816 am__EXEEXT_FALSE='#' 19817else 19818 am__EXEEXT_TRUE='#' 19819 am__EXEEXT_FALSE= 19820fi 19821 19822if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19823 as_fn_error $? "conditional \"AMDEP\" was never defined. 19824Usually this means the macro was only invoked conditionally." "$LINENO" 5 19825fi 19826if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19827 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19828Usually this means the macro was only invoked conditionally." "$LINENO" 5 19829fi 19830if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 19831 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 19832Usually this means the macro was only invoked conditionally." "$LINENO" 5 19833fi 19834if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19835 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19836Usually this means the macro was only invoked conditionally." "$LINENO" 5 19837fi 19838if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19839 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19840Usually this means the macro was only invoked conditionally." "$LINENO" 5 19841fi 19842if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19843 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19844Usually this means the macro was only invoked conditionally." "$LINENO" 5 19845fi 19846if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19847 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19848Usually this means the macro was only invoked conditionally." "$LINENO" 5 19849fi 19850if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then 19851 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined. 19852Usually this means the macro was only invoked conditionally." "$LINENO" 5 19853fi 19854if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then 19855 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined. 19856Usually this means the macro was only invoked conditionally." "$LINENO" 5 19857fi 19858if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then 19859 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined. 19860Usually this means the macro was only invoked conditionally." "$LINENO" 5 19861fi 19862if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then 19863 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined. 19864Usually this means the macro was only invoked conditionally." "$LINENO" 5 19865fi 19866if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then 19867 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined. 19868Usually this means the macro was only invoked conditionally." "$LINENO" 5 19869fi 19870if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then 19871 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined. 19872Usually this means the macro was only invoked conditionally." "$LINENO" 5 19873fi 19874if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then 19875 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined. 19876Usually this means the macro was only invoked conditionally." "$LINENO" 5 19877fi 19878if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then 19879 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined. 19880Usually this means the macro was only invoked conditionally." "$LINENO" 5 19881fi 19882if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then 19883 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined. 19884Usually this means the macro was only invoked conditionally." "$LINENO" 5 19885fi 19886if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then 19887 as_fn_error $? "conditional \"XFONT_FC\" was never defined. 19888Usually this means the macro was only invoked conditionally." "$LINENO" 5 19889fi 19890 19891: "${CONFIG_STATUS=./config.status}" 19892ac_write_fail=0 19893ac_clean_files_save=$ac_clean_files 19894ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19895{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19896$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19897as_write_fail=0 19898cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19899#! $SHELL 19900# Generated by $as_me. 19901# Run this file to recreate the current configuration. 19902# Compiler output produced by configure, useful for debugging 19903# configure, is in config.log if it exists. 19904 19905debug=false 19906ac_cs_recheck=false 19907ac_cs_silent=false 19908 19909SHELL=\${CONFIG_SHELL-$SHELL} 19910export SHELL 19911_ASEOF 19912cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19913## -------------------- ## 19914## M4sh Initialization. ## 19915## -------------------- ## 19916 19917# Be more Bourne compatible 19918DUALCASE=1; export DUALCASE # for MKS sh 19919if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19920 emulate sh 19921 NULLCMD=: 19922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19923 # is contrary to our usage. Disable this feature. 19924 alias -g '${1+"$@"}'='"$@"' 19925 setopt NO_GLOB_SUBST 19926else 19927 case `(set -o) 2>/dev/null` in #( 19928 *posix*) : 19929 set -o posix ;; #( 19930 *) : 19931 ;; 19932esac 19933fi 19934 19935 19936as_nl=' 19937' 19938export as_nl 19939# Printing a long string crashes Solaris 7 /usr/bin/printf. 19940as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19941as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19942as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19943# Prefer a ksh shell builtin over an external printf program on Solaris, 19944# but without wasting forks for bash or zsh. 19945if test -z "$BASH_VERSION$ZSH_VERSION" \ 19946 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19947 as_echo='print -r --' 19948 as_echo_n='print -rn --' 19949elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19950 as_echo='printf %s\n' 19951 as_echo_n='printf %s' 19952else 19953 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19954 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19955 as_echo_n='/usr/ucb/echo -n' 19956 else 19957 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19958 as_echo_n_body='eval 19959 arg=$1; 19960 case $arg in #( 19961 *"$as_nl"*) 19962 expr "X$arg" : "X\\(.*\\)$as_nl"; 19963 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19964 esac; 19965 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19966 ' 19967 export as_echo_n_body 19968 as_echo_n='sh -c $as_echo_n_body as_echo' 19969 fi 19970 export as_echo_body 19971 as_echo='sh -c $as_echo_body as_echo' 19972fi 19973 19974# The user is always right. 19975if test "${PATH_SEPARATOR+set}" != set; then 19976 PATH_SEPARATOR=: 19977 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19978 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19979 PATH_SEPARATOR=';' 19980 } 19981fi 19982 19983 19984# IFS 19985# We need space, tab and new line, in precisely that order. Quoting is 19986# there to prevent editors from complaining about space-tab. 19987# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19988# splitting by setting IFS to empty value.) 19989IFS=" "" $as_nl" 19990 19991# Find who we are. Look in the path if we contain no directory separator. 19992as_myself= 19993case $0 in #(( 19994 *[\\/]* ) as_myself=$0 ;; 19995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19996for as_dir in $PATH 19997do 19998 IFS=$as_save_IFS 19999 test -z "$as_dir" && as_dir=. 20000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20001 done 20002IFS=$as_save_IFS 20003 20004 ;; 20005esac 20006# We did not find ourselves, most probably we were run as `sh COMMAND' 20007# in which case we are not to be found in the path. 20008if test "x$as_myself" = x; then 20009 as_myself=$0 20010fi 20011if test ! -f "$as_myself"; then 20012 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20013 exit 1 20014fi 20015 20016# Unset variables that we do not need and which cause bugs (e.g. in 20017# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20018# suppresses any "Segmentation fault" message there. '((' could 20019# trigger a bug in pdksh 5.2.14. 20020for as_var in BASH_ENV ENV MAIL MAILPATH 20021do eval test x\${$as_var+set} = xset \ 20022 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20023done 20024PS1='$ ' 20025PS2='> ' 20026PS4='+ ' 20027 20028# NLS nuisances. 20029LC_ALL=C 20030export LC_ALL 20031LANGUAGE=C 20032export LANGUAGE 20033 20034# CDPATH. 20035(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20036 20037 20038# as_fn_error STATUS ERROR [LINENO LOG_FD] 20039# ---------------------------------------- 20040# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20041# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20042# script with STATUS, using 1 if that was 0. 20043as_fn_error () 20044{ 20045 as_status=$1; test $as_status -eq 0 && as_status=1 20046 if test "$4"; then 20047 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20048 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20049 fi 20050 $as_echo "$as_me: error: $2" >&2 20051 as_fn_exit $as_status 20052} # as_fn_error 20053 20054 20055# as_fn_set_status STATUS 20056# ----------------------- 20057# Set $? to STATUS, without forking. 20058as_fn_set_status () 20059{ 20060 return $1 20061} # as_fn_set_status 20062 20063# as_fn_exit STATUS 20064# ----------------- 20065# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20066as_fn_exit () 20067{ 20068 set +e 20069 as_fn_set_status $1 20070 exit $1 20071} # as_fn_exit 20072 20073# as_fn_unset VAR 20074# --------------- 20075# Portably unset VAR. 20076as_fn_unset () 20077{ 20078 { eval $1=; unset $1;} 20079} 20080as_unset=as_fn_unset 20081# as_fn_append VAR VALUE 20082# ---------------------- 20083# Append the text in VALUE to the end of the definition contained in VAR. Take 20084# advantage of any shell optimizations that allow amortized linear growth over 20085# repeated appends, instead of the typical quadratic growth present in naive 20086# implementations. 20087if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20088 eval 'as_fn_append () 20089 { 20090 eval $1+=\$2 20091 }' 20092else 20093 as_fn_append () 20094 { 20095 eval $1=\$$1\$2 20096 } 20097fi # as_fn_append 20098 20099# as_fn_arith ARG... 20100# ------------------ 20101# Perform arithmetic evaluation on the ARGs, and store the result in the 20102# global $as_val. Take advantage of shells that can avoid forks. The arguments 20103# must be portable across $(()) and expr. 20104if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20105 eval 'as_fn_arith () 20106 { 20107 as_val=$(( $* )) 20108 }' 20109else 20110 as_fn_arith () 20111 { 20112 as_val=`expr "$@" || test $? -eq 1` 20113 } 20114fi # as_fn_arith 20115 20116 20117if expr a : '\(a\)' >/dev/null 2>&1 && 20118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20119 as_expr=expr 20120else 20121 as_expr=false 20122fi 20123 20124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20125 as_basename=basename 20126else 20127 as_basename=false 20128fi 20129 20130if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20131 as_dirname=dirname 20132else 20133 as_dirname=false 20134fi 20135 20136as_me=`$as_basename -- "$0" || 20137$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20138 X"$0" : 'X\(//\)$' \| \ 20139 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20140$as_echo X/"$0" | 20141 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20142 s//\1/ 20143 q 20144 } 20145 /^X\/\(\/\/\)$/{ 20146 s//\1/ 20147 q 20148 } 20149 /^X\/\(\/\).*/{ 20150 s//\1/ 20151 q 20152 } 20153 s/.*/./; q'` 20154 20155# Avoid depending upon Character Ranges. 20156as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20157as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20158as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20159as_cr_digits='0123456789' 20160as_cr_alnum=$as_cr_Letters$as_cr_digits 20161 20162ECHO_C= ECHO_N= ECHO_T= 20163case `echo -n x` in #((((( 20164-n*) 20165 case `echo 'xy\c'` in 20166 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20167 xy) ECHO_C='\c';; 20168 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20169 ECHO_T=' ';; 20170 esac;; 20171*) 20172 ECHO_N='-n';; 20173esac 20174 20175rm -f conf$$ conf$$.exe conf$$.file 20176if test -d conf$$.dir; then 20177 rm -f conf$$.dir/conf$$.file 20178else 20179 rm -f conf$$.dir 20180 mkdir conf$$.dir 2>/dev/null 20181fi 20182if (echo >conf$$.file) 2>/dev/null; then 20183 if ln -s conf$$.file conf$$ 2>/dev/null; then 20184 as_ln_s='ln -s' 20185 # ... but there are two gotchas: 20186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20188 # In both cases, we have to default to `cp -pR'. 20189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20190 as_ln_s='cp -pR' 20191 elif ln conf$$.file conf$$ 2>/dev/null; then 20192 as_ln_s=ln 20193 else 20194 as_ln_s='cp -pR' 20195 fi 20196else 20197 as_ln_s='cp -pR' 20198fi 20199rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20200rmdir conf$$.dir 2>/dev/null 20201 20202 20203# as_fn_mkdir_p 20204# ------------- 20205# Create "$as_dir" as a directory, including parents if necessary. 20206as_fn_mkdir_p () 20207{ 20208 20209 case $as_dir in #( 20210 -*) as_dir=./$as_dir;; 20211 esac 20212 test -d "$as_dir" || eval $as_mkdir_p || { 20213 as_dirs= 20214 while :; do 20215 case $as_dir in #( 20216 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20217 *) as_qdir=$as_dir;; 20218 esac 20219 as_dirs="'$as_qdir' $as_dirs" 20220 as_dir=`$as_dirname -- "$as_dir" || 20221$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20222 X"$as_dir" : 'X\(//\)[^/]' \| \ 20223 X"$as_dir" : 'X\(//\)$' \| \ 20224 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20225$as_echo X"$as_dir" | 20226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20227 s//\1/ 20228 q 20229 } 20230 /^X\(\/\/\)[^/].*/{ 20231 s//\1/ 20232 q 20233 } 20234 /^X\(\/\/\)$/{ 20235 s//\1/ 20236 q 20237 } 20238 /^X\(\/\).*/{ 20239 s//\1/ 20240 q 20241 } 20242 s/.*/./; q'` 20243 test -d "$as_dir" && break 20244 done 20245 test -z "$as_dirs" || eval "mkdir $as_dirs" 20246 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20247 20248 20249} # as_fn_mkdir_p 20250if mkdir -p . 2>/dev/null; then 20251 as_mkdir_p='mkdir -p "$as_dir"' 20252else 20253 test -d ./-p && rmdir ./-p 20254 as_mkdir_p=false 20255fi 20256 20257 20258# as_fn_executable_p FILE 20259# ----------------------- 20260# Test if FILE is an executable regular file. 20261as_fn_executable_p () 20262{ 20263 test -f "$1" && test -x "$1" 20264} # as_fn_executable_p 20265as_test_x='test -x' 20266as_executable_p=as_fn_executable_p 20267 20268# Sed expression to map a string onto a valid CPP name. 20269as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20270 20271# Sed expression to map a string onto a valid variable name. 20272as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20273 20274 20275exec 6>&1 20276## ----------------------------------- ## 20277## Main body of $CONFIG_STATUS script. ## 20278## ----------------------------------- ## 20279_ASEOF 20280test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20281 20282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20283# Save the log message, to keep $0 and so on meaningful, and to 20284# report actual input values of CONFIG_FILES etc. instead of their 20285# values after options handling. 20286ac_log=" 20287This file was extended by libXfont2 $as_me 2.0.1, which was 20288generated by GNU Autoconf 2.69. Invocation command line was 20289 20290 CONFIG_FILES = $CONFIG_FILES 20291 CONFIG_HEADERS = $CONFIG_HEADERS 20292 CONFIG_LINKS = $CONFIG_LINKS 20293 CONFIG_COMMANDS = $CONFIG_COMMANDS 20294 $ $0 $@ 20295 20296on `(hostname || uname -n) 2>/dev/null | sed 1q` 20297" 20298 20299_ACEOF 20300 20301case $ac_config_files in *" 20302"*) set x $ac_config_files; shift; ac_config_files=$*;; 20303esac 20304 20305case $ac_config_headers in *" 20306"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20307esac 20308 20309 20310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20311# Files that config.status was made for. 20312config_files="$ac_config_files" 20313config_headers="$ac_config_headers" 20314config_commands="$ac_config_commands" 20315 20316_ACEOF 20317 20318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20319ac_cs_usage="\ 20320\`$as_me' instantiates files and other configuration actions 20321from templates according to the current configuration. Unless the files 20322and actions are specified as TAGs, all are instantiated by default. 20323 20324Usage: $0 [OPTION]... [TAG]... 20325 20326 -h, --help print this help, then exit 20327 -V, --version print version number and configuration settings, then exit 20328 --config print configuration, then exit 20329 -q, --quiet, --silent 20330 do not print progress messages 20331 -d, --debug don't remove temporary files 20332 --recheck update $as_me by reconfiguring in the same conditions 20333 --file=FILE[:TEMPLATE] 20334 instantiate the configuration file FILE 20335 --header=FILE[:TEMPLATE] 20336 instantiate the configuration header FILE 20337 20338Configuration files: 20339$config_files 20340 20341Configuration headers: 20342$config_headers 20343 20344Configuration commands: 20345$config_commands 20346 20347Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20348 20349_ACEOF 20350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20351ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20352ac_cs_version="\\ 20353libXfont2 config.status 2.0.1 20354configured by $0, generated by GNU Autoconf 2.69, 20355 with options \\"\$ac_cs_config\\" 20356 20357Copyright (C) 2012 Free Software Foundation, Inc. 20358This config.status script is free software; the Free Software Foundation 20359gives unlimited permission to copy, distribute and modify it." 20360 20361ac_pwd='$ac_pwd' 20362srcdir='$srcdir' 20363INSTALL='$INSTALL' 20364MKDIR_P='$MKDIR_P' 20365AWK='$AWK' 20366test -n "\$AWK" || AWK=awk 20367_ACEOF 20368 20369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20370# The default lists apply if the user does not specify any file. 20371ac_need_defaults=: 20372while test $# != 0 20373do 20374 case $1 in 20375 --*=?*) 20376 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20377 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20378 ac_shift=: 20379 ;; 20380 --*=) 20381 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20382 ac_optarg= 20383 ac_shift=: 20384 ;; 20385 *) 20386 ac_option=$1 20387 ac_optarg=$2 20388 ac_shift=shift 20389 ;; 20390 esac 20391 20392 case $ac_option in 20393 # Handling of the options. 20394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20395 ac_cs_recheck=: ;; 20396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20397 $as_echo "$ac_cs_version"; exit ;; 20398 --config | --confi | --conf | --con | --co | --c ) 20399 $as_echo "$ac_cs_config"; exit ;; 20400 --debug | --debu | --deb | --de | --d | -d ) 20401 debug=: ;; 20402 --file | --fil | --fi | --f ) 20403 $ac_shift 20404 case $ac_optarg in 20405 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20406 '') as_fn_error $? "missing file argument" ;; 20407 esac 20408 as_fn_append CONFIG_FILES " '$ac_optarg'" 20409 ac_need_defaults=false;; 20410 --header | --heade | --head | --hea ) 20411 $ac_shift 20412 case $ac_optarg in 20413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20414 esac 20415 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20416 ac_need_defaults=false;; 20417 --he | --h) 20418 # Conflict between --help and --header 20419 as_fn_error $? "ambiguous option: \`$1' 20420Try \`$0 --help' for more information.";; 20421 --help | --hel | -h ) 20422 $as_echo "$ac_cs_usage"; exit ;; 20423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20424 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20425 ac_cs_silent=: ;; 20426 20427 # This is an error. 20428 -*) as_fn_error $? "unrecognized option: \`$1' 20429Try \`$0 --help' for more information." ;; 20430 20431 *) as_fn_append ac_config_targets " $1" 20432 ac_need_defaults=false ;; 20433 20434 esac 20435 shift 20436done 20437 20438ac_configure_extra_args= 20439 20440if $ac_cs_silent; then 20441 exec 6>/dev/null 20442 ac_configure_extra_args="$ac_configure_extra_args --silent" 20443fi 20444 20445_ACEOF 20446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20447if \$ac_cs_recheck; then 20448 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20449 shift 20450 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20451 CONFIG_SHELL='$SHELL' 20452 export CONFIG_SHELL 20453 exec "\$@" 20454fi 20455 20456_ACEOF 20457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20458exec 5>>config.log 20459{ 20460 echo 20461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20462## Running $as_me. ## 20463_ASBOX 20464 $as_echo "$ac_log" 20465} >&5 20466 20467_ACEOF 20468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20469# 20470# INIT-COMMANDS 20471# 20472AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20473 20474 20475# The HP-UX ksh and POSIX shell print the target directory to stdout 20476# if CDPATH is set. 20477(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20478 20479sed_quote_subst='$sed_quote_subst' 20480double_quote_subst='$double_quote_subst' 20481delay_variable_subst='$delay_variable_subst' 20482macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20483macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20484enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20485enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20486pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20487enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20488SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20489ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20490PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20491host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20492host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20493host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20494build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20495build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20496build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20497SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20498Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20499GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20500EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20501FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20502LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20503NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20504LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20505max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20506ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20507exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20508lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20509lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20510lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20511lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20512lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20513reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20514reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20515OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20516deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20517file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20518file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20519want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20520DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20521sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20522AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20523AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20524archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20525STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20526RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20527old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20528old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20529old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20530lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20531CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20532CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20533compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20534GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20535lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20536lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20537lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20538lt_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"`' 20539nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20540lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20541objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20542MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20543lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20544lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20545lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20546lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20547lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20548need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20549MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20550DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20551NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20552LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20553OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20554OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20555libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20556shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20557extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20558archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20559enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20560export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20561whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20562compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20563old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20564old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20565archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20566archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20567module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20568module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20569with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20570allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20571no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20572hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20573hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20574hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20575hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20576hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20577hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20578hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20579inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20580link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20581always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20582export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20583exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20584include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20585prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20586postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20587file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20588variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20589need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20590need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20591version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20592runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20593shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20594shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20595libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20596library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20597soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20598install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20599postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20600postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20601finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20602finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20603hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20604sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20605sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20606hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20607enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20608enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20609enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20610old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20611striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20612 20613LTCC='$LTCC' 20614LTCFLAGS='$LTCFLAGS' 20615compiler='$compiler_DEFAULT' 20616 20617# A function that is used when there is no print builtin or printf. 20618func_fallback_echo () 20619{ 20620 eval 'cat <<_LTECHO_EOF 20621\$1 20622_LTECHO_EOF' 20623} 20624 20625# Quote evaled strings. 20626for var in SHELL \ 20627ECHO \ 20628PATH_SEPARATOR \ 20629SED \ 20630GREP \ 20631EGREP \ 20632FGREP \ 20633LD \ 20634NM \ 20635LN_S \ 20636lt_SP2NL \ 20637lt_NL2SP \ 20638reload_flag \ 20639OBJDUMP \ 20640deplibs_check_method \ 20641file_magic_cmd \ 20642file_magic_glob \ 20643want_nocaseglob \ 20644DLLTOOL \ 20645sharedlib_from_linklib_cmd \ 20646AR \ 20647AR_FLAGS \ 20648archiver_list_spec \ 20649STRIP \ 20650RANLIB \ 20651CC \ 20652CFLAGS \ 20653compiler \ 20654lt_cv_sys_global_symbol_pipe \ 20655lt_cv_sys_global_symbol_to_cdecl \ 20656lt_cv_sys_global_symbol_to_c_name_address \ 20657lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20658nm_file_list_spec \ 20659lt_prog_compiler_no_builtin_flag \ 20660lt_prog_compiler_pic \ 20661lt_prog_compiler_wl \ 20662lt_prog_compiler_static \ 20663lt_cv_prog_compiler_c_o \ 20664need_locks \ 20665MANIFEST_TOOL \ 20666DSYMUTIL \ 20667NMEDIT \ 20668LIPO \ 20669OTOOL \ 20670OTOOL64 \ 20671shrext_cmds \ 20672export_dynamic_flag_spec \ 20673whole_archive_flag_spec \ 20674compiler_needs_object \ 20675with_gnu_ld \ 20676allow_undefined_flag \ 20677no_undefined_flag \ 20678hardcode_libdir_flag_spec \ 20679hardcode_libdir_separator \ 20680exclude_expsyms \ 20681include_expsyms \ 20682file_list_spec \ 20683variables_saved_for_relink \ 20684libname_spec \ 20685library_names_spec \ 20686soname_spec \ 20687install_override_mode \ 20688finish_eval \ 20689old_striplib \ 20690striplib; do 20691 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20692 *[\\\\\\\`\\"\\\$]*) 20693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20694 ;; 20695 *) 20696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20697 ;; 20698 esac 20699done 20700 20701# Double-quote double-evaled strings. 20702for var in reload_cmds \ 20703old_postinstall_cmds \ 20704old_postuninstall_cmds \ 20705old_archive_cmds \ 20706extract_expsyms_cmds \ 20707old_archive_from_new_cmds \ 20708old_archive_from_expsyms_cmds \ 20709archive_cmds \ 20710archive_expsym_cmds \ 20711module_cmds \ 20712module_expsym_cmds \ 20713export_symbols_cmds \ 20714prelink_cmds \ 20715postlink_cmds \ 20716postinstall_cmds \ 20717postuninstall_cmds \ 20718finish_cmds \ 20719sys_lib_search_path_spec \ 20720sys_lib_dlsearch_path_spec; do 20721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20722 *[\\\\\\\`\\"\\\$]*) 20723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20724 ;; 20725 *) 20726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20727 ;; 20728 esac 20729done 20730 20731ac_aux_dir='$ac_aux_dir' 20732xsi_shell='$xsi_shell' 20733lt_shell_append='$lt_shell_append' 20734 20735# See if we are running on zsh, and set the options which allow our 20736# commands through without removal of \ escapes INIT. 20737if test -n "\${ZSH_VERSION+set}" ; then 20738 setopt NO_GLOB_SUBST 20739fi 20740 20741 20742 PACKAGE='$PACKAGE' 20743 VERSION='$VERSION' 20744 TIMESTAMP='$TIMESTAMP' 20745 RM='$RM' 20746 ofile='$ofile' 20747 20748 20749 20750 20751_ACEOF 20752 20753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20754 20755# Handling of arguments. 20756for ac_config_target in $ac_config_targets 20757do 20758 case $ac_config_target in 20759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20763 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20764 "xfont2.pc") CONFIG_FILES="$CONFIG_FILES xfont2.pc" ;; 20765 20766 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20767 esac 20768done 20769 20770 20771# If the user did not use the arguments to specify the items to instantiate, 20772# then the envvar interface is used. Set only those that are not. 20773# We use the long form for the default assignment because of an extremely 20774# bizarre bug on SunOS 4.1.3. 20775if $ac_need_defaults; then 20776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20779fi 20780 20781# Have a temporary directory for convenience. Make it in the build tree 20782# simply because there is no reason against having it here, and in addition, 20783# creating and moving files from /tmp can sometimes cause problems. 20784# Hook for its removal unless debugging. 20785# Note that there is a small window in which the directory will not be cleaned: 20786# after its creation but before its name has been assigned to `$tmp'. 20787$debug || 20788{ 20789 tmp= ac_tmp= 20790 trap 'exit_status=$? 20791 : "${ac_tmp:=$tmp}" 20792 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20793' 0 20794 trap 'as_fn_exit 1' 1 2 13 15 20795} 20796# Create a (secure) tmp directory for tmp files. 20797 20798{ 20799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20800 test -d "$tmp" 20801} || 20802{ 20803 tmp=./conf$$-$RANDOM 20804 (umask 077 && mkdir "$tmp") 20805} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20806ac_tmp=$tmp 20807 20808# Set up the scripts for CONFIG_FILES section. 20809# No need to generate them if there are no CONFIG_FILES. 20810# This happens for instance with `./config.status config.h'. 20811if test -n "$CONFIG_FILES"; then 20812 20813 20814ac_cr=`echo X | tr X '\015'` 20815# On cygwin, bash can eat \r inside `` if the user requested igncr. 20816# But we know of no other shell where ac_cr would be empty at this 20817# point, so we can use a bashism as a fallback. 20818if test "x$ac_cr" = x; then 20819 eval ac_cr=\$\'\\r\' 20820fi 20821ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20822if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20823 ac_cs_awk_cr='\\r' 20824else 20825 ac_cs_awk_cr=$ac_cr 20826fi 20827 20828echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20829_ACEOF 20830 20831 20832{ 20833 echo "cat >conf$$subs.awk <<_ACEOF" && 20834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20835 echo "_ACEOF" 20836} >conf$$subs.sh || 20837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20838ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20839ac_delim='%!_!# ' 20840for ac_last_try in false false false false false :; do 20841 . ./conf$$subs.sh || 20842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20843 20844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20845 if test $ac_delim_n = $ac_delim_num; then 20846 break 20847 elif $ac_last_try; then 20848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20849 else 20850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20851 fi 20852done 20853rm -f conf$$subs.sh 20854 20855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20856cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20857_ACEOF 20858sed -n ' 20859h 20860s/^/S["/; s/!.*/"]=/ 20861p 20862g 20863s/^[^!]*!// 20864:repl 20865t repl 20866s/'"$ac_delim"'$// 20867t delim 20868:nl 20869h 20870s/\(.\{148\}\)..*/\1/ 20871t more1 20872s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20873p 20874n 20875b repl 20876:more1 20877s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20878p 20879g 20880s/.\{148\}// 20881t nl 20882:delim 20883h 20884s/\(.\{148\}\)..*/\1/ 20885t more2 20886s/["\\]/\\&/g; s/^/"/; s/$/"/ 20887p 20888b 20889:more2 20890s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20891p 20892g 20893s/.\{148\}// 20894t delim 20895' <conf$$subs.awk | sed ' 20896/^[^""]/{ 20897 N 20898 s/\n// 20899} 20900' >>$CONFIG_STATUS || ac_write_fail=1 20901rm -f conf$$subs.awk 20902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20903_ACAWK 20904cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20905 for (key in S) S_is_set[key] = 1 20906 FS = "" 20907 20908} 20909{ 20910 line = $ 0 20911 nfields = split(line, field, "@") 20912 substed = 0 20913 len = length(field[1]) 20914 for (i = 2; i < nfields; i++) { 20915 key = field[i] 20916 keylen = length(key) 20917 if (S_is_set[key]) { 20918 value = S[key] 20919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20920 len += length(value) + length(field[++i]) 20921 substed = 1 20922 } else 20923 len += 1 + keylen 20924 } 20925 20926 print line 20927} 20928 20929_ACAWK 20930_ACEOF 20931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20932if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20933 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20934else 20935 cat 20936fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20937 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20938_ACEOF 20939 20940# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20941# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20942# trailing colons and then remove the whole line if VPATH becomes empty 20943# (actually we leave an empty line to preserve line numbers). 20944if test "x$srcdir" = x.; then 20945 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20946h 20947s/// 20948s/^/:/ 20949s/[ ]*$/:/ 20950s/:\$(srcdir):/:/g 20951s/:\${srcdir}:/:/g 20952s/:@srcdir@:/:/g 20953s/^:*// 20954s/:*$// 20955x 20956s/\(=[ ]*\).*/\1/ 20957G 20958s/\n// 20959s/^[^=]*=[ ]*$// 20960}' 20961fi 20962 20963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20964fi # test -n "$CONFIG_FILES" 20965 20966# Set up the scripts for CONFIG_HEADERS section. 20967# No need to generate them if there are no CONFIG_HEADERS. 20968# This happens for instance with `./config.status Makefile'. 20969if test -n "$CONFIG_HEADERS"; then 20970cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20971BEGIN { 20972_ACEOF 20973 20974# Transform confdefs.h into an awk script `defines.awk', embedded as 20975# here-document in config.status, that substitutes the proper values into 20976# config.h.in to produce config.h. 20977 20978# Create a delimiter string that does not exist in confdefs.h, to ease 20979# handling of long lines. 20980ac_delim='%!_!# ' 20981for ac_last_try in false false :; do 20982 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20983 if test -z "$ac_tt"; then 20984 break 20985 elif $ac_last_try; then 20986 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20987 else 20988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20989 fi 20990done 20991 20992# For the awk script, D is an array of macro values keyed by name, 20993# likewise P contains macro parameters if any. Preserve backslash 20994# newline sequences. 20995 20996ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20997sed -n ' 20998s/.\{148\}/&'"$ac_delim"'/g 20999t rset 21000:rset 21001s/^[ ]*#[ ]*define[ ][ ]*/ / 21002t def 21003d 21004:def 21005s/\\$// 21006t bsnl 21007s/["\\]/\\&/g 21008s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21009D["\1"]=" \3"/p 21010s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21011d 21012:bsnl 21013s/["\\]/\\&/g 21014s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21015D["\1"]=" \3\\\\\\n"\\/p 21016t cont 21017s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21018t cont 21019d 21020:cont 21021n 21022s/.\{148\}/&'"$ac_delim"'/g 21023t clear 21024:clear 21025s/\\$// 21026t bsnlc 21027s/["\\]/\\&/g; s/^/"/; s/$/"/p 21028d 21029:bsnlc 21030s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21031b cont 21032' <confdefs.h | sed ' 21033s/'"$ac_delim"'/"\\\ 21034"/g' >>$CONFIG_STATUS || ac_write_fail=1 21035 21036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21037 for (key in D) D_is_set[key] = 1 21038 FS = "" 21039} 21040/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21041 line = \$ 0 21042 split(line, arg, " ") 21043 if (arg[1] == "#") { 21044 defundef = arg[2] 21045 mac1 = arg[3] 21046 } else { 21047 defundef = substr(arg[1], 2) 21048 mac1 = arg[2] 21049 } 21050 split(mac1, mac2, "(") #) 21051 macro = mac2[1] 21052 prefix = substr(line, 1, index(line, defundef) - 1) 21053 if (D_is_set[macro]) { 21054 # Preserve the white space surrounding the "#". 21055 print prefix "define", macro P[macro] D[macro] 21056 next 21057 } else { 21058 # Replace #undef with comments. This is necessary, for example, 21059 # in the case of _POSIX_SOURCE, which is predefined and required 21060 # on some systems where configure will not decide to define it. 21061 if (defundef == "undef") { 21062 print "/*", prefix defundef, macro, "*/" 21063 next 21064 } 21065 } 21066} 21067{ print } 21068_ACAWK 21069_ACEOF 21070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21071 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21072fi # test -n "$CONFIG_HEADERS" 21073 21074 21075eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21076shift 21077for ac_tag 21078do 21079 case $ac_tag in 21080 :[FHLC]) ac_mode=$ac_tag; continue;; 21081 esac 21082 case $ac_mode$ac_tag in 21083 :[FHL]*:*);; 21084 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21085 :[FH]-) ac_tag=-:-;; 21086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21087 esac 21088 ac_save_IFS=$IFS 21089 IFS=: 21090 set x $ac_tag 21091 IFS=$ac_save_IFS 21092 shift 21093 ac_file=$1 21094 shift 21095 21096 case $ac_mode in 21097 :L) ac_source=$1;; 21098 :[FH]) 21099 ac_file_inputs= 21100 for ac_f 21101 do 21102 case $ac_f in 21103 -) ac_f="$ac_tmp/stdin";; 21104 *) # Look for the file first in the build tree, then in the source tree 21105 # (if the path is not absolute). The absolute path cannot be DOS-style, 21106 # because $ac_f cannot contain `:'. 21107 test -f "$ac_f" || 21108 case $ac_f in 21109 [\\/$]*) false;; 21110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21111 esac || 21112 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21113 esac 21114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21115 as_fn_append ac_file_inputs " '$ac_f'" 21116 done 21117 21118 # Let's still pretend it is `configure' which instantiates (i.e., don't 21119 # use $as_me), people would be surprised to read: 21120 # /* config.h. Generated by config.status. */ 21121 configure_input='Generated from '` 21122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21123 `' by configure.' 21124 if test x"$ac_file" != x-; then 21125 configure_input="$ac_file. $configure_input" 21126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21127$as_echo "$as_me: creating $ac_file" >&6;} 21128 fi 21129 # Neutralize special characters interpreted by sed in replacement strings. 21130 case $configure_input in #( 21131 *\&* | *\|* | *\\* ) 21132 ac_sed_conf_input=`$as_echo "$configure_input" | 21133 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21134 *) ac_sed_conf_input=$configure_input;; 21135 esac 21136 21137 case $ac_tag in 21138 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21140 esac 21141 ;; 21142 esac 21143 21144 ac_dir=`$as_dirname -- "$ac_file" || 21145$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21146 X"$ac_file" : 'X\(//\)[^/]' \| \ 21147 X"$ac_file" : 'X\(//\)$' \| \ 21148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21149$as_echo X"$ac_file" | 21150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21151 s//\1/ 21152 q 21153 } 21154 /^X\(\/\/\)[^/].*/{ 21155 s//\1/ 21156 q 21157 } 21158 /^X\(\/\/\)$/{ 21159 s//\1/ 21160 q 21161 } 21162 /^X\(\/\).*/{ 21163 s//\1/ 21164 q 21165 } 21166 s/.*/./; q'` 21167 as_dir="$ac_dir"; as_fn_mkdir_p 21168 ac_builddir=. 21169 21170case "$ac_dir" in 21171.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21172*) 21173 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21174 # A ".." for each directory in $ac_dir_suffix. 21175 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21176 case $ac_top_builddir_sub in 21177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21179 esac ;; 21180esac 21181ac_abs_top_builddir=$ac_pwd 21182ac_abs_builddir=$ac_pwd$ac_dir_suffix 21183# for backward compatibility: 21184ac_top_builddir=$ac_top_build_prefix 21185 21186case $srcdir in 21187 .) # We are building in place. 21188 ac_srcdir=. 21189 ac_top_srcdir=$ac_top_builddir_sub 21190 ac_abs_top_srcdir=$ac_pwd ;; 21191 [\\/]* | ?:[\\/]* ) # Absolute name. 21192 ac_srcdir=$srcdir$ac_dir_suffix; 21193 ac_top_srcdir=$srcdir 21194 ac_abs_top_srcdir=$srcdir ;; 21195 *) # Relative name. 21196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21197 ac_top_srcdir=$ac_top_build_prefix$srcdir 21198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21199esac 21200ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21201 21202 21203 case $ac_mode in 21204 :F) 21205 # 21206 # CONFIG_FILE 21207 # 21208 21209 case $INSTALL in 21210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21211 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21212 esac 21213 ac_MKDIR_P=$MKDIR_P 21214 case $MKDIR_P in 21215 [\\/$]* | ?:[\\/]* ) ;; 21216 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21217 esac 21218_ACEOF 21219 21220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21221# If the template does not know about datarootdir, expand it. 21222# FIXME: This hack should be removed a few years after 2.60. 21223ac_datarootdir_hack=; ac_datarootdir_seen= 21224ac_sed_dataroot=' 21225/datarootdir/ { 21226 p 21227 q 21228} 21229/@datadir@/p 21230/@docdir@/p 21231/@infodir@/p 21232/@localedir@/p 21233/@mandir@/p' 21234case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21235*datarootdir*) ac_datarootdir_seen=yes;; 21236*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21238$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21239_ACEOF 21240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21241 ac_datarootdir_hack=' 21242 s&@datadir@&$datadir&g 21243 s&@docdir@&$docdir&g 21244 s&@infodir@&$infodir&g 21245 s&@localedir@&$localedir&g 21246 s&@mandir@&$mandir&g 21247 s&\\\${datarootdir}&$datarootdir&g' ;; 21248esac 21249_ACEOF 21250 21251# Neutralize VPATH when `$srcdir' = `.'. 21252# Shell code in configure.ac might set extrasub. 21253# FIXME: do we really want to maintain this feature? 21254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21255ac_sed_extra="$ac_vpsub 21256$extrasub 21257_ACEOF 21258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21259:t 21260/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21261s|@configure_input@|$ac_sed_conf_input|;t t 21262s&@top_builddir@&$ac_top_builddir_sub&;t t 21263s&@top_build_prefix@&$ac_top_build_prefix&;t t 21264s&@srcdir@&$ac_srcdir&;t t 21265s&@abs_srcdir@&$ac_abs_srcdir&;t t 21266s&@top_srcdir@&$ac_top_srcdir&;t t 21267s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21268s&@builddir@&$ac_builddir&;t t 21269s&@abs_builddir@&$ac_abs_builddir&;t t 21270s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21271s&@INSTALL@&$ac_INSTALL&;t t 21272s&@MKDIR_P@&$ac_MKDIR_P&;t t 21273$ac_datarootdir_hack 21274" 21275eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21277 21278test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21281 "$ac_tmp/out"`; test -z "$ac_out"; } && 21282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21283which seems to be undefined. Please make sure it is defined" >&5 21284$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21285which seems to be undefined. Please make sure it is defined" >&2;} 21286 21287 rm -f "$ac_tmp/stdin" 21288 case $ac_file in 21289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21291 esac \ 21292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21293 ;; 21294 :H) 21295 # 21296 # CONFIG_HEADER 21297 # 21298 if test x"$ac_file" != x-; then 21299 { 21300 $as_echo "/* $configure_input */" \ 21301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21302 } >"$ac_tmp/config.h" \ 21303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21306$as_echo "$as_me: $ac_file is unchanged" >&6;} 21307 else 21308 rm -f "$ac_file" 21309 mv "$ac_tmp/config.h" "$ac_file" \ 21310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21311 fi 21312 else 21313 $as_echo "/* $configure_input */" \ 21314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21315 || as_fn_error $? "could not create -" "$LINENO" 5 21316 fi 21317# Compute "$ac_file"'s index in $config_headers. 21318_am_arg="$ac_file" 21319_am_stamp_count=1 21320for _am_header in $config_headers :; do 21321 case $_am_header in 21322 $_am_arg | $_am_arg:* ) 21323 break ;; 21324 * ) 21325 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21326 esac 21327done 21328echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21329$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21330 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21331 X"$_am_arg" : 'X\(//\)$' \| \ 21332 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21333$as_echo X"$_am_arg" | 21334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21335 s//\1/ 21336 q 21337 } 21338 /^X\(\/\/\)[^/].*/{ 21339 s//\1/ 21340 q 21341 } 21342 /^X\(\/\/\)$/{ 21343 s//\1/ 21344 q 21345 } 21346 /^X\(\/\).*/{ 21347 s//\1/ 21348 q 21349 } 21350 s/.*/./; q'`/stamp-h$_am_stamp_count 21351 ;; 21352 21353 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21354$as_echo "$as_me: executing $ac_file commands" >&6;} 21355 ;; 21356 esac 21357 21358 21359 case $ac_file$ac_mode in 21360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21361 # Older Autoconf quotes --file arguments for eval, but not when files 21362 # are listed without --file. Let's play safe and only enable the eval 21363 # if we detect the quoting. 21364 case $CONFIG_FILES in 21365 *\'*) eval set x "$CONFIG_FILES" ;; 21366 *) set x $CONFIG_FILES ;; 21367 esac 21368 shift 21369 for mf 21370 do 21371 # Strip MF so we end up with the name of the file. 21372 mf=`echo "$mf" | sed -e 's/:.*$//'` 21373 # Check whether this is an Automake generated Makefile or not. 21374 # We used to match only the files named 'Makefile.in', but 21375 # some people rename them; so instead we look at the file content. 21376 # Grep'ing the first line is not enough: some people post-process 21377 # each Makefile.in and add a new line on top of each file to say so. 21378 # Grep'ing the whole file is not good either: AIX grep has a line 21379 # limit of 2048, but all sed's we know have understand at least 4000. 21380 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21381 dirpart=`$as_dirname -- "$mf" || 21382$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21383 X"$mf" : 'X\(//\)[^/]' \| \ 21384 X"$mf" : 'X\(//\)$' \| \ 21385 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21386$as_echo X"$mf" | 21387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21388 s//\1/ 21389 q 21390 } 21391 /^X\(\/\/\)[^/].*/{ 21392 s//\1/ 21393 q 21394 } 21395 /^X\(\/\/\)$/{ 21396 s//\1/ 21397 q 21398 } 21399 /^X\(\/\).*/{ 21400 s//\1/ 21401 q 21402 } 21403 s/.*/./; q'` 21404 else 21405 continue 21406 fi 21407 # Extract the definition of DEPDIR, am__include, and am__quote 21408 # from the Makefile without running 'make'. 21409 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21410 test -z "$DEPDIR" && continue 21411 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21412 test -z "$am__include" && continue 21413 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21414 # Find all dependency output files, they are included files with 21415 # $(DEPDIR) in their names. We invoke sed twice because it is the 21416 # simplest approach to changing $(DEPDIR) to its actual value in the 21417 # expansion. 21418 for file in `sed -n " 21419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21421 # Make sure the directory exists. 21422 test -f "$dirpart/$file" && continue 21423 fdir=`$as_dirname -- "$file" || 21424$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21425 X"$file" : 'X\(//\)[^/]' \| \ 21426 X"$file" : 'X\(//\)$' \| \ 21427 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21428$as_echo X"$file" | 21429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21430 s//\1/ 21431 q 21432 } 21433 /^X\(\/\/\)[^/].*/{ 21434 s//\1/ 21435 q 21436 } 21437 /^X\(\/\/\)$/{ 21438 s//\1/ 21439 q 21440 } 21441 /^X\(\/\).*/{ 21442 s//\1/ 21443 q 21444 } 21445 s/.*/./; q'` 21446 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21447 # echo "creating $dirpart/$file" 21448 echo '# dummy' > "$dirpart/$file" 21449 done 21450 done 21451} 21452 ;; 21453 "libtool":C) 21454 21455 # See if we are running on zsh, and set the options which allow our 21456 # commands through without removal of \ escapes. 21457 if test -n "${ZSH_VERSION+set}" ; then 21458 setopt NO_GLOB_SUBST 21459 fi 21460 21461 cfgfile="${ofile}T" 21462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21463 $RM "$cfgfile" 21464 21465 cat <<_LT_EOF >> "$cfgfile" 21466#! $SHELL 21467 21468# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21469# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21470# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21471# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21472# 21473# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21474# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21475# Foundation, Inc. 21476# Written by Gordon Matzigkeit, 1996 21477# 21478# This file is part of GNU Libtool. 21479# 21480# GNU Libtool is free software; you can redistribute it and/or 21481# modify it under the terms of the GNU General Public License as 21482# published by the Free Software Foundation; either version 2 of 21483# the License, or (at your option) any later version. 21484# 21485# As a special exception to the GNU General Public License, 21486# if you distribute this file as part of a program or library that 21487# is built using GNU Libtool, you may include this file under the 21488# same distribution terms that you use for the rest of that program. 21489# 21490# GNU Libtool is distributed in the hope that it will be useful, 21491# but WITHOUT ANY WARRANTY; without even the implied warranty of 21492# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21493# GNU General Public License for more details. 21494# 21495# You should have received a copy of the GNU General Public License 21496# along with GNU Libtool; see the file COPYING. If not, a copy 21497# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21498# obtained by writing to the Free Software Foundation, Inc., 21499# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21500 21501 21502# The names of the tagged configurations supported by this script. 21503available_tags="" 21504 21505# ### BEGIN LIBTOOL CONFIG 21506 21507# Which release of libtool.m4 was used? 21508macro_version=$macro_version 21509macro_revision=$macro_revision 21510 21511# Whether or not to build shared libraries. 21512build_libtool_libs=$enable_shared 21513 21514# Whether or not to build static libraries. 21515build_old_libs=$enable_static 21516 21517# What type of objects to build. 21518pic_mode=$pic_mode 21519 21520# Whether or not to optimize for fast installation. 21521fast_install=$enable_fast_install 21522 21523# Shell to use when invoking shell scripts. 21524SHELL=$lt_SHELL 21525 21526# An echo program that protects backslashes. 21527ECHO=$lt_ECHO 21528 21529# The PATH separator for the build system. 21530PATH_SEPARATOR=$lt_PATH_SEPARATOR 21531 21532# The host system. 21533host_alias=$host_alias 21534host=$host 21535host_os=$host_os 21536 21537# The build system. 21538build_alias=$build_alias 21539build=$build 21540build_os=$build_os 21541 21542# A sed program that does not truncate output. 21543SED=$lt_SED 21544 21545# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21546Xsed="\$SED -e 1s/^X//" 21547 21548# A grep program that handles long lines. 21549GREP=$lt_GREP 21550 21551# An ERE matcher. 21552EGREP=$lt_EGREP 21553 21554# A literal string matcher. 21555FGREP=$lt_FGREP 21556 21557# A BSD- or MS-compatible name lister. 21558NM=$lt_NM 21559 21560# Whether we need soft or hard links. 21561LN_S=$lt_LN_S 21562 21563# What is the maximum length of a command? 21564max_cmd_len=$max_cmd_len 21565 21566# Object file suffix (normally "o"). 21567objext=$ac_objext 21568 21569# Executable file suffix (normally ""). 21570exeext=$exeext 21571 21572# whether the shell understands "unset". 21573lt_unset=$lt_unset 21574 21575# turn spaces into newlines. 21576SP2NL=$lt_lt_SP2NL 21577 21578# turn newlines into spaces. 21579NL2SP=$lt_lt_NL2SP 21580 21581# convert \$build file names to \$host format. 21582to_host_file_cmd=$lt_cv_to_host_file_cmd 21583 21584# convert \$build files to toolchain format. 21585to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21586 21587# An object symbol dumper. 21588OBJDUMP=$lt_OBJDUMP 21589 21590# Method to check whether dependent libraries are shared objects. 21591deplibs_check_method=$lt_deplibs_check_method 21592 21593# Command to use when deplibs_check_method = "file_magic". 21594file_magic_cmd=$lt_file_magic_cmd 21595 21596# How to find potential files when deplibs_check_method = "file_magic". 21597file_magic_glob=$lt_file_magic_glob 21598 21599# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21600want_nocaseglob=$lt_want_nocaseglob 21601 21602# DLL creation program. 21603DLLTOOL=$lt_DLLTOOL 21604 21605# Command to associate shared and link libraries. 21606sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21607 21608# The archiver. 21609AR=$lt_AR 21610 21611# Flags to create an archive. 21612AR_FLAGS=$lt_AR_FLAGS 21613 21614# How to feed a file listing to the archiver. 21615archiver_list_spec=$lt_archiver_list_spec 21616 21617# A symbol stripping program. 21618STRIP=$lt_STRIP 21619 21620# Commands used to install an old-style archive. 21621RANLIB=$lt_RANLIB 21622old_postinstall_cmds=$lt_old_postinstall_cmds 21623old_postuninstall_cmds=$lt_old_postuninstall_cmds 21624 21625# Whether to use a lock for old archive extraction. 21626lock_old_archive_extraction=$lock_old_archive_extraction 21627 21628# A C compiler. 21629LTCC=$lt_CC 21630 21631# LTCC compiler flags. 21632LTCFLAGS=$lt_CFLAGS 21633 21634# Take the output of nm and produce a listing of raw symbols and C names. 21635global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21636 21637# Transform the output of nm in a proper C declaration. 21638global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21639 21640# Transform the output of nm in a C name address pair. 21641global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21642 21643# Transform the output of nm in a C name address pair when lib prefix is needed. 21644global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21645 21646# Specify filename containing input files for \$NM. 21647nm_file_list_spec=$lt_nm_file_list_spec 21648 21649# The root where to search for dependent libraries,and in which our libraries should be installed. 21650lt_sysroot=$lt_sysroot 21651 21652# The name of the directory that contains temporary libtool files. 21653objdir=$objdir 21654 21655# Used to examine libraries when file_magic_cmd begins with "file". 21656MAGIC_CMD=$MAGIC_CMD 21657 21658# Must we lock files when doing compilation? 21659need_locks=$lt_need_locks 21660 21661# Manifest tool. 21662MANIFEST_TOOL=$lt_MANIFEST_TOOL 21663 21664# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21665DSYMUTIL=$lt_DSYMUTIL 21666 21667# Tool to change global to local symbols on Mac OS X. 21668NMEDIT=$lt_NMEDIT 21669 21670# Tool to manipulate fat objects and archives on Mac OS X. 21671LIPO=$lt_LIPO 21672 21673# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21674OTOOL=$lt_OTOOL 21675 21676# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21677OTOOL64=$lt_OTOOL64 21678 21679# Old archive suffix (normally "a"). 21680libext=$libext 21681 21682# Shared library suffix (normally ".so"). 21683shrext_cmds=$lt_shrext_cmds 21684 21685# The commands to extract the exported symbol list from a shared archive. 21686extract_expsyms_cmds=$lt_extract_expsyms_cmds 21687 21688# Variables whose values should be saved in libtool wrapper scripts and 21689# restored at link time. 21690variables_saved_for_relink=$lt_variables_saved_for_relink 21691 21692# Do we need the "lib" prefix for modules? 21693need_lib_prefix=$need_lib_prefix 21694 21695# Do we need a version for libraries? 21696need_version=$need_version 21697 21698# Library versioning type. 21699version_type=$version_type 21700 21701# Shared library runtime path variable. 21702runpath_var=$runpath_var 21703 21704# Shared library path variable. 21705shlibpath_var=$shlibpath_var 21706 21707# Is shlibpath searched before the hard-coded library search path? 21708shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21709 21710# Format of library name prefix. 21711libname_spec=$lt_libname_spec 21712 21713# List of archive names. First name is the real one, the rest are links. 21714# The last name is the one that the linker finds with -lNAME 21715library_names_spec=$lt_library_names_spec 21716 21717# The coded name of the library, if different from the real name. 21718soname_spec=$lt_soname_spec 21719 21720# Permission mode override for installation of shared libraries. 21721install_override_mode=$lt_install_override_mode 21722 21723# Command to use after installation of a shared archive. 21724postinstall_cmds=$lt_postinstall_cmds 21725 21726# Command to use after uninstallation of a shared archive. 21727postuninstall_cmds=$lt_postuninstall_cmds 21728 21729# Commands used to finish a libtool library installation in a directory. 21730finish_cmds=$lt_finish_cmds 21731 21732# As "finish_cmds", except a single script fragment to be evaled but 21733# not shown. 21734finish_eval=$lt_finish_eval 21735 21736# Whether we should hardcode library paths into libraries. 21737hardcode_into_libs=$hardcode_into_libs 21738 21739# Compile-time system search path for libraries. 21740sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21741 21742# Run-time system search path for libraries. 21743sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21744 21745# Whether dlopen is supported. 21746dlopen_support=$enable_dlopen 21747 21748# Whether dlopen of programs is supported. 21749dlopen_self=$enable_dlopen_self 21750 21751# Whether dlopen of statically linked programs is supported. 21752dlopen_self_static=$enable_dlopen_self_static 21753 21754# Commands to strip libraries. 21755old_striplib=$lt_old_striplib 21756striplib=$lt_striplib 21757 21758 21759# The linker used to build libraries. 21760LD=$lt_LD 21761 21762# How to create reloadable object files. 21763reload_flag=$lt_reload_flag 21764reload_cmds=$lt_reload_cmds 21765 21766# Commands used to build an old-style archive. 21767old_archive_cmds=$lt_old_archive_cmds 21768 21769# A language specific compiler. 21770CC=$lt_compiler 21771 21772# Is the compiler the GNU compiler? 21773with_gcc=$GCC 21774 21775# Compiler flag to turn off builtin functions. 21776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21777 21778# Additional compiler flags for building library objects. 21779pic_flag=$lt_lt_prog_compiler_pic 21780 21781# How to pass a linker flag through the compiler. 21782wl=$lt_lt_prog_compiler_wl 21783 21784# Compiler flag to prevent dynamic linking. 21785link_static_flag=$lt_lt_prog_compiler_static 21786 21787# Does compiler simultaneously support -c and -o options? 21788compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21789 21790# Whether or not to add -lc for building shared libraries. 21791build_libtool_need_lc=$archive_cmds_need_lc 21792 21793# Whether or not to disallow shared libs when runtime libs are static. 21794allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21795 21796# Compiler flag to allow reflexive dlopens. 21797export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21798 21799# Compiler flag to generate shared objects directly from archives. 21800whole_archive_flag_spec=$lt_whole_archive_flag_spec 21801 21802# Whether the compiler copes with passing no objects directly. 21803compiler_needs_object=$lt_compiler_needs_object 21804 21805# Create an old-style archive from a shared archive. 21806old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21807 21808# Create a temporary old-style archive to link instead of a shared archive. 21809old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21810 21811# Commands used to build a shared archive. 21812archive_cmds=$lt_archive_cmds 21813archive_expsym_cmds=$lt_archive_expsym_cmds 21814 21815# Commands used to build a loadable module if different from building 21816# a shared archive. 21817module_cmds=$lt_module_cmds 21818module_expsym_cmds=$lt_module_expsym_cmds 21819 21820# Whether we are building with GNU ld or not. 21821with_gnu_ld=$lt_with_gnu_ld 21822 21823# Flag that allows shared libraries with undefined symbols to be built. 21824allow_undefined_flag=$lt_allow_undefined_flag 21825 21826# Flag that enforces no undefined symbols. 21827no_undefined_flag=$lt_no_undefined_flag 21828 21829# Flag to hardcode \$libdir into a binary during linking. 21830# This must work even if \$libdir does not exist 21831hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21832 21833# Whether we need a single "-rpath" flag with a separated argument. 21834hardcode_libdir_separator=$lt_hardcode_libdir_separator 21835 21836# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21837# DIR into the resulting binary. 21838hardcode_direct=$hardcode_direct 21839 21840# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21841# DIR into the resulting binary and the resulting library dependency is 21842# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21843# library is relocated. 21844hardcode_direct_absolute=$hardcode_direct_absolute 21845 21846# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21847# into the resulting binary. 21848hardcode_minus_L=$hardcode_minus_L 21849 21850# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21851# into the resulting binary. 21852hardcode_shlibpath_var=$hardcode_shlibpath_var 21853 21854# Set to "yes" if building a shared library automatically hardcodes DIR 21855# into the library and all subsequent libraries and executables linked 21856# against it. 21857hardcode_automatic=$hardcode_automatic 21858 21859# Set to yes if linker adds runtime paths of dependent libraries 21860# to runtime path list. 21861inherit_rpath=$inherit_rpath 21862 21863# Whether libtool must link a program against all its dependency libraries. 21864link_all_deplibs=$link_all_deplibs 21865 21866# Set to "yes" if exported symbols are required. 21867always_export_symbols=$always_export_symbols 21868 21869# The commands to list exported symbols. 21870export_symbols_cmds=$lt_export_symbols_cmds 21871 21872# Symbols that should not be listed in the preloaded symbols. 21873exclude_expsyms=$lt_exclude_expsyms 21874 21875# Symbols that must always be exported. 21876include_expsyms=$lt_include_expsyms 21877 21878# Commands necessary for linking programs (against libraries) with templates. 21879prelink_cmds=$lt_prelink_cmds 21880 21881# Commands necessary for finishing linking programs. 21882postlink_cmds=$lt_postlink_cmds 21883 21884# Specify filename containing input files. 21885file_list_spec=$lt_file_list_spec 21886 21887# How to hardcode a shared library path into an executable. 21888hardcode_action=$hardcode_action 21889 21890# ### END LIBTOOL CONFIG 21891 21892_LT_EOF 21893 21894 case $host_os in 21895 aix3*) 21896 cat <<\_LT_EOF >> "$cfgfile" 21897# AIX sometimes has problems with the GCC collect2 program. For some 21898# reason, if we set the COLLECT_NAMES environment variable, the problems 21899# vanish in a puff of smoke. 21900if test "X${COLLECT_NAMES+set}" != Xset; then 21901 COLLECT_NAMES= 21902 export COLLECT_NAMES 21903fi 21904_LT_EOF 21905 ;; 21906 esac 21907 21908 21909ltmain="$ac_aux_dir/ltmain.sh" 21910 21911 21912 # We use sed instead of cat because bash on DJGPP gets confused if 21913 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21914 # text mode, it properly converts lines to CR/LF. This bash problem 21915 # is reportedly fixed, but why not run on old versions too? 21916 sed '$q' "$ltmain" >> "$cfgfile" \ 21917 || (rm -f "$cfgfile"; exit 1) 21918 21919 if test x"$xsi_shell" = xyes; then 21920 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21921func_dirname ()\ 21922{\ 21923\ case ${1} in\ 21924\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21925\ * ) func_dirname_result="${3}" ;;\ 21926\ esac\ 21927} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21928 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21930test 0 -eq $? || _lt_function_replace_fail=: 21931 21932 21933 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21934func_basename ()\ 21935{\ 21936\ func_basename_result="${1##*/}"\ 21937} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21938 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21940test 0 -eq $? || _lt_function_replace_fail=: 21941 21942 21943 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21944func_dirname_and_basename ()\ 21945{\ 21946\ case ${1} in\ 21947\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21948\ * ) func_dirname_result="${3}" ;;\ 21949\ esac\ 21950\ func_basename_result="${1##*/}"\ 21951} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21952 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21954test 0 -eq $? || _lt_function_replace_fail=: 21955 21956 21957 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21958func_stripname ()\ 21959{\ 21960\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21961\ # positional parameters, so assign one to ordinary parameter first.\ 21962\ func_stripname_result=${3}\ 21963\ func_stripname_result=${func_stripname_result#"${1}"}\ 21964\ func_stripname_result=${func_stripname_result%"${2}"}\ 21965} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21966 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21968test 0 -eq $? || _lt_function_replace_fail=: 21969 21970 21971 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21972func_split_long_opt ()\ 21973{\ 21974\ func_split_long_opt_name=${1%%=*}\ 21975\ func_split_long_opt_arg=${1#*=}\ 21976} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21977 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21979test 0 -eq $? || _lt_function_replace_fail=: 21980 21981 21982 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21983func_split_short_opt ()\ 21984{\ 21985\ func_split_short_opt_arg=${1#??}\ 21986\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21987} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21988 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21990test 0 -eq $? || _lt_function_replace_fail=: 21991 21992 21993 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21994func_lo2o ()\ 21995{\ 21996\ case ${1} in\ 21997\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21998\ *) func_lo2o_result=${1} ;;\ 21999\ esac\ 22000} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22001 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22003test 0 -eq $? || _lt_function_replace_fail=: 22004 22005 22006 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22007func_xform ()\ 22008{\ 22009 func_xform_result=${1%.*}.lo\ 22010} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22011 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22013test 0 -eq $? || _lt_function_replace_fail=: 22014 22015 22016 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22017func_arith ()\ 22018{\ 22019 func_arith_result=$(( $* ))\ 22020} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22021 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22023test 0 -eq $? || _lt_function_replace_fail=: 22024 22025 22026 sed -e '/^func_len ()$/,/^} # func_len /c\ 22027func_len ()\ 22028{\ 22029 func_len_result=${#1}\ 22030} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22031 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22033test 0 -eq $? || _lt_function_replace_fail=: 22034 22035fi 22036 22037if test x"$lt_shell_append" = xyes; then 22038 sed -e '/^func_append ()$/,/^} # func_append /c\ 22039func_append ()\ 22040{\ 22041 eval "${1}+=\\${2}"\ 22042} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22043 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22045test 0 -eq $? || _lt_function_replace_fail=: 22046 22047 22048 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22049func_append_quoted ()\ 22050{\ 22051\ func_quote_for_eval "${2}"\ 22052\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22053} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22054 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22056test 0 -eq $? || _lt_function_replace_fail=: 22057 22058 22059 # Save a `func_append' function call where possible by direct use of '+=' 22060 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22061 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22063 test 0 -eq $? || _lt_function_replace_fail=: 22064else 22065 # Save a `func_append' function call even when '+=' is not available 22066 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22067 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22069 test 0 -eq $? || _lt_function_replace_fail=: 22070fi 22071 22072if test x"$_lt_function_replace_fail" = x":"; then 22073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22074$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22075fi 22076 22077 22078 mv -f "$cfgfile" "$ofile" || 22079 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22080 chmod +x "$ofile" 22081 22082 ;; 22083 22084 esac 22085done # for ac_tag 22086 22087 22088as_fn_exit 0 22089_ACEOF 22090ac_clean_files=$ac_clean_files_save 22091 22092test $ac_write_fail = 0 || 22093 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22094 22095 22096# configure is writing to config.log, and then calls config.status. 22097# config.status does its own redirection, appending to config.log. 22098# Unfortunately, on DOS this fails, as config.log is still kept open 22099# by configure, so config.status won't be able to write to it; its 22100# output is simply discarded. So we exec the FD to /dev/null, 22101# effectively closing config.log, so it can be properly (re)opened and 22102# appended to by config.status. When coming back to configure, we 22103# need to make the FD available again. 22104if test "$no_create" != yes; then 22105 ac_cs_success=: 22106 ac_config_status_args= 22107 test "$silent" = yes && 22108 ac_config_status_args="$ac_config_status_args --quiet" 22109 exec 5>/dev/null 22110 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22111 exec 5>>config.log 22112 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22113 # would make configure fail if this is the last instruction. 22114 $ac_cs_success || as_fn_exit 1 22115fi 22116if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22118$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22119fi 22120 22121