configure revision 121a5469
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXfont 1.5.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='libXfont' 653PACKAGE_TARNAME='libXfont' 654PACKAGE_VERSION='1.5.1' 655PACKAGE_STRING='libXfont 1.5.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 730HAVE_STYLESHEETS_FALSE 731HAVE_STYLESHEETS_TRUE 732XSL_STYLESHEET 733STYLESHEET_SRCDIR 734XORG_SGML_PATH 735HAVE_FOP_FALSE 736HAVE_FOP_TRUE 737FOP 738HAVE_XMLTO_FALSE 739HAVE_XMLTO_TRUE 740HAVE_XMLTO_TEXT_FALSE 741HAVE_XMLTO_TEXT_TRUE 742XMLTO 743ENABLE_DEVEL_DOCS_FALSE 744ENABLE_DEVEL_DOCS_TRUE 745MAN_SUBSTS 746XORG_MAN_PAGE 747ADMIN_MAN_DIR 748DRIVER_MAN_DIR 749MISC_MAN_DIR 750FILE_MAN_DIR 751LIB_MAN_DIR 752APP_MAN_DIR 753ADMIN_MAN_SUFFIX 754DRIVER_MAN_SUFFIX 755MISC_MAN_SUFFIX 756FILE_MAN_SUFFIX 757LIB_MAN_SUFFIX 758APP_MAN_SUFFIX 759INSTALL_CMD 760PKG_CONFIG 761CHANGELOG_CMD 762STRICT_CFLAGS 763CWARNFLAGS 764BASE_CFLAGS 765OTOOL64 766OTOOL 767LIPO 768NMEDIT 769DSYMUTIL 770MANIFEST_TOOL 771RANLIB 772ac_ct_AR 773AR 774DLLTOOL 775OBJDUMP 776LN_S 777NM 778ac_ct_DUMPBIN 779DUMPBIN 780LD 781FGREP 782SED 783host_os 784host_vendor 785host_cpu 786host 787build_os 788build_vendor 789build_cpu 790build 791LIBTOOL 792EGREP 793GREP 794CPP 795am__fastdepCC_FALSE 796am__fastdepCC_TRUE 797CCDEPMODE 798am__nodep 799AMDEPBACKSLASH 800AMDEP_FALSE 801AMDEP_TRUE 802am__quote 803am__include 804DEPDIR 805OBJEXT 806EXEEXT 807ac_ct_CC 808CPPFLAGS 809LDFLAGS 810CFLAGS 811CC 812AM_BACKSLASH 813AM_DEFAULT_VERBOSITY 814AM_DEFAULT_V 815AM_V 816am__untar 817am__tar 818AMTAR 819am__leading_dot 820SET_MAKE 821AWK 822mkdir_p 823MKDIR_P 824INSTALL_STRIP_PROGRAM 825STRIP 826install_sh 827MAKEINFO 828AUTOHEADER 829AUTOMAKE 830AUTOCONF 831ACLOCAL 832VERSION 833PACKAGE 834CYGPATH_W 835am__isrc 836INSTALL_DATA 837INSTALL_SCRIPT 838INSTALL_PROGRAM 839target_alias 840host_alias 841build_alias 842LIBS 843ECHO_T 844ECHO_N 845ECHO_C 846DEFS 847mandir 848localedir 849libdir 850psdir 851pdfdir 852dvidir 853htmldir 854infodir 855docdir 856oldincludedir 857includedir 858localstatedir 859sharedstatedir 860sysconfdir 861datadir 862datarootdir 863libexecdir 864sbindir 865bindir 866program_transform_name 867prefix 868exec_prefix 869PACKAGE_URL 870PACKAGE_BUGREPORT 871PACKAGE_STRING 872PACKAGE_VERSION 873PACKAGE_TARNAME 874PACKAGE_NAME 875PATH_SEPARATOR 876SHELL' 877ac_subst_files='' 878ac_user_opts=' 879enable_option_checking 880enable_silent_rules 881enable_dependency_tracking 882enable_shared 883enable_static 884with_pic 885enable_fast_install 886with_gnu_ld 887with_sysroot 888enable_libtool_lock 889enable_selective_werror 890enable_strict_compilation 891enable_devel_docs 892with_xmlto 893with_fop 894enable_freetype 895with_freetype_config 896with_bzip2 897enable_builtins 898enable_pcfformat 899enable_bdfformat 900enable_snfformat 901enable_fc 902enable_unix_transport 903enable_tcp_transport 904enable_ipv6 905enable_local_transport 906' 907 ac_precious_vars='build_alias 908host_alias 909target_alias 910CC 911CFLAGS 912LDFLAGS 913LIBS 914CPPFLAGS 915CPP 916PKG_CONFIG 917XMLTO 918FOP 919FREETYPE_CFLAGS 920FREETYPE_LIBS 921XFONT_CFLAGS 922XFONT_LIBS' 923 924 925# Initialize some variables set by options. 926ac_init_help= 927ac_init_version=false 928ac_unrecognized_opts= 929ac_unrecognized_sep= 930# The variables have the same names as the options, with 931# dashes changed to underlines. 932cache_file=/dev/null 933exec_prefix=NONE 934no_create= 935no_recursion= 936prefix=NONE 937program_prefix=NONE 938program_suffix=NONE 939program_transform_name=s,x,x, 940silent= 941site= 942srcdir= 943verbose= 944x_includes=NONE 945x_libraries=NONE 946 947# Installation directory options. 948# These are left unexpanded so users can "make install exec_prefix=/foo" 949# and all the variables that are supposed to be based on exec_prefix 950# by default will actually change. 951# Use braces instead of parens because sh, perl, etc. also accept them. 952# (The list follows the same order as the GNU Coding Standards.) 953bindir='${exec_prefix}/bin' 954sbindir='${exec_prefix}/sbin' 955libexecdir='${exec_prefix}/libexec' 956datarootdir='${prefix}/share' 957datadir='${datarootdir}' 958sysconfdir='${prefix}/etc' 959sharedstatedir='${prefix}/com' 960localstatedir='${prefix}/var' 961includedir='${prefix}/include' 962oldincludedir='/usr/include' 963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 964infodir='${datarootdir}/info' 965htmldir='${docdir}' 966dvidir='${docdir}' 967pdfdir='${docdir}' 968psdir='${docdir}' 969libdir='${exec_prefix}/lib' 970localedir='${datarootdir}/locale' 971mandir='${datarootdir}/man' 972 973ac_prev= 974ac_dashdash= 975for ac_option 976do 977 # If the previous option needs an argument, assign it. 978 if test -n "$ac_prev"; then 979 eval $ac_prev=\$ac_option 980 ac_prev= 981 continue 982 fi 983 984 case $ac_option in 985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 986 *=) ac_optarg= ;; 987 *) ac_optarg=yes ;; 988 esac 989 990 # Accept the important Cygnus configure options, so we can diagnose typos. 991 992 case $ac_dashdash$ac_option in 993 --) 994 ac_dashdash=yes ;; 995 996 -bindir | --bindir | --bindi | --bind | --bin | --bi) 997 ac_prev=bindir ;; 998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 999 bindir=$ac_optarg ;; 1000 1001 -build | --build | --buil | --bui | --bu) 1002 ac_prev=build_alias ;; 1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1004 build_alias=$ac_optarg ;; 1005 1006 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1008 ac_prev=cache_file ;; 1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1011 cache_file=$ac_optarg ;; 1012 1013 --config-cache | -C) 1014 cache_file=config.cache ;; 1015 1016 -datadir | --datadir | --datadi | --datad) 1017 ac_prev=datadir ;; 1018 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1019 datadir=$ac_optarg ;; 1020 1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1022 | --dataroo | --dataro | --datar) 1023 ac_prev=datarootdir ;; 1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1026 datarootdir=$ac_optarg ;; 1027 1028 -disable-* | --disable-*) 1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1032 as_fn_error $? "invalid feature name: $ac_useropt" 1033 ac_useropt_orig=$ac_useropt 1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1035 case $ac_user_opts in 1036 *" 1037"enable_$ac_useropt" 1038"*) ;; 1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1040 ac_unrecognized_sep=', ';; 1041 esac 1042 eval enable_$ac_useropt=no ;; 1043 1044 -docdir | --docdir | --docdi | --doc | --do) 1045 ac_prev=docdir ;; 1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1047 docdir=$ac_optarg ;; 1048 1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1050 ac_prev=dvidir ;; 1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1052 dvidir=$ac_optarg ;; 1053 1054 -enable-* | --enable-*) 1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1058 as_fn_error $? "invalid feature name: $ac_useropt" 1059 ac_useropt_orig=$ac_useropt 1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1061 case $ac_user_opts in 1062 *" 1063"enable_$ac_useropt" 1064"*) ;; 1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1066 ac_unrecognized_sep=', ';; 1067 esac 1068 eval enable_$ac_useropt=\$ac_optarg ;; 1069 1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1072 | --exec | --exe | --ex) 1073 ac_prev=exec_prefix ;; 1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1076 | --exec=* | --exe=* | --ex=*) 1077 exec_prefix=$ac_optarg ;; 1078 1079 -gas | --gas | --ga | --g) 1080 # Obsolete; use --with-gas. 1081 with_gas=yes ;; 1082 1083 -help | --help | --hel | --he | -h) 1084 ac_init_help=long ;; 1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1086 ac_init_help=recursive ;; 1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1088 ac_init_help=short ;; 1089 1090 -host | --host | --hos | --ho) 1091 ac_prev=host_alias ;; 1092 -host=* | --host=* | --hos=* | --ho=*) 1093 host_alias=$ac_optarg ;; 1094 1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1096 ac_prev=htmldir ;; 1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1098 | --ht=*) 1099 htmldir=$ac_optarg ;; 1100 1101 -includedir | --includedir | --includedi | --included | --include \ 1102 | --includ | --inclu | --incl | --inc) 1103 ac_prev=includedir ;; 1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1105 | --includ=* | --inclu=* | --incl=* | --inc=*) 1106 includedir=$ac_optarg ;; 1107 1108 -infodir | --infodir | --infodi | --infod | --info | --inf) 1109 ac_prev=infodir ;; 1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1111 infodir=$ac_optarg ;; 1112 1113 -libdir | --libdir | --libdi | --libd) 1114 ac_prev=libdir ;; 1115 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1116 libdir=$ac_optarg ;; 1117 1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1119 | --libexe | --libex | --libe) 1120 ac_prev=libexecdir ;; 1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1122 | --libexe=* | --libex=* | --libe=*) 1123 libexecdir=$ac_optarg ;; 1124 1125 -localedir | --localedir | --localedi | --localed | --locale) 1126 ac_prev=localedir ;; 1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1128 localedir=$ac_optarg ;; 1129 1130 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1131 | --localstate | --localstat | --localsta | --localst | --locals) 1132 ac_prev=localstatedir ;; 1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1135 localstatedir=$ac_optarg ;; 1136 1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1138 ac_prev=mandir ;; 1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1140 mandir=$ac_optarg ;; 1141 1142 -nfp | --nfp | --nf) 1143 # Obsolete; use --without-fp. 1144 with_fp=no ;; 1145 1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1147 | --no-cr | --no-c | -n) 1148 no_create=yes ;; 1149 1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1152 no_recursion=yes ;; 1153 1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1156 | --oldin | --oldi | --old | --ol | --o) 1157 ac_prev=oldincludedir ;; 1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1161 oldincludedir=$ac_optarg ;; 1162 1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1164 ac_prev=prefix ;; 1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1166 prefix=$ac_optarg ;; 1167 1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1169 | --program-pre | --program-pr | --program-p) 1170 ac_prev=program_prefix ;; 1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1173 program_prefix=$ac_optarg ;; 1174 1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1176 | --program-suf | --program-su | --program-s) 1177 ac_prev=program_suffix ;; 1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1180 program_suffix=$ac_optarg ;; 1181 1182 -program-transform-name | --program-transform-name \ 1183 | --program-transform-nam | --program-transform-na \ 1184 | --program-transform-n | --program-transform- \ 1185 | --program-transform | --program-transfor \ 1186 | --program-transfo | --program-transf \ 1187 | --program-trans | --program-tran \ 1188 | --progr-tra | --program-tr | --program-t) 1189 ac_prev=program_transform_name ;; 1190 -program-transform-name=* | --program-transform-name=* \ 1191 | --program-transform-nam=* | --program-transform-na=* \ 1192 | --program-transform-n=* | --program-transform-=* \ 1193 | --program-transform=* | --program-transfor=* \ 1194 | --program-transfo=* | --program-transf=* \ 1195 | --program-trans=* | --program-tran=* \ 1196 | --progr-tra=* | --program-tr=* | --program-t=*) 1197 program_transform_name=$ac_optarg ;; 1198 1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1200 ac_prev=pdfdir ;; 1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1202 pdfdir=$ac_optarg ;; 1203 1204 -psdir | --psdir | --psdi | --psd | --ps) 1205 ac_prev=psdir ;; 1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1207 psdir=$ac_optarg ;; 1208 1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1210 | -silent | --silent | --silen | --sile | --sil) 1211 silent=yes ;; 1212 1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1214 ac_prev=sbindir ;; 1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1216 | --sbi=* | --sb=*) 1217 sbindir=$ac_optarg ;; 1218 1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1221 | --sharedst | --shareds | --shared | --share | --shar \ 1222 | --sha | --sh) 1223 ac_prev=sharedstatedir ;; 1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1227 | --sha=* | --sh=*) 1228 sharedstatedir=$ac_optarg ;; 1229 1230 -site | --site | --sit) 1231 ac_prev=site ;; 1232 -site=* | --site=* | --sit=*) 1233 site=$ac_optarg ;; 1234 1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1236 ac_prev=srcdir ;; 1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1238 srcdir=$ac_optarg ;; 1239 1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1241 | --syscon | --sysco | --sysc | --sys | --sy) 1242 ac_prev=sysconfdir ;; 1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1245 sysconfdir=$ac_optarg ;; 1246 1247 -target | --target | --targe | --targ | --tar | --ta | --t) 1248 ac_prev=target_alias ;; 1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1250 target_alias=$ac_optarg ;; 1251 1252 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1253 verbose=yes ;; 1254 1255 -version | --version | --versio | --versi | --vers | -V) 1256 ac_init_version=: ;; 1257 1258 -with-* | --with-*) 1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1260 # Reject names that are not valid shell variable names. 1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1262 as_fn_error $? "invalid package name: $ac_useropt" 1263 ac_useropt_orig=$ac_useropt 1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1265 case $ac_user_opts in 1266 *" 1267"with_$ac_useropt" 1268"*) ;; 1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1270 ac_unrecognized_sep=', ';; 1271 esac 1272 eval with_$ac_useropt=\$ac_optarg ;; 1273 1274 -without-* | --without-*) 1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 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--without-$ac_useropt_orig" 1286 ac_unrecognized_sep=', ';; 1287 esac 1288 eval with_$ac_useropt=no ;; 1289 1290 --x) 1291 # Obsolete; use --with-x. 1292 with_x=yes ;; 1293 1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1295 | --x-incl | --x-inc | --x-in | --x-i) 1296 ac_prev=x_includes ;; 1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1299 x_includes=$ac_optarg ;; 1300 1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1303 ac_prev=x_libraries ;; 1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1306 x_libraries=$ac_optarg ;; 1307 1308 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1309Try \`$0 --help' for more information" 1310 ;; 1311 1312 *=*) 1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1314 # Reject names that are not valid shell variable names. 1315 case $ac_envvar in #( 1316 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1317 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1318 esac 1319 eval $ac_envvar=\$ac_optarg 1320 export $ac_envvar ;; 1321 1322 *) 1323 # FIXME: should be removed in autoconf 3.0. 1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1328 ;; 1329 1330 esac 1331done 1332 1333if test -n "$ac_prev"; then 1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1335 as_fn_error $? "missing argument to $ac_option" 1336fi 1337 1338if test -n "$ac_unrecognized_opts"; then 1339 case $enable_option_checking in 1340 no) ;; 1341 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1343 esac 1344fi 1345 1346# Check all directory arguments for consistency. 1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1348 datadir sysconfdir sharedstatedir localstatedir includedir \ 1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1350 libdir localedir mandir 1351do 1352 eval ac_val=\$$ac_var 1353 # Remove trailing slashes. 1354 case $ac_val in 1355 */ ) 1356 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1357 eval $ac_var=\$ac_val;; 1358 esac 1359 # Be sure to have absolute directory names. 1360 case $ac_val in 1361 [\\/$]* | ?:[\\/]* ) continue;; 1362 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1363 esac 1364 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1365done 1366 1367# There might be people who depend on the old broken behavior: `$host' 1368# used to hold the argument of --host etc. 1369# FIXME: To remove some day. 1370build=$build_alias 1371host=$host_alias 1372target=$target_alias 1373 1374# FIXME: To remove some day. 1375if test "x$host_alias" != x; then 1376 if test "x$build_alias" = x; then 1377 cross_compiling=maybe 1378 elif test "x$build_alias" != "x$host_alias"; then 1379 cross_compiling=yes 1380 fi 1381fi 1382 1383ac_tool_prefix= 1384test -n "$host_alias" && ac_tool_prefix=$host_alias- 1385 1386test "$silent" = yes && exec 6>/dev/null 1387 1388 1389ac_pwd=`pwd` && test -n "$ac_pwd" && 1390ac_ls_di=`ls -di .` && 1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1392 as_fn_error $? "working directory cannot be determined" 1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1394 as_fn_error $? "pwd does not report name of working directory" 1395 1396 1397# Find the source files, if location was not specified. 1398if test -z "$srcdir"; then 1399 ac_srcdir_defaulted=yes 1400 # Try the directory containing this script, then the parent directory. 1401 ac_confdir=`$as_dirname -- "$as_myself" || 1402$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1403 X"$as_myself" : 'X\(//\)[^/]' \| \ 1404 X"$as_myself" : 'X\(//\)$' \| \ 1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1406$as_echo X"$as_myself" | 1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\/\)[^/].*/{ 1412 s//\1/ 1413 q 1414 } 1415 /^X\(\/\/\)$/{ 1416 s//\1/ 1417 q 1418 } 1419 /^X\(\/\).*/{ 1420 s//\1/ 1421 q 1422 } 1423 s/.*/./; q'` 1424 srcdir=$ac_confdir 1425 if test ! -r "$srcdir/$ac_unique_file"; then 1426 srcdir=.. 1427 fi 1428else 1429 ac_srcdir_defaulted=no 1430fi 1431if test ! -r "$srcdir/$ac_unique_file"; then 1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1433 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1434fi 1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1436ac_abs_confdir=`( 1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1438 pwd)` 1439# When building in place, set srcdir=. 1440if test "$ac_abs_confdir" = "$ac_pwd"; then 1441 srcdir=. 1442fi 1443# Remove unnecessary trailing slashes from srcdir. 1444# Double slashes in file names in object file debugging info 1445# mess up M-x gdb in Emacs. 1446case $srcdir in 1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1448esac 1449for ac_var in $ac_precious_vars; do 1450 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1451 eval ac_env_${ac_var}_value=\$${ac_var} 1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1453 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1454done 1455 1456# 1457# Report the --help message. 1458# 1459if test "$ac_init_help" = "long"; then 1460 # Omit some internal or obsolete options to make the list less imposing. 1461 # This message is too long to be a string in the A/UX 3.1 sh. 1462 cat <<_ACEOF 1463\`configure' configures libXfont 1.5.1 to adapt to many kinds of systems. 1464 1465Usage: $0 [OPTION]... [VAR=VALUE]... 1466 1467To assign environment variables (e.g., CC, CFLAGS...), specify them as 1468VAR=VALUE. See below for descriptions of some of the useful variables. 1469 1470Defaults for the options are specified in brackets. 1471 1472Configuration: 1473 -h, --help display this help and exit 1474 --help=short display options specific to this package 1475 --help=recursive display the short help of all the included packages 1476 -V, --version display version information and exit 1477 -q, --quiet, --silent do not print \`checking ...' messages 1478 --cache-file=FILE cache test results in FILE [disabled] 1479 -C, --config-cache alias for \`--cache-file=config.cache' 1480 -n, --no-create do not create output files 1481 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1482 1483Installation directories: 1484 --prefix=PREFIX install architecture-independent files in PREFIX 1485 [$ac_default_prefix] 1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1487 [PREFIX] 1488 1489By default, \`make install' will install all the files in 1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1491an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1492for instance \`--prefix=\$HOME'. 1493 1494For better control, use the options below. 1495 1496Fine tuning of the installation directories: 1497 --bindir=DIR user executables [EPREFIX/bin] 1498 --sbindir=DIR system admin executables [EPREFIX/sbin] 1499 --libexecdir=DIR program executables [EPREFIX/libexec] 1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1503 --libdir=DIR object code libraries [EPREFIX/lib] 1504 --includedir=DIR C header files [PREFIX/include] 1505 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1508 --infodir=DIR info documentation [DATAROOTDIR/info] 1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1510 --mandir=DIR man documentation [DATAROOTDIR/man] 1511 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont] 1512 --htmldir=DIR html documentation [DOCDIR] 1513 --dvidir=DIR dvi documentation [DOCDIR] 1514 --pdfdir=DIR pdf documentation [DOCDIR] 1515 --psdir=DIR ps documentation [DOCDIR] 1516_ACEOF 1517 1518 cat <<\_ACEOF 1519 1520Program names: 1521 --program-prefix=PREFIX prepend PREFIX to installed program names 1522 --program-suffix=SUFFIX append SUFFIX to installed program names 1523 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1524 1525System types: 1526 --build=BUILD configure for building on BUILD [guessed] 1527 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1528_ACEOF 1529fi 1530 1531if test -n "$ac_init_help"; then 1532 case $ac_init_help in 1533 short | recursive ) echo "Configuration of libXfont 1.5.1:";; 1534 esac 1535 cat <<\_ACEOF 1536 1537Optional Features: 1538 --disable-option-checking ignore unrecognized --enable/--with options 1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1541 --enable-silent-rules less verbose build output (undo: "make V=1") 1542 --disable-silent-rules verbose build output (undo: "make V=0") 1543 --enable-dependency-tracking 1544 do not reject slow dependency extractors 1545 --disable-dependency-tracking 1546 speeds up one-time build 1547 --enable-shared[=PKGS] build shared libraries [default=yes] 1548 --enable-static[=PKGS] build static libraries [default=yes] 1549 --enable-fast-install[=PKGS] 1550 optimize for fast installation [default=yes] 1551 --disable-libtool-lock avoid locking (might break parallel builds) 1552 --disable-selective-werror 1553 Turn off selective compiler errors. (default: 1554 enabled) 1555 --enable-strict-compilation 1556 Enable all warnings from compiler and make them 1557 errors (default: disabled) 1558 --enable-devel-docs Enable building the developer documentation 1559 (default: yes) 1560 --disable-freetype Build freetype backend (default: enabled) 1561 --disable-builtins Support builtin fonts (default: enabled) 1562 --disable-pcfformat Support PCF format bitmap fonts (default: enabled) 1563 --disable-bdfformat Support BDF format bitmap fonts (default: enabled) 1564 --enable-snfformat Support SNF format bitmap fonts (default: disabled) 1565 --disable-fc Support connections to xfs servers (default: 1566 enabled) 1567 --enable-unix-transport Enable UNIX domain socket transport 1568 --enable-tcp-transport Enable TCP socket transport 1569 --enable-ipv6 Enable IPv6 support 1570 --enable-local-transport 1571 Enable os-specific local transport 1572 1573Optional Packages: 1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1576 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1577 both] 1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1579 --with-sysroot=DIR Search for dependent libraries within DIR 1580 (or the compiler's sysroot if not specified). 1581 --with-xmlto Use xmlto to regenerate documentation (default: 1582 auto) 1583 --with-fop Use fop to regenerate documentation (default: auto) 1584 --with-freetype-config=PROG 1585 Use FreeType configuration program PROG 1586 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts 1587 (default: no) 1588 1589Some influential environment variables: 1590 CC C compiler command 1591 CFLAGS C compiler flags 1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1593 nonstandard directory <lib dir> 1594 LIBS libraries to pass to the linker, e.g. -l<library> 1595 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1596 you have headers in a nonstandard directory <include dir> 1597 CPP C preprocessor 1598 PKG_CONFIG path to pkg-config utility 1599 XMLTO Path to xmlto command 1600 FOP Path to fop command 1601 FREETYPE_CFLAGS 1602 C compiler flags for FREETYPE, overriding pkg-config 1603 FREETYPE_LIBS 1604 linker flags for FREETYPE, overriding pkg-config 1605 XFONT_CFLAGS 1606 C compiler flags for XFONT, overriding pkg-config 1607 XFONT_LIBS linker flags for XFONT, overriding pkg-config 1608 1609Use these variables to override the choices made by `configure' or to help 1610it to find libraries and programs with nonstandard names/locations. 1611 1612Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1613_ACEOF 1614ac_status=$? 1615fi 1616 1617if test "$ac_init_help" = "recursive"; then 1618 # If there are subdirs, report their specific --help. 1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1620 test -d "$ac_dir" || 1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1622 continue 1623 ac_builddir=. 1624 1625case "$ac_dir" in 1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1627*) 1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1629 # A ".." for each directory in $ac_dir_suffix. 1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1631 case $ac_top_builddir_sub in 1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1634 esac ;; 1635esac 1636ac_abs_top_builddir=$ac_pwd 1637ac_abs_builddir=$ac_pwd$ac_dir_suffix 1638# for backward compatibility: 1639ac_top_builddir=$ac_top_build_prefix 1640 1641case $srcdir in 1642 .) # We are building in place. 1643 ac_srcdir=. 1644 ac_top_srcdir=$ac_top_builddir_sub 1645 ac_abs_top_srcdir=$ac_pwd ;; 1646 [\\/]* | ?:[\\/]* ) # Absolute name. 1647 ac_srcdir=$srcdir$ac_dir_suffix; 1648 ac_top_srcdir=$srcdir 1649 ac_abs_top_srcdir=$srcdir ;; 1650 *) # Relative name. 1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1652 ac_top_srcdir=$ac_top_build_prefix$srcdir 1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1654esac 1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1656 1657 cd "$ac_dir" || { ac_status=$?; continue; } 1658 # Check for guested configure. 1659 if test -f "$ac_srcdir/configure.gnu"; then 1660 echo && 1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1662 elif test -f "$ac_srcdir/configure"; then 1663 echo && 1664 $SHELL "$ac_srcdir/configure" --help=recursive 1665 else 1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1667 fi || ac_status=$? 1668 cd "$ac_pwd" || { ac_status=$?; break; } 1669 done 1670fi 1671 1672test -n "$ac_init_help" && exit $ac_status 1673if $ac_init_version; then 1674 cat <<\_ACEOF 1675libXfont configure 1.5.1 1676generated by GNU Autoconf 2.69 1677 1678Copyright (C) 2012 Free Software Foundation, Inc. 1679This configure script is free software; the Free Software Foundation 1680gives unlimited permission to copy, distribute and modify it. 1681_ACEOF 1682 exit 1683fi 1684 1685## ------------------------ ## 1686## Autoconf initialization. ## 1687## ------------------------ ## 1688 1689# ac_fn_c_try_compile LINENO 1690# -------------------------- 1691# Try to compile conftest.$ac_ext, and return whether this succeeded. 1692ac_fn_c_try_compile () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 rm -f conftest.$ac_objext 1696 if { { ac_try="$ac_compile" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_compile") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { 1712 test -z "$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 } && test -s conftest.$ac_objext; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_compile 1726 1727# ac_fn_c_try_cpp LINENO 1728# ---------------------- 1729# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1730ac_fn_c_try_cpp () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 if { { ac_try="$ac_cpp conftest.$ac_ext" 1734case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739$as_echo "$ac_try_echo"; } >&5 1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1741 ac_status=$? 1742 if test -s conftest.err; then 1743 grep -v '^ *+' conftest.err >conftest.er1 1744 cat conftest.er1 >&5 1745 mv -f conftest.er1 conftest.err 1746 fi 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } > conftest.i && { 1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1750 test ! -s conftest.err 1751 }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=1 1758fi 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_cpp 1763 1764# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1765# ------------------------------------------------------- 1766# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1767# the include files in INCLUDES and setting the cache variable VAR 1768# accordingly. 1769ac_fn_c_check_header_mongrel () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 if eval \${$3+:} false; then : 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774$as_echo_n "checking for $2... " >&6; } 1775if eval \${$3+:} false; then : 1776 $as_echo_n "(cached) " >&6 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781else 1782 # Is the header compilable? 1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1784$as_echo_n "checking $2 usability... " >&6; } 1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1786/* end confdefs.h. */ 1787$4 1788#include <$2> 1789_ACEOF 1790if ac_fn_c_try_compile "$LINENO"; then : 1791 ac_header_compiler=yes 1792else 1793 ac_header_compiler=no 1794fi 1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1797$as_echo "$ac_header_compiler" >&6; } 1798 1799# Is the header present? 1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1801$as_echo_n "checking $2 presence... " >&6; } 1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803/* end confdefs.h. */ 1804#include <$2> 1805_ACEOF 1806if ac_fn_c_try_cpp "$LINENO"; then : 1807 ac_header_preproc=yes 1808else 1809 ac_header_preproc=no 1810fi 1811rm -f conftest.err conftest.i conftest.$ac_ext 1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1813$as_echo "$ac_header_preproc" >&6; } 1814 1815# So? What about this header? 1816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1817 yes:no: ) 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1819$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1822 ;; 1823 no:yes:* ) 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1825$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1827$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1829$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1831$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1834( $as_echo "## ---------------------------------------------------------------------- ## 1835## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1836## ---------------------------------------------------------------------- ##" 1837 ) | sed "s/^/$as_me: WARNING: /" >&2 1838 ;; 1839esac 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844else 1845 eval "$3=\$ac_header_compiler" 1846fi 1847eval ac_res=\$$3 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849$as_echo "$ac_res" >&6; } 1850fi 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 1853} # ac_fn_c_check_header_mongrel 1854 1855# ac_fn_c_try_run LINENO 1856# ---------------------- 1857# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1858# that executables *can* be run. 1859ac_fn_c_try_run () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 if { { ac_try="$ac_link" 1863case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866esac 1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868$as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_link") 2>&5 1870 ac_status=$? 1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1873 { { case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876esac 1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1878$as_echo "$ac_try_echo"; } >&5 1879 (eval "$ac_try") 2>&5 1880 ac_status=$? 1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1882 test $ac_status = 0; }; }; then : 1883 ac_retval=0 1884else 1885 $as_echo "$as_me: program exited with status $ac_status" >&5 1886 $as_echo "$as_me: failed program was:" >&5 1887sed 's/^/| /' conftest.$ac_ext >&5 1888 1889 ac_retval=$ac_status 1890fi 1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1893 as_fn_set_status $ac_retval 1894 1895} # ac_fn_c_try_run 1896 1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1898# ------------------------------------------------------- 1899# Tests whether HEADER exists and can be compiled using the include files in 1900# INCLUDES, setting the cache variable VAR accordingly. 1901ac_fn_c_check_header_compile () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905$as_echo_n "checking for $2... " >&6; } 1906if eval \${$3+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$4 1912#include <$2> 1913_ACEOF 1914if ac_fn_c_try_compile "$LINENO"; then : 1915 eval "$3=yes" 1916else 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} # ac_fn_c_check_header_compile 1927 1928# ac_fn_c_try_link LINENO 1929# ----------------------- 1930# Try to link conftest.$ac_ext, and return whether this succeeded. 1931ac_fn_c_try_link () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 rm -f conftest.$ac_objext conftest$ac_exeext 1935 if { { ac_try="$ac_link" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_link") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { 1951 test -z "$ac_c_werror_flag" || 1952 test ! -s conftest.err 1953 } && test -s conftest$ac_exeext && { 1954 test "$cross_compiling" = yes || 1955 test -x conftest$ac_exeext 1956 }; then : 1957 ac_retval=0 1958else 1959 $as_echo "$as_me: failed program was:" >&5 1960sed 's/^/| /' conftest.$ac_ext >&5 1961 1962 ac_retval=1 1963fi 1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1966 # interfere with the next link command; also delete a directory that is 1967 # left behind by Apple's compiler. We do this before executing the actions. 1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 as_fn_set_status $ac_retval 1971 1972} # ac_fn_c_try_link 1973 1974# ac_fn_c_check_func LINENO FUNC VAR 1975# ---------------------------------- 1976# Tests whether FUNC exists, setting the cache variable VAR accordingly 1977ac_fn_c_check_func () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1981$as_echo_n "checking for $2... " >&6; } 1982if eval \${$3+:} false; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1989#define $2 innocuous_$2 1990 1991/* System header to define __stub macros and hopefully few prototypes, 1992 which can conflict with char $2 (); below. 1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1994 <limits.h> exists even on freestanding compilers. */ 1995 1996#ifdef __STDC__ 1997# include <limits.h> 1998#else 1999# include <assert.h> 2000#endif 2001 2002#undef $2 2003 2004/* Override any GCC internal prototype to avoid an error. 2005 Use char because int might match the return type of a GCC 2006 builtin and then its argument prototype would still apply. */ 2007#ifdef __cplusplus 2008extern "C" 2009#endif 2010char $2 (); 2011/* The GNU C library defines this for functions which it implements 2012 to always fail with ENOSYS. Some functions are actually named 2013 something starting with __ and the normal name is an alias. */ 2014#if defined __stub_$2 || defined __stub___$2 2015choke me 2016#endif 2017 2018int 2019main () 2020{ 2021return $2 (); 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_link "$LINENO"; then : 2027 eval "$3=yes" 2028else 2029 eval "$3=no" 2030fi 2031rm -f core conftest.err conftest.$ac_objext \ 2032 conftest$ac_exeext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2038 2039} # ac_fn_c_check_func 2040 2041# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2042# --------------------------------------------- 2043# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2044# accordingly. 2045ac_fn_c_check_decl () 2046{ 2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2048 as_decl_name=`echo $2|sed 's/ *(.*//'` 2049 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2051$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2052if eval \${$3+:} false; then : 2053 $as_echo_n "(cached) " >&6 2054else 2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057$4 2058int 2059main () 2060{ 2061#ifndef $as_decl_name 2062#ifdef __cplusplus 2063 (void) $as_decl_use; 2064#else 2065 (void) $as_decl_name; 2066#endif 2067#endif 2068 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_compile "$LINENO"; then : 2074 eval "$3=yes" 2075else 2076 eval "$3=no" 2077fi 2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2079fi 2080eval ac_res=\$$3 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2082$as_echo "$ac_res" >&6; } 2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2084 2085} # ac_fn_c_check_decl 2086 2087# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2088# ---------------------------------------------------- 2089# Tries to find if the field MEMBER exists in type AGGR, after including 2090# INCLUDES, setting cache variable VAR accordingly. 2091ac_fn_c_check_member () 2092{ 2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2095$as_echo_n "checking for $2.$3... " >&6; } 2096if eval \${$4+:} false; then : 2097 $as_echo_n "(cached) " >&6 2098else 2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101$5 2102int 2103main () 2104{ 2105static $2 ac_aggr; 2106if (ac_aggr.$3) 2107return 0; 2108 ; 2109 return 0; 2110} 2111_ACEOF 2112if ac_fn_c_try_compile "$LINENO"; then : 2113 eval "$4=yes" 2114else 2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116/* end confdefs.h. */ 2117$5 2118int 2119main () 2120{ 2121static $2 ac_aggr; 2122if (sizeof ac_aggr.$3) 2123return 0; 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_compile "$LINENO"; then : 2129 eval "$4=yes" 2130else 2131 eval "$4=no" 2132fi 2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2134fi 2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2136fi 2137eval ac_res=\$$4 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2139$as_echo "$ac_res" >&6; } 2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2141 2142} # ac_fn_c_check_member 2143 2144# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2145# ------------------------------------------- 2146# Tests whether TYPE exists after having included INCLUDES, setting cache 2147# variable VAR accordingly. 2148ac_fn_c_check_type () 2149{ 2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2152$as_echo_n "checking for $2... " >&6; } 2153if eval \${$3+:} false; then : 2154 $as_echo_n "(cached) " >&6 2155else 2156 eval "$3=no" 2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2158/* end confdefs.h. */ 2159$4 2160int 2161main () 2162{ 2163if (sizeof ($2)) 2164 return 0; 2165 ; 2166 return 0; 2167} 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171/* end confdefs.h. */ 2172$4 2173int 2174main () 2175{ 2176if (sizeof (($2))) 2177 return 0; 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_compile "$LINENO"; then : 2183 2184else 2185 eval "$3=yes" 2186fi 2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2188fi 2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2190fi 2191eval ac_res=\$$3 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2193$as_echo "$ac_res" >&6; } 2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2195 2196} # ac_fn_c_check_type 2197cat >config.log <<_ACEOF 2198This file contains any messages produced by compilers while 2199running configure, to aid debugging if configure makes a mistake. 2200 2201It was created by libXfont $as_me 1.5.1, which was 2202generated by GNU Autoconf 2.69. Invocation command line was 2203 2204 $ $0 $@ 2205 2206_ACEOF 2207exec 5>>config.log 2208{ 2209cat <<_ASUNAME 2210## --------- ## 2211## Platform. ## 2212## --------- ## 2213 2214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2215uname -m = `(uname -m) 2>/dev/null || echo unknown` 2216uname -r = `(uname -r) 2>/dev/null || echo unknown` 2217uname -s = `(uname -s) 2>/dev/null || echo unknown` 2218uname -v = `(uname -v) 2>/dev/null || echo unknown` 2219 2220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2221/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2222 2223/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2224/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2226/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2227/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2228/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2229/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2230 2231_ASUNAME 2232 2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 $as_echo "PATH: $as_dir" 2239 done 2240IFS=$as_save_IFS 2241 2242} >&5 2243 2244cat >&5 <<_ACEOF 2245 2246 2247## ----------- ## 2248## Core tests. ## 2249## ----------- ## 2250 2251_ACEOF 2252 2253 2254# Keep a trace of the command line. 2255# Strip out --no-create and --no-recursion so they do not pile up. 2256# Strip out --silent because we don't want to record it for future runs. 2257# Also quote any args containing shell meta-characters. 2258# Make two passes to allow for proper duplicate-argument suppression. 2259ac_configure_args= 2260ac_configure_args0= 2261ac_configure_args1= 2262ac_must_keep_next=false 2263for ac_pass in 1 2 2264do 2265 for ac_arg 2266 do 2267 case $ac_arg in 2268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2270 | -silent | --silent | --silen | --sile | --sil) 2271 continue ;; 2272 *\'*) 2273 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2274 esac 2275 case $ac_pass in 2276 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2277 2) 2278 as_fn_append ac_configure_args1 " '$ac_arg'" 2279 if test $ac_must_keep_next = true; then 2280 ac_must_keep_next=false # Got value, back to normal. 2281 else 2282 case $ac_arg in 2283 *=* | --config-cache | -C | -disable-* | --disable-* \ 2284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2286 | -with-* | --with-* | -without-* | --without-* | --x) 2287 case "$ac_configure_args0 " in 2288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2289 esac 2290 ;; 2291 -* ) ac_must_keep_next=true ;; 2292 esac 2293 fi 2294 as_fn_append ac_configure_args " '$ac_arg'" 2295 ;; 2296 esac 2297 done 2298done 2299{ ac_configure_args0=; unset ac_configure_args0;} 2300{ ac_configure_args1=; unset ac_configure_args1;} 2301 2302# When interrupted or exit'd, cleanup temporary files, and complete 2303# config.log. We remove comments because anyway the quotes in there 2304# would cause problems or look ugly. 2305# WARNING: Use '\'' to represent an apostrophe within the trap. 2306# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2307trap 'exit_status=$? 2308 # Save into config.log some information that might help in debugging. 2309 { 2310 echo 2311 2312 $as_echo "## ---------------- ## 2313## Cache variables. ## 2314## ---------------- ##" 2315 echo 2316 # The following way of writing the cache mishandles newlines in values, 2317( 2318 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2319 eval ac_val=\$$ac_var 2320 case $ac_val in #( 2321 *${as_nl}*) 2322 case $ac_var in #( 2323 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2324$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2325 esac 2326 case $ac_var in #( 2327 _ | IFS | as_nl) ;; #( 2328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2329 *) { eval $ac_var=; unset $ac_var;} ;; 2330 esac ;; 2331 esac 2332 done 2333 (set) 2>&1 | 2334 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2335 *${as_nl}ac_space=\ *) 2336 sed -n \ 2337 "s/'\''/'\''\\\\'\'''\''/g; 2338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2339 ;; #( 2340 *) 2341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2342 ;; 2343 esac | 2344 sort 2345) 2346 echo 2347 2348 $as_echo "## ----------------- ## 2349## Output variables. ## 2350## ----------------- ##" 2351 echo 2352 for ac_var in $ac_subst_vars 2353 do 2354 eval ac_val=\$$ac_var 2355 case $ac_val in 2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2357 esac 2358 $as_echo "$ac_var='\''$ac_val'\''" 2359 done | sort 2360 echo 2361 2362 if test -n "$ac_subst_files"; then 2363 $as_echo "## ------------------- ## 2364## File substitutions. ## 2365## ------------------- ##" 2366 echo 2367 for ac_var in $ac_subst_files 2368 do 2369 eval ac_val=\$$ac_var 2370 case $ac_val in 2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2372 esac 2373 $as_echo "$ac_var='\''$ac_val'\''" 2374 done | sort 2375 echo 2376 fi 2377 2378 if test -s confdefs.h; then 2379 $as_echo "## ----------- ## 2380## confdefs.h. ## 2381## ----------- ##" 2382 echo 2383 cat confdefs.h 2384 echo 2385 fi 2386 test "$ac_signal" != 0 && 2387 $as_echo "$as_me: caught signal $ac_signal" 2388 $as_echo "$as_me: exit $exit_status" 2389 } >&5 2390 rm -f core *.core core.conftest.* && 2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2392 exit $exit_status 2393' 0 2394for ac_signal in 1 2 13 15; do 2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2396done 2397ac_signal=0 2398 2399# confdefs.h avoids OS command line length limits that DEFS can exceed. 2400rm -f -r conftest* confdefs.h 2401 2402$as_echo "/* confdefs.h */" > confdefs.h 2403 2404# Predefined preprocessor variables. 2405 2406cat >>confdefs.h <<_ACEOF 2407#define PACKAGE_NAME "$PACKAGE_NAME" 2408_ACEOF 2409 2410cat >>confdefs.h <<_ACEOF 2411#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2412_ACEOF 2413 2414cat >>confdefs.h <<_ACEOF 2415#define PACKAGE_VERSION "$PACKAGE_VERSION" 2416_ACEOF 2417 2418cat >>confdefs.h <<_ACEOF 2419#define PACKAGE_STRING "$PACKAGE_STRING" 2420_ACEOF 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2424_ACEOF 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE_URL "$PACKAGE_URL" 2428_ACEOF 2429 2430 2431# Let the site file select an alternate cache file if it wants to. 2432# Prefer an explicitly selected file to automatically selected ones. 2433ac_site_file1=NONE 2434ac_site_file2=NONE 2435if test -n "$CONFIG_SITE"; then 2436 # We do not want a PATH search for config.site. 2437 case $CONFIG_SITE in #(( 2438 -*) ac_site_file1=./$CONFIG_SITE;; 2439 */*) ac_site_file1=$CONFIG_SITE;; 2440 *) ac_site_file1=./$CONFIG_SITE;; 2441 esac 2442elif test "x$prefix" != xNONE; then 2443 ac_site_file1=$prefix/share/config.site 2444 ac_site_file2=$prefix/etc/config.site 2445else 2446 ac_site_file1=$ac_default_prefix/share/config.site 2447 ac_site_file2=$ac_default_prefix/etc/config.site 2448fi 2449for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2450do 2451 test "x$ac_site_file" = xNONE && continue 2452 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2454$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2455 sed 's/^/| /' "$ac_site_file" >&5 2456 . "$ac_site_file" \ 2457 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2459as_fn_error $? "failed to load site script $ac_site_file 2460See \`config.log' for more details" "$LINENO" 5; } 2461 fi 2462done 2463 2464if test -r "$cache_file"; then 2465 # Some versions of bash will fail to source /dev/null (special files 2466 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2467 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2469$as_echo "$as_me: loading cache $cache_file" >&6;} 2470 case $cache_file in 2471 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2472 *) . "./$cache_file";; 2473 esac 2474 fi 2475else 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2477$as_echo "$as_me: creating cache $cache_file" >&6;} 2478 >$cache_file 2479fi 2480 2481# Check that the precious variables saved in the cache have kept the same 2482# value. 2483ac_cache_corrupted=false 2484for ac_var in $ac_precious_vars; do 2485 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2486 eval ac_new_set=\$ac_env_${ac_var}_set 2487 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2488 eval ac_new_val=\$ac_env_${ac_var}_value 2489 case $ac_old_set,$ac_new_set in 2490 set,) 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2492$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2493 ac_cache_corrupted=: ;; 2494 ,set) 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2496$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2497 ac_cache_corrupted=: ;; 2498 ,);; 2499 *) 2500 if test "x$ac_old_val" != "x$ac_new_val"; then 2501 # differences in whitespace do not lead to failure. 2502 ac_old_val_w=`echo x $ac_old_val` 2503 ac_new_val_w=`echo x $ac_new_val` 2504 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2506$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2507 ac_cache_corrupted=: 2508 else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2510$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2511 eval $ac_var=\$ac_old_val 2512 fi 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2514$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2516$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2517 fi;; 2518 esac 2519 # Pass precious variables to config.status. 2520 if test "$ac_new_set" = set; then 2521 case $ac_new_val in 2522 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2523 *) ac_arg=$ac_var=$ac_new_val ;; 2524 esac 2525 case " $ac_configure_args " in 2526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2527 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2528 esac 2529 fi 2530done 2531if $ac_cache_corrupted; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2535$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2536 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2537fi 2538## -------------------- ## 2539## Main body of script. ## 2540## -------------------- ## 2541 2542ac_ext=c 2543ac_cpp='$CPP $CPPFLAGS' 2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2546ac_compiler_gnu=$ac_cv_c_compiler_gnu 2547 2548 2549 2550ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h" 2551 2552 2553# Initialize Automake 2554am__api_version='1.15' 2555 2556ac_aux_dir= 2557for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2558 if test -f "$ac_dir/install-sh"; then 2559 ac_aux_dir=$ac_dir 2560 ac_install_sh="$ac_aux_dir/install-sh -c" 2561 break 2562 elif test -f "$ac_dir/install.sh"; then 2563 ac_aux_dir=$ac_dir 2564 ac_install_sh="$ac_aux_dir/install.sh -c" 2565 break 2566 elif test -f "$ac_dir/shtool"; then 2567 ac_aux_dir=$ac_dir 2568 ac_install_sh="$ac_aux_dir/shtool install -c" 2569 break 2570 fi 2571done 2572if test -z "$ac_aux_dir"; then 2573 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2574fi 2575 2576# These three variables are undocumented and unsupported, 2577# and are intended to be withdrawn in a future Autoconf release. 2578# They can cause serious problems if a builder's source tree is in a directory 2579# whose full name contains unusual characters. 2580ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2581ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2582ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2583 2584 2585# Find a good install program. We prefer a C program (faster), 2586# so one script is as good as another. But avoid the broken or 2587# incompatible versions: 2588# SysV /etc/install, /usr/sbin/install 2589# SunOS /usr/etc/install 2590# IRIX /sbin/install 2591# AIX /bin/install 2592# AmigaOS /C/install, which installs bootblocks on floppy discs 2593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2596# OS/2's system install, which has a completely different semantic 2597# ./install, which can be erroneously created by make from ./install.sh. 2598# Reject install programs that cannot install multiple files. 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2600$as_echo_n "checking for a BSD-compatible install... " >&6; } 2601if test -z "$INSTALL"; then 2602if ${ac_cv_path_install+:} false; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2606for as_dir in $PATH 2607do 2608 IFS=$as_save_IFS 2609 test -z "$as_dir" && as_dir=. 2610 # Account for people who put trailing slashes in PATH elements. 2611case $as_dir/ in #(( 2612 ./ | .// | /[cC]/* | \ 2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2615 /usr/ucb/* ) ;; 2616 *) 2617 # OSF1 and SCO ODT 3.0 have their own names for install. 2618 # Don't use installbsd from OSF since it installs stuff as root 2619 # by default. 2620 for ac_prog in ginstall scoinst install; do 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2623 if test $ac_prog = install && 2624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2625 # AIX install. It has an incompatible calling convention. 2626 : 2627 elif test $ac_prog = install && 2628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2629 # program-specific install script used by HP pwplus--don't use. 2630 : 2631 else 2632 rm -rf conftest.one conftest.two conftest.dir 2633 echo one > conftest.one 2634 echo two > conftest.two 2635 mkdir conftest.dir 2636 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2637 test -s conftest.one && test -s conftest.two && 2638 test -s conftest.dir/conftest.one && 2639 test -s conftest.dir/conftest.two 2640 then 2641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2642 break 3 2643 fi 2644 fi 2645 fi 2646 done 2647 done 2648 ;; 2649esac 2650 2651 done 2652IFS=$as_save_IFS 2653 2654rm -rf conftest.one conftest.two conftest.dir 2655 2656fi 2657 if test "${ac_cv_path_install+set}" = set; then 2658 INSTALL=$ac_cv_path_install 2659 else 2660 # As a last resort, use the slow shell script. Don't cache a 2661 # value for INSTALL within a source directory, because that will 2662 # break other packages using the cache if that directory is 2663 # removed, or if the value is a relative name. 2664 INSTALL=$ac_install_sh 2665 fi 2666fi 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2668$as_echo "$INSTALL" >&6; } 2669 2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2671# It thinks the first close brace ends the variable substitution. 2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2673 2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2675 2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2677 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2679$as_echo_n "checking whether build environment is sane... " >&6; } 2680# Reject unsafe characters in $srcdir or the absolute working directory 2681# name. Accept space and tab only in the latter. 2682am_lf=' 2683' 2684case `pwd` in 2685 *[\\\"\#\$\&\'\`$am_lf]*) 2686 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2687esac 2688case $srcdir in 2689 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2690 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2691esac 2692 2693# Do 'set' in a subshell so we don't clobber the current shell's 2694# arguments. Must try -L first in case configure is actually a 2695# symlink; some systems play weird games with the mod time of symlinks 2696# (eg FreeBSD returns the mod time of the symlink's containing 2697# directory). 2698if ( 2699 am_has_slept=no 2700 for am_try in 1 2; do 2701 echo "timestamp, slept: $am_has_slept" > conftest.file 2702 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2703 if test "$*" = "X"; then 2704 # -L didn't work. 2705 set X `ls -t "$srcdir/configure" conftest.file` 2706 fi 2707 if test "$*" != "X $srcdir/configure conftest.file" \ 2708 && test "$*" != "X conftest.file $srcdir/configure"; then 2709 2710 # If neither matched, then we have a broken ls. This can happen 2711 # if, for instance, CONFIG_SHELL is bash and it inherits a 2712 # broken ls alias from the environment. This has actually 2713 # happened. Such a system could not be considered "sane". 2714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2715 alias in your environment" "$LINENO" 5 2716 fi 2717 if test "$2" = conftest.file || test $am_try -eq 2; then 2718 break 2719 fi 2720 # Just in case. 2721 sleep 1 2722 am_has_slept=yes 2723 done 2724 test "$2" = conftest.file 2725 ) 2726then 2727 # Ok. 2728 : 2729else 2730 as_fn_error $? "newly created file is older than distributed files! 2731Check your system clock" "$LINENO" 5 2732fi 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2734$as_echo "yes" >&6; } 2735# If we didn't sleep, we still need to ensure time stamps of config.status and 2736# generated files are strictly newer. 2737am_sleep_pid= 2738if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2739 ( sleep 1 ) & 2740 am_sleep_pid=$! 2741fi 2742 2743rm -f conftest.file 2744 2745test "$program_prefix" != NONE && 2746 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2747# Use a double $ so make ignores it. 2748test "$program_suffix" != NONE && 2749 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2750# Double any \ or $. 2751# By default was `s,x,x', remove it if useless. 2752ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2753program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2754 2755# Expand $ac_aux_dir to an absolute path. 2756am_aux_dir=`cd "$ac_aux_dir" && pwd` 2757 2758if test x"${MISSING+set}" != xset; then 2759 case $am_aux_dir in 2760 *\ * | *\ *) 2761 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2762 *) 2763 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2764 esac 2765fi 2766# Use eval to expand $SHELL 2767if eval "$MISSING --is-lightweight"; then 2768 am_missing_run="$MISSING " 2769else 2770 am_missing_run= 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2772$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2773fi 2774 2775if test x"${install_sh+set}" != xset; then 2776 case $am_aux_dir in 2777 *\ * | *\ *) 2778 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2779 *) 2780 install_sh="\${SHELL} $am_aux_dir/install-sh" 2781 esac 2782fi 2783 2784# Installed binaries are usually stripped using 'strip' when the user 2785# run "make install-strip". However 'strip' might not be the right 2786# tool to use in cross-compilation environments, therefore Automake 2787# will honor the 'STRIP' environment variable to overrule this program. 2788if test "$cross_compiling" != no; then 2789 if test -n "$ac_tool_prefix"; then 2790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2791set dummy ${ac_tool_prefix}strip; ac_word=$2 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793$as_echo_n "checking for $ac_word... " >&6; } 2794if ${ac_cv_prog_STRIP+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if test -n "$STRIP"; then 2798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2807 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817STRIP=$ac_cv_prog_STRIP 2818if test -n "$STRIP"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2820$as_echo "$STRIP" >&6; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824fi 2825 2826 2827fi 2828if test -z "$ac_cv_prog_STRIP"; then 2829 ac_ct_STRIP=$STRIP 2830 # Extract the first word of "strip", so it can be a program name with args. 2831set dummy strip; ac_word=$2 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833$as_echo_n "checking for $ac_word... " >&6; } 2834if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 if test -n "$ac_ct_STRIP"; then 2838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2839else 2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841for as_dir in $PATH 2842do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2847 ac_cv_prog_ac_ct_STRIP="strip" 2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2849 break 2 2850 fi 2851done 2852 done 2853IFS=$as_save_IFS 2854 2855fi 2856fi 2857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2858if test -n "$ac_ct_STRIP"; then 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2860$as_echo "$ac_ct_STRIP" >&6; } 2861else 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2863$as_echo "no" >&6; } 2864fi 2865 2866 if test "x$ac_ct_STRIP" = x; then 2867 STRIP=":" 2868 else 2869 case $cross_compiling:$ac_tool_warned in 2870yes:) 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2873ac_tool_warned=yes ;; 2874esac 2875 STRIP=$ac_ct_STRIP 2876 fi 2877else 2878 STRIP="$ac_cv_prog_STRIP" 2879fi 2880 2881fi 2882INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2883 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2885$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2886if test -z "$MKDIR_P"; then 2887 if ${ac_cv_path_mkdir+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_prog in mkdir gmkdir; do 2896 for ac_exec_ext in '' $ac_executable_extensions; do 2897 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2898 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2899 'mkdir (GNU coreutils) '* | \ 2900 'mkdir (coreutils) '* | \ 2901 'mkdir (fileutils) '4.1*) 2902 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2903 break 3;; 2904 esac 2905 done 2906 done 2907 done 2908IFS=$as_save_IFS 2909 2910fi 2911 2912 test -d ./--version && rmdir ./--version 2913 if test "${ac_cv_path_mkdir+set}" = set; then 2914 MKDIR_P="$ac_cv_path_mkdir -p" 2915 else 2916 # As a last resort, use the slow shell script. Don't cache a 2917 # value for MKDIR_P within a source directory, because that will 2918 # break other packages using the cache if that directory is 2919 # removed, or if the value is a relative name. 2920 MKDIR_P="$ac_install_sh -d" 2921 fi 2922fi 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2924$as_echo "$MKDIR_P" >&6; } 2925 2926for ac_prog in gawk mawk nawk awk 2927do 2928 # Extract the first word of "$ac_prog", so it can be a program name with args. 2929set dummy $ac_prog; ac_word=$2 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if ${ac_cv_prog_AWK+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test -n "$AWK"; then 2936 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2945 ac_cv_prog_AWK="$ac_prog" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950 done 2951IFS=$as_save_IFS 2952 2953fi 2954fi 2955AWK=$ac_cv_prog_AWK 2956if test -n "$AWK"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2958$as_echo "$AWK" >&6; } 2959else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 2965 test -n "$AWK" && break 2966done 2967 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2970set x ${MAKE-make} 2971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2972if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 cat >conftest.make <<\_ACEOF 2976SHELL = /bin/sh 2977all: 2978 @echo '@@@%%%=$(MAKE)=@@@%%%' 2979_ACEOF 2980# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2981case `${MAKE-make} -f conftest.make 2>/dev/null` in 2982 *@@@%%%=?*=@@@%%%*) 2983 eval ac_cv_prog_make_${ac_make}_set=yes;; 2984 *) 2985 eval ac_cv_prog_make_${ac_make}_set=no;; 2986esac 2987rm -f conftest.make 2988fi 2989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2991$as_echo "yes" >&6; } 2992 SET_MAKE= 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996 SET_MAKE="MAKE=${MAKE-make}" 2997fi 2998 2999rm -rf .tst 2>/dev/null 3000mkdir .tst 2>/dev/null 3001if test -d .tst; then 3002 am__leading_dot=. 3003else 3004 am__leading_dot=_ 3005fi 3006rmdir .tst 2>/dev/null 3007 3008# Check whether --enable-silent-rules was given. 3009if test "${enable_silent_rules+set}" = set; then : 3010 enableval=$enable_silent_rules; 3011fi 3012 3013case $enable_silent_rules in # ((( 3014 yes) AM_DEFAULT_VERBOSITY=0;; 3015 no) AM_DEFAULT_VERBOSITY=1;; 3016 *) AM_DEFAULT_VERBOSITY=1;; 3017esac 3018am_make=${MAKE-make} 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3020$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3021if ${am_cv_make_support_nested_variables+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if $as_echo 'TRUE=$(BAR$(V)) 3025BAR0=false 3026BAR1=true 3027V=1 3028am__doit: 3029 @$(TRUE) 3030.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3031 am_cv_make_support_nested_variables=yes 3032else 3033 am_cv_make_support_nested_variables=no 3034fi 3035fi 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3037$as_echo "$am_cv_make_support_nested_variables" >&6; } 3038if test $am_cv_make_support_nested_variables = yes; then 3039 AM_V='$(V)' 3040 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3041else 3042 AM_V=$AM_DEFAULT_VERBOSITY 3043 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3044fi 3045AM_BACKSLASH='\' 3046 3047if test "`cd $srcdir && pwd`" != "`pwd`"; then 3048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3049 # is not polluted with repeated "-I." 3050 am__isrc=' -I$(srcdir)' 3051 # test to see if srcdir already configured 3052 if test -f $srcdir/config.status; then 3053 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3054 fi 3055fi 3056 3057# test whether we have cygpath 3058if test -z "$CYGPATH_W"; then 3059 if (cygpath --version) >/dev/null 2>/dev/null; then 3060 CYGPATH_W='cygpath -w' 3061 else 3062 CYGPATH_W=echo 3063 fi 3064fi 3065 3066 3067# Define the identity of the package. 3068 PACKAGE='libXfont' 3069 VERSION='1.5.1' 3070 3071 3072cat >>confdefs.h <<_ACEOF 3073#define PACKAGE "$PACKAGE" 3074_ACEOF 3075 3076 3077cat >>confdefs.h <<_ACEOF 3078#define VERSION "$VERSION" 3079_ACEOF 3080 3081# Some tools Automake needs. 3082 3083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3084 3085 3086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3087 3088 3089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3090 3091 3092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3093 3094 3095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3096 3097# For better backward compatibility. To be removed once Automake 1.9.x 3098# dies out for good. For more background, see: 3099# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3100# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3101mkdir_p='$(MKDIR_P)' 3102 3103# We need awk for the "check" target (and possibly the TAP driver). The 3104# system "awk" is bad on some platforms. 3105# Always define AMTAR for backward compatibility. Yes, it's still used 3106# in the wild :-( We should find a proper way to deprecate it ... 3107AMTAR='$${TAR-tar}' 3108 3109 3110# We'll loop over all known methods to create a tar archive until one works. 3111_am_tools='gnutar pax cpio none' 3112 3113am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3114 3115 3116 3117 3118 3119 3120# POSIX will say in a future version that running "rm -f" with no argument 3121# is OK; and we want to be able to make that assumption in our Makefile 3122# recipes. So use an aggressive probe to check that the usage we want is 3123# actually supported "in the wild" to an acceptable degree. 3124# See automake bug#10828. 3125# To make any issue more visible, cause the running configure to be aborted 3126# by default if the 'rm' program in use doesn't match our expectations; the 3127# user can still override this though. 3128if rm -f && rm -fr && rm -rf; then : OK; else 3129 cat >&2 <<'END' 3130Oops! 3131 3132Your 'rm' program seems unable to run without file operands specified 3133on the command line, even when the '-f' option is present. This is contrary 3134to the behaviour of most rm programs out there, and not conforming with 3135the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3136 3137Please tell bug-automake@gnu.org about your system, including the value 3138of your $PATH and any error possibly output before this message. This 3139can help us improve future automake versions. 3140 3141END 3142 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3143 echo 'Configuration will proceed anyway, since you have set the' >&2 3144 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3145 echo >&2 3146 else 3147 cat >&2 <<'END' 3148Aborting the configuration process, to ensure you take notice of the issue. 3149 3150You can download and install GNU coreutils to get an 'rm' implementation 3151that behaves properly: <http://www.gnu.org/software/coreutils/>. 3152 3153If you want to complete the configuration process using your problematic 3154'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3155to "yes", and re-run configure. 3156 3157END 3158 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3159 fi 3160fi 3161 3162 3163# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3164# Must be called before any macros that run the compiler (like 3165# AC_PROG_LIBTOOL) to avoid autoconf errors. 3166DEPDIR="${am__leading_dot}deps" 3167 3168ac_config_commands="$ac_config_commands depfiles" 3169 3170 3171am_make=${MAKE-make} 3172cat > confinc << 'END' 3173am__doit: 3174 @echo this is the am__doit target 3175.PHONY: am__doit 3176END 3177# If we don't find an include directive, just comment out the code. 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3179$as_echo_n "checking for style of include used by $am_make... " >&6; } 3180am__include="#" 3181am__quote= 3182_am_result=none 3183# First try GNU make style include. 3184echo "include confinc" > confmf 3185# Ignore all kinds of additional output from 'make'. 3186case `$am_make -s -f confmf 2> /dev/null` in #( 3187*the\ am__doit\ target*) 3188 am__include=include 3189 am__quote= 3190 _am_result=GNU 3191 ;; 3192esac 3193# Now try BSD make style include. 3194if test "$am__include" = "#"; then 3195 echo '.include "confinc"' > confmf 3196 case `$am_make -s -f confmf 2> /dev/null` in #( 3197 *the\ am__doit\ target*) 3198 am__include=.include 3199 am__quote="\"" 3200 _am_result=BSD 3201 ;; 3202 esac 3203fi 3204 3205 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3207$as_echo "$_am_result" >&6; } 3208rm -f confinc confmf 3209 3210# Check whether --enable-dependency-tracking was given. 3211if test "${enable_dependency_tracking+set}" = set; then : 3212 enableval=$enable_dependency_tracking; 3213fi 3214 3215if test "x$enable_dependency_tracking" != xno; then 3216 am_depcomp="$ac_aux_dir/depcomp" 3217 AMDEPBACKSLASH='\' 3218 am__nodep='_no' 3219fi 3220 if test "x$enable_dependency_tracking" != xno; then 3221 AMDEP_TRUE= 3222 AMDEP_FALSE='#' 3223else 3224 AMDEP_TRUE='#' 3225 AMDEP_FALSE= 3226fi 3227 3228 3229ac_ext=c 3230ac_cpp='$CPP $CPPFLAGS' 3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3233ac_compiler_gnu=$ac_cv_c_compiler_gnu 3234if test -n "$ac_tool_prefix"; then 3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3236set dummy ${ac_tool_prefix}gcc; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_CC+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$CC"; then 3243 ac_cv_prog_CC="$CC" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262CC=$ac_cv_prog_CC 3263if test -n "$CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265$as_echo "$CC" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 3272fi 3273if test -z "$ac_cv_prog_CC"; then 3274 ac_ct_CC=$CC 3275 # Extract the first word of "gcc", so it can be a program name with args. 3276set dummy gcc; ac_word=$2 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3278$as_echo_n "checking for $ac_word... " >&6; } 3279if ${ac_cv_prog_ac_ct_CC+:} false; then : 3280 $as_echo_n "(cached) " >&6 3281else 3282 if test -n "$ac_ct_CC"; then 3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3284else 3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286for as_dir in $PATH 3287do 3288 IFS=$as_save_IFS 3289 test -z "$as_dir" && as_dir=. 3290 for ac_exec_ext in '' $ac_executable_extensions; do 3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3292 ac_cv_prog_ac_ct_CC="gcc" 3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3294 break 2 3295 fi 3296done 3297 done 3298IFS=$as_save_IFS 3299 3300fi 3301fi 3302ac_ct_CC=$ac_cv_prog_ac_ct_CC 3303if test -n "$ac_ct_CC"; then 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3305$as_echo "$ac_ct_CC" >&6; } 3306else 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308$as_echo "no" >&6; } 3309fi 3310 3311 if test "x$ac_ct_CC" = x; then 3312 CC="" 3313 else 3314 case $cross_compiling:$ac_tool_warned in 3315yes:) 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3318ac_tool_warned=yes ;; 3319esac 3320 CC=$ac_ct_CC 3321 fi 3322else 3323 CC="$ac_cv_prog_CC" 3324fi 3325 3326if test -z "$CC"; then 3327 if test -n "$ac_tool_prefix"; then 3328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3329set dummy ${ac_tool_prefix}cc; ac_word=$2 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3331$as_echo_n "checking for $ac_word... " >&6; } 3332if ${ac_cv_prog_CC+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 if test -n "$CC"; then 3336 ac_cv_prog_CC="$CC" # Let the user override the test. 3337else 3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3339for as_dir in $PATH 3340do 3341 IFS=$as_save_IFS 3342 test -z "$as_dir" && as_dir=. 3343 for ac_exec_ext in '' $ac_executable_extensions; do 3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3345 ac_cv_prog_CC="${ac_tool_prefix}cc" 3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3347 break 2 3348 fi 3349done 3350 done 3351IFS=$as_save_IFS 3352 3353fi 3354fi 3355CC=$ac_cv_prog_CC 3356if test -n "$CC"; then 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3358$as_echo "$CC" >&6; } 3359else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3361$as_echo "no" >&6; } 3362fi 3363 3364 3365 fi 3366fi 3367if test -z "$CC"; then 3368 # Extract the first word of "cc", so it can be a program name with args. 3369set dummy cc; ac_word=$2 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3371$as_echo_n "checking for $ac_word... " >&6; } 3372if ${ac_cv_prog_CC+:} false; then : 3373 $as_echo_n "(cached) " >&6 3374else 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377else 3378 ac_prog_rejected=no 3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380for as_dir in $PATH 3381do 3382 IFS=$as_save_IFS 3383 test -z "$as_dir" && as_dir=. 3384 for ac_exec_ext in '' $ac_executable_extensions; do 3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3387 ac_prog_rejected=yes 3388 continue 3389 fi 3390 ac_cv_prog_CC="cc" 3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3392 break 2 3393 fi 3394done 3395 done 3396IFS=$as_save_IFS 3397 3398if test $ac_prog_rejected = yes; then 3399 # We found a bogon in the path, so make sure we never use it. 3400 set dummy $ac_cv_prog_CC 3401 shift 3402 if test $# != 0; then 3403 # We chose a different compiler from the bogus one. 3404 # However, it has the same basename, so the bogon will be chosen 3405 # first if we set CC to just the basename; use the full file name. 3406 shift 3407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3408 fi 3409fi 3410fi 3411fi 3412CC=$ac_cv_prog_CC 3413if test -n "$CC"; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3415$as_echo "$CC" >&6; } 3416else 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418$as_echo "no" >&6; } 3419fi 3420 3421 3422fi 3423if test -z "$CC"; then 3424 if test -n "$ac_tool_prefix"; then 3425 for ac_prog in cl.exe 3426 do 3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3430$as_echo_n "checking for $ac_word... " >&6; } 3431if ${ac_cv_prog_CC+:} false; then : 3432 $as_echo_n "(cached) " >&6 3433else 3434 if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 test -z "$as_dir" && as_dir=. 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3446 break 2 3447 fi 3448done 3449 done 3450IFS=$as_save_IFS 3451 3452fi 3453fi 3454CC=$ac_cv_prog_CC 3455if test -n "$CC"; then 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3457$as_echo "$CC" >&6; } 3458else 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3460$as_echo "no" >&6; } 3461fi 3462 3463 3464 test -n "$CC" && break 3465 done 3466fi 3467if test -z "$CC"; then 3468 ac_ct_CC=$CC 3469 for ac_prog in cl.exe 3470do 3471 # Extract the first word of "$ac_prog", so it can be a program name with args. 3472set dummy $ac_prog; ac_word=$2 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3474$as_echo_n "checking for $ac_word... " >&6; } 3475if ${ac_cv_prog_ac_ct_CC+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 if test -n "$ac_ct_CC"; then 3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3480else 3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482for as_dir in $PATH 3483do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3488 ac_cv_prog_ac_ct_CC="$ac_prog" 3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3490 break 2 3491 fi 3492done 3493 done 3494IFS=$as_save_IFS 3495 3496fi 3497fi 3498ac_ct_CC=$ac_cv_prog_ac_ct_CC 3499if test -n "$ac_ct_CC"; then 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3501$as_echo "$ac_ct_CC" >&6; } 3502else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504$as_echo "no" >&6; } 3505fi 3506 3507 3508 test -n "$ac_ct_CC" && break 3509done 3510 3511 if test "x$ac_ct_CC" = x; then 3512 CC="" 3513 else 3514 case $cross_compiling:$ac_tool_warned in 3515yes:) 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3518ac_tool_warned=yes ;; 3519esac 3520 CC=$ac_ct_CC 3521 fi 3522fi 3523 3524fi 3525 3526 3527test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "no acceptable C compiler found in \$PATH 3530See \`config.log' for more details" "$LINENO" 5; } 3531 3532# Provide some information about the compiler. 3533$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3534set X $ac_compile 3535ac_compiler=$2 3536for ac_option in --version -v -V -qversion; do 3537 { { ac_try="$ac_compiler $ac_option >&5" 3538case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541esac 3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3543$as_echo "$ac_try_echo"; } >&5 3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3545 ac_status=$? 3546 if test -s conftest.err; then 3547 sed '10a\ 3548... rest of stderr output deleted ... 3549 10q' conftest.err >conftest.er1 3550 cat conftest.er1 >&5 3551 fi 3552 rm -f conftest.er1 conftest.err 3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3554 test $ac_status = 0; } 3555done 3556 3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568ac_clean_files_save=$ac_clean_files 3569ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3570# Try to create an executable without -o first, disregard a.out. 3571# It will help us diagnose broken compilers, and finding out an intuition 3572# of exeext. 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3574$as_echo_n "checking whether the C compiler works... " >&6; } 3575ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3576 3577# The possible output files: 3578ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3579 3580ac_rmfiles= 3581for ac_file in $ac_files 3582do 3583 case $ac_file in 3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3586 esac 3587done 3588rm -f $ac_rmfiles 3589 3590if { { ac_try="$ac_link_default" 3591case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3596$as_echo "$ac_try_echo"; } >&5 3597 (eval "$ac_link_default") 2>&5 3598 ac_status=$? 3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3600 test $ac_status = 0; }; then : 3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3602# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3603# in a Makefile. We should not override ac_cv_exeext if it was cached, 3604# so that the user can short-circuit this test for compilers unknown to 3605# Autoconf. 3606for ac_file in $ac_files '' 3607do 3608 test -f "$ac_file" || continue 3609 case $ac_file in 3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3611 ;; 3612 [ab].out ) 3613 # We found the default executable, but exeext='' is most 3614 # certainly right. 3615 break;; 3616 *.* ) 3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3618 then :; else 3619 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3620 fi 3621 # We set ac_cv_exeext here because the later test for it is not 3622 # safe: cross compilers may not add the suffix if given an `-o' 3623 # argument, so we may need to know it at that point already. 3624 # Even if this section looks crufty: it has the advantage of 3625 # actually working. 3626 break;; 3627 * ) 3628 break;; 3629 esac 3630done 3631test "$ac_cv_exeext" = no && ac_cv_exeext= 3632 3633else 3634 ac_file='' 3635fi 3636if test -z "$ac_file"; then : 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3638$as_echo "no" >&6; } 3639$as_echo "$as_me: failed program was:" >&5 3640sed 's/^/| /' conftest.$ac_ext >&5 3641 3642{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3644as_fn_error 77 "C compiler cannot create executables 3645See \`config.log' for more details" "$LINENO" 5; } 3646else 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3648$as_echo "yes" >&6; } 3649fi 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3651$as_echo_n "checking for C compiler default output file name... " >&6; } 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3653$as_echo "$ac_file" >&6; } 3654ac_exeext=$ac_cv_exeext 3655 3656rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3657ac_clean_files=$ac_clean_files_save 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3659$as_echo_n "checking for suffix of executables... " >&6; } 3660if { { ac_try="$ac_link" 3661case "(($ac_try" in 3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3663 *) ac_try_echo=$ac_try;; 3664esac 3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3666$as_echo "$ac_try_echo"; } >&5 3667 (eval "$ac_link") 2>&5 3668 ac_status=$? 3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3670 test $ac_status = 0; }; then : 3671 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3672# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3673# work properly (i.e., refer to `conftest.exe'), while it won't with 3674# `rm'. 3675for ac_file in conftest.exe conftest conftest.*; do 3676 test -f "$ac_file" || continue 3677 case $ac_file in 3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3680 break;; 3681 * ) break;; 3682 esac 3683done 3684else 3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3687as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3688See \`config.log' for more details" "$LINENO" 5; } 3689fi 3690rm -f conftest conftest$ac_cv_exeext 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3692$as_echo "$ac_cv_exeext" >&6; } 3693 3694rm -f conftest.$ac_ext 3695EXEEXT=$ac_cv_exeext 3696ac_exeext=$EXEEXT 3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699#include <stdio.h> 3700int 3701main () 3702{ 3703FILE *f = fopen ("conftest.out", "w"); 3704 return ferror (f) || fclose (f) != 0; 3705 3706 ; 3707 return 0; 3708} 3709_ACEOF 3710ac_clean_files="$ac_clean_files conftest.out" 3711# Check that the compiler produces executables we can run. If not, either 3712# the compiler is broken, or we cross compile. 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3714$as_echo_n "checking whether we are cross compiling... " >&6; } 3715if test "$cross_compiling" != yes; then 3716 { { ac_try="$ac_link" 3717case "(($ac_try" in 3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3719 *) ac_try_echo=$ac_try;; 3720esac 3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3722$as_echo "$ac_try_echo"; } >&5 3723 (eval "$ac_link") 2>&5 3724 ac_status=$? 3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3726 test $ac_status = 0; } 3727 if { ac_try='./conftest$ac_cv_exeext' 3728 { { case "(($ac_try" in 3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3730 *) ac_try_echo=$ac_try;; 3731esac 3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3733$as_echo "$ac_try_echo"; } >&5 3734 (eval "$ac_try") 2>&5 3735 ac_status=$? 3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3737 test $ac_status = 0; }; }; then 3738 cross_compiling=no 3739 else 3740 if test "$cross_compiling" = maybe; then 3741 cross_compiling=yes 3742 else 3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3745as_fn_error $? "cannot run C compiled programs. 3746If you meant to cross compile, use \`--host'. 3747See \`config.log' for more details" "$LINENO" 5; } 3748 fi 3749 fi 3750fi 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3752$as_echo "$cross_compiling" >&6; } 3753 3754rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3755ac_clean_files=$ac_clean_files_save 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3757$as_echo_n "checking for suffix of object files... " >&6; } 3758if ${ac_cv_objext+:} false; then : 3759 $as_echo_n "(cached) " >&6 3760else 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763 3764int 3765main () 3766{ 3767 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772rm -f conftest.o conftest.obj 3773if { { ac_try="$ac_compile" 3774case "(($ac_try" in 3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3776 *) ac_try_echo=$ac_try;; 3777esac 3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3779$as_echo "$ac_try_echo"; } >&5 3780 (eval "$ac_compile") 2>&5 3781 ac_status=$? 3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3783 test $ac_status = 0; }; then : 3784 for ac_file in conftest.o conftest.obj conftest.*; do 3785 test -f "$ac_file" || continue; 3786 case $ac_file in 3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3789 break;; 3790 esac 3791done 3792else 3793 $as_echo "$as_me: failed program was:" >&5 3794sed 's/^/| /' conftest.$ac_ext >&5 3795 3796{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3798as_fn_error $? "cannot compute suffix of object files: cannot compile 3799See \`config.log' for more details" "$LINENO" 5; } 3800fi 3801rm -f conftest.$ac_cv_objext conftest.$ac_ext 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3804$as_echo "$ac_cv_objext" >&6; } 3805OBJEXT=$ac_cv_objext 3806ac_objext=$OBJEXT 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3808$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3809if ${ac_cv_c_compiler_gnu+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3813/* end confdefs.h. */ 3814 3815int 3816main () 3817{ 3818#ifndef __GNUC__ 3819 choke me 3820#endif 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826if ac_fn_c_try_compile "$LINENO"; then : 3827 ac_compiler_gnu=yes 3828else 3829 ac_compiler_gnu=no 3830fi 3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3832ac_cv_c_compiler_gnu=$ac_compiler_gnu 3833 3834fi 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3836$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3837if test $ac_compiler_gnu = yes; then 3838 GCC=yes 3839else 3840 GCC= 3841fi 3842ac_test_CFLAGS=${CFLAGS+set} 3843ac_save_CFLAGS=$CFLAGS 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3845$as_echo_n "checking whether $CC accepts -g... " >&6; } 3846if ${ac_cv_prog_cc_g+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848else 3849 ac_save_c_werror_flag=$ac_c_werror_flag 3850 ac_c_werror_flag=yes 3851 ac_cv_prog_cc_g=no 3852 CFLAGS="-g" 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855 3856int 3857main () 3858{ 3859 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864if ac_fn_c_try_compile "$LINENO"; then : 3865 ac_cv_prog_cc_g=yes 3866else 3867 CFLAGS="" 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879if ac_fn_c_try_compile "$LINENO"; then : 3880 3881else 3882 ac_c_werror_flag=$ac_save_c_werror_flag 3883 CFLAGS="-g" 3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886 3887int 3888main () 3889{ 3890 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895if ac_fn_c_try_compile "$LINENO"; then : 3896 ac_cv_prog_cc_g=yes 3897fi 3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3899fi 3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3901fi 3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3903 ac_c_werror_flag=$ac_save_c_werror_flag 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3906$as_echo "$ac_cv_prog_cc_g" >&6; } 3907if test "$ac_test_CFLAGS" = set; then 3908 CFLAGS=$ac_save_CFLAGS 3909elif test $ac_cv_prog_cc_g = yes; then 3910 if test "$GCC" = yes; then 3911 CFLAGS="-g -O2" 3912 else 3913 CFLAGS="-g" 3914 fi 3915else 3916 if test "$GCC" = yes; then 3917 CFLAGS="-O2" 3918 else 3919 CFLAGS= 3920 fi 3921fi 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3923$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3924if ${ac_cv_prog_cc_c89+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 ac_cv_prog_cc_c89=no 3928ac_save_CC=$CC 3929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930/* end confdefs.h. */ 3931#include <stdarg.h> 3932#include <stdio.h> 3933struct stat; 3934/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3935struct buf { int x; }; 3936FILE * (*rcsopen) (struct buf *, struct stat *, int); 3937static char *e (p, i) 3938 char **p; 3939 int i; 3940{ 3941 return p[i]; 3942} 3943static char *f (char * (*g) (char **, int), char **p, ...) 3944{ 3945 char *s; 3946 va_list v; 3947 va_start (v,p); 3948 s = g (p, va_arg (v,int)); 3949 va_end (v); 3950 return s; 3951} 3952 3953/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3954 function prototypes and stuff, but not '\xHH' hex character constants. 3955 These don't provoke an error unfortunately, instead are silently treated 3956 as 'x'. The following induces an error, until -std is added to get 3957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3958 array size at least. It's necessary to write '\x00'==0 to get something 3959 that's true only with -std. */ 3960int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3961 3962/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3963 inside strings and character constants. */ 3964#define FOO(x) 'x' 3965int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3966 3967int test (int i, double x); 3968struct s1 {int (*f) (int a);}; 3969struct s2 {int (*f) (double a);}; 3970int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3971int argc; 3972char **argv; 3973int 3974main () 3975{ 3976return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3983do 3984 CC="$ac_save_CC $ac_arg" 3985 if ac_fn_c_try_compile "$LINENO"; then : 3986 ac_cv_prog_cc_c89=$ac_arg 3987fi 3988rm -f core conftest.err conftest.$ac_objext 3989 test "x$ac_cv_prog_cc_c89" != "xno" && break 3990done 3991rm -f conftest.$ac_ext 3992CC=$ac_save_CC 3993 3994fi 3995# AC_CACHE_VAL 3996case "x$ac_cv_prog_cc_c89" in 3997 x) 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3999$as_echo "none needed" >&6; } ;; 4000 xno) 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4002$as_echo "unsupported" >&6; } ;; 4003 *) 4004 CC="$CC $ac_cv_prog_cc_c89" 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4006$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4007esac 4008if test "x$ac_cv_prog_cc_c89" != xno; then : 4009 4010fi 4011 4012ac_ext=c 4013ac_cpp='$CPP $CPPFLAGS' 4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4016ac_compiler_gnu=$ac_cv_c_compiler_gnu 4017 4018ac_ext=c 4019ac_cpp='$CPP $CPPFLAGS' 4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4022ac_compiler_gnu=$ac_cv_c_compiler_gnu 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4024$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4025if ${am_cv_prog_cc_c_o+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039 # Make sure it works both with $CC and with simple cc. 4040 # Following AC_PROG_CC_C_O, we do the test twice because some 4041 # compilers refuse to overwrite an existing .o file with -o, 4042 # though they will create one. 4043 am_cv_prog_cc_c_o=yes 4044 for am_i in 1 2; do 4045 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4046 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); } \ 4050 && test -f conftest2.$ac_objext; then 4051 : OK 4052 else 4053 am_cv_prog_cc_c_o=no 4054 break 4055 fi 4056 done 4057 rm -f core conftest* 4058 unset am_i 4059fi 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4061$as_echo "$am_cv_prog_cc_c_o" >&6; } 4062if test "$am_cv_prog_cc_c_o" != yes; then 4063 # Losing compiler, so override with the script. 4064 # FIXME: It is wrong to rewrite CC. 4065 # But if we don't then we get into trouble of one sort or another. 4066 # A longer-term fix would be to have automake use am__CC in this case, 4067 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4068 CC="$am_aux_dir/compile $CC" 4069fi 4070ac_ext=c 4071ac_cpp='$CPP $CPPFLAGS' 4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4074ac_compiler_gnu=$ac_cv_c_compiler_gnu 4075 4076 4077depcc="$CC" am_compiler_list= 4078 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4080$as_echo_n "checking dependency style of $depcc... " >&6; } 4081if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4085 # We make a subdir and do the tests there. Otherwise we can end up 4086 # making bogus files that we don't know about and never remove. For 4087 # instance it was reported that on HP-UX the gcc test will end up 4088 # making a dummy file named 'D' -- because '-MD' means "put the output 4089 # in D". 4090 rm -rf conftest.dir 4091 mkdir conftest.dir 4092 # Copy depcomp to subdir because otherwise we won't find it if we're 4093 # using a relative directory. 4094 cp "$am_depcomp" conftest.dir 4095 cd conftest.dir 4096 # We will build objects and dependencies in a subdirectory because 4097 # it helps to detect inapplicable dependency modes. For instance 4098 # both Tru64's cc and ICC support -MD to output dependencies as a 4099 # side effect of compilation, but ICC will put the dependencies in 4100 # the current directory while Tru64 will put them in the object 4101 # directory. 4102 mkdir sub 4103 4104 am_cv_CC_dependencies_compiler_type=none 4105 if test "$am_compiler_list" = ""; then 4106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4107 fi 4108 am__universal=false 4109 case " $depcc " in #( 4110 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4111 esac 4112 4113 for depmode in $am_compiler_list; do 4114 # Setup a source with many dependencies, because some compilers 4115 # like to wrap large dependency lists on column 80 (with \), and 4116 # we should not choose a depcomp mode which is confused by this. 4117 # 4118 # We need to recreate these files for each test, as the compiler may 4119 # overwrite some of them when testing with obscure command lines. 4120 # This happens at least with the AIX C compiler. 4121 : > sub/conftest.c 4122 for i in 1 2 3 4 5 6; do 4123 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4124 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4125 # Solaris 10 /bin/sh. 4126 echo '/* dummy */' > sub/conftst$i.h 4127 done 4128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4129 4130 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4131 # mode. It turns out that the SunPro C++ compiler does not properly 4132 # handle '-M -o', and we need to detect this. Also, some Intel 4133 # versions had trouble with output in subdirs. 4134 am__obj=sub/conftest.${OBJEXT-o} 4135 am__minus_obj="-o $am__obj" 4136 case $depmode in 4137 gcc) 4138 # This depmode causes a compiler race in universal mode. 4139 test "$am__universal" = false || continue 4140 ;; 4141 nosideeffect) 4142 # After this tag, mechanisms are not by side-effect, so they'll 4143 # only be used when explicitly requested. 4144 if test "x$enable_dependency_tracking" = xyes; then 4145 continue 4146 else 4147 break 4148 fi 4149 ;; 4150 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4151 # This compiler won't grok '-c -o', but also, the minuso test has 4152 # not run yet. These depmodes are late enough in the game, and 4153 # so weak that their functioning should not be impacted. 4154 am__obj=conftest.${OBJEXT-o} 4155 am__minus_obj= 4156 ;; 4157 none) break ;; 4158 esac 4159 if depmode=$depmode \ 4160 source=sub/conftest.c object=$am__obj \ 4161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4163 >/dev/null 2>conftest.err && 4164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4168 # icc doesn't choke on unknown options, it will just issue warnings 4169 # or remarks (even with -Werror). So we grep stderr for any message 4170 # that says an option was ignored or not supported. 4171 # When given -MP, icc 7.0 and 7.1 complain thusly: 4172 # icc: Command line warning: ignoring option '-M'; no argument required 4173 # The diagnosis changed in icc 8.0: 4174 # icc: Command line remark: option '-MP' not supported 4175 if (grep 'ignoring option' conftest.err || 4176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4177 am_cv_CC_dependencies_compiler_type=$depmode 4178 break 4179 fi 4180 fi 4181 done 4182 4183 cd .. 4184 rm -rf conftest.dir 4185else 4186 am_cv_CC_dependencies_compiler_type=none 4187fi 4188 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4191$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4192CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4193 4194 if 4195 test "x$enable_dependency_tracking" != xno \ 4196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4197 am__fastdepCC_TRUE= 4198 am__fastdepCC_FALSE='#' 4199else 4200 am__fastdepCC_TRUE='#' 4201 am__fastdepCC_FALSE= 4202fi 4203 4204 4205 4206ac_ext=c 4207ac_cpp='$CPP $CPPFLAGS' 4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4210ac_compiler_gnu=$ac_cv_c_compiler_gnu 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4212$as_echo_n "checking how to run the C preprocessor... " >&6; } 4213# On Suns, sometimes $CPP names a directory. 4214if test -n "$CPP" && test -d "$CPP"; then 4215 CPP= 4216fi 4217if test -z "$CPP"; then 4218 if ${ac_cv_prog_CPP+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 # Double quotes because CPP needs to be expanded 4222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4223 do 4224 ac_preproc_ok=false 4225for ac_c_preproc_warn_flag in '' yes 4226do 4227 # Use a header file that comes with gcc, so configuring glibc 4228 # with a fresh cross-compiler works. 4229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4230 # <limits.h> exists even on freestanding compilers. 4231 # On the NeXT, cc -E runs the code through the compiler's parser, 4232 # not just through cpp. "Syntax error" is here to catch this case. 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234/* end confdefs.h. */ 4235#ifdef __STDC__ 4236# include <limits.h> 4237#else 4238# include <assert.h> 4239#endif 4240 Syntax error 4241_ACEOF 4242if ac_fn_c_try_cpp "$LINENO"; then : 4243 4244else 4245 # Broken: fails on valid input. 4246continue 4247fi 4248rm -f conftest.err conftest.i conftest.$ac_ext 4249 4250 # OK, works on sane cases. Now check whether nonexistent headers 4251 # can be detected and how. 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253/* end confdefs.h. */ 4254#include <ac_nonexistent.h> 4255_ACEOF 4256if ac_fn_c_try_cpp "$LINENO"; then : 4257 # Broken: success on invalid input. 4258continue 4259else 4260 # Passes both tests. 4261ac_preproc_ok=: 4262break 4263fi 4264rm -f conftest.err conftest.i conftest.$ac_ext 4265 4266done 4267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4268rm -f conftest.i conftest.err conftest.$ac_ext 4269if $ac_preproc_ok; then : 4270 break 4271fi 4272 4273 done 4274 ac_cv_prog_CPP=$CPP 4275 4276fi 4277 CPP=$ac_cv_prog_CPP 4278else 4279 ac_cv_prog_CPP=$CPP 4280fi 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4282$as_echo "$CPP" >&6; } 4283ac_preproc_ok=false 4284for ac_c_preproc_warn_flag in '' yes 4285do 4286 # Use a header file that comes with gcc, so configuring glibc 4287 # with a fresh cross-compiler works. 4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4289 # <limits.h> exists even on freestanding compilers. 4290 # On the NeXT, cc -E runs the code through the compiler's parser, 4291 # not just through cpp. "Syntax error" is here to catch this case. 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4293/* end confdefs.h. */ 4294#ifdef __STDC__ 4295# include <limits.h> 4296#else 4297# include <assert.h> 4298#endif 4299 Syntax error 4300_ACEOF 4301if ac_fn_c_try_cpp "$LINENO"; then : 4302 4303else 4304 # Broken: fails on valid input. 4305continue 4306fi 4307rm -f conftest.err conftest.i conftest.$ac_ext 4308 4309 # OK, works on sane cases. Now check whether nonexistent headers 4310 # can be detected and how. 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313#include <ac_nonexistent.h> 4314_ACEOF 4315if ac_fn_c_try_cpp "$LINENO"; then : 4316 # Broken: success on invalid input. 4317continue 4318else 4319 # Passes both tests. 4320ac_preproc_ok=: 4321break 4322fi 4323rm -f conftest.err conftest.i conftest.$ac_ext 4324 4325done 4326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4327rm -f conftest.i conftest.err conftest.$ac_ext 4328if $ac_preproc_ok; then : 4329 4330else 4331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4333as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4334See \`config.log' for more details" "$LINENO" 5; } 4335fi 4336 4337ac_ext=c 4338ac_cpp='$CPP $CPPFLAGS' 4339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4341ac_compiler_gnu=$ac_cv_c_compiler_gnu 4342 4343 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4345$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4346if ${ac_cv_path_GREP+:} false; then : 4347 $as_echo_n "(cached) " >&6 4348else 4349 if test -z "$GREP"; then 4350 ac_path_GREP_found=false 4351 # Loop through the user's path and test for each of PROGNAME-LIST 4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4354do 4355 IFS=$as_save_IFS 4356 test -z "$as_dir" && as_dir=. 4357 for ac_prog in grep ggrep; do 4358 for ac_exec_ext in '' $ac_executable_extensions; do 4359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4360 as_fn_executable_p "$ac_path_GREP" || continue 4361# Check for GNU ac_path_GREP and select it if it is found. 4362 # Check for GNU $ac_path_GREP 4363case `"$ac_path_GREP" --version 2>&1` in 4364*GNU*) 4365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4366*) 4367 ac_count=0 4368 $as_echo_n 0123456789 >"conftest.in" 4369 while : 4370 do 4371 cat "conftest.in" "conftest.in" >"conftest.tmp" 4372 mv "conftest.tmp" "conftest.in" 4373 cp "conftest.in" "conftest.nl" 4374 $as_echo 'GREP' >> "conftest.nl" 4375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4377 as_fn_arith $ac_count + 1 && ac_count=$as_val 4378 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4379 # Best one so far, save it but keep looking for a better one 4380 ac_cv_path_GREP="$ac_path_GREP" 4381 ac_path_GREP_max=$ac_count 4382 fi 4383 # 10*(2^10) chars as input seems more than enough 4384 test $ac_count -gt 10 && break 4385 done 4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4387esac 4388 4389 $ac_path_GREP_found && break 3 4390 done 4391 done 4392 done 4393IFS=$as_save_IFS 4394 if test -z "$ac_cv_path_GREP"; then 4395 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4396 fi 4397else 4398 ac_cv_path_GREP=$GREP 4399fi 4400 4401fi 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4403$as_echo "$ac_cv_path_GREP" >&6; } 4404 GREP="$ac_cv_path_GREP" 4405 4406 4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4408$as_echo_n "checking for egrep... " >&6; } 4409if ${ac_cv_path_EGREP+:} false; then : 4410 $as_echo_n "(cached) " >&6 4411else 4412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4413 then ac_cv_path_EGREP="$GREP -E" 4414 else 4415 if test -z "$EGREP"; then 4416 ac_path_EGREP_found=false 4417 # Loop through the user's path and test for each of PROGNAME-LIST 4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4420do 4421 IFS=$as_save_IFS 4422 test -z "$as_dir" && as_dir=. 4423 for ac_prog in egrep; do 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4426 as_fn_executable_p "$ac_path_EGREP" || continue 4427# Check for GNU ac_path_EGREP and select it if it is found. 4428 # Check for GNU $ac_path_EGREP 4429case `"$ac_path_EGREP" --version 2>&1` in 4430*GNU*) 4431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4432*) 4433 ac_count=0 4434 $as_echo_n 0123456789 >"conftest.in" 4435 while : 4436 do 4437 cat "conftest.in" "conftest.in" >"conftest.tmp" 4438 mv "conftest.tmp" "conftest.in" 4439 cp "conftest.in" "conftest.nl" 4440 $as_echo 'EGREP' >> "conftest.nl" 4441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4443 as_fn_arith $ac_count + 1 && ac_count=$as_val 4444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4445 # Best one so far, save it but keep looking for a better one 4446 ac_cv_path_EGREP="$ac_path_EGREP" 4447 ac_path_EGREP_max=$ac_count 4448 fi 4449 # 10*(2^10) chars as input seems more than enough 4450 test $ac_count -gt 10 && break 4451 done 4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4453esac 4454 4455 $ac_path_EGREP_found && break 3 4456 done 4457 done 4458 done 4459IFS=$as_save_IFS 4460 if test -z "$ac_cv_path_EGREP"; then 4461 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4462 fi 4463else 4464 ac_cv_path_EGREP=$EGREP 4465fi 4466 4467 fi 4468fi 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4470$as_echo "$ac_cv_path_EGREP" >&6; } 4471 EGREP="$ac_cv_path_EGREP" 4472 4473 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4475$as_echo_n "checking for ANSI C header files... " >&6; } 4476if ${ac_cv_header_stdc+:} false; then : 4477 $as_echo_n "(cached) " >&6 4478else 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480/* end confdefs.h. */ 4481#include <stdlib.h> 4482#include <stdarg.h> 4483#include <string.h> 4484#include <float.h> 4485 4486int 4487main () 4488{ 4489 4490 ; 4491 return 0; 4492} 4493_ACEOF 4494if ac_fn_c_try_compile "$LINENO"; then : 4495 ac_cv_header_stdc=yes 4496else 4497 ac_cv_header_stdc=no 4498fi 4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4500 4501if test $ac_cv_header_stdc = yes; then 4502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505#include <string.h> 4506 4507_ACEOF 4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4509 $EGREP "memchr" >/dev/null 2>&1; then : 4510 4511else 4512 ac_cv_header_stdc=no 4513fi 4514rm -f conftest* 4515 4516fi 4517 4518if test $ac_cv_header_stdc = yes; then 4519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522#include <stdlib.h> 4523 4524_ACEOF 4525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4526 $EGREP "free" >/dev/null 2>&1; then : 4527 4528else 4529 ac_cv_header_stdc=no 4530fi 4531rm -f conftest* 4532 4533fi 4534 4535if test $ac_cv_header_stdc = yes; then 4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4537 if test "$cross_compiling" = yes; then : 4538 : 4539else 4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542#include <ctype.h> 4543#include <stdlib.h> 4544#if ((' ' & 0x0FF) == 0x020) 4545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4547#else 4548# define ISLOWER(c) \ 4549 (('a' <= (c) && (c) <= 'i') \ 4550 || ('j' <= (c) && (c) <= 'r') \ 4551 || ('s' <= (c) && (c) <= 'z')) 4552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4553#endif 4554 4555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4556int 4557main () 4558{ 4559 int i; 4560 for (i = 0; i < 256; i++) 4561 if (XOR (islower (i), ISLOWER (i)) 4562 || toupper (i) != TOUPPER (i)) 4563 return 2; 4564 return 0; 4565} 4566_ACEOF 4567if ac_fn_c_try_run "$LINENO"; then : 4568 4569else 4570 ac_cv_header_stdc=no 4571fi 4572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4573 conftest.$ac_objext conftest.beam conftest.$ac_ext 4574fi 4575 4576fi 4577fi 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4579$as_echo "$ac_cv_header_stdc" >&6; } 4580if test $ac_cv_header_stdc = yes; then 4581 4582$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4583 4584fi 4585 4586# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4588 inttypes.h stdint.h unistd.h 4589do : 4590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4592" 4593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4594 cat >>confdefs.h <<_ACEOF 4595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4596_ACEOF 4597 4598fi 4599 4600done 4601 4602 4603 4604 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4605if test "x$ac_cv_header_minix_config_h" = xyes; then : 4606 MINIX=yes 4607else 4608 MINIX= 4609fi 4610 4611 4612 if test "$MINIX" = yes; then 4613 4614$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4615 4616 4617$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4618 4619 4620$as_echo "#define _MINIX 1" >>confdefs.h 4621 4622 fi 4623 4624 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4626$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4627if ${ac_cv_safe_to_define___extensions__+:} false; then : 4628 $as_echo_n "(cached) " >&6 4629else 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632 4633# define __EXTENSIONS__ 1 4634 $ac_includes_default 4635int 4636main () 4637{ 4638 4639 ; 4640 return 0; 4641} 4642_ACEOF 4643if ac_fn_c_try_compile "$LINENO"; then : 4644 ac_cv_safe_to_define___extensions__=yes 4645else 4646 ac_cv_safe_to_define___extensions__=no 4647fi 4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4651$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4652 test $ac_cv_safe_to_define___extensions__ = yes && 4653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4654 4655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4656 4657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4658 4659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4660 4661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4662 4663 4664 4665# Initialize libtool 4666case `pwd` in 4667 *\ * | *\ *) 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4669$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4670esac 4671 4672 4673 4674macro_version='2.4.2' 4675macro_revision='1.3337' 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689ltmain="$ac_aux_dir/ltmain.sh" 4690 4691# Make sure we can run config.sub. 4692$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4693 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4694 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4696$as_echo_n "checking build system type... " >&6; } 4697if ${ac_cv_build+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699else 4700 ac_build_alias=$build_alias 4701test "x$ac_build_alias" = x && 4702 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4703test "x$ac_build_alias" = x && 4704 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4705ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4707 4708fi 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4710$as_echo "$ac_cv_build" >&6; } 4711case $ac_cv_build in 4712*-*-*) ;; 4713*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4714esac 4715build=$ac_cv_build 4716ac_save_IFS=$IFS; IFS='-' 4717set x $ac_cv_build 4718shift 4719build_cpu=$1 4720build_vendor=$2 4721shift; shift 4722# Remember, the first character of IFS is used to create $*, 4723# except with old shells: 4724build_os=$* 4725IFS=$ac_save_IFS 4726case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4727 4728 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4730$as_echo_n "checking host system type... " >&6; } 4731if ${ac_cv_host+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 if test "x$host_alias" = x; then 4735 ac_cv_host=$ac_cv_build 4736else 4737 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4739fi 4740 4741fi 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4743$as_echo "$ac_cv_host" >&6; } 4744case $ac_cv_host in 4745*-*-*) ;; 4746*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4747esac 4748host=$ac_cv_host 4749ac_save_IFS=$IFS; IFS='-' 4750set x $ac_cv_host 4751shift 4752host_cpu=$1 4753host_vendor=$2 4754shift; shift 4755# Remember, the first character of IFS is used to create $*, 4756# except with old shells: 4757host_os=$* 4758IFS=$ac_save_IFS 4759case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4760 4761 4762# Backslashify metacharacters that are still active within 4763# double-quoted strings. 4764sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4765 4766# Same as above, but do not quote variable references. 4767double_quote_subst='s/\(["`\\]\)/\\\1/g' 4768 4769# Sed substitution to delay expansion of an escaped shell variable in a 4770# double_quote_subst'ed string. 4771delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4772 4773# Sed substitution to delay expansion of an escaped single quote. 4774delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4775 4776# Sed substitution to avoid accidental globbing in evaled expressions 4777no_glob_subst='s/\*/\\\*/g' 4778 4779ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4780ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4781ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4782 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4784$as_echo_n "checking how to print strings... " >&6; } 4785# Test print first, because it will be a builtin if present. 4786if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4787 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4788 ECHO='print -r --' 4789elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4790 ECHO='printf %s\n' 4791else 4792 # Use this function as a fallback that always works. 4793 func_fallback_echo () 4794 { 4795 eval 'cat <<_LTECHO_EOF 4796$1 4797_LTECHO_EOF' 4798 } 4799 ECHO='func_fallback_echo' 4800fi 4801 4802# func_echo_all arg... 4803# Invoke $ECHO with all args, space-separated. 4804func_echo_all () 4805{ 4806 $ECHO "" 4807} 4808 4809case "$ECHO" in 4810 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4811$as_echo "printf" >&6; } ;; 4812 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4813$as_echo "print -r" >&6; } ;; 4814 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4815$as_echo "cat" >&6; } ;; 4816esac 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4832$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4833if ${ac_cv_path_SED+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4837 for ac_i in 1 2 3 4 5 6 7; do 4838 ac_script="$ac_script$as_nl$ac_script" 4839 done 4840 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4841 { ac_script=; unset ac_script;} 4842 if test -z "$SED"; then 4843 ac_path_SED_found=false 4844 # Loop through the user's path and test for each of PROGNAME-LIST 4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4846for as_dir in $PATH 4847do 4848 IFS=$as_save_IFS 4849 test -z "$as_dir" && as_dir=. 4850 for ac_prog in sed gsed; do 4851 for ac_exec_ext in '' $ac_executable_extensions; do 4852 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4853 as_fn_executable_p "$ac_path_SED" || continue 4854# Check for GNU ac_path_SED and select it if it is found. 4855 # Check for GNU $ac_path_SED 4856case `"$ac_path_SED" --version 2>&1` in 4857*GNU*) 4858 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4859*) 4860 ac_count=0 4861 $as_echo_n 0123456789 >"conftest.in" 4862 while : 4863 do 4864 cat "conftest.in" "conftest.in" >"conftest.tmp" 4865 mv "conftest.tmp" "conftest.in" 4866 cp "conftest.in" "conftest.nl" 4867 $as_echo '' >> "conftest.nl" 4868 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4870 as_fn_arith $ac_count + 1 && ac_count=$as_val 4871 if test $ac_count -gt ${ac_path_SED_max-0}; then 4872 # Best one so far, save it but keep looking for a better one 4873 ac_cv_path_SED="$ac_path_SED" 4874 ac_path_SED_max=$ac_count 4875 fi 4876 # 10*(2^10) chars as input seems more than enough 4877 test $ac_count -gt 10 && break 4878 done 4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4880esac 4881 4882 $ac_path_SED_found && break 3 4883 done 4884 done 4885 done 4886IFS=$as_save_IFS 4887 if test -z "$ac_cv_path_SED"; then 4888 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4889 fi 4890else 4891 ac_cv_path_SED=$SED 4892fi 4893 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4896$as_echo "$ac_cv_path_SED" >&6; } 4897 SED="$ac_cv_path_SED" 4898 rm -f conftest.sed 4899 4900test -z "$SED" && SED=sed 4901Xsed="$SED -e 1s/^X//" 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4914$as_echo_n "checking for fgrep... " >&6; } 4915if ${ac_cv_path_FGREP+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4919 then ac_cv_path_FGREP="$GREP -F" 4920 else 4921 if test -z "$FGREP"; then 4922 ac_path_FGREP_found=false 4923 # Loop through the user's path and test for each of PROGNAME-LIST 4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4926do 4927 IFS=$as_save_IFS 4928 test -z "$as_dir" && as_dir=. 4929 for ac_prog in fgrep; do 4930 for ac_exec_ext in '' $ac_executable_extensions; do 4931 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4932 as_fn_executable_p "$ac_path_FGREP" || continue 4933# Check for GNU ac_path_FGREP and select it if it is found. 4934 # Check for GNU $ac_path_FGREP 4935case `"$ac_path_FGREP" --version 2>&1` in 4936*GNU*) 4937 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4938*) 4939 ac_count=0 4940 $as_echo_n 0123456789 >"conftest.in" 4941 while : 4942 do 4943 cat "conftest.in" "conftest.in" >"conftest.tmp" 4944 mv "conftest.tmp" "conftest.in" 4945 cp "conftest.in" "conftest.nl" 4946 $as_echo 'FGREP' >> "conftest.nl" 4947 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4949 as_fn_arith $ac_count + 1 && ac_count=$as_val 4950 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4951 # Best one so far, save it but keep looking for a better one 4952 ac_cv_path_FGREP="$ac_path_FGREP" 4953 ac_path_FGREP_max=$ac_count 4954 fi 4955 # 10*(2^10) chars as input seems more than enough 4956 test $ac_count -gt 10 && break 4957 done 4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4959esac 4960 4961 $ac_path_FGREP_found && break 3 4962 done 4963 done 4964 done 4965IFS=$as_save_IFS 4966 if test -z "$ac_cv_path_FGREP"; then 4967 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4968 fi 4969else 4970 ac_cv_path_FGREP=$FGREP 4971fi 4972 4973 fi 4974fi 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4976$as_echo "$ac_cv_path_FGREP" >&6; } 4977 FGREP="$ac_cv_path_FGREP" 4978 4979 4980test -z "$GREP" && GREP=grep 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000# Check whether --with-gnu-ld was given. 5001if test "${with_gnu_ld+set}" = set; then : 5002 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5003else 5004 with_gnu_ld=no 5005fi 5006 5007ac_prog=ld 5008if test "$GCC" = yes; then 5009 # Check if gcc -print-prog-name=ld gives a path. 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5011$as_echo_n "checking for ld used by $CC... " >&6; } 5012 case $host in 5013 *-*-mingw*) 5014 # gcc leaves a trailing carriage return which upsets mingw 5015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5016 *) 5017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5018 esac 5019 case $ac_prog in 5020 # Accept absolute paths. 5021 [\\/]* | ?:[\\/]*) 5022 re_direlt='/[^/][^/]*/\.\./' 5023 # Canonicalize the pathname of ld 5024 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5025 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5026 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5027 done 5028 test -z "$LD" && LD="$ac_prog" 5029 ;; 5030 "") 5031 # If it fails, then pretend we aren't using GCC. 5032 ac_prog=ld 5033 ;; 5034 *) 5035 # If it is relative, then search for the first ld in PATH. 5036 with_gnu_ld=unknown 5037 ;; 5038 esac 5039elif test "$with_gnu_ld" = yes; then 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5041$as_echo_n "checking for GNU ld... " >&6; } 5042else 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5044$as_echo_n "checking for non-GNU ld... " >&6; } 5045fi 5046if ${lt_cv_path_LD+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 if test -z "$LD"; then 5050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5051 for ac_dir in $PATH; do 5052 IFS="$lt_save_ifs" 5053 test -z "$ac_dir" && ac_dir=. 5054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5055 lt_cv_path_LD="$ac_dir/$ac_prog" 5056 # Check to see if the program is GNU ld. I'd rather use --version, 5057 # but apparently some variants of GNU ld only accept -v. 5058 # Break only if it was the GNU/non-GNU ld that we prefer. 5059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5060 *GNU* | *'with BFD'*) 5061 test "$with_gnu_ld" != no && break 5062 ;; 5063 *) 5064 test "$with_gnu_ld" != yes && break 5065 ;; 5066 esac 5067 fi 5068 done 5069 IFS="$lt_save_ifs" 5070else 5071 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5072fi 5073fi 5074 5075LD="$lt_cv_path_LD" 5076if test -n "$LD"; then 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5078$as_echo "$LD" >&6; } 5079else 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5081$as_echo "no" >&6; } 5082fi 5083test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5085$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5086if ${lt_cv_prog_gnu_ld+:} false; then : 5087 $as_echo_n "(cached) " >&6 5088else 5089 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5090case `$LD -v 2>&1 </dev/null` in 5091*GNU* | *'with BFD'*) 5092 lt_cv_prog_gnu_ld=yes 5093 ;; 5094*) 5095 lt_cv_prog_gnu_ld=no 5096 ;; 5097esac 5098fi 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5100$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5101with_gnu_ld=$lt_cv_prog_gnu_ld 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5112$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5113if ${lt_cv_path_NM+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 if test -n "$NM"; then 5117 # Let the user override the test. 5118 lt_cv_path_NM="$NM" 5119else 5120 lt_nm_to_check="${ac_tool_prefix}nm" 5121 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5122 lt_nm_to_check="$lt_nm_to_check nm" 5123 fi 5124 for lt_tmp_nm in $lt_nm_to_check; do 5125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5126 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5127 IFS="$lt_save_ifs" 5128 test -z "$ac_dir" && ac_dir=. 5129 tmp_nm="$ac_dir/$lt_tmp_nm" 5130 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5131 # Check to see if the nm accepts a BSD-compat flag. 5132 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5133 # nm: unknown option "B" ignored 5134 # Tru64's nm complains that /dev/null is an invalid object file 5135 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5136 */dev/null* | *'Invalid file or object type'*) 5137 lt_cv_path_NM="$tmp_nm -B" 5138 break 5139 ;; 5140 *) 5141 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5142 */dev/null*) 5143 lt_cv_path_NM="$tmp_nm -p" 5144 break 5145 ;; 5146 *) 5147 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5148 continue # so that we can try to find one that supports BSD flags 5149 ;; 5150 esac 5151 ;; 5152 esac 5153 fi 5154 done 5155 IFS="$lt_save_ifs" 5156 done 5157 : ${lt_cv_path_NM=no} 5158fi 5159fi 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5161$as_echo "$lt_cv_path_NM" >&6; } 5162if test "$lt_cv_path_NM" != "no"; then 5163 NM="$lt_cv_path_NM" 5164else 5165 # Didn't find any BSD compatible name lister, look for dumpbin. 5166 if test -n "$DUMPBIN"; then : 5167 # Let the user override the test. 5168 else 5169 if test -n "$ac_tool_prefix"; then 5170 for ac_prog in dumpbin "link -dump" 5171 do 5172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5173set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5175$as_echo_n "checking for $ac_word... " >&6; } 5176if ${ac_cv_prog_DUMPBIN+:} false; then : 5177 $as_echo_n "(cached) " >&6 5178else 5179 if test -n "$DUMPBIN"; then 5180 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5181else 5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5183for as_dir in $PATH 5184do 5185 IFS=$as_save_IFS 5186 test -z "$as_dir" && as_dir=. 5187 for ac_exec_ext in '' $ac_executable_extensions; do 5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5189 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5191 break 2 5192 fi 5193done 5194 done 5195IFS=$as_save_IFS 5196 5197fi 5198fi 5199DUMPBIN=$ac_cv_prog_DUMPBIN 5200if test -n "$DUMPBIN"; then 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5202$as_echo "$DUMPBIN" >&6; } 5203else 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5205$as_echo "no" >&6; } 5206fi 5207 5208 5209 test -n "$DUMPBIN" && break 5210 done 5211fi 5212if test -z "$DUMPBIN"; then 5213 ac_ct_DUMPBIN=$DUMPBIN 5214 for ac_prog in dumpbin "link -dump" 5215do 5216 # Extract the first word of "$ac_prog", so it can be a program name with args. 5217set dummy $ac_prog; ac_word=$2 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5219$as_echo_n "checking for $ac_word... " >&6; } 5220if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5221 $as_echo_n "(cached) " >&6 5222else 5223 if test -n "$ac_ct_DUMPBIN"; then 5224 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5225else 5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5227for as_dir in $PATH 5228do 5229 IFS=$as_save_IFS 5230 test -z "$as_dir" && as_dir=. 5231 for ac_exec_ext in '' $ac_executable_extensions; do 5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5233 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5235 break 2 5236 fi 5237done 5238 done 5239IFS=$as_save_IFS 5240 5241fi 5242fi 5243ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5244if test -n "$ac_ct_DUMPBIN"; then 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5246$as_echo "$ac_ct_DUMPBIN" >&6; } 5247else 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5249$as_echo "no" >&6; } 5250fi 5251 5252 5253 test -n "$ac_ct_DUMPBIN" && break 5254done 5255 5256 if test "x$ac_ct_DUMPBIN" = x; then 5257 DUMPBIN=":" 5258 else 5259 case $cross_compiling:$ac_tool_warned in 5260yes:) 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5263ac_tool_warned=yes ;; 5264esac 5265 DUMPBIN=$ac_ct_DUMPBIN 5266 fi 5267fi 5268 5269 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5270 *COFF*) 5271 DUMPBIN="$DUMPBIN -symbols" 5272 ;; 5273 *) 5274 DUMPBIN=: 5275 ;; 5276 esac 5277 fi 5278 5279 if test "$DUMPBIN" != ":"; then 5280 NM="$DUMPBIN" 5281 fi 5282fi 5283test -z "$NM" && NM=nm 5284 5285 5286 5287 5288 5289 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5291$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5292if ${lt_cv_nm_interface+:} false; then : 5293 $as_echo_n "(cached) " >&6 5294else 5295 lt_cv_nm_interface="BSD nm" 5296 echo "int some_variable = 0;" > conftest.$ac_ext 5297 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5298 (eval "$ac_compile" 2>conftest.err) 5299 cat conftest.err >&5 5300 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5301 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5302 cat conftest.err >&5 5303 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5304 cat conftest.out >&5 5305 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5306 lt_cv_nm_interface="MS dumpbin" 5307 fi 5308 rm -f conftest* 5309fi 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5311$as_echo "$lt_cv_nm_interface" >&6; } 5312 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5314$as_echo_n "checking whether ln -s works... " >&6; } 5315LN_S=$as_ln_s 5316if test "$LN_S" = "ln -s"; then 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5318$as_echo "yes" >&6; } 5319else 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5321$as_echo "no, using $LN_S" >&6; } 5322fi 5323 5324# find the maximum length of command line arguments 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5326$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5327if ${lt_cv_sys_max_cmd_len+:} false; then : 5328 $as_echo_n "(cached) " >&6 5329else 5330 i=0 5331 teststring="ABCD" 5332 5333 case $build_os in 5334 msdosdjgpp*) 5335 # On DJGPP, this test can blow up pretty badly due to problems in libc 5336 # (any single argument exceeding 2000 bytes causes a buffer overrun 5337 # during glob expansion). Even if it were fixed, the result of this 5338 # check would be larger than it should be. 5339 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5340 ;; 5341 5342 gnu*) 5343 # Under GNU Hurd, this test is not required because there is 5344 # no limit to the length of command line arguments. 5345 # Libtool will interpret -1 as no limit whatsoever 5346 lt_cv_sys_max_cmd_len=-1; 5347 ;; 5348 5349 cygwin* | mingw* | cegcc*) 5350 # On Win9x/ME, this test blows up -- it succeeds, but takes 5351 # about 5 minutes as the teststring grows exponentially. 5352 # Worse, since 9x/ME are not pre-emptively multitasking, 5353 # you end up with a "frozen" computer, even though with patience 5354 # the test eventually succeeds (with a max line length of 256k). 5355 # Instead, let's just punt: use the minimum linelength reported by 5356 # all of the supported platforms: 8192 (on NT/2K/XP). 5357 lt_cv_sys_max_cmd_len=8192; 5358 ;; 5359 5360 mint*) 5361 # On MiNT this can take a long time and run out of memory. 5362 lt_cv_sys_max_cmd_len=8192; 5363 ;; 5364 5365 amigaos*) 5366 # On AmigaOS with pdksh, this test takes hours, literally. 5367 # So we just punt and use a minimum line length of 8192. 5368 lt_cv_sys_max_cmd_len=8192; 5369 ;; 5370 5371 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5372 # This has been around since 386BSD, at least. Likely further. 5373 if test -x /sbin/sysctl; then 5374 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5375 elif test -x /usr/sbin/sysctl; then 5376 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5377 else 5378 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5379 fi 5380 # And add a safety zone 5381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5383 ;; 5384 5385 interix*) 5386 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5387 lt_cv_sys_max_cmd_len=196608 5388 ;; 5389 5390 os2*) 5391 # The test takes a long time on OS/2. 5392 lt_cv_sys_max_cmd_len=8192 5393 ;; 5394 5395 osf*) 5396 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5397 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5398 # nice to cause kernel panics so lets avoid the loop below. 5399 # First set a reasonable default. 5400 lt_cv_sys_max_cmd_len=16384 5401 # 5402 if test -x /sbin/sysconfig; then 5403 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5404 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5405 esac 5406 fi 5407 ;; 5408 sco3.2v5*) 5409 lt_cv_sys_max_cmd_len=102400 5410 ;; 5411 sysv5* | sco5v6* | sysv4.2uw2*) 5412 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5413 if test -n "$kargmax"; then 5414 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5415 else 5416 lt_cv_sys_max_cmd_len=32768 5417 fi 5418 ;; 5419 *) 5420 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5421 if test -n "$lt_cv_sys_max_cmd_len"; then 5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5424 else 5425 # Make teststring a little bigger before we do anything with it. 5426 # a 1K string should be a reasonable start. 5427 for i in 1 2 3 4 5 6 7 8 ; do 5428 teststring=$teststring$teststring 5429 done 5430 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5431 # If test is not a shell built-in, we'll probably end up computing a 5432 # maximum length that is only half of the actual maximum length, but 5433 # we can't tell. 5434 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5435 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5436 test $i != 17 # 1/2 MB should be enough 5437 do 5438 i=`expr $i + 1` 5439 teststring=$teststring$teststring 5440 done 5441 # Only check the string length outside the loop. 5442 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5443 teststring= 5444 # Add a significant safety factor because C++ compilers can tack on 5445 # massive amounts of additional arguments before passing them to the 5446 # linker. It appears as though 1/2 is a usable value. 5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5448 fi 5449 ;; 5450 esac 5451 5452fi 5453 5454if test -n $lt_cv_sys_max_cmd_len ; then 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5456$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5457else 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5459$as_echo "none" >&6; } 5460fi 5461max_cmd_len=$lt_cv_sys_max_cmd_len 5462 5463 5464 5465 5466 5467 5468: ${CP="cp -f"} 5469: ${MV="mv -f"} 5470: ${RM="rm -f"} 5471 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5473$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5474# Try some XSI features 5475xsi_shell=no 5476( _lt_dummy="a/b/c" 5477 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5478 = c,a/b,b/c, \ 5479 && eval 'test $(( 1 + 1 )) -eq 2 \ 5480 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5481 && xsi_shell=yes 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5483$as_echo "$xsi_shell" >&6; } 5484 5485 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5487$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5488lt_shell_append=no 5489( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5490 >/dev/null 2>&1 \ 5491 && lt_shell_append=yes 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5493$as_echo "$lt_shell_append" >&6; } 5494 5495 5496if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5497 lt_unset=unset 5498else 5499 lt_unset=false 5500fi 5501 5502 5503 5504 5505 5506# test EBCDIC or ASCII 5507case `echo X|tr X '\101'` in 5508 A) # ASCII based system 5509 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5510 lt_SP2NL='tr \040 \012' 5511 lt_NL2SP='tr \015\012 \040\040' 5512 ;; 5513 *) # EBCDIC based system 5514 lt_SP2NL='tr \100 \n' 5515 lt_NL2SP='tr \r\n \100\100' 5516 ;; 5517esac 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5528$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5529if ${lt_cv_to_host_file_cmd+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 case $host in 5533 *-*-mingw* ) 5534 case $build in 5535 *-*-mingw* ) # actually msys 5536 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5537 ;; 5538 *-*-cygwin* ) 5539 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5540 ;; 5541 * ) # otherwise, assume *nix 5542 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5543 ;; 5544 esac 5545 ;; 5546 *-*-cygwin* ) 5547 case $build in 5548 *-*-mingw* ) # actually msys 5549 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5550 ;; 5551 *-*-cygwin* ) 5552 lt_cv_to_host_file_cmd=func_convert_file_noop 5553 ;; 5554 * ) # otherwise, assume *nix 5555 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5556 ;; 5557 esac 5558 ;; 5559 * ) # unhandled hosts (and "normal" native builds) 5560 lt_cv_to_host_file_cmd=func_convert_file_noop 5561 ;; 5562esac 5563 5564fi 5565 5566to_host_file_cmd=$lt_cv_to_host_file_cmd 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5568$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5569 5570 5571 5572 5573 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5575$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5576if ${lt_cv_to_tool_file_cmd+:} false; then : 5577 $as_echo_n "(cached) " >&6 5578else 5579 #assume ordinary cross tools, or native build. 5580lt_cv_to_tool_file_cmd=func_convert_file_noop 5581case $host in 5582 *-*-mingw* ) 5583 case $build in 5584 *-*-mingw* ) # actually msys 5585 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5586 ;; 5587 esac 5588 ;; 5589esac 5590 5591fi 5592 5593to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5595$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5596 5597 5598 5599 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5602$as_echo_n "checking for $LD option to reload object files... " >&6; } 5603if ${lt_cv_ld_reload_flag+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 lt_cv_ld_reload_flag='-r' 5607fi 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5609$as_echo "$lt_cv_ld_reload_flag" >&6; } 5610reload_flag=$lt_cv_ld_reload_flag 5611case $reload_flag in 5612"" | " "*) ;; 5613*) reload_flag=" $reload_flag" ;; 5614esac 5615reload_cmds='$LD$reload_flag -o $output$reload_objs' 5616case $host_os in 5617 cygwin* | mingw* | pw32* | cegcc*) 5618 if test "$GCC" != yes; then 5619 reload_cmds=false 5620 fi 5621 ;; 5622 darwin*) 5623 if test "$GCC" = yes; then 5624 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5625 else 5626 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5627 fi 5628 ;; 5629esac 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639if test -n "$ac_tool_prefix"; then 5640 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5641set dummy ${ac_tool_prefix}objdump; ac_word=$2 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5643$as_echo_n "checking for $ac_word... " >&6; } 5644if ${ac_cv_prog_OBJDUMP+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 if test -n "$OBJDUMP"; then 5648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5649else 5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651for as_dir in $PATH 5652do 5653 IFS=$as_save_IFS 5654 test -z "$as_dir" && as_dir=. 5655 for ac_exec_ext in '' $ac_executable_extensions; do 5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5657 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5659 break 2 5660 fi 5661done 5662 done 5663IFS=$as_save_IFS 5664 5665fi 5666fi 5667OBJDUMP=$ac_cv_prog_OBJDUMP 5668if test -n "$OBJDUMP"; then 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5670$as_echo "$OBJDUMP" >&6; } 5671else 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5673$as_echo "no" >&6; } 5674fi 5675 5676 5677fi 5678if test -z "$ac_cv_prog_OBJDUMP"; then 5679 ac_ct_OBJDUMP=$OBJDUMP 5680 # Extract the first word of "objdump", so it can be a program name with args. 5681set dummy objdump; ac_word=$2 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5683$as_echo_n "checking for $ac_word... " >&6; } 5684if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 if test -n "$ac_ct_OBJDUMP"; then 5688 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5689else 5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691for as_dir in $PATH 5692do 5693 IFS=$as_save_IFS 5694 test -z "$as_dir" && as_dir=. 5695 for ac_exec_ext in '' $ac_executable_extensions; do 5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5697 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5699 break 2 5700 fi 5701done 5702 done 5703IFS=$as_save_IFS 5704 5705fi 5706fi 5707ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5708if test -n "$ac_ct_OBJDUMP"; then 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5710$as_echo "$ac_ct_OBJDUMP" >&6; } 5711else 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713$as_echo "no" >&6; } 5714fi 5715 5716 if test "x$ac_ct_OBJDUMP" = x; then 5717 OBJDUMP="false" 5718 else 5719 case $cross_compiling:$ac_tool_warned in 5720yes:) 5721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5723ac_tool_warned=yes ;; 5724esac 5725 OBJDUMP=$ac_ct_OBJDUMP 5726 fi 5727else 5728 OBJDUMP="$ac_cv_prog_OBJDUMP" 5729fi 5730 5731test -z "$OBJDUMP" && OBJDUMP=objdump 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5742$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5743if ${lt_cv_deplibs_check_method+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 lt_cv_file_magic_cmd='$MAGIC_CMD' 5747lt_cv_file_magic_test_file= 5748lt_cv_deplibs_check_method='unknown' 5749# Need to set the preceding variable on all platforms that support 5750# interlibrary dependencies. 5751# 'none' -- dependencies not supported. 5752# `unknown' -- same as none, but documents that we really don't know. 5753# 'pass_all' -- all dependencies passed with no checks. 5754# 'test_compile' -- check by making test program. 5755# 'file_magic [[regex]]' -- check by looking for files in library path 5756# which responds to the $file_magic_cmd with a given extended regex. 5757# If you have `file' or equivalent on your system and you're not sure 5758# whether `pass_all' will *always* work, you probably want this one. 5759 5760case $host_os in 5761aix[4-9]*) 5762 lt_cv_deplibs_check_method=pass_all 5763 ;; 5764 5765beos*) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 5769bsdi[45]*) 5770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5771 lt_cv_file_magic_cmd='/usr/bin/file -L' 5772 lt_cv_file_magic_test_file=/shlib/libc.so 5773 ;; 5774 5775cygwin*) 5776 # func_win32_libid is a shell function defined in ltmain.sh 5777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5778 lt_cv_file_magic_cmd='func_win32_libid' 5779 ;; 5780 5781mingw* | pw32*) 5782 # Base MSYS/MinGW do not provide the 'file' command needed by 5783 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5784 # unless we find 'file', for example because we are cross-compiling. 5785 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5786 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5788 lt_cv_file_magic_cmd='func_win32_libid' 5789 else 5790 # Keep this pattern in sync with the one in func_win32_libid. 5791 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5792 lt_cv_file_magic_cmd='$OBJDUMP -f' 5793 fi 5794 ;; 5795 5796cegcc*) 5797 # use the weaker test based on 'objdump'. See mingw*. 5798 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5799 lt_cv_file_magic_cmd='$OBJDUMP -f' 5800 ;; 5801 5802darwin* | rhapsody*) 5803 lt_cv_deplibs_check_method=pass_all 5804 ;; 5805 5806freebsd* | dragonfly*) 5807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5808 case $host_cpu in 5809 i*86 ) 5810 # Not sure whether the presence of OpenBSD here was a mistake. 5811 # Let's accept both of them until this is cleared up. 5812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5813 lt_cv_file_magic_cmd=/usr/bin/file 5814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5815 ;; 5816 esac 5817 else 5818 lt_cv_deplibs_check_method=pass_all 5819 fi 5820 ;; 5821 5822gnu*) 5823 lt_cv_deplibs_check_method=pass_all 5824 ;; 5825 5826haiku*) 5827 lt_cv_deplibs_check_method=pass_all 5828 ;; 5829 5830hpux10.20* | hpux11*) 5831 lt_cv_file_magic_cmd=/usr/bin/file 5832 case $host_cpu in 5833 ia64*) 5834 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5835 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5836 ;; 5837 hppa*64*) 5838 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]' 5839 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5840 ;; 5841 *) 5842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5843 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5844 ;; 5845 esac 5846 ;; 5847 5848interix[3-9]*) 5849 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5851 ;; 5852 5853irix5* | irix6* | nonstopux*) 5854 case $LD in 5855 *-32|*"-32 ") libmagic=32-bit;; 5856 *-n32|*"-n32 ") libmagic=N32;; 5857 *-64|*"-64 ") libmagic=64-bit;; 5858 *) libmagic=never-match;; 5859 esac 5860 lt_cv_deplibs_check_method=pass_all 5861 ;; 5862 5863# This must be glibc/ELF. 5864linux* | k*bsd*-gnu | kopensolaris*-gnu) 5865 lt_cv_deplibs_check_method=pass_all 5866 ;; 5867 5868netbsd*) 5869 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5871 else 5872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5873 fi 5874 ;; 5875 5876newos6*) 5877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5878 lt_cv_file_magic_cmd=/usr/bin/file 5879 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5880 ;; 5881 5882*nto* | *qnx*) 5883 lt_cv_deplibs_check_method=pass_all 5884 ;; 5885 5886openbsd*) 5887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5889 else 5890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5891 fi 5892 ;; 5893 5894osf3* | osf4* | osf5*) 5895 lt_cv_deplibs_check_method=pass_all 5896 ;; 5897 5898rdos*) 5899 lt_cv_deplibs_check_method=pass_all 5900 ;; 5901 5902solaris*) 5903 lt_cv_deplibs_check_method=pass_all 5904 ;; 5905 5906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5907 lt_cv_deplibs_check_method=pass_all 5908 ;; 5909 5910sysv4 | sysv4.3*) 5911 case $host_vendor in 5912 motorola) 5913 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]' 5914 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5915 ;; 5916 ncr) 5917 lt_cv_deplibs_check_method=pass_all 5918 ;; 5919 sequent) 5920 lt_cv_file_magic_cmd='/bin/file' 5921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5922 ;; 5923 sni) 5924 lt_cv_file_magic_cmd='/bin/file' 5925 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5926 lt_cv_file_magic_test_file=/lib/libc.so 5927 ;; 5928 siemens) 5929 lt_cv_deplibs_check_method=pass_all 5930 ;; 5931 pc) 5932 lt_cv_deplibs_check_method=pass_all 5933 ;; 5934 esac 5935 ;; 5936 5937tpf*) 5938 lt_cv_deplibs_check_method=pass_all 5939 ;; 5940esac 5941 5942fi 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5944$as_echo "$lt_cv_deplibs_check_method" >&6; } 5945 5946file_magic_glob= 5947want_nocaseglob=no 5948if test "$build" = "$host"; then 5949 case $host_os in 5950 mingw* | pw32*) 5951 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5952 want_nocaseglob=yes 5953 else 5954 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5955 fi 5956 ;; 5957 esac 5958fi 5959 5960file_magic_cmd=$lt_cv_file_magic_cmd 5961deplibs_check_method=$lt_cv_deplibs_check_method 5962test -z "$deplibs_check_method" && deplibs_check_method=unknown 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985if test -n "$ac_tool_prefix"; then 5986 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5987set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5989$as_echo_n "checking for $ac_word... " >&6; } 5990if ${ac_cv_prog_DLLTOOL+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 if test -n "$DLLTOOL"; then 5994 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5995else 5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5997for as_dir in $PATH 5998do 5999 IFS=$as_save_IFS 6000 test -z "$as_dir" && as_dir=. 6001 for ac_exec_ext in '' $ac_executable_extensions; do 6002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6003 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6005 break 2 6006 fi 6007done 6008 done 6009IFS=$as_save_IFS 6010 6011fi 6012fi 6013DLLTOOL=$ac_cv_prog_DLLTOOL 6014if test -n "$DLLTOOL"; then 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6016$as_echo "$DLLTOOL" >&6; } 6017else 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6019$as_echo "no" >&6; } 6020fi 6021 6022 6023fi 6024if test -z "$ac_cv_prog_DLLTOOL"; then 6025 ac_ct_DLLTOOL=$DLLTOOL 6026 # Extract the first word of "dlltool", so it can be a program name with args. 6027set dummy dlltool; ac_word=$2 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6029$as_echo_n "checking for $ac_word... " >&6; } 6030if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 if test -n "$ac_ct_DLLTOOL"; then 6034 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6035else 6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6037for as_dir in $PATH 6038do 6039 IFS=$as_save_IFS 6040 test -z "$as_dir" && as_dir=. 6041 for ac_exec_ext in '' $ac_executable_extensions; do 6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6043 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6045 break 2 6046 fi 6047done 6048 done 6049IFS=$as_save_IFS 6050 6051fi 6052fi 6053ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6054if test -n "$ac_ct_DLLTOOL"; then 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6056$as_echo "$ac_ct_DLLTOOL" >&6; } 6057else 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6059$as_echo "no" >&6; } 6060fi 6061 6062 if test "x$ac_ct_DLLTOOL" = x; then 6063 DLLTOOL="false" 6064 else 6065 case $cross_compiling:$ac_tool_warned in 6066yes:) 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6069ac_tool_warned=yes ;; 6070esac 6071 DLLTOOL=$ac_ct_DLLTOOL 6072 fi 6073else 6074 DLLTOOL="$ac_cv_prog_DLLTOOL" 6075fi 6076 6077test -z "$DLLTOOL" && DLLTOOL=dlltool 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6089$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6090if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 lt_cv_sharedlib_from_linklib_cmd='unknown' 6094 6095case $host_os in 6096cygwin* | mingw* | pw32* | cegcc*) 6097 # two different shell functions defined in ltmain.sh 6098 # decide which to use based on capabilities of $DLLTOOL 6099 case `$DLLTOOL --help 2>&1` in 6100 *--identify-strict*) 6101 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6102 ;; 6103 *) 6104 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6105 ;; 6106 esac 6107 ;; 6108*) 6109 # fallback: assume linklib IS sharedlib 6110 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6111 ;; 6112esac 6113 6114fi 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6116$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6117sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6118test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6119 6120 6121 6122 6123 6124 6125 6126if test -n "$ac_tool_prefix"; then 6127 for ac_prog in ar 6128 do 6129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6130set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6132$as_echo_n "checking for $ac_word... " >&6; } 6133if ${ac_cv_prog_AR+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 if test -n "$AR"; then 6137 ac_cv_prog_AR="$AR" # Let the user override the test. 6138else 6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 test -z "$as_dir" && as_dir=. 6144 for ac_exec_ext in '' $ac_executable_extensions; do 6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6146 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6148 break 2 6149 fi 6150done 6151 done 6152IFS=$as_save_IFS 6153 6154fi 6155fi 6156AR=$ac_cv_prog_AR 6157if test -n "$AR"; then 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6159$as_echo "$AR" >&6; } 6160else 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6162$as_echo "no" >&6; } 6163fi 6164 6165 6166 test -n "$AR" && break 6167 done 6168fi 6169if test -z "$AR"; then 6170 ac_ct_AR=$AR 6171 for ac_prog in ar 6172do 6173 # Extract the first word of "$ac_prog", so it can be a program name with args. 6174set dummy $ac_prog; ac_word=$2 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6176$as_echo_n "checking for $ac_word... " >&6; } 6177if ${ac_cv_prog_ac_ct_AR+:} false; then : 6178 $as_echo_n "(cached) " >&6 6179else 6180 if test -n "$ac_ct_AR"; then 6181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6182else 6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6184for as_dir in $PATH 6185do 6186 IFS=$as_save_IFS 6187 test -z "$as_dir" && as_dir=. 6188 for ac_exec_ext in '' $ac_executable_extensions; do 6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6190 ac_cv_prog_ac_ct_AR="$ac_prog" 6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6192 break 2 6193 fi 6194done 6195 done 6196IFS=$as_save_IFS 6197 6198fi 6199fi 6200ac_ct_AR=$ac_cv_prog_ac_ct_AR 6201if test -n "$ac_ct_AR"; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6203$as_echo "$ac_ct_AR" >&6; } 6204else 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6206$as_echo "no" >&6; } 6207fi 6208 6209 6210 test -n "$ac_ct_AR" && break 6211done 6212 6213 if test "x$ac_ct_AR" = x; then 6214 AR="false" 6215 else 6216 case $cross_compiling:$ac_tool_warned in 6217yes:) 6218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6220ac_tool_warned=yes ;; 6221esac 6222 AR=$ac_ct_AR 6223 fi 6224fi 6225 6226: ${AR=ar} 6227: ${AR_FLAGS=cru} 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6240$as_echo_n "checking for archiver @FILE support... " >&6; } 6241if ${lt_cv_ar_at_file+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 lt_cv_ar_at_file=no 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247 6248int 6249main () 6250{ 6251 6252 ; 6253 return 0; 6254} 6255_ACEOF 6256if ac_fn_c_try_compile "$LINENO"; then : 6257 echo conftest.$ac_objext > conftest.lst 6258 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6260 (eval $lt_ar_try) 2>&5 6261 ac_status=$? 6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6263 test $ac_status = 0; } 6264 if test "$ac_status" -eq 0; then 6265 # Ensure the archiver fails upon bogus file names. 6266 rm -f conftest.$ac_objext libconftest.a 6267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6268 (eval $lt_ar_try) 2>&5 6269 ac_status=$? 6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6271 test $ac_status = 0; } 6272 if test "$ac_status" -ne 0; then 6273 lt_cv_ar_at_file=@ 6274 fi 6275 fi 6276 rm -f conftest.* libconftest.a 6277 6278fi 6279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6280 6281fi 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6283$as_echo "$lt_cv_ar_at_file" >&6; } 6284 6285if test "x$lt_cv_ar_at_file" = xno; then 6286 archiver_list_spec= 6287else 6288 archiver_list_spec=$lt_cv_ar_at_file 6289fi 6290 6291 6292 6293 6294 6295 6296 6297if test -n "$ac_tool_prefix"; then 6298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6299set dummy ${ac_tool_prefix}strip; ac_word=$2 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6301$as_echo_n "checking for $ac_word... " >&6; } 6302if ${ac_cv_prog_STRIP+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 if test -n "$STRIP"; then 6306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6307else 6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6309for as_dir in $PATH 6310do 6311 IFS=$as_save_IFS 6312 test -z "$as_dir" && as_dir=. 6313 for ac_exec_ext in '' $ac_executable_extensions; do 6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6315 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6317 break 2 6318 fi 6319done 6320 done 6321IFS=$as_save_IFS 6322 6323fi 6324fi 6325STRIP=$ac_cv_prog_STRIP 6326if test -n "$STRIP"; then 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6328$as_echo "$STRIP" >&6; } 6329else 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6331$as_echo "no" >&6; } 6332fi 6333 6334 6335fi 6336if test -z "$ac_cv_prog_STRIP"; then 6337 ac_ct_STRIP=$STRIP 6338 # Extract the first word of "strip", so it can be a program name with args. 6339set dummy strip; ac_word=$2 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6341$as_echo_n "checking for $ac_word... " >&6; } 6342if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 if test -n "$ac_ct_STRIP"; then 6346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6347else 6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6349for as_dir in $PATH 6350do 6351 IFS=$as_save_IFS 6352 test -z "$as_dir" && as_dir=. 6353 for ac_exec_ext in '' $ac_executable_extensions; do 6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6355 ac_cv_prog_ac_ct_STRIP="strip" 6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6357 break 2 6358 fi 6359done 6360 done 6361IFS=$as_save_IFS 6362 6363fi 6364fi 6365ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6366if test -n "$ac_ct_STRIP"; then 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6368$as_echo "$ac_ct_STRIP" >&6; } 6369else 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6371$as_echo "no" >&6; } 6372fi 6373 6374 if test "x$ac_ct_STRIP" = x; then 6375 STRIP=":" 6376 else 6377 case $cross_compiling:$ac_tool_warned in 6378yes:) 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6381ac_tool_warned=yes ;; 6382esac 6383 STRIP=$ac_ct_STRIP 6384 fi 6385else 6386 STRIP="$ac_cv_prog_STRIP" 6387fi 6388 6389test -z "$STRIP" && STRIP=: 6390 6391 6392 6393 6394 6395 6396if test -n "$ac_tool_prefix"; then 6397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6398set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6400$as_echo_n "checking for $ac_word... " >&6; } 6401if ${ac_cv_prog_RANLIB+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 if test -n "$RANLIB"; then 6405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6406else 6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6408for as_dir in $PATH 6409do 6410 IFS=$as_save_IFS 6411 test -z "$as_dir" && as_dir=. 6412 for ac_exec_ext in '' $ac_executable_extensions; do 6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6416 break 2 6417 fi 6418done 6419 done 6420IFS=$as_save_IFS 6421 6422fi 6423fi 6424RANLIB=$ac_cv_prog_RANLIB 6425if test -n "$RANLIB"; then 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6427$as_echo "$RANLIB" >&6; } 6428else 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6430$as_echo "no" >&6; } 6431fi 6432 6433 6434fi 6435if test -z "$ac_cv_prog_RANLIB"; then 6436 ac_ct_RANLIB=$RANLIB 6437 # Extract the first word of "ranlib", so it can be a program name with args. 6438set dummy ranlib; ac_word=$2 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6440$as_echo_n "checking for $ac_word... " >&6; } 6441if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 if test -n "$ac_ct_RANLIB"; then 6445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6446else 6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6448for as_dir in $PATH 6449do 6450 IFS=$as_save_IFS 6451 test -z "$as_dir" && as_dir=. 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6454 ac_cv_prog_ac_ct_RANLIB="ranlib" 6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6456 break 2 6457 fi 6458done 6459 done 6460IFS=$as_save_IFS 6461 6462fi 6463fi 6464ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6465if test -n "$ac_ct_RANLIB"; then 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6467$as_echo "$ac_ct_RANLIB" >&6; } 6468else 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6470$as_echo "no" >&6; } 6471fi 6472 6473 if test "x$ac_ct_RANLIB" = x; then 6474 RANLIB=":" 6475 else 6476 case $cross_compiling:$ac_tool_warned in 6477yes:) 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6480ac_tool_warned=yes ;; 6481esac 6482 RANLIB=$ac_ct_RANLIB 6483 fi 6484else 6485 RANLIB="$ac_cv_prog_RANLIB" 6486fi 6487 6488test -z "$RANLIB" && RANLIB=: 6489 6490 6491 6492 6493 6494 6495# Determine commands to create old-style static archives. 6496old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6497old_postinstall_cmds='chmod 644 $oldlib' 6498old_postuninstall_cmds= 6499 6500if test -n "$RANLIB"; then 6501 case $host_os in 6502 openbsd*) 6503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6504 ;; 6505 *) 6506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6507 ;; 6508 esac 6509 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6510fi 6511 6512case $host_os in 6513 darwin*) 6514 lock_old_archive_extraction=yes ;; 6515 *) 6516 lock_old_archive_extraction=no ;; 6517esac 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557# If no C compiler was specified, use CC. 6558LTCC=${LTCC-"$CC"} 6559 6560# If no C compiler flags were specified, use CFLAGS. 6561LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6562 6563# Allow CC to be a program name with arguments. 6564compiler=$CC 6565 6566 6567# Check for command to grab the raw symbol name followed by C symbol from nm. 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6569$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6570if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 6574# These are sane defaults that work on at least a few old systems. 6575# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6576 6577# Character class describing NM global symbol codes. 6578symcode='[BCDEGRST]' 6579 6580# Regexp to match symbols that can be accessed directly from C. 6581sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6582 6583# Define system-specific variables. 6584case $host_os in 6585aix*) 6586 symcode='[BCDT]' 6587 ;; 6588cygwin* | mingw* | pw32* | cegcc*) 6589 symcode='[ABCDGISTW]' 6590 ;; 6591hpux*) 6592 if test "$host_cpu" = ia64; then 6593 symcode='[ABCDEGRST]' 6594 fi 6595 ;; 6596irix* | nonstopux*) 6597 symcode='[BCDEGRST]' 6598 ;; 6599osf*) 6600 symcode='[BCDEGQRST]' 6601 ;; 6602solaris*) 6603 symcode='[BDRT]' 6604 ;; 6605sco3.2v5*) 6606 symcode='[DT]' 6607 ;; 6608sysv4.2uw2*) 6609 symcode='[DT]' 6610 ;; 6611sysv5* | sco5v6* | unixware* | OpenUNIX*) 6612 symcode='[ABDT]' 6613 ;; 6614sysv4) 6615 symcode='[DFNSTU]' 6616 ;; 6617esac 6618 6619# If we're using GNU nm, then use its standard symbol codes. 6620case `$NM -V 2>&1` in 6621*GNU* | *'with BFD'*) 6622 symcode='[ABCDGIRSTW]' ;; 6623esac 6624 6625# Transform an extracted symbol line into a proper C declaration. 6626# Some systems (esp. on ia64) link data and code symbols differently, 6627# so use this general approach. 6628lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6629 6630# Transform an extracted symbol line into symbol name and symbol address 6631lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6632lt_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'" 6633 6634# Handle CRLF in mingw tool chain 6635opt_cr= 6636case $build_os in 6637mingw*) 6638 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6639 ;; 6640esac 6641 6642# Try without a prefix underscore, then with it. 6643for ac_symprfx in "" "_"; do 6644 6645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6646 symxfrm="\\1 $ac_symprfx\\2 \\2" 6647 6648 # Write the raw and C identifiers. 6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6650 # Fake it for dumpbin and say T for any non-static function 6651 # and D for any global variable. 6652 # Also find C++ and __fastcall symbols from MSVC++, 6653 # which start with @ or ?. 6654 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6655" {last_section=section; section=\$ 3};"\ 6656" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6657" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6658" \$ 0!~/External *\|/{next};"\ 6659" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6660" {if(hide[section]) next};"\ 6661" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6662" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6663" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6664" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6665" ' prfx=^$ac_symprfx" 6666 else 6667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6668 fi 6669 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6670 6671 # Check to see that the pipe works correctly. 6672 pipe_works=no 6673 6674 rm -f conftest* 6675 cat > conftest.$ac_ext <<_LT_EOF 6676#ifdef __cplusplus 6677extern "C" { 6678#endif 6679char nm_test_var; 6680void nm_test_func(void); 6681void nm_test_func(void){} 6682#ifdef __cplusplus 6683} 6684#endif 6685int main(){nm_test_var='a';nm_test_func();return(0);} 6686_LT_EOF 6687 6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6689 (eval $ac_compile) 2>&5 6690 ac_status=$? 6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6692 test $ac_status = 0; }; then 6693 # Now try to grab the symbols. 6694 nlist=conftest.nm 6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6696 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6697 ac_status=$? 6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6699 test $ac_status = 0; } && test -s "$nlist"; then 6700 # Try sorting and uniquifying the output. 6701 if sort "$nlist" | uniq > "$nlist"T; then 6702 mv -f "$nlist"T "$nlist" 6703 else 6704 rm -f "$nlist"T 6705 fi 6706 6707 # Make sure that we snagged all the symbols we need. 6708 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6709 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6710 cat <<_LT_EOF > conftest.$ac_ext 6711/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6712#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6713/* DATA imports from DLLs on WIN32 con't be const, because runtime 6714 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6715# define LT_DLSYM_CONST 6716#elif defined(__osf__) 6717/* This system does not cope well with relocations in const data. */ 6718# define LT_DLSYM_CONST 6719#else 6720# define LT_DLSYM_CONST const 6721#endif 6722 6723#ifdef __cplusplus 6724extern "C" { 6725#endif 6726 6727_LT_EOF 6728 # Now generate the symbol file. 6729 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6730 6731 cat <<_LT_EOF >> conftest.$ac_ext 6732 6733/* The mapping between symbol names and symbols. */ 6734LT_DLSYM_CONST struct { 6735 const char *name; 6736 void *address; 6737} 6738lt__PROGRAM__LTX_preloaded_symbols[] = 6739{ 6740 { "@PROGRAM@", (void *) 0 }, 6741_LT_EOF 6742 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6743 cat <<\_LT_EOF >> conftest.$ac_ext 6744 {0, (void *) 0} 6745}; 6746 6747/* This works around a problem in FreeBSD linker */ 6748#ifdef FREEBSD_WORKAROUND 6749static const void *lt_preloaded_setup() { 6750 return lt__PROGRAM__LTX_preloaded_symbols; 6751} 6752#endif 6753 6754#ifdef __cplusplus 6755} 6756#endif 6757_LT_EOF 6758 # Now try linking the two files. 6759 mv conftest.$ac_objext conftstm.$ac_objext 6760 lt_globsym_save_LIBS=$LIBS 6761 lt_globsym_save_CFLAGS=$CFLAGS 6762 LIBS="conftstm.$ac_objext" 6763 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6765 (eval $ac_link) 2>&5 6766 ac_status=$? 6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6768 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6769 pipe_works=yes 6770 fi 6771 LIBS=$lt_globsym_save_LIBS 6772 CFLAGS=$lt_globsym_save_CFLAGS 6773 else 6774 echo "cannot find nm_test_func in $nlist" >&5 6775 fi 6776 else 6777 echo "cannot find nm_test_var in $nlist" >&5 6778 fi 6779 else 6780 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6781 fi 6782 else 6783 echo "$progname: failed program was:" >&5 6784 cat conftest.$ac_ext >&5 6785 fi 6786 rm -rf conftest* conftst* 6787 6788 # Do not use the global_symbol_pipe unless it works. 6789 if test "$pipe_works" = yes; then 6790 break 6791 else 6792 lt_cv_sys_global_symbol_pipe= 6793 fi 6794done 6795 6796fi 6797 6798if test -z "$lt_cv_sys_global_symbol_pipe"; then 6799 lt_cv_sys_global_symbol_to_cdecl= 6800fi 6801if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6803$as_echo "failed" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6806$as_echo "ok" >&6; } 6807fi 6808 6809# Response file support. 6810if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6811 nm_file_list_spec='@' 6812elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6813 nm_file_list_spec='@' 6814fi 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6843$as_echo_n "checking for sysroot... " >&6; } 6844 6845# Check whether --with-sysroot was given. 6846if test "${with_sysroot+set}" = set; then : 6847 withval=$with_sysroot; 6848else 6849 with_sysroot=no 6850fi 6851 6852 6853lt_sysroot= 6854case ${with_sysroot} in #( 6855 yes) 6856 if test "$GCC" = yes; then 6857 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6858 fi 6859 ;; #( 6860 /*) 6861 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6862 ;; #( 6863 no|'') 6864 ;; #( 6865 *) 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6867$as_echo "${with_sysroot}" >&6; } 6868 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6869 ;; 6870esac 6871 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6873$as_echo "${lt_sysroot:-no}" >&6; } 6874 6875 6876 6877 6878 6879# Check whether --enable-libtool-lock was given. 6880if test "${enable_libtool_lock+set}" = set; then : 6881 enableval=$enable_libtool_lock; 6882fi 6883 6884test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6885 6886# Some flags need to be propagated to the compiler or linker for good 6887# libtool support. 6888case $host in 6889ia64-*-hpux*) 6890 # Find out which ABI we are using. 6891 echo 'int i;' > conftest.$ac_ext 6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6893 (eval $ac_compile) 2>&5 6894 ac_status=$? 6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6896 test $ac_status = 0; }; then 6897 case `/usr/bin/file conftest.$ac_objext` in 6898 *ELF-32*) 6899 HPUX_IA64_MODE="32" 6900 ;; 6901 *ELF-64*) 6902 HPUX_IA64_MODE="64" 6903 ;; 6904 esac 6905 fi 6906 rm -rf conftest* 6907 ;; 6908*-*-irix6*) 6909 # Find out which ABI we are using. 6910 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6912 (eval $ac_compile) 2>&5 6913 ac_status=$? 6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6915 test $ac_status = 0; }; then 6916 if test "$lt_cv_prog_gnu_ld" = yes; then 6917 case `/usr/bin/file conftest.$ac_objext` in 6918 *32-bit*) 6919 LD="${LD-ld} -melf32bsmip" 6920 ;; 6921 *N32*) 6922 LD="${LD-ld} -melf32bmipn32" 6923 ;; 6924 *64-bit*) 6925 LD="${LD-ld} -melf64bmip" 6926 ;; 6927 esac 6928 else 6929 case `/usr/bin/file conftest.$ac_objext` in 6930 *32-bit*) 6931 LD="${LD-ld} -32" 6932 ;; 6933 *N32*) 6934 LD="${LD-ld} -n32" 6935 ;; 6936 *64-bit*) 6937 LD="${LD-ld} -64" 6938 ;; 6939 esac 6940 fi 6941 fi 6942 rm -rf conftest* 6943 ;; 6944 6945x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6946s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6947 # Find out which ABI we are using. 6948 echo 'int i;' > conftest.$ac_ext 6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6950 (eval $ac_compile) 2>&5 6951 ac_status=$? 6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6953 test $ac_status = 0; }; then 6954 case `/usr/bin/file conftest.o` in 6955 *32-bit*) 6956 case $host in 6957 x86_64-*kfreebsd*-gnu) 6958 LD="${LD-ld} -m elf_i386_fbsd" 6959 ;; 6960 x86_64-*linux*) 6961 LD="${LD-ld} -m elf_i386" 6962 ;; 6963 ppc64-*linux*|powerpc64-*linux*) 6964 LD="${LD-ld} -m elf32ppclinux" 6965 ;; 6966 s390x-*linux*) 6967 LD="${LD-ld} -m elf_s390" 6968 ;; 6969 sparc64-*linux*) 6970 LD="${LD-ld} -m elf32_sparc" 6971 ;; 6972 esac 6973 ;; 6974 *64-bit*) 6975 case $host in 6976 x86_64-*kfreebsd*-gnu) 6977 LD="${LD-ld} -m elf_x86_64_fbsd" 6978 ;; 6979 x86_64-*linux*) 6980 LD="${LD-ld} -m elf_x86_64" 6981 ;; 6982 ppc*-*linux*|powerpc*-*linux*) 6983 LD="${LD-ld} -m elf64ppc" 6984 ;; 6985 s390*-*linux*|s390*-*tpf*) 6986 LD="${LD-ld} -m elf64_s390" 6987 ;; 6988 sparc*-*linux*) 6989 LD="${LD-ld} -m elf64_sparc" 6990 ;; 6991 esac 6992 ;; 6993 esac 6994 fi 6995 rm -rf conftest* 6996 ;; 6997 6998*-*-sco3.2v5*) 6999 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7000 SAVE_CFLAGS="$CFLAGS" 7001 CFLAGS="$CFLAGS -belf" 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7003$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7004if ${lt_cv_cc_needs_belf+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 ac_ext=c 7008ac_cpp='$CPP $CPPFLAGS' 7009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7011ac_compiler_gnu=$ac_cv_c_compiler_gnu 7012 7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015 7016int 7017main () 7018{ 7019 7020 ; 7021 return 0; 7022} 7023_ACEOF 7024if ac_fn_c_try_link "$LINENO"; then : 7025 lt_cv_cc_needs_belf=yes 7026else 7027 lt_cv_cc_needs_belf=no 7028fi 7029rm -f core conftest.err conftest.$ac_objext \ 7030 conftest$ac_exeext conftest.$ac_ext 7031 ac_ext=c 7032ac_cpp='$CPP $CPPFLAGS' 7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7035ac_compiler_gnu=$ac_cv_c_compiler_gnu 7036 7037fi 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7039$as_echo "$lt_cv_cc_needs_belf" >&6; } 7040 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7042 CFLAGS="$SAVE_CFLAGS" 7043 fi 7044 ;; 7045*-*solaris*) 7046 # Find out which ABI we are using. 7047 echo 'int i;' > conftest.$ac_ext 7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7049 (eval $ac_compile) 2>&5 7050 ac_status=$? 7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7052 test $ac_status = 0; }; then 7053 case `/usr/bin/file conftest.o` in 7054 *64-bit*) 7055 case $lt_cv_prog_gnu_ld in 7056 yes*) 7057 case $host in 7058 i?86-*-solaris*) 7059 LD="${LD-ld} -m elf_x86_64" 7060 ;; 7061 sparc*-*-solaris*) 7062 LD="${LD-ld} -m elf64_sparc" 7063 ;; 7064 esac 7065 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7066 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7067 LD="${LD-ld}_sol2" 7068 fi 7069 ;; 7070 *) 7071 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7072 LD="${LD-ld} -64" 7073 fi 7074 ;; 7075 esac 7076 ;; 7077 esac 7078 fi 7079 rm -rf conftest* 7080 ;; 7081esac 7082 7083need_locks="$enable_libtool_lock" 7084 7085if test -n "$ac_tool_prefix"; then 7086 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7087set dummy ${ac_tool_prefix}mt; ac_word=$2 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7089$as_echo_n "checking for $ac_word... " >&6; } 7090if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7091 $as_echo_n "(cached) " >&6 7092else 7093 if test -n "$MANIFEST_TOOL"; then 7094 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7095else 7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7097for as_dir in $PATH 7098do 7099 IFS=$as_save_IFS 7100 test -z "$as_dir" && as_dir=. 7101 for ac_exec_ext in '' $ac_executable_extensions; do 7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7103 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7105 break 2 7106 fi 7107done 7108 done 7109IFS=$as_save_IFS 7110 7111fi 7112fi 7113MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7114if test -n "$MANIFEST_TOOL"; then 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7116$as_echo "$MANIFEST_TOOL" >&6; } 7117else 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7119$as_echo "no" >&6; } 7120fi 7121 7122 7123fi 7124if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7125 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7126 # Extract the first word of "mt", so it can be a program name with args. 7127set dummy mt; ac_word=$2 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7129$as_echo_n "checking for $ac_word... " >&6; } 7130if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7131 $as_echo_n "(cached) " >&6 7132else 7133 if test -n "$ac_ct_MANIFEST_TOOL"; then 7134 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7135else 7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7137for as_dir in $PATH 7138do 7139 IFS=$as_save_IFS 7140 test -z "$as_dir" && as_dir=. 7141 for ac_exec_ext in '' $ac_executable_extensions; do 7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7143 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7145 break 2 7146 fi 7147done 7148 done 7149IFS=$as_save_IFS 7150 7151fi 7152fi 7153ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7154if test -n "$ac_ct_MANIFEST_TOOL"; then 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7156$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7157else 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7159$as_echo "no" >&6; } 7160fi 7161 7162 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7163 MANIFEST_TOOL=":" 7164 else 7165 case $cross_compiling:$ac_tool_warned in 7166yes:) 7167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7169ac_tool_warned=yes ;; 7170esac 7171 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7172 fi 7173else 7174 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7175fi 7176 7177test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7179$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7180if ${lt_cv_path_mainfest_tool+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 lt_cv_path_mainfest_tool=no 7184 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7185 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7186 cat conftest.err >&5 7187 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7188 lt_cv_path_mainfest_tool=yes 7189 fi 7190 rm -f conftest* 7191fi 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7193$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7194if test "x$lt_cv_path_mainfest_tool" != xyes; then 7195 MANIFEST_TOOL=: 7196fi 7197 7198 7199 7200 7201 7202 7203 case $host_os in 7204 rhapsody* | darwin*) 7205 if test -n "$ac_tool_prefix"; then 7206 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7207set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209$as_echo_n "checking for $ac_word... " >&6; } 7210if ${ac_cv_prog_DSYMUTIL+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 if test -n "$DSYMUTIL"; then 7214 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7215else 7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217for as_dir in $PATH 7218do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7223 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227done 7228 done 7229IFS=$as_save_IFS 7230 7231fi 7232fi 7233DSYMUTIL=$ac_cv_prog_DSYMUTIL 7234if test -n "$DSYMUTIL"; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7236$as_echo "$DSYMUTIL" >&6; } 7237else 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7239$as_echo "no" >&6; } 7240fi 7241 7242 7243fi 7244if test -z "$ac_cv_prog_DSYMUTIL"; then 7245 ac_ct_DSYMUTIL=$DSYMUTIL 7246 # Extract the first word of "dsymutil", so it can be a program name with args. 7247set dummy dsymutil; ac_word=$2 7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7249$as_echo_n "checking for $ac_word... " >&6; } 7250if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 if test -n "$ac_ct_DSYMUTIL"; then 7254 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7255else 7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7257for as_dir in $PATH 7258do 7259 IFS=$as_save_IFS 7260 test -z "$as_dir" && as_dir=. 7261 for ac_exec_ext in '' $ac_executable_extensions; do 7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7263 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7265 break 2 7266 fi 7267done 7268 done 7269IFS=$as_save_IFS 7270 7271fi 7272fi 7273ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7274if test -n "$ac_ct_DSYMUTIL"; then 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7276$as_echo "$ac_ct_DSYMUTIL" >&6; } 7277else 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7279$as_echo "no" >&6; } 7280fi 7281 7282 if test "x$ac_ct_DSYMUTIL" = x; then 7283 DSYMUTIL=":" 7284 else 7285 case $cross_compiling:$ac_tool_warned in 7286yes:) 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7289ac_tool_warned=yes ;; 7290esac 7291 DSYMUTIL=$ac_ct_DSYMUTIL 7292 fi 7293else 7294 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7295fi 7296 7297 if test -n "$ac_tool_prefix"; then 7298 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7299set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7301$as_echo_n "checking for $ac_word... " >&6; } 7302if ${ac_cv_prog_NMEDIT+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 if test -n "$NMEDIT"; then 7306 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7307else 7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7309for as_dir in $PATH 7310do 7311 IFS=$as_save_IFS 7312 test -z "$as_dir" && as_dir=. 7313 for ac_exec_ext in '' $ac_executable_extensions; do 7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7315 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7317 break 2 7318 fi 7319done 7320 done 7321IFS=$as_save_IFS 7322 7323fi 7324fi 7325NMEDIT=$ac_cv_prog_NMEDIT 7326if test -n "$NMEDIT"; then 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7328$as_echo "$NMEDIT" >&6; } 7329else 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7331$as_echo "no" >&6; } 7332fi 7333 7334 7335fi 7336if test -z "$ac_cv_prog_NMEDIT"; then 7337 ac_ct_NMEDIT=$NMEDIT 7338 # Extract the first word of "nmedit", so it can be a program name with args. 7339set dummy nmedit; ac_word=$2 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7341$as_echo_n "checking for $ac_word... " >&6; } 7342if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 if test -n "$ac_ct_NMEDIT"; then 7346 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7347else 7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7349for as_dir in $PATH 7350do 7351 IFS=$as_save_IFS 7352 test -z "$as_dir" && as_dir=. 7353 for ac_exec_ext in '' $ac_executable_extensions; do 7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7355 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7357 break 2 7358 fi 7359done 7360 done 7361IFS=$as_save_IFS 7362 7363fi 7364fi 7365ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7366if test -n "$ac_ct_NMEDIT"; then 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7368$as_echo "$ac_ct_NMEDIT" >&6; } 7369else 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7371$as_echo "no" >&6; } 7372fi 7373 7374 if test "x$ac_ct_NMEDIT" = x; then 7375 NMEDIT=":" 7376 else 7377 case $cross_compiling:$ac_tool_warned in 7378yes:) 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7381ac_tool_warned=yes ;; 7382esac 7383 NMEDIT=$ac_ct_NMEDIT 7384 fi 7385else 7386 NMEDIT="$ac_cv_prog_NMEDIT" 7387fi 7388 7389 if test -n "$ac_tool_prefix"; then 7390 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7391set dummy ${ac_tool_prefix}lipo; ac_word=$2 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7393$as_echo_n "checking for $ac_word... " >&6; } 7394if ${ac_cv_prog_LIPO+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 if test -n "$LIPO"; then 7398 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7399else 7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7401for as_dir in $PATH 7402do 7403 IFS=$as_save_IFS 7404 test -z "$as_dir" && as_dir=. 7405 for ac_exec_ext in '' $ac_executable_extensions; do 7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7407 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7409 break 2 7410 fi 7411done 7412 done 7413IFS=$as_save_IFS 7414 7415fi 7416fi 7417LIPO=$ac_cv_prog_LIPO 7418if test -n "$LIPO"; then 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7420$as_echo "$LIPO" >&6; } 7421else 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7423$as_echo "no" >&6; } 7424fi 7425 7426 7427fi 7428if test -z "$ac_cv_prog_LIPO"; then 7429 ac_ct_LIPO=$LIPO 7430 # Extract the first word of "lipo", so it can be a program name with args. 7431set dummy lipo; ac_word=$2 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7433$as_echo_n "checking for $ac_word... " >&6; } 7434if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 if test -n "$ac_ct_LIPO"; then 7438 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7439else 7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7441for as_dir in $PATH 7442do 7443 IFS=$as_save_IFS 7444 test -z "$as_dir" && as_dir=. 7445 for ac_exec_ext in '' $ac_executable_extensions; do 7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7447 ac_cv_prog_ac_ct_LIPO="lipo" 7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7449 break 2 7450 fi 7451done 7452 done 7453IFS=$as_save_IFS 7454 7455fi 7456fi 7457ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7458if test -n "$ac_ct_LIPO"; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7460$as_echo "$ac_ct_LIPO" >&6; } 7461else 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7463$as_echo "no" >&6; } 7464fi 7465 7466 if test "x$ac_ct_LIPO" = x; then 7467 LIPO=":" 7468 else 7469 case $cross_compiling:$ac_tool_warned in 7470yes:) 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7473ac_tool_warned=yes ;; 7474esac 7475 LIPO=$ac_ct_LIPO 7476 fi 7477else 7478 LIPO="$ac_cv_prog_LIPO" 7479fi 7480 7481 if test -n "$ac_tool_prefix"; then 7482 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7483set dummy ${ac_tool_prefix}otool; ac_word=$2 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7485$as_echo_n "checking for $ac_word... " >&6; } 7486if ${ac_cv_prog_OTOOL+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 if test -n "$OTOOL"; then 7490 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7491else 7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7493for as_dir in $PATH 7494do 7495 IFS=$as_save_IFS 7496 test -z "$as_dir" && as_dir=. 7497 for ac_exec_ext in '' $ac_executable_extensions; do 7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7499 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7501 break 2 7502 fi 7503done 7504 done 7505IFS=$as_save_IFS 7506 7507fi 7508fi 7509OTOOL=$ac_cv_prog_OTOOL 7510if test -n "$OTOOL"; then 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7512$as_echo "$OTOOL" >&6; } 7513else 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7515$as_echo "no" >&6; } 7516fi 7517 7518 7519fi 7520if test -z "$ac_cv_prog_OTOOL"; then 7521 ac_ct_OTOOL=$OTOOL 7522 # Extract the first word of "otool", so it can be a program name with args. 7523set dummy otool; ac_word=$2 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7525$as_echo_n "checking for $ac_word... " >&6; } 7526if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 if test -n "$ac_ct_OTOOL"; then 7530 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7531else 7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7533for as_dir in $PATH 7534do 7535 IFS=$as_save_IFS 7536 test -z "$as_dir" && as_dir=. 7537 for ac_exec_ext in '' $ac_executable_extensions; do 7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7539 ac_cv_prog_ac_ct_OTOOL="otool" 7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7541 break 2 7542 fi 7543done 7544 done 7545IFS=$as_save_IFS 7546 7547fi 7548fi 7549ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7550if test -n "$ac_ct_OTOOL"; then 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7552$as_echo "$ac_ct_OTOOL" >&6; } 7553else 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7555$as_echo "no" >&6; } 7556fi 7557 7558 if test "x$ac_ct_OTOOL" = x; then 7559 OTOOL=":" 7560 else 7561 case $cross_compiling:$ac_tool_warned in 7562yes:) 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7565ac_tool_warned=yes ;; 7566esac 7567 OTOOL=$ac_ct_OTOOL 7568 fi 7569else 7570 OTOOL="$ac_cv_prog_OTOOL" 7571fi 7572 7573 if test -n "$ac_tool_prefix"; then 7574 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7575set dummy ${ac_tool_prefix}otool64; ac_word=$2 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7577$as_echo_n "checking for $ac_word... " >&6; } 7578if ${ac_cv_prog_OTOOL64+:} false; then : 7579 $as_echo_n "(cached) " >&6 7580else 7581 if test -n "$OTOOL64"; then 7582 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7583else 7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7585for as_dir in $PATH 7586do 7587 IFS=$as_save_IFS 7588 test -z "$as_dir" && as_dir=. 7589 for ac_exec_ext in '' $ac_executable_extensions; do 7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7591 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7593 break 2 7594 fi 7595done 7596 done 7597IFS=$as_save_IFS 7598 7599fi 7600fi 7601OTOOL64=$ac_cv_prog_OTOOL64 7602if test -n "$OTOOL64"; then 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7604$as_echo "$OTOOL64" >&6; } 7605else 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7607$as_echo "no" >&6; } 7608fi 7609 7610 7611fi 7612if test -z "$ac_cv_prog_OTOOL64"; then 7613 ac_ct_OTOOL64=$OTOOL64 7614 # Extract the first word of "otool64", so it can be a program name with args. 7615set dummy otool64; ac_word=$2 7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7617$as_echo_n "checking for $ac_word... " >&6; } 7618if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7619 $as_echo_n "(cached) " >&6 7620else 7621 if test -n "$ac_ct_OTOOL64"; then 7622 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7623else 7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7625for as_dir in $PATH 7626do 7627 IFS=$as_save_IFS 7628 test -z "$as_dir" && as_dir=. 7629 for ac_exec_ext in '' $ac_executable_extensions; do 7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7631 ac_cv_prog_ac_ct_OTOOL64="otool64" 7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7633 break 2 7634 fi 7635done 7636 done 7637IFS=$as_save_IFS 7638 7639fi 7640fi 7641ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7642if test -n "$ac_ct_OTOOL64"; then 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7644$as_echo "$ac_ct_OTOOL64" >&6; } 7645else 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7647$as_echo "no" >&6; } 7648fi 7649 7650 if test "x$ac_ct_OTOOL64" = x; then 7651 OTOOL64=":" 7652 else 7653 case $cross_compiling:$ac_tool_warned in 7654yes:) 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7657ac_tool_warned=yes ;; 7658esac 7659 OTOOL64=$ac_ct_OTOOL64 7660 fi 7661else 7662 OTOOL64="$ac_cv_prog_OTOOL64" 7663fi 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7692$as_echo_n "checking for -single_module linker flag... " >&6; } 7693if ${lt_cv_apple_cc_single_mod+:} false; then : 7694 $as_echo_n "(cached) " >&6 7695else 7696 lt_cv_apple_cc_single_mod=no 7697 if test -z "${LT_MULTI_MODULE}"; then 7698 # By default we will add the -single_module flag. You can override 7699 # by either setting the environment variable LT_MULTI_MODULE 7700 # non-empty at configure time, or by adding -multi_module to the 7701 # link flags. 7702 rm -rf libconftest.dylib* 7703 echo "int foo(void){return 1;}" > conftest.c 7704 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7705-dynamiclib -Wl,-single_module conftest.c" >&5 7706 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7707 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7708 _lt_result=$? 7709 # If there is a non-empty error log, and "single_module" 7710 # appears in it, assume the flag caused a linker warning 7711 if test -s conftest.err && $GREP single_module conftest.err; then 7712 cat conftest.err >&5 7713 # Otherwise, if the output was created with a 0 exit code from 7714 # the compiler, it worked. 7715 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7716 lt_cv_apple_cc_single_mod=yes 7717 else 7718 cat conftest.err >&5 7719 fi 7720 rm -rf libconftest.dylib* 7721 rm -f conftest.* 7722 fi 7723fi 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7725$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7726 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7728$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7729if ${lt_cv_ld_exported_symbols_list+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 lt_cv_ld_exported_symbols_list=no 7733 save_LDFLAGS=$LDFLAGS 7734 echo "_main" > conftest.sym 7735 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738 7739int 7740main () 7741{ 7742 7743 ; 7744 return 0; 7745} 7746_ACEOF 7747if ac_fn_c_try_link "$LINENO"; then : 7748 lt_cv_ld_exported_symbols_list=yes 7749else 7750 lt_cv_ld_exported_symbols_list=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext \ 7753 conftest$ac_exeext conftest.$ac_ext 7754 LDFLAGS="$save_LDFLAGS" 7755 7756fi 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7758$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7759 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7761$as_echo_n "checking for -force_load linker flag... " >&6; } 7762if ${lt_cv_ld_force_load+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 lt_cv_ld_force_load=no 7766 cat > conftest.c << _LT_EOF 7767int forced_loaded() { return 2;} 7768_LT_EOF 7769 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7770 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7771 echo "$AR cru libconftest.a conftest.o" >&5 7772 $AR cru libconftest.a conftest.o 2>&5 7773 echo "$RANLIB libconftest.a" >&5 7774 $RANLIB libconftest.a 2>&5 7775 cat > conftest.c << _LT_EOF 7776int main() { return 0;} 7777_LT_EOF 7778 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7779 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7780 _lt_result=$? 7781 if test -s conftest.err && $GREP force_load conftest.err; then 7782 cat conftest.err >&5 7783 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7784 lt_cv_ld_force_load=yes 7785 else 7786 cat conftest.err >&5 7787 fi 7788 rm -f conftest.err libconftest.a conftest conftest.c 7789 rm -rf conftest.dSYM 7790 7791fi 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7793$as_echo "$lt_cv_ld_force_load" >&6; } 7794 case $host_os in 7795 rhapsody* | darwin1.[012]) 7796 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7797 darwin1.*) 7798 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7799 darwin*) # darwin 5.x on 7800 # if running on 10.5 or later, the deployment target defaults 7801 # to the OS version, if on x86, and 10.4, the deployment 7802 # target defaults to 10.4. Don't you love it? 7803 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7804 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7805 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7806 10.[012]*) 7807 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7808 10.*) 7809 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7810 esac 7811 ;; 7812 esac 7813 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7814 _lt_dar_single_mod='$single_module' 7815 fi 7816 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7817 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7818 else 7819 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7820 fi 7821 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7822 _lt_dsymutil='~$DSYMUTIL $lib || :' 7823 else 7824 _lt_dsymutil= 7825 fi 7826 ;; 7827 esac 7828 7829for ac_header in dlfcn.h 7830do : 7831 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7832" 7833if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7834 cat >>confdefs.h <<_ACEOF 7835#define HAVE_DLFCN_H 1 7836_ACEOF 7837 7838fi 7839 7840done 7841 7842 7843 7844 7845 7846# Set options 7847 7848 7849 7850 enable_dlopen=no 7851 7852 7853 enable_win32_dll=no 7854 7855 7856 # Check whether --enable-shared was given. 7857if test "${enable_shared+set}" = set; then : 7858 enableval=$enable_shared; p=${PACKAGE-default} 7859 case $enableval in 7860 yes) enable_shared=yes ;; 7861 no) enable_shared=no ;; 7862 *) 7863 enable_shared=no 7864 # Look at the argument we got. We use all the common list separators. 7865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7866 for pkg in $enableval; do 7867 IFS="$lt_save_ifs" 7868 if test "X$pkg" = "X$p"; then 7869 enable_shared=yes 7870 fi 7871 done 7872 IFS="$lt_save_ifs" 7873 ;; 7874 esac 7875else 7876 enable_shared=yes 7877fi 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 # Check whether --enable-static was given. 7888if test "${enable_static+set}" = set; then : 7889 enableval=$enable_static; p=${PACKAGE-default} 7890 case $enableval in 7891 yes) enable_static=yes ;; 7892 no) enable_static=no ;; 7893 *) 7894 enable_static=no 7895 # Look at the argument we got. We use all the common list separators. 7896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7897 for pkg in $enableval; do 7898 IFS="$lt_save_ifs" 7899 if test "X$pkg" = "X$p"; then 7900 enable_static=yes 7901 fi 7902 done 7903 IFS="$lt_save_ifs" 7904 ;; 7905 esac 7906else 7907 enable_static=yes 7908fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919# Check whether --with-pic was given. 7920if test "${with_pic+set}" = set; then : 7921 withval=$with_pic; lt_p=${PACKAGE-default} 7922 case $withval in 7923 yes|no) pic_mode=$withval ;; 7924 *) 7925 pic_mode=default 7926 # Look at the argument we got. We use all the common list separators. 7927 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7928 for lt_pkg in $withval; do 7929 IFS="$lt_save_ifs" 7930 if test "X$lt_pkg" = "X$lt_p"; then 7931 pic_mode=yes 7932 fi 7933 done 7934 IFS="$lt_save_ifs" 7935 ;; 7936 esac 7937else 7938 pic_mode=default 7939fi 7940 7941 7942test -z "$pic_mode" && pic_mode=default 7943 7944 7945 7946 7947 7948 7949 7950 # Check whether --enable-fast-install was given. 7951if test "${enable_fast_install+set}" = set; then : 7952 enableval=$enable_fast_install; p=${PACKAGE-default} 7953 case $enableval in 7954 yes) enable_fast_install=yes ;; 7955 no) enable_fast_install=no ;; 7956 *) 7957 enable_fast_install=no 7958 # Look at the argument we got. We use all the common list separators. 7959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7960 for pkg in $enableval; do 7961 IFS="$lt_save_ifs" 7962 if test "X$pkg" = "X$p"; then 7963 enable_fast_install=yes 7964 fi 7965 done 7966 IFS="$lt_save_ifs" 7967 ;; 7968 esac 7969else 7970 enable_fast_install=yes 7971fi 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983# This can be used to rebuild libtool when needed 7984LIBTOOL_DEPS="$ltmain" 7985 7986# Always use our own libtool. 7987LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018test -z "$LN_S" && LN_S="ln -s" 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033if test -n "${ZSH_VERSION+set}" ; then 8034 setopt NO_GLOB_SUBST 8035fi 8036 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8038$as_echo_n "checking for objdir... " >&6; } 8039if ${lt_cv_objdir+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 rm -f .libs 2>/dev/null 8043mkdir .libs 2>/dev/null 8044if test -d .libs; then 8045 lt_cv_objdir=.libs 8046else 8047 # MS-DOS does not allow filenames that begin with a dot. 8048 lt_cv_objdir=_libs 8049fi 8050rmdir .libs 2>/dev/null 8051fi 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8053$as_echo "$lt_cv_objdir" >&6; } 8054objdir=$lt_cv_objdir 8055 8056 8057 8058 8059 8060cat >>confdefs.h <<_ACEOF 8061#define LT_OBJDIR "$lt_cv_objdir/" 8062_ACEOF 8063 8064 8065 8066 8067case $host_os in 8068aix3*) 8069 # AIX sometimes has problems with the GCC collect2 program. For some 8070 # reason, if we set the COLLECT_NAMES environment variable, the problems 8071 # vanish in a puff of smoke. 8072 if test "X${COLLECT_NAMES+set}" != Xset; then 8073 COLLECT_NAMES= 8074 export COLLECT_NAMES 8075 fi 8076 ;; 8077esac 8078 8079# Global variables: 8080ofile=libtool 8081can_build_shared=yes 8082 8083# All known linkers require a `.a' archive for static linking (except MSVC, 8084# which needs '.lib'). 8085libext=a 8086 8087with_gnu_ld="$lt_cv_prog_gnu_ld" 8088 8089old_CC="$CC" 8090old_CFLAGS="$CFLAGS" 8091 8092# Set sane defaults for various variables 8093test -z "$CC" && CC=cc 8094test -z "$LTCC" && LTCC=$CC 8095test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8096test -z "$LD" && LD=ld 8097test -z "$ac_objext" && ac_objext=o 8098 8099for cc_temp in $compiler""; do 8100 case $cc_temp in 8101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8103 \-*) ;; 8104 *) break;; 8105 esac 8106done 8107cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8108 8109 8110# Only perform the check for file, if the check method requires it 8111test -z "$MAGIC_CMD" && MAGIC_CMD=file 8112case $deplibs_check_method in 8113file_magic*) 8114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8116$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8117if ${lt_cv_path_MAGIC_CMD+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 case $MAGIC_CMD in 8121[\\/*] | ?:[\\/]*) 8122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8123 ;; 8124*) 8125 lt_save_MAGIC_CMD="$MAGIC_CMD" 8126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8128 for ac_dir in $ac_dummy; do 8129 IFS="$lt_save_ifs" 8130 test -z "$ac_dir" && ac_dir=. 8131 if test -f $ac_dir/${ac_tool_prefix}file; then 8132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8133 if test -n "$file_magic_test_file"; then 8134 case $deplibs_check_method in 8135 "file_magic "*) 8136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8139 $EGREP "$file_magic_regex" > /dev/null; then 8140 : 8141 else 8142 cat <<_LT_EOF 1>&2 8143 8144*** Warning: the command libtool uses to detect shared libraries, 8145*** $file_magic_cmd, produces output that libtool cannot recognize. 8146*** The result is that libtool may fail to recognize shared libraries 8147*** as such. This will affect the creation of libtool libraries that 8148*** depend on shared libraries, but programs linked with such libtool 8149*** libraries will work regardless of this problem. Nevertheless, you 8150*** may want to report the problem to your system manager and/or to 8151*** bug-libtool@gnu.org 8152 8153_LT_EOF 8154 fi ;; 8155 esac 8156 fi 8157 break 8158 fi 8159 done 8160 IFS="$lt_save_ifs" 8161 MAGIC_CMD="$lt_save_MAGIC_CMD" 8162 ;; 8163esac 8164fi 8165 8166MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8167if test -n "$MAGIC_CMD"; then 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8169$as_echo "$MAGIC_CMD" >&6; } 8170else 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8172$as_echo "no" >&6; } 8173fi 8174 8175 8176 8177 8178 8179if test -z "$lt_cv_path_MAGIC_CMD"; then 8180 if test -n "$ac_tool_prefix"; then 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8182$as_echo_n "checking for file... " >&6; } 8183if ${lt_cv_path_MAGIC_CMD+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 case $MAGIC_CMD in 8187[\\/*] | ?:[\\/]*) 8188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8189 ;; 8190*) 8191 lt_save_MAGIC_CMD="$MAGIC_CMD" 8192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8194 for ac_dir in $ac_dummy; do 8195 IFS="$lt_save_ifs" 8196 test -z "$ac_dir" && ac_dir=. 8197 if test -f $ac_dir/file; then 8198 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8199 if test -n "$file_magic_test_file"; then 8200 case $deplibs_check_method in 8201 "file_magic "*) 8202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8205 $EGREP "$file_magic_regex" > /dev/null; then 8206 : 8207 else 8208 cat <<_LT_EOF 1>&2 8209 8210*** Warning: the command libtool uses to detect shared libraries, 8211*** $file_magic_cmd, produces output that libtool cannot recognize. 8212*** The result is that libtool may fail to recognize shared libraries 8213*** as such. This will affect the creation of libtool libraries that 8214*** depend on shared libraries, but programs linked with such libtool 8215*** libraries will work regardless of this problem. Nevertheless, you 8216*** may want to report the problem to your system manager and/or to 8217*** bug-libtool@gnu.org 8218 8219_LT_EOF 8220 fi ;; 8221 esac 8222 fi 8223 break 8224 fi 8225 done 8226 IFS="$lt_save_ifs" 8227 MAGIC_CMD="$lt_save_MAGIC_CMD" 8228 ;; 8229esac 8230fi 8231 8232MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8233if test -n "$MAGIC_CMD"; then 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8235$as_echo "$MAGIC_CMD" >&6; } 8236else 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8238$as_echo "no" >&6; } 8239fi 8240 8241 8242 else 8243 MAGIC_CMD=: 8244 fi 8245fi 8246 8247 fi 8248 ;; 8249esac 8250 8251# Use C for the default configuration in the libtool script 8252 8253lt_save_CC="$CC" 8254ac_ext=c 8255ac_cpp='$CPP $CPPFLAGS' 8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8258ac_compiler_gnu=$ac_cv_c_compiler_gnu 8259 8260 8261# Source file extension for C test sources. 8262ac_ext=c 8263 8264# Object file extension for compiled C test sources. 8265objext=o 8266objext=$objext 8267 8268# Code to be used in simple compile tests 8269lt_simple_compile_test_code="int some_variable = 0;" 8270 8271# Code to be used in simple link tests 8272lt_simple_link_test_code='int main(){return(0);}' 8273 8274 8275 8276 8277 8278 8279 8280# If no C compiler was specified, use CC. 8281LTCC=${LTCC-"$CC"} 8282 8283# If no C compiler flags were specified, use CFLAGS. 8284LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8285 8286# Allow CC to be a program name with arguments. 8287compiler=$CC 8288 8289# Save the default compiler, since it gets overwritten when the other 8290# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8291compiler_DEFAULT=$CC 8292 8293# save warnings/boilerplate of simple test code 8294ac_outfile=conftest.$ac_objext 8295echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8297_lt_compiler_boilerplate=`cat conftest.err` 8298$RM conftest* 8299 8300ac_outfile=conftest.$ac_objext 8301echo "$lt_simple_link_test_code" >conftest.$ac_ext 8302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8303_lt_linker_boilerplate=`cat conftest.err` 8304$RM -r conftest* 8305 8306 8307if test -n "$compiler"; then 8308 8309lt_prog_compiler_no_builtin_flag= 8310 8311if test "$GCC" = yes; then 8312 case $cc_basename in 8313 nvcc*) 8314 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8315 *) 8316 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8317 esac 8318 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8320$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8321if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 lt_cv_prog_compiler_rtti_exceptions=no 8325 ac_outfile=conftest.$ac_objext 8326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8327 lt_compiler_flag="-fno-rtti -fno-exceptions" 8328 # Insert the option either (1) after the last *FLAGS variable, or 8329 # (2) before a word containing "conftest.", or (3) at the end. 8330 # Note that $ac_compile itself does not contain backslashes and begins 8331 # with a dollar sign (not a hyphen), so the echo should work correctly. 8332 # The option is referenced via a variable to avoid confusing sed. 8333 lt_compile=`echo "$ac_compile" | $SED \ 8334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8336 -e 's:$: $lt_compiler_flag:'` 8337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8338 (eval "$lt_compile" 2>conftest.err) 8339 ac_status=$? 8340 cat conftest.err >&5 8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8342 if (exit $ac_status) && test -s "$ac_outfile"; then 8343 # The compiler can only warn and ignore the option if not recognized 8344 # So say no if there are warnings other than the usual output. 8345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8348 lt_cv_prog_compiler_rtti_exceptions=yes 8349 fi 8350 fi 8351 $RM conftest* 8352 8353fi 8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8355$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8356 8357if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8358 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8359else 8360 : 8361fi 8362 8363fi 8364 8365 8366 8367 8368 8369 8370 lt_prog_compiler_wl= 8371lt_prog_compiler_pic= 8372lt_prog_compiler_static= 8373 8374 8375 if test "$GCC" = yes; then 8376 lt_prog_compiler_wl='-Wl,' 8377 lt_prog_compiler_static='-static' 8378 8379 case $host_os in 8380 aix*) 8381 # All AIX code is PIC. 8382 if test "$host_cpu" = ia64; then 8383 # AIX 5 now supports IA64 processor 8384 lt_prog_compiler_static='-Bstatic' 8385 fi 8386 ;; 8387 8388 amigaos*) 8389 case $host_cpu in 8390 powerpc) 8391 # see comment about AmigaOS4 .so support 8392 lt_prog_compiler_pic='-fPIC' 8393 ;; 8394 m68k) 8395 # FIXME: we need at least 68020 code to build shared libraries, but 8396 # adding the `-m68020' flag to GCC prevents building anything better, 8397 # like `-m68040'. 8398 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8399 ;; 8400 esac 8401 ;; 8402 8403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8404 # PIC is the default for these OSes. 8405 ;; 8406 8407 mingw* | cygwin* | pw32* | os2* | cegcc*) 8408 # This hack is so that the source file can tell whether it is being 8409 # built for inclusion in a dll (and should export symbols for example). 8410 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8411 # (--disable-auto-import) libraries 8412 lt_prog_compiler_pic='-DDLL_EXPORT' 8413 ;; 8414 8415 darwin* | rhapsody*) 8416 # PIC is the default on this platform 8417 # Common symbols not allowed in MH_DYLIB files 8418 lt_prog_compiler_pic='-fno-common' 8419 ;; 8420 8421 haiku*) 8422 # PIC is the default for Haiku. 8423 # The "-static" flag exists, but is broken. 8424 lt_prog_compiler_static= 8425 ;; 8426 8427 hpux*) 8428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8430 # sets the default TLS model and affects inlining. 8431 case $host_cpu in 8432 hppa*64*) 8433 # +Z the default 8434 ;; 8435 *) 8436 lt_prog_compiler_pic='-fPIC' 8437 ;; 8438 esac 8439 ;; 8440 8441 interix[3-9]*) 8442 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8443 # Instead, we relocate shared libraries at runtime. 8444 ;; 8445 8446 msdosdjgpp*) 8447 # Just because we use GCC doesn't mean we suddenly get shared libraries 8448 # on systems that don't support them. 8449 lt_prog_compiler_can_build_shared=no 8450 enable_shared=no 8451 ;; 8452 8453 *nto* | *qnx*) 8454 # QNX uses GNU C++, but need to define -shared option too, otherwise 8455 # it will coredump. 8456 lt_prog_compiler_pic='-fPIC -shared' 8457 ;; 8458 8459 sysv4*MP*) 8460 if test -d /usr/nec; then 8461 lt_prog_compiler_pic=-Kconform_pic 8462 fi 8463 ;; 8464 8465 *) 8466 lt_prog_compiler_pic='-fPIC' 8467 ;; 8468 esac 8469 8470 case $cc_basename in 8471 nvcc*) # Cuda Compiler Driver 2.2 8472 lt_prog_compiler_wl='-Xlinker ' 8473 if test -n "$lt_prog_compiler_pic"; then 8474 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8475 fi 8476 ;; 8477 esac 8478 else 8479 # PORTME Check for flag to pass linker flags through the system compiler. 8480 case $host_os in 8481 aix*) 8482 lt_prog_compiler_wl='-Wl,' 8483 if test "$host_cpu" = ia64; then 8484 # AIX 5 now supports IA64 processor 8485 lt_prog_compiler_static='-Bstatic' 8486 else 8487 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8488 fi 8489 ;; 8490 8491 mingw* | cygwin* | pw32* | os2* | cegcc*) 8492 # This hack is so that the source file can tell whether it is being 8493 # built for inclusion in a dll (and should export symbols for example). 8494 lt_prog_compiler_pic='-DDLL_EXPORT' 8495 ;; 8496 8497 hpux9* | hpux10* | hpux11*) 8498 lt_prog_compiler_wl='-Wl,' 8499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8500 # not for PA HP-UX. 8501 case $host_cpu in 8502 hppa*64*|ia64*) 8503 # +Z the default 8504 ;; 8505 *) 8506 lt_prog_compiler_pic='+Z' 8507 ;; 8508 esac 8509 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8510 lt_prog_compiler_static='${wl}-a ${wl}archive' 8511 ;; 8512 8513 irix5* | irix6* | nonstopux*) 8514 lt_prog_compiler_wl='-Wl,' 8515 # PIC (with -KPIC) is the default. 8516 lt_prog_compiler_static='-non_shared' 8517 ;; 8518 8519 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8520 case $cc_basename in 8521 # old Intel for x86_64 which still supported -KPIC. 8522 ecc*) 8523 lt_prog_compiler_wl='-Wl,' 8524 lt_prog_compiler_pic='-KPIC' 8525 lt_prog_compiler_static='-static' 8526 ;; 8527 # icc used to be incompatible with GCC. 8528 # ICC 10 doesn't accept -KPIC any more. 8529 icc* | ifort*) 8530 lt_prog_compiler_wl='-Wl,' 8531 lt_prog_compiler_pic='-fPIC' 8532 lt_prog_compiler_static='-static' 8533 ;; 8534 # Lahey Fortran 8.1. 8535 lf95*) 8536 lt_prog_compiler_wl='-Wl,' 8537 lt_prog_compiler_pic='--shared' 8538 lt_prog_compiler_static='--static' 8539 ;; 8540 nagfor*) 8541 # NAG Fortran compiler 8542 lt_prog_compiler_wl='-Wl,-Wl,,' 8543 lt_prog_compiler_pic='-PIC' 8544 lt_prog_compiler_static='-Bstatic' 8545 ;; 8546 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8547 # Portland Group compilers (*not* the Pentium gcc compiler, 8548 # which looks to be a dead project) 8549 lt_prog_compiler_wl='-Wl,' 8550 lt_prog_compiler_pic='-fpic' 8551 lt_prog_compiler_static='-Bstatic' 8552 ;; 8553 ccc*) 8554 lt_prog_compiler_wl='-Wl,' 8555 # All Alpha code is PIC. 8556 lt_prog_compiler_static='-non_shared' 8557 ;; 8558 xl* | bgxl* | bgf* | mpixl*) 8559 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8560 lt_prog_compiler_wl='-Wl,' 8561 lt_prog_compiler_pic='-qpic' 8562 lt_prog_compiler_static='-qstaticlink' 8563 ;; 8564 *) 8565 case `$CC -V 2>&1 | sed 5q` in 8566 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8567 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8568 lt_prog_compiler_pic='-KPIC' 8569 lt_prog_compiler_static='-Bstatic' 8570 lt_prog_compiler_wl='' 8571 ;; 8572 *Sun\ F* | *Sun*Fortran*) 8573 lt_prog_compiler_pic='-KPIC' 8574 lt_prog_compiler_static='-Bstatic' 8575 lt_prog_compiler_wl='-Qoption ld ' 8576 ;; 8577 *Sun\ C*) 8578 # Sun C 5.9 8579 lt_prog_compiler_pic='-KPIC' 8580 lt_prog_compiler_static='-Bstatic' 8581 lt_prog_compiler_wl='-Wl,' 8582 ;; 8583 *Intel*\ [CF]*Compiler*) 8584 lt_prog_compiler_wl='-Wl,' 8585 lt_prog_compiler_pic='-fPIC' 8586 lt_prog_compiler_static='-static' 8587 ;; 8588 *Portland\ Group*) 8589 lt_prog_compiler_wl='-Wl,' 8590 lt_prog_compiler_pic='-fpic' 8591 lt_prog_compiler_static='-Bstatic' 8592 ;; 8593 esac 8594 ;; 8595 esac 8596 ;; 8597 8598 newsos6) 8599 lt_prog_compiler_pic='-KPIC' 8600 lt_prog_compiler_static='-Bstatic' 8601 ;; 8602 8603 *nto* | *qnx*) 8604 # QNX uses GNU C++, but need to define -shared option too, otherwise 8605 # it will coredump. 8606 lt_prog_compiler_pic='-fPIC -shared' 8607 ;; 8608 8609 osf3* | osf4* | osf5*) 8610 lt_prog_compiler_wl='-Wl,' 8611 # All OSF/1 code is PIC. 8612 lt_prog_compiler_static='-non_shared' 8613 ;; 8614 8615 rdos*) 8616 lt_prog_compiler_static='-non_shared' 8617 ;; 8618 8619 solaris*) 8620 lt_prog_compiler_pic='-KPIC' 8621 lt_prog_compiler_static='-Bstatic' 8622 case $cc_basename in 8623 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8624 lt_prog_compiler_wl='-Qoption ld ';; 8625 *) 8626 lt_prog_compiler_wl='-Wl,';; 8627 esac 8628 ;; 8629 8630 sunos4*) 8631 lt_prog_compiler_wl='-Qoption ld ' 8632 lt_prog_compiler_pic='-PIC' 8633 lt_prog_compiler_static='-Bstatic' 8634 ;; 8635 8636 sysv4 | sysv4.2uw2* | sysv4.3*) 8637 lt_prog_compiler_wl='-Wl,' 8638 lt_prog_compiler_pic='-KPIC' 8639 lt_prog_compiler_static='-Bstatic' 8640 ;; 8641 8642 sysv4*MP*) 8643 if test -d /usr/nec ;then 8644 lt_prog_compiler_pic='-Kconform_pic' 8645 lt_prog_compiler_static='-Bstatic' 8646 fi 8647 ;; 8648 8649 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8650 lt_prog_compiler_wl='-Wl,' 8651 lt_prog_compiler_pic='-KPIC' 8652 lt_prog_compiler_static='-Bstatic' 8653 ;; 8654 8655 unicos*) 8656 lt_prog_compiler_wl='-Wl,' 8657 lt_prog_compiler_can_build_shared=no 8658 ;; 8659 8660 uts4*) 8661 lt_prog_compiler_pic='-pic' 8662 lt_prog_compiler_static='-Bstatic' 8663 ;; 8664 8665 *) 8666 lt_prog_compiler_can_build_shared=no 8667 ;; 8668 esac 8669 fi 8670 8671case $host_os in 8672 # For platforms which do not support PIC, -DPIC is meaningless: 8673 *djgpp*) 8674 lt_prog_compiler_pic= 8675 ;; 8676 *) 8677 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8678 ;; 8679esac 8680 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8682$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8683if ${lt_cv_prog_compiler_pic+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8687fi 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8689$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8690lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8691 8692# 8693# Check to make sure the PIC flag actually works. 8694# 8695if test -n "$lt_prog_compiler_pic"; then 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8697$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8698if ${lt_cv_prog_compiler_pic_works+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 lt_cv_prog_compiler_pic_works=no 8702 ac_outfile=conftest.$ac_objext 8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8704 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8705 # Insert the option either (1) after the last *FLAGS variable, or 8706 # (2) before a word containing "conftest.", or (3) at the end. 8707 # Note that $ac_compile itself does not contain backslashes and begins 8708 # with a dollar sign (not a hyphen), so the echo should work correctly. 8709 # The option is referenced via a variable to avoid confusing sed. 8710 lt_compile=`echo "$ac_compile" | $SED \ 8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8713 -e 's:$: $lt_compiler_flag:'` 8714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8715 (eval "$lt_compile" 2>conftest.err) 8716 ac_status=$? 8717 cat conftest.err >&5 8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8719 if (exit $ac_status) && test -s "$ac_outfile"; then 8720 # The compiler can only warn and ignore the option if not recognized 8721 # So say no if there are warnings other than the usual output. 8722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8725 lt_cv_prog_compiler_pic_works=yes 8726 fi 8727 fi 8728 $RM conftest* 8729 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8732$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8733 8734if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8735 case $lt_prog_compiler_pic in 8736 "" | " "*) ;; 8737 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8738 esac 8739else 8740 lt_prog_compiler_pic= 8741 lt_prog_compiler_can_build_shared=no 8742fi 8743 8744fi 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756# 8757# Check to make sure the static flag actually works. 8758# 8759wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8761$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8762if ${lt_cv_prog_compiler_static_works+:} false; then : 8763 $as_echo_n "(cached) " >&6 8764else 8765 lt_cv_prog_compiler_static_works=no 8766 save_LDFLAGS="$LDFLAGS" 8767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8768 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8770 # The linker can only warn and ignore the option if not recognized 8771 # So say no if there are warnings 8772 if test -s conftest.err; then 8773 # Append any errors to the config.log. 8774 cat conftest.err 1>&5 8775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8777 if diff conftest.exp conftest.er2 >/dev/null; then 8778 lt_cv_prog_compiler_static_works=yes 8779 fi 8780 else 8781 lt_cv_prog_compiler_static_works=yes 8782 fi 8783 fi 8784 $RM -r conftest* 8785 LDFLAGS="$save_LDFLAGS" 8786 8787fi 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8789$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8790 8791if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8792 : 8793else 8794 lt_prog_compiler_static= 8795fi 8796 8797 8798 8799 8800 8801 8802 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8804$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8805if ${lt_cv_prog_compiler_c_o+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 lt_cv_prog_compiler_c_o=no 8809 $RM -r conftest 2>/dev/null 8810 mkdir conftest 8811 cd conftest 8812 mkdir out 8813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8814 8815 lt_compiler_flag="-o out/conftest2.$ac_objext" 8816 # Insert the option either (1) after the last *FLAGS variable, or 8817 # (2) before a word containing "conftest.", or (3) at the end. 8818 # Note that $ac_compile itself does not contain backslashes and begins 8819 # with a dollar sign (not a hyphen), so the echo should work correctly. 8820 lt_compile=`echo "$ac_compile" | $SED \ 8821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8823 -e 's:$: $lt_compiler_flag:'` 8824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8825 (eval "$lt_compile" 2>out/conftest.err) 8826 ac_status=$? 8827 cat out/conftest.err >&5 8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8829 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8830 then 8831 # The compiler can only warn and ignore the option if not recognized 8832 # So say no if there are warnings 8833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8836 lt_cv_prog_compiler_c_o=yes 8837 fi 8838 fi 8839 chmod u+w . 2>&5 8840 $RM conftest* 8841 # SGI C++ compiler will create directory out/ii_files/ for 8842 # template instantiation 8843 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8844 $RM out/* && rmdir out 8845 cd .. 8846 $RM -r conftest 8847 $RM conftest* 8848 8849fi 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8851$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8852 8853 8854 8855 8856 8857 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8859$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8860if ${lt_cv_prog_compiler_c_o+:} false; then : 8861 $as_echo_n "(cached) " >&6 8862else 8863 lt_cv_prog_compiler_c_o=no 8864 $RM -r conftest 2>/dev/null 8865 mkdir conftest 8866 cd conftest 8867 mkdir out 8868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8869 8870 lt_compiler_flag="-o out/conftest2.$ac_objext" 8871 # Insert the option either (1) after the last *FLAGS variable, or 8872 # (2) before a word containing "conftest.", or (3) at the end. 8873 # Note that $ac_compile itself does not contain backslashes and begins 8874 # with a dollar sign (not a hyphen), so the echo should work correctly. 8875 lt_compile=`echo "$ac_compile" | $SED \ 8876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8878 -e 's:$: $lt_compiler_flag:'` 8879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8880 (eval "$lt_compile" 2>out/conftest.err) 8881 ac_status=$? 8882 cat out/conftest.err >&5 8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8884 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8885 then 8886 # The compiler can only warn and ignore the option if not recognized 8887 # So say no if there are warnings 8888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8891 lt_cv_prog_compiler_c_o=yes 8892 fi 8893 fi 8894 chmod u+w . 2>&5 8895 $RM conftest* 8896 # SGI C++ compiler will create directory out/ii_files/ for 8897 # template instantiation 8898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8899 $RM out/* && rmdir out 8900 cd .. 8901 $RM -r conftest 8902 $RM conftest* 8903 8904fi 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8906$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8907 8908 8909 8910 8911hard_links="nottested" 8912if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8913 # do not overwrite the value of need_locks provided by the user 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8915$as_echo_n "checking if we can lock with hard links... " >&6; } 8916 hard_links=yes 8917 $RM conftest* 8918 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8919 touch conftest.a 8920 ln conftest.a conftest.b 2>&5 || hard_links=no 8921 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8923$as_echo "$hard_links" >&6; } 8924 if test "$hard_links" = no; then 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8926$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8927 need_locks=warn 8928 fi 8929else 8930 need_locks=no 8931fi 8932 8933 8934 8935 8936 8937 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8939$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8940 8941 runpath_var= 8942 allow_undefined_flag= 8943 always_export_symbols=no 8944 archive_cmds= 8945 archive_expsym_cmds= 8946 compiler_needs_object=no 8947 enable_shared_with_static_runtimes=no 8948 export_dynamic_flag_spec= 8949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8950 hardcode_automatic=no 8951 hardcode_direct=no 8952 hardcode_direct_absolute=no 8953 hardcode_libdir_flag_spec= 8954 hardcode_libdir_separator= 8955 hardcode_minus_L=no 8956 hardcode_shlibpath_var=unsupported 8957 inherit_rpath=no 8958 link_all_deplibs=unknown 8959 module_cmds= 8960 module_expsym_cmds= 8961 old_archive_from_new_cmds= 8962 old_archive_from_expsyms_cmds= 8963 thread_safe_flag_spec= 8964 whole_archive_flag_spec= 8965 # include_expsyms should be a list of space-separated symbols to be *always* 8966 # included in the symbol list 8967 include_expsyms= 8968 # exclude_expsyms can be an extended regexp of symbols to exclude 8969 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8970 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8971 # as well as any symbol that contains `d'. 8972 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8973 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8974 # platforms (ab)use it in PIC code, but their linkers get confused if 8975 # the symbol is explicitly referenced. Since portable code cannot 8976 # rely on this symbol name, it's probably fine to never include it in 8977 # preloaded symbol tables. 8978 # Exclude shared library initialization/finalization symbols. 8979 extract_expsyms_cmds= 8980 8981 case $host_os in 8982 cygwin* | mingw* | pw32* | cegcc*) 8983 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8984 # When not using gcc, we currently assume that we are using 8985 # Microsoft Visual C++. 8986 if test "$GCC" != yes; then 8987 with_gnu_ld=no 8988 fi 8989 ;; 8990 interix*) 8991 # we just hope/assume this is gcc and not c89 (= MSVC++) 8992 with_gnu_ld=yes 8993 ;; 8994 openbsd*) 8995 with_gnu_ld=no 8996 ;; 8997 esac 8998 8999 ld_shlibs=yes 9000 9001 # On some targets, GNU ld is compatible enough with the native linker 9002 # that we're better off using the native interface for both. 9003 lt_use_gnu_ld_interface=no 9004 if test "$with_gnu_ld" = yes; then 9005 case $host_os in 9006 aix*) 9007 # The AIX port of GNU ld has always aspired to compatibility 9008 # with the native linker. However, as the warning in the GNU ld 9009 # block says, versions before 2.19.5* couldn't really create working 9010 # shared libraries, regardless of the interface used. 9011 case `$LD -v 2>&1` in 9012 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9013 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9014 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9015 *) 9016 lt_use_gnu_ld_interface=yes 9017 ;; 9018 esac 9019 ;; 9020 *) 9021 lt_use_gnu_ld_interface=yes 9022 ;; 9023 esac 9024 fi 9025 9026 if test "$lt_use_gnu_ld_interface" = yes; then 9027 # If archive_cmds runs LD, not CC, wlarc should be empty 9028 wlarc='${wl}' 9029 9030 # Set some defaults for GNU ld with shared library support. These 9031 # are reset later if shared libraries are not supported. Putting them 9032 # here allows them to be overridden if necessary. 9033 runpath_var=LD_RUN_PATH 9034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9035 export_dynamic_flag_spec='${wl}--export-dynamic' 9036 # ancient GNU ld didn't support --whole-archive et. al. 9037 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9038 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9039 else 9040 whole_archive_flag_spec= 9041 fi 9042 supports_anon_versioning=no 9043 case `$LD -v 2>&1` in 9044 *GNU\ gold*) supports_anon_versioning=yes ;; 9045 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9048 *\ 2.11.*) ;; # other 2.11 versions 9049 *) supports_anon_versioning=yes ;; 9050 esac 9051 9052 # See if GNU ld supports shared libraries. 9053 case $host_os in 9054 aix[3-9]*) 9055 # On AIX/PPC, the GNU linker is very broken 9056 if test "$host_cpu" != ia64; then 9057 ld_shlibs=no 9058 cat <<_LT_EOF 1>&2 9059 9060*** Warning: the GNU linker, at least up to release 2.19, is reported 9061*** to be unable to reliably create shared libraries on AIX. 9062*** Therefore, libtool is disabling shared libraries support. If you 9063*** really care for shared libraries, you may want to install binutils 9064*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9065*** You will then need to restart the configuration process. 9066 9067_LT_EOF 9068 fi 9069 ;; 9070 9071 amigaos*) 9072 case $host_cpu in 9073 powerpc) 9074 # see comment about AmigaOS4 .so support 9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9076 archive_expsym_cmds='' 9077 ;; 9078 m68k) 9079 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)' 9080 hardcode_libdir_flag_spec='-L$libdir' 9081 hardcode_minus_L=yes 9082 ;; 9083 esac 9084 ;; 9085 9086 beos*) 9087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9088 allow_undefined_flag=unsupported 9089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9090 # support --undefined. This deserves some investigation. FIXME 9091 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9092 else 9093 ld_shlibs=no 9094 fi 9095 ;; 9096 9097 cygwin* | mingw* | pw32* | cegcc*) 9098 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9099 # as there is no search path for DLLs. 9100 hardcode_libdir_flag_spec='-L$libdir' 9101 export_dynamic_flag_spec='${wl}--export-all-symbols' 9102 allow_undefined_flag=unsupported 9103 always_export_symbols=no 9104 enable_shared_with_static_runtimes=yes 9105 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' 9106 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9107 9108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9110 # If the export-symbols file already is a .def file (1st line 9111 # is EXPORTS), use it as is; otherwise, prepend... 9112 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9113 cp $export_symbols $output_objdir/$soname.def; 9114 else 9115 echo EXPORTS > $output_objdir/$soname.def; 9116 cat $export_symbols >> $output_objdir/$soname.def; 9117 fi~ 9118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9119 else 9120 ld_shlibs=no 9121 fi 9122 ;; 9123 9124 haiku*) 9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9126 link_all_deplibs=yes 9127 ;; 9128 9129 interix[3-9]*) 9130 hardcode_direct=no 9131 hardcode_shlibpath_var=no 9132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9133 export_dynamic_flag_spec='${wl}-E' 9134 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9135 # Instead, shared libraries are loaded at an image base (0x10000000 by 9136 # default) and relocated if they conflict, which is a slow very memory 9137 # consuming and fragmenting process. To avoid this, we pick a random, 9138 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9139 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9141 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' 9142 ;; 9143 9144 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9145 tmp_diet=no 9146 if test "$host_os" = linux-dietlibc; then 9147 case $cc_basename in 9148 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9149 esac 9150 fi 9151 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9152 && test "$tmp_diet" = no 9153 then 9154 tmp_addflag=' $pic_flag' 9155 tmp_sharedflag='-shared' 9156 case $cc_basename,$host_cpu in 9157 pgcc*) # Portland Group C compiler 9158 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' 9159 tmp_addflag=' $pic_flag' 9160 ;; 9161 pgf77* | pgf90* | pgf95* | pgfortran*) 9162 # Portland Group f77 and f90 compilers 9163 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' 9164 tmp_addflag=' $pic_flag -Mnomain' ;; 9165 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9166 tmp_addflag=' -i_dynamic' ;; 9167 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9168 tmp_addflag=' -i_dynamic -nofor_main' ;; 9169 ifc* | ifort*) # Intel Fortran compiler 9170 tmp_addflag=' -nofor_main' ;; 9171 lf95*) # Lahey Fortran 8.1 9172 whole_archive_flag_spec= 9173 tmp_sharedflag='--shared' ;; 9174 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9175 tmp_sharedflag='-qmkshrobj' 9176 tmp_addflag= ;; 9177 nvcc*) # Cuda Compiler Driver 2.2 9178 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' 9179 compiler_needs_object=yes 9180 ;; 9181 esac 9182 case `$CC -V 2>&1 | sed 5q` in 9183 *Sun\ C*) # Sun C 5.9 9184 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' 9185 compiler_needs_object=yes 9186 tmp_sharedflag='-G' ;; 9187 *Sun\ F*) # Sun Fortran 8.3 9188 tmp_sharedflag='-G' ;; 9189 esac 9190 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9191 9192 if test "x$supports_anon_versioning" = xyes; then 9193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9195 echo "local: *; };" >> $output_objdir/$libname.ver~ 9196 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9197 fi 9198 9199 case $cc_basename in 9200 xlf* | bgf* | bgxlf* | mpixlf*) 9201 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9202 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9204 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9205 if test "x$supports_anon_versioning" = xyes; then 9206 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9207 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9208 echo "local: *; };" >> $output_objdir/$libname.ver~ 9209 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9210 fi 9211 ;; 9212 esac 9213 else 9214 ld_shlibs=no 9215 fi 9216 ;; 9217 9218 netbsd*) 9219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9220 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9221 wlarc= 9222 else 9223 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9224 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9225 fi 9226 ;; 9227 9228 solaris*) 9229 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9230 ld_shlibs=no 9231 cat <<_LT_EOF 1>&2 9232 9233*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9234*** create shared libraries on Solaris systems. Therefore, libtool 9235*** is disabling shared libraries support. We urge you to upgrade GNU 9236*** binutils to release 2.9.1 or newer. Another option is to modify 9237*** your PATH or compiler configuration so that the native linker is 9238*** used, and then restart. 9239 9240_LT_EOF 9241 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9242 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9243 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9244 else 9245 ld_shlibs=no 9246 fi 9247 ;; 9248 9249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9250 case `$LD -v 2>&1` in 9251 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9252 ld_shlibs=no 9253 cat <<_LT_EOF 1>&2 9254 9255*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9256*** reliably create shared libraries on SCO systems. Therefore, libtool 9257*** is disabling shared libraries support. We urge you to upgrade GNU 9258*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9259*** your PATH or compiler configuration so that the native linker is 9260*** used, and then restart. 9261 9262_LT_EOF 9263 ;; 9264 *) 9265 # For security reasons, it is highly recommended that you always 9266 # use absolute paths for naming shared libraries, and exclude the 9267 # DT_RUNPATH tag from executables and libraries. But doing so 9268 # requires that you compile everything twice, which is a pain. 9269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9273 else 9274 ld_shlibs=no 9275 fi 9276 ;; 9277 esac 9278 ;; 9279 9280 sunos4*) 9281 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9282 wlarc= 9283 hardcode_direct=yes 9284 hardcode_shlibpath_var=no 9285 ;; 9286 9287 *) 9288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9290 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9291 else 9292 ld_shlibs=no 9293 fi 9294 ;; 9295 esac 9296 9297 if test "$ld_shlibs" = no; then 9298 runpath_var= 9299 hardcode_libdir_flag_spec= 9300 export_dynamic_flag_spec= 9301 whole_archive_flag_spec= 9302 fi 9303 else 9304 # PORTME fill in a description of your system's linker (not GNU ld) 9305 case $host_os in 9306 aix3*) 9307 allow_undefined_flag=unsupported 9308 always_export_symbols=yes 9309 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' 9310 # Note: this linker hardcodes the directories in LIBPATH if there 9311 # are no directories specified by -L. 9312 hardcode_minus_L=yes 9313 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9314 # Neither direct hardcoding nor static linking is supported with a 9315 # broken collect2. 9316 hardcode_direct=unsupported 9317 fi 9318 ;; 9319 9320 aix[4-9]*) 9321 if test "$host_cpu" = ia64; then 9322 # On IA64, the linker does run time linking by default, so we don't 9323 # have to do anything special. 9324 aix_use_runtimelinking=no 9325 exp_sym_flag='-Bexport' 9326 no_entry_flag="" 9327 else 9328 # If we're using GNU nm, then we don't want the "-C" option. 9329 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9330 # Also, AIX nm treats weak defined symbols like other global 9331 # defined symbols, whereas GNU nm marks them as "W". 9332 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9333 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' 9334 else 9335 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' 9336 fi 9337 aix_use_runtimelinking=no 9338 9339 # Test if we are trying to use run time linking or normal 9340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9341 # need to do runtime linking. 9342 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9343 for ld_flag in $LDFLAGS; do 9344 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9345 aix_use_runtimelinking=yes 9346 break 9347 fi 9348 done 9349 ;; 9350 esac 9351 9352 exp_sym_flag='-bexport' 9353 no_entry_flag='-bnoentry' 9354 fi 9355 9356 # When large executables or shared objects are built, AIX ld can 9357 # have problems creating the table of contents. If linking a library 9358 # or program results in "error TOC overflow" add -mminimal-toc to 9359 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9360 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9361 9362 archive_cmds='' 9363 hardcode_direct=yes 9364 hardcode_direct_absolute=yes 9365 hardcode_libdir_separator=':' 9366 link_all_deplibs=yes 9367 file_list_spec='${wl}-f,' 9368 9369 if test "$GCC" = yes; then 9370 case $host_os in aix4.[012]|aix4.[012].*) 9371 # We only want to do this on AIX 4.2 and lower, the check 9372 # below for broken collect2 doesn't work under 4.3+ 9373 collect2name=`${CC} -print-prog-name=collect2` 9374 if test -f "$collect2name" && 9375 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9376 then 9377 # We have reworked collect2 9378 : 9379 else 9380 # We have old collect2 9381 hardcode_direct=unsupported 9382 # It fails to find uninstalled libraries when the uninstalled 9383 # path is not listed in the libpath. Setting hardcode_minus_L 9384 # to unsupported forces relinking 9385 hardcode_minus_L=yes 9386 hardcode_libdir_flag_spec='-L$libdir' 9387 hardcode_libdir_separator= 9388 fi 9389 ;; 9390 esac 9391 shared_flag='-shared' 9392 if test "$aix_use_runtimelinking" = yes; then 9393 shared_flag="$shared_flag "'${wl}-G' 9394 fi 9395 else 9396 # not using gcc 9397 if test "$host_cpu" = ia64; then 9398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9399 # chokes on -Wl,-G. The following line is correct: 9400 shared_flag='-G' 9401 else 9402 if test "$aix_use_runtimelinking" = yes; then 9403 shared_flag='${wl}-G' 9404 else 9405 shared_flag='${wl}-bM:SRE' 9406 fi 9407 fi 9408 fi 9409 9410 export_dynamic_flag_spec='${wl}-bexpall' 9411 # It seems that -bexpall does not export symbols beginning with 9412 # underscore (_), so it is better to generate a list of symbols to export. 9413 always_export_symbols=yes 9414 if test "$aix_use_runtimelinking" = yes; then 9415 # Warning - without using the other runtime loading flags (-brtl), 9416 # -berok will link without error, but may produce a broken library. 9417 allow_undefined_flag='-berok' 9418 # Determine the default libpath from the value encoded in an 9419 # empty executable. 9420 if test "${lt_cv_aix_libpath+set}" = set; then 9421 aix_libpath=$lt_cv_aix_libpath 9422else 9423 if ${lt_cv_aix_libpath_+:} false; then : 9424 $as_echo_n "(cached) " >&6 9425else 9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428 9429int 9430main () 9431{ 9432 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437if ac_fn_c_try_link "$LINENO"; then : 9438 9439 lt_aix_libpath_sed=' 9440 /Import File Strings/,/^$/ { 9441 /^0/ { 9442 s/^0 *\([^ ]*\) *$/\1/ 9443 p 9444 } 9445 }' 9446 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9447 # Check for a 64-bit object if we didn't find anything. 9448 if test -z "$lt_cv_aix_libpath_"; then 9449 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9450 fi 9451fi 9452rm -f core conftest.err conftest.$ac_objext \ 9453 conftest$ac_exeext conftest.$ac_ext 9454 if test -z "$lt_cv_aix_libpath_"; then 9455 lt_cv_aix_libpath_="/usr/lib:/lib" 9456 fi 9457 9458fi 9459 9460 aix_libpath=$lt_cv_aix_libpath_ 9461fi 9462 9463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9464 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" 9465 else 9466 if test "$host_cpu" = ia64; then 9467 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9468 allow_undefined_flag="-z nodefs" 9469 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" 9470 else 9471 # Determine the default libpath from the value encoded in an 9472 # empty executable. 9473 if test "${lt_cv_aix_libpath+set}" = set; then 9474 aix_libpath=$lt_cv_aix_libpath 9475else 9476 if ${lt_cv_aix_libpath_+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481 9482int 9483main () 9484{ 9485 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490if ac_fn_c_try_link "$LINENO"; then : 9491 9492 lt_aix_libpath_sed=' 9493 /Import File Strings/,/^$/ { 9494 /^0/ { 9495 s/^0 *\([^ ]*\) *$/\1/ 9496 p 9497 } 9498 }' 9499 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9500 # Check for a 64-bit object if we didn't find anything. 9501 if test -z "$lt_cv_aix_libpath_"; then 9502 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9503 fi 9504fi 9505rm -f core conftest.err conftest.$ac_objext \ 9506 conftest$ac_exeext conftest.$ac_ext 9507 if test -z "$lt_cv_aix_libpath_"; then 9508 lt_cv_aix_libpath_="/usr/lib:/lib" 9509 fi 9510 9511fi 9512 9513 aix_libpath=$lt_cv_aix_libpath_ 9514fi 9515 9516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9517 # Warning - without using the other run time loading flags, 9518 # -berok will link without error, but may produce a broken library. 9519 no_undefined_flag=' ${wl}-bernotok' 9520 allow_undefined_flag=' ${wl}-berok' 9521 if test "$with_gnu_ld" = yes; then 9522 # We only use this code for GNU lds that support --whole-archive. 9523 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9524 else 9525 # Exported symbols can be pulled into shared objects from archives 9526 whole_archive_flag_spec='$convenience' 9527 fi 9528 archive_cmds_need_lc=yes 9529 # This is similar to how AIX traditionally builds its shared libraries. 9530 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' 9531 fi 9532 fi 9533 ;; 9534 9535 amigaos*) 9536 case $host_cpu in 9537 powerpc) 9538 # see comment about AmigaOS4 .so support 9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9540 archive_expsym_cmds='' 9541 ;; 9542 m68k) 9543 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)' 9544 hardcode_libdir_flag_spec='-L$libdir' 9545 hardcode_minus_L=yes 9546 ;; 9547 esac 9548 ;; 9549 9550 bsdi[45]*) 9551 export_dynamic_flag_spec=-rdynamic 9552 ;; 9553 9554 cygwin* | mingw* | pw32* | cegcc*) 9555 # When not using gcc, we currently assume that we are using 9556 # Microsoft Visual C++. 9557 # hardcode_libdir_flag_spec is actually meaningless, as there is 9558 # no search path for DLLs. 9559 case $cc_basename in 9560 cl*) 9561 # Native MSVC 9562 hardcode_libdir_flag_spec=' ' 9563 allow_undefined_flag=unsupported 9564 always_export_symbols=yes 9565 file_list_spec='@' 9566 # Tell ltmain to make .lib files, not .a files. 9567 libext=lib 9568 # Tell ltmain to make .dll files, not .so files. 9569 shrext_cmds=".dll" 9570 # FIXME: Setting linknames here is a bad hack. 9571 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9572 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9573 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9574 else 9575 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9576 fi~ 9577 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9578 linknames=' 9579 # The linker will not automatically build a static lib if we build a DLL. 9580 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9581 enable_shared_with_static_runtimes=yes 9582 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9584 # Don't use ranlib 9585 old_postinstall_cmds='chmod 644 $oldlib' 9586 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9587 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9588 case $lt_outputfile in 9589 *.exe|*.EXE) ;; 9590 *) 9591 lt_outputfile="$lt_outputfile.exe" 9592 lt_tool_outputfile="$lt_tool_outputfile.exe" 9593 ;; 9594 esac~ 9595 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9596 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9597 $RM "$lt_outputfile.manifest"; 9598 fi' 9599 ;; 9600 *) 9601 # Assume MSVC wrapper 9602 hardcode_libdir_flag_spec=' ' 9603 allow_undefined_flag=unsupported 9604 # Tell ltmain to make .lib files, not .a files. 9605 libext=lib 9606 # Tell ltmain to make .dll files, not .so files. 9607 shrext_cmds=".dll" 9608 # FIXME: Setting linknames here is a bad hack. 9609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9610 # The linker will automatically build a .lib file if we build a DLL. 9611 old_archive_from_new_cmds='true' 9612 # FIXME: Should let the user specify the lib program. 9613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9614 enable_shared_with_static_runtimes=yes 9615 ;; 9616 esac 9617 ;; 9618 9619 darwin* | rhapsody*) 9620 9621 9622 archive_cmds_need_lc=no 9623 hardcode_direct=no 9624 hardcode_automatic=yes 9625 hardcode_shlibpath_var=unsupported 9626 if test "$lt_cv_ld_force_load" = "yes"; then 9627 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\"`' 9628 9629 else 9630 whole_archive_flag_spec='' 9631 fi 9632 link_all_deplibs=yes 9633 allow_undefined_flag="$_lt_dar_allow_undefined" 9634 case $cc_basename in 9635 ifort*) _lt_dar_can_shared=yes ;; 9636 *) _lt_dar_can_shared=$GCC ;; 9637 esac 9638 if test "$_lt_dar_can_shared" = "yes"; then 9639 output_verbose_link_cmd=func_echo_all 9640 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9641 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9642 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}" 9643 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}" 9644 9645 else 9646 ld_shlibs=no 9647 fi 9648 9649 ;; 9650 9651 dgux*) 9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9653 hardcode_libdir_flag_spec='-L$libdir' 9654 hardcode_shlibpath_var=no 9655 ;; 9656 9657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9658 # support. Future versions do this automatically, but an explicit c++rt0.o 9659 # does not break anything, and helps significantly (at the cost of a little 9660 # extra space). 9661 freebsd2.2*) 9662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9663 hardcode_libdir_flag_spec='-R$libdir' 9664 hardcode_direct=yes 9665 hardcode_shlibpath_var=no 9666 ;; 9667 9668 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9669 freebsd2.*) 9670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9671 hardcode_direct=yes 9672 hardcode_minus_L=yes 9673 hardcode_shlibpath_var=no 9674 ;; 9675 9676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9677 freebsd* | dragonfly*) 9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9679 hardcode_libdir_flag_spec='-R$libdir' 9680 hardcode_direct=yes 9681 hardcode_shlibpath_var=no 9682 ;; 9683 9684 hpux9*) 9685 if test "$GCC" = yes; then 9686 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' 9687 else 9688 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' 9689 fi 9690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9691 hardcode_libdir_separator=: 9692 hardcode_direct=yes 9693 9694 # hardcode_minus_L: Not really in the search PATH, 9695 # but as the default location of the library. 9696 hardcode_minus_L=yes 9697 export_dynamic_flag_spec='${wl}-E' 9698 ;; 9699 9700 hpux10*) 9701 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9702 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9703 else 9704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9705 fi 9706 if test "$with_gnu_ld" = no; then 9707 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9708 hardcode_libdir_separator=: 9709 hardcode_direct=yes 9710 hardcode_direct_absolute=yes 9711 export_dynamic_flag_spec='${wl}-E' 9712 # hardcode_minus_L: Not really in the search PATH, 9713 # but as the default location of the library. 9714 hardcode_minus_L=yes 9715 fi 9716 ;; 9717 9718 hpux11*) 9719 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9720 case $host_cpu in 9721 hppa*64*) 9722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9723 ;; 9724 ia64*) 9725 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9726 ;; 9727 *) 9728 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9729 ;; 9730 esac 9731 else 9732 case $host_cpu in 9733 hppa*64*) 9734 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 ;; 9736 ia64*) 9737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9738 ;; 9739 *) 9740 9741 # Older versions of the 11.00 compiler do not understand -b yet 9742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9744$as_echo_n "checking if $CC understands -b... " >&6; } 9745if ${lt_cv_prog_compiler__b+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 lt_cv_prog_compiler__b=no 9749 save_LDFLAGS="$LDFLAGS" 9750 LDFLAGS="$LDFLAGS -b" 9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9753 # The linker can only warn and ignore the option if not recognized 9754 # So say no if there are warnings 9755 if test -s conftest.err; then 9756 # Append any errors to the config.log. 9757 cat conftest.err 1>&5 9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9760 if diff conftest.exp conftest.er2 >/dev/null; then 9761 lt_cv_prog_compiler__b=yes 9762 fi 9763 else 9764 lt_cv_prog_compiler__b=yes 9765 fi 9766 fi 9767 $RM -r conftest* 9768 LDFLAGS="$save_LDFLAGS" 9769 9770fi 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9772$as_echo "$lt_cv_prog_compiler__b" >&6; } 9773 9774if test x"$lt_cv_prog_compiler__b" = xyes; then 9775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9776else 9777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9778fi 9779 9780 ;; 9781 esac 9782 fi 9783 if test "$with_gnu_ld" = no; then 9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9785 hardcode_libdir_separator=: 9786 9787 case $host_cpu in 9788 hppa*64*|ia64*) 9789 hardcode_direct=no 9790 hardcode_shlibpath_var=no 9791 ;; 9792 *) 9793 hardcode_direct=yes 9794 hardcode_direct_absolute=yes 9795 export_dynamic_flag_spec='${wl}-E' 9796 9797 # hardcode_minus_L: Not really in the search PATH, 9798 # but as the default location of the library. 9799 hardcode_minus_L=yes 9800 ;; 9801 esac 9802 fi 9803 ;; 9804 9805 irix5* | irix6* | nonstopux*) 9806 if test "$GCC" = yes; then 9807 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' 9808 # Try to use the -exported_symbol ld option, if it does not 9809 # work, assume that -exports_file does not work either and 9810 # implicitly export all symbols. 9811 # This should be the same for all languages, so no per-tag cache variable. 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9813$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9814if ${lt_cv_irix_exported_symbol+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 save_LDFLAGS="$LDFLAGS" 9818 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int foo (void) { return 0; } 9822_ACEOF 9823if ac_fn_c_try_link "$LINENO"; then : 9824 lt_cv_irix_exported_symbol=yes 9825else 9826 lt_cv_irix_exported_symbol=no 9827fi 9828rm -f core conftest.err conftest.$ac_objext \ 9829 conftest$ac_exeext conftest.$ac_ext 9830 LDFLAGS="$save_LDFLAGS" 9831fi 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9833$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9834 if test "$lt_cv_irix_exported_symbol" = yes; then 9835 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' 9836 fi 9837 else 9838 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' 9839 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' 9840 fi 9841 archive_cmds_need_lc='no' 9842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9843 hardcode_libdir_separator=: 9844 inherit_rpath=yes 9845 link_all_deplibs=yes 9846 ;; 9847 9848 netbsd*) 9849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9851 else 9852 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9853 fi 9854 hardcode_libdir_flag_spec='-R$libdir' 9855 hardcode_direct=yes 9856 hardcode_shlibpath_var=no 9857 ;; 9858 9859 newsos6) 9860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9861 hardcode_direct=yes 9862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9863 hardcode_libdir_separator=: 9864 hardcode_shlibpath_var=no 9865 ;; 9866 9867 *nto* | *qnx*) 9868 ;; 9869 9870 openbsd*) 9871 if test -f /usr/libexec/ld.so; then 9872 hardcode_direct=yes 9873 hardcode_shlibpath_var=no 9874 hardcode_direct_absolute=yes 9875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9877 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9879 export_dynamic_flag_spec='${wl}-E' 9880 else 9881 case $host_os in 9882 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9884 hardcode_libdir_flag_spec='-R$libdir' 9885 ;; 9886 *) 9887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9889 ;; 9890 esac 9891 fi 9892 else 9893 ld_shlibs=no 9894 fi 9895 ;; 9896 9897 os2*) 9898 hardcode_libdir_flag_spec='-L$libdir' 9899 hardcode_minus_L=yes 9900 allow_undefined_flag=unsupported 9901 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' 9902 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9903 ;; 9904 9905 osf3*) 9906 if test "$GCC" = yes; then 9907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9908 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' 9909 else 9910 allow_undefined_flag=' -expect_unresolved \*' 9911 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' 9912 fi 9913 archive_cmds_need_lc='no' 9914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9915 hardcode_libdir_separator=: 9916 ;; 9917 9918 osf4* | osf5*) # as osf3* with the addition of -msym flag 9919 if test "$GCC" = yes; then 9920 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9921 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' 9922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9923 else 9924 allow_undefined_flag=' -expect_unresolved \*' 9925 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' 9926 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~ 9927 $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' 9928 9929 # Both c and cxx compiler support -rpath directly 9930 hardcode_libdir_flag_spec='-rpath $libdir' 9931 fi 9932 archive_cmds_need_lc='no' 9933 hardcode_libdir_separator=: 9934 ;; 9935 9936 solaris*) 9937 no_undefined_flag=' -z defs' 9938 if test "$GCC" = yes; then 9939 wlarc='${wl}' 9940 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9942 $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' 9943 else 9944 case `$CC -V 2>&1` in 9945 *"Compilers 5.0"*) 9946 wlarc='' 9947 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9950 ;; 9951 *) 9952 wlarc='${wl}' 9953 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9955 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9956 ;; 9957 esac 9958 fi 9959 hardcode_libdir_flag_spec='-R$libdir' 9960 hardcode_shlibpath_var=no 9961 case $host_os in 9962 solaris2.[0-5] | solaris2.[0-5].*) ;; 9963 *) 9964 # The compiler driver will combine and reorder linker options, 9965 # but understands `-z linker_flag'. GCC discards it without `$wl', 9966 # but is careful enough not to reorder. 9967 # Supported since Solaris 2.6 (maybe 2.5.1?) 9968 if test "$GCC" = yes; then 9969 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9970 else 9971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9972 fi 9973 ;; 9974 esac 9975 link_all_deplibs=yes 9976 ;; 9977 9978 sunos4*) 9979 if test "x$host_vendor" = xsequent; then 9980 # Use $CC to link under sequent, because it throws in some extra .o 9981 # files that make .init and .fini sections work. 9982 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9983 else 9984 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9985 fi 9986 hardcode_libdir_flag_spec='-L$libdir' 9987 hardcode_direct=yes 9988 hardcode_minus_L=yes 9989 hardcode_shlibpath_var=no 9990 ;; 9991 9992 sysv4) 9993 case $host_vendor in 9994 sni) 9995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9996 hardcode_direct=yes # is this really true??? 9997 ;; 9998 siemens) 9999 ## LD is ld it makes a PLAMLIB 10000 ## CC just makes a GrossModule. 10001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10002 reload_cmds='$CC -r -o $output$reload_objs' 10003 hardcode_direct=no 10004 ;; 10005 motorola) 10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10007 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10008 ;; 10009 esac 10010 runpath_var='LD_RUN_PATH' 10011 hardcode_shlibpath_var=no 10012 ;; 10013 10014 sysv4.3*) 10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10016 hardcode_shlibpath_var=no 10017 export_dynamic_flag_spec='-Bexport' 10018 ;; 10019 10020 sysv4*MP*) 10021 if test -d /usr/nec; then 10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10023 hardcode_shlibpath_var=no 10024 runpath_var=LD_RUN_PATH 10025 hardcode_runpath_var=yes 10026 ld_shlibs=yes 10027 fi 10028 ;; 10029 10030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10031 no_undefined_flag='${wl}-z,text' 10032 archive_cmds_need_lc=no 10033 hardcode_shlibpath_var=no 10034 runpath_var='LD_RUN_PATH' 10035 10036 if test "$GCC" = yes; then 10037 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10038 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10039 else 10040 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10041 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10042 fi 10043 ;; 10044 10045 sysv5* | sco3.2v5* | sco5v6*) 10046 # Note: We can NOT use -z defs as we might desire, because we do not 10047 # link with -lc, and that would cause any symbols used from libc to 10048 # always be unresolved, which means just about no library would 10049 # ever link correctly. If we're not using GNU ld we use -z text 10050 # though, which does catch some bad symbols but isn't as heavy-handed 10051 # as -z defs. 10052 no_undefined_flag='${wl}-z,text' 10053 allow_undefined_flag='${wl}-z,nodefs' 10054 archive_cmds_need_lc=no 10055 hardcode_shlibpath_var=no 10056 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10057 hardcode_libdir_separator=':' 10058 link_all_deplibs=yes 10059 export_dynamic_flag_spec='${wl}-Bexport' 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 uts4*) 10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10073 hardcode_libdir_flag_spec='-L$libdir' 10074 hardcode_shlibpath_var=no 10075 ;; 10076 10077 *) 10078 ld_shlibs=no 10079 ;; 10080 esac 10081 10082 if test x$host_vendor = xsni; then 10083 case $host in 10084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10085 export_dynamic_flag_spec='${wl}-Blargedynsym' 10086 ;; 10087 esac 10088 fi 10089 fi 10090 10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10092$as_echo "$ld_shlibs" >&6; } 10093test "$ld_shlibs" = no && can_build_shared=no 10094 10095with_gnu_ld=$with_gnu_ld 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111# 10112# Do we need to explicitly link libc? 10113# 10114case "x$archive_cmds_need_lc" in 10115x|xyes) 10116 # Assume -lc should be added 10117 archive_cmds_need_lc=yes 10118 10119 if test "$enable_shared" = yes && test "$GCC" = yes; then 10120 case $archive_cmds in 10121 *'~'*) 10122 # FIXME: we may have to deal with multi-command sequences. 10123 ;; 10124 '$CC '*) 10125 # Test whether the compiler implicitly links with -lc since on some 10126 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10127 # to ld, don't add -lc before -lgcc. 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10129$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10130if ${lt_cv_archive_cmds_need_lc+:} false; then : 10131 $as_echo_n "(cached) " >&6 10132else 10133 $RM conftest* 10134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10135 10136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10137 (eval $ac_compile) 2>&5 10138 ac_status=$? 10139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10140 test $ac_status = 0; } 2>conftest.err; then 10141 soname=conftest 10142 lib=conftest 10143 libobjs=conftest.$ac_objext 10144 deplibs= 10145 wl=$lt_prog_compiler_wl 10146 pic_flag=$lt_prog_compiler_pic 10147 compiler_flags=-v 10148 linker_flags=-v 10149 verstring= 10150 output_objdir=. 10151 libname=conftest 10152 lt_save_allow_undefined_flag=$allow_undefined_flag 10153 allow_undefined_flag= 10154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10155 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10156 ac_status=$? 10157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10158 test $ac_status = 0; } 10159 then 10160 lt_cv_archive_cmds_need_lc=no 10161 else 10162 lt_cv_archive_cmds_need_lc=yes 10163 fi 10164 allow_undefined_flag=$lt_save_allow_undefined_flag 10165 else 10166 cat conftest.err 1>&5 10167 fi 10168 $RM conftest* 10169 10170fi 10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10172$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10173 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10174 ;; 10175 esac 10176 fi 10177 ;; 10178esac 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10332$as_echo_n "checking dynamic linker characteristics... " >&6; } 10333 10334if test "$GCC" = yes; then 10335 case $host_os in 10336 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10337 *) lt_awk_arg="/^libraries:/" ;; 10338 esac 10339 case $host_os in 10340 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10341 *) lt_sed_strip_eq="s,=/,/,g" ;; 10342 esac 10343 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10344 case $lt_search_path_spec in 10345 *\;*) 10346 # if the path contains ";" then we assume it to be the separator 10347 # otherwise default to the standard path separator (i.e. ":") - it is 10348 # assumed that no part of a normal pathname contains ";" but that should 10349 # okay in the real world where ";" in dirpaths is itself problematic. 10350 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10351 ;; 10352 *) 10353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10354 ;; 10355 esac 10356 # Ok, now we have the path, separated by spaces, we can step through it 10357 # and add multilib dir if necessary. 10358 lt_tmp_lt_search_path_spec= 10359 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10360 for lt_sys_path in $lt_search_path_spec; do 10361 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10363 else 10364 test -d "$lt_sys_path" && \ 10365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10366 fi 10367 done 10368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10369BEGIN {RS=" "; FS="/|\n";} { 10370 lt_foo=""; 10371 lt_count=0; 10372 for (lt_i = NF; lt_i > 0; lt_i--) { 10373 if ($lt_i != "" && $lt_i != ".") { 10374 if ($lt_i == "..") { 10375 lt_count++; 10376 } else { 10377 if (lt_count == 0) { 10378 lt_foo="/" $lt_i lt_foo; 10379 } else { 10380 lt_count--; 10381 } 10382 } 10383 } 10384 } 10385 if (lt_foo != "") { lt_freq[lt_foo]++; } 10386 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10387}'` 10388 # AWK program above erroneously prepends '/' to C:/dos/paths 10389 # for these hosts. 10390 case $host_os in 10391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10392 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10393 esac 10394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10395else 10396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10397fi 10398library_names_spec= 10399libname_spec='lib$name' 10400soname_spec= 10401shrext_cmds=".so" 10402postinstall_cmds= 10403postuninstall_cmds= 10404finish_cmds= 10405finish_eval= 10406shlibpath_var= 10407shlibpath_overrides_runpath=unknown 10408version_type=none 10409dynamic_linker="$host_os ld.so" 10410sys_lib_dlsearch_path_spec="/lib /usr/lib" 10411need_lib_prefix=unknown 10412hardcode_into_libs=no 10413 10414# when you set need_version to no, make sure it does not cause -set_version 10415# flags to be left without arguments 10416need_version=unknown 10417 10418case $host_os in 10419aix3*) 10420 version_type=linux # correct to gnu/linux during the next big refactor 10421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10422 shlibpath_var=LIBPATH 10423 10424 # AIX 3 has no versioning support, so we append a major version to the name. 10425 soname_spec='${libname}${release}${shared_ext}$major' 10426 ;; 10427 10428aix[4-9]*) 10429 version_type=linux # correct to gnu/linux during the next big refactor 10430 need_lib_prefix=no 10431 need_version=no 10432 hardcode_into_libs=yes 10433 if test "$host_cpu" = ia64; then 10434 # AIX 5 supports IA64 10435 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10436 shlibpath_var=LD_LIBRARY_PATH 10437 else 10438 # With GCC up to 2.95.x, collect2 would create an import file 10439 # for dependence libraries. The import file would start with 10440 # the line `#! .'. This would cause the generated library to 10441 # depend on `.', always an invalid library. This was fixed in 10442 # development snapshots of GCC prior to 3.0. 10443 case $host_os in 10444 aix4 | aix4.[01] | aix4.[01].*) 10445 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10446 echo ' yes ' 10447 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10448 : 10449 else 10450 can_build_shared=no 10451 fi 10452 ;; 10453 esac 10454 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10455 # soname into executable. Probably we can add versioning support to 10456 # collect2, so additional links can be useful in future. 10457 if test "$aix_use_runtimelinking" = yes; then 10458 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10459 # instead of lib<name>.a to let people know that these are not 10460 # typical AIX shared libraries. 10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10462 else 10463 # We preserve .a as extension for shared libraries through AIX4.2 10464 # and later when we are not doing run time linking. 10465 library_names_spec='${libname}${release}.a $libname.a' 10466 soname_spec='${libname}${release}${shared_ext}$major' 10467 fi 10468 shlibpath_var=LIBPATH 10469 fi 10470 ;; 10471 10472amigaos*) 10473 case $host_cpu in 10474 powerpc) 10475 # Since July 2007 AmigaOS4 officially supports .so libraries. 10476 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10478 ;; 10479 m68k) 10480 library_names_spec='$libname.ixlibrary $libname.a' 10481 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10482 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' 10483 ;; 10484 esac 10485 ;; 10486 10487beos*) 10488 library_names_spec='${libname}${shared_ext}' 10489 dynamic_linker="$host_os ld.so" 10490 shlibpath_var=LIBRARY_PATH 10491 ;; 10492 10493bsdi[45]*) 10494 version_type=linux # correct to gnu/linux during the next big refactor 10495 need_version=no 10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10497 soname_spec='${libname}${release}${shared_ext}$major' 10498 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10499 shlibpath_var=LD_LIBRARY_PATH 10500 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10501 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10502 # the default ld.so.conf also contains /usr/contrib/lib and 10503 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10504 # libtool to hard-code these into programs 10505 ;; 10506 10507cygwin* | mingw* | pw32* | cegcc*) 10508 version_type=windows 10509 shrext_cmds=".dll" 10510 need_version=no 10511 need_lib_prefix=no 10512 10513 case $GCC,$cc_basename in 10514 yes,*) 10515 # gcc 10516 library_names_spec='$libname.dll.a' 10517 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10518 postinstall_cmds='base_file=`basename \${file}`~ 10519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10520 dldir=$destdir/`dirname \$dlpath`~ 10521 test -d \$dldir || mkdir -p \$dldir~ 10522 $install_prog $dir/$dlname \$dldir/$dlname~ 10523 chmod a+x \$dldir/$dlname~ 10524 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10525 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10526 fi' 10527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10528 dlpath=$dir/\$dldll~ 10529 $RM \$dlpath' 10530 shlibpath_overrides_runpath=yes 10531 10532 case $host_os in 10533 cygwin*) 10534 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10536 10537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10538 ;; 10539 mingw* | cegcc*) 10540 # MinGW DLLs use traditional 'lib' prefix 10541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10542 ;; 10543 pw32*) 10544 # pw32 DLLs use 'pw' prefix rather than 'lib' 10545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10546 ;; 10547 esac 10548 dynamic_linker='Win32 ld.exe' 10549 ;; 10550 10551 *,cl*) 10552 # Native MSVC 10553 libname_spec='$name' 10554 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10555 library_names_spec='${libname}.dll.lib' 10556 10557 case $build_os in 10558 mingw*) 10559 sys_lib_search_path_spec= 10560 lt_save_ifs=$IFS 10561 IFS=';' 10562 for lt_path in $LIB 10563 do 10564 IFS=$lt_save_ifs 10565 # Let DOS variable expansion print the short 8.3 style file name. 10566 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10567 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10568 done 10569 IFS=$lt_save_ifs 10570 # Convert to MSYS style. 10571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10572 ;; 10573 cygwin*) 10574 # Convert to unix form, then to dos form, then back to unix form 10575 # but this time dos style (no spaces!) so that the unix form looks 10576 # like /cygdrive/c/PROGRA~1:/cygdr... 10577 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10578 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10579 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10580 ;; 10581 *) 10582 sys_lib_search_path_spec="$LIB" 10583 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10584 # It is most probably a Windows format PATH. 10585 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10586 else 10587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10588 fi 10589 # FIXME: find the short name or the path components, as spaces are 10590 # common. (e.g. "Program Files" -> "PROGRA~1") 10591 ;; 10592 esac 10593 10594 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10595 postinstall_cmds='base_file=`basename \${file}`~ 10596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10597 dldir=$destdir/`dirname \$dlpath`~ 10598 test -d \$dldir || mkdir -p \$dldir~ 10599 $install_prog $dir/$dlname \$dldir/$dlname' 10600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10601 dlpath=$dir/\$dldll~ 10602 $RM \$dlpath' 10603 shlibpath_overrides_runpath=yes 10604 dynamic_linker='Win32 link.exe' 10605 ;; 10606 10607 *) 10608 # Assume MSVC wrapper 10609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10610 dynamic_linker='Win32 ld.exe' 10611 ;; 10612 esac 10613 # FIXME: first we should search . and the directory the executable is in 10614 shlibpath_var=PATH 10615 ;; 10616 10617darwin* | rhapsody*) 10618 dynamic_linker="$host_os dyld" 10619 version_type=darwin 10620 need_lib_prefix=no 10621 need_version=no 10622 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10623 soname_spec='${libname}${release}${major}$shared_ext' 10624 shlibpath_overrides_runpath=yes 10625 shlibpath_var=DYLD_LIBRARY_PATH 10626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10627 10628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10630 ;; 10631 10632dgux*) 10633 version_type=linux # correct to gnu/linux during the next big refactor 10634 need_lib_prefix=no 10635 need_version=no 10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10637 soname_spec='${libname}${release}${shared_ext}$major' 10638 shlibpath_var=LD_LIBRARY_PATH 10639 ;; 10640 10641freebsd* | dragonfly*) 10642 # DragonFly does not have aout. When/if they implement a new 10643 # versioning mechanism, adjust this. 10644 if test -x /usr/bin/objformat; then 10645 objformat=`/usr/bin/objformat` 10646 else 10647 case $host_os in 10648 freebsd[23].*) objformat=aout ;; 10649 *) objformat=elf ;; 10650 esac 10651 fi 10652 version_type=freebsd-$objformat 10653 case $version_type in 10654 freebsd-elf*) 10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10656 need_version=no 10657 need_lib_prefix=no 10658 ;; 10659 freebsd-*) 10660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10661 need_version=yes 10662 ;; 10663 esac 10664 shlibpath_var=LD_LIBRARY_PATH 10665 case $host_os in 10666 freebsd2.*) 10667 shlibpath_overrides_runpath=yes 10668 ;; 10669 freebsd3.[01]* | freebsdelf3.[01]*) 10670 shlibpath_overrides_runpath=yes 10671 hardcode_into_libs=yes 10672 ;; 10673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10675 shlibpath_overrides_runpath=no 10676 hardcode_into_libs=yes 10677 ;; 10678 *) # from 4.6 on, and DragonFly 10679 shlibpath_overrides_runpath=yes 10680 hardcode_into_libs=yes 10681 ;; 10682 esac 10683 ;; 10684 10685gnu*) 10686 version_type=linux # correct to gnu/linux during the next big refactor 10687 need_lib_prefix=no 10688 need_version=no 10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10690 soname_spec='${libname}${release}${shared_ext}$major' 10691 shlibpath_var=LD_LIBRARY_PATH 10692 shlibpath_overrides_runpath=no 10693 hardcode_into_libs=yes 10694 ;; 10695 10696haiku*) 10697 version_type=linux # correct to gnu/linux during the next big refactor 10698 need_lib_prefix=no 10699 need_version=no 10700 dynamic_linker="$host_os runtime_loader" 10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10702 soname_spec='${libname}${release}${shared_ext}$major' 10703 shlibpath_var=LIBRARY_PATH 10704 shlibpath_overrides_runpath=yes 10705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10706 hardcode_into_libs=yes 10707 ;; 10708 10709hpux9* | hpux10* | hpux11*) 10710 # Give a soname corresponding to the major version so that dld.sl refuses to 10711 # link against other versions. 10712 version_type=sunos 10713 need_lib_prefix=no 10714 need_version=no 10715 case $host_cpu in 10716 ia64*) 10717 shrext_cmds='.so' 10718 hardcode_into_libs=yes 10719 dynamic_linker="$host_os dld.so" 10720 shlibpath_var=LD_LIBRARY_PATH 10721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10723 soname_spec='${libname}${release}${shared_ext}$major' 10724 if test "X$HPUX_IA64_MODE" = X32; then 10725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10726 else 10727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10728 fi 10729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10730 ;; 10731 hppa*64*) 10732 shrext_cmds='.sl' 10733 hardcode_into_libs=yes 10734 dynamic_linker="$host_os dld.sl" 10735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10738 soname_spec='${libname}${release}${shared_ext}$major' 10739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10741 ;; 10742 *) 10743 shrext_cmds='.sl' 10744 dynamic_linker="$host_os dld.sl" 10745 shlibpath_var=SHLIB_PATH 10746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10748 soname_spec='${libname}${release}${shared_ext}$major' 10749 ;; 10750 esac 10751 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10752 postinstall_cmds='chmod 555 $lib' 10753 # or fails outright, so override atomically: 10754 install_override_mode=555 10755 ;; 10756 10757interix[3-9]*) 10758 version_type=linux # correct to gnu/linux during the next big refactor 10759 need_lib_prefix=no 10760 need_version=no 10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10762 soname_spec='${libname}${release}${shared_ext}$major' 10763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10764 shlibpath_var=LD_LIBRARY_PATH 10765 shlibpath_overrides_runpath=no 10766 hardcode_into_libs=yes 10767 ;; 10768 10769irix5* | irix6* | nonstopux*) 10770 case $host_os in 10771 nonstopux*) version_type=nonstopux ;; 10772 *) 10773 if test "$lt_cv_prog_gnu_ld" = yes; then 10774 version_type=linux # correct to gnu/linux during the next big refactor 10775 else 10776 version_type=irix 10777 fi ;; 10778 esac 10779 need_lib_prefix=no 10780 need_version=no 10781 soname_spec='${libname}${release}${shared_ext}$major' 10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10783 case $host_os in 10784 irix5* | nonstopux*) 10785 libsuff= shlibsuff= 10786 ;; 10787 *) 10788 case $LD in # libtool.m4 will add one of these switches to LD 10789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10790 libsuff= shlibsuff= libmagic=32-bit;; 10791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10792 libsuff=32 shlibsuff=N32 libmagic=N32;; 10793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10794 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10795 *) libsuff= shlibsuff= libmagic=never-match;; 10796 esac 10797 ;; 10798 esac 10799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10800 shlibpath_overrides_runpath=no 10801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10803 hardcode_into_libs=yes 10804 ;; 10805 10806# No shared lib support for Linux oldld, aout, or coff. 10807linux*oldld* | linux*aout* | linux*coff*) 10808 dynamic_linker=no 10809 ;; 10810 10811# This must be glibc/ELF. 10812linux* | k*bsd*-gnu | kopensolaris*-gnu) 10813 version_type=linux # correct to gnu/linux during the next big refactor 10814 need_lib_prefix=no 10815 need_version=no 10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10817 soname_spec='${libname}${release}${shared_ext}$major' 10818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10819 shlibpath_var=LD_LIBRARY_PATH 10820 shlibpath_overrides_runpath=no 10821 10822 # Some binutils ld are patched to set DT_RUNPATH 10823 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10824 $as_echo_n "(cached) " >&6 10825else 10826 lt_cv_shlibpath_overrides_runpath=no 10827 save_LDFLAGS=$LDFLAGS 10828 save_libdir=$libdir 10829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833 10834int 10835main () 10836{ 10837 10838 ; 10839 return 0; 10840} 10841_ACEOF 10842if ac_fn_c_try_link "$LINENO"; then : 10843 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10844 lt_cv_shlibpath_overrides_runpath=yes 10845fi 10846fi 10847rm -f core conftest.err conftest.$ac_objext \ 10848 conftest$ac_exeext conftest.$ac_ext 10849 LDFLAGS=$save_LDFLAGS 10850 libdir=$save_libdir 10851 10852fi 10853 10854 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10855 10856 # This implies no fast_install, which is unacceptable. 10857 # Some rework will be needed to allow for fast_install 10858 # before this can be enabled. 10859 hardcode_into_libs=yes 10860 10861 # Append ld.so.conf contents to the search path 10862 if test -f /etc/ld.so.conf; then 10863 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' ' '` 10864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10865 fi 10866 10867 # We used to test for /lib/ld.so.1 and disable shared libraries on 10868 # powerpc, because MkLinux only supported shared libraries with the 10869 # GNU dynamic linker. Since this was broken with cross compilers, 10870 # most powerpc-linux boxes support dynamic linking these days and 10871 # people can always --disable-shared, the test was removed, and we 10872 # assume the GNU/Linux dynamic linker is in use. 10873 dynamic_linker='GNU/Linux ld.so' 10874 ;; 10875 10876netbsd*) 10877 version_type=sunos 10878 need_lib_prefix=no 10879 need_version=no 10880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10883 dynamic_linker='NetBSD (a.out) ld.so' 10884 else 10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10886 soname_spec='${libname}${release}${shared_ext}$major' 10887 dynamic_linker='NetBSD ld.elf_so' 10888 fi 10889 shlibpath_var=LD_LIBRARY_PATH 10890 shlibpath_overrides_runpath=yes 10891 hardcode_into_libs=yes 10892 ;; 10893 10894newsos6) 10895 version_type=linux # correct to gnu/linux during the next big refactor 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10897 shlibpath_var=LD_LIBRARY_PATH 10898 shlibpath_overrides_runpath=yes 10899 ;; 10900 10901*nto* | *qnx*) 10902 version_type=qnx 10903 need_lib_prefix=no 10904 need_version=no 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10906 soname_spec='${libname}${release}${shared_ext}$major' 10907 shlibpath_var=LD_LIBRARY_PATH 10908 shlibpath_overrides_runpath=no 10909 hardcode_into_libs=yes 10910 dynamic_linker='ldqnx.so' 10911 ;; 10912 10913openbsd*) 10914 version_type=sunos 10915 sys_lib_dlsearch_path_spec="/usr/lib" 10916 need_lib_prefix=no 10917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10918 case $host_os in 10919 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10920 *) need_version=no ;; 10921 esac 10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10924 shlibpath_var=LD_LIBRARY_PATH 10925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10926 case $host_os in 10927 openbsd2.[89] | openbsd2.[89].*) 10928 shlibpath_overrides_runpath=no 10929 ;; 10930 *) 10931 shlibpath_overrides_runpath=yes 10932 ;; 10933 esac 10934 else 10935 shlibpath_overrides_runpath=yes 10936 fi 10937 ;; 10938 10939os2*) 10940 libname_spec='$name' 10941 shrext_cmds=".dll" 10942 need_lib_prefix=no 10943 library_names_spec='$libname${shared_ext} $libname.a' 10944 dynamic_linker='OS/2 ld.exe' 10945 shlibpath_var=LIBPATH 10946 ;; 10947 10948osf3* | osf4* | osf5*) 10949 version_type=osf 10950 need_lib_prefix=no 10951 need_version=no 10952 soname_spec='${libname}${release}${shared_ext}$major' 10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10957 ;; 10958 10959rdos*) 10960 dynamic_linker=no 10961 ;; 10962 10963solaris*) 10964 version_type=linux # correct to gnu/linux during the next big refactor 10965 need_lib_prefix=no 10966 need_version=no 10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10968 soname_spec='${libname}${release}${shared_ext}$major' 10969 shlibpath_var=LD_LIBRARY_PATH 10970 shlibpath_overrides_runpath=yes 10971 hardcode_into_libs=yes 10972 # ldd complains unless libraries are executable 10973 postinstall_cmds='chmod +x $lib' 10974 ;; 10975 10976sunos4*) 10977 version_type=sunos 10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10980 shlibpath_var=LD_LIBRARY_PATH 10981 shlibpath_overrides_runpath=yes 10982 if test "$with_gnu_ld" = yes; then 10983 need_lib_prefix=no 10984 fi 10985 need_version=yes 10986 ;; 10987 10988sysv4 | sysv4.3*) 10989 version_type=linux # correct to gnu/linux during the next big refactor 10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10991 soname_spec='${libname}${release}${shared_ext}$major' 10992 shlibpath_var=LD_LIBRARY_PATH 10993 case $host_vendor in 10994 sni) 10995 shlibpath_overrides_runpath=no 10996 need_lib_prefix=no 10997 runpath_var=LD_RUN_PATH 10998 ;; 10999 siemens) 11000 need_lib_prefix=no 11001 ;; 11002 motorola) 11003 need_lib_prefix=no 11004 need_version=no 11005 shlibpath_overrides_runpath=no 11006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11007 ;; 11008 esac 11009 ;; 11010 11011sysv4*MP*) 11012 if test -d /usr/nec ;then 11013 version_type=linux # correct to gnu/linux during the next big refactor 11014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11015 soname_spec='$libname${shared_ext}.$major' 11016 shlibpath_var=LD_LIBRARY_PATH 11017 fi 11018 ;; 11019 11020sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11021 version_type=freebsd-elf 11022 need_lib_prefix=no 11023 need_version=no 11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11025 soname_spec='${libname}${release}${shared_ext}$major' 11026 shlibpath_var=LD_LIBRARY_PATH 11027 shlibpath_overrides_runpath=yes 11028 hardcode_into_libs=yes 11029 if test "$with_gnu_ld" = yes; then 11030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11031 else 11032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11033 case $host_os in 11034 sco3.2v5*) 11035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11036 ;; 11037 esac 11038 fi 11039 sys_lib_dlsearch_path_spec='/usr/lib' 11040 ;; 11041 11042tpf*) 11043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11044 version_type=linux # correct to gnu/linux during the next big refactor 11045 need_lib_prefix=no 11046 need_version=no 11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11048 shlibpath_var=LD_LIBRARY_PATH 11049 shlibpath_overrides_runpath=no 11050 hardcode_into_libs=yes 11051 ;; 11052 11053uts4*) 11054 version_type=linux # correct to gnu/linux during the next big refactor 11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11056 soname_spec='${libname}${release}${shared_ext}$major' 11057 shlibpath_var=LD_LIBRARY_PATH 11058 ;; 11059 11060*) 11061 dynamic_linker=no 11062 ;; 11063esac 11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11065$as_echo "$dynamic_linker" >&6; } 11066test "$dynamic_linker" = no && can_build_shared=no 11067 11068variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11069if test "$GCC" = yes; then 11070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11071fi 11072 11073if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11074 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11075fi 11076if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11077 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11078fi 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11172$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11173hardcode_action= 11174if test -n "$hardcode_libdir_flag_spec" || 11175 test -n "$runpath_var" || 11176 test "X$hardcode_automatic" = "Xyes" ; then 11177 11178 # We can hardcode non-existent directories. 11179 if test "$hardcode_direct" != no && 11180 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11181 # have to relink, otherwise we might link with an installed library 11182 # when we should be linking with a yet-to-be-installed one 11183 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11184 test "$hardcode_minus_L" != no; then 11185 # Linking always hardcodes the temporary library directory. 11186 hardcode_action=relink 11187 else 11188 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11189 hardcode_action=immediate 11190 fi 11191else 11192 # We cannot hardcode anything, or else we can only hardcode existing 11193 # directories. 11194 hardcode_action=unsupported 11195fi 11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11197$as_echo "$hardcode_action" >&6; } 11198 11199if test "$hardcode_action" = relink || 11200 test "$inherit_rpath" = yes; then 11201 # Fast installation is not supported 11202 enable_fast_install=no 11203elif test "$shlibpath_overrides_runpath" = yes || 11204 test "$enable_shared" = no; then 11205 # Fast installation is not necessary 11206 enable_fast_install=needless 11207fi 11208 11209 11210 11211 11212 11213 11214 if test "x$enable_dlopen" != xyes; then 11215 enable_dlopen=unknown 11216 enable_dlopen_self=unknown 11217 enable_dlopen_self_static=unknown 11218else 11219 lt_cv_dlopen=no 11220 lt_cv_dlopen_libs= 11221 11222 case $host_os in 11223 beos*) 11224 lt_cv_dlopen="load_add_on" 11225 lt_cv_dlopen_libs= 11226 lt_cv_dlopen_self=yes 11227 ;; 11228 11229 mingw* | pw32* | cegcc*) 11230 lt_cv_dlopen="LoadLibrary" 11231 lt_cv_dlopen_libs= 11232 ;; 11233 11234 cygwin*) 11235 lt_cv_dlopen="dlopen" 11236 lt_cv_dlopen_libs= 11237 ;; 11238 11239 darwin*) 11240 # if libdl is installed we need to link against it 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11242$as_echo_n "checking for dlopen in -ldl... " >&6; } 11243if ${ac_cv_lib_dl_dlopen+:} false; then : 11244 $as_echo_n "(cached) " >&6 11245else 11246 ac_check_lib_save_LIBS=$LIBS 11247LIBS="-ldl $LIBS" 11248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11249/* end confdefs.h. */ 11250 11251/* Override any GCC internal prototype to avoid an error. 11252 Use char because int might match the return type of a GCC 11253 builtin and then its argument prototype would still apply. */ 11254#ifdef __cplusplus 11255extern "C" 11256#endif 11257char dlopen (); 11258int 11259main () 11260{ 11261return dlopen (); 11262 ; 11263 return 0; 11264} 11265_ACEOF 11266if ac_fn_c_try_link "$LINENO"; then : 11267 ac_cv_lib_dl_dlopen=yes 11268else 11269 ac_cv_lib_dl_dlopen=no 11270fi 11271rm -f core conftest.err conftest.$ac_objext \ 11272 conftest$ac_exeext conftest.$ac_ext 11273LIBS=$ac_check_lib_save_LIBS 11274fi 11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11276$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11277if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11279else 11280 11281 lt_cv_dlopen="dyld" 11282 lt_cv_dlopen_libs= 11283 lt_cv_dlopen_self=yes 11284 11285fi 11286 11287 ;; 11288 11289 *) 11290 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11291if test "x$ac_cv_func_shl_load" = xyes; then : 11292 lt_cv_dlopen="shl_load" 11293else 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11295$as_echo_n "checking for shl_load in -ldld... " >&6; } 11296if ${ac_cv_lib_dld_shl_load+:} false; then : 11297 $as_echo_n "(cached) " >&6 11298else 11299 ac_check_lib_save_LIBS=$LIBS 11300LIBS="-ldld $LIBS" 11301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11302/* end confdefs.h. */ 11303 11304/* Override any GCC internal prototype to avoid an error. 11305 Use char because int might match the return type of a GCC 11306 builtin and then its argument prototype would still apply. */ 11307#ifdef __cplusplus 11308extern "C" 11309#endif 11310char shl_load (); 11311int 11312main () 11313{ 11314return shl_load (); 11315 ; 11316 return 0; 11317} 11318_ACEOF 11319if ac_fn_c_try_link "$LINENO"; then : 11320 ac_cv_lib_dld_shl_load=yes 11321else 11322 ac_cv_lib_dld_shl_load=no 11323fi 11324rm -f core conftest.err conftest.$ac_objext \ 11325 conftest$ac_exeext conftest.$ac_ext 11326LIBS=$ac_check_lib_save_LIBS 11327fi 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11329$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11330if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11331 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11332else 11333 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11334if test "x$ac_cv_func_dlopen" = xyes; then : 11335 lt_cv_dlopen="dlopen" 11336else 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11338$as_echo_n "checking for dlopen in -ldl... " >&6; } 11339if ${ac_cv_lib_dl_dlopen+:} false; then : 11340 $as_echo_n "(cached) " >&6 11341else 11342 ac_check_lib_save_LIBS=$LIBS 11343LIBS="-ldl $LIBS" 11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11345/* end confdefs.h. */ 11346 11347/* Override any GCC internal prototype to avoid an error. 11348 Use char because int might match the return type of a GCC 11349 builtin and then its argument prototype would still apply. */ 11350#ifdef __cplusplus 11351extern "C" 11352#endif 11353char dlopen (); 11354int 11355main () 11356{ 11357return dlopen (); 11358 ; 11359 return 0; 11360} 11361_ACEOF 11362if ac_fn_c_try_link "$LINENO"; then : 11363 ac_cv_lib_dl_dlopen=yes 11364else 11365 ac_cv_lib_dl_dlopen=no 11366fi 11367rm -f core conftest.err conftest.$ac_objext \ 11368 conftest$ac_exeext conftest.$ac_ext 11369LIBS=$ac_check_lib_save_LIBS 11370fi 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11372$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11373if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11375else 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11377$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11378if ${ac_cv_lib_svld_dlopen+:} false; then : 11379 $as_echo_n "(cached) " >&6 11380else 11381 ac_check_lib_save_LIBS=$LIBS 11382LIBS="-lsvld $LIBS" 11383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11384/* end confdefs.h. */ 11385 11386/* Override any GCC internal prototype to avoid an error. 11387 Use char because int might match the return type of a GCC 11388 builtin and then its argument prototype would still apply. */ 11389#ifdef __cplusplus 11390extern "C" 11391#endif 11392char dlopen (); 11393int 11394main () 11395{ 11396return dlopen (); 11397 ; 11398 return 0; 11399} 11400_ACEOF 11401if ac_fn_c_try_link "$LINENO"; then : 11402 ac_cv_lib_svld_dlopen=yes 11403else 11404 ac_cv_lib_svld_dlopen=no 11405fi 11406rm -f core conftest.err conftest.$ac_objext \ 11407 conftest$ac_exeext conftest.$ac_ext 11408LIBS=$ac_check_lib_save_LIBS 11409fi 11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11411$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11412if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11414else 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11416$as_echo_n "checking for dld_link in -ldld... " >&6; } 11417if ${ac_cv_lib_dld_dld_link+:} false; then : 11418 $as_echo_n "(cached) " >&6 11419else 11420 ac_check_lib_save_LIBS=$LIBS 11421LIBS="-ldld $LIBS" 11422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11423/* end confdefs.h. */ 11424 11425/* Override any GCC internal prototype to avoid an error. 11426 Use char because int might match the return type of a GCC 11427 builtin and then its argument prototype would still apply. */ 11428#ifdef __cplusplus 11429extern "C" 11430#endif 11431char dld_link (); 11432int 11433main () 11434{ 11435return dld_link (); 11436 ; 11437 return 0; 11438} 11439_ACEOF 11440if ac_fn_c_try_link "$LINENO"; then : 11441 ac_cv_lib_dld_dld_link=yes 11442else 11443 ac_cv_lib_dld_dld_link=no 11444fi 11445rm -f core conftest.err conftest.$ac_objext \ 11446 conftest$ac_exeext conftest.$ac_ext 11447LIBS=$ac_check_lib_save_LIBS 11448fi 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11450$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11451if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11453fi 11454 11455 11456fi 11457 11458 11459fi 11460 11461 11462fi 11463 11464 11465fi 11466 11467 11468fi 11469 11470 ;; 11471 esac 11472 11473 if test "x$lt_cv_dlopen" != xno; then 11474 enable_dlopen=yes 11475 else 11476 enable_dlopen=no 11477 fi 11478 11479 case $lt_cv_dlopen in 11480 dlopen) 11481 save_CPPFLAGS="$CPPFLAGS" 11482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11483 11484 save_LDFLAGS="$LDFLAGS" 11485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11486 11487 save_LIBS="$LIBS" 11488 LIBS="$lt_cv_dlopen_libs $LIBS" 11489 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11491$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11492if ${lt_cv_dlopen_self+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 if test "$cross_compiling" = yes; then : 11496 lt_cv_dlopen_self=cross 11497else 11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11499 lt_status=$lt_dlunknown 11500 cat > conftest.$ac_ext <<_LT_EOF 11501#line $LINENO "configure" 11502#include "confdefs.h" 11503 11504#if HAVE_DLFCN_H 11505#include <dlfcn.h> 11506#endif 11507 11508#include <stdio.h> 11509 11510#ifdef RTLD_GLOBAL 11511# define LT_DLGLOBAL RTLD_GLOBAL 11512#else 11513# ifdef DL_GLOBAL 11514# define LT_DLGLOBAL DL_GLOBAL 11515# else 11516# define LT_DLGLOBAL 0 11517# endif 11518#endif 11519 11520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11521 find out it does not work in some platform. */ 11522#ifndef LT_DLLAZY_OR_NOW 11523# ifdef RTLD_LAZY 11524# define LT_DLLAZY_OR_NOW RTLD_LAZY 11525# else 11526# ifdef DL_LAZY 11527# define LT_DLLAZY_OR_NOW DL_LAZY 11528# else 11529# ifdef RTLD_NOW 11530# define LT_DLLAZY_OR_NOW RTLD_NOW 11531# else 11532# ifdef DL_NOW 11533# define LT_DLLAZY_OR_NOW DL_NOW 11534# else 11535# define LT_DLLAZY_OR_NOW 0 11536# endif 11537# endif 11538# endif 11539# endif 11540#endif 11541 11542/* When -fvisbility=hidden is used, assume the code has been annotated 11543 correspondingly for the symbols needed. */ 11544#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11545int fnord () __attribute__((visibility("default"))); 11546#endif 11547 11548int fnord () { return 42; } 11549int main () 11550{ 11551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11552 int status = $lt_dlunknown; 11553 11554 if (self) 11555 { 11556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11557 else 11558 { 11559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11560 else puts (dlerror ()); 11561 } 11562 /* dlclose (self); */ 11563 } 11564 else 11565 puts (dlerror ()); 11566 11567 return status; 11568} 11569_LT_EOF 11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11571 (eval $ac_link) 2>&5 11572 ac_status=$? 11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11575 (./conftest; exit; ) >&5 2>/dev/null 11576 lt_status=$? 11577 case x$lt_status in 11578 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11579 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11580 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11581 esac 11582 else : 11583 # compilation failed 11584 lt_cv_dlopen_self=no 11585 fi 11586fi 11587rm -fr conftest* 11588 11589 11590fi 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11592$as_echo "$lt_cv_dlopen_self" >&6; } 11593 11594 if test "x$lt_cv_dlopen_self" = xyes; then 11595 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11597$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11598if ${lt_cv_dlopen_self_static+:} false; then : 11599 $as_echo_n "(cached) " >&6 11600else 11601 if test "$cross_compiling" = yes; then : 11602 lt_cv_dlopen_self_static=cross 11603else 11604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11605 lt_status=$lt_dlunknown 11606 cat > conftest.$ac_ext <<_LT_EOF 11607#line $LINENO "configure" 11608#include "confdefs.h" 11609 11610#if HAVE_DLFCN_H 11611#include <dlfcn.h> 11612#endif 11613 11614#include <stdio.h> 11615 11616#ifdef RTLD_GLOBAL 11617# define LT_DLGLOBAL RTLD_GLOBAL 11618#else 11619# ifdef DL_GLOBAL 11620# define LT_DLGLOBAL DL_GLOBAL 11621# else 11622# define LT_DLGLOBAL 0 11623# endif 11624#endif 11625 11626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11627 find out it does not work in some platform. */ 11628#ifndef LT_DLLAZY_OR_NOW 11629# ifdef RTLD_LAZY 11630# define LT_DLLAZY_OR_NOW RTLD_LAZY 11631# else 11632# ifdef DL_LAZY 11633# define LT_DLLAZY_OR_NOW DL_LAZY 11634# else 11635# ifdef RTLD_NOW 11636# define LT_DLLAZY_OR_NOW RTLD_NOW 11637# else 11638# ifdef DL_NOW 11639# define LT_DLLAZY_OR_NOW DL_NOW 11640# else 11641# define LT_DLLAZY_OR_NOW 0 11642# endif 11643# endif 11644# endif 11645# endif 11646#endif 11647 11648/* When -fvisbility=hidden is used, assume the code has been annotated 11649 correspondingly for the symbols needed. */ 11650#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11651int fnord () __attribute__((visibility("default"))); 11652#endif 11653 11654int fnord () { return 42; } 11655int main () 11656{ 11657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11658 int status = $lt_dlunknown; 11659 11660 if (self) 11661 { 11662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11663 else 11664 { 11665 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11666 else puts (dlerror ()); 11667 } 11668 /* dlclose (self); */ 11669 } 11670 else 11671 puts (dlerror ()); 11672 11673 return status; 11674} 11675_LT_EOF 11676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11677 (eval $ac_link) 2>&5 11678 ac_status=$? 11679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11680 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11681 (./conftest; exit; ) >&5 2>/dev/null 11682 lt_status=$? 11683 case x$lt_status in 11684 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11685 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11686 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11687 esac 11688 else : 11689 # compilation failed 11690 lt_cv_dlopen_self_static=no 11691 fi 11692fi 11693rm -fr conftest* 11694 11695 11696fi 11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11698$as_echo "$lt_cv_dlopen_self_static" >&6; } 11699 fi 11700 11701 CPPFLAGS="$save_CPPFLAGS" 11702 LDFLAGS="$save_LDFLAGS" 11703 LIBS="$save_LIBS" 11704 ;; 11705 esac 11706 11707 case $lt_cv_dlopen_self in 11708 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11709 *) enable_dlopen_self=unknown ;; 11710 esac 11711 11712 case $lt_cv_dlopen_self_static in 11713 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11714 *) enable_dlopen_self_static=unknown ;; 11715 esac 11716fi 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734striplib= 11735old_striplib= 11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11737$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11738if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11740 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11742$as_echo "yes" >&6; } 11743else 11744# FIXME - insert some real tests, host_os isn't really good enough 11745 case $host_os in 11746 darwin*) 11747 if test -n "$STRIP" ; then 11748 striplib="$STRIP -x" 11749 old_striplib="$STRIP -S" 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11751$as_echo "yes" >&6; } 11752 else 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11754$as_echo "no" >&6; } 11755 fi 11756 ;; 11757 *) 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11759$as_echo "no" >&6; } 11760 ;; 11761 esac 11762fi 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 # Report which library types will actually be built 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11777$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11779$as_echo "$can_build_shared" >&6; } 11780 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11782$as_echo_n "checking whether to build shared libraries... " >&6; } 11783 test "$can_build_shared" = "no" && enable_shared=no 11784 11785 # On AIX, shared libraries and static libraries use the same namespace, and 11786 # are all built from PIC. 11787 case $host_os in 11788 aix3*) 11789 test "$enable_shared" = yes && enable_static=no 11790 if test -n "$RANLIB"; then 11791 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11792 postinstall_cmds='$RANLIB $lib' 11793 fi 11794 ;; 11795 11796 aix[4-9]*) 11797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11798 test "$enable_shared" = yes && enable_static=no 11799 fi 11800 ;; 11801 esac 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11803$as_echo "$enable_shared" >&6; } 11804 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11806$as_echo_n "checking whether to build static libraries... " >&6; } 11807 # Make sure either enable_shared or enable_static is yes. 11808 test "$enable_shared" = yes || enable_static=yes 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11810$as_echo "$enable_static" >&6; } 11811 11812 11813 11814 11815fi 11816ac_ext=c 11817ac_cpp='$CPP $CPPFLAGS' 11818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11820ac_compiler_gnu=$ac_cv_c_compiler_gnu 11821 11822CC="$lt_save_CC" 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 ac_config_commands="$ac_config_commands libtool" 11839 11840 11841 11842 11843# Only expand once: 11844 11845 11846 11847# Require xorg-macros minimum of 1.10 for DocBook XML documentation 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11860$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11861if ${ac_cv_prog_cc_c99+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 ac_cv_prog_cc_c99=no 11865ac_save_CC=$CC 11866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11867/* end confdefs.h. */ 11868#include <stdarg.h> 11869#include <stdbool.h> 11870#include <stdlib.h> 11871#include <wchar.h> 11872#include <stdio.h> 11873 11874// Check varargs macros. These examples are taken from C99 6.10.3.5. 11875#define debug(...) fprintf (stderr, __VA_ARGS__) 11876#define showlist(...) puts (#__VA_ARGS__) 11877#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11878static void 11879test_varargs_macros (void) 11880{ 11881 int x = 1234; 11882 int y = 5678; 11883 debug ("Flag"); 11884 debug ("X = %d\n", x); 11885 showlist (The first, second, and third items.); 11886 report (x>y, "x is %d but y is %d", x, y); 11887} 11888 11889// Check long long types. 11890#define BIG64 18446744073709551615ull 11891#define BIG32 4294967295ul 11892#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11893#if !BIG_OK 11894 your preprocessor is broken; 11895#endif 11896#if BIG_OK 11897#else 11898 your preprocessor is broken; 11899#endif 11900static long long int bignum = -9223372036854775807LL; 11901static unsigned long long int ubignum = BIG64; 11902 11903struct incomplete_array 11904{ 11905 int datasize; 11906 double data[]; 11907}; 11908 11909struct named_init { 11910 int number; 11911 const wchar_t *name; 11912 double average; 11913}; 11914 11915typedef const char *ccp; 11916 11917static inline int 11918test_restrict (ccp restrict text) 11919{ 11920 // See if C++-style comments work. 11921 // Iterate through items via the restricted pointer. 11922 // Also check for declarations in for loops. 11923 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11924 continue; 11925 return 0; 11926} 11927 11928// Check varargs and va_copy. 11929static void 11930test_varargs (const char *format, ...) 11931{ 11932 va_list args; 11933 va_start (args, format); 11934 va_list args_copy; 11935 va_copy (args_copy, args); 11936 11937 const char *str; 11938 int number; 11939 float fnumber; 11940 11941 while (*format) 11942 { 11943 switch (*format++) 11944 { 11945 case 's': // string 11946 str = va_arg (args_copy, const char *); 11947 break; 11948 case 'd': // int 11949 number = va_arg (args_copy, int); 11950 break; 11951 case 'f': // float 11952 fnumber = va_arg (args_copy, double); 11953 break; 11954 default: 11955 break; 11956 } 11957 } 11958 va_end (args_copy); 11959 va_end (args); 11960} 11961 11962int 11963main () 11964{ 11965 11966 // Check bool. 11967 _Bool success = false; 11968 11969 // Check restrict. 11970 if (test_restrict ("String literal") == 0) 11971 success = true; 11972 char *restrict newvar = "Another string"; 11973 11974 // Check varargs. 11975 test_varargs ("s, d' f .", "string", 65, 34.234); 11976 test_varargs_macros (); 11977 11978 // Check flexible array members. 11979 struct incomplete_array *ia = 11980 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11981 ia->datasize = 10; 11982 for (int i = 0; i < ia->datasize; ++i) 11983 ia->data[i] = i * 1.234; 11984 11985 // Check named initializers. 11986 struct named_init ni = { 11987 .number = 34, 11988 .name = L"Test wide string", 11989 .average = 543.34343, 11990 }; 11991 11992 ni.number = 58; 11993 11994 int dynamic_array[ni.number]; 11995 dynamic_array[ni.number - 1] = 543; 11996 11997 // work around unused variable warnings 11998 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11999 || dynamic_array[ni.number - 1] != 543); 12000 12001 ; 12002 return 0; 12003} 12004_ACEOF 12005for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12006do 12007 CC="$ac_save_CC $ac_arg" 12008 if ac_fn_c_try_compile "$LINENO"; then : 12009 ac_cv_prog_cc_c99=$ac_arg 12010fi 12011rm -f core conftest.err conftest.$ac_objext 12012 test "x$ac_cv_prog_cc_c99" != "xno" && break 12013done 12014rm -f conftest.$ac_ext 12015CC=$ac_save_CC 12016 12017fi 12018# AC_CACHE_VAL 12019case "x$ac_cv_prog_cc_c99" in 12020 x) 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12022$as_echo "none needed" >&6; } ;; 12023 xno) 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12025$as_echo "unsupported" >&6; } ;; 12026 *) 12027 CC="$CC $ac_cv_prog_cc_c99" 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12029$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12030esac 12031if test "x$ac_cv_prog_cc_c99" != xno; then : 12032 12033fi 12034 12035 12036 12037 12038 12039 12040ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12041if test "x$ac_cv_have_decl___clang__" = xyes; then : 12042 CLANGCC="yes" 12043else 12044 CLANGCC="no" 12045fi 12046 12047ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12048if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12049 INTELCC="yes" 12050else 12051 INTELCC="no" 12052fi 12053 12054ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12055if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12056 SUNCC="yes" 12057else 12058 SUNCC="no" 12059fi 12060 12061 12062 12063 12064if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12065 if test -n "$ac_tool_prefix"; then 12066 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12067set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12069$as_echo_n "checking for $ac_word... " >&6; } 12070if ${ac_cv_path_PKG_CONFIG+:} false; then : 12071 $as_echo_n "(cached) " >&6 12072else 12073 case $PKG_CONFIG in 12074 [\\/]* | ?:[\\/]*) 12075 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12076 ;; 12077 *) 12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12079for as_dir in $PATH 12080do 12081 IFS=$as_save_IFS 12082 test -z "$as_dir" && as_dir=. 12083 for ac_exec_ext in '' $ac_executable_extensions; do 12084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12085 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12087 break 2 12088 fi 12089done 12090 done 12091IFS=$as_save_IFS 12092 12093 ;; 12094esac 12095fi 12096PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12097if test -n "$PKG_CONFIG"; then 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12099$as_echo "$PKG_CONFIG" >&6; } 12100else 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12102$as_echo "no" >&6; } 12103fi 12104 12105 12106fi 12107if test -z "$ac_cv_path_PKG_CONFIG"; then 12108 ac_pt_PKG_CONFIG=$PKG_CONFIG 12109 # Extract the first word of "pkg-config", so it can be a program name with args. 12110set dummy 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_ac_pt_PKG_CONFIG+:} false; then : 12114 $as_echo_n "(cached) " >&6 12115else 12116 case $ac_pt_PKG_CONFIG in 12117 [\\/]* | ?:[\\/]*) 12118 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 12139ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12140if test -n "$ac_pt_PKG_CONFIG"; then 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12142$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12143else 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12145$as_echo "no" >&6; } 12146fi 12147 12148 if test "x$ac_pt_PKG_CONFIG" = x; then 12149 PKG_CONFIG="" 12150 else 12151 case $cross_compiling:$ac_tool_warned in 12152yes:) 12153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12155ac_tool_warned=yes ;; 12156esac 12157 PKG_CONFIG=$ac_pt_PKG_CONFIG 12158 fi 12159else 12160 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12161fi 12162 12163fi 12164if test -n "$PKG_CONFIG"; then 12165 _pkg_min_version=0.9.0 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12167$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12168 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12170$as_echo "yes" >&6; } 12171 else 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12173$as_echo "no" >&6; } 12174 PKG_CONFIG="" 12175 fi 12176 12177fi 12178 12179 12180 12181 12182 12183# Check whether --enable-selective-werror was given. 12184if test "${enable_selective_werror+set}" = set; then : 12185 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12186else 12187 SELECTIVE_WERROR=yes 12188fi 12189 12190 12191 12192 12193 12194# -v is too short to test reliably with XORG_TESTSET_CFLAG 12195if test "x$SUNCC" = "xyes"; then 12196 BASE_CFLAGS="-v" 12197else 12198 BASE_CFLAGS="" 12199fi 12200 12201# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215xorg_testset_save_CFLAGS="$CFLAGS" 12216 12217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12222 $as_echo_n "(cached) " >&6 12223else 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226int i; 12227_ACEOF 12228if ac_fn_c_try_compile "$LINENO"; then : 12229 xorg_cv_cc_flag_unknown_warning_option=yes 12230else 12231 xorg_cv_cc_flag_unknown_warning_option=no 12232fi 12233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12234fi 12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12238 CFLAGS="$xorg_testset_save_CFLAGS" 12239fi 12240 12241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12244 fi 12245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12249 $as_echo_n "(cached) " >&6 12250else 12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253int i; 12254_ACEOF 12255if ac_fn_c_try_compile "$LINENO"; then : 12256 xorg_cv_cc_flag_unused_command_line_argument=yes 12257else 12258 xorg_cv_cc_flag_unused_command_line_argument=no 12259fi 12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12261fi 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12265 CFLAGS="$xorg_testset_save_CFLAGS" 12266fi 12267 12268found="no" 12269 12270 if test $found = "no" ; then 12271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12273 fi 12274 12275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12277 fi 12278 12279 CFLAGS="$CFLAGS -Wall" 12280 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12282$as_echo_n "checking if $CC supports -Wall... " >&6; } 12283 cacheid=xorg_cv_cc_flag__Wall 12284 if eval \${$cacheid+:} false; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12288/* end confdefs.h. */ 12289int i; 12290int 12291main () 12292{ 12293 12294 ; 12295 return 0; 12296} 12297_ACEOF 12298if ac_fn_c_try_link "$LINENO"; then : 12299 eval $cacheid=yes 12300else 12301 eval $cacheid=no 12302fi 12303rm -f core conftest.err conftest.$ac_objext \ 12304 conftest$ac_exeext conftest.$ac_ext 12305fi 12306 12307 12308 CFLAGS="$xorg_testset_save_CFLAGS" 12309 12310 eval supported=\$$cacheid 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12312$as_echo "$supported" >&6; } 12313 if test "$supported" = "yes" ; then 12314 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12315 found="yes" 12316 fi 12317 fi 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333xorg_testset_save_CFLAGS="$CFLAGS" 12334 12335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12340 $as_echo_n "(cached) " >&6 12341else 12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12343/* end confdefs.h. */ 12344int i; 12345_ACEOF 12346if ac_fn_c_try_compile "$LINENO"; then : 12347 xorg_cv_cc_flag_unknown_warning_option=yes 12348else 12349 xorg_cv_cc_flag_unknown_warning_option=no 12350fi 12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12352fi 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12356 CFLAGS="$xorg_testset_save_CFLAGS" 12357fi 12358 12359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12362 fi 12363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368else 12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12370/* end confdefs.h. */ 12371int i; 12372_ACEOF 12373if ac_fn_c_try_compile "$LINENO"; then : 12374 xorg_cv_cc_flag_unused_command_line_argument=yes 12375else 12376 xorg_cv_cc_flag_unused_command_line_argument=no 12377fi 12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12379fi 12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12383 CFLAGS="$xorg_testset_save_CFLAGS" 12384fi 12385 12386found="no" 12387 12388 if test $found = "no" ; then 12389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12391 fi 12392 12393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12395 fi 12396 12397 CFLAGS="$CFLAGS -Wpointer-arith" 12398 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12400$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12401 cacheid=xorg_cv_cc_flag__Wpointer_arith 12402 if eval \${$cacheid+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404else 12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406/* end confdefs.h. */ 12407int i; 12408int 12409main () 12410{ 12411 12412 ; 12413 return 0; 12414} 12415_ACEOF 12416if ac_fn_c_try_link "$LINENO"; then : 12417 eval $cacheid=yes 12418else 12419 eval $cacheid=no 12420fi 12421rm -f core conftest.err conftest.$ac_objext \ 12422 conftest$ac_exeext conftest.$ac_ext 12423fi 12424 12425 12426 CFLAGS="$xorg_testset_save_CFLAGS" 12427 12428 eval supported=\$$cacheid 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12430$as_echo "$supported" >&6; } 12431 if test "$supported" = "yes" ; then 12432 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12433 found="yes" 12434 fi 12435 fi 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451xorg_testset_save_CFLAGS="$CFLAGS" 12452 12453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12458 $as_echo_n "(cached) " >&6 12459else 12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12461/* end confdefs.h. */ 12462int i; 12463_ACEOF 12464if ac_fn_c_try_compile "$LINENO"; then : 12465 xorg_cv_cc_flag_unknown_warning_option=yes 12466else 12467 xorg_cv_cc_flag_unknown_warning_option=no 12468fi 12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12470fi 12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12474 CFLAGS="$xorg_testset_save_CFLAGS" 12475fi 12476 12477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12480 fi 12481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12485 $as_echo_n "(cached) " >&6 12486else 12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12488/* end confdefs.h. */ 12489int i; 12490_ACEOF 12491if ac_fn_c_try_compile "$LINENO"; then : 12492 xorg_cv_cc_flag_unused_command_line_argument=yes 12493else 12494 xorg_cv_cc_flag_unused_command_line_argument=no 12495fi 12496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12497fi 12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12501 CFLAGS="$xorg_testset_save_CFLAGS" 12502fi 12503 12504found="no" 12505 12506 if test $found = "no" ; then 12507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12509 fi 12510 12511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12513 fi 12514 12515 CFLAGS="$CFLAGS -Wmissing-declarations" 12516 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12518$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12519 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12520 if eval \${$cacheid+:} false; then : 12521 $as_echo_n "(cached) " >&6 12522else 12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12524/* end confdefs.h. */ 12525int i; 12526int 12527main () 12528{ 12529 12530 ; 12531 return 0; 12532} 12533_ACEOF 12534if ac_fn_c_try_link "$LINENO"; then : 12535 eval $cacheid=yes 12536else 12537 eval $cacheid=no 12538fi 12539rm -f core conftest.err conftest.$ac_objext \ 12540 conftest$ac_exeext conftest.$ac_ext 12541fi 12542 12543 12544 CFLAGS="$xorg_testset_save_CFLAGS" 12545 12546 eval supported=\$$cacheid 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12548$as_echo "$supported" >&6; } 12549 if test "$supported" = "yes" ; then 12550 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12551 found="yes" 12552 fi 12553 fi 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569xorg_testset_save_CFLAGS="$CFLAGS" 12570 12571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12576 $as_echo_n "(cached) " >&6 12577else 12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12579/* end confdefs.h. */ 12580int i; 12581_ACEOF 12582if ac_fn_c_try_compile "$LINENO"; then : 12583 xorg_cv_cc_flag_unknown_warning_option=yes 12584else 12585 xorg_cv_cc_flag_unknown_warning_option=no 12586fi 12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12588fi 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12592 CFLAGS="$xorg_testset_save_CFLAGS" 12593fi 12594 12595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12598 fi 12599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604else 12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12606/* end confdefs.h. */ 12607int i; 12608_ACEOF 12609if ac_fn_c_try_compile "$LINENO"; then : 12610 xorg_cv_cc_flag_unused_command_line_argument=yes 12611else 12612 xorg_cv_cc_flag_unused_command_line_argument=no 12613fi 12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12615fi 12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12619 CFLAGS="$xorg_testset_save_CFLAGS" 12620fi 12621 12622found="no" 12623 12624 if test $found = "no" ; then 12625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12627 fi 12628 12629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12631 fi 12632 12633 CFLAGS="$CFLAGS -Wformat=2" 12634 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12636$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12637 cacheid=xorg_cv_cc_flag__Wformat_2 12638 if eval \${$cacheid+:} false; then : 12639 $as_echo_n "(cached) " >&6 12640else 12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12642/* end confdefs.h. */ 12643int i; 12644int 12645main () 12646{ 12647 12648 ; 12649 return 0; 12650} 12651_ACEOF 12652if ac_fn_c_try_link "$LINENO"; then : 12653 eval $cacheid=yes 12654else 12655 eval $cacheid=no 12656fi 12657rm -f core conftest.err conftest.$ac_objext \ 12658 conftest$ac_exeext conftest.$ac_ext 12659fi 12660 12661 12662 CFLAGS="$xorg_testset_save_CFLAGS" 12663 12664 eval supported=\$$cacheid 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12666$as_echo "$supported" >&6; } 12667 if test "$supported" = "yes" ; then 12668 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12669 found="yes" 12670 fi 12671 fi 12672 12673 if test $found = "no" ; then 12674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12676 fi 12677 12678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12680 fi 12681 12682 CFLAGS="$CFLAGS -Wformat" 12683 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12685$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12686 cacheid=xorg_cv_cc_flag__Wformat 12687 if eval \${$cacheid+:} false; then : 12688 $as_echo_n "(cached) " >&6 12689else 12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12691/* end confdefs.h. */ 12692int i; 12693int 12694main () 12695{ 12696 12697 ; 12698 return 0; 12699} 12700_ACEOF 12701if ac_fn_c_try_link "$LINENO"; then : 12702 eval $cacheid=yes 12703else 12704 eval $cacheid=no 12705fi 12706rm -f core conftest.err conftest.$ac_objext \ 12707 conftest$ac_exeext conftest.$ac_ext 12708fi 12709 12710 12711 CFLAGS="$xorg_testset_save_CFLAGS" 12712 12713 eval supported=\$$cacheid 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12715$as_echo "$supported" >&6; } 12716 if test "$supported" = "yes" ; then 12717 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12718 found="yes" 12719 fi 12720 fi 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738xorg_testset_save_CFLAGS="$CFLAGS" 12739 12740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12748/* end confdefs.h. */ 12749int i; 12750_ACEOF 12751if ac_fn_c_try_compile "$LINENO"; then : 12752 xorg_cv_cc_flag_unknown_warning_option=yes 12753else 12754 xorg_cv_cc_flag_unknown_warning_option=no 12755fi 12756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12757fi 12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12761 CFLAGS="$xorg_testset_save_CFLAGS" 12762fi 12763 12764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12767 fi 12768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12772 $as_echo_n "(cached) " >&6 12773else 12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12775/* end confdefs.h. */ 12776int i; 12777_ACEOF 12778if ac_fn_c_try_compile "$LINENO"; then : 12779 xorg_cv_cc_flag_unused_command_line_argument=yes 12780else 12781 xorg_cv_cc_flag_unused_command_line_argument=no 12782fi 12783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12784fi 12785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12788 CFLAGS="$xorg_testset_save_CFLAGS" 12789fi 12790 12791found="no" 12792 12793 if test $found = "no" ; then 12794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12796 fi 12797 12798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12800 fi 12801 12802 CFLAGS="$CFLAGS -Wstrict-prototypes" 12803 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12805$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12806 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12807 if eval \${$cacheid+:} false; then : 12808 $as_echo_n "(cached) " >&6 12809else 12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12811/* end confdefs.h. */ 12812int i; 12813int 12814main () 12815{ 12816 12817 ; 12818 return 0; 12819} 12820_ACEOF 12821if ac_fn_c_try_link "$LINENO"; then : 12822 eval $cacheid=yes 12823else 12824 eval $cacheid=no 12825fi 12826rm -f core conftest.err conftest.$ac_objext \ 12827 conftest$ac_exeext conftest.$ac_ext 12828fi 12829 12830 12831 CFLAGS="$xorg_testset_save_CFLAGS" 12832 12833 eval supported=\$$cacheid 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12835$as_echo "$supported" >&6; } 12836 if test "$supported" = "yes" ; then 12837 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12838 found="yes" 12839 fi 12840 fi 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856xorg_testset_save_CFLAGS="$CFLAGS" 12857 12858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12863 $as_echo_n "(cached) " >&6 12864else 12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12866/* end confdefs.h. */ 12867int i; 12868_ACEOF 12869if ac_fn_c_try_compile "$LINENO"; then : 12870 xorg_cv_cc_flag_unknown_warning_option=yes 12871else 12872 xorg_cv_cc_flag_unknown_warning_option=no 12873fi 12874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12875fi 12876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12879 CFLAGS="$xorg_testset_save_CFLAGS" 12880fi 12881 12882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12885 fi 12886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12890 $as_echo_n "(cached) " >&6 12891else 12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12893/* end confdefs.h. */ 12894int i; 12895_ACEOF 12896if ac_fn_c_try_compile "$LINENO"; then : 12897 xorg_cv_cc_flag_unused_command_line_argument=yes 12898else 12899 xorg_cv_cc_flag_unused_command_line_argument=no 12900fi 12901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12902fi 12903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12906 CFLAGS="$xorg_testset_save_CFLAGS" 12907fi 12908 12909found="no" 12910 12911 if test $found = "no" ; then 12912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12914 fi 12915 12916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12918 fi 12919 12920 CFLAGS="$CFLAGS -Wmissing-prototypes" 12921 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12923$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12924 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12925 if eval \${$cacheid+:} false; then : 12926 $as_echo_n "(cached) " >&6 12927else 12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929/* end confdefs.h. */ 12930int i; 12931int 12932main () 12933{ 12934 12935 ; 12936 return 0; 12937} 12938_ACEOF 12939if ac_fn_c_try_link "$LINENO"; then : 12940 eval $cacheid=yes 12941else 12942 eval $cacheid=no 12943fi 12944rm -f core conftest.err conftest.$ac_objext \ 12945 conftest$ac_exeext conftest.$ac_ext 12946fi 12947 12948 12949 CFLAGS="$xorg_testset_save_CFLAGS" 12950 12951 eval supported=\$$cacheid 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12953$as_echo "$supported" >&6; } 12954 if test "$supported" = "yes" ; then 12955 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12956 found="yes" 12957 fi 12958 fi 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974xorg_testset_save_CFLAGS="$CFLAGS" 12975 12976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12981 $as_echo_n "(cached) " >&6 12982else 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12984/* end confdefs.h. */ 12985int i; 12986_ACEOF 12987if ac_fn_c_try_compile "$LINENO"; then : 12988 xorg_cv_cc_flag_unknown_warning_option=yes 12989else 12990 xorg_cv_cc_flag_unknown_warning_option=no 12991fi 12992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12993fi 12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12997 CFLAGS="$xorg_testset_save_CFLAGS" 12998fi 12999 13000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13003 fi 13004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012int i; 13013_ACEOF 13014if ac_fn_c_try_compile "$LINENO"; then : 13015 xorg_cv_cc_flag_unused_command_line_argument=yes 13016else 13017 xorg_cv_cc_flag_unused_command_line_argument=no 13018fi 13019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13020fi 13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13024 CFLAGS="$xorg_testset_save_CFLAGS" 13025fi 13026 13027found="no" 13028 13029 if test $found = "no" ; then 13030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13032 fi 13033 13034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13036 fi 13037 13038 CFLAGS="$CFLAGS -Wnested-externs" 13039 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13041$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13042 cacheid=xorg_cv_cc_flag__Wnested_externs 13043 if eval \${$cacheid+:} false; then : 13044 $as_echo_n "(cached) " >&6 13045else 13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13047/* end confdefs.h. */ 13048int i; 13049int 13050main () 13051{ 13052 13053 ; 13054 return 0; 13055} 13056_ACEOF 13057if ac_fn_c_try_link "$LINENO"; then : 13058 eval $cacheid=yes 13059else 13060 eval $cacheid=no 13061fi 13062rm -f core conftest.err conftest.$ac_objext \ 13063 conftest$ac_exeext conftest.$ac_ext 13064fi 13065 13066 13067 CFLAGS="$xorg_testset_save_CFLAGS" 13068 13069 eval supported=\$$cacheid 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13071$as_echo "$supported" >&6; } 13072 if test "$supported" = "yes" ; then 13073 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13074 found="yes" 13075 fi 13076 fi 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092xorg_testset_save_CFLAGS="$CFLAGS" 13093 13094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13099 $as_echo_n "(cached) " >&6 13100else 13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13102/* end confdefs.h. */ 13103int i; 13104_ACEOF 13105if ac_fn_c_try_compile "$LINENO"; then : 13106 xorg_cv_cc_flag_unknown_warning_option=yes 13107else 13108 xorg_cv_cc_flag_unknown_warning_option=no 13109fi 13110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13111fi 13112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13115 CFLAGS="$xorg_testset_save_CFLAGS" 13116fi 13117 13118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13121 fi 13122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13126 $as_echo_n "(cached) " >&6 13127else 13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130int i; 13131_ACEOF 13132if ac_fn_c_try_compile "$LINENO"; then : 13133 xorg_cv_cc_flag_unused_command_line_argument=yes 13134else 13135 xorg_cv_cc_flag_unused_command_line_argument=no 13136fi 13137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13138fi 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13142 CFLAGS="$xorg_testset_save_CFLAGS" 13143fi 13144 13145found="no" 13146 13147 if test $found = "no" ; then 13148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13150 fi 13151 13152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13154 fi 13155 13156 CFLAGS="$CFLAGS -Wbad-function-cast" 13157 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13159$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13160 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13161 if eval \${$cacheid+:} false; then : 13162 $as_echo_n "(cached) " >&6 13163else 13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13165/* end confdefs.h. */ 13166int i; 13167int 13168main () 13169{ 13170 13171 ; 13172 return 0; 13173} 13174_ACEOF 13175if ac_fn_c_try_link "$LINENO"; then : 13176 eval $cacheid=yes 13177else 13178 eval $cacheid=no 13179fi 13180rm -f core conftest.err conftest.$ac_objext \ 13181 conftest$ac_exeext conftest.$ac_ext 13182fi 13183 13184 13185 CFLAGS="$xorg_testset_save_CFLAGS" 13186 13187 eval supported=\$$cacheid 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13189$as_echo "$supported" >&6; } 13190 if test "$supported" = "yes" ; then 13191 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13192 found="yes" 13193 fi 13194 fi 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210xorg_testset_save_CFLAGS="$CFLAGS" 13211 13212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13217 $as_echo_n "(cached) " >&6 13218else 13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13220/* end confdefs.h. */ 13221int i; 13222_ACEOF 13223if ac_fn_c_try_compile "$LINENO"; then : 13224 xorg_cv_cc_flag_unknown_warning_option=yes 13225else 13226 xorg_cv_cc_flag_unknown_warning_option=no 13227fi 13228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13229fi 13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13233 CFLAGS="$xorg_testset_save_CFLAGS" 13234fi 13235 13236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13239 fi 13240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13244 $as_echo_n "(cached) " >&6 13245else 13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13247/* end confdefs.h. */ 13248int i; 13249_ACEOF 13250if ac_fn_c_try_compile "$LINENO"; then : 13251 xorg_cv_cc_flag_unused_command_line_argument=yes 13252else 13253 xorg_cv_cc_flag_unused_command_line_argument=no 13254fi 13255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13256fi 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13260 CFLAGS="$xorg_testset_save_CFLAGS" 13261fi 13262 13263found="no" 13264 13265 if test $found = "no" ; then 13266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13268 fi 13269 13270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13272 fi 13273 13274 CFLAGS="$CFLAGS -Wold-style-definition" 13275 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13277$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13278 cacheid=xorg_cv_cc_flag__Wold_style_definition 13279 if eval \${$cacheid+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281else 13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13283/* end confdefs.h. */ 13284int i; 13285int 13286main () 13287{ 13288 13289 ; 13290 return 0; 13291} 13292_ACEOF 13293if ac_fn_c_try_link "$LINENO"; then : 13294 eval $cacheid=yes 13295else 13296 eval $cacheid=no 13297fi 13298rm -f core conftest.err conftest.$ac_objext \ 13299 conftest$ac_exeext conftest.$ac_ext 13300fi 13301 13302 13303 CFLAGS="$xorg_testset_save_CFLAGS" 13304 13305 eval supported=\$$cacheid 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13307$as_echo "$supported" >&6; } 13308 if test "$supported" = "yes" ; then 13309 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13310 found="yes" 13311 fi 13312 fi 13313 13314 if test $found = "no" ; then 13315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13317 fi 13318 13319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13321 fi 13322 13323 CFLAGS="$CFLAGS -fd" 13324 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13326$as_echo_n "checking if $CC supports -fd... " >&6; } 13327 cacheid=xorg_cv_cc_flag__fd 13328 if eval \${$cacheid+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330else 13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13332/* end confdefs.h. */ 13333int i; 13334int 13335main () 13336{ 13337 13338 ; 13339 return 0; 13340} 13341_ACEOF 13342if ac_fn_c_try_link "$LINENO"; then : 13343 eval $cacheid=yes 13344else 13345 eval $cacheid=no 13346fi 13347rm -f core conftest.err conftest.$ac_objext \ 13348 conftest$ac_exeext conftest.$ac_ext 13349fi 13350 13351 13352 CFLAGS="$xorg_testset_save_CFLAGS" 13353 13354 eval supported=\$$cacheid 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13356$as_echo "$supported" >&6; } 13357 if test "$supported" = "yes" ; then 13358 BASE_CFLAGS="$BASE_CFLAGS -fd" 13359 found="yes" 13360 fi 13361 fi 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377xorg_testset_save_CFLAGS="$CFLAGS" 13378 13379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13384 $as_echo_n "(cached) " >&6 13385else 13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13387/* end confdefs.h. */ 13388int i; 13389_ACEOF 13390if ac_fn_c_try_compile "$LINENO"; then : 13391 xorg_cv_cc_flag_unknown_warning_option=yes 13392else 13393 xorg_cv_cc_flag_unknown_warning_option=no 13394fi 13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13396fi 13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13400 CFLAGS="$xorg_testset_save_CFLAGS" 13401fi 13402 13403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13406 fi 13407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414/* end confdefs.h. */ 13415int i; 13416_ACEOF 13417if ac_fn_c_try_compile "$LINENO"; then : 13418 xorg_cv_cc_flag_unused_command_line_argument=yes 13419else 13420 xorg_cv_cc_flag_unused_command_line_argument=no 13421fi 13422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13423fi 13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13427 CFLAGS="$xorg_testset_save_CFLAGS" 13428fi 13429 13430found="no" 13431 13432 if test $found = "no" ; then 13433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13435 fi 13436 13437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13439 fi 13440 13441 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13442 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13444$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13445 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13446 if eval \${$cacheid+:} false; then : 13447 $as_echo_n "(cached) " >&6 13448else 13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13450/* end confdefs.h. */ 13451int i; 13452int 13453main () 13454{ 13455 13456 ; 13457 return 0; 13458} 13459_ACEOF 13460if ac_fn_c_try_link "$LINENO"; then : 13461 eval $cacheid=yes 13462else 13463 eval $cacheid=no 13464fi 13465rm -f core conftest.err conftest.$ac_objext \ 13466 conftest$ac_exeext conftest.$ac_ext 13467fi 13468 13469 13470 CFLAGS="$xorg_testset_save_CFLAGS" 13471 13472 eval supported=\$$cacheid 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13474$as_echo "$supported" >&6; } 13475 if test "$supported" = "yes" ; then 13476 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13477 found="yes" 13478 fi 13479 fi 13480 13481 13482 13483 13484 13485# This chunk adds additional warnings that could catch undesired effects. 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499xorg_testset_save_CFLAGS="$CFLAGS" 13500 13501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510int i; 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO"; then : 13513 xorg_cv_cc_flag_unknown_warning_option=yes 13514else 13515 xorg_cv_cc_flag_unknown_warning_option=no 13516fi 13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13518fi 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13522 CFLAGS="$xorg_testset_save_CFLAGS" 13523fi 13524 13525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13528 fi 13529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537int i; 13538_ACEOF 13539if ac_fn_c_try_compile "$LINENO"; then : 13540 xorg_cv_cc_flag_unused_command_line_argument=yes 13541else 13542 xorg_cv_cc_flag_unused_command_line_argument=no 13543fi 13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13545fi 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13549 CFLAGS="$xorg_testset_save_CFLAGS" 13550fi 13551 13552found="no" 13553 13554 if test $found = "no" ; then 13555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13557 fi 13558 13559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13561 fi 13562 13563 CFLAGS="$CFLAGS -Wunused" 13564 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13566$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13567 cacheid=xorg_cv_cc_flag__Wunused 13568 if eval \${$cacheid+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573int i; 13574int 13575main () 13576{ 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO"; then : 13583 eval $cacheid=yes 13584else 13585 eval $cacheid=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext \ 13588 conftest$ac_exeext conftest.$ac_ext 13589fi 13590 13591 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593 13594 eval supported=\$$cacheid 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13596$as_echo "$supported" >&6; } 13597 if test "$supported" = "yes" ; then 13598 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13599 found="yes" 13600 fi 13601 fi 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617xorg_testset_save_CFLAGS="$CFLAGS" 13618 13619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628int i; 13629_ACEOF 13630if ac_fn_c_try_compile "$LINENO"; then : 13631 xorg_cv_cc_flag_unknown_warning_option=yes 13632else 13633 xorg_cv_cc_flag_unknown_warning_option=no 13634fi 13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13636fi 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13640 CFLAGS="$xorg_testset_save_CFLAGS" 13641fi 13642 13643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13646 fi 13647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13651 $as_echo_n "(cached) " >&6 13652else 13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655int i; 13656_ACEOF 13657if ac_fn_c_try_compile "$LINENO"; then : 13658 xorg_cv_cc_flag_unused_command_line_argument=yes 13659else 13660 xorg_cv_cc_flag_unused_command_line_argument=no 13661fi 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13663fi 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13667 CFLAGS="$xorg_testset_save_CFLAGS" 13668fi 13669 13670found="no" 13671 13672 if test $found = "no" ; then 13673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13675 fi 13676 13677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13679 fi 13680 13681 CFLAGS="$CFLAGS -Wuninitialized" 13682 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13684$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13685 cacheid=xorg_cv_cc_flag__Wuninitialized 13686 if eval \${$cacheid+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692int 13693main () 13694{ 13695 13696 ; 13697 return 0; 13698} 13699_ACEOF 13700if ac_fn_c_try_link "$LINENO"; then : 13701 eval $cacheid=yes 13702else 13703 eval $cacheid=no 13704fi 13705rm -f core conftest.err conftest.$ac_objext \ 13706 conftest$ac_exeext conftest.$ac_ext 13707fi 13708 13709 13710 CFLAGS="$xorg_testset_save_CFLAGS" 13711 13712 eval supported=\$$cacheid 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13714$as_echo "$supported" >&6; } 13715 if test "$supported" = "yes" ; then 13716 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13717 found="yes" 13718 fi 13719 fi 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735xorg_testset_save_CFLAGS="$CFLAGS" 13736 13737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746int i; 13747_ACEOF 13748if ac_fn_c_try_compile "$LINENO"; then : 13749 xorg_cv_cc_flag_unknown_warning_option=yes 13750else 13751 xorg_cv_cc_flag_unknown_warning_option=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754fi 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13764 fi 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773int i; 13774_ACEOF 13775if ac_fn_c_try_compile "$LINENO"; then : 13776 xorg_cv_cc_flag_unused_command_line_argument=yes 13777else 13778 xorg_cv_cc_flag_unused_command_line_argument=no 13779fi 13780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13781fi 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13785 CFLAGS="$xorg_testset_save_CFLAGS" 13786fi 13787 13788found="no" 13789 13790 if test $found = "no" ; then 13791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 13795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13797 fi 13798 13799 CFLAGS="$CFLAGS -Wshadow" 13800 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13802$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13803 cacheid=xorg_cv_cc_flag__Wshadow 13804 if eval \${$cacheid+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809int i; 13810int 13811main () 13812{ 13813 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818if ac_fn_c_try_link "$LINENO"; then : 13819 eval $cacheid=yes 13820else 13821 eval $cacheid=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext \ 13824 conftest$ac_exeext conftest.$ac_ext 13825fi 13826 13827 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829 13830 eval supported=\$$cacheid 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13832$as_echo "$supported" >&6; } 13833 if test "$supported" = "yes" ; then 13834 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13835 found="yes" 13836 fi 13837 fi 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853xorg_testset_save_CFLAGS="$CFLAGS" 13854 13855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13860 $as_echo_n "(cached) " >&6 13861else 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864int i; 13865_ACEOF 13866if ac_fn_c_try_compile "$LINENO"; then : 13867 xorg_cv_cc_flag_unknown_warning_option=yes 13868else 13869 xorg_cv_cc_flag_unknown_warning_option=no 13870fi 13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13872fi 13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13876 CFLAGS="$xorg_testset_save_CFLAGS" 13877fi 13878 13879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13882 fi 13883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13887 $as_echo_n "(cached) " >&6 13888else 13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891int i; 13892_ACEOF 13893if ac_fn_c_try_compile "$LINENO"; then : 13894 xorg_cv_cc_flag_unused_command_line_argument=yes 13895else 13896 xorg_cv_cc_flag_unused_command_line_argument=no 13897fi 13898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13899fi 13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13903 CFLAGS="$xorg_testset_save_CFLAGS" 13904fi 13905 13906found="no" 13907 13908 if test $found = "no" ; then 13909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13911 fi 13912 13913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13915 fi 13916 13917 CFLAGS="$CFLAGS -Wmissing-noreturn" 13918 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13920$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13921 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13922 if eval \${$cacheid+:} false; then : 13923 $as_echo_n "(cached) " >&6 13924else 13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926/* end confdefs.h. */ 13927int i; 13928int 13929main () 13930{ 13931 13932 ; 13933 return 0; 13934} 13935_ACEOF 13936if ac_fn_c_try_link "$LINENO"; then : 13937 eval $cacheid=yes 13938else 13939 eval $cacheid=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext \ 13942 conftest$ac_exeext conftest.$ac_ext 13943fi 13944 13945 13946 CFLAGS="$xorg_testset_save_CFLAGS" 13947 13948 eval supported=\$$cacheid 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13950$as_echo "$supported" >&6; } 13951 if test "$supported" = "yes" ; then 13952 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13953 found="yes" 13954 fi 13955 fi 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971xorg_testset_save_CFLAGS="$CFLAGS" 13972 13973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13978 $as_echo_n "(cached) " >&6 13979else 13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13981/* end confdefs.h. */ 13982int i; 13983_ACEOF 13984if ac_fn_c_try_compile "$LINENO"; then : 13985 xorg_cv_cc_flag_unknown_warning_option=yes 13986else 13987 xorg_cv_cc_flag_unknown_warning_option=no 13988fi 13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13994 CFLAGS="$xorg_testset_save_CFLAGS" 13995fi 13996 13997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14000 fi 14001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14005 $as_echo_n "(cached) " >&6 14006else 14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14008/* end confdefs.h. */ 14009int i; 14010_ACEOF 14011if ac_fn_c_try_compile "$LINENO"; then : 14012 xorg_cv_cc_flag_unused_command_line_argument=yes 14013else 14014 xorg_cv_cc_flag_unused_command_line_argument=no 14015fi 14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14017fi 14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14021 CFLAGS="$xorg_testset_save_CFLAGS" 14022fi 14023 14024found="no" 14025 14026 if test $found = "no" ; then 14027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14029 fi 14030 14031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14033 fi 14034 14035 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14036 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14038$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14039 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14040 if eval \${$cacheid+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14044/* end confdefs.h. */ 14045int i; 14046int 14047main () 14048{ 14049 14050 ; 14051 return 0; 14052} 14053_ACEOF 14054if ac_fn_c_try_link "$LINENO"; then : 14055 eval $cacheid=yes 14056else 14057 eval $cacheid=no 14058fi 14059rm -f core conftest.err conftest.$ac_objext \ 14060 conftest$ac_exeext conftest.$ac_ext 14061fi 14062 14063 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065 14066 eval supported=\$$cacheid 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14068$as_echo "$supported" >&6; } 14069 if test "$supported" = "yes" ; then 14070 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14071 found="yes" 14072 fi 14073 fi 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089xorg_testset_save_CFLAGS="$CFLAGS" 14090 14091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101_ACEOF 14102if ac_fn_c_try_compile "$LINENO"; then : 14103 xorg_cv_cc_flag_unknown_warning_option=yes 14104else 14105 xorg_cv_cc_flag_unknown_warning_option=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14112 CFLAGS="$xorg_testset_save_CFLAGS" 14113fi 14114 14115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14118 fi 14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127int i; 14128_ACEOF 14129if ac_fn_c_try_compile "$LINENO"; then : 14130 xorg_cv_cc_flag_unused_command_line_argument=yes 14131else 14132 xorg_cv_cc_flag_unused_command_line_argument=no 14133fi 14134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14135fi 14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14139 CFLAGS="$xorg_testset_save_CFLAGS" 14140fi 14141 14142found="no" 14143 14144 if test $found = "no" ; then 14145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14147 fi 14148 14149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14151 fi 14152 14153 CFLAGS="$CFLAGS -Wredundant-decls" 14154 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14156$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14157 cacheid=xorg_cv_cc_flag__Wredundant_decls 14158 if eval \${$cacheid+:} false; then : 14159 $as_echo_n "(cached) " >&6 14160else 14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163int i; 14164int 14165main () 14166{ 14167 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO"; then : 14173 eval $cacheid=yes 14174else 14175 eval $cacheid=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext \ 14178 conftest$ac_exeext conftest.$ac_ext 14179fi 14180 14181 14182 CFLAGS="$xorg_testset_save_CFLAGS" 14183 14184 eval supported=\$$cacheid 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14186$as_echo "$supported" >&6; } 14187 if test "$supported" = "yes" ; then 14188 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14189 found="yes" 14190 fi 14191 fi 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207xorg_testset_save_CFLAGS="$CFLAGS" 14208 14209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14214 $as_echo_n "(cached) " >&6 14215else 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218int i; 14219_ACEOF 14220if ac_fn_c_try_compile "$LINENO"; then : 14221 xorg_cv_cc_flag_unknown_warning_option=yes 14222else 14223 xorg_cv_cc_flag_unknown_warning_option=no 14224fi 14225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14230 CFLAGS="$xorg_testset_save_CFLAGS" 14231fi 14232 14233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14236 fi 14237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14244/* end confdefs.h. */ 14245int i; 14246_ACEOF 14247if ac_fn_c_try_compile "$LINENO"; then : 14248 xorg_cv_cc_flag_unused_command_line_argument=yes 14249else 14250 xorg_cv_cc_flag_unused_command_line_argument=no 14251fi 14252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14253fi 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14257 CFLAGS="$xorg_testset_save_CFLAGS" 14258fi 14259 14260found="no" 14261 14262 if test $found = "no" ; then 14263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14265 fi 14266 14267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14269 fi 14270 14271 CFLAGS="$CFLAGS -Wlogical-op" 14272 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14274$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14275 cacheid=xorg_cv_cc_flag__Wlogical_op 14276 if eval \${$cacheid+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14280/* end confdefs.h. */ 14281int i; 14282int 14283main () 14284{ 14285 14286 ; 14287 return 0; 14288} 14289_ACEOF 14290if ac_fn_c_try_link "$LINENO"; then : 14291 eval $cacheid=yes 14292else 14293 eval $cacheid=no 14294fi 14295rm -f core conftest.err conftest.$ac_objext \ 14296 conftest$ac_exeext conftest.$ac_ext 14297fi 14298 14299 14300 CFLAGS="$xorg_testset_save_CFLAGS" 14301 14302 eval supported=\$$cacheid 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14304$as_echo "$supported" >&6; } 14305 if test "$supported" = "yes" ; then 14306 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14307 found="yes" 14308 fi 14309 fi 14310 14311 14312 14313# These are currently disabled because they are noisy. They will be enabled 14314# in the future once the codebase is sufficiently modernized to silence 14315# them. For now, I don't want them to drown out the other warnings. 14316# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14317# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14318# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14319 14320# Turn some warnings into errors, so we don't accidently get successful builds 14321# when there are problems that should be fixed. 14322 14323if test "x$SELECTIVE_WERROR" = "xyes" ; then 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337xorg_testset_save_CFLAGS="$CFLAGS" 14338 14339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14344 $as_echo_n "(cached) " >&6 14345else 14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348int i; 14349_ACEOF 14350if ac_fn_c_try_compile "$LINENO"; then : 14351 xorg_cv_cc_flag_unknown_warning_option=yes 14352else 14353 xorg_cv_cc_flag_unknown_warning_option=no 14354fi 14355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14356fi 14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14360 CFLAGS="$xorg_testset_save_CFLAGS" 14361fi 14362 14363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14366 fi 14367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14371 $as_echo_n "(cached) " >&6 14372else 14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14374/* end confdefs.h. */ 14375int i; 14376_ACEOF 14377if ac_fn_c_try_compile "$LINENO"; then : 14378 xorg_cv_cc_flag_unused_command_line_argument=yes 14379else 14380 xorg_cv_cc_flag_unused_command_line_argument=no 14381fi 14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14383fi 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14387 CFLAGS="$xorg_testset_save_CFLAGS" 14388fi 14389 14390found="no" 14391 14392 if test $found = "no" ; then 14393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14395 fi 14396 14397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14399 fi 14400 14401 CFLAGS="$CFLAGS -Werror=implicit" 14402 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14404$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14405 cacheid=xorg_cv_cc_flag__Werror_implicit 14406 if eval \${$cacheid+:} false; then : 14407 $as_echo_n "(cached) " >&6 14408else 14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14410/* end confdefs.h. */ 14411int i; 14412int 14413main () 14414{ 14415 14416 ; 14417 return 0; 14418} 14419_ACEOF 14420if ac_fn_c_try_link "$LINENO"; then : 14421 eval $cacheid=yes 14422else 14423 eval $cacheid=no 14424fi 14425rm -f core conftest.err conftest.$ac_objext \ 14426 conftest$ac_exeext conftest.$ac_ext 14427fi 14428 14429 14430 CFLAGS="$xorg_testset_save_CFLAGS" 14431 14432 eval supported=\$$cacheid 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14434$as_echo "$supported" >&6; } 14435 if test "$supported" = "yes" ; then 14436 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14437 found="yes" 14438 fi 14439 fi 14440 14441 if test $found = "no" ; then 14442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14444 fi 14445 14446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14448 fi 14449 14450 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14453$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14454 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14455 if eval \${$cacheid+:} false; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461int 14462main () 14463{ 14464 14465 ; 14466 return 0; 14467} 14468_ACEOF 14469if ac_fn_c_try_link "$LINENO"; then : 14470 eval $cacheid=yes 14471else 14472 eval $cacheid=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext \ 14475 conftest$ac_exeext conftest.$ac_ext 14476fi 14477 14478 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480 14481 eval supported=\$$cacheid 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14483$as_echo "$supported" >&6; } 14484 if test "$supported" = "yes" ; then 14485 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14486 found="yes" 14487 fi 14488 fi 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504xorg_testset_save_CFLAGS="$CFLAGS" 14505 14506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512else 14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14514/* end confdefs.h. */ 14515int i; 14516_ACEOF 14517if ac_fn_c_try_compile "$LINENO"; then : 14518 xorg_cv_cc_flag_unknown_warning_option=yes 14519else 14520 xorg_cv_cc_flag_unknown_warning_option=no 14521fi 14522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14523fi 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14527 CFLAGS="$xorg_testset_save_CFLAGS" 14528fi 14529 14530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14533 fi 14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542int i; 14543_ACEOF 14544if ac_fn_c_try_compile "$LINENO"; then : 14545 xorg_cv_cc_flag_unused_command_line_argument=yes 14546else 14547 xorg_cv_cc_flag_unused_command_line_argument=no 14548fi 14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14550fi 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14554 CFLAGS="$xorg_testset_save_CFLAGS" 14555fi 14556 14557found="no" 14558 14559 if test $found = "no" ; then 14560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14562 fi 14563 14564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14566 fi 14567 14568 CFLAGS="$CFLAGS -Werror=nonnull" 14569 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14571$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14572 cacheid=xorg_cv_cc_flag__Werror_nonnull 14573 if eval \${$cacheid+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579int 14580main () 14581{ 14582 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587if ac_fn_c_try_link "$LINENO"; then : 14588 eval $cacheid=yes 14589else 14590 eval $cacheid=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext \ 14593 conftest$ac_exeext conftest.$ac_ext 14594fi 14595 14596 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598 14599 eval supported=\$$cacheid 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14601$as_echo "$supported" >&6; } 14602 if test "$supported" = "yes" ; then 14603 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14604 found="yes" 14605 fi 14606 fi 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622xorg_testset_save_CFLAGS="$CFLAGS" 14623 14624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14632/* end confdefs.h. */ 14633int i; 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 xorg_cv_cc_flag_unknown_warning_option=yes 14637else 14638 xorg_cv_cc_flag_unknown_warning_option=no 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14641fi 14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14645 CFLAGS="$xorg_testset_save_CFLAGS" 14646fi 14647 14648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14651 fi 14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661_ACEOF 14662if ac_fn_c_try_compile "$LINENO"; then : 14663 xorg_cv_cc_flag_unused_command_line_argument=yes 14664else 14665 xorg_cv_cc_flag_unused_command_line_argument=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14668fi 14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673fi 14674 14675found="no" 14676 14677 if test $found = "no" ; then 14678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14680 fi 14681 14682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14684 fi 14685 14686 CFLAGS="$CFLAGS -Werror=init-self" 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14689$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14690 cacheid=xorg_cv_cc_flag__Werror_init_self 14691 if eval \${$cacheid+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696int i; 14697int 14698main () 14699{ 14700 14701 ; 14702 return 0; 14703} 14704_ACEOF 14705if ac_fn_c_try_link "$LINENO"; then : 14706 eval $cacheid=yes 14707else 14708 eval $cacheid=no 14709fi 14710rm -f core conftest.err conftest.$ac_objext \ 14711 conftest$ac_exeext conftest.$ac_ext 14712fi 14713 14714 14715 CFLAGS="$xorg_testset_save_CFLAGS" 14716 14717 eval supported=\$$cacheid 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14719$as_echo "$supported" >&6; } 14720 if test "$supported" = "yes" ; then 14721 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14722 found="yes" 14723 fi 14724 fi 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740xorg_testset_save_CFLAGS="$CFLAGS" 14741 14742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14747 $as_echo_n "(cached) " >&6 14748else 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750/* end confdefs.h. */ 14751int i; 14752_ACEOF 14753if ac_fn_c_try_compile "$LINENO"; then : 14754 xorg_cv_cc_flag_unknown_warning_option=yes 14755else 14756 xorg_cv_cc_flag_unknown_warning_option=no 14757fi 14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14759fi 14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14763 CFLAGS="$xorg_testset_save_CFLAGS" 14764fi 14765 14766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14769 fi 14770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778int i; 14779_ACEOF 14780if ac_fn_c_try_compile "$LINENO"; then : 14781 xorg_cv_cc_flag_unused_command_line_argument=yes 14782else 14783 xorg_cv_cc_flag_unused_command_line_argument=no 14784fi 14785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14786fi 14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14790 CFLAGS="$xorg_testset_save_CFLAGS" 14791fi 14792 14793found="no" 14794 14795 if test $found = "no" ; then 14796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14798 fi 14799 14800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14802 fi 14803 14804 CFLAGS="$CFLAGS -Werror=main" 14805 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14807$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14808 cacheid=xorg_cv_cc_flag__Werror_main 14809 if eval \${$cacheid+:} false; then : 14810 $as_echo_n "(cached) " >&6 14811else 14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814int i; 14815int 14816main () 14817{ 14818 14819 ; 14820 return 0; 14821} 14822_ACEOF 14823if ac_fn_c_try_link "$LINENO"; then : 14824 eval $cacheid=yes 14825else 14826 eval $cacheid=no 14827fi 14828rm -f core conftest.err conftest.$ac_objext \ 14829 conftest$ac_exeext conftest.$ac_ext 14830fi 14831 14832 14833 CFLAGS="$xorg_testset_save_CFLAGS" 14834 14835 eval supported=\$$cacheid 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14837$as_echo "$supported" >&6; } 14838 if test "$supported" = "yes" ; then 14839 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14840 found="yes" 14841 fi 14842 fi 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858xorg_testset_save_CFLAGS="$CFLAGS" 14859 14860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14868/* end confdefs.h. */ 14869int i; 14870_ACEOF 14871if ac_fn_c_try_compile "$LINENO"; then : 14872 xorg_cv_cc_flag_unknown_warning_option=yes 14873else 14874 xorg_cv_cc_flag_unknown_warning_option=no 14875fi 14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14877fi 14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14881 CFLAGS="$xorg_testset_save_CFLAGS" 14882fi 14883 14884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14887 fi 14888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14892 $as_echo_n "(cached) " >&6 14893else 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896int i; 14897_ACEOF 14898if ac_fn_c_try_compile "$LINENO"; then : 14899 xorg_cv_cc_flag_unused_command_line_argument=yes 14900else 14901 xorg_cv_cc_flag_unused_command_line_argument=no 14902fi 14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14904fi 14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14908 CFLAGS="$xorg_testset_save_CFLAGS" 14909fi 14910 14911found="no" 14912 14913 if test $found = "no" ; then 14914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14916 fi 14917 14918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14920 fi 14921 14922 CFLAGS="$CFLAGS -Werror=missing-braces" 14923 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14925$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14926 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14927 if eval \${$cacheid+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929else 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932int i; 14933int 14934main () 14935{ 14936 14937 ; 14938 return 0; 14939} 14940_ACEOF 14941if ac_fn_c_try_link "$LINENO"; then : 14942 eval $cacheid=yes 14943else 14944 eval $cacheid=no 14945fi 14946rm -f core conftest.err conftest.$ac_objext \ 14947 conftest$ac_exeext conftest.$ac_ext 14948fi 14949 14950 14951 CFLAGS="$xorg_testset_save_CFLAGS" 14952 14953 eval supported=\$$cacheid 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14955$as_echo "$supported" >&6; } 14956 if test "$supported" = "yes" ; then 14957 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14958 found="yes" 14959 fi 14960 fi 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976xorg_testset_save_CFLAGS="$CFLAGS" 14977 14978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987int i; 14988_ACEOF 14989if ac_fn_c_try_compile "$LINENO"; then : 14990 xorg_cv_cc_flag_unknown_warning_option=yes 14991else 14992 xorg_cv_cc_flag_unknown_warning_option=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14995fi 14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000fi 15001 15002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15005 fi 15006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014int i; 15015_ACEOF 15016if ac_fn_c_try_compile "$LINENO"; then : 15017 xorg_cv_cc_flag_unused_command_line_argument=yes 15018else 15019 xorg_cv_cc_flag_unused_command_line_argument=no 15020fi 15021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15022fi 15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15026 CFLAGS="$xorg_testset_save_CFLAGS" 15027fi 15028 15029found="no" 15030 15031 if test $found = "no" ; then 15032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15034 fi 15035 15036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15038 fi 15039 15040 CFLAGS="$CFLAGS -Werror=sequence-point" 15041 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15043$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15044 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15045 if eval \${$cacheid+:} false; then : 15046 $as_echo_n "(cached) " >&6 15047else 15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15049/* end confdefs.h. */ 15050int i; 15051int 15052main () 15053{ 15054 15055 ; 15056 return 0; 15057} 15058_ACEOF 15059if ac_fn_c_try_link "$LINENO"; then : 15060 eval $cacheid=yes 15061else 15062 eval $cacheid=no 15063fi 15064rm -f core conftest.err conftest.$ac_objext \ 15065 conftest$ac_exeext conftest.$ac_ext 15066fi 15067 15068 15069 CFLAGS="$xorg_testset_save_CFLAGS" 15070 15071 eval supported=\$$cacheid 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15073$as_echo "$supported" >&6; } 15074 if test "$supported" = "yes" ; then 15075 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15076 found="yes" 15077 fi 15078 fi 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094xorg_testset_save_CFLAGS="$CFLAGS" 15095 15096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15101 $as_echo_n "(cached) " >&6 15102else 15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15104/* end confdefs.h. */ 15105int i; 15106_ACEOF 15107if ac_fn_c_try_compile "$LINENO"; then : 15108 xorg_cv_cc_flag_unknown_warning_option=yes 15109else 15110 xorg_cv_cc_flag_unknown_warning_option=no 15111fi 15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15113fi 15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15117 CFLAGS="$xorg_testset_save_CFLAGS" 15118fi 15119 15120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15123 fi 15124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15128 $as_echo_n "(cached) " >&6 15129else 15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15131/* end confdefs.h. */ 15132int i; 15133_ACEOF 15134if ac_fn_c_try_compile "$LINENO"; then : 15135 xorg_cv_cc_flag_unused_command_line_argument=yes 15136else 15137 xorg_cv_cc_flag_unused_command_line_argument=no 15138fi 15139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15140fi 15141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15144 CFLAGS="$xorg_testset_save_CFLAGS" 15145fi 15146 15147found="no" 15148 15149 if test $found = "no" ; then 15150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15152 fi 15153 15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15156 fi 15157 15158 CFLAGS="$CFLAGS -Werror=return-type" 15159 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15161$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15162 cacheid=xorg_cv_cc_flag__Werror_return_type 15163 if eval \${$cacheid+:} false; then : 15164 $as_echo_n "(cached) " >&6 15165else 15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15167/* end confdefs.h. */ 15168int i; 15169int 15170main () 15171{ 15172 15173 ; 15174 return 0; 15175} 15176_ACEOF 15177if ac_fn_c_try_link "$LINENO"; then : 15178 eval $cacheid=yes 15179else 15180 eval $cacheid=no 15181fi 15182rm -f core conftest.err conftest.$ac_objext \ 15183 conftest$ac_exeext conftest.$ac_ext 15184fi 15185 15186 15187 CFLAGS="$xorg_testset_save_CFLAGS" 15188 15189 eval supported=\$$cacheid 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15191$as_echo "$supported" >&6; } 15192 if test "$supported" = "yes" ; then 15193 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15194 found="yes" 15195 fi 15196 fi 15197 15198 if test $found = "no" ; then 15199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15201 fi 15202 15203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15205 fi 15206 15207 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15208 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15210$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15211 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15212 if eval \${$cacheid+:} false; then : 15213 $as_echo_n "(cached) " >&6 15214else 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217int i; 15218int 15219main () 15220{ 15221 15222 ; 15223 return 0; 15224} 15225_ACEOF 15226if ac_fn_c_try_link "$LINENO"; then : 15227 eval $cacheid=yes 15228else 15229 eval $cacheid=no 15230fi 15231rm -f core conftest.err conftest.$ac_objext \ 15232 conftest$ac_exeext conftest.$ac_ext 15233fi 15234 15235 15236 CFLAGS="$xorg_testset_save_CFLAGS" 15237 15238 eval supported=\$$cacheid 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15240$as_echo "$supported" >&6; } 15241 if test "$supported" = "yes" ; then 15242 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15243 found="yes" 15244 fi 15245 fi 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261xorg_testset_save_CFLAGS="$CFLAGS" 15262 15263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15268 $as_echo_n "(cached) " >&6 15269else 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273_ACEOF 15274if ac_fn_c_try_compile "$LINENO"; then : 15275 xorg_cv_cc_flag_unknown_warning_option=yes 15276else 15277 xorg_cv_cc_flag_unknown_warning_option=no 15278fi 15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15280fi 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15284 CFLAGS="$xorg_testset_save_CFLAGS" 15285fi 15286 15287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 fi 15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15295 $as_echo_n "(cached) " >&6 15296else 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299int i; 15300_ACEOF 15301if ac_fn_c_try_compile "$LINENO"; then : 15302 xorg_cv_cc_flag_unused_command_line_argument=yes 15303else 15304 xorg_cv_cc_flag_unused_command_line_argument=no 15305fi 15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15307fi 15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15311 CFLAGS="$xorg_testset_save_CFLAGS" 15312fi 15313 15314found="no" 15315 15316 if test $found = "no" ; then 15317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 fi 15320 15321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15323 fi 15324 15325 CFLAGS="$CFLAGS -Werror=trigraphs" 15326 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15328$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15329 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15330 if eval \${$cacheid+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15334/* end confdefs.h. */ 15335int i; 15336int 15337main () 15338{ 15339 15340 ; 15341 return 0; 15342} 15343_ACEOF 15344if ac_fn_c_try_link "$LINENO"; then : 15345 eval $cacheid=yes 15346else 15347 eval $cacheid=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext \ 15350 conftest$ac_exeext conftest.$ac_ext 15351fi 15352 15353 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355 15356 eval supported=\$$cacheid 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15358$as_echo "$supported" >&6; } 15359 if test "$supported" = "yes" ; then 15360 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15361 found="yes" 15362 fi 15363 fi 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379xorg_testset_save_CFLAGS="$CFLAGS" 15380 15381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387else 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390int i; 15391_ACEOF 15392if ac_fn_c_try_compile "$LINENO"; then : 15393 xorg_cv_cc_flag_unknown_warning_option=yes 15394else 15395 xorg_cv_cc_flag_unknown_warning_option=no 15396fi 15397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15398fi 15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15402 CFLAGS="$xorg_testset_save_CFLAGS" 15403fi 15404 15405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 fi 15409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15413 $as_echo_n "(cached) " >&6 15414else 15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417int i; 15418_ACEOF 15419if ac_fn_c_try_compile "$LINENO"; then : 15420 xorg_cv_cc_flag_unused_command_line_argument=yes 15421else 15422 xorg_cv_cc_flag_unused_command_line_argument=no 15423fi 15424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15425fi 15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15429 CFLAGS="$xorg_testset_save_CFLAGS" 15430fi 15431 15432found="no" 15433 15434 if test $found = "no" ; then 15435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15437 fi 15438 15439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15441 fi 15442 15443 CFLAGS="$CFLAGS -Werror=array-bounds" 15444 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15446$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15447 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15448 if eval \${$cacheid+:} false; then : 15449 $as_echo_n "(cached) " >&6 15450else 15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453int i; 15454int 15455main () 15456{ 15457 15458 ; 15459 return 0; 15460} 15461_ACEOF 15462if ac_fn_c_try_link "$LINENO"; then : 15463 eval $cacheid=yes 15464else 15465 eval $cacheid=no 15466fi 15467rm -f core conftest.err conftest.$ac_objext \ 15468 conftest$ac_exeext conftest.$ac_ext 15469fi 15470 15471 15472 CFLAGS="$xorg_testset_save_CFLAGS" 15473 15474 eval supported=\$$cacheid 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15476$as_echo "$supported" >&6; } 15477 if test "$supported" = "yes" ; then 15478 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15479 found="yes" 15480 fi 15481 fi 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497xorg_testset_save_CFLAGS="$CFLAGS" 15498 15499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508int i; 15509_ACEOF 15510if ac_fn_c_try_compile "$LINENO"; then : 15511 xorg_cv_cc_flag_unknown_warning_option=yes 15512else 15513 xorg_cv_cc_flag_unknown_warning_option=no 15514fi 15515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15516fi 15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15520 CFLAGS="$xorg_testset_save_CFLAGS" 15521fi 15522 15523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15526 fi 15527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535int i; 15536_ACEOF 15537if ac_fn_c_try_compile "$LINENO"; then : 15538 xorg_cv_cc_flag_unused_command_line_argument=yes 15539else 15540 xorg_cv_cc_flag_unused_command_line_argument=no 15541fi 15542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15543fi 15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15547 CFLAGS="$xorg_testset_save_CFLAGS" 15548fi 15549 15550found="no" 15551 15552 if test $found = "no" ; then 15553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15555 fi 15556 15557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15559 fi 15560 15561 CFLAGS="$CFLAGS -Werror=write-strings" 15562 15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15564$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15565 cacheid=xorg_cv_cc_flag__Werror_write_strings 15566 if eval \${$cacheid+:} false; then : 15567 $as_echo_n "(cached) " >&6 15568else 15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15570/* end confdefs.h. */ 15571int i; 15572int 15573main () 15574{ 15575 15576 ; 15577 return 0; 15578} 15579_ACEOF 15580if ac_fn_c_try_link "$LINENO"; then : 15581 eval $cacheid=yes 15582else 15583 eval $cacheid=no 15584fi 15585rm -f core conftest.err conftest.$ac_objext \ 15586 conftest$ac_exeext conftest.$ac_ext 15587fi 15588 15589 15590 CFLAGS="$xorg_testset_save_CFLAGS" 15591 15592 eval supported=\$$cacheid 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15594$as_echo "$supported" >&6; } 15595 if test "$supported" = "yes" ; then 15596 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15597 found="yes" 15598 fi 15599 fi 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615xorg_testset_save_CFLAGS="$CFLAGS" 15616 15617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15622 $as_echo_n "(cached) " >&6 15623else 15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15625/* end confdefs.h. */ 15626int i; 15627_ACEOF 15628if ac_fn_c_try_compile "$LINENO"; then : 15629 xorg_cv_cc_flag_unknown_warning_option=yes 15630else 15631 xorg_cv_cc_flag_unknown_warning_option=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15634fi 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15638 CFLAGS="$xorg_testset_save_CFLAGS" 15639fi 15640 15641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15644 fi 15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654_ACEOF 15655if ac_fn_c_try_compile "$LINENO"; then : 15656 xorg_cv_cc_flag_unused_command_line_argument=yes 15657else 15658 xorg_cv_cc_flag_unused_command_line_argument=no 15659fi 15660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15661fi 15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15665 CFLAGS="$xorg_testset_save_CFLAGS" 15666fi 15667 15668found="no" 15669 15670 if test $found = "no" ; then 15671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15673 fi 15674 15675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15677 fi 15678 15679 CFLAGS="$CFLAGS -Werror=address" 15680 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15682$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15683 cacheid=xorg_cv_cc_flag__Werror_address 15684 if eval \${$cacheid+:} false; then : 15685 $as_echo_n "(cached) " >&6 15686else 15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15688/* end confdefs.h. */ 15689int i; 15690int 15691main () 15692{ 15693 15694 ; 15695 return 0; 15696} 15697_ACEOF 15698if ac_fn_c_try_link "$LINENO"; then : 15699 eval $cacheid=yes 15700else 15701 eval $cacheid=no 15702fi 15703rm -f core conftest.err conftest.$ac_objext \ 15704 conftest$ac_exeext conftest.$ac_ext 15705fi 15706 15707 15708 CFLAGS="$xorg_testset_save_CFLAGS" 15709 15710 eval supported=\$$cacheid 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15712$as_echo "$supported" >&6; } 15713 if test "$supported" = "yes" ; then 15714 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15715 found="yes" 15716 fi 15717 fi 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733xorg_testset_save_CFLAGS="$CFLAGS" 15734 15735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15740 $as_echo_n "(cached) " >&6 15741else 15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15743/* end confdefs.h. */ 15744int i; 15745_ACEOF 15746if ac_fn_c_try_compile "$LINENO"; then : 15747 xorg_cv_cc_flag_unknown_warning_option=yes 15748else 15749 xorg_cv_cc_flag_unknown_warning_option=no 15750fi 15751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15752fi 15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15756 CFLAGS="$xorg_testset_save_CFLAGS" 15757fi 15758 15759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15762 fi 15763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768else 15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15770/* end confdefs.h. */ 15771int i; 15772_ACEOF 15773if ac_fn_c_try_compile "$LINENO"; then : 15774 xorg_cv_cc_flag_unused_command_line_argument=yes 15775else 15776 xorg_cv_cc_flag_unused_command_line_argument=no 15777fi 15778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15779fi 15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15783 CFLAGS="$xorg_testset_save_CFLAGS" 15784fi 15785 15786found="no" 15787 15788 if test $found = "no" ; then 15789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15791 fi 15792 15793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15795 fi 15796 15797 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15798 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15800$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15801 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15802 if eval \${$cacheid+:} false; then : 15803 $as_echo_n "(cached) " >&6 15804else 15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15806/* end confdefs.h. */ 15807int i; 15808int 15809main () 15810{ 15811 15812 ; 15813 return 0; 15814} 15815_ACEOF 15816if ac_fn_c_try_link "$LINENO"; then : 15817 eval $cacheid=yes 15818else 15819 eval $cacheid=no 15820fi 15821rm -f core conftest.err conftest.$ac_objext \ 15822 conftest$ac_exeext conftest.$ac_ext 15823fi 15824 15825 15826 CFLAGS="$xorg_testset_save_CFLAGS" 15827 15828 eval supported=\$$cacheid 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15830$as_echo "$supported" >&6; } 15831 if test "$supported" = "yes" ; then 15832 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15833 found="yes" 15834 fi 15835 fi 15836 15837 if test $found = "no" ; then 15838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15840 fi 15841 15842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15844 fi 15845 15846 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15847 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15849$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15850 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15851 if eval \${$cacheid+:} false; then : 15852 $as_echo_n "(cached) " >&6 15853else 15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15855/* end confdefs.h. */ 15856int i; 15857int 15858main () 15859{ 15860 15861 ; 15862 return 0; 15863} 15864_ACEOF 15865if ac_fn_c_try_link "$LINENO"; then : 15866 eval $cacheid=yes 15867else 15868 eval $cacheid=no 15869fi 15870rm -f core conftest.err conftest.$ac_objext \ 15871 conftest$ac_exeext conftest.$ac_ext 15872fi 15873 15874 15875 CFLAGS="$xorg_testset_save_CFLAGS" 15876 15877 eval supported=\$$cacheid 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15879$as_echo "$supported" >&6; } 15880 if test "$supported" = "yes" ; then 15881 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15882 found="yes" 15883 fi 15884 fi 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900xorg_testset_save_CFLAGS="$CFLAGS" 15901 15902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15907 $as_echo_n "(cached) " >&6 15908else 15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15910/* end confdefs.h. */ 15911int i; 15912_ACEOF 15913if ac_fn_c_try_compile "$LINENO"; then : 15914 xorg_cv_cc_flag_unknown_warning_option=yes 15915else 15916 xorg_cv_cc_flag_unknown_warning_option=no 15917fi 15918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15919fi 15920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15923 CFLAGS="$xorg_testset_save_CFLAGS" 15924fi 15925 15926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15929 fi 15930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15934 $as_echo_n "(cached) " >&6 15935else 15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15937/* end confdefs.h. */ 15938int i; 15939_ACEOF 15940if ac_fn_c_try_compile "$LINENO"; then : 15941 xorg_cv_cc_flag_unused_command_line_argument=yes 15942else 15943 xorg_cv_cc_flag_unused_command_line_argument=no 15944fi 15945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15946fi 15947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15950 CFLAGS="$xorg_testset_save_CFLAGS" 15951fi 15952 15953found="no" 15954 15955 if test $found = "no" ; then 15956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15958 fi 15959 15960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15962 fi 15963 15964 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15965 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15967$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15968 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15969 if eval \${$cacheid+:} false; then : 15970 $as_echo_n "(cached) " >&6 15971else 15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15973/* end confdefs.h. */ 15974int i; 15975int 15976main () 15977{ 15978 15979 ; 15980 return 0; 15981} 15982_ACEOF 15983if ac_fn_c_try_link "$LINENO"; then : 15984 eval $cacheid=yes 15985else 15986 eval $cacheid=no 15987fi 15988rm -f core conftest.err conftest.$ac_objext \ 15989 conftest$ac_exeext conftest.$ac_ext 15990fi 15991 15992 15993 CFLAGS="$xorg_testset_save_CFLAGS" 15994 15995 eval supported=\$$cacheid 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15997$as_echo "$supported" >&6; } 15998 if test "$supported" = "yes" ; then 15999 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16000 found="yes" 16001 fi 16002 fi 16003 16004 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16005else 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 16007$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16028 $as_echo_n "(cached) " >&6 16029else 16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16031/* end confdefs.h. */ 16032int i; 16033_ACEOF 16034if ac_fn_c_try_compile "$LINENO"; then : 16035 xorg_cv_cc_flag_unknown_warning_option=yes 16036else 16037 xorg_cv_cc_flag_unknown_warning_option=no 16038fi 16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16040fi 16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16044 CFLAGS="$xorg_testset_save_CFLAGS" 16045fi 16046 16047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16050 fi 16051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16055 $as_echo_n "(cached) " >&6 16056else 16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16058/* end confdefs.h. */ 16059int i; 16060_ACEOF 16061if ac_fn_c_try_compile "$LINENO"; then : 16062 xorg_cv_cc_flag_unused_command_line_argument=yes 16063else 16064 xorg_cv_cc_flag_unused_command_line_argument=no 16065fi 16066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072fi 16073 16074found="no" 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -Wimplicit" 16086 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16088$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16089 cacheid=xorg_cv_cc_flag__Wimplicit 16090 if eval \${$cacheid+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096int 16097main () 16098{ 16099 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_c_try_link "$LINENO"; then : 16105 eval $cacheid=yes 16106else 16107 eval $cacheid=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext \ 16110 conftest$ac_exeext conftest.$ac_ext 16111fi 16112 16113 16114 CFLAGS="$xorg_testset_save_CFLAGS" 16115 16116 eval supported=\$$cacheid 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16118$as_echo "$supported" >&6; } 16119 if test "$supported" = "yes" ; then 16120 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16121 found="yes" 16122 fi 16123 fi 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139xorg_testset_save_CFLAGS="$CFLAGS" 16140 16141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150int i; 16151_ACEOF 16152if ac_fn_c_try_compile "$LINENO"; then : 16153 xorg_cv_cc_flag_unknown_warning_option=yes 16154else 16155 xorg_cv_cc_flag_unknown_warning_option=no 16156fi 16157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16158fi 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16162 CFLAGS="$xorg_testset_save_CFLAGS" 16163fi 16164 16165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16168 fi 16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16173 $as_echo_n "(cached) " >&6 16174else 16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16176/* end confdefs.h. */ 16177int i; 16178_ACEOF 16179if ac_fn_c_try_compile "$LINENO"; then : 16180 xorg_cv_cc_flag_unused_command_line_argument=yes 16181else 16182 xorg_cv_cc_flag_unused_command_line_argument=no 16183fi 16184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16185fi 16186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16189 CFLAGS="$xorg_testset_save_CFLAGS" 16190fi 16191 16192found="no" 16193 16194 if test $found = "no" ; then 16195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16197 fi 16198 16199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16201 fi 16202 16203 CFLAGS="$CFLAGS -Wnonnull" 16204 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16206$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16207 cacheid=xorg_cv_cc_flag__Wnonnull 16208 if eval \${$cacheid+:} false; then : 16209 $as_echo_n "(cached) " >&6 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214int 16215main () 16216{ 16217 16218 ; 16219 return 0; 16220} 16221_ACEOF 16222if ac_fn_c_try_link "$LINENO"; then : 16223 eval $cacheid=yes 16224else 16225 eval $cacheid=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext \ 16228 conftest$ac_exeext conftest.$ac_ext 16229fi 16230 16231 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233 16234 eval supported=\$$cacheid 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16236$as_echo "$supported" >&6; } 16237 if test "$supported" = "yes" ; then 16238 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16239 found="yes" 16240 fi 16241 fi 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257xorg_testset_save_CFLAGS="$CFLAGS" 16258 16259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16264 $as_echo_n "(cached) " >&6 16265else 16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268int i; 16269_ACEOF 16270if ac_fn_c_try_compile "$LINENO"; then : 16271 xorg_cv_cc_flag_unknown_warning_option=yes 16272else 16273 xorg_cv_cc_flag_unknown_warning_option=no 16274fi 16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16276fi 16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16280 CFLAGS="$xorg_testset_save_CFLAGS" 16281fi 16282 16283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16286 fi 16287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295int i; 16296_ACEOF 16297if ac_fn_c_try_compile "$LINENO"; then : 16298 xorg_cv_cc_flag_unused_command_line_argument=yes 16299else 16300 xorg_cv_cc_flag_unused_command_line_argument=no 16301fi 16302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16303fi 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16307 CFLAGS="$xorg_testset_save_CFLAGS" 16308fi 16309 16310found="no" 16311 16312 if test $found = "no" ; then 16313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16315 fi 16316 16317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16319 fi 16320 16321 CFLAGS="$CFLAGS -Winit-self" 16322 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16324$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16325 cacheid=xorg_cv_cc_flag__Winit_self 16326 if eval \${$cacheid+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332int 16333main () 16334{ 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_link "$LINENO"; then : 16341 eval $cacheid=yes 16342else 16343 eval $cacheid=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext \ 16346 conftest$ac_exeext conftest.$ac_ext 16347fi 16348 16349 16350 CFLAGS="$xorg_testset_save_CFLAGS" 16351 16352 eval supported=\$$cacheid 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16354$as_echo "$supported" >&6; } 16355 if test "$supported" = "yes" ; then 16356 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16357 found="yes" 16358 fi 16359 fi 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375xorg_testset_save_CFLAGS="$CFLAGS" 16376 16377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386int i; 16387_ACEOF 16388if ac_fn_c_try_compile "$LINENO"; then : 16389 xorg_cv_cc_flag_unknown_warning_option=yes 16390else 16391 xorg_cv_cc_flag_unknown_warning_option=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16394fi 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 fi 16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16409 $as_echo_n "(cached) " >&6 16410else 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413int i; 16414_ACEOF 16415if ac_fn_c_try_compile "$LINENO"; then : 16416 xorg_cv_cc_flag_unused_command_line_argument=yes 16417else 16418 xorg_cv_cc_flag_unused_command_line_argument=no 16419fi 16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16421fi 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16425 CFLAGS="$xorg_testset_save_CFLAGS" 16426fi 16427 16428found="no" 16429 16430 if test $found = "no" ; then 16431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16433 fi 16434 16435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16437 fi 16438 16439 CFLAGS="$CFLAGS -Wmain" 16440 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16442$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16443 cacheid=xorg_cv_cc_flag__Wmain 16444 if eval \${$cacheid+:} false; then : 16445 $as_echo_n "(cached) " >&6 16446else 16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449int i; 16450int 16451main () 16452{ 16453 16454 ; 16455 return 0; 16456} 16457_ACEOF 16458if ac_fn_c_try_link "$LINENO"; then : 16459 eval $cacheid=yes 16460else 16461 eval $cacheid=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext conftest.$ac_ext 16465fi 16466 16467 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469 16470 eval supported=\$$cacheid 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16472$as_echo "$supported" >&6; } 16473 if test "$supported" = "yes" ; then 16474 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16475 found="yes" 16476 fi 16477 fi 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493xorg_testset_save_CFLAGS="$CFLAGS" 16494 16495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16500 $as_echo_n "(cached) " >&6 16501else 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505_ACEOF 16506if ac_fn_c_try_compile "$LINENO"; then : 16507 xorg_cv_cc_flag_unknown_warning_option=yes 16508else 16509 xorg_cv_cc_flag_unknown_warning_option=no 16510fi 16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16512fi 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16516 CFLAGS="$xorg_testset_save_CFLAGS" 16517fi 16518 16519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16522 fi 16523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO"; then : 16534 xorg_cv_cc_flag_unused_command_line_argument=yes 16535else 16536 xorg_cv_cc_flag_unused_command_line_argument=no 16537fi 16538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16539fi 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16543 CFLAGS="$xorg_testset_save_CFLAGS" 16544fi 16545 16546found="no" 16547 16548 if test $found = "no" ; then 16549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16551 fi 16552 16553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16555 fi 16556 16557 CFLAGS="$CFLAGS -Wmissing-braces" 16558 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16560$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16561 cacheid=xorg_cv_cc_flag__Wmissing_braces 16562 if eval \${$cacheid+:} false; then : 16563 $as_echo_n "(cached) " >&6 16564else 16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567int i; 16568int 16569main () 16570{ 16571 16572 ; 16573 return 0; 16574} 16575_ACEOF 16576if ac_fn_c_try_link "$LINENO"; then : 16577 eval $cacheid=yes 16578else 16579 eval $cacheid=no 16580fi 16581rm -f core conftest.err conftest.$ac_objext \ 16582 conftest$ac_exeext conftest.$ac_ext 16583fi 16584 16585 16586 CFLAGS="$xorg_testset_save_CFLAGS" 16587 16588 eval supported=\$$cacheid 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16590$as_echo "$supported" >&6; } 16591 if test "$supported" = "yes" ; then 16592 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16593 found="yes" 16594 fi 16595 fi 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611xorg_testset_save_CFLAGS="$CFLAGS" 16612 16613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622int i; 16623_ACEOF 16624if ac_fn_c_try_compile "$LINENO"; then : 16625 xorg_cv_cc_flag_unknown_warning_option=yes 16626else 16627 xorg_cv_cc_flag_unknown_warning_option=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16630fi 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16634 CFLAGS="$xorg_testset_save_CFLAGS" 16635fi 16636 16637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16640 fi 16641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16645 $as_echo_n "(cached) " >&6 16646else 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649int i; 16650_ACEOF 16651if ac_fn_c_try_compile "$LINENO"; then : 16652 xorg_cv_cc_flag_unused_command_line_argument=yes 16653else 16654 xorg_cv_cc_flag_unused_command_line_argument=no 16655fi 16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16657fi 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16661 CFLAGS="$xorg_testset_save_CFLAGS" 16662fi 16663 16664found="no" 16665 16666 if test $found = "no" ; then 16667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16669 fi 16670 16671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16673 fi 16674 16675 CFLAGS="$CFLAGS -Wsequence-point" 16676 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16678$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16679 cacheid=xorg_cv_cc_flag__Wsequence_point 16680 if eval \${$cacheid+:} false; then : 16681 $as_echo_n "(cached) " >&6 16682else 16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16684/* end confdefs.h. */ 16685int i; 16686int 16687main () 16688{ 16689 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_link "$LINENO"; then : 16695 eval $cacheid=yes 16696else 16697 eval $cacheid=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext \ 16700 conftest$ac_exeext conftest.$ac_ext 16701fi 16702 16703 16704 CFLAGS="$xorg_testset_save_CFLAGS" 16705 16706 eval supported=\$$cacheid 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16708$as_echo "$supported" >&6; } 16709 if test "$supported" = "yes" ; then 16710 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16711 found="yes" 16712 fi 16713 fi 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729xorg_testset_save_CFLAGS="$CFLAGS" 16730 16731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741_ACEOF 16742if ac_fn_c_try_compile "$LINENO"; then : 16743 xorg_cv_cc_flag_unknown_warning_option=yes 16744else 16745 xorg_cv_cc_flag_unknown_warning_option=no 16746fi 16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16748fi 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16752 CFLAGS="$xorg_testset_save_CFLAGS" 16753fi 16754 16755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16758 fi 16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768_ACEOF 16769if ac_fn_c_try_compile "$LINENO"; then : 16770 xorg_cv_cc_flag_unused_command_line_argument=yes 16771else 16772 xorg_cv_cc_flag_unused_command_line_argument=no 16773fi 16774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16775fi 16776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16779 CFLAGS="$xorg_testset_save_CFLAGS" 16780fi 16781 16782found="no" 16783 16784 if test $found = "no" ; then 16785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16787 fi 16788 16789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16791 fi 16792 16793 CFLAGS="$CFLAGS -Wreturn-type" 16794 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16796$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16797 cacheid=xorg_cv_cc_flag__Wreturn_type 16798 if eval \${$cacheid+:} false; then : 16799 $as_echo_n "(cached) " >&6 16800else 16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16802/* end confdefs.h. */ 16803int i; 16804int 16805main () 16806{ 16807 16808 ; 16809 return 0; 16810} 16811_ACEOF 16812if ac_fn_c_try_link "$LINENO"; then : 16813 eval $cacheid=yes 16814else 16815 eval $cacheid=no 16816fi 16817rm -f core conftest.err conftest.$ac_objext \ 16818 conftest$ac_exeext conftest.$ac_ext 16819fi 16820 16821 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823 16824 eval supported=\$$cacheid 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16826$as_echo "$supported" >&6; } 16827 if test "$supported" = "yes" ; then 16828 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16829 found="yes" 16830 fi 16831 fi 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847xorg_testset_save_CFLAGS="$CFLAGS" 16848 16849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16854 $as_echo_n "(cached) " >&6 16855else 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858int i; 16859_ACEOF 16860if ac_fn_c_try_compile "$LINENO"; then : 16861 xorg_cv_cc_flag_unknown_warning_option=yes 16862else 16863 xorg_cv_cc_flag_unknown_warning_option=no 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871fi 16872 16873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16876 fi 16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885int i; 16886_ACEOF 16887if ac_fn_c_try_compile "$LINENO"; then : 16888 xorg_cv_cc_flag_unused_command_line_argument=yes 16889else 16890 xorg_cv_cc_flag_unused_command_line_argument=no 16891fi 16892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16893fi 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898fi 16899 16900found="no" 16901 16902 if test $found = "no" ; then 16903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16905 fi 16906 16907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16909 fi 16910 16911 CFLAGS="$CFLAGS -Wtrigraphs" 16912 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16914$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16915 cacheid=xorg_cv_cc_flag__Wtrigraphs 16916 if eval \${$cacheid+:} false; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922int 16923main () 16924{ 16925 16926 ; 16927 return 0; 16928} 16929_ACEOF 16930if ac_fn_c_try_link "$LINENO"; then : 16931 eval $cacheid=yes 16932else 16933 eval $cacheid=no 16934fi 16935rm -f core conftest.err conftest.$ac_objext \ 16936 conftest$ac_exeext conftest.$ac_ext 16937fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944$as_echo "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16947 found="yes" 16948 fi 16949 fi 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965xorg_testset_save_CFLAGS="$CFLAGS" 16966 16967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16972 $as_echo_n "(cached) " >&6 16973else 16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16975/* end confdefs.h. */ 16976int i; 16977_ACEOF 16978if ac_fn_c_try_compile "$LINENO"; then : 16979 xorg_cv_cc_flag_unknown_warning_option=yes 16980else 16981 xorg_cv_cc_flag_unknown_warning_option=no 16982fi 16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16988 CFLAGS="$xorg_testset_save_CFLAGS" 16989fi 16990 16991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 fi 16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004_ACEOF 17005if ac_fn_c_try_compile "$LINENO"; then : 17006 xorg_cv_cc_flag_unused_command_line_argument=yes 17007else 17008 xorg_cv_cc_flag_unused_command_line_argument=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17011fi 17012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018found="no" 17019 17020 if test $found = "no" ; then 17021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17023 fi 17024 17025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 fi 17028 17029 CFLAGS="$CFLAGS -Warray-bounds" 17030 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17032$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17033 cacheid=xorg_cv_cc_flag__Warray_bounds 17034 if eval \${$cacheid+:} false; then : 17035 $as_echo_n "(cached) " >&6 17036else 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039int i; 17040int 17041main () 17042{ 17043 17044 ; 17045 return 0; 17046} 17047_ACEOF 17048if ac_fn_c_try_link "$LINENO"; then : 17049 eval $cacheid=yes 17050else 17051 eval $cacheid=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext \ 17054 conftest$ac_exeext conftest.$ac_ext 17055fi 17056 17057 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059 17060 eval supported=\$$cacheid 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17062$as_echo "$supported" >&6; } 17063 if test "$supported" = "yes" ; then 17064 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17065 found="yes" 17066 fi 17067 fi 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083xorg_testset_save_CFLAGS="$CFLAGS" 17084 17085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17090 $as_echo_n "(cached) " >&6 17091else 17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17093/* end confdefs.h. */ 17094int i; 17095_ACEOF 17096if ac_fn_c_try_compile "$LINENO"; then : 17097 xorg_cv_cc_flag_unknown_warning_option=yes 17098else 17099 xorg_cv_cc_flag_unknown_warning_option=no 17100fi 17101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17102fi 17103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17106 CFLAGS="$xorg_testset_save_CFLAGS" 17107fi 17108 17109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17112 fi 17113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17117 $as_echo_n "(cached) " >&6 17118else 17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17120/* end confdefs.h. */ 17121int i; 17122_ACEOF 17123if ac_fn_c_try_compile "$LINENO"; then : 17124 xorg_cv_cc_flag_unused_command_line_argument=yes 17125else 17126 xorg_cv_cc_flag_unused_command_line_argument=no 17127fi 17128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17129fi 17130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17133 CFLAGS="$xorg_testset_save_CFLAGS" 17134fi 17135 17136found="no" 17137 17138 if test $found = "no" ; then 17139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17141 fi 17142 17143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17145 fi 17146 17147 CFLAGS="$CFLAGS -Wwrite-strings" 17148 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17150$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17151 cacheid=xorg_cv_cc_flag__Wwrite_strings 17152 if eval \${$cacheid+:} false; then : 17153 $as_echo_n "(cached) " >&6 17154else 17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156/* end confdefs.h. */ 17157int i; 17158int 17159main () 17160{ 17161 17162 ; 17163 return 0; 17164} 17165_ACEOF 17166if ac_fn_c_try_link "$LINENO"; then : 17167 eval $cacheid=yes 17168else 17169 eval $cacheid=no 17170fi 17171rm -f core conftest.err conftest.$ac_objext \ 17172 conftest$ac_exeext conftest.$ac_ext 17173fi 17174 17175 17176 CFLAGS="$xorg_testset_save_CFLAGS" 17177 17178 eval supported=\$$cacheid 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17180$as_echo "$supported" >&6; } 17181 if test "$supported" = "yes" ; then 17182 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17183 found="yes" 17184 fi 17185 fi 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201xorg_testset_save_CFLAGS="$CFLAGS" 17202 17203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211/* end confdefs.h. */ 17212int i; 17213_ACEOF 17214if ac_fn_c_try_compile "$LINENO"; then : 17215 xorg_cv_cc_flag_unknown_warning_option=yes 17216else 17217 xorg_cv_cc_flag_unknown_warning_option=no 17218fi 17219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17220fi 17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17224 CFLAGS="$xorg_testset_save_CFLAGS" 17225fi 17226 17227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17230 fi 17231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17235 $as_echo_n "(cached) " >&6 17236else 17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17238/* end confdefs.h. */ 17239int i; 17240_ACEOF 17241if ac_fn_c_try_compile "$LINENO"; then : 17242 xorg_cv_cc_flag_unused_command_line_argument=yes 17243else 17244 xorg_cv_cc_flag_unused_command_line_argument=no 17245fi 17246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17247fi 17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17251 CFLAGS="$xorg_testset_save_CFLAGS" 17252fi 17253 17254found="no" 17255 17256 if test $found = "no" ; then 17257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17259 fi 17260 17261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17263 fi 17264 17265 CFLAGS="$CFLAGS -Waddress" 17266 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17268$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17269 cacheid=xorg_cv_cc_flag__Waddress 17270 if eval \${$cacheid+:} false; then : 17271 $as_echo_n "(cached) " >&6 17272else 17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17274/* end confdefs.h. */ 17275int i; 17276int 17277main () 17278{ 17279 17280 ; 17281 return 0; 17282} 17283_ACEOF 17284if ac_fn_c_try_link "$LINENO"; then : 17285 eval $cacheid=yes 17286else 17287 eval $cacheid=no 17288fi 17289rm -f core conftest.err conftest.$ac_objext \ 17290 conftest$ac_exeext conftest.$ac_ext 17291fi 17292 17293 17294 CFLAGS="$xorg_testset_save_CFLAGS" 17295 17296 eval supported=\$$cacheid 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17298$as_echo "$supported" >&6; } 17299 if test "$supported" = "yes" ; then 17300 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17301 found="yes" 17302 fi 17303 fi 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319xorg_testset_save_CFLAGS="$CFLAGS" 17320 17321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17326 $as_echo_n "(cached) " >&6 17327else 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330int i; 17331_ACEOF 17332if ac_fn_c_try_compile "$LINENO"; then : 17333 xorg_cv_cc_flag_unknown_warning_option=yes 17334else 17335 xorg_cv_cc_flag_unknown_warning_option=no 17336fi 17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17338fi 17339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17342 CFLAGS="$xorg_testset_save_CFLAGS" 17343fi 17344 17345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17348 fi 17349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358_ACEOF 17359if ac_fn_c_try_compile "$LINENO"; then : 17360 xorg_cv_cc_flag_unused_command_line_argument=yes 17361else 17362 xorg_cv_cc_flag_unused_command_line_argument=no 17363fi 17364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17365fi 17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17369 CFLAGS="$xorg_testset_save_CFLAGS" 17370fi 17371 17372found="no" 17373 17374 if test $found = "no" ; then 17375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17377 fi 17378 17379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17381 fi 17382 17383 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17384 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17386$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17387 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17388 if eval \${$cacheid+:} false; then : 17389 $as_echo_n "(cached) " >&6 17390else 17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17392/* end confdefs.h. */ 17393int i; 17394int 17395main () 17396{ 17397 17398 ; 17399 return 0; 17400} 17401_ACEOF 17402if ac_fn_c_try_link "$LINENO"; then : 17403 eval $cacheid=yes 17404else 17405 eval $cacheid=no 17406fi 17407rm -f core conftest.err conftest.$ac_objext \ 17408 conftest$ac_exeext conftest.$ac_ext 17409fi 17410 17411 17412 CFLAGS="$xorg_testset_save_CFLAGS" 17413 17414 eval supported=\$$cacheid 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17416$as_echo "$supported" >&6; } 17417 if test "$supported" = "yes" ; then 17418 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17419 found="yes" 17420 fi 17421 fi 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437xorg_testset_save_CFLAGS="$CFLAGS" 17438 17439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17444 $as_echo_n "(cached) " >&6 17445else 17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448int i; 17449_ACEOF 17450if ac_fn_c_try_compile "$LINENO"; then : 17451 xorg_cv_cc_flag_unknown_warning_option=yes 17452else 17453 xorg_cv_cc_flag_unknown_warning_option=no 17454fi 17455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17456fi 17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17460 CFLAGS="$xorg_testset_save_CFLAGS" 17461fi 17462 17463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17466 fi 17467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17471 $as_echo_n "(cached) " >&6 17472else 17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475int i; 17476_ACEOF 17477if ac_fn_c_try_compile "$LINENO"; then : 17478 xorg_cv_cc_flag_unused_command_line_argument=yes 17479else 17480 xorg_cv_cc_flag_unused_command_line_argument=no 17481fi 17482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17483fi 17484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17487 CFLAGS="$xorg_testset_save_CFLAGS" 17488fi 17489 17490found="no" 17491 17492 if test $found = "no" ; then 17493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17495 fi 17496 17497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17499 fi 17500 17501 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17502 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17504$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17505 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17506 if eval \${$cacheid+:} false; then : 17507 $as_echo_n "(cached) " >&6 17508else 17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17510/* end confdefs.h. */ 17511int i; 17512int 17513main () 17514{ 17515 17516 ; 17517 return 0; 17518} 17519_ACEOF 17520if ac_fn_c_try_link "$LINENO"; then : 17521 eval $cacheid=yes 17522else 17523 eval $cacheid=no 17524fi 17525rm -f core conftest.err conftest.$ac_objext \ 17526 conftest$ac_exeext conftest.$ac_ext 17527fi 17528 17529 17530 CFLAGS="$xorg_testset_save_CFLAGS" 17531 17532 eval supported=\$$cacheid 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17534$as_echo "$supported" >&6; } 17535 if test "$supported" = "yes" ; then 17536 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17537 found="yes" 17538 fi 17539 fi 17540 17541 17542fi 17543 17544 17545 17546 17547 17548 17549 17550 CWARNFLAGS="$BASE_CFLAGS" 17551 if test "x$GCC" = xyes ; then 17552 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17553 fi 17554 17555 17556 17557 17558 17559 17560 17561 17562# Check whether --enable-strict-compilation was given. 17563if test "${enable_strict_compilation+set}" = set; then : 17564 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17565else 17566 STRICT_COMPILE=no 17567fi 17568 17569 17570 17571 17572 17573 17574STRICT_CFLAGS="" 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588xorg_testset_save_CFLAGS="$CFLAGS" 17589 17590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17595 $as_echo_n "(cached) " >&6 17596else 17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17598/* end confdefs.h. */ 17599int i; 17600_ACEOF 17601if ac_fn_c_try_compile "$LINENO"; then : 17602 xorg_cv_cc_flag_unknown_warning_option=yes 17603else 17604 xorg_cv_cc_flag_unknown_warning_option=no 17605fi 17606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17607fi 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17611 CFLAGS="$xorg_testset_save_CFLAGS" 17612fi 17613 17614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17617 fi 17618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17622 $as_echo_n "(cached) " >&6 17623else 17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17625/* end confdefs.h. */ 17626int i; 17627_ACEOF 17628if ac_fn_c_try_compile "$LINENO"; then : 17629 xorg_cv_cc_flag_unused_command_line_argument=yes 17630else 17631 xorg_cv_cc_flag_unused_command_line_argument=no 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17634fi 17635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17638 CFLAGS="$xorg_testset_save_CFLAGS" 17639fi 17640 17641found="no" 17642 17643 if test $found = "no" ; then 17644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17646 fi 17647 17648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17650 fi 17651 17652 CFLAGS="$CFLAGS -pedantic" 17653 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17655$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17656 cacheid=xorg_cv_cc_flag__pedantic 17657 if eval \${$cacheid+:} false; then : 17658 $as_echo_n "(cached) " >&6 17659else 17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661/* end confdefs.h. */ 17662int i; 17663int 17664main () 17665{ 17666 17667 ; 17668 return 0; 17669} 17670_ACEOF 17671if ac_fn_c_try_link "$LINENO"; then : 17672 eval $cacheid=yes 17673else 17674 eval $cacheid=no 17675fi 17676rm -f core conftest.err conftest.$ac_objext \ 17677 conftest$ac_exeext conftest.$ac_ext 17678fi 17679 17680 17681 CFLAGS="$xorg_testset_save_CFLAGS" 17682 17683 eval supported=\$$cacheid 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17685$as_echo "$supported" >&6; } 17686 if test "$supported" = "yes" ; then 17687 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17688 found="yes" 17689 fi 17690 fi 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706xorg_testset_save_CFLAGS="$CFLAGS" 17707 17708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17713 $as_echo_n "(cached) " >&6 17714else 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717int i; 17718_ACEOF 17719if ac_fn_c_try_compile "$LINENO"; then : 17720 xorg_cv_cc_flag_unknown_warning_option=yes 17721else 17722 xorg_cv_cc_flag_unknown_warning_option=no 17723fi 17724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17725fi 17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17729 CFLAGS="$xorg_testset_save_CFLAGS" 17730fi 17731 17732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17735 fi 17736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17740 $as_echo_n "(cached) " >&6 17741else 17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17743/* end confdefs.h. */ 17744int i; 17745_ACEOF 17746if ac_fn_c_try_compile "$LINENO"; then : 17747 xorg_cv_cc_flag_unused_command_line_argument=yes 17748else 17749 xorg_cv_cc_flag_unused_command_line_argument=no 17750fi 17751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17752fi 17753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17756 CFLAGS="$xorg_testset_save_CFLAGS" 17757fi 17758 17759found="no" 17760 17761 if test $found = "no" ; then 17762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17764 fi 17765 17766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17768 fi 17769 17770 CFLAGS="$CFLAGS -Werror" 17771 17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17773$as_echo_n "checking if $CC supports -Werror... " >&6; } 17774 cacheid=xorg_cv_cc_flag__Werror 17775 if eval \${$cacheid+:} false; then : 17776 $as_echo_n "(cached) " >&6 17777else 17778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17779/* end confdefs.h. */ 17780int i; 17781int 17782main () 17783{ 17784 17785 ; 17786 return 0; 17787} 17788_ACEOF 17789if ac_fn_c_try_link "$LINENO"; then : 17790 eval $cacheid=yes 17791else 17792 eval $cacheid=no 17793fi 17794rm -f core conftest.err conftest.$ac_objext \ 17795 conftest$ac_exeext conftest.$ac_ext 17796fi 17797 17798 17799 CFLAGS="$xorg_testset_save_CFLAGS" 17800 17801 eval supported=\$$cacheid 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17803$as_echo "$supported" >&6; } 17804 if test "$supported" = "yes" ; then 17805 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17806 found="yes" 17807 fi 17808 fi 17809 17810 if test $found = "no" ; then 17811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17813 fi 17814 17815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17817 fi 17818 17819 CFLAGS="$CFLAGS -errwarn" 17820 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17822$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17823 cacheid=xorg_cv_cc_flag__errwarn 17824 if eval \${$cacheid+:} false; then : 17825 $as_echo_n "(cached) " >&6 17826else 17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17828/* end confdefs.h. */ 17829int i; 17830int 17831main () 17832{ 17833 17834 ; 17835 return 0; 17836} 17837_ACEOF 17838if ac_fn_c_try_link "$LINENO"; then : 17839 eval $cacheid=yes 17840else 17841 eval $cacheid=no 17842fi 17843rm -f core conftest.err conftest.$ac_objext \ 17844 conftest$ac_exeext conftest.$ac_ext 17845fi 17846 17847 17848 CFLAGS="$xorg_testset_save_CFLAGS" 17849 17850 eval supported=\$$cacheid 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17852$as_echo "$supported" >&6; } 17853 if test "$supported" = "yes" ; then 17854 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17855 found="yes" 17856 fi 17857 fi 17858 17859 17860 17861# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17862# activate it with -Werror, so we add it here explicitly. 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876xorg_testset_save_CFLAGS="$CFLAGS" 17877 17878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17883 $as_echo_n "(cached) " >&6 17884else 17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17886/* end confdefs.h. */ 17887int i; 17888_ACEOF 17889if ac_fn_c_try_compile "$LINENO"; then : 17890 xorg_cv_cc_flag_unknown_warning_option=yes 17891else 17892 xorg_cv_cc_flag_unknown_warning_option=no 17893fi 17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17895fi 17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17899 CFLAGS="$xorg_testset_save_CFLAGS" 17900fi 17901 17902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17905 fi 17906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17910 $as_echo_n "(cached) " >&6 17911else 17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17913/* end confdefs.h. */ 17914int i; 17915_ACEOF 17916if ac_fn_c_try_compile "$LINENO"; then : 17917 xorg_cv_cc_flag_unused_command_line_argument=yes 17918else 17919 xorg_cv_cc_flag_unused_command_line_argument=no 17920fi 17921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17922fi 17923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17926 CFLAGS="$xorg_testset_save_CFLAGS" 17927fi 17928 17929found="no" 17930 17931 if test $found = "no" ; then 17932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17934 fi 17935 17936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17938 fi 17939 17940 CFLAGS="$CFLAGS -Werror=attributes" 17941 17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17943$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17944 cacheid=xorg_cv_cc_flag__Werror_attributes 17945 if eval \${$cacheid+:} false; then : 17946 $as_echo_n "(cached) " >&6 17947else 17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17949/* end confdefs.h. */ 17950int i; 17951int 17952main () 17953{ 17954 17955 ; 17956 return 0; 17957} 17958_ACEOF 17959if ac_fn_c_try_link "$LINENO"; then : 17960 eval $cacheid=yes 17961else 17962 eval $cacheid=no 17963fi 17964rm -f core conftest.err conftest.$ac_objext \ 17965 conftest$ac_exeext conftest.$ac_ext 17966fi 17967 17968 17969 CFLAGS="$xorg_testset_save_CFLAGS" 17970 17971 eval supported=\$$cacheid 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17973$as_echo "$supported" >&6; } 17974 if test "$supported" = "yes" ; then 17975 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17976 found="yes" 17977 fi 17978 fi 17979 17980 17981 17982if test "x$STRICT_COMPILE" = "xyes"; then 17983 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17984 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17985fi 17986 17987 17988 17989 17990 17991 17992cat >>confdefs.h <<_ACEOF 17993#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17994_ACEOF 17995 17996 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17997 if test "x$PVM" = "x"; then 17998 PVM="0" 17999 fi 18000 18001cat >>confdefs.h <<_ACEOF 18002#define PACKAGE_VERSION_MINOR $PVM 18003_ACEOF 18004 18005 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18006 if test "x$PVP" = "x"; then 18007 PVP="0" 18008 fi 18009 18010cat >>confdefs.h <<_ACEOF 18011#define PACKAGE_VERSION_PATCHLEVEL $PVP 18012_ACEOF 18013 18014 18015 18016CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18017mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18018|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18019echo 'git directory not found: installing possibly empty changelog.' >&2)" 18020 18021 18022 18023 18024macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18025INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18026mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18027|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18028echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18029 18030 18031 18032 18033 18034 18035if test x$APP_MAN_SUFFIX = x ; then 18036 APP_MAN_SUFFIX=1 18037fi 18038if test x$APP_MAN_DIR = x ; then 18039 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18040fi 18041 18042if test x$LIB_MAN_SUFFIX = x ; then 18043 LIB_MAN_SUFFIX=3 18044fi 18045if test x$LIB_MAN_DIR = x ; then 18046 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18047fi 18048 18049if test x$FILE_MAN_SUFFIX = x ; then 18050 case $host_os in 18051 solaris*) FILE_MAN_SUFFIX=4 ;; 18052 *) FILE_MAN_SUFFIX=5 ;; 18053 esac 18054fi 18055if test x$FILE_MAN_DIR = x ; then 18056 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18057fi 18058 18059if test x$MISC_MAN_SUFFIX = x ; then 18060 case $host_os in 18061 solaris*) MISC_MAN_SUFFIX=5 ;; 18062 *) MISC_MAN_SUFFIX=7 ;; 18063 esac 18064fi 18065if test x$MISC_MAN_DIR = x ; then 18066 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18067fi 18068 18069if test x$DRIVER_MAN_SUFFIX = x ; then 18070 case $host_os in 18071 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18072 *) DRIVER_MAN_SUFFIX=4 ;; 18073 esac 18074fi 18075if test x$DRIVER_MAN_DIR = x ; then 18076 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18077fi 18078 18079if test x$ADMIN_MAN_SUFFIX = x ; then 18080 case $host_os in 18081 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18082 *) ADMIN_MAN_SUFFIX=8 ;; 18083 esac 18084fi 18085if test x$ADMIN_MAN_DIR = x ; then 18086 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18087fi 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103XORG_MAN_PAGE="X Version 11" 18104 18105MAN_SUBSTS="\ 18106 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18107 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18108 -e 's|__xservername__|Xorg|g' \ 18109 -e 's|__xconfigfile__|xorg.conf|g' \ 18110 -e 's|__projectroot__|\$(prefix)|g' \ 18111 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18112 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18113 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18114 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18115 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18116 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18117 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18118 18119 18120 18121# Check whether --enable-silent-rules was given. 18122if test "${enable_silent_rules+set}" = set; then : 18123 enableval=$enable_silent_rules; 18124fi 18125 18126case $enable_silent_rules in # ((( 18127 yes) AM_DEFAULT_VERBOSITY=0;; 18128 no) AM_DEFAULT_VERBOSITY=1;; 18129 *) AM_DEFAULT_VERBOSITY=0;; 18130esac 18131am_make=${MAKE-make} 18132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18133$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18134if ${am_cv_make_support_nested_variables+:} false; then : 18135 $as_echo_n "(cached) " >&6 18136else 18137 if $as_echo 'TRUE=$(BAR$(V)) 18138BAR0=false 18139BAR1=true 18140V=1 18141am__doit: 18142 @$(TRUE) 18143.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18144 am_cv_make_support_nested_variables=yes 18145else 18146 am_cv_make_support_nested_variables=no 18147fi 18148fi 18149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18150$as_echo "$am_cv_make_support_nested_variables" >&6; } 18151if test $am_cv_make_support_nested_variables = yes; then 18152 AM_V='$(V)' 18153 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18154else 18155 AM_V=$AM_DEFAULT_VERBOSITY 18156 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18157fi 18158AM_BACKSLASH='\' 18159 18160 18161 18162 18163# Check whether --enable-devel-docs was given. 18164if test "${enable_devel_docs+set}" = set; then : 18165 enableval=$enable_devel_docs; build_devel_docs=$enableval 18166else 18167 build_devel_docs=yes 18168fi 18169 18170 18171 if test x$build_devel_docs = xyes; then 18172 ENABLE_DEVEL_DOCS_TRUE= 18173 ENABLE_DEVEL_DOCS_FALSE='#' 18174else 18175 ENABLE_DEVEL_DOCS_TRUE='#' 18176 ENABLE_DEVEL_DOCS_FALSE= 18177fi 18178 18179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 18180$as_echo_n "checking whether to build developer documentation... " >&6; } 18181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 18182$as_echo "$build_devel_docs" >&6; } 18183 18184 18185 18186 18187 18188# Check whether --with-xmlto was given. 18189if test "${with_xmlto+set}" = set; then : 18190 withval=$with_xmlto; use_xmlto=$withval 18191else 18192 use_xmlto=auto 18193fi 18194 18195 18196 18197if test "x$use_xmlto" = x"auto"; then 18198 # Extract the first word of "xmlto", so it can be a program name with args. 18199set dummy xmlto; ac_word=$2 18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18201$as_echo_n "checking for $ac_word... " >&6; } 18202if ${ac_cv_path_XMLTO+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204else 18205 case $XMLTO in 18206 [\\/]* | ?:[\\/]*) 18207 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18208 ;; 18209 *) 18210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18211for as_dir in $PATH 18212do 18213 IFS=$as_save_IFS 18214 test -z "$as_dir" && as_dir=. 18215 for ac_exec_ext in '' $ac_executable_extensions; do 18216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18217 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18219 break 2 18220 fi 18221done 18222 done 18223IFS=$as_save_IFS 18224 18225 ;; 18226esac 18227fi 18228XMLTO=$ac_cv_path_XMLTO 18229if test -n "$XMLTO"; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18231$as_echo "$XMLTO" >&6; } 18232else 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18234$as_echo "no" >&6; } 18235fi 18236 18237 18238 if test "x$XMLTO" = "x"; then 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18240$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18241 have_xmlto=no 18242 else 18243 have_xmlto=yes 18244 fi 18245elif test "x$use_xmlto" = x"yes" ; then 18246 # Extract the first word of "xmlto", so it can be a program name with args. 18247set dummy xmlto; ac_word=$2 18248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18249$as_echo_n "checking for $ac_word... " >&6; } 18250if ${ac_cv_path_XMLTO+:} false; then : 18251 $as_echo_n "(cached) " >&6 18252else 18253 case $XMLTO in 18254 [\\/]* | ?:[\\/]*) 18255 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18256 ;; 18257 *) 18258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18259for as_dir in $PATH 18260do 18261 IFS=$as_save_IFS 18262 test -z "$as_dir" && as_dir=. 18263 for ac_exec_ext in '' $ac_executable_extensions; do 18264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18265 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18267 break 2 18268 fi 18269done 18270 done 18271IFS=$as_save_IFS 18272 18273 ;; 18274esac 18275fi 18276XMLTO=$ac_cv_path_XMLTO 18277if test -n "$XMLTO"; then 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18279$as_echo "$XMLTO" >&6; } 18280else 18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18282$as_echo "no" >&6; } 18283fi 18284 18285 18286 if test "x$XMLTO" = "x"; then 18287 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18288 fi 18289 have_xmlto=yes 18290elif test "x$use_xmlto" = x"no" ; then 18291 if test "x$XMLTO" != "x"; then 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18293$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18294 fi 18295 have_xmlto=no 18296else 18297 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18298fi 18299 18300# Test for a minimum version of xmlto, if provided. 18301if test "$have_xmlto" = yes; then 18302 # scrape the xmlto version 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18304$as_echo_n "checking the xmlto version... " >&6; } 18305 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18307$as_echo "$xmlto_version" >&6; } 18308 as_arg_v1=$xmlto_version 18309as_arg_v2=0.0.22 18310awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18311case $? in #( 18312 1) : 18313 if test "x$use_xmlto" = xauto; then 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18315$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18316 have_xmlto=no 18317 else 18318 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18319 fi ;; #( 18320 0) : 18321 ;; #( 18322 2) : 18323 ;; #( 18324 *) : 18325 ;; 18326esac 18327fi 18328 18329# Test for the ability of xmlto to generate a text target 18330have_xmlto_text=no 18331cat > conftest.xml << "EOF" 18332EOF 18333if test "$have_xmlto" = yes; then : 18334 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18335 have_xmlto_text=yes 18336else 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18338$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18339fi 18340fi 18341rm -f conftest.xml 18342 if test $have_xmlto_text = yes; then 18343 HAVE_XMLTO_TEXT_TRUE= 18344 HAVE_XMLTO_TEXT_FALSE='#' 18345else 18346 HAVE_XMLTO_TEXT_TRUE='#' 18347 HAVE_XMLTO_TEXT_FALSE= 18348fi 18349 18350 if test "$have_xmlto" = yes; then 18351 HAVE_XMLTO_TRUE= 18352 HAVE_XMLTO_FALSE='#' 18353else 18354 HAVE_XMLTO_TRUE='#' 18355 HAVE_XMLTO_FALSE= 18356fi 18357 18358 18359 18360 18361 18362 18363# Check whether --with-fop was given. 18364if test "${with_fop+set}" = set; then : 18365 withval=$with_fop; use_fop=$withval 18366else 18367 use_fop=auto 18368fi 18369 18370 18371 18372if test "x$use_fop" = x"auto"; then 18373 # Extract the first word of "fop", so it can be a program name with args. 18374set dummy fop; ac_word=$2 18375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18376$as_echo_n "checking for $ac_word... " >&6; } 18377if ${ac_cv_path_FOP+:} false; then : 18378 $as_echo_n "(cached) " >&6 18379else 18380 case $FOP in 18381 [\\/]* | ?:[\\/]*) 18382 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18383 ;; 18384 *) 18385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18386for as_dir in $PATH 18387do 18388 IFS=$as_save_IFS 18389 test -z "$as_dir" && as_dir=. 18390 for ac_exec_ext in '' $ac_executable_extensions; do 18391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18392 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18394 break 2 18395 fi 18396done 18397 done 18398IFS=$as_save_IFS 18399 18400 ;; 18401esac 18402fi 18403FOP=$ac_cv_path_FOP 18404if test -n "$FOP"; then 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18406$as_echo "$FOP" >&6; } 18407else 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18409$as_echo "no" >&6; } 18410fi 18411 18412 18413 if test "x$FOP" = "x"; then 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18415$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18416 have_fop=no 18417 else 18418 have_fop=yes 18419 fi 18420elif test "x$use_fop" = x"yes" ; then 18421 # Extract the first word of "fop", so it can be a program name with args. 18422set dummy fop; ac_word=$2 18423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18424$as_echo_n "checking for $ac_word... " >&6; } 18425if ${ac_cv_path_FOP+:} false; then : 18426 $as_echo_n "(cached) " >&6 18427else 18428 case $FOP in 18429 [\\/]* | ?:[\\/]*) 18430 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18431 ;; 18432 *) 18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18434for as_dir in $PATH 18435do 18436 IFS=$as_save_IFS 18437 test -z "$as_dir" && as_dir=. 18438 for ac_exec_ext in '' $ac_executable_extensions; do 18439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18440 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18442 break 2 18443 fi 18444done 18445 done 18446IFS=$as_save_IFS 18447 18448 ;; 18449esac 18450fi 18451FOP=$ac_cv_path_FOP 18452if test -n "$FOP"; then 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18454$as_echo "$FOP" >&6; } 18455else 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18457$as_echo "no" >&6; } 18458fi 18459 18460 18461 if test "x$FOP" = "x"; then 18462 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18463 fi 18464 have_fop=yes 18465elif test "x$use_fop" = x"no" ; then 18466 if test "x$FOP" != "x"; then 18467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18468$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18469 fi 18470 have_fop=no 18471else 18472 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18473fi 18474 18475# Test for a minimum version of fop, if provided. 18476 18477 if test "$have_fop" = yes; then 18478 HAVE_FOP_TRUE= 18479 HAVE_FOP_FALSE='#' 18480else 18481 HAVE_FOP_TRUE='#' 18482 HAVE_FOP_FALSE= 18483fi 18484 18485 18486 18487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5 18488$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; } 18489XORG_SGML_PATH= 18490if test -n "$PKG_CONFIG" && \ 18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5 18492 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5 18493 ac_status=$? 18494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18495 test $ac_status = 0; }; then 18496 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18497else 18498 : 18499 18500fi 18501 18502# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18503# the path and the name of the doc stylesheet 18504if test "x$XORG_SGML_PATH" != "x" ; then 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18506$as_echo "$XORG_SGML_PATH" >&6; } 18507 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18508 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18509else 18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18511$as_echo "no" >&6; } 18512fi 18513 18514 18515 18516 18517 if test "x$XSL_STYLESHEET" != "x"; then 18518 HAVE_STYLESHEETS_TRUE= 18519 HAVE_STYLESHEETS_FALSE='#' 18520else 18521 HAVE_STYLESHEETS_TRUE='#' 18522 HAVE_STYLESHEETS_FALSE= 18523fi 18524 18525 18526 18527# Checks for header files. 18528for ac_header in endian.h poll.h sys/poll.h 18529do : 18530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18531ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18532if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18533 cat >>confdefs.h <<_ACEOF 18534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18535_ACEOF 18536 18537fi 18538 18539done 18540 18541 18542# Checks for library functions. 18543for ac_func in poll readlink 18544do : 18545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18546ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18547if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18548 cat >>confdefs.h <<_ACEOF 18549#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18550_ACEOF 18551 18552fi 18553done 18554 18555 18556# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config 18557# must first be located explicitly. 18558 18559 18560if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18561 if test -n "$ac_tool_prefix"; then 18562 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18563set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18565$as_echo_n "checking for $ac_word... " >&6; } 18566if ${ac_cv_path_PKG_CONFIG+:} false; then : 18567 $as_echo_n "(cached) " >&6 18568else 18569 case $PKG_CONFIG in 18570 [\\/]* | ?:[\\/]*) 18571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18572 ;; 18573 *) 18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18575for as_dir in $PATH 18576do 18577 IFS=$as_save_IFS 18578 test -z "$as_dir" && as_dir=. 18579 for ac_exec_ext in '' $ac_executable_extensions; do 18580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18583 break 2 18584 fi 18585done 18586 done 18587IFS=$as_save_IFS 18588 18589 ;; 18590esac 18591fi 18592PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18593if test -n "$PKG_CONFIG"; then 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18595$as_echo "$PKG_CONFIG" >&6; } 18596else 18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18598$as_echo "no" >&6; } 18599fi 18600 18601 18602fi 18603if test -z "$ac_cv_path_PKG_CONFIG"; then 18604 ac_pt_PKG_CONFIG=$PKG_CONFIG 18605 # Extract the first word of "pkg-config", so it can be a program name with args. 18606set dummy pkg-config; ac_word=$2 18607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18608$as_echo_n "checking for $ac_word... " >&6; } 18609if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18610 $as_echo_n "(cached) " >&6 18611else 18612 case $ac_pt_PKG_CONFIG in 18613 [\\/]* | ?:[\\/]*) 18614 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18615 ;; 18616 *) 18617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18618for as_dir in $PATH 18619do 18620 IFS=$as_save_IFS 18621 test -z "$as_dir" && as_dir=. 18622 for ac_exec_ext in '' $ac_executable_extensions; do 18623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18624 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18626 break 2 18627 fi 18628done 18629 done 18630IFS=$as_save_IFS 18631 18632 ;; 18633esac 18634fi 18635ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18636if test -n "$ac_pt_PKG_CONFIG"; then 18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18638$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18639else 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18641$as_echo "no" >&6; } 18642fi 18643 18644 if test "x$ac_pt_PKG_CONFIG" = x; then 18645 PKG_CONFIG="" 18646 else 18647 case $cross_compiling:$ac_tool_warned in 18648yes:) 18649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18651ac_tool_warned=yes ;; 18652esac 18653 PKG_CONFIG=$ac_pt_PKG_CONFIG 18654 fi 18655else 18656 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18657fi 18658 18659fi 18660if test -n "$PKG_CONFIG"; then 18661 _pkg_min_version=0.9.0 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18663$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18664 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18666$as_echo "yes" >&6; } 18667 else 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18669$as_echo "no" >&6; } 18670 PKG_CONFIG="" 18671 fi 18672 18673fi 18674 18675# 18676# select libraries to include 18677# 18678 18679XFONT_FONTFILE=no 18680 18681# 18682# FreeType for all scalable (OpenType, TrueType, PostScript) and 18683# some bitmap formats (BDF & PCF) 18684# 18685# Check whether --enable-freetype was given. 18686if test "${enable_freetype+set}" = set; then : 18687 enableval=$enable_freetype; XFONT_FREETYPE=$enableval 18688else 18689 XFONT_FREETYPE=yes 18690fi 18691 18692 if test x$XFONT_FREETYPE = xyes; then 18693 XFONT_FREETYPE_TRUE= 18694 XFONT_FREETYPE_FALSE='#' 18695else 18696 XFONT_FREETYPE_TRUE='#' 18697 XFONT_FREETYPE_FALSE= 18698fi 18699 18700if test x$XFONT_FREETYPE = xyes; then 18701 18702$as_echo "#define XFONT_FREETYPE 1" >>confdefs.h 18703 18704 18705# Check whether --with-freetype-config was given. 18706if test "${with_freetype_config+set}" = set; then : 18707 withval=$with_freetype_config; freetype_config=$withval 18708else 18709 freetype_config=auto 18710fi 18711 18712 18713 if test "$freetype_config" = "auto" ; then 18714 18715pkg_failed=no 18716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 18717$as_echo_n "checking for FREETYPE... " >&6; } 18718 18719if test -n "$FREETYPE_CFLAGS"; then 18720 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 18721 elif test -n "$PKG_CONFIG"; then 18722 if test -n "$PKG_CONFIG" && \ 18723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 18724 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 18725 ac_status=$? 18726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18727 test $ac_status = 0; }; then 18728 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 18729else 18730 pkg_failed=yes 18731fi 18732 else 18733 pkg_failed=untried 18734fi 18735if test -n "$FREETYPE_LIBS"; then 18736 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 18737 elif test -n "$PKG_CONFIG"; then 18738 if test -n "$PKG_CONFIG" && \ 18739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 18740 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 18741 ac_status=$? 18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18743 test $ac_status = 0; }; then 18744 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 18745else 18746 pkg_failed=yes 18747fi 18748 else 18749 pkg_failed=untried 18750fi 18751 18752 18753 18754if test $pkg_failed = yes; then 18755 18756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18757 _pkg_short_errors_supported=yes 18758else 18759 _pkg_short_errors_supported=no 18760fi 18761 if test $_pkg_short_errors_supported = yes; then 18762 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 18763 else 18764 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 18765 fi 18766 # Put the nasty error message in config.log where it belongs 18767 echo "$FREETYPE_PKG_ERRORS" >&5 18768 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18770$as_echo "no" >&6; } 18771 freetype_config=yes 18772elif test $pkg_failed = untried; then 18773 freetype_config=yes 18774else 18775 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 18776 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18778$as_echo "yes" >&6; } 18779 freetype_config=no 18780fi 18781 fi 18782 18783 if test "$freetype_config" = "yes"; then 18784 # Extract the first word of "freetype-config", so it can be a program name with args. 18785set dummy freetype-config; ac_word=$2 18786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18787$as_echo_n "checking for $ac_word... " >&6; } 18788if ${ac_cv_path_ft_config+:} false; then : 18789 $as_echo_n "(cached) " >&6 18790else 18791 case $ft_config in 18792 [\\/]* | ?:[\\/]*) 18793 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 18794 ;; 18795 *) 18796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18797for as_dir in $PATH 18798do 18799 IFS=$as_save_IFS 18800 test -z "$as_dir" && as_dir=. 18801 for ac_exec_ext in '' $ac_executable_extensions; do 18802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18803 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext" 18804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18805 break 2 18806 fi 18807done 18808 done 18809IFS=$as_save_IFS 18810 18811 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 18812 ;; 18813esac 18814fi 18815ft_config=$ac_cv_path_ft_config 18816if test -n "$ft_config"; then 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5 18818$as_echo "$ft_config" >&6; } 18819else 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18821$as_echo "no" >&6; } 18822fi 18823 18824 18825 if test "$ft_config" = "no"; then 18826 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5 18827 fi 18828 else 18829 ft_config="$freetype_config" 18830 fi 18831 18832 if test "$freetype_config" != "no"; then 18833 FREETYPE_CFLAGS="`$ft_config --cflags`" 18834 FREETYPE_LIBS="`$ft_config --libs`" 18835 fi 18836 FREETYPE_REQUIRES="freetype2" 18837 XFONT_FONTFILE=yes 18838else 18839 FREETYPE_CFLAGS="" 18840 FREETYPE_LIBS="" 18841 FREETYPE_REQUIRES="" 18842fi 18843 18844 18845 18846 18847# 18848# Bitmap fonts in files: 18849# Builtins (gzipped pcf format in .text segment) 18850# PCF 18851# BDF 18852# SNF 18853# 18854 18855 18856$as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h 18857 18858X_GZIP_FONT_COMPRESSION=1 18859 18860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 18861$as_echo_n "checking for gzopen in -lz... " >&6; } 18862if ${ac_cv_lib_z_gzopen+:} false; then : 18863 $as_echo_n "(cached) " >&6 18864else 18865 ac_check_lib_save_LIBS=$LIBS 18866LIBS="-lz $LIBS" 18867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18868/* end confdefs.h. */ 18869 18870/* Override any GCC internal prototype to avoid an error. 18871 Use char because int might match the return type of a GCC 18872 builtin and then its argument prototype would still apply. */ 18873#ifdef __cplusplus 18874extern "C" 18875#endif 18876char gzopen (); 18877int 18878main () 18879{ 18880return gzopen (); 18881 ; 18882 return 0; 18883} 18884_ACEOF 18885if ac_fn_c_try_link "$LINENO"; then : 18886 ac_cv_lib_z_gzopen=yes 18887else 18888 ac_cv_lib_z_gzopen=no 18889fi 18890rm -f core conftest.err conftest.$ac_objext \ 18891 conftest$ac_exeext conftest.$ac_ext 18892LIBS=$ac_check_lib_save_LIBS 18893fi 18894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 18895$as_echo "$ac_cv_lib_z_gzopen" >&6; } 18896if test "x$ac_cv_lib_z_gzopen" = xyes; then : 18897 Z_LIBS=-lz 18898else 18899 as_fn_error $? "*** zlib is required" "$LINENO" 5 18900fi 18901 18902 18903 18904# Check whether --with-bzip2 was given. 18905if test "${with_bzip2+set}" = set; then : 18906 withval=$with_bzip2; 18907else 18908 with_bzip2=no 18909fi 18910 18911if test "x$with_bzip2" = xyes; then 18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 18913$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; } 18914if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then : 18915 $as_echo_n "(cached) " >&6 18916else 18917 ac_check_lib_save_LIBS=$LIBS 18918LIBS="-lbz2 $LIBS" 18919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18920/* end confdefs.h. */ 18921 18922/* Override any GCC internal prototype to avoid an error. 18923 Use char because int might match the return type of a GCC 18924 builtin and then its argument prototype would still apply. */ 18925#ifdef __cplusplus 18926extern "C" 18927#endif 18928char BZ2_bzopen (); 18929int 18930main () 18931{ 18932return BZ2_bzopen (); 18933 ; 18934 return 0; 18935} 18936_ACEOF 18937if ac_fn_c_try_link "$LINENO"; then : 18938 ac_cv_lib_bz2_BZ2_bzopen=yes 18939else 18940 ac_cv_lib_bz2_BZ2_bzopen=no 18941fi 18942rm -f core conftest.err conftest.$ac_objext \ 18943 conftest$ac_exeext conftest.$ac_ext 18944LIBS=$ac_check_lib_save_LIBS 18945fi 18946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 18947$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 18948if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then : 18949 Z_LIBS="$Z_LIBS -lbz2" 18950else 18951 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 18952fi 18953 18954 18955$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 18956 18957fi 18958 if test "x$with_bzip2" = xyes ; then 18959 X_BZIP2_FONT_COMPRESSION_TRUE= 18960 X_BZIP2_FONT_COMPRESSION_FALSE='#' 18961else 18962 X_BZIP2_FONT_COMPRESSION_TRUE='#' 18963 X_BZIP2_FONT_COMPRESSION_FALSE= 18964fi 18965 18966 18967 18968# Check whether --enable-builtins was given. 18969if test "${enable_builtins+set}" = set; then : 18970 enableval=$enable_builtins; XFONT_BUILTINS=$enableval 18971else 18972 XFONT_BUILTINS=yes 18973fi 18974 18975 if test "x$XFONT_BUILTINS" = xyes ; then 18976 XFONT_BUILTINS_TRUE= 18977 XFONT_BUILTINS_FALSE='#' 18978else 18979 XFONT_BUILTINS_TRUE='#' 18980 XFONT_BUILTINS_FALSE= 18981fi 18982 18983if test "x$XFONT_BUILTINS" = xyes; then 18984 18985$as_echo "#define XFONT_BUILTINS 1" >>confdefs.h 18986 18987 XFONT_BITMAP=yes 18988fi 18989 18990# Check whether --enable-pcfformat was given. 18991if test "${enable_pcfformat+set}" = set; then : 18992 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval 18993else 18994 XFONT_PCFFORMAT=yes 18995fi 18996 18997 if test "x$XFONT_PCFFORMAT" = xyes; then 18998 XFONT_PCFFORMAT_TRUE= 18999 XFONT_PCFFORMAT_FALSE='#' 19000else 19001 XFONT_PCFFORMAT_TRUE='#' 19002 XFONT_PCFFORMAT_FALSE= 19003fi 19004 19005if test "x$XFONT_PCFFORMAT" = xyes; then 19006 19007$as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h 19008 19009 XFONT_BITMAP=yes 19010fi 19011 19012 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then 19013 XFONT_PCF_OR_BUILTIN_TRUE= 19014 XFONT_PCF_OR_BUILTIN_FALSE='#' 19015else 19016 XFONT_PCF_OR_BUILTIN_TRUE='#' 19017 XFONT_PCF_OR_BUILTIN_FALSE= 19018fi 19019 19020 19021# Check whether --enable-bdfformat was given. 19022if test "${enable_bdfformat+set}" = set; then : 19023 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval 19024else 19025 XFONT_BDFFORMAT=yes 19026fi 19027 19028 if test "x$XFONT_BDFFORMAT" = xyes; then 19029 XFONT_BDFFORMAT_TRUE= 19030 XFONT_BDFFORMAT_FALSE='#' 19031else 19032 XFONT_BDFFORMAT_TRUE='#' 19033 XFONT_BDFFORMAT_FALSE= 19034fi 19035 19036if test "x$XFONT_BDFFORMAT" = xyes; then 19037 19038$as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h 19039 19040 XFONT_BITMAP=yes 19041fi 19042 19043# Check whether --enable-snfformat was given. 19044if test "${enable_snfformat+set}" = set; then : 19045 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval 19046else 19047 XFONT_SNFFORMAT=no 19048fi 19049 19050 if test "x$XFONT_SNFFORMAT" = xyes; then 19051 XFONT_SNFFORMAT_TRUE= 19052 XFONT_SNFFORMAT_FALSE='#' 19053else 19054 XFONT_SNFFORMAT_TRUE='#' 19055 XFONT_SNFFORMAT_FALSE= 19056fi 19057 19058if test "x$XFONT_SNFFORMAT" = xyes; then 19059 19060$as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h 19061 19062 XFONT_BITMAP=yes 19063fi 19064 19065 if test "x$XFONT_BITMAP" = xyes ; then 19066 XFONT_BITMAP_TRUE= 19067 XFONT_BITMAP_FALSE='#' 19068else 19069 XFONT_BITMAP_TRUE='#' 19070 XFONT_BITMAP_FALSE= 19071fi 19072 19073if test "x$XFONT_BITMAP" = xyes; then 19074 19075$as_echo "#define XFONT_BITMAP 1" >>confdefs.h 19076 19077 XFONT_FONTFILE=yes 19078fi 19079 19080 if test "x$XFONT_FONTFILE" = xyes; then 19081 XFONT_FONTFILE_TRUE= 19082 XFONT_FONTFILE_FALSE='#' 19083else 19084 XFONT_FONTFILE_TRUE='#' 19085 XFONT_FONTFILE_FALSE= 19086fi 19087 19088if test "x$XFONT_FONTFILE" = xyes; then 19089 19090$as_echo "#define XFONT_FONTFILE 1" >>confdefs.h 19091 19092fi 19093 19094# 19095# Support connection to font servers? 19096# 19097 19098# Check whether --enable-fc was given. 19099if test "${enable_fc+set}" = set; then : 19100 enableval=$enable_fc; XFONT_FC=$enableval 19101else 19102 XFONT_FC=yes 19103fi 19104 19105 if test "x$XFONT_FC" = xyes; then 19106 XFONT_FC_TRUE= 19107 XFONT_FC_FALSE='#' 19108else 19109 XFONT_FC_TRUE='#' 19110 XFONT_FC_FALSE= 19111fi 19112 19113if test "x$XFONT_FC" = xyes; then 19114 19115$as_echo "#define XFONT_FC 1" >>confdefs.h 19116 19117fi 19118 19119 19120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5 19121$as_echo_n "checking for hypot in -lm... " >&6; } 19122if ${ac_cv_lib_m_hypot+:} false; then : 19123 $as_echo_n "(cached) " >&6 19124else 19125 ac_check_lib_save_LIBS=$LIBS 19126LIBS="-lm $LIBS" 19127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19128/* end confdefs.h. */ 19129 19130/* Override any GCC internal prototype to avoid an error. 19131 Use char because int might match the return type of a GCC 19132 builtin and then its argument prototype would still apply. */ 19133#ifdef __cplusplus 19134extern "C" 19135#endif 19136char hypot (); 19137int 19138main () 19139{ 19140return hypot (); 19141 ; 19142 return 0; 19143} 19144_ACEOF 19145if ac_fn_c_try_link "$LINENO"; then : 19146 ac_cv_lib_m_hypot=yes 19147else 19148 ac_cv_lib_m_hypot=no 19149fi 19150rm -f core conftest.err conftest.$ac_objext \ 19151 conftest$ac_exeext conftest.$ac_ext 19152LIBS=$ac_check_lib_save_LIBS 19153fi 19154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5 19155$as_echo "$ac_cv_lib_m_hypot" >&6; } 19156if test "x$ac_cv_lib_m_hypot" = xyes; then : 19157 MATH_LIBS=-lm 19158 19159else 19160 as_fn_error $? "*** libm is required" "$LINENO" 5 19161fi 19162 19163 19164 19165pkg_failed=no 19166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5 19167$as_echo_n "checking for XFONT... " >&6; } 19168 19169if test -n "$XFONT_CFLAGS"; then 19170 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS" 19171 elif test -n "$PKG_CONFIG"; then 19172 if test -n "$PKG_CONFIG" && \ 19173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 19174 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 19175 ac_status=$? 19176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19177 test $ac_status = 0; }; then 19178 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 19179else 19180 pkg_failed=yes 19181fi 19182 else 19183 pkg_failed=untried 19184fi 19185if test -n "$XFONT_LIBS"; then 19186 pkg_cv_XFONT_LIBS="$XFONT_LIBS" 19187 elif test -n "$PKG_CONFIG"; then 19188 if test -n "$PKG_CONFIG" && \ 19189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 19190 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 19191 ac_status=$? 19192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19193 test $ac_status = 0; }; then 19194 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 19195else 19196 pkg_failed=yes 19197fi 19198 else 19199 pkg_failed=untried 19200fi 19201 19202 19203 19204if test $pkg_failed = yes; then 19205 19206if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19207 _pkg_short_errors_supported=yes 19208else 19209 _pkg_short_errors_supported=no 19210fi 19211 if test $_pkg_short_errors_supported = yes; then 19212 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 19213 else 19214 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 19215 fi 19216 # Put the nasty error message in config.log where it belongs 19217 echo "$XFONT_PKG_ERRORS" >&5 19218 19219 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met: 19220 19221$XFONT_PKG_ERRORS 19222 19223Consider adjusting the PKG_CONFIG_PATH environment variable if you 19224installed software in a non-standard prefix. 19225 19226Alternatively, you may set the environment variables XFONT_CFLAGS 19227and XFONT_LIBS to avoid the need to call pkg-config. 19228See the pkg-config man page for more details. 19229" "$LINENO" 5 19230elif test $pkg_failed = untried; then 19231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19233as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19234is in your PATH or set the PKG_CONFIG environment variable to the full 19235path to pkg-config. 19236 19237Alternatively, you may set the environment variables XFONT_CFLAGS 19238and XFONT_LIBS to avoid the need to call pkg-config. 19239See the pkg-config man page for more details. 19240 19241To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19242See \`config.log' for more details" "$LINENO" 5; } 19243else 19244 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS 19245 XFONT_LIBS=$pkg_cv_XFONT_LIBS 19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19247$as_echo "yes" >&6; } 19248 : 19249fi 19250 19251# Transport selection macro from xtrans.m4 19252 19253 19254 case $host_os in 19255 mingw*) unixdef="no" ;; 19256 *) unixdef="yes" ;; 19257 esac 19258 # Check whether --enable-unix-transport was given. 19259if test "${enable_unix_transport+set}" = set; then : 19260 enableval=$enable_unix_transport; UNIXCONN=$enableval 19261else 19262 UNIXCONN=$unixdef 19263fi 19264 19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 19266$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 19267 if test "$UNIXCONN" = "yes"; then 19268 19269$as_echo "#define UNIXCONN 1" >>confdefs.h 19270 19271 fi 19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 19273$as_echo "$UNIXCONN" >&6; } 19274 # Check whether --enable-tcp-transport was given. 19275if test "${enable_tcp_transport+set}" = set; then : 19276 enableval=$enable_tcp_transport; TCPCONN=$enableval 19277else 19278 TCPCONN=yes 19279fi 19280 19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 19282$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 19284$as_echo "$TCPCONN" >&6; } 19285 if test "$TCPCONN" = "yes"; then 19286 19287$as_echo "#define TCPCONN 1" >>confdefs.h 19288 19289 19290 # SVR4 hides these in libraries other than libc 19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19292$as_echo_n "checking for library containing socket... " >&6; } 19293if ${ac_cv_search_socket+:} false; then : 19294 $as_echo_n "(cached) " >&6 19295else 19296 ac_func_search_save_LIBS=$LIBS 19297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19298/* end confdefs.h. */ 19299 19300/* Override any GCC internal prototype to avoid an error. 19301 Use char because int might match the return type of a GCC 19302 builtin and then its argument prototype would still apply. */ 19303#ifdef __cplusplus 19304extern "C" 19305#endif 19306char socket (); 19307int 19308main () 19309{ 19310return socket (); 19311 ; 19312 return 0; 19313} 19314_ACEOF 19315for ac_lib in '' socket; do 19316 if test -z "$ac_lib"; then 19317 ac_res="none required" 19318 else 19319 ac_res=-l$ac_lib 19320 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19321 fi 19322 if ac_fn_c_try_link "$LINENO"; then : 19323 ac_cv_search_socket=$ac_res 19324fi 19325rm -f core conftest.err conftest.$ac_objext \ 19326 conftest$ac_exeext 19327 if ${ac_cv_search_socket+:} false; then : 19328 break 19329fi 19330done 19331if ${ac_cv_search_socket+:} false; then : 19332 19333else 19334 ac_cv_search_socket=no 19335fi 19336rm conftest.$ac_ext 19337LIBS=$ac_func_search_save_LIBS 19338fi 19339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19340$as_echo "$ac_cv_search_socket" >&6; } 19341ac_res=$ac_cv_search_socket 19342if test "$ac_res" != no; then : 19343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19344 19345fi 19346 19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19348$as_echo_n "checking for library containing gethostbyname... " >&6; } 19349if ${ac_cv_search_gethostbyname+:} false; then : 19350 $as_echo_n "(cached) " >&6 19351else 19352 ac_func_search_save_LIBS=$LIBS 19353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19354/* end confdefs.h. */ 19355 19356/* Override any GCC internal prototype to avoid an error. 19357 Use char because int might match the return type of a GCC 19358 builtin and then its argument prototype would still apply. */ 19359#ifdef __cplusplus 19360extern "C" 19361#endif 19362char gethostbyname (); 19363int 19364main () 19365{ 19366return gethostbyname (); 19367 ; 19368 return 0; 19369} 19370_ACEOF 19371for ac_lib in '' nsl; do 19372 if test -z "$ac_lib"; then 19373 ac_res="none required" 19374 else 19375 ac_res=-l$ac_lib 19376 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19377 fi 19378 if ac_fn_c_try_link "$LINENO"; then : 19379 ac_cv_search_gethostbyname=$ac_res 19380fi 19381rm -f core conftest.err conftest.$ac_objext \ 19382 conftest$ac_exeext 19383 if ${ac_cv_search_gethostbyname+:} false; then : 19384 break 19385fi 19386done 19387if ${ac_cv_search_gethostbyname+:} false; then : 19388 19389else 19390 ac_cv_search_gethostbyname=no 19391fi 19392rm conftest.$ac_ext 19393LIBS=$ac_func_search_save_LIBS 19394fi 19395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19396$as_echo "$ac_cv_search_gethostbyname" >&6; } 19397ac_res=$ac_cv_search_gethostbyname 19398if test "$ac_res" != no; then : 19399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19400 19401fi 19402 19403 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19405$as_echo_n "checking for main in -lws2_32... " >&6; } 19406if ${ac_cv_lib_ws2_32_main+:} false; then : 19407 $as_echo_n "(cached) " >&6 19408else 19409 ac_check_lib_save_LIBS=$LIBS 19410LIBS="-lws2_32 $LIBS" 19411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19412/* end confdefs.h. */ 19413 19414 19415int 19416main () 19417{ 19418return main (); 19419 ; 19420 return 0; 19421} 19422_ACEOF 19423if ac_fn_c_try_link "$LINENO"; then : 19424 ac_cv_lib_ws2_32_main=yes 19425else 19426 ac_cv_lib_ws2_32_main=no 19427fi 19428rm -f core conftest.err conftest.$ac_objext \ 19429 conftest$ac_exeext conftest.$ac_ext 19430LIBS=$ac_check_lib_save_LIBS 19431fi 19432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19433$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19434if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19435 cat >>confdefs.h <<_ACEOF 19436#define HAVE_LIBWS2_32 1 19437_ACEOF 19438 19439 LIBS="-lws2_32 $LIBS" 19440 19441fi 19442 19443 fi 19444 19445 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 19446 # Check whether --enable-ipv6 was given. 19447if test "${enable_ipv6+set}" = set; then : 19448 enableval=$enable_ipv6; IPV6CONN=$enableval 19449else 19450 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19451if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19452 IPV6CONN=yes 19453else 19454 IPV6CONN=no 19455fi 19456 19457fi 19458 19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 19460$as_echo_n "checking if IPv6 support should be built... " >&6; } 19461 if test "$IPV6CONN" = "yes"; then 19462 19463$as_echo "#define IPv6 1" >>confdefs.h 19464 19465 fi 19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 19467$as_echo "$IPV6CONN" >&6; } 19468 19469 # 4.3BSD-Reno added a new member to struct sockaddr_in 19470 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 19471#include <sys/types.h> 19472#include <sys/socket.h> 19473#include <netinet/in.h> 19474 19475" 19476if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 19477 19478$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 19479 19480fi 19481 19482 19483 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 19484 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 19485$ac_includes_default 19486#include <sys/socket.h> 19487" 19488if test "x$ac_cv_type_socklen_t" = xyes; then : 19489 19490cat >>confdefs.h <<_ACEOF 19491#define HAVE_SOCKLEN_T 1 19492_ACEOF 19493 19494 19495fi 19496 19497 19498 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 19499 # _XOPEN_SOURCE to get it (such as on Solaris) 19500 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19501$ac_includes_default 19502#include <sys/socket.h> 19503 19504" 19505if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19506 19507fi 19508 19509 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 19510 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19511 unset ac_cv_member_struct_msghdr_msg_control 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 19513$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 19514 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19515#define _XOPEN_SOURCE 600 19516$ac_includes_default 19517#include <sys/socket.h> 19518 19519" 19520if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19521 19522$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 19523 19524 19525fi 19526 19527 fi 19528 # If that didn't work, fall back to XPG5/UNIX98 with C89 19529 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19530 unset ac_cv_member_struct_msghdr_msg_control 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 19532$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 19533 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19534#define _XOPEN_SOURCE 500 19535$ac_includes_default 19536#include <sys/socket.h> 19537 19538" 19539if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19540 19541$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 19542 19543 19544fi 19545 19546 fi 19547 19548 19549 19550 fi 19551 case $host_os in 19552 solaris*|sco*|sysv4*) localdef="yes" ;; 19553 *) localdef="no" ;; 19554 esac 19555 # Check whether --enable-local-transport was given. 19556if test "${enable_local_transport+set}" = set; then : 19557 enableval=$enable_local_transport; LOCALCONN=$enableval 19558else 19559 LOCALCONN=$localdef 19560fi 19561 19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 19563$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 19565$as_echo "$LOCALCONN" >&6; } 19566 if test "$LOCALCONN" = "yes"; then 19567 19568$as_echo "#define LOCALCONN 1" >>confdefs.h 19569 19570 fi 19571 19572 19573 19574case $host_os in 19575 linux*) 19576 OS_CFLAGS="-D_XOPEN_SOURCE" 19577 ;; 19578 darwin*) 19579 OS_CFLAGS="-Wl,-flat_namespace" 19580 ;; 19581 *) 19582 OS_CFLAGS= 19583 ;; 19584esac 19585 19586 19587ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc" 19588 19589cat >confcache <<\_ACEOF 19590# This file is a shell script that caches the results of configure 19591# tests run on this system so they can be shared between configure 19592# scripts and configure runs, see configure's option --config-cache. 19593# It is not useful on other systems. If it contains results you don't 19594# want to keep, you may remove or edit it. 19595# 19596# config.status only pays attention to the cache file if you give it 19597# the --recheck option to rerun configure. 19598# 19599# `ac_cv_env_foo' variables (set or unset) will be overridden when 19600# loading this file, other *unset* `ac_cv_foo' will be assigned the 19601# following values. 19602 19603_ACEOF 19604 19605# The following way of writing the cache mishandles newlines in values, 19606# but we know of no workaround that is simple, portable, and efficient. 19607# So, we kill variables containing newlines. 19608# Ultrix sh set writes to stderr and can't be redirected directly, 19609# and sets the high bit in the cache file unless we assign to the vars. 19610( 19611 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19612 eval ac_val=\$$ac_var 19613 case $ac_val in #( 19614 *${as_nl}*) 19615 case $ac_var in #( 19616 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19617$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19618 esac 19619 case $ac_var in #( 19620 _ | IFS | as_nl) ;; #( 19621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19622 *) { eval $ac_var=; unset $ac_var;} ;; 19623 esac ;; 19624 esac 19625 done 19626 19627 (set) 2>&1 | 19628 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19629 *${as_nl}ac_space=\ *) 19630 # `set' does not quote correctly, so add quotes: double-quote 19631 # substitution turns \\\\ into \\, and sed turns \\ into \. 19632 sed -n \ 19633 "s/'/'\\\\''/g; 19634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19635 ;; #( 19636 *) 19637 # `set' quotes correctly as required by POSIX, so do not add quotes. 19638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19639 ;; 19640 esac | 19641 sort 19642) | 19643 sed ' 19644 /^ac_cv_env_/b end 19645 t clear 19646 :clear 19647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19648 t end 19649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19650 :end' >>confcache 19651if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19652 if test -w "$cache_file"; then 19653 if test "x$cache_file" != "x/dev/null"; then 19654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19655$as_echo "$as_me: updating cache $cache_file" >&6;} 19656 if test ! -f "$cache_file" || test -h "$cache_file"; then 19657 cat confcache >"$cache_file" 19658 else 19659 case $cache_file in #( 19660 */* | ?:*) 19661 mv -f confcache "$cache_file"$$ && 19662 mv -f "$cache_file"$$ "$cache_file" ;; #( 19663 *) 19664 mv -f confcache "$cache_file" ;; 19665 esac 19666 fi 19667 fi 19668 else 19669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19670$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19671 fi 19672fi 19673rm -f confcache 19674 19675test "x$prefix" = xNONE && prefix=$ac_default_prefix 19676# Let make expand exec_prefix. 19677test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19678 19679DEFS=-DHAVE_CONFIG_H 19680 19681ac_libobjs= 19682ac_ltlibobjs= 19683U= 19684for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19685 # 1. Remove the extension, and $U if already installed. 19686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19687 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19689 # will be set to the directory where LIBOBJS objects are built. 19690 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19691 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19692done 19693LIBOBJS=$ac_libobjs 19694 19695LTLIBOBJS=$ac_ltlibobjs 19696 19697 19698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19699$as_echo_n "checking that generated files are newer than configure... " >&6; } 19700 if test -n "$am_sleep_pid"; then 19701 # Hide warnings about reused PIDs. 19702 wait $am_sleep_pid 2>/dev/null 19703 fi 19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19705$as_echo "done" >&6; } 19706 if test -n "$EXEEXT"; then 19707 am__EXEEXT_TRUE= 19708 am__EXEEXT_FALSE='#' 19709else 19710 am__EXEEXT_TRUE='#' 19711 am__EXEEXT_FALSE= 19712fi 19713 19714if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19715 as_fn_error $? "conditional \"AMDEP\" was never defined. 19716Usually this means the macro was only invoked conditionally." "$LINENO" 5 19717fi 19718if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19720Usually this means the macro was only invoked conditionally." "$LINENO" 5 19721fi 19722if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 19723 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 19724Usually this means the macro was only invoked conditionally." "$LINENO" 5 19725fi 19726if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19727 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19728Usually this means the macro was only invoked conditionally." "$LINENO" 5 19729fi 19730if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19731 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19732Usually this means the macro was only invoked conditionally." "$LINENO" 5 19733fi 19734if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19735 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19736Usually this means the macro was only invoked conditionally." "$LINENO" 5 19737fi 19738if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19739 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19740Usually this means the macro was only invoked conditionally." "$LINENO" 5 19741fi 19742if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then 19743 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined. 19744Usually this means the macro was only invoked conditionally." "$LINENO" 5 19745fi 19746if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then 19747 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined. 19748Usually this means the macro was only invoked conditionally." "$LINENO" 5 19749fi 19750if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then 19751 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined. 19752Usually this means the macro was only invoked conditionally." "$LINENO" 5 19753fi 19754if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then 19755 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined. 19756Usually this means the macro was only invoked conditionally." "$LINENO" 5 19757fi 19758if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then 19759 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined. 19760Usually this means the macro was only invoked conditionally." "$LINENO" 5 19761fi 19762if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then 19763 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined. 19764Usually this means the macro was only invoked conditionally." "$LINENO" 5 19765fi 19766if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then 19767 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined. 19768Usually this means the macro was only invoked conditionally." "$LINENO" 5 19769fi 19770if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then 19771 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined. 19772Usually this means the macro was only invoked conditionally." "$LINENO" 5 19773fi 19774if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then 19775 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined. 19776Usually this means the macro was only invoked conditionally." "$LINENO" 5 19777fi 19778if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then 19779 as_fn_error $? "conditional \"XFONT_FC\" was never defined. 19780Usually this means the macro was only invoked conditionally." "$LINENO" 5 19781fi 19782 19783: "${CONFIG_STATUS=./config.status}" 19784ac_write_fail=0 19785ac_clean_files_save=$ac_clean_files 19786ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19787{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19788$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19789as_write_fail=0 19790cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19791#! $SHELL 19792# Generated by $as_me. 19793# Run this file to recreate the current configuration. 19794# Compiler output produced by configure, useful for debugging 19795# configure, is in config.log if it exists. 19796 19797debug=false 19798ac_cs_recheck=false 19799ac_cs_silent=false 19800 19801SHELL=\${CONFIG_SHELL-$SHELL} 19802export SHELL 19803_ASEOF 19804cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19805## -------------------- ## 19806## M4sh Initialization. ## 19807## -------------------- ## 19808 19809# Be more Bourne compatible 19810DUALCASE=1; export DUALCASE # for MKS sh 19811if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19812 emulate sh 19813 NULLCMD=: 19814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19815 # is contrary to our usage. Disable this feature. 19816 alias -g '${1+"$@"}'='"$@"' 19817 setopt NO_GLOB_SUBST 19818else 19819 case `(set -o) 2>/dev/null` in #( 19820 *posix*) : 19821 set -o posix ;; #( 19822 *) : 19823 ;; 19824esac 19825fi 19826 19827 19828as_nl=' 19829' 19830export as_nl 19831# Printing a long string crashes Solaris 7 /usr/bin/printf. 19832as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19833as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19834as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19835# Prefer a ksh shell builtin over an external printf program on Solaris, 19836# but without wasting forks for bash or zsh. 19837if test -z "$BASH_VERSION$ZSH_VERSION" \ 19838 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19839 as_echo='print -r --' 19840 as_echo_n='print -rn --' 19841elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19842 as_echo='printf %s\n' 19843 as_echo_n='printf %s' 19844else 19845 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19846 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19847 as_echo_n='/usr/ucb/echo -n' 19848 else 19849 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19850 as_echo_n_body='eval 19851 arg=$1; 19852 case $arg in #( 19853 *"$as_nl"*) 19854 expr "X$arg" : "X\\(.*\\)$as_nl"; 19855 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19856 esac; 19857 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19858 ' 19859 export as_echo_n_body 19860 as_echo_n='sh -c $as_echo_n_body as_echo' 19861 fi 19862 export as_echo_body 19863 as_echo='sh -c $as_echo_body as_echo' 19864fi 19865 19866# The user is always right. 19867if test "${PATH_SEPARATOR+set}" != set; then 19868 PATH_SEPARATOR=: 19869 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19870 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19871 PATH_SEPARATOR=';' 19872 } 19873fi 19874 19875 19876# IFS 19877# We need space, tab and new line, in precisely that order. Quoting is 19878# there to prevent editors from complaining about space-tab. 19879# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19880# splitting by setting IFS to empty value.) 19881IFS=" "" $as_nl" 19882 19883# Find who we are. Look in the path if we contain no directory separator. 19884as_myself= 19885case $0 in #(( 19886 *[\\/]* ) as_myself=$0 ;; 19887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19888for as_dir in $PATH 19889do 19890 IFS=$as_save_IFS 19891 test -z "$as_dir" && as_dir=. 19892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19893 done 19894IFS=$as_save_IFS 19895 19896 ;; 19897esac 19898# We did not find ourselves, most probably we were run as `sh COMMAND' 19899# in which case we are not to be found in the path. 19900if test "x$as_myself" = x; then 19901 as_myself=$0 19902fi 19903if test ! -f "$as_myself"; then 19904 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19905 exit 1 19906fi 19907 19908# Unset variables that we do not need and which cause bugs (e.g. in 19909# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19910# suppresses any "Segmentation fault" message there. '((' could 19911# trigger a bug in pdksh 5.2.14. 19912for as_var in BASH_ENV ENV MAIL MAILPATH 19913do eval test x\${$as_var+set} = xset \ 19914 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19915done 19916PS1='$ ' 19917PS2='> ' 19918PS4='+ ' 19919 19920# NLS nuisances. 19921LC_ALL=C 19922export LC_ALL 19923LANGUAGE=C 19924export LANGUAGE 19925 19926# CDPATH. 19927(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19928 19929 19930# as_fn_error STATUS ERROR [LINENO LOG_FD] 19931# ---------------------------------------- 19932# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19933# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19934# script with STATUS, using 1 if that was 0. 19935as_fn_error () 19936{ 19937 as_status=$1; test $as_status -eq 0 && as_status=1 19938 if test "$4"; then 19939 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19940 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19941 fi 19942 $as_echo "$as_me: error: $2" >&2 19943 as_fn_exit $as_status 19944} # as_fn_error 19945 19946 19947# as_fn_set_status STATUS 19948# ----------------------- 19949# Set $? to STATUS, without forking. 19950as_fn_set_status () 19951{ 19952 return $1 19953} # as_fn_set_status 19954 19955# as_fn_exit STATUS 19956# ----------------- 19957# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19958as_fn_exit () 19959{ 19960 set +e 19961 as_fn_set_status $1 19962 exit $1 19963} # as_fn_exit 19964 19965# as_fn_unset VAR 19966# --------------- 19967# Portably unset VAR. 19968as_fn_unset () 19969{ 19970 { eval $1=; unset $1;} 19971} 19972as_unset=as_fn_unset 19973# as_fn_append VAR VALUE 19974# ---------------------- 19975# Append the text in VALUE to the end of the definition contained in VAR. Take 19976# advantage of any shell optimizations that allow amortized linear growth over 19977# repeated appends, instead of the typical quadratic growth present in naive 19978# implementations. 19979if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19980 eval 'as_fn_append () 19981 { 19982 eval $1+=\$2 19983 }' 19984else 19985 as_fn_append () 19986 { 19987 eval $1=\$$1\$2 19988 } 19989fi # as_fn_append 19990 19991# as_fn_arith ARG... 19992# ------------------ 19993# Perform arithmetic evaluation on the ARGs, and store the result in the 19994# global $as_val. Take advantage of shells that can avoid forks. The arguments 19995# must be portable across $(()) and expr. 19996if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19997 eval 'as_fn_arith () 19998 { 19999 as_val=$(( $* )) 20000 }' 20001else 20002 as_fn_arith () 20003 { 20004 as_val=`expr "$@" || test $? -eq 1` 20005 } 20006fi # as_fn_arith 20007 20008 20009if expr a : '\(a\)' >/dev/null 2>&1 && 20010 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20011 as_expr=expr 20012else 20013 as_expr=false 20014fi 20015 20016if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20017 as_basename=basename 20018else 20019 as_basename=false 20020fi 20021 20022if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20023 as_dirname=dirname 20024else 20025 as_dirname=false 20026fi 20027 20028as_me=`$as_basename -- "$0" || 20029$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20030 X"$0" : 'X\(//\)$' \| \ 20031 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20032$as_echo X/"$0" | 20033 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20034 s//\1/ 20035 q 20036 } 20037 /^X\/\(\/\/\)$/{ 20038 s//\1/ 20039 q 20040 } 20041 /^X\/\(\/\).*/{ 20042 s//\1/ 20043 q 20044 } 20045 s/.*/./; q'` 20046 20047# Avoid depending upon Character Ranges. 20048as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20049as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20050as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20051as_cr_digits='0123456789' 20052as_cr_alnum=$as_cr_Letters$as_cr_digits 20053 20054ECHO_C= ECHO_N= ECHO_T= 20055case `echo -n x` in #((((( 20056-n*) 20057 case `echo 'xy\c'` in 20058 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20059 xy) ECHO_C='\c';; 20060 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20061 ECHO_T=' ';; 20062 esac;; 20063*) 20064 ECHO_N='-n';; 20065esac 20066 20067rm -f conf$$ conf$$.exe conf$$.file 20068if test -d conf$$.dir; then 20069 rm -f conf$$.dir/conf$$.file 20070else 20071 rm -f conf$$.dir 20072 mkdir conf$$.dir 2>/dev/null 20073fi 20074if (echo >conf$$.file) 2>/dev/null; then 20075 if ln -s conf$$.file conf$$ 2>/dev/null; then 20076 as_ln_s='ln -s' 20077 # ... but there are two gotchas: 20078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20080 # In both cases, we have to default to `cp -pR'. 20081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20082 as_ln_s='cp -pR' 20083 elif ln conf$$.file conf$$ 2>/dev/null; then 20084 as_ln_s=ln 20085 else 20086 as_ln_s='cp -pR' 20087 fi 20088else 20089 as_ln_s='cp -pR' 20090fi 20091rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20092rmdir conf$$.dir 2>/dev/null 20093 20094 20095# as_fn_mkdir_p 20096# ------------- 20097# Create "$as_dir" as a directory, including parents if necessary. 20098as_fn_mkdir_p () 20099{ 20100 20101 case $as_dir in #( 20102 -*) as_dir=./$as_dir;; 20103 esac 20104 test -d "$as_dir" || eval $as_mkdir_p || { 20105 as_dirs= 20106 while :; do 20107 case $as_dir in #( 20108 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20109 *) as_qdir=$as_dir;; 20110 esac 20111 as_dirs="'$as_qdir' $as_dirs" 20112 as_dir=`$as_dirname -- "$as_dir" || 20113$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20114 X"$as_dir" : 'X\(//\)[^/]' \| \ 20115 X"$as_dir" : 'X\(//\)$' \| \ 20116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20117$as_echo X"$as_dir" | 20118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20119 s//\1/ 20120 q 20121 } 20122 /^X\(\/\/\)[^/].*/{ 20123 s//\1/ 20124 q 20125 } 20126 /^X\(\/\/\)$/{ 20127 s//\1/ 20128 q 20129 } 20130 /^X\(\/\).*/{ 20131 s//\1/ 20132 q 20133 } 20134 s/.*/./; q'` 20135 test -d "$as_dir" && break 20136 done 20137 test -z "$as_dirs" || eval "mkdir $as_dirs" 20138 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20139 20140 20141} # as_fn_mkdir_p 20142if mkdir -p . 2>/dev/null; then 20143 as_mkdir_p='mkdir -p "$as_dir"' 20144else 20145 test -d ./-p && rmdir ./-p 20146 as_mkdir_p=false 20147fi 20148 20149 20150# as_fn_executable_p FILE 20151# ----------------------- 20152# Test if FILE is an executable regular file. 20153as_fn_executable_p () 20154{ 20155 test -f "$1" && test -x "$1" 20156} # as_fn_executable_p 20157as_test_x='test -x' 20158as_executable_p=as_fn_executable_p 20159 20160# Sed expression to map a string onto a valid CPP name. 20161as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20162 20163# Sed expression to map a string onto a valid variable name. 20164as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20165 20166 20167exec 6>&1 20168## ----------------------------------- ## 20169## Main body of $CONFIG_STATUS script. ## 20170## ----------------------------------- ## 20171_ASEOF 20172test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20173 20174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20175# Save the log message, to keep $0 and so on meaningful, and to 20176# report actual input values of CONFIG_FILES etc. instead of their 20177# values after options handling. 20178ac_log=" 20179This file was extended by libXfont $as_me 1.5.1, which was 20180generated by GNU Autoconf 2.69. Invocation command line was 20181 20182 CONFIG_FILES = $CONFIG_FILES 20183 CONFIG_HEADERS = $CONFIG_HEADERS 20184 CONFIG_LINKS = $CONFIG_LINKS 20185 CONFIG_COMMANDS = $CONFIG_COMMANDS 20186 $ $0 $@ 20187 20188on `(hostname || uname -n) 2>/dev/null | sed 1q` 20189" 20190 20191_ACEOF 20192 20193case $ac_config_files in *" 20194"*) set x $ac_config_files; shift; ac_config_files=$*;; 20195esac 20196 20197case $ac_config_headers in *" 20198"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20199esac 20200 20201 20202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20203# Files that config.status was made for. 20204config_files="$ac_config_files" 20205config_headers="$ac_config_headers" 20206config_commands="$ac_config_commands" 20207 20208_ACEOF 20209 20210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20211ac_cs_usage="\ 20212\`$as_me' instantiates files and other configuration actions 20213from templates according to the current configuration. Unless the files 20214and actions are specified as TAGs, all are instantiated by default. 20215 20216Usage: $0 [OPTION]... [TAG]... 20217 20218 -h, --help print this help, then exit 20219 -V, --version print version number and configuration settings, then exit 20220 --config print configuration, then exit 20221 -q, --quiet, --silent 20222 do not print progress messages 20223 -d, --debug don't remove temporary files 20224 --recheck update $as_me by reconfiguring in the same conditions 20225 --file=FILE[:TEMPLATE] 20226 instantiate the configuration file FILE 20227 --header=FILE[:TEMPLATE] 20228 instantiate the configuration header FILE 20229 20230Configuration files: 20231$config_files 20232 20233Configuration headers: 20234$config_headers 20235 20236Configuration commands: 20237$config_commands 20238 20239Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20240 20241_ACEOF 20242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20243ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20244ac_cs_version="\\ 20245libXfont config.status 1.5.1 20246configured by $0, generated by GNU Autoconf 2.69, 20247 with options \\"\$ac_cs_config\\" 20248 20249Copyright (C) 2012 Free Software Foundation, Inc. 20250This config.status script is free software; the Free Software Foundation 20251gives unlimited permission to copy, distribute and modify it." 20252 20253ac_pwd='$ac_pwd' 20254srcdir='$srcdir' 20255INSTALL='$INSTALL' 20256MKDIR_P='$MKDIR_P' 20257AWK='$AWK' 20258test -n "\$AWK" || AWK=awk 20259_ACEOF 20260 20261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20262# The default lists apply if the user does not specify any file. 20263ac_need_defaults=: 20264while test $# != 0 20265do 20266 case $1 in 20267 --*=?*) 20268 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20269 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20270 ac_shift=: 20271 ;; 20272 --*=) 20273 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20274 ac_optarg= 20275 ac_shift=: 20276 ;; 20277 *) 20278 ac_option=$1 20279 ac_optarg=$2 20280 ac_shift=shift 20281 ;; 20282 esac 20283 20284 case $ac_option in 20285 # Handling of the options. 20286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20287 ac_cs_recheck=: ;; 20288 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20289 $as_echo "$ac_cs_version"; exit ;; 20290 --config | --confi | --conf | --con | --co | --c ) 20291 $as_echo "$ac_cs_config"; exit ;; 20292 --debug | --debu | --deb | --de | --d | -d ) 20293 debug=: ;; 20294 --file | --fil | --fi | --f ) 20295 $ac_shift 20296 case $ac_optarg in 20297 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20298 '') as_fn_error $? "missing file argument" ;; 20299 esac 20300 as_fn_append CONFIG_FILES " '$ac_optarg'" 20301 ac_need_defaults=false;; 20302 --header | --heade | --head | --hea ) 20303 $ac_shift 20304 case $ac_optarg in 20305 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20306 esac 20307 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20308 ac_need_defaults=false;; 20309 --he | --h) 20310 # Conflict between --help and --header 20311 as_fn_error $? "ambiguous option: \`$1' 20312Try \`$0 --help' for more information.";; 20313 --help | --hel | -h ) 20314 $as_echo "$ac_cs_usage"; exit ;; 20315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20316 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20317 ac_cs_silent=: ;; 20318 20319 # This is an error. 20320 -*) as_fn_error $? "unrecognized option: \`$1' 20321Try \`$0 --help' for more information." ;; 20322 20323 *) as_fn_append ac_config_targets " $1" 20324 ac_need_defaults=false ;; 20325 20326 esac 20327 shift 20328done 20329 20330ac_configure_extra_args= 20331 20332if $ac_cs_silent; then 20333 exec 6>/dev/null 20334 ac_configure_extra_args="$ac_configure_extra_args --silent" 20335fi 20336 20337_ACEOF 20338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20339if \$ac_cs_recheck; then 20340 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20341 shift 20342 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20343 CONFIG_SHELL='$SHELL' 20344 export CONFIG_SHELL 20345 exec "\$@" 20346fi 20347 20348_ACEOF 20349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20350exec 5>>config.log 20351{ 20352 echo 20353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20354## Running $as_me. ## 20355_ASBOX 20356 $as_echo "$ac_log" 20357} >&5 20358 20359_ACEOF 20360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20361# 20362# INIT-COMMANDS 20363# 20364AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20365 20366 20367# The HP-UX ksh and POSIX shell print the target directory to stdout 20368# if CDPATH is set. 20369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20370 20371sed_quote_subst='$sed_quote_subst' 20372double_quote_subst='$double_quote_subst' 20373delay_variable_subst='$delay_variable_subst' 20374macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20375macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20376enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20377enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20378pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20379enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20380SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20381ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20382PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20383host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20384host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20385host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20386build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20387build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20388build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20389SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20390Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20391GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20392EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20393FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20394LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20395NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20396LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20397max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20398ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20399exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20400lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20401lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20402lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20403lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20404lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20405reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20406reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20407OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20408deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20409file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20410file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20411want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20412DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20413sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20414AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20415AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20416archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20417STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20418RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20419old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20420old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20421old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20422lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20423CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20424CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20425compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20426GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20427lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20428lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20429lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20430lt_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"`' 20431nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20432lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20433objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20434MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20435lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20436lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20437lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20438lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20439lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20440need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20441MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20442DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20443NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20444LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20445OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20446OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20447libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20448shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20449extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20450archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20451enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20452export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20453whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20454compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20455old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20456old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20457archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20458archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20459module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20460module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20461with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20462allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20463no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20464hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20465hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20466hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20467hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20468hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20469hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20470hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20471inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20472link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20473always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20474export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20475exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20476include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20477prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20478postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20479file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20480variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20481need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20482need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20483version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20484runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20485shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20486shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20487libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20488library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20489soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20490install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20491postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20492postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20493finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20494finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20495hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20496sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20497sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20498hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20499enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20500enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20501enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20502old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20503striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20504 20505LTCC='$LTCC' 20506LTCFLAGS='$LTCFLAGS' 20507compiler='$compiler_DEFAULT' 20508 20509# A function that is used when there is no print builtin or printf. 20510func_fallback_echo () 20511{ 20512 eval 'cat <<_LTECHO_EOF 20513\$1 20514_LTECHO_EOF' 20515} 20516 20517# Quote evaled strings. 20518for var in SHELL \ 20519ECHO \ 20520PATH_SEPARATOR \ 20521SED \ 20522GREP \ 20523EGREP \ 20524FGREP \ 20525LD \ 20526NM \ 20527LN_S \ 20528lt_SP2NL \ 20529lt_NL2SP \ 20530reload_flag \ 20531OBJDUMP \ 20532deplibs_check_method \ 20533file_magic_cmd \ 20534file_magic_glob \ 20535want_nocaseglob \ 20536DLLTOOL \ 20537sharedlib_from_linklib_cmd \ 20538AR \ 20539AR_FLAGS \ 20540archiver_list_spec \ 20541STRIP \ 20542RANLIB \ 20543CC \ 20544CFLAGS \ 20545compiler \ 20546lt_cv_sys_global_symbol_pipe \ 20547lt_cv_sys_global_symbol_to_cdecl \ 20548lt_cv_sys_global_symbol_to_c_name_address \ 20549lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20550nm_file_list_spec \ 20551lt_prog_compiler_no_builtin_flag \ 20552lt_prog_compiler_pic \ 20553lt_prog_compiler_wl \ 20554lt_prog_compiler_static \ 20555lt_cv_prog_compiler_c_o \ 20556need_locks \ 20557MANIFEST_TOOL \ 20558DSYMUTIL \ 20559NMEDIT \ 20560LIPO \ 20561OTOOL \ 20562OTOOL64 \ 20563shrext_cmds \ 20564export_dynamic_flag_spec \ 20565whole_archive_flag_spec \ 20566compiler_needs_object \ 20567with_gnu_ld \ 20568allow_undefined_flag \ 20569no_undefined_flag \ 20570hardcode_libdir_flag_spec \ 20571hardcode_libdir_separator \ 20572exclude_expsyms \ 20573include_expsyms \ 20574file_list_spec \ 20575variables_saved_for_relink \ 20576libname_spec \ 20577library_names_spec \ 20578soname_spec \ 20579install_override_mode \ 20580finish_eval \ 20581old_striplib \ 20582striplib; do 20583 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20584 *[\\\\\\\`\\"\\\$]*) 20585 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20586 ;; 20587 *) 20588 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20589 ;; 20590 esac 20591done 20592 20593# Double-quote double-evaled strings. 20594for var in reload_cmds \ 20595old_postinstall_cmds \ 20596old_postuninstall_cmds \ 20597old_archive_cmds \ 20598extract_expsyms_cmds \ 20599old_archive_from_new_cmds \ 20600old_archive_from_expsyms_cmds \ 20601archive_cmds \ 20602archive_expsym_cmds \ 20603module_cmds \ 20604module_expsym_cmds \ 20605export_symbols_cmds \ 20606prelink_cmds \ 20607postlink_cmds \ 20608postinstall_cmds \ 20609postuninstall_cmds \ 20610finish_cmds \ 20611sys_lib_search_path_spec \ 20612sys_lib_dlsearch_path_spec; do 20613 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20614 *[\\\\\\\`\\"\\\$]*) 20615 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20616 ;; 20617 *) 20618 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20619 ;; 20620 esac 20621done 20622 20623ac_aux_dir='$ac_aux_dir' 20624xsi_shell='$xsi_shell' 20625lt_shell_append='$lt_shell_append' 20626 20627# See if we are running on zsh, and set the options which allow our 20628# commands through without removal of \ escapes INIT. 20629if test -n "\${ZSH_VERSION+set}" ; then 20630 setopt NO_GLOB_SUBST 20631fi 20632 20633 20634 PACKAGE='$PACKAGE' 20635 VERSION='$VERSION' 20636 TIMESTAMP='$TIMESTAMP' 20637 RM='$RM' 20638 ofile='$ofile' 20639 20640 20641 20642 20643_ACEOF 20644 20645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20646 20647# Handling of arguments. 20648for ac_config_target in $ac_config_targets 20649do 20650 case $ac_config_target in 20651 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20652 "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;; 20653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20656 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20657 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20658 "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;; 20659 "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;; 20660 "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;; 20661 "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;; 20662 "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;; 20663 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 20664 "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;; 20665 "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;; 20666 20667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20668 esac 20669done 20670 20671 20672# If the user did not use the arguments to specify the items to instantiate, 20673# then the envvar interface is used. Set only those that are not. 20674# We use the long form for the default assignment because of an extremely 20675# bizarre bug on SunOS 4.1.3. 20676if $ac_need_defaults; then 20677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20680fi 20681 20682# Have a temporary directory for convenience. Make it in the build tree 20683# simply because there is no reason against having it here, and in addition, 20684# creating and moving files from /tmp can sometimes cause problems. 20685# Hook for its removal unless debugging. 20686# Note that there is a small window in which the directory will not be cleaned: 20687# after its creation but before its name has been assigned to `$tmp'. 20688$debug || 20689{ 20690 tmp= ac_tmp= 20691 trap 'exit_status=$? 20692 : "${ac_tmp:=$tmp}" 20693 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20694' 0 20695 trap 'as_fn_exit 1' 1 2 13 15 20696} 20697# Create a (secure) tmp directory for tmp files. 20698 20699{ 20700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20701 test -d "$tmp" 20702} || 20703{ 20704 tmp=./conf$$-$RANDOM 20705 (umask 077 && mkdir "$tmp") 20706} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20707ac_tmp=$tmp 20708 20709# Set up the scripts for CONFIG_FILES section. 20710# No need to generate them if there are no CONFIG_FILES. 20711# This happens for instance with `./config.status config.h'. 20712if test -n "$CONFIG_FILES"; then 20713 20714 20715ac_cr=`echo X | tr X '\015'` 20716# On cygwin, bash can eat \r inside `` if the user requested igncr. 20717# But we know of no other shell where ac_cr would be empty at this 20718# point, so we can use a bashism as a fallback. 20719if test "x$ac_cr" = x; then 20720 eval ac_cr=\$\'\\r\' 20721fi 20722ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20723if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20724 ac_cs_awk_cr='\\r' 20725else 20726 ac_cs_awk_cr=$ac_cr 20727fi 20728 20729echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20730_ACEOF 20731 20732 20733{ 20734 echo "cat >conf$$subs.awk <<_ACEOF" && 20735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20736 echo "_ACEOF" 20737} >conf$$subs.sh || 20738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20739ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20740ac_delim='%!_!# ' 20741for ac_last_try in false false false false false :; do 20742 . ./conf$$subs.sh || 20743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20744 20745 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20746 if test $ac_delim_n = $ac_delim_num; then 20747 break 20748 elif $ac_last_try; then 20749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20750 else 20751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20752 fi 20753done 20754rm -f conf$$subs.sh 20755 20756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20757cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20758_ACEOF 20759sed -n ' 20760h 20761s/^/S["/; s/!.*/"]=/ 20762p 20763g 20764s/^[^!]*!// 20765:repl 20766t repl 20767s/'"$ac_delim"'$// 20768t delim 20769:nl 20770h 20771s/\(.\{148\}\)..*/\1/ 20772t more1 20773s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20774p 20775n 20776b repl 20777:more1 20778s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20779p 20780g 20781s/.\{148\}// 20782t nl 20783:delim 20784h 20785s/\(.\{148\}\)..*/\1/ 20786t more2 20787s/["\\]/\\&/g; s/^/"/; s/$/"/ 20788p 20789b 20790:more2 20791s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20792p 20793g 20794s/.\{148\}// 20795t delim 20796' <conf$$subs.awk | sed ' 20797/^[^""]/{ 20798 N 20799 s/\n// 20800} 20801' >>$CONFIG_STATUS || ac_write_fail=1 20802rm -f conf$$subs.awk 20803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20804_ACAWK 20805cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20806 for (key in S) S_is_set[key] = 1 20807 FS = "" 20808 20809} 20810{ 20811 line = $ 0 20812 nfields = split(line, field, "@") 20813 substed = 0 20814 len = length(field[1]) 20815 for (i = 2; i < nfields; i++) { 20816 key = field[i] 20817 keylen = length(key) 20818 if (S_is_set[key]) { 20819 value = S[key] 20820 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20821 len += length(value) + length(field[++i]) 20822 substed = 1 20823 } else 20824 len += 1 + keylen 20825 } 20826 20827 print line 20828} 20829 20830_ACAWK 20831_ACEOF 20832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20833if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20834 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20835else 20836 cat 20837fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20838 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20839_ACEOF 20840 20841# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20842# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20843# trailing colons and then remove the whole line if VPATH becomes empty 20844# (actually we leave an empty line to preserve line numbers). 20845if test "x$srcdir" = x.; then 20846 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20847h 20848s/// 20849s/^/:/ 20850s/[ ]*$/:/ 20851s/:\$(srcdir):/:/g 20852s/:\${srcdir}:/:/g 20853s/:@srcdir@:/:/g 20854s/^:*// 20855s/:*$// 20856x 20857s/\(=[ ]*\).*/\1/ 20858G 20859s/\n// 20860s/^[^=]*=[ ]*$// 20861}' 20862fi 20863 20864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20865fi # test -n "$CONFIG_FILES" 20866 20867# Set up the scripts for CONFIG_HEADERS section. 20868# No need to generate them if there are no CONFIG_HEADERS. 20869# This happens for instance with `./config.status Makefile'. 20870if test -n "$CONFIG_HEADERS"; then 20871cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20872BEGIN { 20873_ACEOF 20874 20875# Transform confdefs.h into an awk script `defines.awk', embedded as 20876# here-document in config.status, that substitutes the proper values into 20877# config.h.in to produce config.h. 20878 20879# Create a delimiter string that does not exist in confdefs.h, to ease 20880# handling of long lines. 20881ac_delim='%!_!# ' 20882for ac_last_try in false false :; do 20883 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20884 if test -z "$ac_tt"; then 20885 break 20886 elif $ac_last_try; then 20887 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20888 else 20889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20890 fi 20891done 20892 20893# For the awk script, D is an array of macro values keyed by name, 20894# likewise P contains macro parameters if any. Preserve backslash 20895# newline sequences. 20896 20897ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20898sed -n ' 20899s/.\{148\}/&'"$ac_delim"'/g 20900t rset 20901:rset 20902s/^[ ]*#[ ]*define[ ][ ]*/ / 20903t def 20904d 20905:def 20906s/\\$// 20907t bsnl 20908s/["\\]/\\&/g 20909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20910D["\1"]=" \3"/p 20911s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20912d 20913:bsnl 20914s/["\\]/\\&/g 20915s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20916D["\1"]=" \3\\\\\\n"\\/p 20917t cont 20918s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20919t cont 20920d 20921:cont 20922n 20923s/.\{148\}/&'"$ac_delim"'/g 20924t clear 20925:clear 20926s/\\$// 20927t bsnlc 20928s/["\\]/\\&/g; s/^/"/; s/$/"/p 20929d 20930:bsnlc 20931s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20932b cont 20933' <confdefs.h | sed ' 20934s/'"$ac_delim"'/"\\\ 20935"/g' >>$CONFIG_STATUS || ac_write_fail=1 20936 20937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20938 for (key in D) D_is_set[key] = 1 20939 FS = "" 20940} 20941/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20942 line = \$ 0 20943 split(line, arg, " ") 20944 if (arg[1] == "#") { 20945 defundef = arg[2] 20946 mac1 = arg[3] 20947 } else { 20948 defundef = substr(arg[1], 2) 20949 mac1 = arg[2] 20950 } 20951 split(mac1, mac2, "(") #) 20952 macro = mac2[1] 20953 prefix = substr(line, 1, index(line, defundef) - 1) 20954 if (D_is_set[macro]) { 20955 # Preserve the white space surrounding the "#". 20956 print prefix "define", macro P[macro] D[macro] 20957 next 20958 } else { 20959 # Replace #undef with comments. This is necessary, for example, 20960 # in the case of _POSIX_SOURCE, which is predefined and required 20961 # on some systems where configure will not decide to define it. 20962 if (defundef == "undef") { 20963 print "/*", prefix defundef, macro, "*/" 20964 next 20965 } 20966 } 20967} 20968{ print } 20969_ACAWK 20970_ACEOF 20971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20972 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20973fi # test -n "$CONFIG_HEADERS" 20974 20975 20976eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20977shift 20978for ac_tag 20979do 20980 case $ac_tag in 20981 :[FHLC]) ac_mode=$ac_tag; continue;; 20982 esac 20983 case $ac_mode$ac_tag in 20984 :[FHL]*:*);; 20985 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20986 :[FH]-) ac_tag=-:-;; 20987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20988 esac 20989 ac_save_IFS=$IFS 20990 IFS=: 20991 set x $ac_tag 20992 IFS=$ac_save_IFS 20993 shift 20994 ac_file=$1 20995 shift 20996 20997 case $ac_mode in 20998 :L) ac_source=$1;; 20999 :[FH]) 21000 ac_file_inputs= 21001 for ac_f 21002 do 21003 case $ac_f in 21004 -) ac_f="$ac_tmp/stdin";; 21005 *) # Look for the file first in the build tree, then in the source tree 21006 # (if the path is not absolute). The absolute path cannot be DOS-style, 21007 # because $ac_f cannot contain `:'. 21008 test -f "$ac_f" || 21009 case $ac_f in 21010 [\\/$]*) false;; 21011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21012 esac || 21013 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21014 esac 21015 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21016 as_fn_append ac_file_inputs " '$ac_f'" 21017 done 21018 21019 # Let's still pretend it is `configure' which instantiates (i.e., don't 21020 # use $as_me), people would be surprised to read: 21021 # /* config.h. Generated by config.status. */ 21022 configure_input='Generated from '` 21023 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21024 `' by configure.' 21025 if test x"$ac_file" != x-; then 21026 configure_input="$ac_file. $configure_input" 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21028$as_echo "$as_me: creating $ac_file" >&6;} 21029 fi 21030 # Neutralize special characters interpreted by sed in replacement strings. 21031 case $configure_input in #( 21032 *\&* | *\|* | *\\* ) 21033 ac_sed_conf_input=`$as_echo "$configure_input" | 21034 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21035 *) ac_sed_conf_input=$configure_input;; 21036 esac 21037 21038 case $ac_tag in 21039 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21041 esac 21042 ;; 21043 esac 21044 21045 ac_dir=`$as_dirname -- "$ac_file" || 21046$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21047 X"$ac_file" : 'X\(//\)[^/]' \| \ 21048 X"$ac_file" : 'X\(//\)$' \| \ 21049 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21050$as_echo X"$ac_file" | 21051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21052 s//\1/ 21053 q 21054 } 21055 /^X\(\/\/\)[^/].*/{ 21056 s//\1/ 21057 q 21058 } 21059 /^X\(\/\/\)$/{ 21060 s//\1/ 21061 q 21062 } 21063 /^X\(\/\).*/{ 21064 s//\1/ 21065 q 21066 } 21067 s/.*/./; q'` 21068 as_dir="$ac_dir"; as_fn_mkdir_p 21069 ac_builddir=. 21070 21071case "$ac_dir" in 21072.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21073*) 21074 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21075 # A ".." for each directory in $ac_dir_suffix. 21076 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21077 case $ac_top_builddir_sub in 21078 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21079 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21080 esac ;; 21081esac 21082ac_abs_top_builddir=$ac_pwd 21083ac_abs_builddir=$ac_pwd$ac_dir_suffix 21084# for backward compatibility: 21085ac_top_builddir=$ac_top_build_prefix 21086 21087case $srcdir in 21088 .) # We are building in place. 21089 ac_srcdir=. 21090 ac_top_srcdir=$ac_top_builddir_sub 21091 ac_abs_top_srcdir=$ac_pwd ;; 21092 [\\/]* | ?:[\\/]* ) # Absolute name. 21093 ac_srcdir=$srcdir$ac_dir_suffix; 21094 ac_top_srcdir=$srcdir 21095 ac_abs_top_srcdir=$srcdir ;; 21096 *) # Relative name. 21097 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21098 ac_top_srcdir=$ac_top_build_prefix$srcdir 21099 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21100esac 21101ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21102 21103 21104 case $ac_mode in 21105 :F) 21106 # 21107 # CONFIG_FILE 21108 # 21109 21110 case $INSTALL in 21111 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21112 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21113 esac 21114 ac_MKDIR_P=$MKDIR_P 21115 case $MKDIR_P in 21116 [\\/$]* | ?:[\\/]* ) ;; 21117 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21118 esac 21119_ACEOF 21120 21121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21122# If the template does not know about datarootdir, expand it. 21123# FIXME: This hack should be removed a few years after 2.60. 21124ac_datarootdir_hack=; ac_datarootdir_seen= 21125ac_sed_dataroot=' 21126/datarootdir/ { 21127 p 21128 q 21129} 21130/@datadir@/p 21131/@docdir@/p 21132/@infodir@/p 21133/@localedir@/p 21134/@mandir@/p' 21135case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21136*datarootdir*) ac_datarootdir_seen=yes;; 21137*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21139$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21140_ACEOF 21141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21142 ac_datarootdir_hack=' 21143 s&@datadir@&$datadir&g 21144 s&@docdir@&$docdir&g 21145 s&@infodir@&$infodir&g 21146 s&@localedir@&$localedir&g 21147 s&@mandir@&$mandir&g 21148 s&\\\${datarootdir}&$datarootdir&g' ;; 21149esac 21150_ACEOF 21151 21152# Neutralize VPATH when `$srcdir' = `.'. 21153# Shell code in configure.ac might set extrasub. 21154# FIXME: do we really want to maintain this feature? 21155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21156ac_sed_extra="$ac_vpsub 21157$extrasub 21158_ACEOF 21159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21160:t 21161/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21162s|@configure_input@|$ac_sed_conf_input|;t t 21163s&@top_builddir@&$ac_top_builddir_sub&;t t 21164s&@top_build_prefix@&$ac_top_build_prefix&;t t 21165s&@srcdir@&$ac_srcdir&;t t 21166s&@abs_srcdir@&$ac_abs_srcdir&;t t 21167s&@top_srcdir@&$ac_top_srcdir&;t t 21168s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21169s&@builddir@&$ac_builddir&;t t 21170s&@abs_builddir@&$ac_abs_builddir&;t t 21171s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21172s&@INSTALL@&$ac_INSTALL&;t t 21173s&@MKDIR_P@&$ac_MKDIR_P&;t t 21174$ac_datarootdir_hack 21175" 21176eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21177 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21178 21179test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21180 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21182 "$ac_tmp/out"`; test -z "$ac_out"; } && 21183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21184which seems to be undefined. Please make sure it is defined" >&5 21185$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21186which seems to be undefined. Please make sure it is defined" >&2;} 21187 21188 rm -f "$ac_tmp/stdin" 21189 case $ac_file in 21190 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21191 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21192 esac \ 21193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21194 ;; 21195 :H) 21196 # 21197 # CONFIG_HEADER 21198 # 21199 if test x"$ac_file" != x-; then 21200 { 21201 $as_echo "/* $configure_input */" \ 21202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21203 } >"$ac_tmp/config.h" \ 21204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21205 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21206 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21207$as_echo "$as_me: $ac_file is unchanged" >&6;} 21208 else 21209 rm -f "$ac_file" 21210 mv "$ac_tmp/config.h" "$ac_file" \ 21211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21212 fi 21213 else 21214 $as_echo "/* $configure_input */" \ 21215 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21216 || as_fn_error $? "could not create -" "$LINENO" 5 21217 fi 21218# Compute "$ac_file"'s index in $config_headers. 21219_am_arg="$ac_file" 21220_am_stamp_count=1 21221for _am_header in $config_headers :; do 21222 case $_am_header in 21223 $_am_arg | $_am_arg:* ) 21224 break ;; 21225 * ) 21226 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21227 esac 21228done 21229echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21230$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21231 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21232 X"$_am_arg" : 'X\(//\)$' \| \ 21233 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21234$as_echo X"$_am_arg" | 21235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21236 s//\1/ 21237 q 21238 } 21239 /^X\(\/\/\)[^/].*/{ 21240 s//\1/ 21241 q 21242 } 21243 /^X\(\/\/\)$/{ 21244 s//\1/ 21245 q 21246 } 21247 /^X\(\/\).*/{ 21248 s//\1/ 21249 q 21250 } 21251 s/.*/./; q'`/stamp-h$_am_stamp_count 21252 ;; 21253 21254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21255$as_echo "$as_me: executing $ac_file commands" >&6;} 21256 ;; 21257 esac 21258 21259 21260 case $ac_file$ac_mode in 21261 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21262 # Older Autoconf quotes --file arguments for eval, but not when files 21263 # are listed without --file. Let's play safe and only enable the eval 21264 # if we detect the quoting. 21265 case $CONFIG_FILES in 21266 *\'*) eval set x "$CONFIG_FILES" ;; 21267 *) set x $CONFIG_FILES ;; 21268 esac 21269 shift 21270 for mf 21271 do 21272 # Strip MF so we end up with the name of the file. 21273 mf=`echo "$mf" | sed -e 's/:.*$//'` 21274 # Check whether this is an Automake generated Makefile or not. 21275 # We used to match only the files named 'Makefile.in', but 21276 # some people rename them; so instead we look at the file content. 21277 # Grep'ing the first line is not enough: some people post-process 21278 # each Makefile.in and add a new line on top of each file to say so. 21279 # Grep'ing the whole file is not good either: AIX grep has a line 21280 # limit of 2048, but all sed's we know have understand at least 4000. 21281 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21282 dirpart=`$as_dirname -- "$mf" || 21283$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21284 X"$mf" : 'X\(//\)[^/]' \| \ 21285 X"$mf" : 'X\(//\)$' \| \ 21286 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21287$as_echo X"$mf" | 21288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21289 s//\1/ 21290 q 21291 } 21292 /^X\(\/\/\)[^/].*/{ 21293 s//\1/ 21294 q 21295 } 21296 /^X\(\/\/\)$/{ 21297 s//\1/ 21298 q 21299 } 21300 /^X\(\/\).*/{ 21301 s//\1/ 21302 q 21303 } 21304 s/.*/./; q'` 21305 else 21306 continue 21307 fi 21308 # Extract the definition of DEPDIR, am__include, and am__quote 21309 # from the Makefile without running 'make'. 21310 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21311 test -z "$DEPDIR" && continue 21312 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21313 test -z "$am__include" && continue 21314 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21315 # Find all dependency output files, they are included files with 21316 # $(DEPDIR) in their names. We invoke sed twice because it is the 21317 # simplest approach to changing $(DEPDIR) to its actual value in the 21318 # expansion. 21319 for file in `sed -n " 21320 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21322 # Make sure the directory exists. 21323 test -f "$dirpart/$file" && continue 21324 fdir=`$as_dirname -- "$file" || 21325$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21326 X"$file" : 'X\(//\)[^/]' \| \ 21327 X"$file" : 'X\(//\)$' \| \ 21328 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21329$as_echo X"$file" | 21330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21331 s//\1/ 21332 q 21333 } 21334 /^X\(\/\/\)[^/].*/{ 21335 s//\1/ 21336 q 21337 } 21338 /^X\(\/\/\)$/{ 21339 s//\1/ 21340 q 21341 } 21342 /^X\(\/\).*/{ 21343 s//\1/ 21344 q 21345 } 21346 s/.*/./; q'` 21347 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21348 # echo "creating $dirpart/$file" 21349 echo '# dummy' > "$dirpart/$file" 21350 done 21351 done 21352} 21353 ;; 21354 "libtool":C) 21355 21356 # See if we are running on zsh, and set the options which allow our 21357 # commands through without removal of \ escapes. 21358 if test -n "${ZSH_VERSION+set}" ; then 21359 setopt NO_GLOB_SUBST 21360 fi 21361 21362 cfgfile="${ofile}T" 21363 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21364 $RM "$cfgfile" 21365 21366 cat <<_LT_EOF >> "$cfgfile" 21367#! $SHELL 21368 21369# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21370# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21371# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21372# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21373# 21374# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21375# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21376# Foundation, Inc. 21377# Written by Gordon Matzigkeit, 1996 21378# 21379# This file is part of GNU Libtool. 21380# 21381# GNU Libtool is free software; you can redistribute it and/or 21382# modify it under the terms of the GNU General Public License as 21383# published by the Free Software Foundation; either version 2 of 21384# the License, or (at your option) any later version. 21385# 21386# As a special exception to the GNU General Public License, 21387# if you distribute this file as part of a program or library that 21388# is built using GNU Libtool, you may include this file under the 21389# same distribution terms that you use for the rest of that program. 21390# 21391# GNU Libtool is distributed in the hope that it will be useful, 21392# but WITHOUT ANY WARRANTY; without even the implied warranty of 21393# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21394# GNU General Public License for more details. 21395# 21396# You should have received a copy of the GNU General Public License 21397# along with GNU Libtool; see the file COPYING. If not, a copy 21398# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21399# obtained by writing to the Free Software Foundation, Inc., 21400# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21401 21402 21403# The names of the tagged configurations supported by this script. 21404available_tags="" 21405 21406# ### BEGIN LIBTOOL CONFIG 21407 21408# Which release of libtool.m4 was used? 21409macro_version=$macro_version 21410macro_revision=$macro_revision 21411 21412# Whether or not to build shared libraries. 21413build_libtool_libs=$enable_shared 21414 21415# Whether or not to build static libraries. 21416build_old_libs=$enable_static 21417 21418# What type of objects to build. 21419pic_mode=$pic_mode 21420 21421# Whether or not to optimize for fast installation. 21422fast_install=$enable_fast_install 21423 21424# Shell to use when invoking shell scripts. 21425SHELL=$lt_SHELL 21426 21427# An echo program that protects backslashes. 21428ECHO=$lt_ECHO 21429 21430# The PATH separator for the build system. 21431PATH_SEPARATOR=$lt_PATH_SEPARATOR 21432 21433# The host system. 21434host_alias=$host_alias 21435host=$host 21436host_os=$host_os 21437 21438# The build system. 21439build_alias=$build_alias 21440build=$build 21441build_os=$build_os 21442 21443# A sed program that does not truncate output. 21444SED=$lt_SED 21445 21446# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21447Xsed="\$SED -e 1s/^X//" 21448 21449# A grep program that handles long lines. 21450GREP=$lt_GREP 21451 21452# An ERE matcher. 21453EGREP=$lt_EGREP 21454 21455# A literal string matcher. 21456FGREP=$lt_FGREP 21457 21458# A BSD- or MS-compatible name lister. 21459NM=$lt_NM 21460 21461# Whether we need soft or hard links. 21462LN_S=$lt_LN_S 21463 21464# What is the maximum length of a command? 21465max_cmd_len=$max_cmd_len 21466 21467# Object file suffix (normally "o"). 21468objext=$ac_objext 21469 21470# Executable file suffix (normally ""). 21471exeext=$exeext 21472 21473# whether the shell understands "unset". 21474lt_unset=$lt_unset 21475 21476# turn spaces into newlines. 21477SP2NL=$lt_lt_SP2NL 21478 21479# turn newlines into spaces. 21480NL2SP=$lt_lt_NL2SP 21481 21482# convert \$build file names to \$host format. 21483to_host_file_cmd=$lt_cv_to_host_file_cmd 21484 21485# convert \$build files to toolchain format. 21486to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21487 21488# An object symbol dumper. 21489OBJDUMP=$lt_OBJDUMP 21490 21491# Method to check whether dependent libraries are shared objects. 21492deplibs_check_method=$lt_deplibs_check_method 21493 21494# Command to use when deplibs_check_method = "file_magic". 21495file_magic_cmd=$lt_file_magic_cmd 21496 21497# How to find potential files when deplibs_check_method = "file_magic". 21498file_magic_glob=$lt_file_magic_glob 21499 21500# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21501want_nocaseglob=$lt_want_nocaseglob 21502 21503# DLL creation program. 21504DLLTOOL=$lt_DLLTOOL 21505 21506# Command to associate shared and link libraries. 21507sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21508 21509# The archiver. 21510AR=$lt_AR 21511 21512# Flags to create an archive. 21513AR_FLAGS=$lt_AR_FLAGS 21514 21515# How to feed a file listing to the archiver. 21516archiver_list_spec=$lt_archiver_list_spec 21517 21518# A symbol stripping program. 21519STRIP=$lt_STRIP 21520 21521# Commands used to install an old-style archive. 21522RANLIB=$lt_RANLIB 21523old_postinstall_cmds=$lt_old_postinstall_cmds 21524old_postuninstall_cmds=$lt_old_postuninstall_cmds 21525 21526# Whether to use a lock for old archive extraction. 21527lock_old_archive_extraction=$lock_old_archive_extraction 21528 21529# A C compiler. 21530LTCC=$lt_CC 21531 21532# LTCC compiler flags. 21533LTCFLAGS=$lt_CFLAGS 21534 21535# Take the output of nm and produce a listing of raw symbols and C names. 21536global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21537 21538# Transform the output of nm in a proper C declaration. 21539global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21540 21541# Transform the output of nm in a C name address pair. 21542global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21543 21544# Transform the output of nm in a C name address pair when lib prefix is needed. 21545global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21546 21547# Specify filename containing input files for \$NM. 21548nm_file_list_spec=$lt_nm_file_list_spec 21549 21550# The root where to search for dependent libraries,and in which our libraries should be installed. 21551lt_sysroot=$lt_sysroot 21552 21553# The name of the directory that contains temporary libtool files. 21554objdir=$objdir 21555 21556# Used to examine libraries when file_magic_cmd begins with "file". 21557MAGIC_CMD=$MAGIC_CMD 21558 21559# Must we lock files when doing compilation? 21560need_locks=$lt_need_locks 21561 21562# Manifest tool. 21563MANIFEST_TOOL=$lt_MANIFEST_TOOL 21564 21565# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21566DSYMUTIL=$lt_DSYMUTIL 21567 21568# Tool to change global to local symbols on Mac OS X. 21569NMEDIT=$lt_NMEDIT 21570 21571# Tool to manipulate fat objects and archives on Mac OS X. 21572LIPO=$lt_LIPO 21573 21574# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21575OTOOL=$lt_OTOOL 21576 21577# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21578OTOOL64=$lt_OTOOL64 21579 21580# Old archive suffix (normally "a"). 21581libext=$libext 21582 21583# Shared library suffix (normally ".so"). 21584shrext_cmds=$lt_shrext_cmds 21585 21586# The commands to extract the exported symbol list from a shared archive. 21587extract_expsyms_cmds=$lt_extract_expsyms_cmds 21588 21589# Variables whose values should be saved in libtool wrapper scripts and 21590# restored at link time. 21591variables_saved_for_relink=$lt_variables_saved_for_relink 21592 21593# Do we need the "lib" prefix for modules? 21594need_lib_prefix=$need_lib_prefix 21595 21596# Do we need a version for libraries? 21597need_version=$need_version 21598 21599# Library versioning type. 21600version_type=$version_type 21601 21602# Shared library runtime path variable. 21603runpath_var=$runpath_var 21604 21605# Shared library path variable. 21606shlibpath_var=$shlibpath_var 21607 21608# Is shlibpath searched before the hard-coded library search path? 21609shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21610 21611# Format of library name prefix. 21612libname_spec=$lt_libname_spec 21613 21614# List of archive names. First name is the real one, the rest are links. 21615# The last name is the one that the linker finds with -lNAME 21616library_names_spec=$lt_library_names_spec 21617 21618# The coded name of the library, if different from the real name. 21619soname_spec=$lt_soname_spec 21620 21621# Permission mode override for installation of shared libraries. 21622install_override_mode=$lt_install_override_mode 21623 21624# Command to use after installation of a shared archive. 21625postinstall_cmds=$lt_postinstall_cmds 21626 21627# Command to use after uninstallation of a shared archive. 21628postuninstall_cmds=$lt_postuninstall_cmds 21629 21630# Commands used to finish a libtool library installation in a directory. 21631finish_cmds=$lt_finish_cmds 21632 21633# As "finish_cmds", except a single script fragment to be evaled but 21634# not shown. 21635finish_eval=$lt_finish_eval 21636 21637# Whether we should hardcode library paths into libraries. 21638hardcode_into_libs=$hardcode_into_libs 21639 21640# Compile-time system search path for libraries. 21641sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21642 21643# Run-time system search path for libraries. 21644sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21645 21646# Whether dlopen is supported. 21647dlopen_support=$enable_dlopen 21648 21649# Whether dlopen of programs is supported. 21650dlopen_self=$enable_dlopen_self 21651 21652# Whether dlopen of statically linked programs is supported. 21653dlopen_self_static=$enable_dlopen_self_static 21654 21655# Commands to strip libraries. 21656old_striplib=$lt_old_striplib 21657striplib=$lt_striplib 21658 21659 21660# The linker used to build libraries. 21661LD=$lt_LD 21662 21663# How to create reloadable object files. 21664reload_flag=$lt_reload_flag 21665reload_cmds=$lt_reload_cmds 21666 21667# Commands used to build an old-style archive. 21668old_archive_cmds=$lt_old_archive_cmds 21669 21670# A language specific compiler. 21671CC=$lt_compiler 21672 21673# Is the compiler the GNU compiler? 21674with_gcc=$GCC 21675 21676# Compiler flag to turn off builtin functions. 21677no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21678 21679# Additional compiler flags for building library objects. 21680pic_flag=$lt_lt_prog_compiler_pic 21681 21682# How to pass a linker flag through the compiler. 21683wl=$lt_lt_prog_compiler_wl 21684 21685# Compiler flag to prevent dynamic linking. 21686link_static_flag=$lt_lt_prog_compiler_static 21687 21688# Does compiler simultaneously support -c and -o options? 21689compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21690 21691# Whether or not to add -lc for building shared libraries. 21692build_libtool_need_lc=$archive_cmds_need_lc 21693 21694# Whether or not to disallow shared libs when runtime libs are static. 21695allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21696 21697# Compiler flag to allow reflexive dlopens. 21698export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21699 21700# Compiler flag to generate shared objects directly from archives. 21701whole_archive_flag_spec=$lt_whole_archive_flag_spec 21702 21703# Whether the compiler copes with passing no objects directly. 21704compiler_needs_object=$lt_compiler_needs_object 21705 21706# Create an old-style archive from a shared archive. 21707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21708 21709# Create a temporary old-style archive to link instead of a shared archive. 21710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21711 21712# Commands used to build a shared archive. 21713archive_cmds=$lt_archive_cmds 21714archive_expsym_cmds=$lt_archive_expsym_cmds 21715 21716# Commands used to build a loadable module if different from building 21717# a shared archive. 21718module_cmds=$lt_module_cmds 21719module_expsym_cmds=$lt_module_expsym_cmds 21720 21721# Whether we are building with GNU ld or not. 21722with_gnu_ld=$lt_with_gnu_ld 21723 21724# Flag that allows shared libraries with undefined symbols to be built. 21725allow_undefined_flag=$lt_allow_undefined_flag 21726 21727# Flag that enforces no undefined symbols. 21728no_undefined_flag=$lt_no_undefined_flag 21729 21730# Flag to hardcode \$libdir into a binary during linking. 21731# This must work even if \$libdir does not exist 21732hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21733 21734# Whether we need a single "-rpath" flag with a separated argument. 21735hardcode_libdir_separator=$lt_hardcode_libdir_separator 21736 21737# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21738# DIR into the resulting binary. 21739hardcode_direct=$hardcode_direct 21740 21741# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21742# DIR into the resulting binary and the resulting library dependency is 21743# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21744# library is relocated. 21745hardcode_direct_absolute=$hardcode_direct_absolute 21746 21747# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21748# into the resulting binary. 21749hardcode_minus_L=$hardcode_minus_L 21750 21751# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21752# into the resulting binary. 21753hardcode_shlibpath_var=$hardcode_shlibpath_var 21754 21755# Set to "yes" if building a shared library automatically hardcodes DIR 21756# into the library and all subsequent libraries and executables linked 21757# against it. 21758hardcode_automatic=$hardcode_automatic 21759 21760# Set to yes if linker adds runtime paths of dependent libraries 21761# to runtime path list. 21762inherit_rpath=$inherit_rpath 21763 21764# Whether libtool must link a program against all its dependency libraries. 21765link_all_deplibs=$link_all_deplibs 21766 21767# Set to "yes" if exported symbols are required. 21768always_export_symbols=$always_export_symbols 21769 21770# The commands to list exported symbols. 21771export_symbols_cmds=$lt_export_symbols_cmds 21772 21773# Symbols that should not be listed in the preloaded symbols. 21774exclude_expsyms=$lt_exclude_expsyms 21775 21776# Symbols that must always be exported. 21777include_expsyms=$lt_include_expsyms 21778 21779# Commands necessary for linking programs (against libraries) with templates. 21780prelink_cmds=$lt_prelink_cmds 21781 21782# Commands necessary for finishing linking programs. 21783postlink_cmds=$lt_postlink_cmds 21784 21785# Specify filename containing input files. 21786file_list_spec=$lt_file_list_spec 21787 21788# How to hardcode a shared library path into an executable. 21789hardcode_action=$hardcode_action 21790 21791# ### END LIBTOOL CONFIG 21792 21793_LT_EOF 21794 21795 case $host_os in 21796 aix3*) 21797 cat <<\_LT_EOF >> "$cfgfile" 21798# AIX sometimes has problems with the GCC collect2 program. For some 21799# reason, if we set the COLLECT_NAMES environment variable, the problems 21800# vanish in a puff of smoke. 21801if test "X${COLLECT_NAMES+set}" != Xset; then 21802 COLLECT_NAMES= 21803 export COLLECT_NAMES 21804fi 21805_LT_EOF 21806 ;; 21807 esac 21808 21809 21810ltmain="$ac_aux_dir/ltmain.sh" 21811 21812 21813 # We use sed instead of cat because bash on DJGPP gets confused if 21814 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21815 # text mode, it properly converts lines to CR/LF. This bash problem 21816 # is reportedly fixed, but why not run on old versions too? 21817 sed '$q' "$ltmain" >> "$cfgfile" \ 21818 || (rm -f "$cfgfile"; exit 1) 21819 21820 if test x"$xsi_shell" = xyes; then 21821 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21822func_dirname ()\ 21823{\ 21824\ case ${1} in\ 21825\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21826\ * ) func_dirname_result="${3}" ;;\ 21827\ esac\ 21828} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21829 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21831test 0 -eq $? || _lt_function_replace_fail=: 21832 21833 21834 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21835func_basename ()\ 21836{\ 21837\ func_basename_result="${1##*/}"\ 21838} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21839 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21841test 0 -eq $? || _lt_function_replace_fail=: 21842 21843 21844 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21845func_dirname_and_basename ()\ 21846{\ 21847\ case ${1} in\ 21848\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21849\ * ) func_dirname_result="${3}" ;;\ 21850\ esac\ 21851\ func_basename_result="${1##*/}"\ 21852} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21853 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21855test 0 -eq $? || _lt_function_replace_fail=: 21856 21857 21858 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21859func_stripname ()\ 21860{\ 21861\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21862\ # positional parameters, so assign one to ordinary parameter first.\ 21863\ func_stripname_result=${3}\ 21864\ func_stripname_result=${func_stripname_result#"${1}"}\ 21865\ func_stripname_result=${func_stripname_result%"${2}"}\ 21866} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21867 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21869test 0 -eq $? || _lt_function_replace_fail=: 21870 21871 21872 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21873func_split_long_opt ()\ 21874{\ 21875\ func_split_long_opt_name=${1%%=*}\ 21876\ func_split_long_opt_arg=${1#*=}\ 21877} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21878 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21880test 0 -eq $? || _lt_function_replace_fail=: 21881 21882 21883 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21884func_split_short_opt ()\ 21885{\ 21886\ func_split_short_opt_arg=${1#??}\ 21887\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21888} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21889 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21891test 0 -eq $? || _lt_function_replace_fail=: 21892 21893 21894 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21895func_lo2o ()\ 21896{\ 21897\ case ${1} in\ 21898\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21899\ *) func_lo2o_result=${1} ;;\ 21900\ esac\ 21901} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21902 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21904test 0 -eq $? || _lt_function_replace_fail=: 21905 21906 21907 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21908func_xform ()\ 21909{\ 21910 func_xform_result=${1%.*}.lo\ 21911} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21912 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21914test 0 -eq $? || _lt_function_replace_fail=: 21915 21916 21917 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21918func_arith ()\ 21919{\ 21920 func_arith_result=$(( $* ))\ 21921} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21922 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21924test 0 -eq $? || _lt_function_replace_fail=: 21925 21926 21927 sed -e '/^func_len ()$/,/^} # func_len /c\ 21928func_len ()\ 21929{\ 21930 func_len_result=${#1}\ 21931} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21932 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21934test 0 -eq $? || _lt_function_replace_fail=: 21935 21936fi 21937 21938if test x"$lt_shell_append" = xyes; then 21939 sed -e '/^func_append ()$/,/^} # func_append /c\ 21940func_append ()\ 21941{\ 21942 eval "${1}+=\\${2}"\ 21943} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21944 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21946test 0 -eq $? || _lt_function_replace_fail=: 21947 21948 21949 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21950func_append_quoted ()\ 21951{\ 21952\ func_quote_for_eval "${2}"\ 21953\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21954} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21955 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21957test 0 -eq $? || _lt_function_replace_fail=: 21958 21959 21960 # Save a `func_append' function call where possible by direct use of '+=' 21961 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21962 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21964 test 0 -eq $? || _lt_function_replace_fail=: 21965else 21966 # Save a `func_append' function call even when '+=' is not available 21967 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21968 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21970 test 0 -eq $? || _lt_function_replace_fail=: 21971fi 21972 21973if test x"$_lt_function_replace_fail" = x":"; then 21974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21975$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21976fi 21977 21978 21979 mv -f "$cfgfile" "$ofile" || 21980 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21981 chmod +x "$ofile" 21982 21983 ;; 21984 21985 esac 21986done # for ac_tag 21987 21988 21989as_fn_exit 0 21990_ACEOF 21991ac_clean_files=$ac_clean_files_save 21992 21993test $ac_write_fail = 0 || 21994 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21995 21996 21997# configure is writing to config.log, and then calls config.status. 21998# config.status does its own redirection, appending to config.log. 21999# Unfortunately, on DOS this fails, as config.log is still kept open 22000# by configure, so config.status won't be able to write to it; its 22001# output is simply discarded. So we exec the FD to /dev/null, 22002# effectively closing config.log, so it can be properly (re)opened and 22003# appended to by config.status. When coming back to configure, we 22004# need to make the FD available again. 22005if test "$no_create" != yes; then 22006 ac_cs_success=: 22007 ac_config_status_args= 22008 test "$silent" = yes && 22009 ac_config_status_args="$ac_config_status_args --quiet" 22010 exec 5>/dev/null 22011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22012 exec 5>>config.log 22013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22014 # would make configure fail if this is the last instruction. 22015 $ac_cs_success || as_fn_exit 1 22016fi 22017if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22019$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22020fi 22021 22022