configure revision a3bd7f05
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXt 1.2.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXt/issues>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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://gitlab.freedesktop.org/xorg/lib/libXt/issues 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='libXt' 653PACKAGE_TARNAME='libXt' 654PACKAGE_VERSION='1.2.1' 655PACKAGE_STRING='libXt 1.2.1' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXt/issues' 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 700ERRORDBDIR 701STRINGSABIOPTIONS 702appdefaultdir 703XFILESEARCHPATHDEFAULT 704MALLOC_DEBUG_ENV 705HAVE_GLIB_FALSE 706HAVE_GLIB_TRUE 707GLIB_LIBS 708GLIB_CFLAGS 709ENABLE_UNIT_TESTS_FALSE 710ENABLE_UNIT_TESTS_TRUE 711XORG_MALLOC_DEBUG_ENV 712LDFLAGS_FOR_BUILD 713CFLAGS_FOR_BUILD 714CPPFLAGS_FOR_BUILD 715CC_FOR_BUILD 716XT_LIBS 717XT_CFLAGS 718HAVE_PERL_FALSE 719HAVE_PERL_TRUE 720PERL 721TRADITIONALCPPFLAGS 722RAWCPPFLAGS 723RAWCPP 724HAVE_STYLESHEETS_FALSE 725HAVE_STYLESHEETS_TRUE 726XSL_STYLESHEET 727STYLESHEET_SRCDIR 728XORG_SGML_PATH 729HAVE_XSLTPROC_FALSE 730HAVE_XSLTPROC_TRUE 731XSLTPROC 732HAVE_FOP_FALSE 733HAVE_FOP_TRUE 734FOP 735HAVE_XMLTO_FALSE 736HAVE_XMLTO_TRUE 737HAVE_XMLTO_TEXT_FALSE 738HAVE_XMLTO_TEXT_TRUE 739XMLTO 740ENABLE_SPECS_FALSE 741ENABLE_SPECS_TRUE 742XTMALLOC_ZERO_CFLAGS 743XMALLOC_ZERO_CFLAGS 744MALLOC_ZERO_CFLAGS 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_LIBDIR 761PKG_CONFIG_PATH 762PKG_CONFIG 763CHANGELOG_CMD 764STRICT_CFLAGS 765CWARNFLAGS 766BASE_CFLAGS 767CPP 768LT_SYS_LIBRARY_PATH 769OTOOL64 770OTOOL 771LIPO 772NMEDIT 773DSYMUTIL 774MANIFEST_TOOL 775RANLIB 776ac_ct_AR 777AR 778DLLTOOL 779OBJDUMP 780LN_S 781NM 782ac_ct_DUMPBIN 783DUMPBIN 784LD 785FGREP 786EGREP 787GREP 788SED 789am__fastdepCC_FALSE 790am__fastdepCC_TRUE 791CCDEPMODE 792am__nodep 793AMDEPBACKSLASH 794AMDEP_FALSE 795AMDEP_TRUE 796am__include 797DEPDIR 798OBJEXT 799EXEEXT 800ac_ct_CC 801CPPFLAGS 802LDFLAGS 803CFLAGS 804CC 805host_os 806host_vendor 807host_cpu 808host 809build_os 810build_vendor 811build_cpu 812build 813LIBTOOL 814AM_BACKSLASH 815AM_DEFAULT_VERBOSITY 816AM_DEFAULT_V 817AM_V 818am__untar 819am__tar 820AMTAR 821am__leading_dot 822SET_MAKE 823AWK 824mkdir_p 825MKDIR_P 826INSTALL_STRIP_PROGRAM 827STRIP 828install_sh 829MAKEINFO 830AUTOHEADER 831AUTOMAKE 832AUTOCONF 833ACLOCAL 834VERSION 835PACKAGE 836CYGPATH_W 837am__isrc 838INSTALL_DATA 839INSTALL_SCRIPT 840INSTALL_PROGRAM 841target_alias 842host_alias 843build_alias 844LIBS 845ECHO_T 846ECHO_N 847ECHO_C 848DEFS 849mandir 850localedir 851libdir 852psdir 853pdfdir 854dvidir 855htmldir 856infodir 857docdir 858oldincludedir 859includedir 860runstatedir 861localstatedir 862sharedstatedir 863sysconfdir 864datadir 865datarootdir 866libexecdir 867sbindir 868bindir 869program_transform_name 870prefix 871exec_prefix 872PACKAGE_URL 873PACKAGE_BUGREPORT 874PACKAGE_STRING 875PACKAGE_VERSION 876PACKAGE_TARNAME 877PACKAGE_NAME 878PATH_SEPARATOR 879SHELL 880am__quote' 881ac_subst_files='' 882ac_user_opts=' 883enable_option_checking 884enable_silent_rules 885enable_shared 886enable_static 887with_pic 888enable_fast_install 889with_aix_soname 890enable_dependency_tracking 891with_gnu_ld 892with_sysroot 893enable_libtool_lock 894enable_selective_werror 895enable_strict_compilation 896enable_malloc0returnsnull 897enable_specs 898with_xmlto 899with_fop 900with_xsltproc 901with_perl 902enable_xkb 903enable_const 904enable_geo_tattler 905enable_unit_tests 906with_glib 907with_xfile_search_path 908with_appdefaultdir 909' 910 ac_precious_vars='build_alias 911host_alias 912target_alias 913CC 914CFLAGS 915LDFLAGS 916LIBS 917CPPFLAGS 918LT_SYS_LIBRARY_PATH 919CPP 920PKG_CONFIG 921PKG_CONFIG_PATH 922PKG_CONFIG_LIBDIR 923XMLTO 924FOP 925XSLTPROC 926PERL 927XT_CFLAGS 928XT_LIBS 929XORG_MALLOC_DEBUG_ENV 930GLIB_CFLAGS 931GLIB_LIBS' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937ac_unrecognized_opts= 938ac_unrecognized_sep= 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970runstatedir='${localstatedir}/run' 971includedir='${prefix}/include' 972oldincludedir='/usr/include' 973docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 974infodir='${datarootdir}/info' 975htmldir='${docdir}' 976dvidir='${docdir}' 977pdfdir='${docdir}' 978psdir='${docdir}' 979libdir='${exec_prefix}/lib' 980localedir='${datarootdir}/locale' 981mandir='${datarootdir}/man' 982 983ac_prev= 984ac_dashdash= 985for ac_option 986do 987 # If the previous option needs an argument, assign it. 988 if test -n "$ac_prev"; then 989 eval $ac_prev=\$ac_option 990 ac_prev= 991 continue 992 fi 993 994 case $ac_option in 995 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 996 *=) ac_optarg= ;; 997 *) ac_optarg=yes ;; 998 esac 999 1000 # Accept the important Cygnus configure options, so we can diagnose typos. 1001 1002 case $ac_dashdash$ac_option in 1003 --) 1004 ac_dashdash=yes ;; 1005 1006 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1007 ac_prev=bindir ;; 1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1009 bindir=$ac_optarg ;; 1010 1011 -build | --build | --buil | --bui | --bu) 1012 ac_prev=build_alias ;; 1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1014 build_alias=$ac_optarg ;; 1015 1016 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1018 ac_prev=cache_file ;; 1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1021 cache_file=$ac_optarg ;; 1022 1023 --config-cache | -C) 1024 cache_file=config.cache ;; 1025 1026 -datadir | --datadir | --datadi | --datad) 1027 ac_prev=datadir ;; 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1029 datadir=$ac_optarg ;; 1030 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1032 | --dataroo | --dataro | --datar) 1033 ac_prev=datarootdir ;; 1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1036 datarootdir=$ac_optarg ;; 1037 1038 -disable-* | --disable-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 as_fn_error $? "invalid feature name: $ac_useropt" 1043 ac_useropt_orig=$ac_useropt 1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1045 case $ac_user_opts in 1046 *" 1047"enable_$ac_useropt" 1048"*) ;; 1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1050 ac_unrecognized_sep=', ';; 1051 esac 1052 eval enable_$ac_useropt=no ;; 1053 1054 -docdir | --docdir | --docdi | --doc | --do) 1055 ac_prev=docdir ;; 1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1057 docdir=$ac_optarg ;; 1058 1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1060 ac_prev=dvidir ;; 1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1062 dvidir=$ac_optarg ;; 1063 1064 -enable-* | --enable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 as_fn_error $? "invalid feature name: $ac_useropt" 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=\$ac_optarg ;; 1079 1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1082 | --exec | --exe | --ex) 1083 ac_prev=exec_prefix ;; 1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1086 | --exec=* | --exe=* | --ex=*) 1087 exec_prefix=$ac_optarg ;; 1088 1089 -gas | --gas | --ga | --g) 1090 # Obsolete; use --with-gas. 1091 with_gas=yes ;; 1092 1093 -help | --help | --hel | --he | -h) 1094 ac_init_help=long ;; 1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1096 ac_init_help=recursive ;; 1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1098 ac_init_help=short ;; 1099 1100 -host | --host | --hos | --ho) 1101 ac_prev=host_alias ;; 1102 -host=* | --host=* | --hos=* | --ho=*) 1103 host_alias=$ac_optarg ;; 1104 1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1106 ac_prev=htmldir ;; 1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1108 | --ht=*) 1109 htmldir=$ac_optarg ;; 1110 1111 -includedir | --includedir | --includedi | --included | --include \ 1112 | --includ | --inclu | --incl | --inc) 1113 ac_prev=includedir ;; 1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1115 | --includ=* | --inclu=* | --incl=* | --inc=*) 1116 includedir=$ac_optarg ;; 1117 1118 -infodir | --infodir | --infodi | --infod | --info | --inf) 1119 ac_prev=infodir ;; 1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1121 infodir=$ac_optarg ;; 1122 1123 -libdir | --libdir | --libdi | --libd) 1124 ac_prev=libdir ;; 1125 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1126 libdir=$ac_optarg ;; 1127 1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1129 | --libexe | --libex | --libe) 1130 ac_prev=libexecdir ;; 1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1132 | --libexe=* | --libex=* | --libe=*) 1133 libexecdir=$ac_optarg ;; 1134 1135 -localedir | --localedir | --localedi | --localed | --locale) 1136 ac_prev=localedir ;; 1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1138 localedir=$ac_optarg ;; 1139 1140 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1141 | --localstate | --localstat | --localsta | --localst | --locals) 1142 ac_prev=localstatedir ;; 1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1145 localstatedir=$ac_optarg ;; 1146 1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1148 ac_prev=mandir ;; 1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1150 mandir=$ac_optarg ;; 1151 1152 -nfp | --nfp | --nf) 1153 # Obsolete; use --without-fp. 1154 with_fp=no ;; 1155 1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1157 | --no-cr | --no-c | -n) 1158 no_create=yes ;; 1159 1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1162 no_recursion=yes ;; 1163 1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1166 | --oldin | --oldi | --old | --ol | --o) 1167 ac_prev=oldincludedir ;; 1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1171 oldincludedir=$ac_optarg ;; 1172 1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1174 ac_prev=prefix ;; 1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1176 prefix=$ac_optarg ;; 1177 1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1179 | --program-pre | --program-pr | --program-p) 1180 ac_prev=program_prefix ;; 1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1183 program_prefix=$ac_optarg ;; 1184 1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1186 | --program-suf | --program-su | --program-s) 1187 ac_prev=program_suffix ;; 1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1190 program_suffix=$ac_optarg ;; 1191 1192 -program-transform-name | --program-transform-name \ 1193 | --program-transform-nam | --program-transform-na \ 1194 | --program-transform-n | --program-transform- \ 1195 | --program-transform | --program-transfor \ 1196 | --program-transfo | --program-transf \ 1197 | --program-trans | --program-tran \ 1198 | --progr-tra | --program-tr | --program-t) 1199 ac_prev=program_transform_name ;; 1200 -program-transform-name=* | --program-transform-name=* \ 1201 | --program-transform-nam=* | --program-transform-na=* \ 1202 | --program-transform-n=* | --program-transform-=* \ 1203 | --program-transform=* | --program-transfor=* \ 1204 | --program-transfo=* | --program-transf=* \ 1205 | --program-trans=* | --program-tran=* \ 1206 | --progr-tra=* | --program-tr=* | --program-t=*) 1207 program_transform_name=$ac_optarg ;; 1208 1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1210 ac_prev=pdfdir ;; 1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1212 pdfdir=$ac_optarg ;; 1213 1214 -psdir | --psdir | --psdi | --psd | --ps) 1215 ac_prev=psdir ;; 1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1217 psdir=$ac_optarg ;; 1218 1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1220 | -silent | --silent | --silen | --sile | --sil) 1221 silent=yes ;; 1222 1223 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1224 | --runstate | --runstat | --runsta | --runst | --runs \ 1225 | --run | --ru | --r) 1226 ac_prev=runstatedir ;; 1227 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1228 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1229 | --run=* | --ru=* | --r=*) 1230 runstatedir=$ac_optarg ;; 1231 1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1233 ac_prev=sbindir ;; 1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1235 | --sbi=* | --sb=*) 1236 sbindir=$ac_optarg ;; 1237 1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1240 | --sharedst | --shareds | --shared | --share | --shar \ 1241 | --sha | --sh) 1242 ac_prev=sharedstatedir ;; 1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1246 | --sha=* | --sh=*) 1247 sharedstatedir=$ac_optarg ;; 1248 1249 -site | --site | --sit) 1250 ac_prev=site ;; 1251 -site=* | --site=* | --sit=*) 1252 site=$ac_optarg ;; 1253 1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1255 ac_prev=srcdir ;; 1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1257 srcdir=$ac_optarg ;; 1258 1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1260 | --syscon | --sysco | --sysc | --sys | --sy) 1261 ac_prev=sysconfdir ;; 1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1264 sysconfdir=$ac_optarg ;; 1265 1266 -target | --target | --targe | --targ | --tar | --ta | --t) 1267 ac_prev=target_alias ;; 1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1269 target_alias=$ac_optarg ;; 1270 1271 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1272 verbose=yes ;; 1273 1274 -version | --version | --versio | --versi | --vers | -V) 1275 ac_init_version=: ;; 1276 1277 -with-* | --with-*) 1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1279 # Reject names that are not valid shell variable names. 1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1281 as_fn_error $? "invalid package name: $ac_useropt" 1282 ac_useropt_orig=$ac_useropt 1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1284 case $ac_user_opts in 1285 *" 1286"with_$ac_useropt" 1287"*) ;; 1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1289 ac_unrecognized_sep=', ';; 1290 esac 1291 eval with_$ac_useropt=\$ac_optarg ;; 1292 1293 -without-* | --without-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 as_fn_error $? "invalid package name: $ac_useropt" 1298 ac_useropt_orig=$ac_useropt 1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1300 case $ac_user_opts in 1301 *" 1302"with_$ac_useropt" 1303"*) ;; 1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1305 ac_unrecognized_sep=', ';; 1306 esac 1307 eval with_$ac_useropt=no ;; 1308 1309 --x) 1310 # Obsolete; use --with-x. 1311 with_x=yes ;; 1312 1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1314 | --x-incl | --x-inc | --x-in | --x-i) 1315 ac_prev=x_includes ;; 1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1318 x_includes=$ac_optarg ;; 1319 1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1322 ac_prev=x_libraries ;; 1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1325 x_libraries=$ac_optarg ;; 1326 1327 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1328Try \`$0 --help' for more information" 1329 ;; 1330 1331 *=*) 1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1333 # Reject names that are not valid shell variable names. 1334 case $ac_envvar in #( 1335 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1336 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1337 esac 1338 eval $ac_envvar=\$ac_optarg 1339 export $ac_envvar ;; 1340 1341 *) 1342 # FIXME: should be removed in autoconf 3.0. 1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1346 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1347 ;; 1348 1349 esac 1350done 1351 1352if test -n "$ac_prev"; then 1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1354 as_fn_error $? "missing argument to $ac_option" 1355fi 1356 1357if test -n "$ac_unrecognized_opts"; then 1358 case $enable_option_checking in 1359 no) ;; 1360 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1362 esac 1363fi 1364 1365# Check all directory arguments for consistency. 1366for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1367 datadir sysconfdir sharedstatedir localstatedir includedir \ 1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1369 libdir localedir mandir runstatedir 1370do 1371 eval ac_val=\$$ac_var 1372 # Remove trailing slashes. 1373 case $ac_val in 1374 */ ) 1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1376 eval $ac_var=\$ac_val;; 1377 esac 1378 # Be sure to have absolute directory names. 1379 case $ac_val in 1380 [\\/$]* | ?:[\\/]* ) continue;; 1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1382 esac 1383 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1384done 1385 1386# There might be people who depend on the old broken behavior: `$host' 1387# used to hold the argument of --host etc. 1388# FIXME: To remove some day. 1389build=$build_alias 1390host=$host_alias 1391target=$target_alias 1392 1393# FIXME: To remove some day. 1394if test "x$host_alias" != x; then 1395 if test "x$build_alias" = x; then 1396 cross_compiling=maybe 1397 elif test "x$build_alias" != "x$host_alias"; then 1398 cross_compiling=yes 1399 fi 1400fi 1401 1402ac_tool_prefix= 1403test -n "$host_alias" && ac_tool_prefix=$host_alias- 1404 1405test "$silent" = yes && exec 6>/dev/null 1406 1407 1408ac_pwd=`pwd` && test -n "$ac_pwd" && 1409ac_ls_di=`ls -di .` && 1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1411 as_fn_error $? "working directory cannot be determined" 1412test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1413 as_fn_error $? "pwd does not report name of working directory" 1414 1415 1416# Find the source files, if location was not specified. 1417if test -z "$srcdir"; then 1418 ac_srcdir_defaulted=yes 1419 # Try the directory containing this script, then the parent directory. 1420 ac_confdir=`$as_dirname -- "$as_myself" || 1421$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1422 X"$as_myself" : 'X\(//\)[^/]' \| \ 1423 X"$as_myself" : 'X\(//\)$' \| \ 1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1425$as_echo X"$as_myself" | 1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\/\)[^/].*/{ 1431 s//\1/ 1432 q 1433 } 1434 /^X\(\/\/\)$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\).*/{ 1439 s//\1/ 1440 q 1441 } 1442 s/.*/./; q'` 1443 srcdir=$ac_confdir 1444 if test ! -r "$srcdir/$ac_unique_file"; then 1445 srcdir=.. 1446 fi 1447else 1448 ac_srcdir_defaulted=no 1449fi 1450if test ! -r "$srcdir/$ac_unique_file"; then 1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1452 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1453fi 1454ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1455ac_abs_confdir=`( 1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1457 pwd)` 1458# When building in place, set srcdir=. 1459if test "$ac_abs_confdir" = "$ac_pwd"; then 1460 srcdir=. 1461fi 1462# Remove unnecessary trailing slashes from srcdir. 1463# Double slashes in file names in object file debugging info 1464# mess up M-x gdb in Emacs. 1465case $srcdir in 1466*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1467esac 1468for ac_var in $ac_precious_vars; do 1469 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1470 eval ac_env_${ac_var}_value=\$${ac_var} 1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1472 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1473done 1474 1475# 1476# Report the --help message. 1477# 1478if test "$ac_init_help" = "long"; then 1479 # Omit some internal or obsolete options to make the list less imposing. 1480 # This message is too long to be a string in the A/UX 3.1 sh. 1481 cat <<_ACEOF 1482\`configure' configures libXt 1.2.1 to adapt to many kinds of systems. 1483 1484Usage: $0 [OPTION]... [VAR=VALUE]... 1485 1486To assign environment variables (e.g., CC, CFLAGS...), specify them as 1487VAR=VALUE. See below for descriptions of some of the useful variables. 1488 1489Defaults for the options are specified in brackets. 1490 1491Configuration: 1492 -h, --help display this help and exit 1493 --help=short display options specific to this package 1494 --help=recursive display the short help of all the included packages 1495 -V, --version display version information and exit 1496 -q, --quiet, --silent do not print \`checking ...' messages 1497 --cache-file=FILE cache test results in FILE [disabled] 1498 -C, --config-cache alias for \`--cache-file=config.cache' 1499 -n, --no-create do not create output files 1500 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1501 1502Installation directories: 1503 --prefix=PREFIX install architecture-independent files in PREFIX 1504 [$ac_default_prefix] 1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1506 [PREFIX] 1507 1508By default, \`make install' will install all the files in 1509\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1510an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1511for instance \`--prefix=\$HOME'. 1512 1513For better control, use the options below. 1514 1515Fine tuning of the installation directories: 1516 --bindir=DIR user executables [EPREFIX/bin] 1517 --sbindir=DIR system admin executables [EPREFIX/sbin] 1518 --libexecdir=DIR program executables [EPREFIX/libexec] 1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1522 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1523 --libdir=DIR object code libraries [EPREFIX/lib] 1524 --includedir=DIR C header files [PREFIX/include] 1525 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1528 --infodir=DIR info documentation [DATAROOTDIR/info] 1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1530 --mandir=DIR man documentation [DATAROOTDIR/man] 1531 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt] 1532 --htmldir=DIR html documentation [DOCDIR] 1533 --dvidir=DIR dvi documentation [DOCDIR] 1534 --pdfdir=DIR pdf documentation [DOCDIR] 1535 --psdir=DIR ps documentation [DOCDIR] 1536_ACEOF 1537 1538 cat <<\_ACEOF 1539 1540Program names: 1541 --program-prefix=PREFIX prepend PREFIX to installed program names 1542 --program-suffix=SUFFIX append SUFFIX to installed program names 1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1544 1545System types: 1546 --build=BUILD configure for building on BUILD [guessed] 1547 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1548_ACEOF 1549fi 1550 1551if test -n "$ac_init_help"; then 1552 case $ac_init_help in 1553 short | recursive ) echo "Configuration of libXt 1.2.1:";; 1554 esac 1555 cat <<\_ACEOF 1556 1557Optional Features: 1558 --disable-option-checking ignore unrecognized --enable/--with options 1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1561 --enable-silent-rules less verbose build output (undo: "make V=1") 1562 --disable-silent-rules verbose build output (undo: "make V=0") 1563 --enable-shared[=PKGS] build shared libraries [default=yes] 1564 --enable-static[=PKGS] build static libraries [default=yes] 1565 --enable-fast-install[=PKGS] 1566 optimize for fast installation [default=yes] 1567 --enable-dependency-tracking 1568 do not reject slow dependency extractors 1569 --disable-dependency-tracking 1570 speeds up one-time build 1571 --disable-libtool-lock avoid locking (might break parallel builds) 1572 --disable-selective-werror 1573 Turn off selective compiler errors. (default: 1574 enabled) 1575 --enable-strict-compilation 1576 Enable all warnings from compiler and make them 1577 errors (default: disabled) 1578 --enable-malloc0returnsnull 1579 malloc(0) returns NULL (default: auto) 1580 --enable-specs Enable building the specs (default: yes) 1581 --disable-xkb Disable XKB support 1582 --disable-const Disable const-support 1583 --enable-geo-tattler Enable geo-tattler traces 1584 --enable-unit-tests Enable building unit test cases (default: auto) 1585 1586Optional Packages: 1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1590 both] 1591 --with-aix-soname=aix|svr4|both 1592 shared library versioning (aka "SONAME") variant to 1593 provide on AIX, [default=aix]. 1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1595 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1596 compiler's sysroot if not specified). 1597 --with-xmlto Use xmlto to regenerate documentation (default: 1598 auto) 1599 --with-fop Use fop to regenerate documentation (default: auto) 1600 --with-xsltproc Use xsltproc for the transformation of XML documents 1601 (default: auto) 1602 --with-perl Use perl for extracting information from files 1603 (default: auto) 1604 --with-glib Use GLib library for unit testing (default: auto) 1605 --with-xfile-search-path=<path> 1606 Set path to search for app-defaults and other files 1607 --with-appdefaultdir=<path> 1608 Set app-default directory (default: 1609 ${datadir}/X11/app-defaults) 1610 1611Some influential environment variables: 1612 CC C compiler command 1613 CFLAGS C compiler flags 1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1615 nonstandard directory <lib dir> 1616 LIBS libraries to pass to the linker, e.g. -l<library> 1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1618 you have headers in a nonstandard directory <include dir> 1619 LT_SYS_LIBRARY_PATH 1620 User-defined run-time library search path. 1621 CPP C preprocessor 1622 PKG_CONFIG path to pkg-config utility 1623 PKG_CONFIG_PATH 1624 directories to add to pkg-config's search path 1625 PKG_CONFIG_LIBDIR 1626 path overriding pkg-config's built-in search path 1627 XMLTO Path to xmlto command 1628 FOP Path to fop command 1629 XSLTPROC Path to xsltproc command 1630 PERL Path to perl command 1631 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1632 XT_LIBS linker flags for XT, overriding pkg-config 1633 XORG_MALLOC_DEBUG_ENV 1634 Environment variables to enable memory checking in tests 1635 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1636 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1637 1638Use these variables to override the choices made by `configure' or to help 1639it to find libraries and programs with nonstandard names/locations. 1640 1641Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXt/issues>. 1642_ACEOF 1643ac_status=$? 1644fi 1645 1646if test "$ac_init_help" = "recursive"; then 1647 # If there are subdirs, report their specific --help. 1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1649 test -d "$ac_dir" || 1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1651 continue 1652 ac_builddir=. 1653 1654case "$ac_dir" in 1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1656*) 1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1658 # A ".." for each directory in $ac_dir_suffix. 1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1660 case $ac_top_builddir_sub in 1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1663 esac ;; 1664esac 1665ac_abs_top_builddir=$ac_pwd 1666ac_abs_builddir=$ac_pwd$ac_dir_suffix 1667# for backward compatibility: 1668ac_top_builddir=$ac_top_build_prefix 1669 1670case $srcdir in 1671 .) # We are building in place. 1672 ac_srcdir=. 1673 ac_top_srcdir=$ac_top_builddir_sub 1674 ac_abs_top_srcdir=$ac_pwd ;; 1675 [\\/]* | ?:[\\/]* ) # Absolute name. 1676 ac_srcdir=$srcdir$ac_dir_suffix; 1677 ac_top_srcdir=$srcdir 1678 ac_abs_top_srcdir=$srcdir ;; 1679 *) # Relative name. 1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1681 ac_top_srcdir=$ac_top_build_prefix$srcdir 1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1683esac 1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1685 1686 cd "$ac_dir" || { ac_status=$?; continue; } 1687 # Check for guested configure. 1688 if test -f "$ac_srcdir/configure.gnu"; then 1689 echo && 1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1691 elif test -f "$ac_srcdir/configure"; then 1692 echo && 1693 $SHELL "$ac_srcdir/configure" --help=recursive 1694 else 1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1696 fi || ac_status=$? 1697 cd "$ac_pwd" || { ac_status=$?; break; } 1698 done 1699fi 1700 1701test -n "$ac_init_help" && exit $ac_status 1702if $ac_init_version; then 1703 cat <<\_ACEOF 1704libXt configure 1.2.1 1705generated by GNU Autoconf 2.69 1706 1707Copyright (C) 2012 Free Software Foundation, Inc. 1708This configure script is free software; the Free Software Foundation 1709gives unlimited permission to copy, distribute and modify it. 1710_ACEOF 1711 exit 1712fi 1713 1714## ------------------------ ## 1715## Autoconf initialization. ## 1716## ------------------------ ## 1717 1718# ac_fn_c_try_compile LINENO 1719# -------------------------- 1720# Try to compile conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_compile () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext 1725 if { { ac_try="$ac_compile" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_compile") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest.$ac_objext; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=1 1791fi 1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1794 # interfere with the next link command; also delete a directory that is 1795 # left behind by Apple's compiler. We do this before executing the actions. 1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_link 1801 1802# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1803# ------------------------------------------------------- 1804# Tests whether HEADER exists and can be compiled using the include files in 1805# INCLUDES, setting the cache variable VAR accordingly. 1806ac_fn_c_check_header_compile () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813else 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816$4 1817#include <$2> 1818_ACEOF 1819if ac_fn_c_try_compile "$LINENO"; then : 1820 eval "$3=yes" 1821else 1822 eval "$3=no" 1823fi 1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1825fi 1826eval ac_res=\$$3 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1828$as_echo "$ac_res" >&6; } 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 1831} # ac_fn_c_check_header_compile 1832 1833# ac_fn_c_try_cpp LINENO 1834# ---------------------- 1835# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1836ac_fn_c_try_cpp () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 if { { ac_try="$ac_cpp conftest.$ac_ext" 1840case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1847 ac_status=$? 1848 if test -s conftest.err; then 1849 grep -v '^ *+' conftest.err >conftest.er1 1850 cat conftest.er1 >&5 1851 mv -f conftest.er1 conftest.err 1852 fi 1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1854 test $ac_status = 0; } > conftest.i && { 1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1856 test ! -s conftest.err 1857 }; then : 1858 ac_retval=0 1859else 1860 $as_echo "$as_me: failed program was:" >&5 1861sed 's/^/| /' conftest.$ac_ext >&5 1862 1863 ac_retval=1 1864fi 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 as_fn_set_status $ac_retval 1867 1868} # ac_fn_c_try_cpp 1869 1870# ac_fn_c_try_run LINENO 1871# ---------------------- 1872# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1873# that executables *can* be run. 1874ac_fn_c_try_run () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 if { { ac_try="$ac_link" 1878case "(($ac_try" in 1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1880 *) ac_try_echo=$ac_try;; 1881esac 1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1883$as_echo "$ac_try_echo"; } >&5 1884 (eval "$ac_link") 2>&5 1885 ac_status=$? 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1888 { { case "(($ac_try" in 1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1890 *) ac_try_echo=$ac_try;; 1891esac 1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1893$as_echo "$ac_try_echo"; } >&5 1894 (eval "$ac_try") 2>&5 1895 ac_status=$? 1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1897 test $ac_status = 0; }; }; then : 1898 ac_retval=0 1899else 1900 $as_echo "$as_me: program exited with status $ac_status" >&5 1901 $as_echo "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=$ac_status 1905fi 1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1908 as_fn_set_status $ac_retval 1909 1910} # ac_fn_c_try_run 1911 1912# ac_fn_c_check_func LINENO FUNC VAR 1913# ---------------------------------- 1914# Tests whether FUNC exists, setting the cache variable VAR accordingly 1915ac_fn_c_check_func () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1919$as_echo_n "checking for $2... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1927#define $2 innocuous_$2 1928 1929/* System header to define __stub macros and hopefully few prototypes, 1930 which can conflict with char $2 (); below. 1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1932 <limits.h> exists even on freestanding compilers. */ 1933 1934#ifdef __STDC__ 1935# include <limits.h> 1936#else 1937# include <assert.h> 1938#endif 1939 1940#undef $2 1941 1942/* Override any GCC internal prototype to avoid an error. 1943 Use char because int might match the return type of a GCC 1944 builtin and then its argument prototype would still apply. */ 1945#ifdef __cplusplus 1946extern "C" 1947#endif 1948char $2 (); 1949/* The GNU C library defines this for functions which it implements 1950 to always fail with ENOSYS. Some functions are actually named 1951 something starting with __ and the normal name is an alias. */ 1952#if defined __stub_$2 || defined __stub___$2 1953choke me 1954#endif 1955 1956int 1957main () 1958{ 1959return $2 (); 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964if ac_fn_c_try_link "$LINENO"; then : 1965 eval "$3=yes" 1966else 1967 eval "$3=no" 1968fi 1969rm -f core conftest.err conftest.$ac_objext \ 1970 conftest$ac_exeext conftest.$ac_ext 1971fi 1972eval ac_res=\$$3 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1974$as_echo "$ac_res" >&6; } 1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1976 1977} # ac_fn_c_check_func 1978 1979# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1980# --------------------------------------------- 1981# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1982# accordingly. 1983ac_fn_c_check_decl () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 as_decl_name=`echo $2|sed 's/ *(.*//'` 1987 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1989$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1990if eval \${$3+:} false; then : 1991 $as_echo_n "(cached) " >&6 1992else 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994/* end confdefs.h. */ 1995$4 1996int 1997main () 1998{ 1999#ifndef $as_decl_name 2000#ifdef __cplusplus 2001 (void) $as_decl_use; 2002#else 2003 (void) $as_decl_name; 2004#endif 2005#endif 2006 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 eval "$3=yes" 2013else 2014 eval "$3=no" 2015fi 2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2017fi 2018eval ac_res=\$$3 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2020$as_echo "$ac_res" >&6; } 2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2022 2023} # ac_fn_c_check_decl 2024 2025# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2026# ------------------------------------------------------- 2027# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2028# the include files in INCLUDES and setting the cache variable VAR 2029# accordingly. 2030ac_fn_c_check_header_mongrel () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 if eval \${$3+:} false; then : 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2035$as_echo_n "checking for $2... " >&6; } 2036if eval \${$3+:} false; then : 2037 $as_echo_n "(cached) " >&6 2038fi 2039eval ac_res=\$$3 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2041$as_echo "$ac_res" >&6; } 2042else 2043 # Is the header compilable? 2044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2045$as_echo_n "checking $2 usability... " >&6; } 2046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049#include <$2> 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 ac_header_compiler=yes 2053else 2054 ac_header_compiler=no 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2058$as_echo "$ac_header_compiler" >&6; } 2059 2060# Is the header present? 2061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2062$as_echo_n "checking $2 presence... " >&6; } 2063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065#include <$2> 2066_ACEOF 2067if ac_fn_c_try_cpp "$LINENO"; then : 2068 ac_header_preproc=yes 2069else 2070 ac_header_preproc=no 2071fi 2072rm -f conftest.err conftest.i conftest.$ac_ext 2073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2074$as_echo "$ac_header_preproc" >&6; } 2075 2076# So? What about this header? 2077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2078 yes:no: ) 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2080$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2082$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2083 ;; 2084 no:yes:* ) 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2086$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2088$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2090$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2092$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2095( $as_echo "## ------------------------------------------------------------------- ## 2096## Report this to https://gitlab.freedesktop.org/xorg/lib/libXt/issues ## 2097## ------------------------------------------------------------------- ##" 2098 ) | sed "s/^/$as_me: WARNING: /" >&2 2099 ;; 2100esac 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2102$as_echo_n "checking for $2... " >&6; } 2103if eval \${$3+:} false; then : 2104 $as_echo_n "(cached) " >&6 2105else 2106 eval "$3=\$ac_header_compiler" 2107fi 2108eval ac_res=\$$3 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2110$as_echo "$ac_res" >&6; } 2111fi 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2113 2114} # ac_fn_c_check_header_mongrel 2115cat >config.log <<_ACEOF 2116This file contains any messages produced by compilers while 2117running configure, to aid debugging if configure makes a mistake. 2118 2119It was created by libXt $as_me 1.2.1, which was 2120generated by GNU Autoconf 2.69. Invocation command line was 2121 2122 $ $0 $@ 2123 2124_ACEOF 2125exec 5>>config.log 2126{ 2127cat <<_ASUNAME 2128## --------- ## 2129## Platform. ## 2130## --------- ## 2131 2132hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2133uname -m = `(uname -m) 2>/dev/null || echo unknown` 2134uname -r = `(uname -r) 2>/dev/null || echo unknown` 2135uname -s = `(uname -s) 2>/dev/null || echo unknown` 2136uname -v = `(uname -v) 2>/dev/null || echo unknown` 2137 2138/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2139/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2140 2141/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2142/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2143/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2144/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2145/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2146/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2147/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2148 2149_ASUNAME 2150 2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2152for as_dir in $PATH 2153do 2154 IFS=$as_save_IFS 2155 test -z "$as_dir" && as_dir=. 2156 $as_echo "PATH: $as_dir" 2157 done 2158IFS=$as_save_IFS 2159 2160} >&5 2161 2162cat >&5 <<_ACEOF 2163 2164 2165## ----------- ## 2166## Core tests. ## 2167## ----------- ## 2168 2169_ACEOF 2170 2171 2172# Keep a trace of the command line. 2173# Strip out --no-create and --no-recursion so they do not pile up. 2174# Strip out --silent because we don't want to record it for future runs. 2175# Also quote any args containing shell meta-characters. 2176# Make two passes to allow for proper duplicate-argument suppression. 2177ac_configure_args= 2178ac_configure_args0= 2179ac_configure_args1= 2180ac_must_keep_next=false 2181for ac_pass in 1 2 2182do 2183 for ac_arg 2184 do 2185 case $ac_arg in 2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2188 | -silent | --silent | --silen | --sile | --sil) 2189 continue ;; 2190 *\'*) 2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2192 esac 2193 case $ac_pass in 2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2195 2) 2196 as_fn_append ac_configure_args1 " '$ac_arg'" 2197 if test $ac_must_keep_next = true; then 2198 ac_must_keep_next=false # Got value, back to normal. 2199 else 2200 case $ac_arg in 2201 *=* | --config-cache | -C | -disable-* | --disable-* \ 2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2204 | -with-* | --with-* | -without-* | --without-* | --x) 2205 case "$ac_configure_args0 " in 2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2207 esac 2208 ;; 2209 -* ) ac_must_keep_next=true ;; 2210 esac 2211 fi 2212 as_fn_append ac_configure_args " '$ac_arg'" 2213 ;; 2214 esac 2215 done 2216done 2217{ ac_configure_args0=; unset ac_configure_args0;} 2218{ ac_configure_args1=; unset ac_configure_args1;} 2219 2220# When interrupted or exit'd, cleanup temporary files, and complete 2221# config.log. We remove comments because anyway the quotes in there 2222# would cause problems or look ugly. 2223# WARNING: Use '\'' to represent an apostrophe within the trap. 2224# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2225trap 'exit_status=$? 2226 # Save into config.log some information that might help in debugging. 2227 { 2228 echo 2229 2230 $as_echo "## ---------------- ## 2231## Cache variables. ## 2232## ---------------- ##" 2233 echo 2234 # The following way of writing the cache mishandles newlines in values, 2235( 2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2237 eval ac_val=\$$ac_var 2238 case $ac_val in #( 2239 *${as_nl}*) 2240 case $ac_var in #( 2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2243 esac 2244 case $ac_var in #( 2245 _ | IFS | as_nl) ;; #( 2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2247 *) { eval $ac_var=; unset $ac_var;} ;; 2248 esac ;; 2249 esac 2250 done 2251 (set) 2>&1 | 2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2253 *${as_nl}ac_space=\ *) 2254 sed -n \ 2255 "s/'\''/'\''\\\\'\'''\''/g; 2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2257 ;; #( 2258 *) 2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2260 ;; 2261 esac | 2262 sort 2263) 2264 echo 2265 2266 $as_echo "## ----------------- ## 2267## Output variables. ## 2268## ----------------- ##" 2269 echo 2270 for ac_var in $ac_subst_vars 2271 do 2272 eval ac_val=\$$ac_var 2273 case $ac_val in 2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2275 esac 2276 $as_echo "$ac_var='\''$ac_val'\''" 2277 done | sort 2278 echo 2279 2280 if test -n "$ac_subst_files"; then 2281 $as_echo "## ------------------- ## 2282## File substitutions. ## 2283## ------------------- ##" 2284 echo 2285 for ac_var in $ac_subst_files 2286 do 2287 eval ac_val=\$$ac_var 2288 case $ac_val in 2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2290 esac 2291 $as_echo "$ac_var='\''$ac_val'\''" 2292 done | sort 2293 echo 2294 fi 2295 2296 if test -s confdefs.h; then 2297 $as_echo "## ----------- ## 2298## confdefs.h. ## 2299## ----------- ##" 2300 echo 2301 cat confdefs.h 2302 echo 2303 fi 2304 test "$ac_signal" != 0 && 2305 $as_echo "$as_me: caught signal $ac_signal" 2306 $as_echo "$as_me: exit $exit_status" 2307 } >&5 2308 rm -f core *.core core.conftest.* && 2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2310 exit $exit_status 2311' 0 2312for ac_signal in 1 2 13 15; do 2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2314done 2315ac_signal=0 2316 2317# confdefs.h avoids OS command line length limits that DEFS can exceed. 2318rm -f -r conftest* confdefs.h 2319 2320$as_echo "/* confdefs.h */" > confdefs.h 2321 2322# Predefined preprocessor variables. 2323 2324cat >>confdefs.h <<_ACEOF 2325#define PACKAGE_NAME "$PACKAGE_NAME" 2326_ACEOF 2327 2328cat >>confdefs.h <<_ACEOF 2329#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2330_ACEOF 2331 2332cat >>confdefs.h <<_ACEOF 2333#define PACKAGE_VERSION "$PACKAGE_VERSION" 2334_ACEOF 2335 2336cat >>confdefs.h <<_ACEOF 2337#define PACKAGE_STRING "$PACKAGE_STRING" 2338_ACEOF 2339 2340cat >>confdefs.h <<_ACEOF 2341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2342_ACEOF 2343 2344cat >>confdefs.h <<_ACEOF 2345#define PACKAGE_URL "$PACKAGE_URL" 2346_ACEOF 2347 2348 2349# Let the site file select an alternate cache file if it wants to. 2350# Prefer an explicitly selected file to automatically selected ones. 2351ac_site_file1=NONE 2352ac_site_file2=NONE 2353if test -n "$CONFIG_SITE"; then 2354 # We do not want a PATH search for config.site. 2355 case $CONFIG_SITE in #(( 2356 -*) ac_site_file1=./$CONFIG_SITE;; 2357 */*) ac_site_file1=$CONFIG_SITE;; 2358 *) ac_site_file1=./$CONFIG_SITE;; 2359 esac 2360elif test "x$prefix" != xNONE; then 2361 ac_site_file1=$prefix/share/config.site 2362 ac_site_file2=$prefix/etc/config.site 2363else 2364 ac_site_file1=$ac_default_prefix/share/config.site 2365 ac_site_file2=$ac_default_prefix/etc/config.site 2366fi 2367for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2368do 2369 test "x$ac_site_file" = xNONE && continue 2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2372$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2373 sed 's/^/| /' "$ac_site_file" >&5 2374 . "$ac_site_file" \ 2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2377as_fn_error $? "failed to load site script $ac_site_file 2378See \`config.log' for more details" "$LINENO" 5; } 2379 fi 2380done 2381 2382if test -r "$cache_file"; then 2383 # Some versions of bash will fail to source /dev/null (special files 2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2387$as_echo "$as_me: loading cache $cache_file" >&6;} 2388 case $cache_file in 2389 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2390 *) . "./$cache_file";; 2391 esac 2392 fi 2393else 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2395$as_echo "$as_me: creating cache $cache_file" >&6;} 2396 >$cache_file 2397fi 2398 2399# Check that the precious variables saved in the cache have kept the same 2400# value. 2401ac_cache_corrupted=false 2402for ac_var in $ac_precious_vars; do 2403 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2404 eval ac_new_set=\$ac_env_${ac_var}_set 2405 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2406 eval ac_new_val=\$ac_env_${ac_var}_value 2407 case $ac_old_set,$ac_new_set in 2408 set,) 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2411 ac_cache_corrupted=: ;; 2412 ,set) 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2415 ac_cache_corrupted=: ;; 2416 ,);; 2417 *) 2418 if test "x$ac_old_val" != "x$ac_new_val"; then 2419 # differences in whitespace do not lead to failure. 2420 ac_old_val_w=`echo x $ac_old_val` 2421 ac_new_val_w=`echo x $ac_new_val` 2422 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2425 ac_cache_corrupted=: 2426 else 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2429 eval $ac_var=\$ac_old_val 2430 fi 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2432$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2434$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2435 fi;; 2436 esac 2437 # Pass precious variables to config.status. 2438 if test "$ac_new_set" = set; then 2439 case $ac_new_val in 2440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2441 *) ac_arg=$ac_var=$ac_new_val ;; 2442 esac 2443 case " $ac_configure_args " in 2444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2445 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2446 esac 2447 fi 2448done 2449if $ac_cache_corrupted; then 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2455fi 2456## -------------------- ## 2457## Main body of script. ## 2458## -------------------- ## 2459 2460ac_ext=c 2461ac_cpp='$CPP $CPPFLAGS' 2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2464ac_compiler_gnu=$ac_cv_c_compiler_gnu 2465 2466 2467 2468ac_config_headers="$ac_config_headers config.h" 2469 2470 2471 2472# Initialize Automake 2473am__api_version='1.16' 2474 2475ac_aux_dir= 2476for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2477 if test -f "$ac_dir/install-sh"; then 2478 ac_aux_dir=$ac_dir 2479 ac_install_sh="$ac_aux_dir/install-sh -c" 2480 break 2481 elif test -f "$ac_dir/install.sh"; then 2482 ac_aux_dir=$ac_dir 2483 ac_install_sh="$ac_aux_dir/install.sh -c" 2484 break 2485 elif test -f "$ac_dir/shtool"; then 2486 ac_aux_dir=$ac_dir 2487 ac_install_sh="$ac_aux_dir/shtool install -c" 2488 break 2489 fi 2490done 2491if test -z "$ac_aux_dir"; then 2492 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2493fi 2494 2495# These three variables are undocumented and unsupported, 2496# and are intended to be withdrawn in a future Autoconf release. 2497# They can cause serious problems if a builder's source tree is in a directory 2498# whose full name contains unusual characters. 2499ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2500ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2501ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2502 2503 2504# Find a good install program. We prefer a C program (faster), 2505# so one script is as good as another. But avoid the broken or 2506# incompatible versions: 2507# SysV /etc/install, /usr/sbin/install 2508# SunOS /usr/etc/install 2509# IRIX /sbin/install 2510# AIX /bin/install 2511# AmigaOS /C/install, which installs bootblocks on floppy discs 2512# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2513# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2514# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2515# OS/2's system install, which has a completely different semantic 2516# ./install, which can be erroneously created by make from ./install.sh. 2517# Reject install programs that cannot install multiple files. 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2519$as_echo_n "checking for a BSD-compatible install... " >&6; } 2520if test -z "$INSTALL"; then 2521if ${ac_cv_path_install+:} false; then : 2522 $as_echo_n "(cached) " >&6 2523else 2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525for as_dir in $PATH 2526do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 # Account for people who put trailing slashes in PATH elements. 2530case $as_dir/ in #(( 2531 ./ | .// | /[cC]/* | \ 2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2534 /usr/ucb/* ) ;; 2535 *) 2536 # OSF1 and SCO ODT 3.0 have their own names for install. 2537 # Don't use installbsd from OSF since it installs stuff as root 2538 # by default. 2539 for ac_prog in ginstall scoinst install; do 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2542 if test $ac_prog = install && 2543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2544 # AIX install. It has an incompatible calling convention. 2545 : 2546 elif test $ac_prog = install && 2547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2548 # program-specific install script used by HP pwplus--don't use. 2549 : 2550 else 2551 rm -rf conftest.one conftest.two conftest.dir 2552 echo one > conftest.one 2553 echo two > conftest.two 2554 mkdir conftest.dir 2555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2556 test -s conftest.one && test -s conftest.two && 2557 test -s conftest.dir/conftest.one && 2558 test -s conftest.dir/conftest.two 2559 then 2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2561 break 3 2562 fi 2563 fi 2564 fi 2565 done 2566 done 2567 ;; 2568esac 2569 2570 done 2571IFS=$as_save_IFS 2572 2573rm -rf conftest.one conftest.two conftest.dir 2574 2575fi 2576 if test "${ac_cv_path_install+set}" = set; then 2577 INSTALL=$ac_cv_path_install 2578 else 2579 # As a last resort, use the slow shell script. Don't cache a 2580 # value for INSTALL within a source directory, because that will 2581 # break other packages using the cache if that directory is 2582 # removed, or if the value is a relative name. 2583 INSTALL=$ac_install_sh 2584 fi 2585fi 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2587$as_echo "$INSTALL" >&6; } 2588 2589# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2590# It thinks the first close brace ends the variable substitution. 2591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2592 2593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2594 2595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2596 2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2598$as_echo_n "checking whether build environment is sane... " >&6; } 2599# Reject unsafe characters in $srcdir or the absolute working directory 2600# name. Accept space and tab only in the latter. 2601am_lf=' 2602' 2603case `pwd` in 2604 *[\\\"\#\$\&\'\`$am_lf]*) 2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2606esac 2607case $srcdir in 2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2609 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2610esac 2611 2612# Do 'set' in a subshell so we don't clobber the current shell's 2613# arguments. Must try -L first in case configure is actually a 2614# symlink; some systems play weird games with the mod time of symlinks 2615# (eg FreeBSD returns the mod time of the symlink's containing 2616# directory). 2617if ( 2618 am_has_slept=no 2619 for am_try in 1 2; do 2620 echo "timestamp, slept: $am_has_slept" > conftest.file 2621 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2622 if test "$*" = "X"; then 2623 # -L didn't work. 2624 set X `ls -t "$srcdir/configure" conftest.file` 2625 fi 2626 if test "$*" != "X $srcdir/configure conftest.file" \ 2627 && test "$*" != "X conftest.file $srcdir/configure"; then 2628 2629 # If neither matched, then we have a broken ls. This can happen 2630 # if, for instance, CONFIG_SHELL is bash and it inherits a 2631 # broken ls alias from the environment. This has actually 2632 # happened. Such a system could not be considered "sane". 2633 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2634 alias in your environment" "$LINENO" 5 2635 fi 2636 if test "$2" = conftest.file || test $am_try -eq 2; then 2637 break 2638 fi 2639 # Just in case. 2640 sleep 1 2641 am_has_slept=yes 2642 done 2643 test "$2" = conftest.file 2644 ) 2645then 2646 # Ok. 2647 : 2648else 2649 as_fn_error $? "newly created file is older than distributed files! 2650Check your system clock" "$LINENO" 5 2651fi 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2653$as_echo "yes" >&6; } 2654# If we didn't sleep, we still need to ensure time stamps of config.status and 2655# generated files are strictly newer. 2656am_sleep_pid= 2657if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2658 ( sleep 1 ) & 2659 am_sleep_pid=$! 2660fi 2661 2662rm -f conftest.file 2663 2664test "$program_prefix" != NONE && 2665 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2666# Use a double $ so make ignores it. 2667test "$program_suffix" != NONE && 2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2669# Double any \ or $. 2670# By default was `s,x,x', remove it if useless. 2671ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2672program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2673 2674# Expand $ac_aux_dir to an absolute path. 2675am_aux_dir=`cd "$ac_aux_dir" && pwd` 2676 2677if test x"${MISSING+set}" != xset; then 2678 case $am_aux_dir in 2679 *\ * | *\ *) 2680 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2681 *) 2682 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2683 esac 2684fi 2685# Use eval to expand $SHELL 2686if eval "$MISSING --is-lightweight"; then 2687 am_missing_run="$MISSING " 2688else 2689 am_missing_run= 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2691$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2692fi 2693 2694if test x"${install_sh+set}" != xset; then 2695 case $am_aux_dir in 2696 *\ * | *\ *) 2697 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2698 *) 2699 install_sh="\${SHELL} $am_aux_dir/install-sh" 2700 esac 2701fi 2702 2703# Installed binaries are usually stripped using 'strip' when the user 2704# run "make install-strip". However 'strip' might not be the right 2705# tool to use in cross-compilation environments, therefore Automake 2706# will honor the 'STRIP' environment variable to overrule this program. 2707if test "$cross_compiling" != no; then 2708 if test -n "$ac_tool_prefix"; then 2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2710set dummy ${ac_tool_prefix}strip; ac_word=$2 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2712$as_echo_n "checking for $ac_word... " >&6; } 2713if ${ac_cv_prog_STRIP+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 if test -n "$STRIP"; then 2717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2718else 2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2720for as_dir in $PATH 2721do 2722 IFS=$as_save_IFS 2723 test -z "$as_dir" && as_dir=. 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735fi 2736STRIP=$ac_cv_prog_STRIP 2737if test -n "$STRIP"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2739$as_echo "$STRIP" >&6; } 2740else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2742$as_echo "no" >&6; } 2743fi 2744 2745 2746fi 2747if test -z "$ac_cv_prog_STRIP"; then 2748 ac_ct_STRIP=$STRIP 2749 # Extract the first word of "strip", so it can be a program name with args. 2750set dummy strip; ac_word=$2 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2752$as_echo_n "checking for $ac_word... " >&6; } 2753if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2754 $as_echo_n "(cached) " >&6 2755else 2756 if test -n "$ac_ct_STRIP"; then 2757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2758else 2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH 2761do 2762 IFS=$as_save_IFS 2763 test -z "$as_dir" && as_dir=. 2764 for ac_exec_ext in '' $ac_executable_extensions; do 2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2766 ac_cv_prog_ac_ct_STRIP="strip" 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2768 break 2 2769 fi 2770done 2771 done 2772IFS=$as_save_IFS 2773 2774fi 2775fi 2776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2777if test -n "$ac_ct_STRIP"; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2779$as_echo "$ac_ct_STRIP" >&6; } 2780else 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2782$as_echo "no" >&6; } 2783fi 2784 2785 if test "x$ac_ct_STRIP" = x; then 2786 STRIP=":" 2787 else 2788 case $cross_compiling:$ac_tool_warned in 2789yes:) 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2792ac_tool_warned=yes ;; 2793esac 2794 STRIP=$ac_ct_STRIP 2795 fi 2796else 2797 STRIP="$ac_cv_prog_STRIP" 2798fi 2799 2800fi 2801INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2802 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2804$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2805if test -z "$MKDIR_P"; then 2806 if ${ac_cv_path_mkdir+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_prog in mkdir gmkdir; do 2815 for ac_exec_ext in '' $ac_executable_extensions; do 2816 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2817 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2818 'mkdir (GNU coreutils) '* | \ 2819 'mkdir (coreutils) '* | \ 2820 'mkdir (fileutils) '4.1*) 2821 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2822 break 3;; 2823 esac 2824 done 2825 done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830 2831 test -d ./--version && rmdir ./--version 2832 if test "${ac_cv_path_mkdir+set}" = set; then 2833 MKDIR_P="$ac_cv_path_mkdir -p" 2834 else 2835 # As a last resort, use the slow shell script. Don't cache a 2836 # value for MKDIR_P within a source directory, because that will 2837 # break other packages using the cache if that directory is 2838 # removed, or if the value is a relative name. 2839 MKDIR_P="$ac_install_sh -d" 2840 fi 2841fi 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2843$as_echo "$MKDIR_P" >&6; } 2844 2845for ac_prog in gawk mawk nawk awk 2846do 2847 # Extract the first word of "$ac_prog", so it can be a program name with args. 2848set dummy $ac_prog; ac_word=$2 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2850$as_echo_n "checking for $ac_word... " >&6; } 2851if ${ac_cv_prog_AWK+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test -n "$AWK"; then 2855 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2864 ac_cv_prog_AWK="$ac_prog" 2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869 done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874AWK=$ac_cv_prog_AWK 2875if test -n "$AWK"; then 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2877$as_echo "$AWK" >&6; } 2878else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880$as_echo "no" >&6; } 2881fi 2882 2883 2884 test -n "$AWK" && break 2885done 2886 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2888$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2889set x ${MAKE-make} 2890ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2891if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2892 $as_echo_n "(cached) " >&6 2893else 2894 cat >conftest.make <<\_ACEOF 2895SHELL = /bin/sh 2896all: 2897 @echo '@@@%%%=$(MAKE)=@@@%%%' 2898_ACEOF 2899# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2900case `${MAKE-make} -f conftest.make 2>/dev/null` in 2901 *@@@%%%=?*=@@@%%%*) 2902 eval ac_cv_prog_make_${ac_make}_set=yes;; 2903 *) 2904 eval ac_cv_prog_make_${ac_make}_set=no;; 2905esac 2906rm -f conftest.make 2907fi 2908if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2910$as_echo "yes" >&6; } 2911 SET_MAKE= 2912else 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2914$as_echo "no" >&6; } 2915 SET_MAKE="MAKE=${MAKE-make}" 2916fi 2917 2918rm -rf .tst 2>/dev/null 2919mkdir .tst 2>/dev/null 2920if test -d .tst; then 2921 am__leading_dot=. 2922else 2923 am__leading_dot=_ 2924fi 2925rmdir .tst 2>/dev/null 2926 2927# Check whether --enable-silent-rules was given. 2928if test "${enable_silent_rules+set}" = set; then : 2929 enableval=$enable_silent_rules; 2930fi 2931 2932case $enable_silent_rules in # ((( 2933 yes) AM_DEFAULT_VERBOSITY=0;; 2934 no) AM_DEFAULT_VERBOSITY=1;; 2935 *) AM_DEFAULT_VERBOSITY=1;; 2936esac 2937am_make=${MAKE-make} 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2939$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2940if ${am_cv_make_support_nested_variables+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 if $as_echo 'TRUE=$(BAR$(V)) 2944BAR0=false 2945BAR1=true 2946V=1 2947am__doit: 2948 @$(TRUE) 2949.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2950 am_cv_make_support_nested_variables=yes 2951else 2952 am_cv_make_support_nested_variables=no 2953fi 2954fi 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2956$as_echo "$am_cv_make_support_nested_variables" >&6; } 2957if test $am_cv_make_support_nested_variables = yes; then 2958 AM_V='$(V)' 2959 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2960else 2961 AM_V=$AM_DEFAULT_VERBOSITY 2962 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2963fi 2964AM_BACKSLASH='\' 2965 2966if test "`cd $srcdir && pwd`" != "`pwd`"; then 2967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2968 # is not polluted with repeated "-I." 2969 am__isrc=' -I$(srcdir)' 2970 # test to see if srcdir already configured 2971 if test -f $srcdir/config.status; then 2972 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2973 fi 2974fi 2975 2976# test whether we have cygpath 2977if test -z "$CYGPATH_W"; then 2978 if (cygpath --version) >/dev/null 2>/dev/null; then 2979 CYGPATH_W='cygpath -w' 2980 else 2981 CYGPATH_W=echo 2982 fi 2983fi 2984 2985 2986# Define the identity of the package. 2987 PACKAGE='libXt' 2988 VERSION='1.2.1' 2989 2990 2991cat >>confdefs.h <<_ACEOF 2992#define PACKAGE "$PACKAGE" 2993_ACEOF 2994 2995 2996cat >>confdefs.h <<_ACEOF 2997#define VERSION "$VERSION" 2998_ACEOF 2999 3000# Some tools Automake needs. 3001 3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3003 3004 3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3006 3007 3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3009 3010 3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3012 3013 3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3015 3016# For better backward compatibility. To be removed once Automake 1.9.x 3017# dies out for good. For more background, see: 3018# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3019# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3020mkdir_p='$(MKDIR_P)' 3021 3022# We need awk for the "check" target (and possibly the TAP driver). The 3023# system "awk" is bad on some platforms. 3024# Always define AMTAR for backward compatibility. Yes, it's still used 3025# in the wild :-( We should find a proper way to deprecate it ... 3026AMTAR='$${TAR-tar}' 3027 3028 3029# We'll loop over all known methods to create a tar archive until one works. 3030_am_tools='gnutar pax cpio none' 3031 3032am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3033 3034 3035 3036 3037 3038 3039# POSIX will say in a future version that running "rm -f" with no argument 3040# is OK; and we want to be able to make that assumption in our Makefile 3041# recipes. So use an aggressive probe to check that the usage we want is 3042# actually supported "in the wild" to an acceptable degree. 3043# See automake bug#10828. 3044# To make any issue more visible, cause the running configure to be aborted 3045# by default if the 'rm' program in use doesn't match our expectations; the 3046# user can still override this though. 3047if rm -f && rm -fr && rm -rf; then : OK; else 3048 cat >&2 <<'END' 3049Oops! 3050 3051Your 'rm' program seems unable to run without file operands specified 3052on the command line, even when the '-f' option is present. This is contrary 3053to the behaviour of most rm programs out there, and not conforming with 3054the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3055 3056Please tell bug-automake@gnu.org about your system, including the value 3057of your $PATH and any error possibly output before this message. This 3058can help us improve future automake versions. 3059 3060END 3061 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3062 echo 'Configuration will proceed anyway, since you have set the' >&2 3063 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3064 echo >&2 3065 else 3066 cat >&2 <<'END' 3067Aborting the configuration process, to ensure you take notice of the issue. 3068 3069You can download and install GNU coreutils to get an 'rm' implementation 3070that behaves properly: <https://www.gnu.org/software/coreutils/>. 3071 3072If you want to complete the configuration process using your problematic 3073'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3074to "yes", and re-run configure. 3075 3076END 3077 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3078 fi 3079fi 3080 3081 3082# Initialize libtool 3083case `pwd` in 3084 *\ * | *\ *) 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3086$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3087esac 3088 3089 3090 3091macro_version='2.4.6' 3092macro_revision='2.4.6' 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106ltmain=$ac_aux_dir/ltmain.sh 3107 3108# Make sure we can run config.sub. 3109$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3110 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3111 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3113$as_echo_n "checking build system type... " >&6; } 3114if ${ac_cv_build+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 ac_build_alias=$build_alias 3118test "x$ac_build_alias" = x && 3119 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3120test "x$ac_build_alias" = x && 3121 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3122ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3123 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3124 3125fi 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3127$as_echo "$ac_cv_build" >&6; } 3128case $ac_cv_build in 3129*-*-*) ;; 3130*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3131esac 3132build=$ac_cv_build 3133ac_save_IFS=$IFS; IFS='-' 3134set x $ac_cv_build 3135shift 3136build_cpu=$1 3137build_vendor=$2 3138shift; shift 3139# Remember, the first character of IFS is used to create $*, 3140# except with old shells: 3141build_os=$* 3142IFS=$ac_save_IFS 3143case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3144 3145 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3147$as_echo_n "checking host system type... " >&6; } 3148if ${ac_cv_host+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test "x$host_alias" = x; then 3152 ac_cv_host=$ac_cv_build 3153else 3154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3156fi 3157 3158fi 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3160$as_echo "$ac_cv_host" >&6; } 3161case $ac_cv_host in 3162*-*-*) ;; 3163*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3164esac 3165host=$ac_cv_host 3166ac_save_IFS=$IFS; IFS='-' 3167set x $ac_cv_host 3168shift 3169host_cpu=$1 3170host_vendor=$2 3171shift; shift 3172# Remember, the first character of IFS is used to create $*, 3173# except with old shells: 3174host_os=$* 3175IFS=$ac_save_IFS 3176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3177 3178 3179# Backslashify metacharacters that are still active within 3180# double-quoted strings. 3181sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3182 3183# Same as above, but do not quote variable references. 3184double_quote_subst='s/\(["`\\]\)/\\\1/g' 3185 3186# Sed substitution to delay expansion of an escaped shell variable in a 3187# double_quote_subst'ed string. 3188delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3189 3190# Sed substitution to delay expansion of an escaped single quote. 3191delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3192 3193# Sed substitution to avoid accidental globbing in evaled expressions 3194no_glob_subst='s/\*/\\\*/g' 3195 3196ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3197ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3198ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3199 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3201$as_echo_n "checking how to print strings... " >&6; } 3202# Test print first, because it will be a builtin if present. 3203if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3204 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3205 ECHO='print -r --' 3206elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3207 ECHO='printf %s\n' 3208else 3209 # Use this function as a fallback that always works. 3210 func_fallback_echo () 3211 { 3212 eval 'cat <<_LTECHO_EOF 3213$1 3214_LTECHO_EOF' 3215 } 3216 ECHO='func_fallback_echo' 3217fi 3218 3219# func_echo_all arg... 3220# Invoke $ECHO with all args, space-separated. 3221func_echo_all () 3222{ 3223 $ECHO "" 3224} 3225 3226case $ECHO in 3227 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3228$as_echo "printf" >&6; } ;; 3229 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3230$as_echo "print -r" >&6; } ;; 3231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3232$as_echo "cat" >&6; } ;; 3233esac 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248DEPDIR="${am__leading_dot}deps" 3249 3250ac_config_commands="$ac_config_commands depfiles" 3251 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3253$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3254cat > confinc.mk << 'END' 3255am__doit: 3256 @echo this is the am__doit target >confinc.out 3257.PHONY: am__doit 3258END 3259am__include="#" 3260am__quote= 3261# BSD make does it like this. 3262echo '.include "confinc.mk" # ignored' > confmf.BSD 3263# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3264echo 'include confinc.mk # ignored' > confmf.GNU 3265_am_result=no 3266for s in GNU BSD; do 3267 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3268 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3269 ac_status=$? 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); } 3272 case $?:`cat confinc.out 2>/dev/null` in #( 3273 '0:this is the am__doit target') : 3274 case $s in #( 3275 BSD) : 3276 am__include='.include' am__quote='"' ;; #( 3277 *) : 3278 am__include='include' am__quote='' ;; 3279esac ;; #( 3280 *) : 3281 ;; 3282esac 3283 if test "$am__include" != "#"; then 3284 _am_result="yes ($s style)" 3285 break 3286 fi 3287done 3288rm -f confinc.* confmf.* 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3290$as_echo "${_am_result}" >&6; } 3291 3292# Check whether --enable-dependency-tracking was given. 3293if test "${enable_dependency_tracking+set}" = set; then : 3294 enableval=$enable_dependency_tracking; 3295fi 3296 3297if test "x$enable_dependency_tracking" != xno; then 3298 am_depcomp="$ac_aux_dir/depcomp" 3299 AMDEPBACKSLASH='\' 3300 am__nodep='_no' 3301fi 3302 if test "x$enable_dependency_tracking" != xno; then 3303 AMDEP_TRUE= 3304 AMDEP_FALSE='#' 3305else 3306 AMDEP_TRUE='#' 3307 AMDEP_FALSE= 3308fi 3309 3310 3311ac_ext=c 3312ac_cpp='$CPP $CPPFLAGS' 3313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3315ac_compiler_gnu=$ac_cv_c_compiler_gnu 3316if test -n "$ac_tool_prefix"; then 3317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3318set dummy ${ac_tool_prefix}gcc; ac_word=$2 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3320$as_echo_n "checking for $ac_word... " >&6; } 3321if ${ac_cv_prog_CC+:} false; then : 3322 $as_echo_n "(cached) " >&6 3323else 3324 if test -n "$CC"; then 3325 ac_cv_prog_CC="$CC" # Let the user override the test. 3326else 3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3328for as_dir in $PATH 3329do 3330 IFS=$as_save_IFS 3331 test -z "$as_dir" && as_dir=. 3332 for ac_exec_ext in '' $ac_executable_extensions; do 3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3334 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3336 break 2 3337 fi 3338done 3339 done 3340IFS=$as_save_IFS 3341 3342fi 3343fi 3344CC=$ac_cv_prog_CC 3345if test -n "$CC"; then 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3347$as_echo "$CC" >&6; } 3348else 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3350$as_echo "no" >&6; } 3351fi 3352 3353 3354fi 3355if test -z "$ac_cv_prog_CC"; then 3356 ac_ct_CC=$CC 3357 # Extract the first word of "gcc", so it can be a program name with args. 3358set dummy gcc; ac_word=$2 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360$as_echo_n "checking for $ac_word... " >&6; } 3361if ${ac_cv_prog_ac_ct_CC+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363else 3364 if test -n "$ac_ct_CC"; then 3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3366else 3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368for as_dir in $PATH 3369do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3374 ac_cv_prog_ac_ct_CC="gcc" 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382fi 3383fi 3384ac_ct_CC=$ac_cv_prog_ac_ct_CC 3385if test -n "$ac_ct_CC"; then 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3387$as_echo "$ac_ct_CC" >&6; } 3388else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390$as_echo "no" >&6; } 3391fi 3392 3393 if test "x$ac_ct_CC" = x; then 3394 CC="" 3395 else 3396 case $cross_compiling:$ac_tool_warned in 3397yes:) 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3400ac_tool_warned=yes ;; 3401esac 3402 CC=$ac_ct_CC 3403 fi 3404else 3405 CC="$ac_cv_prog_CC" 3406fi 3407 3408if test -z "$CC"; then 3409 if test -n "$ac_tool_prefix"; then 3410 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3411set dummy ${ac_tool_prefix}cc; ac_word=$2 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413$as_echo_n "checking for $ac_word... " >&6; } 3414if ${ac_cv_prog_CC+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 if test -n "$CC"; then 3418 ac_cv_prog_CC="$CC" # Let the user override the test. 3419else 3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3421for as_dir in $PATH 3422do 3423 IFS=$as_save_IFS 3424 test -z "$as_dir" && as_dir=. 3425 for ac_exec_ext in '' $ac_executable_extensions; do 3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3427 ac_cv_prog_CC="${ac_tool_prefix}cc" 3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3429 break 2 3430 fi 3431done 3432 done 3433IFS=$as_save_IFS 3434 3435fi 3436fi 3437CC=$ac_cv_prog_CC 3438if test -n "$CC"; then 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3440$as_echo "$CC" >&6; } 3441else 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443$as_echo "no" >&6; } 3444fi 3445 3446 3447 fi 3448fi 3449if test -z "$CC"; then 3450 # Extract the first word of "cc", so it can be a program name with args. 3451set dummy cc; ac_word=$2 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3453$as_echo_n "checking for $ac_word... " >&6; } 3454if ${ac_cv_prog_CC+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 if test -n "$CC"; then 3458 ac_cv_prog_CC="$CC" # Let the user override the test. 3459else 3460 ac_prog_rejected=no 3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3462for as_dir in $PATH 3463do 3464 IFS=$as_save_IFS 3465 test -z "$as_dir" && as_dir=. 3466 for ac_exec_ext in '' $ac_executable_extensions; do 3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3468 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3469 ac_prog_rejected=yes 3470 continue 3471 fi 3472 ac_cv_prog_CC="cc" 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 break 2 3475 fi 3476done 3477 done 3478IFS=$as_save_IFS 3479 3480if test $ac_prog_rejected = yes; then 3481 # We found a bogon in the path, so make sure we never use it. 3482 set dummy $ac_cv_prog_CC 3483 shift 3484 if test $# != 0; then 3485 # We chose a different compiler from the bogus one. 3486 # However, it has the same basename, so the bogon will be chosen 3487 # first if we set CC to just the basename; use the full file name. 3488 shift 3489 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3490 fi 3491fi 3492fi 3493fi 3494CC=$ac_cv_prog_CC 3495if test -n "$CC"; then 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3497$as_echo "$CC" >&6; } 3498else 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3500$as_echo "no" >&6; } 3501fi 3502 3503 3504fi 3505if test -z "$CC"; then 3506 if test -n "$ac_tool_prefix"; then 3507 for ac_prog in cl.exe 3508 do 3509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3510set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512$as_echo_n "checking for $ac_word... " >&6; } 3513if ${ac_cv_prog_CC+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515else 3516 if test -n "$CC"; then 3517 ac_cv_prog_CC="$CC" # Let the user override the test. 3518else 3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3520for as_dir in $PATH 3521do 3522 IFS=$as_save_IFS 3523 test -z "$as_dir" && as_dir=. 3524 for ac_exec_ext in '' $ac_executable_extensions; do 3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3528 break 2 3529 fi 3530done 3531 done 3532IFS=$as_save_IFS 3533 3534fi 3535fi 3536CC=$ac_cv_prog_CC 3537if test -n "$CC"; then 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3539$as_echo "$CC" >&6; } 3540else 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3542$as_echo "no" >&6; } 3543fi 3544 3545 3546 test -n "$CC" && break 3547 done 3548fi 3549if test -z "$CC"; then 3550 ac_ct_CC=$CC 3551 for ac_prog in cl.exe 3552do 3553 # Extract the first word of "$ac_prog", so it can be a program name with args. 3554set dummy $ac_prog; ac_word=$2 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3556$as_echo_n "checking for $ac_word... " >&6; } 3557if ${ac_cv_prog_ac_ct_CC+:} false; then : 3558 $as_echo_n "(cached) " >&6 3559else 3560 if test -n "$ac_ct_CC"; then 3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3562else 3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3564for as_dir in $PATH 3565do 3566 IFS=$as_save_IFS 3567 test -z "$as_dir" && as_dir=. 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3570 ac_cv_prog_ac_ct_CC="$ac_prog" 3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3572 break 2 3573 fi 3574done 3575 done 3576IFS=$as_save_IFS 3577 3578fi 3579fi 3580ac_ct_CC=$ac_cv_prog_ac_ct_CC 3581if test -n "$ac_ct_CC"; then 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3583$as_echo "$ac_ct_CC" >&6; } 3584else 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3586$as_echo "no" >&6; } 3587fi 3588 3589 3590 test -n "$ac_ct_CC" && break 3591done 3592 3593 if test "x$ac_ct_CC" = x; then 3594 CC="" 3595 else 3596 case $cross_compiling:$ac_tool_warned in 3597yes:) 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3600ac_tool_warned=yes ;; 3601esac 3602 CC=$ac_ct_CC 3603 fi 3604fi 3605 3606fi 3607 3608 3609test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3611as_fn_error $? "no acceptable C compiler found in \$PATH 3612See \`config.log' for more details" "$LINENO" 5; } 3613 3614# Provide some information about the compiler. 3615$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3616set X $ac_compile 3617ac_compiler=$2 3618for ac_option in --version -v -V -qversion; do 3619 { { ac_try="$ac_compiler $ac_option >&5" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625$as_echo "$ac_try_echo"; } >&5 3626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3627 ac_status=$? 3628 if test -s conftest.err; then 3629 sed '10a\ 3630... rest of stderr output deleted ... 3631 10q' conftest.err >conftest.er1 3632 cat conftest.er1 >&5 3633 fi 3634 rm -f conftest.er1 conftest.err 3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3636 test $ac_status = 0; } 3637done 3638 3639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641 3642int 3643main () 3644{ 3645 3646 ; 3647 return 0; 3648} 3649_ACEOF 3650ac_clean_files_save=$ac_clean_files 3651ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3652# Try to create an executable without -o first, disregard a.out. 3653# It will help us diagnose broken compilers, and finding out an intuition 3654# of exeext. 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3656$as_echo_n "checking whether the C compiler works... " >&6; } 3657ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3658 3659# The possible output files: 3660ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3661 3662ac_rmfiles= 3663for ac_file in $ac_files 3664do 3665 case $ac_file in 3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3667 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3668 esac 3669done 3670rm -f $ac_rmfiles 3671 3672if { { ac_try="$ac_link_default" 3673case "(($ac_try" in 3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3675 *) ac_try_echo=$ac_try;; 3676esac 3677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3678$as_echo "$ac_try_echo"; } >&5 3679 (eval "$ac_link_default") 2>&5 3680 ac_status=$? 3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3682 test $ac_status = 0; }; then : 3683 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3684# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3685# in a Makefile. We should not override ac_cv_exeext if it was cached, 3686# so that the user can short-circuit this test for compilers unknown to 3687# Autoconf. 3688for ac_file in $ac_files '' 3689do 3690 test -f "$ac_file" || continue 3691 case $ac_file in 3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3693 ;; 3694 [ab].out ) 3695 # We found the default executable, but exeext='' is most 3696 # certainly right. 3697 break;; 3698 *.* ) 3699 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3700 then :; else 3701 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3702 fi 3703 # We set ac_cv_exeext here because the later test for it is not 3704 # safe: cross compilers may not add the suffix if given an `-o' 3705 # argument, so we may need to know it at that point already. 3706 # Even if this section looks crufty: it has the advantage of 3707 # actually working. 3708 break;; 3709 * ) 3710 break;; 3711 esac 3712done 3713test "$ac_cv_exeext" = no && ac_cv_exeext= 3714 3715else 3716 ac_file='' 3717fi 3718if test -z "$ac_file"; then : 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3720$as_echo "no" >&6; } 3721$as_echo "$as_me: failed program was:" >&5 3722sed 's/^/| /' conftest.$ac_ext >&5 3723 3724{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3726as_fn_error 77 "C compiler cannot create executables 3727See \`config.log' for more details" "$LINENO" 5; } 3728else 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3730$as_echo "yes" >&6; } 3731fi 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3733$as_echo_n "checking for C compiler default output file name... " >&6; } 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3735$as_echo "$ac_file" >&6; } 3736ac_exeext=$ac_cv_exeext 3737 3738rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3739ac_clean_files=$ac_clean_files_save 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3741$as_echo_n "checking for suffix of executables... " >&6; } 3742if { { ac_try="$ac_link" 3743case "(($ac_try" in 3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3745 *) ac_try_echo=$ac_try;; 3746esac 3747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3748$as_echo "$ac_try_echo"; } >&5 3749 (eval "$ac_link") 2>&5 3750 ac_status=$? 3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3752 test $ac_status = 0; }; then : 3753 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3754# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3755# work properly (i.e., refer to `conftest.exe'), while it won't with 3756# `rm'. 3757for ac_file in conftest.exe conftest conftest.*; do 3758 test -f "$ac_file" || continue 3759 case $ac_file in 3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3761 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3762 break;; 3763 * ) break;; 3764 esac 3765done 3766else 3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3769as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3770See \`config.log' for more details" "$LINENO" 5; } 3771fi 3772rm -f conftest conftest$ac_cv_exeext 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3774$as_echo "$ac_cv_exeext" >&6; } 3775 3776rm -f conftest.$ac_ext 3777EXEEXT=$ac_cv_exeext 3778ac_exeext=$EXEEXT 3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781#include <stdio.h> 3782int 3783main () 3784{ 3785FILE *f = fopen ("conftest.out", "w"); 3786 return ferror (f) || fclose (f) != 0; 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792ac_clean_files="$ac_clean_files conftest.out" 3793# Check that the compiler produces executables we can run. If not, either 3794# the compiler is broken, or we cross compile. 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3796$as_echo_n "checking whether we are cross compiling... " >&6; } 3797if test "$cross_compiling" != yes; then 3798 { { ac_try="$ac_link" 3799case "(($ac_try" in 3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3801 *) ac_try_echo=$ac_try;; 3802esac 3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3804$as_echo "$ac_try_echo"; } >&5 3805 (eval "$ac_link") 2>&5 3806 ac_status=$? 3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3808 test $ac_status = 0; } 3809 if { ac_try='./conftest$ac_cv_exeext' 3810 { { case "(($ac_try" in 3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3812 *) ac_try_echo=$ac_try;; 3813esac 3814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3815$as_echo "$ac_try_echo"; } >&5 3816 (eval "$ac_try") 2>&5 3817 ac_status=$? 3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3819 test $ac_status = 0; }; }; then 3820 cross_compiling=no 3821 else 3822 if test "$cross_compiling" = maybe; then 3823 cross_compiling=yes 3824 else 3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error $? "cannot run C compiled programs. 3828If you meant to cross compile, use \`--host'. 3829See \`config.log' for more details" "$LINENO" 5; } 3830 fi 3831 fi 3832fi 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3834$as_echo "$cross_compiling" >&6; } 3835 3836rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3837ac_clean_files=$ac_clean_files_save 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3839$as_echo_n "checking for suffix of object files... " >&6; } 3840if ${ac_cv_objext+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854rm -f conftest.o conftest.obj 3855if { { ac_try="$ac_compile" 3856case "(($ac_try" in 3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3858 *) ac_try_echo=$ac_try;; 3859esac 3860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3861$as_echo "$ac_try_echo"; } >&5 3862 (eval "$ac_compile") 2>&5 3863 ac_status=$? 3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3865 test $ac_status = 0; }; then : 3866 for ac_file in conftest.o conftest.obj conftest.*; do 3867 test -f "$ac_file" || continue; 3868 case $ac_file in 3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3870 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3871 break;; 3872 esac 3873done 3874else 3875 $as_echo "$as_me: failed program was:" >&5 3876sed 's/^/| /' conftest.$ac_ext >&5 3877 3878{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3880as_fn_error $? "cannot compute suffix of object files: cannot compile 3881See \`config.log' for more details" "$LINENO" 5; } 3882fi 3883rm -f conftest.$ac_cv_objext conftest.$ac_ext 3884fi 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3886$as_echo "$ac_cv_objext" >&6; } 3887OBJEXT=$ac_cv_objext 3888ac_objext=$OBJEXT 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3890$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3891if ${ac_cv_c_compiler_gnu+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896 3897int 3898main () 3899{ 3900#ifndef __GNUC__ 3901 choke me 3902#endif 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908if ac_fn_c_try_compile "$LINENO"; then : 3909 ac_compiler_gnu=yes 3910else 3911 ac_compiler_gnu=no 3912fi 3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3914ac_cv_c_compiler_gnu=$ac_compiler_gnu 3915 3916fi 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3918$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3919if test $ac_compiler_gnu = yes; then 3920 GCC=yes 3921else 3922 GCC= 3923fi 3924ac_test_CFLAGS=${CFLAGS+set} 3925ac_save_CFLAGS=$CFLAGS 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3927$as_echo_n "checking whether $CC accepts -g... " >&6; } 3928if ${ac_cv_prog_cc_g+:} false; then : 3929 $as_echo_n "(cached) " >&6 3930else 3931 ac_save_c_werror_flag=$ac_c_werror_flag 3932 ac_c_werror_flag=yes 3933 ac_cv_prog_cc_g=no 3934 CFLAGS="-g" 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937 3938int 3939main () 3940{ 3941 3942 ; 3943 return 0; 3944} 3945_ACEOF 3946if ac_fn_c_try_compile "$LINENO"; then : 3947 ac_cv_prog_cc_g=yes 3948else 3949 CFLAGS="" 3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951/* end confdefs.h. */ 3952 3953int 3954main () 3955{ 3956 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961if ac_fn_c_try_compile "$LINENO"; then : 3962 3963else 3964 ac_c_werror_flag=$ac_save_c_werror_flag 3965 CFLAGS="-g" 3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967/* end confdefs.h. */ 3968 3969int 3970main () 3971{ 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977if ac_fn_c_try_compile "$LINENO"; then : 3978 ac_cv_prog_cc_g=yes 3979fi 3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3981fi 3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3983fi 3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3985 ac_c_werror_flag=$ac_save_c_werror_flag 3986fi 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3988$as_echo "$ac_cv_prog_cc_g" >&6; } 3989if test "$ac_test_CFLAGS" = set; then 3990 CFLAGS=$ac_save_CFLAGS 3991elif test $ac_cv_prog_cc_g = yes; then 3992 if test "$GCC" = yes; then 3993 CFLAGS="-g -O2" 3994 else 3995 CFLAGS="-g" 3996 fi 3997else 3998 if test "$GCC" = yes; then 3999 CFLAGS="-O2" 4000 else 4001 CFLAGS= 4002 fi 4003fi 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4005$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4006if ${ac_cv_prog_cc_c89+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 ac_cv_prog_cc_c89=no 4010ac_save_CC=$CC 4011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012/* end confdefs.h. */ 4013#include <stdarg.h> 4014#include <stdio.h> 4015struct stat; 4016/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4017struct buf { int x; }; 4018FILE * (*rcsopen) (struct buf *, struct stat *, int); 4019static char *e (p, i) 4020 char **p; 4021 int i; 4022{ 4023 return p[i]; 4024} 4025static char *f (char * (*g) (char **, int), char **p, ...) 4026{ 4027 char *s; 4028 va_list v; 4029 va_start (v,p); 4030 s = g (p, va_arg (v,int)); 4031 va_end (v); 4032 return s; 4033} 4034 4035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4036 function prototypes and stuff, but not '\xHH' hex character constants. 4037 These don't provoke an error unfortunately, instead are silently treated 4038 as 'x'. The following induces an error, until -std is added to get 4039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4040 array size at least. It's necessary to write '\x00'==0 to get something 4041 that's true only with -std. */ 4042int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4043 4044/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4045 inside strings and character constants. */ 4046#define FOO(x) 'x' 4047int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4048 4049int test (int i, double x); 4050struct s1 {int (*f) (int a);}; 4051struct s2 {int (*f) (double a);}; 4052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4053int argc; 4054char **argv; 4055int 4056main () 4057{ 4058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4059 ; 4060 return 0; 4061} 4062_ACEOF 4063for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4065do 4066 CC="$ac_save_CC $ac_arg" 4067 if ac_fn_c_try_compile "$LINENO"; then : 4068 ac_cv_prog_cc_c89=$ac_arg 4069fi 4070rm -f core conftest.err conftest.$ac_objext 4071 test "x$ac_cv_prog_cc_c89" != "xno" && break 4072done 4073rm -f conftest.$ac_ext 4074CC=$ac_save_CC 4075 4076fi 4077# AC_CACHE_VAL 4078case "x$ac_cv_prog_cc_c89" in 4079 x) 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4081$as_echo "none needed" >&6; } ;; 4082 xno) 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4084$as_echo "unsupported" >&6; } ;; 4085 *) 4086 CC="$CC $ac_cv_prog_cc_c89" 4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4088$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4089esac 4090if test "x$ac_cv_prog_cc_c89" != xno; then : 4091 4092fi 4093 4094ac_ext=c 4095ac_cpp='$CPP $CPPFLAGS' 4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4098ac_compiler_gnu=$ac_cv_c_compiler_gnu 4099 4100ac_ext=c 4101ac_cpp='$CPP $CPPFLAGS' 4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4104ac_compiler_gnu=$ac_cv_c_compiler_gnu 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4106$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4107if ${am_cv_prog_cc_c_o+:} false; then : 4108 $as_echo_n "(cached) " >&6 4109else 4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111/* end confdefs.h. */ 4112 4113int 4114main () 4115{ 4116 4117 ; 4118 return 0; 4119} 4120_ACEOF 4121 # Make sure it works both with $CC and with simple cc. 4122 # Following AC_PROG_CC_C_O, we do the test twice because some 4123 # compilers refuse to overwrite an existing .o file with -o, 4124 # though they will create one. 4125 am_cv_prog_cc_c_o=yes 4126 for am_i in 1 2; do 4127 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4128 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4129 ac_status=$? 4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4131 (exit $ac_status); } \ 4132 && test -f conftest2.$ac_objext; then 4133 : OK 4134 else 4135 am_cv_prog_cc_c_o=no 4136 break 4137 fi 4138 done 4139 rm -f core conftest* 4140 unset am_i 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4143$as_echo "$am_cv_prog_cc_c_o" >&6; } 4144if test "$am_cv_prog_cc_c_o" != yes; then 4145 # Losing compiler, so override with the script. 4146 # FIXME: It is wrong to rewrite CC. 4147 # But if we don't then we get into trouble of one sort or another. 4148 # A longer-term fix would be to have automake use am__CC in this case, 4149 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4150 CC="$am_aux_dir/compile $CC" 4151fi 4152ac_ext=c 4153ac_cpp='$CPP $CPPFLAGS' 4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4156ac_compiler_gnu=$ac_cv_c_compiler_gnu 4157 4158 4159depcc="$CC" am_compiler_list= 4160 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4162$as_echo_n "checking dependency style of $depcc... " >&6; } 4163if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4167 # We make a subdir and do the tests there. Otherwise we can end up 4168 # making bogus files that we don't know about and never remove. For 4169 # instance it was reported that on HP-UX the gcc test will end up 4170 # making a dummy file named 'D' -- because '-MD' means "put the output 4171 # in D". 4172 rm -rf conftest.dir 4173 mkdir conftest.dir 4174 # Copy depcomp to subdir because otherwise we won't find it if we're 4175 # using a relative directory. 4176 cp "$am_depcomp" conftest.dir 4177 cd conftest.dir 4178 # We will build objects and dependencies in a subdirectory because 4179 # it helps to detect inapplicable dependency modes. For instance 4180 # both Tru64's cc and ICC support -MD to output dependencies as a 4181 # side effect of compilation, but ICC will put the dependencies in 4182 # the current directory while Tru64 will put them in the object 4183 # directory. 4184 mkdir sub 4185 4186 am_cv_CC_dependencies_compiler_type=none 4187 if test "$am_compiler_list" = ""; then 4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4189 fi 4190 am__universal=false 4191 case " $depcc " in #( 4192 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4193 esac 4194 4195 for depmode in $am_compiler_list; do 4196 # Setup a source with many dependencies, because some compilers 4197 # like to wrap large dependency lists on column 80 (with \), and 4198 # we should not choose a depcomp mode which is confused by this. 4199 # 4200 # We need to recreate these files for each test, as the compiler may 4201 # overwrite some of them when testing with obscure command lines. 4202 # This happens at least with the AIX C compiler. 4203 : > sub/conftest.c 4204 for i in 1 2 3 4 5 6; do 4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4206 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4207 # Solaris 10 /bin/sh. 4208 echo '/* dummy */' > sub/conftst$i.h 4209 done 4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4211 4212 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4213 # mode. It turns out that the SunPro C++ compiler does not properly 4214 # handle '-M -o', and we need to detect this. Also, some Intel 4215 # versions had trouble with output in subdirs. 4216 am__obj=sub/conftest.${OBJEXT-o} 4217 am__minus_obj="-o $am__obj" 4218 case $depmode in 4219 gcc) 4220 # This depmode causes a compiler race in universal mode. 4221 test "$am__universal" = false || continue 4222 ;; 4223 nosideeffect) 4224 # After this tag, mechanisms are not by side-effect, so they'll 4225 # only be used when explicitly requested. 4226 if test "x$enable_dependency_tracking" = xyes; then 4227 continue 4228 else 4229 break 4230 fi 4231 ;; 4232 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4233 # This compiler won't grok '-c -o', but also, the minuso test has 4234 # not run yet. These depmodes are late enough in the game, and 4235 # so weak that their functioning should not be impacted. 4236 am__obj=conftest.${OBJEXT-o} 4237 am__minus_obj= 4238 ;; 4239 none) break ;; 4240 esac 4241 if depmode=$depmode \ 4242 source=sub/conftest.c object=$am__obj \ 4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4245 >/dev/null 2>conftest.err && 4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4250 # icc doesn't choke on unknown options, it will just issue warnings 4251 # or remarks (even with -Werror). So we grep stderr for any message 4252 # that says an option was ignored or not supported. 4253 # When given -MP, icc 7.0 and 7.1 complain thusly: 4254 # icc: Command line warning: ignoring option '-M'; no argument required 4255 # The diagnosis changed in icc 8.0: 4256 # icc: Command line remark: option '-MP' not supported 4257 if (grep 'ignoring option' conftest.err || 4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4259 am_cv_CC_dependencies_compiler_type=$depmode 4260 break 4261 fi 4262 fi 4263 done 4264 4265 cd .. 4266 rm -rf conftest.dir 4267else 4268 am_cv_CC_dependencies_compiler_type=none 4269fi 4270 4271fi 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4273$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4274CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4275 4276 if 4277 test "x$enable_dependency_tracking" != xno \ 4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4279 am__fastdepCC_TRUE= 4280 am__fastdepCC_FALSE='#' 4281else 4282 am__fastdepCC_TRUE='#' 4283 am__fastdepCC_FALSE= 4284fi 4285 4286 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4288$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4289if ${ac_cv_path_SED+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4293 for ac_i in 1 2 3 4 5 6 7; do 4294 ac_script="$ac_script$as_nl$ac_script" 4295 done 4296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4297 { ac_script=; unset ac_script;} 4298 if test -z "$SED"; then 4299 ac_path_SED_found=false 4300 # Loop through the user's path and test for each of PROGNAME-LIST 4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4302for as_dir in $PATH 4303do 4304 IFS=$as_save_IFS 4305 test -z "$as_dir" && as_dir=. 4306 for ac_prog in sed gsed; do 4307 for ac_exec_ext in '' $ac_executable_extensions; do 4308 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4309 as_fn_executable_p "$ac_path_SED" || continue 4310# Check for GNU ac_path_SED and select it if it is found. 4311 # Check for GNU $ac_path_SED 4312case `"$ac_path_SED" --version 2>&1` in 4313*GNU*) 4314 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4315*) 4316 ac_count=0 4317 $as_echo_n 0123456789 >"conftest.in" 4318 while : 4319 do 4320 cat "conftest.in" "conftest.in" >"conftest.tmp" 4321 mv "conftest.tmp" "conftest.in" 4322 cp "conftest.in" "conftest.nl" 4323 $as_echo '' >> "conftest.nl" 4324 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4326 as_fn_arith $ac_count + 1 && ac_count=$as_val 4327 if test $ac_count -gt ${ac_path_SED_max-0}; then 4328 # Best one so far, save it but keep looking for a better one 4329 ac_cv_path_SED="$ac_path_SED" 4330 ac_path_SED_max=$ac_count 4331 fi 4332 # 10*(2^10) chars as input seems more than enough 4333 test $ac_count -gt 10 && break 4334 done 4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4336esac 4337 4338 $ac_path_SED_found && break 3 4339 done 4340 done 4341 done 4342IFS=$as_save_IFS 4343 if test -z "$ac_cv_path_SED"; then 4344 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4345 fi 4346else 4347 ac_cv_path_SED=$SED 4348fi 4349 4350fi 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4352$as_echo "$ac_cv_path_SED" >&6; } 4353 SED="$ac_cv_path_SED" 4354 rm -f conftest.sed 4355 4356test -z "$SED" && SED=sed 4357Xsed="$SED -e 1s/^X//" 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4370$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4371if ${ac_cv_path_GREP+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 if test -z "$GREP"; then 4375 ac_path_GREP_found=false 4376 # Loop through the user's path and test for each of PROGNAME-LIST 4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 for ac_prog in grep ggrep; do 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4385 as_fn_executable_p "$ac_path_GREP" || continue 4386# Check for GNU ac_path_GREP and select it if it is found. 4387 # Check for GNU $ac_path_GREP 4388case `"$ac_path_GREP" --version 2>&1` in 4389*GNU*) 4390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4391*) 4392 ac_count=0 4393 $as_echo_n 0123456789 >"conftest.in" 4394 while : 4395 do 4396 cat "conftest.in" "conftest.in" >"conftest.tmp" 4397 mv "conftest.tmp" "conftest.in" 4398 cp "conftest.in" "conftest.nl" 4399 $as_echo 'GREP' >> "conftest.nl" 4400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4402 as_fn_arith $ac_count + 1 && ac_count=$as_val 4403 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4404 # Best one so far, save it but keep looking for a better one 4405 ac_cv_path_GREP="$ac_path_GREP" 4406 ac_path_GREP_max=$ac_count 4407 fi 4408 # 10*(2^10) chars as input seems more than enough 4409 test $ac_count -gt 10 && break 4410 done 4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4412esac 4413 4414 $ac_path_GREP_found && break 3 4415 done 4416 done 4417 done 4418IFS=$as_save_IFS 4419 if test -z "$ac_cv_path_GREP"; then 4420 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4421 fi 4422else 4423 ac_cv_path_GREP=$GREP 4424fi 4425 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4428$as_echo "$ac_cv_path_GREP" >&6; } 4429 GREP="$ac_cv_path_GREP" 4430 4431 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4433$as_echo_n "checking for egrep... " >&6; } 4434if ${ac_cv_path_EGREP+:} false; then : 4435 $as_echo_n "(cached) " >&6 4436else 4437 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4438 then ac_cv_path_EGREP="$GREP -E" 4439 else 4440 if test -z "$EGREP"; then 4441 ac_path_EGREP_found=false 4442 # Loop through the user's path and test for each of PROGNAME-LIST 4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4445do 4446 IFS=$as_save_IFS 4447 test -z "$as_dir" && as_dir=. 4448 for ac_prog in egrep; do 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4451 as_fn_executable_p "$ac_path_EGREP" || continue 4452# Check for GNU ac_path_EGREP and select it if it is found. 4453 # Check for GNU $ac_path_EGREP 4454case `"$ac_path_EGREP" --version 2>&1` in 4455*GNU*) 4456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4457*) 4458 ac_count=0 4459 $as_echo_n 0123456789 >"conftest.in" 4460 while : 4461 do 4462 cat "conftest.in" "conftest.in" >"conftest.tmp" 4463 mv "conftest.tmp" "conftest.in" 4464 cp "conftest.in" "conftest.nl" 4465 $as_echo 'EGREP' >> "conftest.nl" 4466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4468 as_fn_arith $ac_count + 1 && ac_count=$as_val 4469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4470 # Best one so far, save it but keep looking for a better one 4471 ac_cv_path_EGREP="$ac_path_EGREP" 4472 ac_path_EGREP_max=$ac_count 4473 fi 4474 # 10*(2^10) chars as input seems more than enough 4475 test $ac_count -gt 10 && break 4476 done 4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4478esac 4479 4480 $ac_path_EGREP_found && break 3 4481 done 4482 done 4483 done 4484IFS=$as_save_IFS 4485 if test -z "$ac_cv_path_EGREP"; then 4486 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4487 fi 4488else 4489 ac_cv_path_EGREP=$EGREP 4490fi 4491 4492 fi 4493fi 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4495$as_echo "$ac_cv_path_EGREP" >&6; } 4496 EGREP="$ac_cv_path_EGREP" 4497 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4500$as_echo_n "checking for fgrep... " >&6; } 4501if ${ac_cv_path_FGREP+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4505 then ac_cv_path_FGREP="$GREP -F" 4506 else 4507 if test -z "$FGREP"; then 4508 ac_path_FGREP_found=false 4509 # Loop through the user's path and test for each of PROGNAME-LIST 4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4512do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 for ac_prog in fgrep; do 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4518 as_fn_executable_p "$ac_path_FGREP" || continue 4519# Check for GNU ac_path_FGREP and select it if it is found. 4520 # Check for GNU $ac_path_FGREP 4521case `"$ac_path_FGREP" --version 2>&1` in 4522*GNU*) 4523 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4524*) 4525 ac_count=0 4526 $as_echo_n 0123456789 >"conftest.in" 4527 while : 4528 do 4529 cat "conftest.in" "conftest.in" >"conftest.tmp" 4530 mv "conftest.tmp" "conftest.in" 4531 cp "conftest.in" "conftest.nl" 4532 $as_echo 'FGREP' >> "conftest.nl" 4533 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4535 as_fn_arith $ac_count + 1 && ac_count=$as_val 4536 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4537 # Best one so far, save it but keep looking for a better one 4538 ac_cv_path_FGREP="$ac_path_FGREP" 4539 ac_path_FGREP_max=$ac_count 4540 fi 4541 # 10*(2^10) chars as input seems more than enough 4542 test $ac_count -gt 10 && break 4543 done 4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4545esac 4546 4547 $ac_path_FGREP_found && break 3 4548 done 4549 done 4550 done 4551IFS=$as_save_IFS 4552 if test -z "$ac_cv_path_FGREP"; then 4553 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4554 fi 4555else 4556 ac_cv_path_FGREP=$FGREP 4557fi 4558 4559 fi 4560fi 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4562$as_echo "$ac_cv_path_FGREP" >&6; } 4563 FGREP="$ac_cv_path_FGREP" 4564 4565 4566test -z "$GREP" && GREP=grep 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586# Check whether --with-gnu-ld was given. 4587if test "${with_gnu_ld+set}" = set; then : 4588 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4589else 4590 with_gnu_ld=no 4591fi 4592 4593ac_prog=ld 4594if test yes = "$GCC"; then 4595 # Check if gcc -print-prog-name=ld gives a path. 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4597$as_echo_n "checking for ld used by $CC... " >&6; } 4598 case $host in 4599 *-*-mingw*) 4600 # gcc leaves a trailing carriage return, which upsets mingw 4601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4602 *) 4603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4604 esac 4605 case $ac_prog in 4606 # Accept absolute paths. 4607 [\\/]* | ?:[\\/]*) 4608 re_direlt='/[^/][^/]*/\.\./' 4609 # Canonicalize the pathname of ld 4610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4613 done 4614 test -z "$LD" && LD=$ac_prog 4615 ;; 4616 "") 4617 # If it fails, then pretend we aren't using GCC. 4618 ac_prog=ld 4619 ;; 4620 *) 4621 # If it is relative, then search for the first ld in PATH. 4622 with_gnu_ld=unknown 4623 ;; 4624 esac 4625elif test yes = "$with_gnu_ld"; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4627$as_echo_n "checking for GNU ld... " >&6; } 4628else 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4630$as_echo_n "checking for non-GNU ld... " >&6; } 4631fi 4632if ${lt_cv_path_LD+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 if test -z "$LD"; then 4636 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4637 for ac_dir in $PATH; do 4638 IFS=$lt_save_ifs 4639 test -z "$ac_dir" && ac_dir=. 4640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4641 lt_cv_path_LD=$ac_dir/$ac_prog 4642 # Check to see if the program is GNU ld. I'd rather use --version, 4643 # but apparently some variants of GNU ld only accept -v. 4644 # Break only if it was the GNU/non-GNU ld that we prefer. 4645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4646 *GNU* | *'with BFD'*) 4647 test no != "$with_gnu_ld" && break 4648 ;; 4649 *) 4650 test yes != "$with_gnu_ld" && break 4651 ;; 4652 esac 4653 fi 4654 done 4655 IFS=$lt_save_ifs 4656else 4657 lt_cv_path_LD=$LD # Let the user override the test with a path. 4658fi 4659fi 4660 4661LD=$lt_cv_path_LD 4662if test -n "$LD"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4664$as_echo "$LD" >&6; } 4665else 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667$as_echo "no" >&6; } 4668fi 4669test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4671$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4672if ${lt_cv_prog_gnu_ld+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4676case `$LD -v 2>&1 </dev/null` in 4677*GNU* | *'with BFD'*) 4678 lt_cv_prog_gnu_ld=yes 4679 ;; 4680*) 4681 lt_cv_prog_gnu_ld=no 4682 ;; 4683esac 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4686$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4687with_gnu_ld=$lt_cv_prog_gnu_ld 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4698$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4699if ${lt_cv_path_NM+:} false; then : 4700 $as_echo_n "(cached) " >&6 4701else 4702 if test -n "$NM"; then 4703 # Let the user override the test. 4704 lt_cv_path_NM=$NM 4705else 4706 lt_nm_to_check=${ac_tool_prefix}nm 4707 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4708 lt_nm_to_check="$lt_nm_to_check nm" 4709 fi 4710 for lt_tmp_nm in $lt_nm_to_check; do 4711 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4712 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4713 IFS=$lt_save_ifs 4714 test -z "$ac_dir" && ac_dir=. 4715 tmp_nm=$ac_dir/$lt_tmp_nm 4716 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4717 # Check to see if the nm accepts a BSD-compat flag. 4718 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4719 # nm: unknown option "B" ignored 4720 # Tru64's nm complains that /dev/null is an invalid object file 4721 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4722 case $build_os in 4723 mingw*) lt_bad_file=conftest.nm/nofile ;; 4724 *) lt_bad_file=/dev/null ;; 4725 esac 4726 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4727 *$lt_bad_file* | *'Invalid file or object type'*) 4728 lt_cv_path_NM="$tmp_nm -B" 4729 break 2 4730 ;; 4731 *) 4732 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4733 */dev/null*) 4734 lt_cv_path_NM="$tmp_nm -p" 4735 break 2 4736 ;; 4737 *) 4738 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4739 continue # so that we can try to find one that supports BSD flags 4740 ;; 4741 esac 4742 ;; 4743 esac 4744 fi 4745 done 4746 IFS=$lt_save_ifs 4747 done 4748 : ${lt_cv_path_NM=no} 4749fi 4750fi 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4752$as_echo "$lt_cv_path_NM" >&6; } 4753if test no != "$lt_cv_path_NM"; then 4754 NM=$lt_cv_path_NM 4755else 4756 # Didn't find any BSD compatible name lister, look for dumpbin. 4757 if test -n "$DUMPBIN"; then : 4758 # Let the user override the test. 4759 else 4760 if test -n "$ac_tool_prefix"; then 4761 for ac_prog in dumpbin "link -dump" 4762 do 4763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4764set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4766$as_echo_n "checking for $ac_word... " >&6; } 4767if ${ac_cv_prog_DUMPBIN+:} false; then : 4768 $as_echo_n "(cached) " >&6 4769else 4770 if test -n "$DUMPBIN"; then 4771 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4772else 4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4780 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4782 break 2 4783 fi 4784done 4785 done 4786IFS=$as_save_IFS 4787 4788fi 4789fi 4790DUMPBIN=$ac_cv_prog_DUMPBIN 4791if test -n "$DUMPBIN"; then 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4793$as_echo "$DUMPBIN" >&6; } 4794else 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4796$as_echo "no" >&6; } 4797fi 4798 4799 4800 test -n "$DUMPBIN" && break 4801 done 4802fi 4803if test -z "$DUMPBIN"; then 4804 ac_ct_DUMPBIN=$DUMPBIN 4805 for ac_prog in dumpbin "link -dump" 4806do 4807 # Extract the first word of "$ac_prog", so it can be a program name with args. 4808set dummy $ac_prog; ac_word=$2 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4810$as_echo_n "checking for $ac_word... " >&6; } 4811if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4812 $as_echo_n "(cached) " >&6 4813else 4814 if test -n "$ac_ct_DUMPBIN"; then 4815 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4816else 4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4824 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829 done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4835if test -n "$ac_ct_DUMPBIN"; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4837$as_echo "$ac_ct_DUMPBIN" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840$as_echo "no" >&6; } 4841fi 4842 4843 4844 test -n "$ac_ct_DUMPBIN" && break 4845done 4846 4847 if test "x$ac_ct_DUMPBIN" = x; then 4848 DUMPBIN=":" 4849 else 4850 case $cross_compiling:$ac_tool_warned in 4851yes:) 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4854ac_tool_warned=yes ;; 4855esac 4856 DUMPBIN=$ac_ct_DUMPBIN 4857 fi 4858fi 4859 4860 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4861 *COFF*) 4862 DUMPBIN="$DUMPBIN -symbols -headers" 4863 ;; 4864 *) 4865 DUMPBIN=: 4866 ;; 4867 esac 4868 fi 4869 4870 if test : != "$DUMPBIN"; then 4871 NM=$DUMPBIN 4872 fi 4873fi 4874test -z "$NM" && NM=nm 4875 4876 4877 4878 4879 4880 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4882$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4883if ${lt_cv_nm_interface+:} false; then : 4884 $as_echo_n "(cached) " >&6 4885else 4886 lt_cv_nm_interface="BSD nm" 4887 echo "int some_variable = 0;" > conftest.$ac_ext 4888 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4889 (eval "$ac_compile" 2>conftest.err) 4890 cat conftest.err >&5 4891 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4893 cat conftest.err >&5 4894 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4895 cat conftest.out >&5 4896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4897 lt_cv_nm_interface="MS dumpbin" 4898 fi 4899 rm -f conftest* 4900fi 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4902$as_echo "$lt_cv_nm_interface" >&6; } 4903 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4905$as_echo_n "checking whether ln -s works... " >&6; } 4906LN_S=$as_ln_s 4907if test "$LN_S" = "ln -s"; then 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4909$as_echo "yes" >&6; } 4910else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4912$as_echo "no, using $LN_S" >&6; } 4913fi 4914 4915# find the maximum length of command line arguments 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4917$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4918if ${lt_cv_sys_max_cmd_len+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 i=0 4922 teststring=ABCD 4923 4924 case $build_os in 4925 msdosdjgpp*) 4926 # On DJGPP, this test can blow up pretty badly due to problems in libc 4927 # (any single argument exceeding 2000 bytes causes a buffer overrun 4928 # during glob expansion). Even if it were fixed, the result of this 4929 # check would be larger than it should be. 4930 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4931 ;; 4932 4933 gnu*) 4934 # Under GNU Hurd, this test is not required because there is 4935 # no limit to the length of command line arguments. 4936 # Libtool will interpret -1 as no limit whatsoever 4937 lt_cv_sys_max_cmd_len=-1; 4938 ;; 4939 4940 cygwin* | mingw* | cegcc*) 4941 # On Win9x/ME, this test blows up -- it succeeds, but takes 4942 # about 5 minutes as the teststring grows exponentially. 4943 # Worse, since 9x/ME are not pre-emptively multitasking, 4944 # you end up with a "frozen" computer, even though with patience 4945 # the test eventually succeeds (with a max line length of 256k). 4946 # Instead, let's just punt: use the minimum linelength reported by 4947 # all of the supported platforms: 8192 (on NT/2K/XP). 4948 lt_cv_sys_max_cmd_len=8192; 4949 ;; 4950 4951 mint*) 4952 # On MiNT this can take a long time and run out of memory. 4953 lt_cv_sys_max_cmd_len=8192; 4954 ;; 4955 4956 mint*) 4957 # On MiNT this can take a long time and run out of memory. 4958 lt_cv_sys_max_cmd_len=8192; 4959 ;; 4960 4961 amigaos*) 4962 # On AmigaOS with pdksh, this test takes hours, literally. 4963 # So we just punt and use a minimum line length of 8192. 4964 lt_cv_sys_max_cmd_len=8192; 4965 ;; 4966 4967 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4968 # This has been around since 386BSD, at least. Likely further. 4969 if test -x /sbin/sysctl; then 4970 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4971 elif test -x /usr/sbin/sysctl; then 4972 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4973 else 4974 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4975 fi 4976 # And add a safety zone 4977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4979 ;; 4980 4981 interix*) 4982 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4983 lt_cv_sys_max_cmd_len=196608 4984 ;; 4985 4986 os2*) 4987 # The test takes a long time on OS/2. 4988 lt_cv_sys_max_cmd_len=8192 4989 ;; 4990 4991 osf*) 4992 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4993 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4994 # nice to cause kernel panics so lets avoid the loop below. 4995 # First set a reasonable default. 4996 lt_cv_sys_max_cmd_len=16384 4997 # 4998 if test -x /sbin/sysconfig; then 4999 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5000 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5001 esac 5002 fi 5003 ;; 5004 sco3.2v5*) 5005 lt_cv_sys_max_cmd_len=102400 5006 ;; 5007 sysv5* | sco5v6* | sysv4.2uw2*) 5008 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5009 if test -n "$kargmax"; then 5010 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5011 else 5012 lt_cv_sys_max_cmd_len=32768 5013 fi 5014 ;; 5015 *) 5016 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5017 if test -n "$lt_cv_sys_max_cmd_len" && \ 5018 test undefined != "$lt_cv_sys_max_cmd_len"; then 5019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5021 else 5022 # Make teststring a little bigger before we do anything with it. 5023 # a 1K string should be a reasonable start. 5024 for i in 1 2 3 4 5 6 7 8; do 5025 teststring=$teststring$teststring 5026 done 5027 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5028 # If test is not a shell built-in, we'll probably end up computing a 5029 # maximum length that is only half of the actual maximum length, but 5030 # we can't tell. 5031 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5032 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5033 test 17 != "$i" # 1/2 MB should be enough 5034 do 5035 i=`expr $i + 1` 5036 teststring=$teststring$teststring 5037 done 5038 # Only check the string length outside the loop. 5039 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5040 teststring= 5041 # Add a significant safety factor because C++ compilers can tack on 5042 # massive amounts of additional arguments before passing them to the 5043 # linker. It appears as though 1/2 is a usable value. 5044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5045 fi 5046 ;; 5047 esac 5048 5049fi 5050 5051if test -n "$lt_cv_sys_max_cmd_len"; then 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5053$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5054else 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5056$as_echo "none" >&6; } 5057fi 5058max_cmd_len=$lt_cv_sys_max_cmd_len 5059 5060 5061 5062 5063 5064 5065: ${CP="cp -f"} 5066: ${MV="mv -f"} 5067: ${RM="rm -f"} 5068 5069if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5070 lt_unset=unset 5071else 5072 lt_unset=false 5073fi 5074 5075 5076 5077 5078 5079# test EBCDIC or ASCII 5080case `echo X|tr X '\101'` in 5081 A) # ASCII based system 5082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5083 lt_SP2NL='tr \040 \012' 5084 lt_NL2SP='tr \015\012 \040\040' 5085 ;; 5086 *) # EBCDIC based system 5087 lt_SP2NL='tr \100 \n' 5088 lt_NL2SP='tr \r\n \100\100' 5089 ;; 5090esac 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5101$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5102if ${lt_cv_to_host_file_cmd+:} false; then : 5103 $as_echo_n "(cached) " >&6 5104else 5105 case $host in 5106 *-*-mingw* ) 5107 case $build in 5108 *-*-mingw* ) # actually msys 5109 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5110 ;; 5111 *-*-cygwin* ) 5112 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5113 ;; 5114 * ) # otherwise, assume *nix 5115 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5116 ;; 5117 esac 5118 ;; 5119 *-*-cygwin* ) 5120 case $build in 5121 *-*-mingw* ) # actually msys 5122 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5123 ;; 5124 *-*-cygwin* ) 5125 lt_cv_to_host_file_cmd=func_convert_file_noop 5126 ;; 5127 * ) # otherwise, assume *nix 5128 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5129 ;; 5130 esac 5131 ;; 5132 * ) # unhandled hosts (and "normal" native builds) 5133 lt_cv_to_host_file_cmd=func_convert_file_noop 5134 ;; 5135esac 5136 5137fi 5138 5139to_host_file_cmd=$lt_cv_to_host_file_cmd 5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5141$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5142 5143 5144 5145 5146 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5148$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5149if ${lt_cv_to_tool_file_cmd+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 #assume ordinary cross tools, or native build. 5153lt_cv_to_tool_file_cmd=func_convert_file_noop 5154case $host in 5155 *-*-mingw* ) 5156 case $build in 5157 *-*-mingw* ) # actually msys 5158 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5159 ;; 5160 esac 5161 ;; 5162esac 5163 5164fi 5165 5166to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5168$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5169 5170 5171 5172 5173 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5175$as_echo_n "checking for $LD option to reload object files... " >&6; } 5176if ${lt_cv_ld_reload_flag+:} false; then : 5177 $as_echo_n "(cached) " >&6 5178else 5179 lt_cv_ld_reload_flag='-r' 5180fi 5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5182$as_echo "$lt_cv_ld_reload_flag" >&6; } 5183reload_flag=$lt_cv_ld_reload_flag 5184case $reload_flag in 5185"" | " "*) ;; 5186*) reload_flag=" $reload_flag" ;; 5187esac 5188reload_cmds='$LD$reload_flag -o $output$reload_objs' 5189case $host_os in 5190 cygwin* | mingw* | pw32* | cegcc*) 5191 if test yes != "$GCC"; then 5192 reload_cmds=false 5193 fi 5194 ;; 5195 darwin*) 5196 if test yes = "$GCC"; then 5197 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5198 else 5199 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5200 fi 5201 ;; 5202esac 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212if test -n "$ac_tool_prefix"; then 5213 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5214set dummy ${ac_tool_prefix}objdump; ac_word=$2 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5216$as_echo_n "checking for $ac_word... " >&6; } 5217if ${ac_cv_prog_OBJDUMP+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 if test -n "$OBJDUMP"; then 5221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5222else 5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5224for as_dir in $PATH 5225do 5226 IFS=$as_save_IFS 5227 test -z "$as_dir" && as_dir=. 5228 for ac_exec_ext in '' $ac_executable_extensions; do 5229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5230 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5232 break 2 5233 fi 5234done 5235 done 5236IFS=$as_save_IFS 5237 5238fi 5239fi 5240OBJDUMP=$ac_cv_prog_OBJDUMP 5241if test -n "$OBJDUMP"; then 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5243$as_echo "$OBJDUMP" >&6; } 5244else 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5246$as_echo "no" >&6; } 5247fi 5248 5249 5250fi 5251if test -z "$ac_cv_prog_OBJDUMP"; then 5252 ac_ct_OBJDUMP=$OBJDUMP 5253 # Extract the first word of "objdump", so it can be a program name with args. 5254set dummy objdump; ac_word=$2 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5256$as_echo_n "checking for $ac_word... " >&6; } 5257if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5258 $as_echo_n "(cached) " >&6 5259else 5260 if test -n "$ac_ct_OBJDUMP"; then 5261 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5262else 5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5264for as_dir in $PATH 5265do 5266 IFS=$as_save_IFS 5267 test -z "$as_dir" && as_dir=. 5268 for ac_exec_ext in '' $ac_executable_extensions; do 5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5270 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5272 break 2 5273 fi 5274done 5275 done 5276IFS=$as_save_IFS 5277 5278fi 5279fi 5280ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5281if test -n "$ac_ct_OBJDUMP"; then 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5283$as_echo "$ac_ct_OBJDUMP" >&6; } 5284else 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5286$as_echo "no" >&6; } 5287fi 5288 5289 if test "x$ac_ct_OBJDUMP" = x; then 5290 OBJDUMP="false" 5291 else 5292 case $cross_compiling:$ac_tool_warned in 5293yes:) 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5296ac_tool_warned=yes ;; 5297esac 5298 OBJDUMP=$ac_ct_OBJDUMP 5299 fi 5300else 5301 OBJDUMP="$ac_cv_prog_OBJDUMP" 5302fi 5303 5304test -z "$OBJDUMP" && OBJDUMP=objdump 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5315$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5316if ${lt_cv_deplibs_check_method+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 lt_cv_file_magic_cmd='$MAGIC_CMD' 5320lt_cv_file_magic_test_file= 5321lt_cv_deplibs_check_method='unknown' 5322# Need to set the preceding variable on all platforms that support 5323# interlibrary dependencies. 5324# 'none' -- dependencies not supported. 5325# 'unknown' -- same as none, but documents that we really don't know. 5326# 'pass_all' -- all dependencies passed with no checks. 5327# 'test_compile' -- check by making test program. 5328# 'file_magic [[regex]]' -- check by looking for files in library path 5329# that responds to the $file_magic_cmd with a given extended regex. 5330# If you have 'file' or equivalent on your system and you're not sure 5331# whether 'pass_all' will *always* work, you probably want this one. 5332 5333case $host_os in 5334aix[4-9]*) 5335 lt_cv_deplibs_check_method=pass_all 5336 ;; 5337 5338beos*) 5339 lt_cv_deplibs_check_method=pass_all 5340 ;; 5341 5342bsdi[45]*) 5343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5344 lt_cv_file_magic_cmd='/usr/bin/file -L' 5345 lt_cv_file_magic_test_file=/shlib/libc.so 5346 ;; 5347 5348cygwin*) 5349 # func_win32_libid is a shell function defined in ltmain.sh 5350 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5351 lt_cv_file_magic_cmd='func_win32_libid' 5352 ;; 5353 5354mingw* | pw32*) 5355 # Base MSYS/MinGW do not provide the 'file' command needed by 5356 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5357 # unless we find 'file', for example because we are cross-compiling. 5358 if ( file / ) >/dev/null 2>&1; then 5359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5360 lt_cv_file_magic_cmd='func_win32_libid' 5361 else 5362 # Keep this pattern in sync with the one in func_win32_libid. 5363 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5364 lt_cv_file_magic_cmd='$OBJDUMP -f' 5365 fi 5366 ;; 5367 5368cegcc*) 5369 # use the weaker test based on 'objdump'. See mingw*. 5370 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5371 lt_cv_file_magic_cmd='$OBJDUMP -f' 5372 ;; 5373 5374darwin* | rhapsody*) 5375 lt_cv_deplibs_check_method=pass_all 5376 ;; 5377 5378freebsd* | dragonfly*) 5379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5380 case $host_cpu in 5381 i*86 ) 5382 # Not sure whether the presence of OpenBSD here was a mistake. 5383 # Let's accept both of them until this is cleared up. 5384 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5385 lt_cv_file_magic_cmd=/usr/bin/file 5386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5387 ;; 5388 esac 5389 else 5390 lt_cv_deplibs_check_method=pass_all 5391 fi 5392 ;; 5393 5394haiku*) 5395 lt_cv_deplibs_check_method=pass_all 5396 ;; 5397 5398hpux10.20* | hpux11*) 5399 lt_cv_file_magic_cmd=/usr/bin/file 5400 case $host_cpu in 5401 ia64*) 5402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5404 ;; 5405 hppa*64*) 5406 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]' 5407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5408 ;; 5409 *) 5410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5411 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5412 ;; 5413 esac 5414 ;; 5415 5416interix[3-9]*) 5417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5419 ;; 5420 5421irix5* | irix6* | nonstopux*) 5422 case $LD in 5423 *-32|*"-32 ") libmagic=32-bit;; 5424 *-n32|*"-n32 ") libmagic=N32;; 5425 *-64|*"-64 ") libmagic=64-bit;; 5426 *) libmagic=never-match;; 5427 esac 5428 lt_cv_deplibs_check_method=pass_all 5429 ;; 5430 5431# This must be glibc/ELF. 5432linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5433 lt_cv_deplibs_check_method=pass_all 5434 ;; 5435 5436netbsd*) 5437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5439 else 5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5441 fi 5442 ;; 5443 5444newos6*) 5445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5446 lt_cv_file_magic_cmd=/usr/bin/file 5447 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5448 ;; 5449 5450*nto* | *qnx*) 5451 lt_cv_deplibs_check_method=pass_all 5452 ;; 5453 5454openbsd* | bitrig*) 5455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5457 else 5458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5459 fi 5460 ;; 5461 5462osf3* | osf4* | osf5*) 5463 lt_cv_deplibs_check_method=pass_all 5464 ;; 5465 5466rdos*) 5467 lt_cv_deplibs_check_method=pass_all 5468 ;; 5469 5470solaris*) 5471 lt_cv_deplibs_check_method=pass_all 5472 ;; 5473 5474sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5475 lt_cv_deplibs_check_method=pass_all 5476 ;; 5477 5478sysv4 | sysv4.3*) 5479 case $host_vendor in 5480 motorola) 5481 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]' 5482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5483 ;; 5484 ncr) 5485 lt_cv_deplibs_check_method=pass_all 5486 ;; 5487 sequent) 5488 lt_cv_file_magic_cmd='/bin/file' 5489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5490 ;; 5491 sni) 5492 lt_cv_file_magic_cmd='/bin/file' 5493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5494 lt_cv_file_magic_test_file=/lib/libc.so 5495 ;; 5496 siemens) 5497 lt_cv_deplibs_check_method=pass_all 5498 ;; 5499 pc) 5500 lt_cv_deplibs_check_method=pass_all 5501 ;; 5502 esac 5503 ;; 5504 5505tpf*) 5506 lt_cv_deplibs_check_method=pass_all 5507 ;; 5508os2*) 5509 lt_cv_deplibs_check_method=pass_all 5510 ;; 5511esac 5512 5513fi 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5515$as_echo "$lt_cv_deplibs_check_method" >&6; } 5516 5517file_magic_glob= 5518want_nocaseglob=no 5519if test "$build" = "$host"; then 5520 case $host_os in 5521 mingw* | pw32*) 5522 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5523 want_nocaseglob=yes 5524 else 5525 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5526 fi 5527 ;; 5528 esac 5529fi 5530 5531file_magic_cmd=$lt_cv_file_magic_cmd 5532deplibs_check_method=$lt_cv_deplibs_check_method 5533test -z "$deplibs_check_method" && deplibs_check_method=unknown 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556if test -n "$ac_tool_prefix"; then 5557 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5558set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5560$as_echo_n "checking for $ac_word... " >&6; } 5561if ${ac_cv_prog_DLLTOOL+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 if test -n "$DLLTOOL"; then 5565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5566else 5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5568for as_dir in $PATH 5569do 5570 IFS=$as_save_IFS 5571 test -z "$as_dir" && as_dir=. 5572 for ac_exec_ext in '' $ac_executable_extensions; do 5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5574 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5576 break 2 5577 fi 5578done 5579 done 5580IFS=$as_save_IFS 5581 5582fi 5583fi 5584DLLTOOL=$ac_cv_prog_DLLTOOL 5585if test -n "$DLLTOOL"; then 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5587$as_echo "$DLLTOOL" >&6; } 5588else 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5590$as_echo "no" >&6; } 5591fi 5592 5593 5594fi 5595if test -z "$ac_cv_prog_DLLTOOL"; then 5596 ac_ct_DLLTOOL=$DLLTOOL 5597 # Extract the first word of "dlltool", so it can be a program name with args. 5598set dummy dlltool; ac_word=$2 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5600$as_echo_n "checking for $ac_word... " >&6; } 5601if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 if test -n "$ac_ct_DLLTOOL"; then 5605 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5606else 5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5608for as_dir in $PATH 5609do 5610 IFS=$as_save_IFS 5611 test -z "$as_dir" && as_dir=. 5612 for ac_exec_ext in '' $ac_executable_extensions; do 5613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5614 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5616 break 2 5617 fi 5618done 5619 done 5620IFS=$as_save_IFS 5621 5622fi 5623fi 5624ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5625if test -n "$ac_ct_DLLTOOL"; then 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5627$as_echo "$ac_ct_DLLTOOL" >&6; } 5628else 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5630$as_echo "no" >&6; } 5631fi 5632 5633 if test "x$ac_ct_DLLTOOL" = x; then 5634 DLLTOOL="false" 5635 else 5636 case $cross_compiling:$ac_tool_warned in 5637yes:) 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5640ac_tool_warned=yes ;; 5641esac 5642 DLLTOOL=$ac_ct_DLLTOOL 5643 fi 5644else 5645 DLLTOOL="$ac_cv_prog_DLLTOOL" 5646fi 5647 5648test -z "$DLLTOOL" && DLLTOOL=dlltool 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5660$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5661if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 lt_cv_sharedlib_from_linklib_cmd='unknown' 5665 5666case $host_os in 5667cygwin* | mingw* | pw32* | cegcc*) 5668 # two different shell functions defined in ltmain.sh; 5669 # decide which one to use based on capabilities of $DLLTOOL 5670 case `$DLLTOOL --help 2>&1` in 5671 *--identify-strict*) 5672 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5673 ;; 5674 *) 5675 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5676 ;; 5677 esac 5678 ;; 5679*) 5680 # fallback: assume linklib IS sharedlib 5681 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5682 ;; 5683esac 5684 5685fi 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5687$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5688sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5689test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5690 5691 5692 5693 5694 5695 5696 5697 5698if test -n "$ac_tool_prefix"; then 5699 for ac_prog in ar 5700 do 5701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5702set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5704$as_echo_n "checking for $ac_word... " >&6; } 5705if ${ac_cv_prog_AR+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 if test -n "$AR"; then 5709 ac_cv_prog_AR="$AR" # Let the user override the test. 5710else 5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5712for as_dir in $PATH 5713do 5714 IFS=$as_save_IFS 5715 test -z "$as_dir" && as_dir=. 5716 for ac_exec_ext in '' $ac_executable_extensions; do 5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5718 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5720 break 2 5721 fi 5722done 5723 done 5724IFS=$as_save_IFS 5725 5726fi 5727fi 5728AR=$ac_cv_prog_AR 5729if test -n "$AR"; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5731$as_echo "$AR" >&6; } 5732else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5734$as_echo "no" >&6; } 5735fi 5736 5737 5738 test -n "$AR" && break 5739 done 5740fi 5741if test -z "$AR"; then 5742 ac_ct_AR=$AR 5743 for ac_prog in ar 5744do 5745 # Extract the first word of "$ac_prog", so it can be a program name with args. 5746set dummy $ac_prog; ac_word=$2 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5748$as_echo_n "checking for $ac_word... " >&6; } 5749if ${ac_cv_prog_ac_ct_AR+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 if test -n "$ac_ct_AR"; then 5753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5754else 5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5756for as_dir in $PATH 5757do 5758 IFS=$as_save_IFS 5759 test -z "$as_dir" && as_dir=. 5760 for ac_exec_ext in '' $ac_executable_extensions; do 5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5762 ac_cv_prog_ac_ct_AR="$ac_prog" 5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5764 break 2 5765 fi 5766done 5767 done 5768IFS=$as_save_IFS 5769 5770fi 5771fi 5772ac_ct_AR=$ac_cv_prog_ac_ct_AR 5773if test -n "$ac_ct_AR"; then 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5775$as_echo "$ac_ct_AR" >&6; } 5776else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778$as_echo "no" >&6; } 5779fi 5780 5781 5782 test -n "$ac_ct_AR" && break 5783done 5784 5785 if test "x$ac_ct_AR" = x; then 5786 AR="false" 5787 else 5788 case $cross_compiling:$ac_tool_warned in 5789yes:) 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5792ac_tool_warned=yes ;; 5793esac 5794 AR=$ac_ct_AR 5795 fi 5796fi 5797 5798: ${AR=ar} 5799: ${AR_FLAGS=cru} 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5812$as_echo_n "checking for archiver @FILE support... " >&6; } 5813if ${lt_cv_ar_at_file+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 lt_cv_ar_at_file=no 5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819 5820int 5821main () 5822{ 5823 5824 ; 5825 return 0; 5826} 5827_ACEOF 5828if ac_fn_c_try_compile "$LINENO"; then : 5829 echo conftest.$ac_objext > conftest.lst 5830 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5832 (eval $lt_ar_try) 2>&5 5833 ac_status=$? 5834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5835 test $ac_status = 0; } 5836 if test 0 -eq "$ac_status"; then 5837 # Ensure the archiver fails upon bogus file names. 5838 rm -f conftest.$ac_objext libconftest.a 5839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5840 (eval $lt_ar_try) 2>&5 5841 ac_status=$? 5842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5843 test $ac_status = 0; } 5844 if test 0 -ne "$ac_status"; then 5845 lt_cv_ar_at_file=@ 5846 fi 5847 fi 5848 rm -f conftest.* libconftest.a 5849 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5852 5853fi 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5855$as_echo "$lt_cv_ar_at_file" >&6; } 5856 5857if test no = "$lt_cv_ar_at_file"; then 5858 archiver_list_spec= 5859else 5860 archiver_list_spec=$lt_cv_ar_at_file 5861fi 5862 5863 5864 5865 5866 5867 5868 5869if test -n "$ac_tool_prefix"; then 5870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5871set dummy ${ac_tool_prefix}strip; ac_word=$2 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5873$as_echo_n "checking for $ac_word... " >&6; } 5874if ${ac_cv_prog_STRIP+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 if test -n "$STRIP"; then 5878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5879else 5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5887 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892 done 5893IFS=$as_save_IFS 5894 5895fi 5896fi 5897STRIP=$ac_cv_prog_STRIP 5898if test -n "$STRIP"; then 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5900$as_echo "$STRIP" >&6; } 5901else 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5903$as_echo "no" >&6; } 5904fi 5905 5906 5907fi 5908if test -z "$ac_cv_prog_STRIP"; then 5909 ac_ct_STRIP=$STRIP 5910 # Extract the first word of "strip", so it can be a program name with args. 5911set dummy strip; ac_word=$2 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5913$as_echo_n "checking for $ac_word... " >&6; } 5914if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 if test -n "$ac_ct_STRIP"; then 5918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5927 ac_cv_prog_ac_ct_STRIP="strip" 5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932 done 5933IFS=$as_save_IFS 5934 5935fi 5936fi 5937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5938if test -n "$ac_ct_STRIP"; then 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5940$as_echo "$ac_ct_STRIP" >&6; } 5941else 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5943$as_echo "no" >&6; } 5944fi 5945 5946 if test "x$ac_ct_STRIP" = x; then 5947 STRIP=":" 5948 else 5949 case $cross_compiling:$ac_tool_warned in 5950yes:) 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5953ac_tool_warned=yes ;; 5954esac 5955 STRIP=$ac_ct_STRIP 5956 fi 5957else 5958 STRIP="$ac_cv_prog_STRIP" 5959fi 5960 5961test -z "$STRIP" && STRIP=: 5962 5963 5964 5965 5966 5967 5968if test -n "$ac_tool_prefix"; then 5969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5970set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5972$as_echo_n "checking for $ac_word... " >&6; } 5973if ${ac_cv_prog_RANLIB+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 if test -n "$RANLIB"; then 5977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991 done 5992IFS=$as_save_IFS 5993 5994fi 5995fi 5996RANLIB=$ac_cv_prog_RANLIB 5997if test -n "$RANLIB"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5999$as_echo "$RANLIB" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002$as_echo "no" >&6; } 6003fi 6004 6005 6006fi 6007if test -z "$ac_cv_prog_RANLIB"; then 6008 ac_ct_RANLIB=$RANLIB 6009 # Extract the first word of "ranlib", so it can be a program name with args. 6010set dummy ranlib; ac_word=$2 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6012$as_echo_n "checking for $ac_word... " >&6; } 6013if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6014 $as_echo_n "(cached) " >&6 6015else 6016 if test -n "$ac_ct_RANLIB"; then 6017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6018else 6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6020for as_dir in $PATH 6021do 6022 IFS=$as_save_IFS 6023 test -z "$as_dir" && as_dir=. 6024 for ac_exec_ext in '' $ac_executable_extensions; do 6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6026 ac_cv_prog_ac_ct_RANLIB="ranlib" 6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6028 break 2 6029 fi 6030done 6031 done 6032IFS=$as_save_IFS 6033 6034fi 6035fi 6036ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6037if test -n "$ac_ct_RANLIB"; then 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6039$as_echo "$ac_ct_RANLIB" >&6; } 6040else 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6042$as_echo "no" >&6; } 6043fi 6044 6045 if test "x$ac_ct_RANLIB" = x; then 6046 RANLIB=":" 6047 else 6048 case $cross_compiling:$ac_tool_warned in 6049yes:) 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6052ac_tool_warned=yes ;; 6053esac 6054 RANLIB=$ac_ct_RANLIB 6055 fi 6056else 6057 RANLIB="$ac_cv_prog_RANLIB" 6058fi 6059 6060test -z "$RANLIB" && RANLIB=: 6061 6062 6063 6064 6065 6066 6067# Determine commands to create old-style static archives. 6068old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6069old_postinstall_cmds='chmod 644 $oldlib' 6070old_postuninstall_cmds= 6071 6072if test -n "$RANLIB"; then 6073 case $host_os in 6074 bitrig* | openbsd*) 6075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6076 ;; 6077 *) 6078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6079 ;; 6080 esac 6081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6082fi 6083 6084case $host_os in 6085 darwin*) 6086 lock_old_archive_extraction=yes ;; 6087 *) 6088 lock_old_archive_extraction=no ;; 6089esac 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129# If no C compiler was specified, use CC. 6130LTCC=${LTCC-"$CC"} 6131 6132# If no C compiler flags were specified, use CFLAGS. 6133LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6134 6135# Allow CC to be a program name with arguments. 6136compiler=$CC 6137 6138 6139# Check for command to grab the raw symbol name followed by C symbol from nm. 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6141$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6142if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 6146# These are sane defaults that work on at least a few old systems. 6147# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6148 6149# Character class describing NM global symbol codes. 6150symcode='[BCDEGRST]' 6151 6152# Regexp to match symbols that can be accessed directly from C. 6153sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6154 6155# Define system-specific variables. 6156case $host_os in 6157aix*) 6158 symcode='[BCDT]' 6159 ;; 6160cygwin* | mingw* | pw32* | cegcc*) 6161 symcode='[ABCDGISTW]' 6162 ;; 6163hpux*) 6164 if test ia64 = "$host_cpu"; then 6165 symcode='[ABCDEGRST]' 6166 fi 6167 ;; 6168irix* | nonstopux*) 6169 symcode='[BCDEGRST]' 6170 ;; 6171osf*) 6172 symcode='[BCDEGQRST]' 6173 ;; 6174solaris*) 6175 symcode='[BDRT]' 6176 ;; 6177sco3.2v5*) 6178 symcode='[DT]' 6179 ;; 6180sysv4.2uw2*) 6181 symcode='[DT]' 6182 ;; 6183sysv5* | sco5v6* | unixware* | OpenUNIX*) 6184 symcode='[ABDT]' 6185 ;; 6186sysv4) 6187 symcode='[DFNSTU]' 6188 ;; 6189esac 6190 6191# If we're using GNU nm, then use its standard symbol codes. 6192case `$NM -V 2>&1` in 6193*GNU* | *'with BFD'*) 6194 symcode='[ABCDGIRSTW]' ;; 6195esac 6196 6197if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6198 # Gets list of data symbols to import. 6199 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6200 # Adjust the below global symbol transforms to fixup imported variables. 6201 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6202 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6203 lt_c_name_lib_hook="\ 6204 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6205 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6206else 6207 # Disable hooks by default. 6208 lt_cv_sys_global_symbol_to_import= 6209 lt_cdecl_hook= 6210 lt_c_name_hook= 6211 lt_c_name_lib_hook= 6212fi 6213 6214# Transform an extracted symbol line into a proper C declaration. 6215# Some systems (esp. on ia64) link data and code symbols differently, 6216# so use this general approach. 6217lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6218$lt_cdecl_hook\ 6219" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6220" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6221 6222# Transform an extracted symbol line into symbol name and symbol address 6223lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6224$lt_c_name_hook\ 6225" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6226" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6227 6228# Transform an extracted symbol line into symbol name with lib prefix and 6229# symbol address. 6230lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6231$lt_c_name_lib_hook\ 6232" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6233" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6234" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6235 6236# Handle CRLF in mingw tool chain 6237opt_cr= 6238case $build_os in 6239mingw*) 6240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6241 ;; 6242esac 6243 6244# Try without a prefix underscore, then with it. 6245for ac_symprfx in "" "_"; do 6246 6247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6248 symxfrm="\\1 $ac_symprfx\\2 \\2" 6249 6250 # Write the raw and C identifiers. 6251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6252 # Fake it for dumpbin and say T for any non-static function, 6253 # D for any global variable and I for any imported variable. 6254 # Also find C++ and __fastcall symbols from MSVC++, 6255 # which start with @ or ?. 6256 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6257" {last_section=section; section=\$ 3};"\ 6258" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6259" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6260" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6261" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6262" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6263" \$ 0!~/External *\|/{next};"\ 6264" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6265" {if(hide[section]) next};"\ 6266" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6267" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6268" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6269" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6270" ' prfx=^$ac_symprfx" 6271 else 6272 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6273 fi 6274 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6275 6276 # Check to see that the pipe works correctly. 6277 pipe_works=no 6278 6279 rm -f conftest* 6280 cat > conftest.$ac_ext <<_LT_EOF 6281#ifdef __cplusplus 6282extern "C" { 6283#endif 6284char nm_test_var; 6285void nm_test_func(void); 6286void nm_test_func(void){} 6287#ifdef __cplusplus 6288} 6289#endif 6290int main(){nm_test_var='a';nm_test_func();return(0);} 6291_LT_EOF 6292 6293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6294 (eval $ac_compile) 2>&5 6295 ac_status=$? 6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6297 test $ac_status = 0; }; then 6298 # Now try to grab the symbols. 6299 nlist=conftest.nm 6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6301 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6302 ac_status=$? 6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6304 test $ac_status = 0; } && test -s "$nlist"; then 6305 # Try sorting and uniquifying the output. 6306 if sort "$nlist" | uniq > "$nlist"T; then 6307 mv -f "$nlist"T "$nlist" 6308 else 6309 rm -f "$nlist"T 6310 fi 6311 6312 # Make sure that we snagged all the symbols we need. 6313 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6314 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6315 cat <<_LT_EOF > conftest.$ac_ext 6316/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6317#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6318/* DATA imports from DLLs on WIN32 can't be const, because runtime 6319 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6320# define LT_DLSYM_CONST 6321#elif defined __osf__ 6322/* This system does not cope well with relocations in const data. */ 6323# define LT_DLSYM_CONST 6324#else 6325# define LT_DLSYM_CONST const 6326#endif 6327 6328#ifdef __cplusplus 6329extern "C" { 6330#endif 6331 6332_LT_EOF 6333 # Now generate the symbol file. 6334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6335 6336 cat <<_LT_EOF >> conftest.$ac_ext 6337 6338/* The mapping between symbol names and symbols. */ 6339LT_DLSYM_CONST struct { 6340 const char *name; 6341 void *address; 6342} 6343lt__PROGRAM__LTX_preloaded_symbols[] = 6344{ 6345 { "@PROGRAM@", (void *) 0 }, 6346_LT_EOF 6347 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6348 cat <<\_LT_EOF >> conftest.$ac_ext 6349 {0, (void *) 0} 6350}; 6351 6352/* This works around a problem in FreeBSD linker */ 6353#ifdef FREEBSD_WORKAROUND 6354static const void *lt_preloaded_setup() { 6355 return lt__PROGRAM__LTX_preloaded_symbols; 6356} 6357#endif 6358 6359#ifdef __cplusplus 6360} 6361#endif 6362_LT_EOF 6363 # Now try linking the two files. 6364 mv conftest.$ac_objext conftstm.$ac_objext 6365 lt_globsym_save_LIBS=$LIBS 6366 lt_globsym_save_CFLAGS=$CFLAGS 6367 LIBS=conftstm.$ac_objext 6368 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6370 (eval $ac_link) 2>&5 6371 ac_status=$? 6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6373 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6374 pipe_works=yes 6375 fi 6376 LIBS=$lt_globsym_save_LIBS 6377 CFLAGS=$lt_globsym_save_CFLAGS 6378 else 6379 echo "cannot find nm_test_func in $nlist" >&5 6380 fi 6381 else 6382 echo "cannot find nm_test_var in $nlist" >&5 6383 fi 6384 else 6385 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6386 fi 6387 else 6388 echo "$progname: failed program was:" >&5 6389 cat conftest.$ac_ext >&5 6390 fi 6391 rm -rf conftest* conftst* 6392 6393 # Do not use the global_symbol_pipe unless it works. 6394 if test yes = "$pipe_works"; then 6395 break 6396 else 6397 lt_cv_sys_global_symbol_pipe= 6398 fi 6399done 6400 6401fi 6402 6403if test -z "$lt_cv_sys_global_symbol_pipe"; then 6404 lt_cv_sys_global_symbol_to_cdecl= 6405fi 6406if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6408$as_echo "failed" >&6; } 6409else 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6411$as_echo "ok" >&6; } 6412fi 6413 6414# Response file support. 6415if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6416 nm_file_list_spec='@' 6417elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6418 nm_file_list_spec='@' 6419fi 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6458$as_echo_n "checking for sysroot... " >&6; } 6459 6460# Check whether --with-sysroot was given. 6461if test "${with_sysroot+set}" = set; then : 6462 withval=$with_sysroot; 6463else 6464 with_sysroot=no 6465fi 6466 6467 6468lt_sysroot= 6469case $with_sysroot in #( 6470 yes) 6471 if test yes = "$GCC"; then 6472 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6473 fi 6474 ;; #( 6475 /*) 6476 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6477 ;; #( 6478 no|'') 6479 ;; #( 6480 *) 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6482$as_echo "$with_sysroot" >&6; } 6483 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6484 ;; 6485esac 6486 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6488$as_echo "${lt_sysroot:-no}" >&6; } 6489 6490 6491 6492 6493 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6495$as_echo_n "checking for a working dd... " >&6; } 6496if ${ac_cv_path_lt_DD+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 printf 0123456789abcdef0123456789abcdef >conftest.i 6500cat conftest.i conftest.i >conftest2.i 6501: ${lt_DD:=$DD} 6502if test -z "$lt_DD"; then 6503 ac_path_lt_DD_found=false 6504 # Loop through the user's path and test for each of PROGNAME-LIST 6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6506for as_dir in $PATH 6507do 6508 IFS=$as_save_IFS 6509 test -z "$as_dir" && as_dir=. 6510 for ac_prog in dd; do 6511 for ac_exec_ext in '' $ac_executable_extensions; do 6512 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6513 as_fn_executable_p "$ac_path_lt_DD" || continue 6514if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6515 cmp -s conftest.i conftest.out \ 6516 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6517fi 6518 $ac_path_lt_DD_found && break 3 6519 done 6520 done 6521 done 6522IFS=$as_save_IFS 6523 if test -z "$ac_cv_path_lt_DD"; then 6524 : 6525 fi 6526else 6527 ac_cv_path_lt_DD=$lt_DD 6528fi 6529 6530rm -f conftest.i conftest2.i conftest.out 6531fi 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6533$as_echo "$ac_cv_path_lt_DD" >&6; } 6534 6535 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6537$as_echo_n "checking how to truncate binary pipes... " >&6; } 6538if ${lt_cv_truncate_bin+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 printf 0123456789abcdef0123456789abcdef >conftest.i 6542cat conftest.i conftest.i >conftest2.i 6543lt_cv_truncate_bin= 6544if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6545 cmp -s conftest.i conftest.out \ 6546 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6547fi 6548rm -f conftest.i conftest2.i conftest.out 6549test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6552$as_echo "$lt_cv_truncate_bin" >&6; } 6553 6554 6555 6556 6557 6558 6559 6560# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6561func_cc_basename () 6562{ 6563 for cc_temp in $*""; do 6564 case $cc_temp in 6565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6567 \-*) ;; 6568 *) break;; 6569 esac 6570 done 6571 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6572} 6573 6574# Check whether --enable-libtool-lock was given. 6575if test "${enable_libtool_lock+set}" = set; then : 6576 enableval=$enable_libtool_lock; 6577fi 6578 6579test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6580 6581# Some flags need to be propagated to the compiler or linker for good 6582# libtool support. 6583case $host in 6584ia64-*-hpux*) 6585 # Find out what ABI is being produced by ac_compile, and set mode 6586 # options accordingly. 6587 echo 'int i;' > conftest.$ac_ext 6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6589 (eval $ac_compile) 2>&5 6590 ac_status=$? 6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6592 test $ac_status = 0; }; then 6593 case `/usr/bin/file conftest.$ac_objext` in 6594 *ELF-32*) 6595 HPUX_IA64_MODE=32 6596 ;; 6597 *ELF-64*) 6598 HPUX_IA64_MODE=64 6599 ;; 6600 esac 6601 fi 6602 rm -rf conftest* 6603 ;; 6604*-*-irix6*) 6605 # Find out what ABI is being produced by ac_compile, and set linker 6606 # options accordingly. 6607 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6609 (eval $ac_compile) 2>&5 6610 ac_status=$? 6611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6612 test $ac_status = 0; }; then 6613 if test yes = "$lt_cv_prog_gnu_ld"; then 6614 case `/usr/bin/file conftest.$ac_objext` in 6615 *32-bit*) 6616 LD="${LD-ld} -melf32bsmip" 6617 ;; 6618 *N32*) 6619 LD="${LD-ld} -melf32bmipn32" 6620 ;; 6621 *64-bit*) 6622 LD="${LD-ld} -melf64bmip" 6623 ;; 6624 esac 6625 else 6626 case `/usr/bin/file conftest.$ac_objext` in 6627 *32-bit*) 6628 LD="${LD-ld} -32" 6629 ;; 6630 *N32*) 6631 LD="${LD-ld} -n32" 6632 ;; 6633 *64-bit*) 6634 LD="${LD-ld} -64" 6635 ;; 6636 esac 6637 fi 6638 fi 6639 rm -rf conftest* 6640 ;; 6641 6642mips64*-*linux*) 6643 # Find out what ABI is being produced by ac_compile, and set linker 6644 # options accordingly. 6645 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6647 (eval $ac_compile) 2>&5 6648 ac_status=$? 6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6650 test $ac_status = 0; }; then 6651 emul=elf 6652 case `/usr/bin/file conftest.$ac_objext` in 6653 *32-bit*) 6654 emul="${emul}32" 6655 ;; 6656 *64-bit*) 6657 emul="${emul}64" 6658 ;; 6659 esac 6660 case `/usr/bin/file conftest.$ac_objext` in 6661 *MSB*) 6662 emul="${emul}btsmip" 6663 ;; 6664 *LSB*) 6665 emul="${emul}ltsmip" 6666 ;; 6667 esac 6668 case `/usr/bin/file conftest.$ac_objext` in 6669 *N32*) 6670 emul="${emul}n32" 6671 ;; 6672 esac 6673 LD="${LD-ld} -m $emul" 6674 fi 6675 rm -rf conftest* 6676 ;; 6677 6678x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6679s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6680 # Find out what ABI is being produced by ac_compile, and set linker 6681 # options accordingly. Note that the listed cases only cover the 6682 # situations where additional linker options are needed (such as when 6683 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6684 # vice versa); the common cases where no linker options are needed do 6685 # not appear in the list. 6686 echo 'int i;' > conftest.$ac_ext 6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6688 (eval $ac_compile) 2>&5 6689 ac_status=$? 6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6691 test $ac_status = 0; }; then 6692 case `/usr/bin/file conftest.o` in 6693 *32-bit*) 6694 case $host in 6695 x86_64-*kfreebsd*-gnu) 6696 LD="${LD-ld} -m elf_i386_fbsd" 6697 ;; 6698 x86_64-*linux*) 6699 case `/usr/bin/file conftest.o` in 6700 *x86-64*) 6701 LD="${LD-ld} -m elf32_x86_64" 6702 ;; 6703 *) 6704 LD="${LD-ld} -m elf_i386" 6705 ;; 6706 esac 6707 ;; 6708 powerpc64le-*linux*) 6709 LD="${LD-ld} -m elf32lppclinux" 6710 ;; 6711 powerpc64-*linux*) 6712 LD="${LD-ld} -m elf32ppclinux" 6713 ;; 6714 s390x-*linux*) 6715 LD="${LD-ld} -m elf_s390" 6716 ;; 6717 sparc64-*linux*) 6718 LD="${LD-ld} -m elf32_sparc" 6719 ;; 6720 esac 6721 ;; 6722 *64-bit*) 6723 case $host in 6724 x86_64-*kfreebsd*-gnu) 6725 LD="${LD-ld} -m elf_x86_64_fbsd" 6726 ;; 6727 x86_64-*linux*) 6728 LD="${LD-ld} -m elf_x86_64" 6729 ;; 6730 powerpcle-*linux*|powerpc64le-*linux*) 6731 LD="${LD-ld} -m elf64lppc" 6732 ;; 6733 powerpc-*linux*|powerpc64-*linux*) 6734 LD="${LD-ld} -m elf64ppc" 6735 ;; 6736 s390*-*linux*|s390*-*tpf*) 6737 LD="${LD-ld} -m elf64_s390" 6738 ;; 6739 sparc*-*linux*) 6740 LD="${LD-ld} -m elf64_sparc" 6741 ;; 6742 esac 6743 ;; 6744 esac 6745 fi 6746 rm -rf conftest* 6747 ;; 6748 6749*-*-sco3.2v5*) 6750 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6751 SAVE_CFLAGS=$CFLAGS 6752 CFLAGS="$CFLAGS -belf" 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6754$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6755if ${lt_cv_cc_needs_belf+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757else 6758 ac_ext=c 6759ac_cpp='$CPP $CPPFLAGS' 6760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6762ac_compiler_gnu=$ac_cv_c_compiler_gnu 6763 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766 6767int 6768main () 6769{ 6770 6771 ; 6772 return 0; 6773} 6774_ACEOF 6775if ac_fn_c_try_link "$LINENO"; then : 6776 lt_cv_cc_needs_belf=yes 6777else 6778 lt_cv_cc_needs_belf=no 6779fi 6780rm -f core conftest.err conftest.$ac_objext \ 6781 conftest$ac_exeext conftest.$ac_ext 6782 ac_ext=c 6783ac_cpp='$CPP $CPPFLAGS' 6784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6786ac_compiler_gnu=$ac_cv_c_compiler_gnu 6787 6788fi 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6790$as_echo "$lt_cv_cc_needs_belf" >&6; } 6791 if test yes != "$lt_cv_cc_needs_belf"; then 6792 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6793 CFLAGS=$SAVE_CFLAGS 6794 fi 6795 ;; 6796*-*solaris*) 6797 # Find out what ABI is being produced by ac_compile, and set linker 6798 # options accordingly. 6799 echo 'int i;' > conftest.$ac_ext 6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6801 (eval $ac_compile) 2>&5 6802 ac_status=$? 6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6804 test $ac_status = 0; }; then 6805 case `/usr/bin/file conftest.o` in 6806 *64-bit*) 6807 case $lt_cv_prog_gnu_ld in 6808 yes*) 6809 case $host in 6810 i?86-*-solaris*|x86_64-*-solaris*) 6811 LD="${LD-ld} -m elf_x86_64" 6812 ;; 6813 sparc*-*-solaris*) 6814 LD="${LD-ld} -m elf64_sparc" 6815 ;; 6816 esac 6817 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6818 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6819 LD=${LD-ld}_sol2 6820 fi 6821 ;; 6822 *) 6823 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6824 LD="${LD-ld} -64" 6825 fi 6826 ;; 6827 esac 6828 ;; 6829 esac 6830 fi 6831 rm -rf conftest* 6832 ;; 6833esac 6834 6835need_locks=$enable_libtool_lock 6836 6837if test -n "$ac_tool_prefix"; then 6838 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6839set dummy ${ac_tool_prefix}mt; ac_word=$2 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 if test -n "$MANIFEST_TOOL"; then 6846 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6847else 6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_exec_ext in '' $ac_executable_extensions; do 6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6855 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6857 break 2 6858 fi 6859done 6860 done 6861IFS=$as_save_IFS 6862 6863fi 6864fi 6865MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6866if test -n "$MANIFEST_TOOL"; then 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6868$as_echo "$MANIFEST_TOOL" >&6; } 6869else 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6871$as_echo "no" >&6; } 6872fi 6873 6874 6875fi 6876if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6877 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6878 # Extract the first word of "mt", so it can be a program name with args. 6879set dummy mt; ac_word=$2 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6881$as_echo_n "checking for $ac_word... " >&6; } 6882if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6883 $as_echo_n "(cached) " >&6 6884else 6885 if test -n "$ac_ct_MANIFEST_TOOL"; then 6886 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6887else 6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6889for as_dir in $PATH 6890do 6891 IFS=$as_save_IFS 6892 test -z "$as_dir" && as_dir=. 6893 for ac_exec_ext in '' $ac_executable_extensions; do 6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6895 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6897 break 2 6898 fi 6899done 6900 done 6901IFS=$as_save_IFS 6902 6903fi 6904fi 6905ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6906if test -n "$ac_ct_MANIFEST_TOOL"; then 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6908$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6909else 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6911$as_echo "no" >&6; } 6912fi 6913 6914 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6915 MANIFEST_TOOL=":" 6916 else 6917 case $cross_compiling:$ac_tool_warned in 6918yes:) 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6921ac_tool_warned=yes ;; 6922esac 6923 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6924 fi 6925else 6926 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6927fi 6928 6929test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6931$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6932if ${lt_cv_path_mainfest_tool+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934else 6935 lt_cv_path_mainfest_tool=no 6936 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6937 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6938 cat conftest.err >&5 6939 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6940 lt_cv_path_mainfest_tool=yes 6941 fi 6942 rm -f conftest* 6943fi 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6945$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6946if test yes != "$lt_cv_path_mainfest_tool"; then 6947 MANIFEST_TOOL=: 6948fi 6949 6950 6951 6952 6953 6954 6955 case $host_os in 6956 rhapsody* | darwin*) 6957 if test -n "$ac_tool_prefix"; then 6958 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6959set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6961$as_echo_n "checking for $ac_word... " >&6; } 6962if ${ac_cv_prog_DSYMUTIL+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 if test -n "$DSYMUTIL"; then 6966 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6967else 6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6969for as_dir in $PATH 6970do 6971 IFS=$as_save_IFS 6972 test -z "$as_dir" && as_dir=. 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6975 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979done 6980 done 6981IFS=$as_save_IFS 6982 6983fi 6984fi 6985DSYMUTIL=$ac_cv_prog_DSYMUTIL 6986if test -n "$DSYMUTIL"; then 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6988$as_echo "$DSYMUTIL" >&6; } 6989else 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6991$as_echo "no" >&6; } 6992fi 6993 6994 6995fi 6996if test -z "$ac_cv_prog_DSYMUTIL"; then 6997 ac_ct_DSYMUTIL=$DSYMUTIL 6998 # Extract the first word of "dsymutil", so it can be a program name with args. 6999set dummy dsymutil; ac_word=$2 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7001$as_echo_n "checking for $ac_word... " >&6; } 7002if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 if test -n "$ac_ct_DSYMUTIL"; then 7006 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7007else 7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009for as_dir in $PATH 7010do 7011 IFS=$as_save_IFS 7012 test -z "$as_dir" && as_dir=. 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7015 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019done 7020 done 7021IFS=$as_save_IFS 7022 7023fi 7024fi 7025ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7026if test -n "$ac_ct_DSYMUTIL"; then 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7028$as_echo "$ac_ct_DSYMUTIL" >&6; } 7029else 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031$as_echo "no" >&6; } 7032fi 7033 7034 if test "x$ac_ct_DSYMUTIL" = x; then 7035 DSYMUTIL=":" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038yes:) 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041ac_tool_warned=yes ;; 7042esac 7043 DSYMUTIL=$ac_ct_DSYMUTIL 7044 fi 7045else 7046 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7047fi 7048 7049 if test -n "$ac_tool_prefix"; then 7050 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7051set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7053$as_echo_n "checking for $ac_word... " >&6; } 7054if ${ac_cv_prog_NMEDIT+:} false; then : 7055 $as_echo_n "(cached) " >&6 7056else 7057 if test -n "$NMEDIT"; then 7058 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7059else 7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7061for as_dir in $PATH 7062do 7063 IFS=$as_save_IFS 7064 test -z "$as_dir" && as_dir=. 7065 for ac_exec_ext in '' $ac_executable_extensions; do 7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7067 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7069 break 2 7070 fi 7071done 7072 done 7073IFS=$as_save_IFS 7074 7075fi 7076fi 7077NMEDIT=$ac_cv_prog_NMEDIT 7078if test -n "$NMEDIT"; then 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7080$as_echo "$NMEDIT" >&6; } 7081else 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7083$as_echo "no" >&6; } 7084fi 7085 7086 7087fi 7088if test -z "$ac_cv_prog_NMEDIT"; then 7089 ac_ct_NMEDIT=$NMEDIT 7090 # Extract the first word of "nmedit", so it can be a program name with args. 7091set dummy nmedit; ac_word=$2 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093$as_echo_n "checking for $ac_word... " >&6; } 7094if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if test -n "$ac_ct_NMEDIT"; then 7098 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7099else 7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7101for as_dir in $PATH 7102do 7103 IFS=$as_save_IFS 7104 test -z "$as_dir" && as_dir=. 7105 for ac_exec_ext in '' $ac_executable_extensions; do 7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7107 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7109 break 2 7110 fi 7111done 7112 done 7113IFS=$as_save_IFS 7114 7115fi 7116fi 7117ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7118if test -n "$ac_ct_NMEDIT"; then 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7120$as_echo "$ac_ct_NMEDIT" >&6; } 7121else 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123$as_echo "no" >&6; } 7124fi 7125 7126 if test "x$ac_ct_NMEDIT" = x; then 7127 NMEDIT=":" 7128 else 7129 case $cross_compiling:$ac_tool_warned in 7130yes:) 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7133ac_tool_warned=yes ;; 7134esac 7135 NMEDIT=$ac_ct_NMEDIT 7136 fi 7137else 7138 NMEDIT="$ac_cv_prog_NMEDIT" 7139fi 7140 7141 if test -n "$ac_tool_prefix"; then 7142 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7143set dummy ${ac_tool_prefix}lipo; ac_word=$2 7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7145$as_echo_n "checking for $ac_word... " >&6; } 7146if ${ac_cv_prog_LIPO+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148else 7149 if test -n "$LIPO"; then 7150 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7151else 7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7153for as_dir in $PATH 7154do 7155 IFS=$as_save_IFS 7156 test -z "$as_dir" && as_dir=. 7157 for ac_exec_ext in '' $ac_executable_extensions; do 7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7159 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7161 break 2 7162 fi 7163done 7164 done 7165IFS=$as_save_IFS 7166 7167fi 7168fi 7169LIPO=$ac_cv_prog_LIPO 7170if test -n "$LIPO"; then 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7172$as_echo "$LIPO" >&6; } 7173else 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7175$as_echo "no" >&6; } 7176fi 7177 7178 7179fi 7180if test -z "$ac_cv_prog_LIPO"; then 7181 ac_ct_LIPO=$LIPO 7182 # Extract the first word of "lipo", so it can be a program name with args. 7183set dummy lipo; ac_word=$2 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7185$as_echo_n "checking for $ac_word... " >&6; } 7186if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 if test -n "$ac_ct_LIPO"; then 7190 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7191else 7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7193for as_dir in $PATH 7194do 7195 IFS=$as_save_IFS 7196 test -z "$as_dir" && as_dir=. 7197 for ac_exec_ext in '' $ac_executable_extensions; do 7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7199 ac_cv_prog_ac_ct_LIPO="lipo" 7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7201 break 2 7202 fi 7203done 7204 done 7205IFS=$as_save_IFS 7206 7207fi 7208fi 7209ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7210if test -n "$ac_ct_LIPO"; then 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7212$as_echo "$ac_ct_LIPO" >&6; } 7213else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7215$as_echo "no" >&6; } 7216fi 7217 7218 if test "x$ac_ct_LIPO" = x; then 7219 LIPO=":" 7220 else 7221 case $cross_compiling:$ac_tool_warned in 7222yes:) 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7225ac_tool_warned=yes ;; 7226esac 7227 LIPO=$ac_ct_LIPO 7228 fi 7229else 7230 LIPO="$ac_cv_prog_LIPO" 7231fi 7232 7233 if test -n "$ac_tool_prefix"; then 7234 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7235set dummy ${ac_tool_prefix}otool; ac_word=$2 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7237$as_echo_n "checking for $ac_word... " >&6; } 7238if ${ac_cv_prog_OTOOL+:} false; then : 7239 $as_echo_n "(cached) " >&6 7240else 7241 if test -n "$OTOOL"; then 7242 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7243else 7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7245for as_dir in $PATH 7246do 7247 IFS=$as_save_IFS 7248 test -z "$as_dir" && as_dir=. 7249 for ac_exec_ext in '' $ac_executable_extensions; do 7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7251 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7253 break 2 7254 fi 7255done 7256 done 7257IFS=$as_save_IFS 7258 7259fi 7260fi 7261OTOOL=$ac_cv_prog_OTOOL 7262if test -n "$OTOOL"; then 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7264$as_echo "$OTOOL" >&6; } 7265else 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7267$as_echo "no" >&6; } 7268fi 7269 7270 7271fi 7272if test -z "$ac_cv_prog_OTOOL"; then 7273 ac_ct_OTOOL=$OTOOL 7274 # Extract the first word of "otool", so it can be a program name with args. 7275set dummy otool; ac_word=$2 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277$as_echo_n "checking for $ac_word... " >&6; } 7278if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 if test -n "$ac_ct_OTOOL"; then 7282 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7283else 7284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 7287 IFS=$as_save_IFS 7288 test -z "$as_dir" && as_dir=. 7289 for ac_exec_ext in '' $ac_executable_extensions; do 7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7291 ac_cv_prog_ac_ct_OTOOL="otool" 7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7293 break 2 7294 fi 7295done 7296 done 7297IFS=$as_save_IFS 7298 7299fi 7300fi 7301ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7302if test -n "$ac_ct_OTOOL"; then 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7304$as_echo "$ac_ct_OTOOL" >&6; } 7305else 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7307$as_echo "no" >&6; } 7308fi 7309 7310 if test "x$ac_ct_OTOOL" = x; then 7311 OTOOL=":" 7312 else 7313 case $cross_compiling:$ac_tool_warned in 7314yes:) 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7317ac_tool_warned=yes ;; 7318esac 7319 OTOOL=$ac_ct_OTOOL 7320 fi 7321else 7322 OTOOL="$ac_cv_prog_OTOOL" 7323fi 7324 7325 if test -n "$ac_tool_prefix"; then 7326 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7327set dummy ${ac_tool_prefix}otool64; ac_word=$2 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7329$as_echo_n "checking for $ac_word... " >&6; } 7330if ${ac_cv_prog_OTOOL64+:} false; then : 7331 $as_echo_n "(cached) " >&6 7332else 7333 if test -n "$OTOOL64"; then 7334 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7335else 7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7337for as_dir in $PATH 7338do 7339 IFS=$as_save_IFS 7340 test -z "$as_dir" && as_dir=. 7341 for ac_exec_ext in '' $ac_executable_extensions; do 7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7343 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7345 break 2 7346 fi 7347done 7348 done 7349IFS=$as_save_IFS 7350 7351fi 7352fi 7353OTOOL64=$ac_cv_prog_OTOOL64 7354if test -n "$OTOOL64"; then 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7356$as_echo "$OTOOL64" >&6; } 7357else 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7359$as_echo "no" >&6; } 7360fi 7361 7362 7363fi 7364if test -z "$ac_cv_prog_OTOOL64"; then 7365 ac_ct_OTOOL64=$OTOOL64 7366 # Extract the first word of "otool64", so it can be a program name with args. 7367set dummy otool64; ac_word=$2 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7369$as_echo_n "checking for $ac_word... " >&6; } 7370if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 if test -n "$ac_ct_OTOOL64"; then 7374 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7375else 7376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7377for as_dir in $PATH 7378do 7379 IFS=$as_save_IFS 7380 test -z "$as_dir" && as_dir=. 7381 for ac_exec_ext in '' $ac_executable_extensions; do 7382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7383 ac_cv_prog_ac_ct_OTOOL64="otool64" 7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7385 break 2 7386 fi 7387done 7388 done 7389IFS=$as_save_IFS 7390 7391fi 7392fi 7393ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7394if test -n "$ac_ct_OTOOL64"; then 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7396$as_echo "$ac_ct_OTOOL64" >&6; } 7397else 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7399$as_echo "no" >&6; } 7400fi 7401 7402 if test "x$ac_ct_OTOOL64" = x; then 7403 OTOOL64=":" 7404 else 7405 case $cross_compiling:$ac_tool_warned in 7406yes:) 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7409ac_tool_warned=yes ;; 7410esac 7411 OTOOL64=$ac_ct_OTOOL64 7412 fi 7413else 7414 OTOOL64="$ac_cv_prog_OTOOL64" 7415fi 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7444$as_echo_n "checking for -single_module linker flag... " >&6; } 7445if ${lt_cv_apple_cc_single_mod+:} false; then : 7446 $as_echo_n "(cached) " >&6 7447else 7448 lt_cv_apple_cc_single_mod=no 7449 if test -z "$LT_MULTI_MODULE"; then 7450 # By default we will add the -single_module flag. You can override 7451 # by either setting the environment variable LT_MULTI_MODULE 7452 # non-empty at configure time, or by adding -multi_module to the 7453 # link flags. 7454 rm -rf libconftest.dylib* 7455 echo "int foo(void){return 1;}" > conftest.c 7456 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7457-dynamiclib -Wl,-single_module conftest.c" >&5 7458 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7459 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7460 _lt_result=$? 7461 # If there is a non-empty error log, and "single_module" 7462 # appears in it, assume the flag caused a linker warning 7463 if test -s conftest.err && $GREP single_module conftest.err; then 7464 cat conftest.err >&5 7465 # Otherwise, if the output was created with a 0 exit code from 7466 # the compiler, it worked. 7467 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7468 lt_cv_apple_cc_single_mod=yes 7469 else 7470 cat conftest.err >&5 7471 fi 7472 rm -rf libconftest.dylib* 7473 rm -f conftest.* 7474 fi 7475fi 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7477$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7478 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7480$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7481if ${lt_cv_ld_exported_symbols_list+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 lt_cv_ld_exported_symbols_list=no 7485 save_LDFLAGS=$LDFLAGS 7486 echo "_main" > conftest.sym 7487 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490 7491int 7492main () 7493{ 7494 7495 ; 7496 return 0; 7497} 7498_ACEOF 7499if ac_fn_c_try_link "$LINENO"; then : 7500 lt_cv_ld_exported_symbols_list=yes 7501else 7502 lt_cv_ld_exported_symbols_list=no 7503fi 7504rm -f core conftest.err conftest.$ac_objext \ 7505 conftest$ac_exeext conftest.$ac_ext 7506 LDFLAGS=$save_LDFLAGS 7507 7508fi 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7510$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7511 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7513$as_echo_n "checking for -force_load linker flag... " >&6; } 7514if ${lt_cv_ld_force_load+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 lt_cv_ld_force_load=no 7518 cat > conftest.c << _LT_EOF 7519int forced_loaded() { return 2;} 7520_LT_EOF 7521 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7522 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7523 echo "$AR cru libconftest.a conftest.o" >&5 7524 $AR cru libconftest.a conftest.o 2>&5 7525 echo "$RANLIB libconftest.a" >&5 7526 $RANLIB libconftest.a 2>&5 7527 cat > conftest.c << _LT_EOF 7528int main() { return 0;} 7529_LT_EOF 7530 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7531 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7532 _lt_result=$? 7533 if test -s conftest.err && $GREP force_load conftest.err; then 7534 cat conftest.err >&5 7535 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7536 lt_cv_ld_force_load=yes 7537 else 7538 cat conftest.err >&5 7539 fi 7540 rm -f conftest.err libconftest.a conftest conftest.c 7541 rm -rf conftest.dSYM 7542 7543fi 7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7545$as_echo "$lt_cv_ld_force_load" >&6; } 7546 case $host_os in 7547 rhapsody* | darwin1.[012]) 7548 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7549 darwin1.*) 7550 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7551 darwin*) # darwin 5.x on 7552 # if running on 10.5 or later, the deployment target defaults 7553 # to the OS version, if on x86, and 10.4, the deployment 7554 # target defaults to 10.4. Don't you love it? 7555 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7556 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7557 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7558 10.[012][,.]*) 7559 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7560 10.*) 7561 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7562 esac 7563 ;; 7564 esac 7565 if test yes = "$lt_cv_apple_cc_single_mod"; then 7566 _lt_dar_single_mod='$single_module' 7567 fi 7568 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7569 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7570 else 7571 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7572 fi 7573 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7574 _lt_dsymutil='~$DSYMUTIL $lib || :' 7575 else 7576 _lt_dsymutil= 7577 fi 7578 ;; 7579 esac 7580 7581# func_munge_path_list VARIABLE PATH 7582# ----------------------------------- 7583# VARIABLE is name of variable containing _space_ separated list of 7584# directories to be munged by the contents of PATH, which is string 7585# having a format: 7586# "DIR[:DIR]:" 7587# string "DIR[ DIR]" will be prepended to VARIABLE 7588# ":DIR[:DIR]" 7589# string "DIR[ DIR]" will be appended to VARIABLE 7590# "DIRP[:DIRP]::[DIRA:]DIRA" 7591# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7592# "DIRA[ DIRA]" will be appended to VARIABLE 7593# "DIR[:DIR]" 7594# VARIABLE will be replaced by "DIR[ DIR]" 7595func_munge_path_list () 7596{ 7597 case x$2 in 7598 x) 7599 ;; 7600 *:) 7601 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7602 ;; 7603 x:*) 7604 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7605 ;; 7606 *::*) 7607 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7608 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7609 ;; 7610 *) 7611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7612 ;; 7613 esac 7614} 7615 7616ac_ext=c 7617ac_cpp='$CPP $CPPFLAGS' 7618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7620ac_compiler_gnu=$ac_cv_c_compiler_gnu 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7622$as_echo_n "checking how to run the C preprocessor... " >&6; } 7623# On Suns, sometimes $CPP names a directory. 7624if test -n "$CPP" && test -d "$CPP"; then 7625 CPP= 7626fi 7627if test -z "$CPP"; then 7628 if ${ac_cv_prog_CPP+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 # Double quotes because CPP needs to be expanded 7632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7633 do 7634 ac_preproc_ok=false 7635for ac_c_preproc_warn_flag in '' yes 7636do 7637 # Use a header file that comes with gcc, so configuring glibc 7638 # with a fresh cross-compiler works. 7639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7640 # <limits.h> exists even on freestanding compilers. 7641 # On the NeXT, cc -E runs the code through the compiler's parser, 7642 # not just through cpp. "Syntax error" is here to catch this case. 7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644/* end confdefs.h. */ 7645#ifdef __STDC__ 7646# include <limits.h> 7647#else 7648# include <assert.h> 7649#endif 7650 Syntax error 7651_ACEOF 7652if ac_fn_c_try_cpp "$LINENO"; then : 7653 7654else 7655 # Broken: fails on valid input. 7656continue 7657fi 7658rm -f conftest.err conftest.i conftest.$ac_ext 7659 7660 # OK, works on sane cases. Now check whether nonexistent headers 7661 # can be detected and how. 7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664#include <ac_nonexistent.h> 7665_ACEOF 7666if ac_fn_c_try_cpp "$LINENO"; then : 7667 # Broken: success on invalid input. 7668continue 7669else 7670 # Passes both tests. 7671ac_preproc_ok=: 7672break 7673fi 7674rm -f conftest.err conftest.i conftest.$ac_ext 7675 7676done 7677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7678rm -f conftest.i conftest.err conftest.$ac_ext 7679if $ac_preproc_ok; then : 7680 break 7681fi 7682 7683 done 7684 ac_cv_prog_CPP=$CPP 7685 7686fi 7687 CPP=$ac_cv_prog_CPP 7688else 7689 ac_cv_prog_CPP=$CPP 7690fi 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7692$as_echo "$CPP" >&6; } 7693ac_preproc_ok=false 7694for ac_c_preproc_warn_flag in '' yes 7695do 7696 # Use a header file that comes with gcc, so configuring glibc 7697 # with a fresh cross-compiler works. 7698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7699 # <limits.h> exists even on freestanding compilers. 7700 # On the NeXT, cc -E runs the code through the compiler's parser, 7701 # not just through cpp. "Syntax error" is here to catch this case. 7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7703/* end confdefs.h. */ 7704#ifdef __STDC__ 7705# include <limits.h> 7706#else 7707# include <assert.h> 7708#endif 7709 Syntax error 7710_ACEOF 7711if ac_fn_c_try_cpp "$LINENO"; then : 7712 7713else 7714 # Broken: fails on valid input. 7715continue 7716fi 7717rm -f conftest.err conftest.i conftest.$ac_ext 7718 7719 # OK, works on sane cases. Now check whether nonexistent headers 7720 # can be detected and how. 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723#include <ac_nonexistent.h> 7724_ACEOF 7725if ac_fn_c_try_cpp "$LINENO"; then : 7726 # Broken: success on invalid input. 7727continue 7728else 7729 # Passes both tests. 7730ac_preproc_ok=: 7731break 7732fi 7733rm -f conftest.err conftest.i conftest.$ac_ext 7734 7735done 7736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7737rm -f conftest.i conftest.err conftest.$ac_ext 7738if $ac_preproc_ok; then : 7739 7740else 7741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7743as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7744See \`config.log' for more details" "$LINENO" 5; } 7745fi 7746 7747ac_ext=c 7748ac_cpp='$CPP $CPPFLAGS' 7749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7751ac_compiler_gnu=$ac_cv_c_compiler_gnu 7752 7753 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7755$as_echo_n "checking for ANSI C header files... " >&6; } 7756if ${ac_cv_header_stdc+:} false; then : 7757 $as_echo_n "(cached) " >&6 7758else 7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761#include <stdlib.h> 7762#include <stdarg.h> 7763#include <string.h> 7764#include <float.h> 7765 7766int 7767main () 7768{ 7769 7770 ; 7771 return 0; 7772} 7773_ACEOF 7774if ac_fn_c_try_compile "$LINENO"; then : 7775 ac_cv_header_stdc=yes 7776else 7777 ac_cv_header_stdc=no 7778fi 7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7780 7781if test $ac_cv_header_stdc = yes; then 7782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785#include <string.h> 7786 7787_ACEOF 7788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7789 $EGREP "memchr" >/dev/null 2>&1; then : 7790 7791else 7792 ac_cv_header_stdc=no 7793fi 7794rm -f conftest* 7795 7796fi 7797 7798if test $ac_cv_header_stdc = yes; then 7799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802#include <stdlib.h> 7803 7804_ACEOF 7805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7806 $EGREP "free" >/dev/null 2>&1; then : 7807 7808else 7809 ac_cv_header_stdc=no 7810fi 7811rm -f conftest* 7812 7813fi 7814 7815if test $ac_cv_header_stdc = yes; then 7816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7817 if test "$cross_compiling" = yes; then : 7818 : 7819else 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821/* end confdefs.h. */ 7822#include <ctype.h> 7823#include <stdlib.h> 7824#if ((' ' & 0x0FF) == 0x020) 7825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7827#else 7828# define ISLOWER(c) \ 7829 (('a' <= (c) && (c) <= 'i') \ 7830 || ('j' <= (c) && (c) <= 'r') \ 7831 || ('s' <= (c) && (c) <= 'z')) 7832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7833#endif 7834 7835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7836int 7837main () 7838{ 7839 int i; 7840 for (i = 0; i < 256; i++) 7841 if (XOR (islower (i), ISLOWER (i)) 7842 || toupper (i) != TOUPPER (i)) 7843 return 2; 7844 return 0; 7845} 7846_ACEOF 7847if ac_fn_c_try_run "$LINENO"; then : 7848 7849else 7850 ac_cv_header_stdc=no 7851fi 7852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7853 conftest.$ac_objext conftest.beam conftest.$ac_ext 7854fi 7855 7856fi 7857fi 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7859$as_echo "$ac_cv_header_stdc" >&6; } 7860if test $ac_cv_header_stdc = yes; then 7861 7862$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7863 7864fi 7865 7866# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7867for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7868 inttypes.h stdint.h unistd.h 7869do : 7870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7871ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7872" 7873if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7874 cat >>confdefs.h <<_ACEOF 7875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7876_ACEOF 7877 7878fi 7879 7880done 7881 7882 7883for ac_header in dlfcn.h 7884do : 7885 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7886" 7887if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7888 cat >>confdefs.h <<_ACEOF 7889#define HAVE_DLFCN_H 1 7890_ACEOF 7891 7892fi 7893 7894done 7895 7896 7897 7898 7899 7900# Set options 7901 7902 7903 7904 enable_dlopen=no 7905 7906 7907 enable_win32_dll=no 7908 7909 7910 # Check whether --enable-shared was given. 7911if test "${enable_shared+set}" = set; then : 7912 enableval=$enable_shared; p=${PACKAGE-default} 7913 case $enableval in 7914 yes) enable_shared=yes ;; 7915 no) enable_shared=no ;; 7916 *) 7917 enable_shared=no 7918 # Look at the argument we got. We use all the common list separators. 7919 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7920 for pkg in $enableval; do 7921 IFS=$lt_save_ifs 7922 if test "X$pkg" = "X$p"; then 7923 enable_shared=yes 7924 fi 7925 done 7926 IFS=$lt_save_ifs 7927 ;; 7928 esac 7929else 7930 enable_shared=yes 7931fi 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 # Check whether --enable-static was given. 7942if test "${enable_static+set}" = set; then : 7943 enableval=$enable_static; p=${PACKAGE-default} 7944 case $enableval in 7945 yes) enable_static=yes ;; 7946 no) enable_static=no ;; 7947 *) 7948 enable_static=no 7949 # Look at the argument we got. We use all the common list separators. 7950 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7951 for pkg in $enableval; do 7952 IFS=$lt_save_ifs 7953 if test "X$pkg" = "X$p"; then 7954 enable_static=yes 7955 fi 7956 done 7957 IFS=$lt_save_ifs 7958 ;; 7959 esac 7960else 7961 enable_static=yes 7962fi 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973# Check whether --with-pic was given. 7974if test "${with_pic+set}" = set; then : 7975 withval=$with_pic; lt_p=${PACKAGE-default} 7976 case $withval in 7977 yes|no) pic_mode=$withval ;; 7978 *) 7979 pic_mode=default 7980 # Look at the argument we got. We use all the common list separators. 7981 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7982 for lt_pkg in $withval; do 7983 IFS=$lt_save_ifs 7984 if test "X$lt_pkg" = "X$lt_p"; then 7985 pic_mode=yes 7986 fi 7987 done 7988 IFS=$lt_save_ifs 7989 ;; 7990 esac 7991else 7992 pic_mode=default 7993fi 7994 7995 7996 7997 7998 7999 8000 8001 8002 # Check whether --enable-fast-install was given. 8003if test "${enable_fast_install+set}" = set; then : 8004 enableval=$enable_fast_install; p=${PACKAGE-default} 8005 case $enableval in 8006 yes) enable_fast_install=yes ;; 8007 no) enable_fast_install=no ;; 8008 *) 8009 enable_fast_install=no 8010 # Look at the argument we got. We use all the common list separators. 8011 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8012 for pkg in $enableval; do 8013 IFS=$lt_save_ifs 8014 if test "X$pkg" = "X$p"; then 8015 enable_fast_install=yes 8016 fi 8017 done 8018 IFS=$lt_save_ifs 8019 ;; 8020 esac 8021else 8022 enable_fast_install=yes 8023fi 8024 8025 8026 8027 8028 8029 8030 8031 8032 shared_archive_member_spec= 8033case $host,$enable_shared in 8034power*-*-aix[5-9]*,yes) 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8036$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8037 8038# Check whether --with-aix-soname was given. 8039if test "${with_aix_soname+set}" = set; then : 8040 withval=$with_aix_soname; case $withval in 8041 aix|svr4|both) 8042 ;; 8043 *) 8044 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8045 ;; 8046 esac 8047 lt_cv_with_aix_soname=$with_aix_soname 8048else 8049 if ${lt_cv_with_aix_soname+:} false; then : 8050 $as_echo_n "(cached) " >&6 8051else 8052 lt_cv_with_aix_soname=aix 8053fi 8054 8055 with_aix_soname=$lt_cv_with_aix_soname 8056fi 8057 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8059$as_echo "$with_aix_soname" >&6; } 8060 if test aix != "$with_aix_soname"; then 8061 # For the AIX way of multilib, we name the shared archive member 8062 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8063 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8064 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8065 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8066 if test 64 = "${OBJECT_MODE-32}"; then 8067 shared_archive_member_spec=shr_64 8068 else 8069 shared_archive_member_spec=shr 8070 fi 8071 fi 8072 ;; 8073*) 8074 with_aix_soname=aix 8075 ;; 8076esac 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087# This can be used to rebuild libtool when needed 8088LIBTOOL_DEPS=$ltmain 8089 8090# Always use our own libtool. 8091LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122test -z "$LN_S" && LN_S="ln -s" 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137if test -n "${ZSH_VERSION+set}"; then 8138 setopt NO_GLOB_SUBST 8139fi 8140 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8142$as_echo_n "checking for objdir... " >&6; } 8143if ${lt_cv_objdir+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 rm -f .libs 2>/dev/null 8147mkdir .libs 2>/dev/null 8148if test -d .libs; then 8149 lt_cv_objdir=.libs 8150else 8151 # MS-DOS does not allow filenames that begin with a dot. 8152 lt_cv_objdir=_libs 8153fi 8154rmdir .libs 2>/dev/null 8155fi 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8157$as_echo "$lt_cv_objdir" >&6; } 8158objdir=$lt_cv_objdir 8159 8160 8161 8162 8163 8164cat >>confdefs.h <<_ACEOF 8165#define LT_OBJDIR "$lt_cv_objdir/" 8166_ACEOF 8167 8168 8169 8170 8171case $host_os in 8172aix3*) 8173 # AIX sometimes has problems with the GCC collect2 program. For some 8174 # reason, if we set the COLLECT_NAMES environment variable, the problems 8175 # vanish in a puff of smoke. 8176 if test set != "${COLLECT_NAMES+set}"; then 8177 COLLECT_NAMES= 8178 export COLLECT_NAMES 8179 fi 8180 ;; 8181esac 8182 8183# Global variables: 8184ofile=libtool 8185can_build_shared=yes 8186 8187# All known linkers require a '.a' archive for static linking (except MSVC, 8188# which needs '.lib'). 8189libext=a 8190 8191with_gnu_ld=$lt_cv_prog_gnu_ld 8192 8193old_CC=$CC 8194old_CFLAGS=$CFLAGS 8195 8196# Set sane defaults for various variables 8197test -z "$CC" && CC=cc 8198test -z "$LTCC" && LTCC=$CC 8199test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8200test -z "$LD" && LD=ld 8201test -z "$ac_objext" && ac_objext=o 8202 8203func_cc_basename $compiler 8204cc_basename=$func_cc_basename_result 8205 8206 8207# Only perform the check for file, if the check method requires it 8208test -z "$MAGIC_CMD" && MAGIC_CMD=file 8209case $deplibs_check_method in 8210file_magic*) 8211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8213$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8214if ${lt_cv_path_MAGIC_CMD+:} false; then : 8215 $as_echo_n "(cached) " >&6 8216else 8217 case $MAGIC_CMD in 8218[\\/*] | ?:[\\/]*) 8219 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8220 ;; 8221*) 8222 lt_save_MAGIC_CMD=$MAGIC_CMD 8223 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8225 for ac_dir in $ac_dummy; do 8226 IFS=$lt_save_ifs 8227 test -z "$ac_dir" && ac_dir=. 8228 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8229 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8230 if test -n "$file_magic_test_file"; then 8231 case $deplibs_check_method in 8232 "file_magic "*) 8233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8234 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8236 $EGREP "$file_magic_regex" > /dev/null; then 8237 : 8238 else 8239 cat <<_LT_EOF 1>&2 8240 8241*** Warning: the command libtool uses to detect shared libraries, 8242*** $file_magic_cmd, produces output that libtool cannot recognize. 8243*** The result is that libtool may fail to recognize shared libraries 8244*** as such. This will affect the creation of libtool libraries that 8245*** depend on shared libraries, but programs linked with such libtool 8246*** libraries will work regardless of this problem. Nevertheless, you 8247*** may want to report the problem to your system manager and/or to 8248*** bug-libtool@gnu.org 8249 8250_LT_EOF 8251 fi ;; 8252 esac 8253 fi 8254 break 8255 fi 8256 done 8257 IFS=$lt_save_ifs 8258 MAGIC_CMD=$lt_save_MAGIC_CMD 8259 ;; 8260esac 8261fi 8262 8263MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8264if test -n "$MAGIC_CMD"; then 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8266$as_echo "$MAGIC_CMD" >&6; } 8267else 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8269$as_echo "no" >&6; } 8270fi 8271 8272 8273 8274 8275 8276if test -z "$lt_cv_path_MAGIC_CMD"; then 8277 if test -n "$ac_tool_prefix"; then 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8279$as_echo_n "checking for file... " >&6; } 8280if ${lt_cv_path_MAGIC_CMD+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 case $MAGIC_CMD in 8284[\\/*] | ?:[\\/]*) 8285 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8286 ;; 8287*) 8288 lt_save_MAGIC_CMD=$MAGIC_CMD 8289 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8291 for ac_dir in $ac_dummy; do 8292 IFS=$lt_save_ifs 8293 test -z "$ac_dir" && ac_dir=. 8294 if test -f "$ac_dir/file"; then 8295 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8296 if test -n "$file_magic_test_file"; then 8297 case $deplibs_check_method in 8298 "file_magic "*) 8299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8300 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8302 $EGREP "$file_magic_regex" > /dev/null; then 8303 : 8304 else 8305 cat <<_LT_EOF 1>&2 8306 8307*** Warning: the command libtool uses to detect shared libraries, 8308*** $file_magic_cmd, produces output that libtool cannot recognize. 8309*** The result is that libtool may fail to recognize shared libraries 8310*** as such. This will affect the creation of libtool libraries that 8311*** depend on shared libraries, but programs linked with such libtool 8312*** libraries will work regardless of this problem. Nevertheless, you 8313*** may want to report the problem to your system manager and/or to 8314*** bug-libtool@gnu.org 8315 8316_LT_EOF 8317 fi ;; 8318 esac 8319 fi 8320 break 8321 fi 8322 done 8323 IFS=$lt_save_ifs 8324 MAGIC_CMD=$lt_save_MAGIC_CMD 8325 ;; 8326esac 8327fi 8328 8329MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8330if test -n "$MAGIC_CMD"; then 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8332$as_echo "$MAGIC_CMD" >&6; } 8333else 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8335$as_echo "no" >&6; } 8336fi 8337 8338 8339 else 8340 MAGIC_CMD=: 8341 fi 8342fi 8343 8344 fi 8345 ;; 8346esac 8347 8348# Use C for the default configuration in the libtool script 8349 8350lt_save_CC=$CC 8351ac_ext=c 8352ac_cpp='$CPP $CPPFLAGS' 8353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8355ac_compiler_gnu=$ac_cv_c_compiler_gnu 8356 8357 8358# Source file extension for C test sources. 8359ac_ext=c 8360 8361# Object file extension for compiled C test sources. 8362objext=o 8363objext=$objext 8364 8365# Code to be used in simple compile tests 8366lt_simple_compile_test_code="int some_variable = 0;" 8367 8368# Code to be used in simple link tests 8369lt_simple_link_test_code='int main(){return(0);}' 8370 8371 8372 8373 8374 8375 8376 8377# If no C compiler was specified, use CC. 8378LTCC=${LTCC-"$CC"} 8379 8380# If no C compiler flags were specified, use CFLAGS. 8381LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8382 8383# Allow CC to be a program name with arguments. 8384compiler=$CC 8385 8386# Save the default compiler, since it gets overwritten when the other 8387# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8388compiler_DEFAULT=$CC 8389 8390# save warnings/boilerplate of simple test code 8391ac_outfile=conftest.$ac_objext 8392echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8393eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8394_lt_compiler_boilerplate=`cat conftest.err` 8395$RM conftest* 8396 8397ac_outfile=conftest.$ac_objext 8398echo "$lt_simple_link_test_code" >conftest.$ac_ext 8399eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8400_lt_linker_boilerplate=`cat conftest.err` 8401$RM -r conftest* 8402 8403 8404## CAVEAT EMPTOR: 8405## There is no encapsulation within the following macros, do not change 8406## the running order or otherwise move them around unless you know exactly 8407## what you are doing... 8408if test -n "$compiler"; then 8409 8410lt_prog_compiler_no_builtin_flag= 8411 8412if test yes = "$GCC"; then 8413 case $cc_basename in 8414 nvcc*) 8415 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8416 *) 8417 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8418 esac 8419 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8421$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8422if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 lt_cv_prog_compiler_rtti_exceptions=no 8426 ac_outfile=conftest.$ac_objext 8427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8428 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8429 # Insert the option either (1) after the last *FLAGS variable, or 8430 # (2) before a word containing "conftest.", or (3) at the end. 8431 # Note that $ac_compile itself does not contain backslashes and begins 8432 # with a dollar sign (not a hyphen), so the echo should work correctly. 8433 # The option is referenced via a variable to avoid confusing sed. 8434 lt_compile=`echo "$ac_compile" | $SED \ 8435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8437 -e 's:$: $lt_compiler_flag:'` 8438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8439 (eval "$lt_compile" 2>conftest.err) 8440 ac_status=$? 8441 cat conftest.err >&5 8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8443 if (exit $ac_status) && test -s "$ac_outfile"; then 8444 # The compiler can only warn and ignore the option if not recognized 8445 # So say no if there are warnings other than the usual output. 8446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8449 lt_cv_prog_compiler_rtti_exceptions=yes 8450 fi 8451 fi 8452 $RM conftest* 8453 8454fi 8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8456$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8457 8458if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8459 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8460else 8461 : 8462fi 8463 8464fi 8465 8466 8467 8468 8469 8470 8471 lt_prog_compiler_wl= 8472lt_prog_compiler_pic= 8473lt_prog_compiler_static= 8474 8475 8476 if test yes = "$GCC"; then 8477 lt_prog_compiler_wl='-Wl,' 8478 lt_prog_compiler_static='-static' 8479 8480 case $host_os in 8481 aix*) 8482 # All AIX code is PIC. 8483 if test ia64 = "$host_cpu"; then 8484 # AIX 5 now supports IA64 processor 8485 lt_prog_compiler_static='-Bstatic' 8486 fi 8487 lt_prog_compiler_pic='-fPIC' 8488 ;; 8489 8490 amigaos*) 8491 case $host_cpu in 8492 powerpc) 8493 # see comment about AmigaOS4 .so support 8494 lt_prog_compiler_pic='-fPIC' 8495 ;; 8496 m68k) 8497 # FIXME: we need at least 68020 code to build shared libraries, but 8498 # adding the '-m68020' flag to GCC prevents building anything better, 8499 # like '-m68040'. 8500 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8501 ;; 8502 esac 8503 ;; 8504 8505 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8506 # PIC is the default for these OSes. 8507 ;; 8508 8509 mingw* | cygwin* | pw32* | os2* | cegcc*) 8510 # This hack is so that the source file can tell whether it is being 8511 # built for inclusion in a dll (and should export symbols for example). 8512 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8513 # (--disable-auto-import) libraries 8514 lt_prog_compiler_pic='-DDLL_EXPORT' 8515 case $host_os in 8516 os2*) 8517 lt_prog_compiler_static='$wl-static' 8518 ;; 8519 esac 8520 ;; 8521 8522 darwin* | rhapsody*) 8523 # PIC is the default on this platform 8524 # Common symbols not allowed in MH_DYLIB files 8525 lt_prog_compiler_pic='-fno-common' 8526 ;; 8527 8528 haiku*) 8529 # PIC is the default for Haiku. 8530 # The "-static" flag exists, but is broken. 8531 lt_prog_compiler_static= 8532 ;; 8533 8534 hpux*) 8535 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8536 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8537 # sets the default TLS model and affects inlining. 8538 case $host_cpu in 8539 hppa*64*) 8540 # +Z the default 8541 ;; 8542 *) 8543 lt_prog_compiler_pic='-fPIC' 8544 ;; 8545 esac 8546 ;; 8547 8548 interix[3-9]*) 8549 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8550 # Instead, we relocate shared libraries at runtime. 8551 ;; 8552 8553 msdosdjgpp*) 8554 # Just because we use GCC doesn't mean we suddenly get shared libraries 8555 # on systems that don't support them. 8556 lt_prog_compiler_can_build_shared=no 8557 enable_shared=no 8558 ;; 8559 8560 *nto* | *qnx*) 8561 # QNX uses GNU C++, but need to define -shared option too, otherwise 8562 # it will coredump. 8563 lt_prog_compiler_pic='-fPIC -shared' 8564 ;; 8565 8566 sysv4*MP*) 8567 if test -d /usr/nec; then 8568 lt_prog_compiler_pic=-Kconform_pic 8569 fi 8570 ;; 8571 8572 *) 8573 lt_prog_compiler_pic='-fPIC' 8574 ;; 8575 esac 8576 8577 case $cc_basename in 8578 nvcc*) # Cuda Compiler Driver 2.2 8579 lt_prog_compiler_wl='-Xlinker ' 8580 if test -n "$lt_prog_compiler_pic"; then 8581 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8582 fi 8583 ;; 8584 esac 8585 else 8586 # PORTME Check for flag to pass linker flags through the system compiler. 8587 case $host_os in 8588 aix*) 8589 lt_prog_compiler_wl='-Wl,' 8590 if test ia64 = "$host_cpu"; then 8591 # AIX 5 now supports IA64 processor 8592 lt_prog_compiler_static='-Bstatic' 8593 else 8594 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8595 fi 8596 ;; 8597 8598 darwin* | rhapsody*) 8599 # PIC is the default on this platform 8600 # Common symbols not allowed in MH_DYLIB files 8601 lt_prog_compiler_pic='-fno-common' 8602 case $cc_basename in 8603 nagfor*) 8604 # NAG Fortran compiler 8605 lt_prog_compiler_wl='-Wl,-Wl,,' 8606 lt_prog_compiler_pic='-PIC' 8607 lt_prog_compiler_static='-Bstatic' 8608 ;; 8609 esac 8610 ;; 8611 8612 mingw* | cygwin* | pw32* | os2* | cegcc*) 8613 # This hack is so that the source file can tell whether it is being 8614 # built for inclusion in a dll (and should export symbols for example). 8615 lt_prog_compiler_pic='-DDLL_EXPORT' 8616 case $host_os in 8617 os2*) 8618 lt_prog_compiler_static='$wl-static' 8619 ;; 8620 esac 8621 ;; 8622 8623 hpux9* | hpux10* | hpux11*) 8624 lt_prog_compiler_wl='-Wl,' 8625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8626 # not for PA HP-UX. 8627 case $host_cpu in 8628 hppa*64*|ia64*) 8629 # +Z the default 8630 ;; 8631 *) 8632 lt_prog_compiler_pic='+Z' 8633 ;; 8634 esac 8635 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8636 lt_prog_compiler_static='$wl-a ${wl}archive' 8637 ;; 8638 8639 irix5* | irix6* | nonstopux*) 8640 lt_prog_compiler_wl='-Wl,' 8641 # PIC (with -KPIC) is the default. 8642 lt_prog_compiler_static='-non_shared' 8643 ;; 8644 8645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8646 case $cc_basename in 8647 # old Intel for x86_64, which still supported -KPIC. 8648 ecc*) 8649 lt_prog_compiler_wl='-Wl,' 8650 lt_prog_compiler_pic='-KPIC' 8651 lt_prog_compiler_static='-static' 8652 ;; 8653 # icc used to be incompatible with GCC. 8654 # ICC 10 doesn't accept -KPIC any more. 8655 icc* | ifort*) 8656 lt_prog_compiler_wl='-Wl,' 8657 lt_prog_compiler_pic='-fPIC' 8658 lt_prog_compiler_static='-static' 8659 ;; 8660 # Lahey Fortran 8.1. 8661 lf95*) 8662 lt_prog_compiler_wl='-Wl,' 8663 lt_prog_compiler_pic='--shared' 8664 lt_prog_compiler_static='--static' 8665 ;; 8666 nagfor*) 8667 # NAG Fortran compiler 8668 lt_prog_compiler_wl='-Wl,-Wl,,' 8669 lt_prog_compiler_pic='-PIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 ;; 8672 tcc*) 8673 # Fabrice Bellard et al's Tiny C Compiler 8674 lt_prog_compiler_wl='-Wl,' 8675 lt_prog_compiler_pic='-fPIC' 8676 lt_prog_compiler_static='-static' 8677 ;; 8678 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8679 # Portland Group compilers (*not* the Pentium gcc compiler, 8680 # which looks to be a dead project) 8681 lt_prog_compiler_wl='-Wl,' 8682 lt_prog_compiler_pic='-fpic' 8683 lt_prog_compiler_static='-Bstatic' 8684 ;; 8685 ccc*) 8686 lt_prog_compiler_wl='-Wl,' 8687 # All Alpha code is PIC. 8688 lt_prog_compiler_static='-non_shared' 8689 ;; 8690 xl* | bgxl* | bgf* | mpixl*) 8691 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8692 lt_prog_compiler_wl='-Wl,' 8693 lt_prog_compiler_pic='-qpic' 8694 lt_prog_compiler_static='-qstaticlink' 8695 ;; 8696 *) 8697 case `$CC -V 2>&1 | sed 5q` in 8698 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8699 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8700 lt_prog_compiler_pic='-KPIC' 8701 lt_prog_compiler_static='-Bstatic' 8702 lt_prog_compiler_wl='' 8703 ;; 8704 *Sun\ F* | *Sun*Fortran*) 8705 lt_prog_compiler_pic='-KPIC' 8706 lt_prog_compiler_static='-Bstatic' 8707 lt_prog_compiler_wl='-Qoption ld ' 8708 ;; 8709 *Sun\ C*) 8710 # Sun C 5.9 8711 lt_prog_compiler_pic='-KPIC' 8712 lt_prog_compiler_static='-Bstatic' 8713 lt_prog_compiler_wl='-Wl,' 8714 ;; 8715 *Intel*\ [CF]*Compiler*) 8716 lt_prog_compiler_wl='-Wl,' 8717 lt_prog_compiler_pic='-fPIC' 8718 lt_prog_compiler_static='-static' 8719 ;; 8720 *Portland\ Group*) 8721 lt_prog_compiler_wl='-Wl,' 8722 lt_prog_compiler_pic='-fpic' 8723 lt_prog_compiler_static='-Bstatic' 8724 ;; 8725 esac 8726 ;; 8727 esac 8728 ;; 8729 8730 newsos6) 8731 lt_prog_compiler_pic='-KPIC' 8732 lt_prog_compiler_static='-Bstatic' 8733 ;; 8734 8735 *nto* | *qnx*) 8736 # QNX uses GNU C++, but need to define -shared option too, otherwise 8737 # it will coredump. 8738 lt_prog_compiler_pic='-fPIC -shared' 8739 ;; 8740 8741 osf3* | osf4* | osf5*) 8742 lt_prog_compiler_wl='-Wl,' 8743 # All OSF/1 code is PIC. 8744 lt_prog_compiler_static='-non_shared' 8745 ;; 8746 8747 rdos*) 8748 lt_prog_compiler_static='-non_shared' 8749 ;; 8750 8751 solaris*) 8752 lt_prog_compiler_pic='-KPIC' 8753 lt_prog_compiler_static='-Bstatic' 8754 case $cc_basename in 8755 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8756 lt_prog_compiler_wl='-Qoption ld ';; 8757 *) 8758 lt_prog_compiler_wl='-Wl,';; 8759 esac 8760 ;; 8761 8762 sunos4*) 8763 lt_prog_compiler_wl='-Qoption ld ' 8764 lt_prog_compiler_pic='-PIC' 8765 lt_prog_compiler_static='-Bstatic' 8766 ;; 8767 8768 sysv4 | sysv4.2uw2* | sysv4.3*) 8769 lt_prog_compiler_wl='-Wl,' 8770 lt_prog_compiler_pic='-KPIC' 8771 lt_prog_compiler_static='-Bstatic' 8772 ;; 8773 8774 sysv4*MP*) 8775 if test -d /usr/nec; then 8776 lt_prog_compiler_pic='-Kconform_pic' 8777 lt_prog_compiler_static='-Bstatic' 8778 fi 8779 ;; 8780 8781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8782 lt_prog_compiler_wl='-Wl,' 8783 lt_prog_compiler_pic='-KPIC' 8784 lt_prog_compiler_static='-Bstatic' 8785 ;; 8786 8787 unicos*) 8788 lt_prog_compiler_wl='-Wl,' 8789 lt_prog_compiler_can_build_shared=no 8790 ;; 8791 8792 uts4*) 8793 lt_prog_compiler_pic='-pic' 8794 lt_prog_compiler_static='-Bstatic' 8795 ;; 8796 8797 *) 8798 lt_prog_compiler_can_build_shared=no 8799 ;; 8800 esac 8801 fi 8802 8803case $host_os in 8804 # For platforms that do not support PIC, -DPIC is meaningless: 8805 *djgpp*) 8806 lt_prog_compiler_pic= 8807 ;; 8808 *) 8809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8810 ;; 8811esac 8812 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8814$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8815if ${lt_cv_prog_compiler_pic+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8819fi 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8821$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8822lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8823 8824# 8825# Check to make sure the PIC flag actually works. 8826# 8827if test -n "$lt_prog_compiler_pic"; then 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8829$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8830if ${lt_cv_prog_compiler_pic_works+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 lt_cv_prog_compiler_pic_works=no 8834 ac_outfile=conftest.$ac_objext 8835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8836 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8837 # Insert the option either (1) after the last *FLAGS variable, or 8838 # (2) before a word containing "conftest.", or (3) at the end. 8839 # Note that $ac_compile itself does not contain backslashes and begins 8840 # with a dollar sign (not a hyphen), so the echo should work correctly. 8841 # The option is referenced via a variable to avoid confusing sed. 8842 lt_compile=`echo "$ac_compile" | $SED \ 8843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8845 -e 's:$: $lt_compiler_flag:'` 8846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8847 (eval "$lt_compile" 2>conftest.err) 8848 ac_status=$? 8849 cat conftest.err >&5 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 if (exit $ac_status) && test -s "$ac_outfile"; then 8852 # The compiler can only warn and ignore the option if not recognized 8853 # So say no if there are warnings other than the usual output. 8854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8856 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8857 lt_cv_prog_compiler_pic_works=yes 8858 fi 8859 fi 8860 $RM conftest* 8861 8862fi 8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8864$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8865 8866if test yes = "$lt_cv_prog_compiler_pic_works"; then 8867 case $lt_prog_compiler_pic in 8868 "" | " "*) ;; 8869 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8870 esac 8871else 8872 lt_prog_compiler_pic= 8873 lt_prog_compiler_can_build_shared=no 8874fi 8875 8876fi 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888# 8889# Check to make sure the static flag actually works. 8890# 8891wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8893$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8894if ${lt_cv_prog_compiler_static_works+:} false; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 lt_cv_prog_compiler_static_works=no 8898 save_LDFLAGS=$LDFLAGS 8899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8900 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8902 # The linker can only warn and ignore the option if not recognized 8903 # So say no if there are warnings 8904 if test -s conftest.err; then 8905 # Append any errors to the config.log. 8906 cat conftest.err 1>&5 8907 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8909 if diff conftest.exp conftest.er2 >/dev/null; then 8910 lt_cv_prog_compiler_static_works=yes 8911 fi 8912 else 8913 lt_cv_prog_compiler_static_works=yes 8914 fi 8915 fi 8916 $RM -r conftest* 8917 LDFLAGS=$save_LDFLAGS 8918 8919fi 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8921$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8922 8923if test yes = "$lt_cv_prog_compiler_static_works"; then 8924 : 8925else 8926 lt_prog_compiler_static= 8927fi 8928 8929 8930 8931 8932 8933 8934 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8936$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8937if ${lt_cv_prog_compiler_c_o+:} false; then : 8938 $as_echo_n "(cached) " >&6 8939else 8940 lt_cv_prog_compiler_c_o=no 8941 $RM -r conftest 2>/dev/null 8942 mkdir conftest 8943 cd conftest 8944 mkdir out 8945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8946 8947 lt_compiler_flag="-o out/conftest2.$ac_objext" 8948 # Insert the option either (1) after the last *FLAGS variable, or 8949 # (2) before a word containing "conftest.", or (3) at the end. 8950 # Note that $ac_compile itself does not contain backslashes and begins 8951 # with a dollar sign (not a hyphen), so the echo should work correctly. 8952 lt_compile=`echo "$ac_compile" | $SED \ 8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8955 -e 's:$: $lt_compiler_flag:'` 8956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8957 (eval "$lt_compile" 2>out/conftest.err) 8958 ac_status=$? 8959 cat out/conftest.err >&5 8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8961 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8962 then 8963 # The compiler can only warn and ignore the option if not recognized 8964 # So say no if there are warnings 8965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8968 lt_cv_prog_compiler_c_o=yes 8969 fi 8970 fi 8971 chmod u+w . 2>&5 8972 $RM conftest* 8973 # SGI C++ compiler will create directory out/ii_files/ for 8974 # template instantiation 8975 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8976 $RM out/* && rmdir out 8977 cd .. 8978 $RM -r conftest 8979 $RM conftest* 8980 8981fi 8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8983$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8984 8985 8986 8987 8988 8989 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8991$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8992if ${lt_cv_prog_compiler_c_o+:} false; then : 8993 $as_echo_n "(cached) " >&6 8994else 8995 lt_cv_prog_compiler_c_o=no 8996 $RM -r conftest 2>/dev/null 8997 mkdir conftest 8998 cd conftest 8999 mkdir out 9000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9001 9002 lt_compiler_flag="-o out/conftest2.$ac_objext" 9003 # Insert the option either (1) after the last *FLAGS variable, or 9004 # (2) before a word containing "conftest.", or (3) at the end. 9005 # Note that $ac_compile itself does not contain backslashes and begins 9006 # with a dollar sign (not a hyphen), so the echo should work correctly. 9007 lt_compile=`echo "$ac_compile" | $SED \ 9008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9010 -e 's:$: $lt_compiler_flag:'` 9011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9012 (eval "$lt_compile" 2>out/conftest.err) 9013 ac_status=$? 9014 cat out/conftest.err >&5 9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9016 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9017 then 9018 # The compiler can only warn and ignore the option if not recognized 9019 # So say no if there are warnings 9020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9023 lt_cv_prog_compiler_c_o=yes 9024 fi 9025 fi 9026 chmod u+w . 2>&5 9027 $RM conftest* 9028 # SGI C++ compiler will create directory out/ii_files/ for 9029 # template instantiation 9030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9031 $RM out/* && rmdir out 9032 cd .. 9033 $RM -r conftest 9034 $RM conftest* 9035 9036fi 9037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9038$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9039 9040 9041 9042 9043hard_links=nottested 9044if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9045 # do not overwrite the value of need_locks provided by the user 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9047$as_echo_n "checking if we can lock with hard links... " >&6; } 9048 hard_links=yes 9049 $RM conftest* 9050 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9051 touch conftest.a 9052 ln conftest.a conftest.b 2>&5 || hard_links=no 9053 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9055$as_echo "$hard_links" >&6; } 9056 if test no = "$hard_links"; then 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9058$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9059 need_locks=warn 9060 fi 9061else 9062 need_locks=no 9063fi 9064 9065 9066 9067 9068 9069 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9071$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9072 9073 runpath_var= 9074 allow_undefined_flag= 9075 always_export_symbols=no 9076 archive_cmds= 9077 archive_expsym_cmds= 9078 compiler_needs_object=no 9079 enable_shared_with_static_runtimes=no 9080 export_dynamic_flag_spec= 9081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9082 hardcode_automatic=no 9083 hardcode_direct=no 9084 hardcode_direct_absolute=no 9085 hardcode_libdir_flag_spec= 9086 hardcode_libdir_separator= 9087 hardcode_minus_L=no 9088 hardcode_shlibpath_var=unsupported 9089 inherit_rpath=no 9090 link_all_deplibs=unknown 9091 module_cmds= 9092 module_expsym_cmds= 9093 old_archive_from_new_cmds= 9094 old_archive_from_expsyms_cmds= 9095 thread_safe_flag_spec= 9096 whole_archive_flag_spec= 9097 # include_expsyms should be a list of space-separated symbols to be *always* 9098 # included in the symbol list 9099 include_expsyms= 9100 # exclude_expsyms can be an extended regexp of symbols to exclude 9101 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9102 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9103 # as well as any symbol that contains 'd'. 9104 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9106 # platforms (ab)use it in PIC code, but their linkers get confused if 9107 # the symbol is explicitly referenced. Since portable code cannot 9108 # rely on this symbol name, it's probably fine to never include it in 9109 # preloaded symbol tables. 9110 # Exclude shared library initialization/finalization symbols. 9111 extract_expsyms_cmds= 9112 9113 case $host_os in 9114 cygwin* | mingw* | pw32* | cegcc*) 9115 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9116 # When not using gcc, we currently assume that we are using 9117 # Microsoft Visual C++. 9118 if test yes != "$GCC"; then 9119 with_gnu_ld=no 9120 fi 9121 ;; 9122 interix*) 9123 # we just hope/assume this is gcc and not c89 (= MSVC++) 9124 with_gnu_ld=yes 9125 ;; 9126 openbsd* | bitrig*) 9127 with_gnu_ld=no 9128 ;; 9129 esac 9130 9131 ld_shlibs=yes 9132 9133 # On some targets, GNU ld is compatible enough with the native linker 9134 # that we're better off using the native interface for both. 9135 lt_use_gnu_ld_interface=no 9136 if test yes = "$with_gnu_ld"; then 9137 case $host_os in 9138 aix*) 9139 # The AIX port of GNU ld has always aspired to compatibility 9140 # with the native linker. However, as the warning in the GNU ld 9141 # block says, versions before 2.19.5* couldn't really create working 9142 # shared libraries, regardless of the interface used. 9143 case `$LD -v 2>&1` in 9144 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9145 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9146 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9147 *) 9148 lt_use_gnu_ld_interface=yes 9149 ;; 9150 esac 9151 ;; 9152 *) 9153 lt_use_gnu_ld_interface=yes 9154 ;; 9155 esac 9156 fi 9157 9158 if test yes = "$lt_use_gnu_ld_interface"; then 9159 # If archive_cmds runs LD, not CC, wlarc should be empty 9160 wlarc='$wl' 9161 9162 # Set some defaults for GNU ld with shared library support. These 9163 # are reset later if shared libraries are not supported. Putting them 9164 # here allows them to be overridden if necessary. 9165 runpath_var=LD_RUN_PATH 9166 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9167 export_dynamic_flag_spec='$wl--export-dynamic' 9168 # ancient GNU ld didn't support --whole-archive et. al. 9169 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9170 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9171 else 9172 whole_archive_flag_spec= 9173 fi 9174 supports_anon_versioning=no 9175 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9176 *GNU\ gold*) supports_anon_versioning=yes ;; 9177 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9180 *\ 2.11.*) ;; # other 2.11 versions 9181 *) supports_anon_versioning=yes ;; 9182 esac 9183 9184 # See if GNU ld supports shared libraries. 9185 case $host_os in 9186 aix[3-9]*) 9187 # On AIX/PPC, the GNU linker is very broken 9188 if test ia64 != "$host_cpu"; then 9189 ld_shlibs=no 9190 cat <<_LT_EOF 1>&2 9191 9192*** Warning: the GNU linker, at least up to release 2.19, is reported 9193*** to be unable to reliably create shared libraries on AIX. 9194*** Therefore, libtool is disabling shared libraries support. If you 9195*** really care for shared libraries, you may want to install binutils 9196*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9197*** You will then need to restart the configuration process. 9198 9199_LT_EOF 9200 fi 9201 ;; 9202 9203 amigaos*) 9204 case $host_cpu in 9205 powerpc) 9206 # see comment about AmigaOS4 .so support 9207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9208 archive_expsym_cmds='' 9209 ;; 9210 m68k) 9211 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)' 9212 hardcode_libdir_flag_spec='-L$libdir' 9213 hardcode_minus_L=yes 9214 ;; 9215 esac 9216 ;; 9217 9218 beos*) 9219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9220 allow_undefined_flag=unsupported 9221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9222 # support --undefined. This deserves some investigation. FIXME 9223 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9224 else 9225 ld_shlibs=no 9226 fi 9227 ;; 9228 9229 cygwin* | mingw* | pw32* | cegcc*) 9230 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9231 # as there is no search path for DLLs. 9232 hardcode_libdir_flag_spec='-L$libdir' 9233 export_dynamic_flag_spec='$wl--export-all-symbols' 9234 allow_undefined_flag=unsupported 9235 always_export_symbols=no 9236 enable_shared_with_static_runtimes=yes 9237 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' 9238 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9239 9240 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9242 # If the export-symbols file already is a .def file, use it as 9243 # is; otherwise, prepend EXPORTS... 9244 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9245 cp $export_symbols $output_objdir/$soname.def; 9246 else 9247 echo EXPORTS > $output_objdir/$soname.def; 9248 cat $export_symbols >> $output_objdir/$soname.def; 9249 fi~ 9250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9251 else 9252 ld_shlibs=no 9253 fi 9254 ;; 9255 9256 haiku*) 9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9258 link_all_deplibs=yes 9259 ;; 9260 9261 os2*) 9262 hardcode_libdir_flag_spec='-L$libdir' 9263 hardcode_minus_L=yes 9264 allow_undefined_flag=unsupported 9265 shrext_cmds=.dll 9266 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9267 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9268 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9269 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9270 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9271 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9272 emximp -o $lib $output_objdir/$libname.def' 9273 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9274 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9275 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9276 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9277 prefix_cmds="$SED"~ 9278 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9279 prefix_cmds="$prefix_cmds -e 1d"; 9280 fi~ 9281 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9282 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9284 emximp -o $lib $output_objdir/$libname.def' 9285 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9286 enable_shared_with_static_runtimes=yes 9287 ;; 9288 9289 interix[3-9]*) 9290 hardcode_direct=no 9291 hardcode_shlibpath_var=no 9292 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9293 export_dynamic_flag_spec='$wl-E' 9294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9295 # Instead, shared libraries are loaded at an image base (0x10000000 by 9296 # default) and relocated if they conflict, which is a slow very memory 9297 # consuming and fragmenting process. To avoid this, we pick a random, 9298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9299 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9300 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9301 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' 9302 ;; 9303 9304 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9305 tmp_diet=no 9306 if test linux-dietlibc = "$host_os"; then 9307 case $cc_basename in 9308 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9309 esac 9310 fi 9311 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9312 && test no = "$tmp_diet" 9313 then 9314 tmp_addflag=' $pic_flag' 9315 tmp_sharedflag='-shared' 9316 case $cc_basename,$host_cpu in 9317 pgcc*) # Portland Group C compiler 9318 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' 9319 tmp_addflag=' $pic_flag' 9320 ;; 9321 pgf77* | pgf90* | pgf95* | pgfortran*) 9322 # Portland Group f77 and f90 compilers 9323 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' 9324 tmp_addflag=' $pic_flag -Mnomain' ;; 9325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9326 tmp_addflag=' -i_dynamic' ;; 9327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9328 tmp_addflag=' -i_dynamic -nofor_main' ;; 9329 ifc* | ifort*) # Intel Fortran compiler 9330 tmp_addflag=' -nofor_main' ;; 9331 lf95*) # Lahey Fortran 8.1 9332 whole_archive_flag_spec= 9333 tmp_sharedflag='--shared' ;; 9334 nagfor*) # NAGFOR 5.3 9335 tmp_sharedflag='-Wl,-shared' ;; 9336 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9337 tmp_sharedflag='-qmkshrobj' 9338 tmp_addflag= ;; 9339 nvcc*) # Cuda Compiler Driver 2.2 9340 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' 9341 compiler_needs_object=yes 9342 ;; 9343 esac 9344 case `$CC -V 2>&1 | sed 5q` in 9345 *Sun\ C*) # Sun C 5.9 9346 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' 9347 compiler_needs_object=yes 9348 tmp_sharedflag='-G' ;; 9349 *Sun\ F*) # Sun Fortran 8.3 9350 tmp_sharedflag='-G' ;; 9351 esac 9352 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9353 9354 if test yes = "$supports_anon_versioning"; then 9355 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9357 echo "local: *; };" >> $output_objdir/$libname.ver~ 9358 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9359 fi 9360 9361 case $cc_basename in 9362 tcc*) 9363 export_dynamic_flag_spec='-rdynamic' 9364 ;; 9365 xlf* | bgf* | bgxlf* | mpixlf*) 9366 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9367 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9369 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9370 if test yes = "$supports_anon_versioning"; then 9371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9373 echo "local: *; };" >> $output_objdir/$libname.ver~ 9374 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9375 fi 9376 ;; 9377 esac 9378 else 9379 ld_shlibs=no 9380 fi 9381 ;; 9382 9383 netbsd*) 9384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9385 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9386 wlarc= 9387 else 9388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9389 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9390 fi 9391 ;; 9392 9393 solaris*) 9394 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9395 ld_shlibs=no 9396 cat <<_LT_EOF 1>&2 9397 9398*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9399*** create shared libraries on Solaris systems. Therefore, libtool 9400*** is disabling shared libraries support. We urge you to upgrade GNU 9401*** binutils to release 2.9.1 or newer. Another option is to modify 9402*** your PATH or compiler configuration so that the native linker is 9403*** used, and then restart. 9404 9405_LT_EOF 9406 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9408 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9409 else 9410 ld_shlibs=no 9411 fi 9412 ;; 9413 9414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9415 case `$LD -v 2>&1` in 9416 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9417 ld_shlibs=no 9418 cat <<_LT_EOF 1>&2 9419 9420*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9421*** reliably create shared libraries on SCO systems. Therefore, libtool 9422*** is disabling shared libraries support. We urge you to upgrade GNU 9423*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9424*** your PATH or compiler configuration so that the native linker is 9425*** used, and then restart. 9426 9427_LT_EOF 9428 ;; 9429 *) 9430 # For security reasons, it is highly recommended that you always 9431 # use absolute paths for naming shared libraries, and exclude the 9432 # DT_RUNPATH tag from executables and libraries. But doing so 9433 # requires that you compile everything twice, which is a pain. 9434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9438 else 9439 ld_shlibs=no 9440 fi 9441 ;; 9442 esac 9443 ;; 9444 9445 sunos4*) 9446 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9447 wlarc= 9448 hardcode_direct=yes 9449 hardcode_shlibpath_var=no 9450 ;; 9451 9452 *) 9453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9454 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9455 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9456 else 9457 ld_shlibs=no 9458 fi 9459 ;; 9460 esac 9461 9462 if test no = "$ld_shlibs"; then 9463 runpath_var= 9464 hardcode_libdir_flag_spec= 9465 export_dynamic_flag_spec= 9466 whole_archive_flag_spec= 9467 fi 9468 else 9469 # PORTME fill in a description of your system's linker (not GNU ld) 9470 case $host_os in 9471 aix3*) 9472 allow_undefined_flag=unsupported 9473 always_export_symbols=yes 9474 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' 9475 # Note: this linker hardcodes the directories in LIBPATH if there 9476 # are no directories specified by -L. 9477 hardcode_minus_L=yes 9478 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9479 # Neither direct hardcoding nor static linking is supported with a 9480 # broken collect2. 9481 hardcode_direct=unsupported 9482 fi 9483 ;; 9484 9485 aix[4-9]*) 9486 if test ia64 = "$host_cpu"; then 9487 # On IA64, the linker does run time linking by default, so we don't 9488 # have to do anything special. 9489 aix_use_runtimelinking=no 9490 exp_sym_flag='-Bexport' 9491 no_entry_flag= 9492 else 9493 # If we're using GNU nm, then we don't want the "-C" option. 9494 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9495 # Without the "-l" option, or with the "-B" option, AIX nm treats 9496 # weak defined symbols like other global defined symbols, whereas 9497 # GNU nm marks them as "W". 9498 # While the 'weak' keyword is ignored in the Export File, we need 9499 # it in the Import File for the 'aix-soname' feature, so we have 9500 # to replace the "-B" option with "-P" for AIX nm. 9501 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9502 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9503 else 9504 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9505 fi 9506 aix_use_runtimelinking=no 9507 9508 # Test if we are trying to use run time linking or normal 9509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9510 # have runtime linking enabled, and use it for executables. 9511 # For shared libraries, we enable/disable runtime linking 9512 # depending on the kind of the shared library created - 9513 # when "with_aix_soname,aix_use_runtimelinking" is: 9514 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9515 # "aix,yes" lib.so shared, rtl:yes, for executables 9516 # lib.a static archive 9517 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9518 # lib.a(lib.so.V) shared, rtl:no, for executables 9519 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9520 # lib.a(lib.so.V) shared, rtl:no 9521 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9522 # lib.a static archive 9523 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9524 for ld_flag in $LDFLAGS; do 9525 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9526 aix_use_runtimelinking=yes 9527 break 9528 fi 9529 done 9530 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9531 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9532 # so we don't have lib.a shared libs to link our executables. 9533 # We have to force runtime linking in this case. 9534 aix_use_runtimelinking=yes 9535 LDFLAGS="$LDFLAGS -Wl,-brtl" 9536 fi 9537 ;; 9538 esac 9539 9540 exp_sym_flag='-bexport' 9541 no_entry_flag='-bnoentry' 9542 fi 9543 9544 # When large executables or shared objects are built, AIX ld can 9545 # have problems creating the table of contents. If linking a library 9546 # or program results in "error TOC overflow" add -mminimal-toc to 9547 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9548 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9549 9550 archive_cmds='' 9551 hardcode_direct=yes 9552 hardcode_direct_absolute=yes 9553 hardcode_libdir_separator=':' 9554 link_all_deplibs=yes 9555 file_list_spec='$wl-f,' 9556 case $with_aix_soname,$aix_use_runtimelinking in 9557 aix,*) ;; # traditional, no import file 9558 svr4,* | *,yes) # use import file 9559 # The Import File defines what to hardcode. 9560 hardcode_direct=no 9561 hardcode_direct_absolute=no 9562 ;; 9563 esac 9564 9565 if test yes = "$GCC"; then 9566 case $host_os in aix4.[012]|aix4.[012].*) 9567 # We only want to do this on AIX 4.2 and lower, the check 9568 # below for broken collect2 doesn't work under 4.3+ 9569 collect2name=`$CC -print-prog-name=collect2` 9570 if test -f "$collect2name" && 9571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9572 then 9573 # We have reworked collect2 9574 : 9575 else 9576 # We have old collect2 9577 hardcode_direct=unsupported 9578 # It fails to find uninstalled libraries when the uninstalled 9579 # path is not listed in the libpath. Setting hardcode_minus_L 9580 # to unsupported forces relinking 9581 hardcode_minus_L=yes 9582 hardcode_libdir_flag_spec='-L$libdir' 9583 hardcode_libdir_separator= 9584 fi 9585 ;; 9586 esac 9587 shared_flag='-shared' 9588 if test yes = "$aix_use_runtimelinking"; then 9589 shared_flag="$shared_flag "'$wl-G' 9590 fi 9591 # Need to ensure runtime linking is disabled for the traditional 9592 # shared library, or the linker may eventually find shared libraries 9593 # /with/ Import File - we do not want to mix them. 9594 shared_flag_aix='-shared' 9595 shared_flag_svr4='-shared $wl-G' 9596 else 9597 # not using gcc 9598 if test ia64 = "$host_cpu"; then 9599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9600 # chokes on -Wl,-G. The following line is correct: 9601 shared_flag='-G' 9602 else 9603 if test yes = "$aix_use_runtimelinking"; then 9604 shared_flag='$wl-G' 9605 else 9606 shared_flag='$wl-bM:SRE' 9607 fi 9608 shared_flag_aix='$wl-bM:SRE' 9609 shared_flag_svr4='$wl-G' 9610 fi 9611 fi 9612 9613 export_dynamic_flag_spec='$wl-bexpall' 9614 # It seems that -bexpall does not export symbols beginning with 9615 # underscore (_), so it is better to generate a list of symbols to export. 9616 always_export_symbols=yes 9617 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9618 # Warning - without using the other runtime loading flags (-brtl), 9619 # -berok will link without error, but may produce a broken library. 9620 allow_undefined_flag='-berok' 9621 # Determine the default libpath from the value encoded in an 9622 # empty executable. 9623 if test set = "${lt_cv_aix_libpath+set}"; then 9624 aix_libpath=$lt_cv_aix_libpath 9625else 9626 if ${lt_cv_aix_libpath_+:} false; then : 9627 $as_echo_n "(cached) " >&6 9628else 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631 9632int 9633main () 9634{ 9635 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640if ac_fn_c_try_link "$LINENO"; then : 9641 9642 lt_aix_libpath_sed=' 9643 /Import File Strings/,/^$/ { 9644 /^0/ { 9645 s/^0 *\([^ ]*\) *$/\1/ 9646 p 9647 } 9648 }' 9649 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9650 # Check for a 64-bit object if we didn't find anything. 9651 if test -z "$lt_cv_aix_libpath_"; then 9652 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9653 fi 9654fi 9655rm -f core conftest.err conftest.$ac_objext \ 9656 conftest$ac_exeext conftest.$ac_ext 9657 if test -z "$lt_cv_aix_libpath_"; then 9658 lt_cv_aix_libpath_=/usr/lib:/lib 9659 fi 9660 9661fi 9662 9663 aix_libpath=$lt_cv_aix_libpath_ 9664fi 9665 9666 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9667 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9668 else 9669 if test ia64 = "$host_cpu"; then 9670 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9671 allow_undefined_flag="-z nodefs" 9672 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" 9673 else 9674 # Determine the default libpath from the value encoded in an 9675 # empty executable. 9676 if test set = "${lt_cv_aix_libpath+set}"; then 9677 aix_libpath=$lt_cv_aix_libpath 9678else 9679 if ${lt_cv_aix_libpath_+:} false; then : 9680 $as_echo_n "(cached) " >&6 9681else 9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9683/* end confdefs.h. */ 9684 9685int 9686main () 9687{ 9688 9689 ; 9690 return 0; 9691} 9692_ACEOF 9693if ac_fn_c_try_link "$LINENO"; then : 9694 9695 lt_aix_libpath_sed=' 9696 /Import File Strings/,/^$/ { 9697 /^0/ { 9698 s/^0 *\([^ ]*\) *$/\1/ 9699 p 9700 } 9701 }' 9702 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9703 # Check for a 64-bit object if we didn't find anything. 9704 if test -z "$lt_cv_aix_libpath_"; then 9705 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9706 fi 9707fi 9708rm -f core conftest.err conftest.$ac_objext \ 9709 conftest$ac_exeext conftest.$ac_ext 9710 if test -z "$lt_cv_aix_libpath_"; then 9711 lt_cv_aix_libpath_=/usr/lib:/lib 9712 fi 9713 9714fi 9715 9716 aix_libpath=$lt_cv_aix_libpath_ 9717fi 9718 9719 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9720 # Warning - without using the other run time loading flags, 9721 # -berok will link without error, but may produce a broken library. 9722 no_undefined_flag=' $wl-bernotok' 9723 allow_undefined_flag=' $wl-berok' 9724 if test yes = "$with_gnu_ld"; then 9725 # We only use this code for GNU lds that support --whole-archive. 9726 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9727 else 9728 # Exported symbols can be pulled into shared objects from archives 9729 whole_archive_flag_spec='$convenience' 9730 fi 9731 archive_cmds_need_lc=yes 9732 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9733 # -brtl affects multiple linker settings, -berok does not and is overridden later 9734 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9735 if test svr4 != "$with_aix_soname"; then 9736 # This is similar to how AIX traditionally builds its shared libraries. 9737 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9738 fi 9739 if test aix != "$with_aix_soname"; then 9740 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9741 else 9742 # used by -dlpreopen to get the symbols 9743 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9744 fi 9745 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9746 fi 9747 fi 9748 ;; 9749 9750 amigaos*) 9751 case $host_cpu in 9752 powerpc) 9753 # see comment about AmigaOS4 .so support 9754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9755 archive_expsym_cmds='' 9756 ;; 9757 m68k) 9758 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)' 9759 hardcode_libdir_flag_spec='-L$libdir' 9760 hardcode_minus_L=yes 9761 ;; 9762 esac 9763 ;; 9764 9765 bsdi[45]*) 9766 export_dynamic_flag_spec=-rdynamic 9767 ;; 9768 9769 cygwin* | mingw* | pw32* | cegcc*) 9770 # When not using gcc, we currently assume that we are using 9771 # Microsoft Visual C++. 9772 # hardcode_libdir_flag_spec is actually meaningless, as there is 9773 # no search path for DLLs. 9774 case $cc_basename in 9775 cl*) 9776 # Native MSVC 9777 hardcode_libdir_flag_spec=' ' 9778 allow_undefined_flag=unsupported 9779 always_export_symbols=yes 9780 file_list_spec='@' 9781 # Tell ltmain to make .lib files, not .a files. 9782 libext=lib 9783 # Tell ltmain to make .dll files, not .so files. 9784 shrext_cmds=.dll 9785 # FIXME: Setting linknames here is a bad hack. 9786 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9787 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9788 cp "$export_symbols" "$output_objdir/$soname.def"; 9789 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9790 else 9791 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9792 fi~ 9793 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9794 linknames=' 9795 # The linker will not automatically build a static lib if we build a DLL. 9796 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9797 enable_shared_with_static_runtimes=yes 9798 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9800 # Don't use ranlib 9801 old_postinstall_cmds='chmod 644 $oldlib' 9802 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9803 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9804 case $lt_outputfile in 9805 *.exe|*.EXE) ;; 9806 *) 9807 lt_outputfile=$lt_outputfile.exe 9808 lt_tool_outputfile=$lt_tool_outputfile.exe 9809 ;; 9810 esac~ 9811 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9812 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9813 $RM "$lt_outputfile.manifest"; 9814 fi' 9815 ;; 9816 *) 9817 # Assume MSVC wrapper 9818 hardcode_libdir_flag_spec=' ' 9819 allow_undefined_flag=unsupported 9820 # Tell ltmain to make .lib files, not .a files. 9821 libext=lib 9822 # Tell ltmain to make .dll files, not .so files. 9823 shrext_cmds=.dll 9824 # FIXME: Setting linknames here is a bad hack. 9825 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9826 # The linker will automatically build a .lib file if we build a DLL. 9827 old_archive_from_new_cmds='true' 9828 # FIXME: Should let the user specify the lib program. 9829 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9830 enable_shared_with_static_runtimes=yes 9831 ;; 9832 esac 9833 ;; 9834 9835 darwin* | rhapsody*) 9836 9837 9838 archive_cmds_need_lc=no 9839 hardcode_direct=no 9840 hardcode_automatic=yes 9841 hardcode_shlibpath_var=unsupported 9842 if test yes = "$lt_cv_ld_force_load"; then 9843 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\"`' 9844 9845 else 9846 whole_archive_flag_spec='' 9847 fi 9848 link_all_deplibs=yes 9849 allow_undefined_flag=$_lt_dar_allow_undefined 9850 case $cc_basename in 9851 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9852 *) _lt_dar_can_shared=$GCC ;; 9853 esac 9854 if test yes = "$_lt_dar_can_shared"; then 9855 output_verbose_link_cmd=func_echo_all 9856 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9857 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9858 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" 9859 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" 9860 9861 else 9862 ld_shlibs=no 9863 fi 9864 9865 ;; 9866 9867 dgux*) 9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9869 hardcode_libdir_flag_spec='-L$libdir' 9870 hardcode_shlibpath_var=no 9871 ;; 9872 9873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9874 # support. Future versions do this automatically, but an explicit c++rt0.o 9875 # does not break anything, and helps significantly (at the cost of a little 9876 # extra space). 9877 freebsd2.2*) 9878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9879 hardcode_libdir_flag_spec='-R$libdir' 9880 hardcode_direct=yes 9881 hardcode_shlibpath_var=no 9882 ;; 9883 9884 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9885 freebsd2.*) 9886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9887 hardcode_direct=yes 9888 hardcode_minus_L=yes 9889 hardcode_shlibpath_var=no 9890 ;; 9891 9892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9893 freebsd* | dragonfly*) 9894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9895 hardcode_libdir_flag_spec='-R$libdir' 9896 hardcode_direct=yes 9897 hardcode_shlibpath_var=no 9898 ;; 9899 9900 hpux9*) 9901 if test yes = "$GCC"; then 9902 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9903 else 9904 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9905 fi 9906 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9907 hardcode_libdir_separator=: 9908 hardcode_direct=yes 9909 9910 # hardcode_minus_L: Not really in the search PATH, 9911 # but as the default location of the library. 9912 hardcode_minus_L=yes 9913 export_dynamic_flag_spec='$wl-E' 9914 ;; 9915 9916 hpux10*) 9917 if test yes,no = "$GCC,$with_gnu_ld"; then 9918 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9919 else 9920 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9921 fi 9922 if test no = "$with_gnu_ld"; then 9923 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9924 hardcode_libdir_separator=: 9925 hardcode_direct=yes 9926 hardcode_direct_absolute=yes 9927 export_dynamic_flag_spec='$wl-E' 9928 # hardcode_minus_L: Not really in the search PATH, 9929 # but as the default location of the library. 9930 hardcode_minus_L=yes 9931 fi 9932 ;; 9933 9934 hpux11*) 9935 if test yes,no = "$GCC,$with_gnu_ld"; then 9936 case $host_cpu in 9937 hppa*64*) 9938 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9939 ;; 9940 ia64*) 9941 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9942 ;; 9943 *) 9944 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9945 ;; 9946 esac 9947 else 9948 case $host_cpu in 9949 hppa*64*) 9950 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9951 ;; 9952 ia64*) 9953 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9954 ;; 9955 *) 9956 9957 # Older versions of the 11.00 compiler do not understand -b yet 9958 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9960$as_echo_n "checking if $CC understands -b... " >&6; } 9961if ${lt_cv_prog_compiler__b+:} false; then : 9962 $as_echo_n "(cached) " >&6 9963else 9964 lt_cv_prog_compiler__b=no 9965 save_LDFLAGS=$LDFLAGS 9966 LDFLAGS="$LDFLAGS -b" 9967 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9969 # The linker can only warn and ignore the option if not recognized 9970 # So say no if there are warnings 9971 if test -s conftest.err; then 9972 # Append any errors to the config.log. 9973 cat conftest.err 1>&5 9974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9976 if diff conftest.exp conftest.er2 >/dev/null; then 9977 lt_cv_prog_compiler__b=yes 9978 fi 9979 else 9980 lt_cv_prog_compiler__b=yes 9981 fi 9982 fi 9983 $RM -r conftest* 9984 LDFLAGS=$save_LDFLAGS 9985 9986fi 9987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9988$as_echo "$lt_cv_prog_compiler__b" >&6; } 9989 9990if test yes = "$lt_cv_prog_compiler__b"; then 9991 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9992else 9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9994fi 9995 9996 ;; 9997 esac 9998 fi 9999 if test no = "$with_gnu_ld"; then 10000 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10001 hardcode_libdir_separator=: 10002 10003 case $host_cpu in 10004 hppa*64*|ia64*) 10005 hardcode_direct=no 10006 hardcode_shlibpath_var=no 10007 ;; 10008 *) 10009 hardcode_direct=yes 10010 hardcode_direct_absolute=yes 10011 export_dynamic_flag_spec='$wl-E' 10012 10013 # hardcode_minus_L: Not really in the search PATH, 10014 # but as the default location of the library. 10015 hardcode_minus_L=yes 10016 ;; 10017 esac 10018 fi 10019 ;; 10020 10021 irix5* | irix6* | nonstopux*) 10022 if test yes = "$GCC"; then 10023 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' 10024 # Try to use the -exported_symbol ld option, if it does not 10025 # work, assume that -exports_file does not work either and 10026 # implicitly export all symbols. 10027 # This should be the same for all languages, so no per-tag cache variable. 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10029$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10030if ${lt_cv_irix_exported_symbol+:} false; then : 10031 $as_echo_n "(cached) " >&6 10032else 10033 save_LDFLAGS=$LDFLAGS 10034 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037int foo (void) { return 0; } 10038_ACEOF 10039if ac_fn_c_try_link "$LINENO"; then : 10040 lt_cv_irix_exported_symbol=yes 10041else 10042 lt_cv_irix_exported_symbol=no 10043fi 10044rm -f core conftest.err conftest.$ac_objext \ 10045 conftest$ac_exeext conftest.$ac_ext 10046 LDFLAGS=$save_LDFLAGS 10047fi 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10049$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10050 if test yes = "$lt_cv_irix_exported_symbol"; then 10051 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' 10052 fi 10053 else 10054 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' 10055 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' 10056 fi 10057 archive_cmds_need_lc='no' 10058 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10059 hardcode_libdir_separator=: 10060 inherit_rpath=yes 10061 link_all_deplibs=yes 10062 ;; 10063 10064 linux*) 10065 case $cc_basename in 10066 tcc*) 10067 # Fabrice Bellard et al's Tiny C Compiler 10068 ld_shlibs=yes 10069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10070 ;; 10071 esac 10072 ;; 10073 10074 netbsd*) 10075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10077 else 10078 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10079 fi 10080 hardcode_libdir_flag_spec='-R$libdir' 10081 hardcode_direct=yes 10082 hardcode_shlibpath_var=no 10083 ;; 10084 10085 newsos6) 10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10087 hardcode_direct=yes 10088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10089 hardcode_libdir_separator=: 10090 hardcode_shlibpath_var=no 10091 ;; 10092 10093 *nto* | *qnx*) 10094 ;; 10095 10096 openbsd* | bitrig*) 10097 if test -f /usr/libexec/ld.so; then 10098 hardcode_direct=yes 10099 hardcode_shlibpath_var=no 10100 hardcode_direct_absolute=yes 10101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10103 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10104 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10105 export_dynamic_flag_spec='$wl-E' 10106 else 10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10108 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10109 fi 10110 else 10111 ld_shlibs=no 10112 fi 10113 ;; 10114 10115 os2*) 10116 hardcode_libdir_flag_spec='-L$libdir' 10117 hardcode_minus_L=yes 10118 allow_undefined_flag=unsupported 10119 shrext_cmds=.dll 10120 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10123 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10124 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10126 emximp -o $lib $output_objdir/$libname.def' 10127 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10128 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10129 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10130 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10131 prefix_cmds="$SED"~ 10132 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10133 prefix_cmds="$prefix_cmds -e 1d"; 10134 fi~ 10135 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10136 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10137 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10138 emximp -o $lib $output_objdir/$libname.def' 10139 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10140 enable_shared_with_static_runtimes=yes 10141 ;; 10142 10143 osf3*) 10144 if test yes = "$GCC"; then 10145 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10146 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' 10147 else 10148 allow_undefined_flag=' -expect_unresolved \*' 10149 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' 10150 fi 10151 archive_cmds_need_lc='no' 10152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10153 hardcode_libdir_separator=: 10154 ;; 10155 10156 osf4* | osf5*) # as osf3* with the addition of -msym flag 10157 if test yes = "$GCC"; then 10158 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10159 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' 10160 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10161 else 10162 allow_undefined_flag=' -expect_unresolved \*' 10163 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' 10164 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~ 10165 $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' 10166 10167 # Both c and cxx compiler support -rpath directly 10168 hardcode_libdir_flag_spec='-rpath $libdir' 10169 fi 10170 archive_cmds_need_lc='no' 10171 hardcode_libdir_separator=: 10172 ;; 10173 10174 solaris*) 10175 no_undefined_flag=' -z defs' 10176 if test yes = "$GCC"; then 10177 wlarc='$wl' 10178 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10180 $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' 10181 else 10182 case `$CC -V 2>&1` in 10183 *"Compilers 5.0"*) 10184 wlarc='' 10185 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10186 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10187 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10188 ;; 10189 *) 10190 wlarc='$wl' 10191 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10193 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10194 ;; 10195 esac 10196 fi 10197 hardcode_libdir_flag_spec='-R$libdir' 10198 hardcode_shlibpath_var=no 10199 case $host_os in 10200 solaris2.[0-5] | solaris2.[0-5].*) ;; 10201 *) 10202 # The compiler driver will combine and reorder linker options, 10203 # but understands '-z linker_flag'. GCC discards it without '$wl', 10204 # but is careful enough not to reorder. 10205 # Supported since Solaris 2.6 (maybe 2.5.1?) 10206 if test yes = "$GCC"; then 10207 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10208 else 10209 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10210 fi 10211 ;; 10212 esac 10213 link_all_deplibs=yes 10214 ;; 10215 10216 sunos4*) 10217 if test sequent = "$host_vendor"; then 10218 # Use $CC to link under sequent, because it throws in some extra .o 10219 # files that make .init and .fini sections work. 10220 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10221 else 10222 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10223 fi 10224 hardcode_libdir_flag_spec='-L$libdir' 10225 hardcode_direct=yes 10226 hardcode_minus_L=yes 10227 hardcode_shlibpath_var=no 10228 ;; 10229 10230 sysv4) 10231 case $host_vendor in 10232 sni) 10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10234 hardcode_direct=yes # is this really true??? 10235 ;; 10236 siemens) 10237 ## LD is ld it makes a PLAMLIB 10238 ## CC just makes a GrossModule. 10239 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10240 reload_cmds='$CC -r -o $output$reload_objs' 10241 hardcode_direct=no 10242 ;; 10243 motorola) 10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10245 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10246 ;; 10247 esac 10248 runpath_var='LD_RUN_PATH' 10249 hardcode_shlibpath_var=no 10250 ;; 10251 10252 sysv4.3*) 10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10254 hardcode_shlibpath_var=no 10255 export_dynamic_flag_spec='-Bexport' 10256 ;; 10257 10258 sysv4*MP*) 10259 if test -d /usr/nec; then 10260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10261 hardcode_shlibpath_var=no 10262 runpath_var=LD_RUN_PATH 10263 hardcode_runpath_var=yes 10264 ld_shlibs=yes 10265 fi 10266 ;; 10267 10268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10269 no_undefined_flag='$wl-z,text' 10270 archive_cmds_need_lc=no 10271 hardcode_shlibpath_var=no 10272 runpath_var='LD_RUN_PATH' 10273 10274 if test yes = "$GCC"; then 10275 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10276 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10277 else 10278 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10279 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10280 fi 10281 ;; 10282 10283 sysv5* | sco3.2v5* | sco5v6*) 10284 # Note: We CANNOT use -z defs as we might desire, because we do not 10285 # link with -lc, and that would cause any symbols used from libc to 10286 # always be unresolved, which means just about no library would 10287 # ever link correctly. If we're not using GNU ld we use -z text 10288 # though, which does catch some bad symbols but isn't as heavy-handed 10289 # as -z defs. 10290 no_undefined_flag='$wl-z,text' 10291 allow_undefined_flag='$wl-z,nodefs' 10292 archive_cmds_need_lc=no 10293 hardcode_shlibpath_var=no 10294 hardcode_libdir_flag_spec='$wl-R,$libdir' 10295 hardcode_libdir_separator=':' 10296 link_all_deplibs=yes 10297 export_dynamic_flag_spec='$wl-Bexport' 10298 runpath_var='LD_RUN_PATH' 10299 10300 if test yes = "$GCC"; then 10301 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10303 else 10304 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10305 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10306 fi 10307 ;; 10308 10309 uts4*) 10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10311 hardcode_libdir_flag_spec='-L$libdir' 10312 hardcode_shlibpath_var=no 10313 ;; 10314 10315 *) 10316 ld_shlibs=no 10317 ;; 10318 esac 10319 10320 if test sni = "$host_vendor"; then 10321 case $host in 10322 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10323 export_dynamic_flag_spec='$wl-Blargedynsym' 10324 ;; 10325 esac 10326 fi 10327 fi 10328 10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10330$as_echo "$ld_shlibs" >&6; } 10331test no = "$ld_shlibs" && can_build_shared=no 10332 10333with_gnu_ld=$with_gnu_ld 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349# 10350# Do we need to explicitly link libc? 10351# 10352case "x$archive_cmds_need_lc" in 10353x|xyes) 10354 # Assume -lc should be added 10355 archive_cmds_need_lc=yes 10356 10357 if test yes,yes = "$GCC,$enable_shared"; then 10358 case $archive_cmds in 10359 *'~'*) 10360 # FIXME: we may have to deal with multi-command sequences. 10361 ;; 10362 '$CC '*) 10363 # Test whether the compiler implicitly links with -lc since on some 10364 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10365 # to ld, don't add -lc before -lgcc. 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10367$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10368if ${lt_cv_archive_cmds_need_lc+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 $RM conftest* 10372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10373 10374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10375 (eval $ac_compile) 2>&5 10376 ac_status=$? 10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10378 test $ac_status = 0; } 2>conftest.err; then 10379 soname=conftest 10380 lib=conftest 10381 libobjs=conftest.$ac_objext 10382 deplibs= 10383 wl=$lt_prog_compiler_wl 10384 pic_flag=$lt_prog_compiler_pic 10385 compiler_flags=-v 10386 linker_flags=-v 10387 verstring= 10388 output_objdir=. 10389 libname=conftest 10390 lt_save_allow_undefined_flag=$allow_undefined_flag 10391 allow_undefined_flag= 10392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10393 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10394 ac_status=$? 10395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10396 test $ac_status = 0; } 10397 then 10398 lt_cv_archive_cmds_need_lc=no 10399 else 10400 lt_cv_archive_cmds_need_lc=yes 10401 fi 10402 allow_undefined_flag=$lt_save_allow_undefined_flag 10403 else 10404 cat conftest.err 1>&5 10405 fi 10406 $RM conftest* 10407 10408fi 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10410$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10411 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10412 ;; 10413 esac 10414 fi 10415 ;; 10416esac 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10570$as_echo_n "checking dynamic linker characteristics... " >&6; } 10571 10572if test yes = "$GCC"; then 10573 case $host_os in 10574 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10575 *) lt_awk_arg='/^libraries:/' ;; 10576 esac 10577 case $host_os in 10578 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10579 *) lt_sed_strip_eq='s|=/|/|g' ;; 10580 esac 10581 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10582 case $lt_search_path_spec in 10583 *\;*) 10584 # if the path contains ";" then we assume it to be the separator 10585 # otherwise default to the standard path separator (i.e. ":") - it is 10586 # assumed that no part of a normal pathname contains ";" but that should 10587 # okay in the real world where ";" in dirpaths is itself problematic. 10588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10589 ;; 10590 *) 10591 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10592 ;; 10593 esac 10594 # Ok, now we have the path, separated by spaces, we can step through it 10595 # and add multilib dir if necessary... 10596 lt_tmp_lt_search_path_spec= 10597 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10598 # ...but if some path component already ends with the multilib dir we assume 10599 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10600 case "$lt_multi_os_dir; $lt_search_path_spec " in 10601 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10602 lt_multi_os_dir= 10603 ;; 10604 esac 10605 for lt_sys_path in $lt_search_path_spec; do 10606 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10607 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10608 elif test -n "$lt_multi_os_dir"; then 10609 test -d "$lt_sys_path" && \ 10610 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10611 fi 10612 done 10613 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10614BEGIN {RS = " "; FS = "/|\n";} { 10615 lt_foo = ""; 10616 lt_count = 0; 10617 for (lt_i = NF; lt_i > 0; lt_i--) { 10618 if ($lt_i != "" && $lt_i != ".") { 10619 if ($lt_i == "..") { 10620 lt_count++; 10621 } else { 10622 if (lt_count == 0) { 10623 lt_foo = "/" $lt_i lt_foo; 10624 } else { 10625 lt_count--; 10626 } 10627 } 10628 } 10629 } 10630 if (lt_foo != "") { lt_freq[lt_foo]++; } 10631 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10632}'` 10633 # AWK program above erroneously prepends '/' to C:/dos/paths 10634 # for these hosts. 10635 case $host_os in 10636 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10637 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10638 esac 10639 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10640else 10641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10642fi 10643library_names_spec= 10644libname_spec='lib$name' 10645soname_spec= 10646shrext_cmds=.so 10647postinstall_cmds= 10648postuninstall_cmds= 10649finish_cmds= 10650finish_eval= 10651shlibpath_var= 10652shlibpath_overrides_runpath=unknown 10653version_type=none 10654dynamic_linker="$host_os ld.so" 10655sys_lib_dlsearch_path_spec="/lib /usr/lib" 10656need_lib_prefix=unknown 10657hardcode_into_libs=no 10658 10659# when you set need_version to no, make sure it does not cause -set_version 10660# flags to be left without arguments 10661need_version=unknown 10662 10663 10664 10665case $host_os in 10666aix3*) 10667 version_type=linux # correct to gnu/linux during the next big refactor 10668 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10669 shlibpath_var=LIBPATH 10670 10671 # AIX 3 has no versioning support, so we append a major version to the name. 10672 soname_spec='$libname$release$shared_ext$major' 10673 ;; 10674 10675aix[4-9]*) 10676 version_type=linux # correct to gnu/linux during the next big refactor 10677 need_lib_prefix=no 10678 need_version=no 10679 hardcode_into_libs=yes 10680 if test ia64 = "$host_cpu"; then 10681 # AIX 5 supports IA64 10682 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10683 shlibpath_var=LD_LIBRARY_PATH 10684 else 10685 # With GCC up to 2.95.x, collect2 would create an import file 10686 # for dependence libraries. The import file would start with 10687 # the line '#! .'. This would cause the generated library to 10688 # depend on '.', always an invalid library. This was fixed in 10689 # development snapshots of GCC prior to 3.0. 10690 case $host_os in 10691 aix4 | aix4.[01] | aix4.[01].*) 10692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10693 echo ' yes ' 10694 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10695 : 10696 else 10697 can_build_shared=no 10698 fi 10699 ;; 10700 esac 10701 # Using Import Files as archive members, it is possible to support 10702 # filename-based versioning of shared library archives on AIX. While 10703 # this would work for both with and without runtime linking, it will 10704 # prevent static linking of such archives. So we do filename-based 10705 # shared library versioning with .so extension only, which is used 10706 # when both runtime linking and shared linking is enabled. 10707 # Unfortunately, runtime linking may impact performance, so we do 10708 # not want this to be the default eventually. Also, we use the 10709 # versioned .so libs for executables only if there is the -brtl 10710 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10711 # To allow for filename-based versioning support, we need to create 10712 # libNAME.so.V as an archive file, containing: 10713 # *) an Import File, referring to the versioned filename of the 10714 # archive as well as the shared archive member, telling the 10715 # bitwidth (32 or 64) of that shared object, and providing the 10716 # list of exported symbols of that shared object, eventually 10717 # decorated with the 'weak' keyword 10718 # *) the shared object with the F_LOADONLY flag set, to really avoid 10719 # it being seen by the linker. 10720 # At run time we better use the real file rather than another symlink, 10721 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10722 10723 case $with_aix_soname,$aix_use_runtimelinking in 10724 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10725 # soname into executable. Probably we can add versioning support to 10726 # collect2, so additional links can be useful in future. 10727 aix,yes) # traditional libtool 10728 dynamic_linker='AIX unversionable lib.so' 10729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10730 # instead of lib<name>.a to let people know that these are not 10731 # typical AIX shared libraries. 10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10733 ;; 10734 aix,no) # traditional AIX only 10735 dynamic_linker='AIX lib.a(lib.so.V)' 10736 # We preserve .a as extension for shared libraries through AIX4.2 10737 # and later when we are not doing run time linking. 10738 library_names_spec='$libname$release.a $libname.a' 10739 soname_spec='$libname$release$shared_ext$major' 10740 ;; 10741 svr4,*) # full svr4 only 10742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10744 # We do not specify a path in Import Files, so LIBPATH fires. 10745 shlibpath_overrides_runpath=yes 10746 ;; 10747 *,yes) # both, prefer svr4 10748 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10749 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10750 # unpreferred sharedlib libNAME.a needs extra handling 10751 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10752 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10753 # We do not specify a path in Import Files, so LIBPATH fires. 10754 shlibpath_overrides_runpath=yes 10755 ;; 10756 *,no) # both, prefer aix 10757 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10758 library_names_spec='$libname$release.a $libname.a' 10759 soname_spec='$libname$release$shared_ext$major' 10760 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10761 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10762 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10763 ;; 10764 esac 10765 shlibpath_var=LIBPATH 10766 fi 10767 ;; 10768 10769amigaos*) 10770 case $host_cpu in 10771 powerpc) 10772 # Since July 2007 AmigaOS4 officially supports .so libraries. 10773 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10775 ;; 10776 m68k) 10777 library_names_spec='$libname.ixlibrary $libname.a' 10778 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10779 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 10780 ;; 10781 esac 10782 ;; 10783 10784beos*) 10785 library_names_spec='$libname$shared_ext' 10786 dynamic_linker="$host_os ld.so" 10787 shlibpath_var=LIBRARY_PATH 10788 ;; 10789 10790bsdi[45]*) 10791 version_type=linux # correct to gnu/linux during the next big refactor 10792 need_version=no 10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10794 soname_spec='$libname$release$shared_ext$major' 10795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10796 shlibpath_var=LD_LIBRARY_PATH 10797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10799 # the default ld.so.conf also contains /usr/contrib/lib and 10800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10801 # libtool to hard-code these into programs 10802 ;; 10803 10804cygwin* | mingw* | pw32* | cegcc*) 10805 version_type=windows 10806 shrext_cmds=.dll 10807 need_version=no 10808 need_lib_prefix=no 10809 10810 case $GCC,$cc_basename in 10811 yes,*) 10812 # gcc 10813 library_names_spec='$libname.dll.a' 10814 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10815 postinstall_cmds='base_file=`basename \$file`~ 10816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10817 dldir=$destdir/`dirname \$dlpath`~ 10818 test -d \$dldir || mkdir -p \$dldir~ 10819 $install_prog $dir/$dlname \$dldir/$dlname~ 10820 chmod a+x \$dldir/$dlname~ 10821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10823 fi' 10824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10825 dlpath=$dir/\$dldll~ 10826 $RM \$dlpath' 10827 shlibpath_overrides_runpath=yes 10828 10829 case $host_os in 10830 cygwin*) 10831 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10832 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10833 10834 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10835 ;; 10836 mingw* | cegcc*) 10837 # MinGW DLLs use traditional 'lib' prefix 10838 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10839 ;; 10840 pw32*) 10841 # pw32 DLLs use 'pw' prefix rather than 'lib' 10842 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10843 ;; 10844 esac 10845 dynamic_linker='Win32 ld.exe' 10846 ;; 10847 10848 *,cl*) 10849 # Native MSVC 10850 libname_spec='$name' 10851 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10852 library_names_spec='$libname.dll.lib' 10853 10854 case $build_os in 10855 mingw*) 10856 sys_lib_search_path_spec= 10857 lt_save_ifs=$IFS 10858 IFS=';' 10859 for lt_path in $LIB 10860 do 10861 IFS=$lt_save_ifs 10862 # Let DOS variable expansion print the short 8.3 style file name. 10863 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10864 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10865 done 10866 IFS=$lt_save_ifs 10867 # Convert to MSYS style. 10868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10869 ;; 10870 cygwin*) 10871 # Convert to unix form, then to dos form, then back to unix form 10872 # but this time dos style (no spaces!) so that the unix form looks 10873 # like /cygdrive/c/PROGRA~1:/cygdr... 10874 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10875 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10876 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10877 ;; 10878 *) 10879 sys_lib_search_path_spec=$LIB 10880 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10881 # It is most probably a Windows format PATH. 10882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10883 else 10884 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10885 fi 10886 # FIXME: find the short name or the path components, as spaces are 10887 # common. (e.g. "Program Files" -> "PROGRA~1") 10888 ;; 10889 esac 10890 10891 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10892 postinstall_cmds='base_file=`basename \$file`~ 10893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10894 dldir=$destdir/`dirname \$dlpath`~ 10895 test -d \$dldir || mkdir -p \$dldir~ 10896 $install_prog $dir/$dlname \$dldir/$dlname' 10897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10898 dlpath=$dir/\$dldll~ 10899 $RM \$dlpath' 10900 shlibpath_overrides_runpath=yes 10901 dynamic_linker='Win32 link.exe' 10902 ;; 10903 10904 *) 10905 # Assume MSVC wrapper 10906 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10907 dynamic_linker='Win32 ld.exe' 10908 ;; 10909 esac 10910 # FIXME: first we should search . and the directory the executable is in 10911 shlibpath_var=PATH 10912 ;; 10913 10914darwin* | rhapsody*) 10915 dynamic_linker="$host_os dyld" 10916 version_type=darwin 10917 need_lib_prefix=no 10918 need_version=no 10919 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 10920 soname_spec='$libname$release$major$shared_ext' 10921 shlibpath_overrides_runpath=yes 10922 shlibpath_var=DYLD_LIBRARY_PATH 10923 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 10924 10925 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10926 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10927 ;; 10928 10929dgux*) 10930 version_type=linux # correct to gnu/linux during the next big refactor 10931 need_lib_prefix=no 10932 need_version=no 10933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10934 soname_spec='$libname$release$shared_ext$major' 10935 shlibpath_var=LD_LIBRARY_PATH 10936 ;; 10937 10938freebsd* | dragonfly*) 10939 # DragonFly does not have aout. When/if they implement a new 10940 # versioning mechanism, adjust this. 10941 if test -x /usr/bin/objformat; then 10942 objformat=`/usr/bin/objformat` 10943 else 10944 case $host_os in 10945 freebsd[23].*) objformat=aout ;; 10946 *) objformat=elf ;; 10947 esac 10948 fi 10949 # Handle Gentoo/FreeBSD as it was Linux 10950 case $host_vendor in 10951 gentoo) 10952 version_type=linux ;; 10953 *) 10954 version_type=freebsd-$objformat ;; 10955 esac 10956 10957 case $version_type in 10958 freebsd-elf*) 10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10960 soname_spec='$libname$release$shared_ext$major' 10961 need_version=no 10962 need_lib_prefix=no 10963 ;; 10964 freebsd-*) 10965 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10966 need_version=yes 10967 ;; 10968 linux) 10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10970 soname_spec='${libname}${release}${shared_ext}$major' 10971 need_lib_prefix=no 10972 need_version=no 10973 ;; 10974 esac 10975 shlibpath_var=LD_LIBRARY_PATH 10976 case $host_os in 10977 freebsd2.*) 10978 shlibpath_overrides_runpath=yes 10979 ;; 10980 freebsd3.[01]* | freebsdelf3.[01]*) 10981 shlibpath_overrides_runpath=yes 10982 hardcode_into_libs=yes 10983 ;; 10984 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10985 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10986 shlibpath_overrides_runpath=no 10987 hardcode_into_libs=yes 10988 ;; 10989 *) # from 4.6 on, and DragonFly 10990 shlibpath_overrides_runpath=yes 10991 hardcode_into_libs=yes 10992 ;; 10993 esac 10994 ;; 10995 10996haiku*) 10997 version_type=linux # correct to gnu/linux during the next big refactor 10998 need_lib_prefix=no 10999 need_version=no 11000 dynamic_linker="$host_os runtime_loader" 11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11002 soname_spec='$libname$release$shared_ext$major' 11003 shlibpath_var=LIBRARY_PATH 11004 shlibpath_overrides_runpath=no 11005 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11006 hardcode_into_libs=yes 11007 ;; 11008 11009hpux9* | hpux10* | hpux11*) 11010 # Give a soname corresponding to the major version so that dld.sl refuses to 11011 # link against other versions. 11012 version_type=sunos 11013 need_lib_prefix=no 11014 need_version=no 11015 case $host_cpu in 11016 ia64*) 11017 shrext_cmds='.so' 11018 hardcode_into_libs=yes 11019 dynamic_linker="$host_os dld.so" 11020 shlibpath_var=LD_LIBRARY_PATH 11021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11023 soname_spec='$libname$release$shared_ext$major' 11024 if test 32 = "$HPUX_IA64_MODE"; then 11025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11026 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11027 else 11028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11029 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11030 fi 11031 ;; 11032 hppa*64*) 11033 shrext_cmds='.sl' 11034 hardcode_into_libs=yes 11035 dynamic_linker="$host_os dld.sl" 11036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11039 soname_spec='$libname$release$shared_ext$major' 11040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11042 ;; 11043 *) 11044 shrext_cmds='.sl' 11045 dynamic_linker="$host_os dld.sl" 11046 shlibpath_var=SHLIB_PATH 11047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11049 soname_spec='$libname$release$shared_ext$major' 11050 ;; 11051 esac 11052 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11053 postinstall_cmds='chmod 555 $lib' 11054 # or fails outright, so override atomically: 11055 install_override_mode=555 11056 ;; 11057 11058interix[3-9]*) 11059 version_type=linux # correct to gnu/linux during the next big refactor 11060 need_lib_prefix=no 11061 need_version=no 11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11063 soname_spec='$libname$release$shared_ext$major' 11064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 shlibpath_overrides_runpath=no 11067 hardcode_into_libs=yes 11068 ;; 11069 11070irix5* | irix6* | nonstopux*) 11071 case $host_os in 11072 nonstopux*) version_type=nonstopux ;; 11073 *) 11074 if test yes = "$lt_cv_prog_gnu_ld"; then 11075 version_type=linux # correct to gnu/linux during the next big refactor 11076 else 11077 version_type=irix 11078 fi ;; 11079 esac 11080 need_lib_prefix=no 11081 need_version=no 11082 soname_spec='$libname$release$shared_ext$major' 11083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11084 case $host_os in 11085 irix5* | nonstopux*) 11086 libsuff= shlibsuff= 11087 ;; 11088 *) 11089 case $LD in # libtool.m4 will add one of these switches to LD 11090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11091 libsuff= shlibsuff= libmagic=32-bit;; 11092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11093 libsuff=32 shlibsuff=N32 libmagic=N32;; 11094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11095 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11096 *) libsuff= shlibsuff= libmagic=never-match;; 11097 esac 11098 ;; 11099 esac 11100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11101 shlibpath_overrides_runpath=no 11102 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11103 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11104 hardcode_into_libs=yes 11105 ;; 11106 11107# No shared lib support for Linux oldld, aout, or coff. 11108linux*oldld* | linux*aout* | linux*coff*) 11109 dynamic_linker=no 11110 ;; 11111 11112linux*android*) 11113 version_type=none # Android doesn't support versioned libraries. 11114 need_lib_prefix=no 11115 need_version=no 11116 library_names_spec='$libname$release$shared_ext' 11117 soname_spec='$libname$release$shared_ext' 11118 finish_cmds= 11119 shlibpath_var=LD_LIBRARY_PATH 11120 shlibpath_overrides_runpath=yes 11121 11122 # This implies no fast_install, which is unacceptable. 11123 # Some rework will be needed to allow for fast_install 11124 # before this can be enabled. 11125 hardcode_into_libs=yes 11126 11127 dynamic_linker='Android linker' 11128 # Don't embed -rpath directories since the linker doesn't support them. 11129 hardcode_libdir_flag_spec='-L$libdir' 11130 ;; 11131 11132# This must be glibc/ELF. 11133linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11134 version_type=linux # correct to gnu/linux during the next big refactor 11135 need_lib_prefix=no 11136 need_version=no 11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11138 soname_spec='$libname$release$shared_ext$major' 11139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11140 shlibpath_var=LD_LIBRARY_PATH 11141 shlibpath_overrides_runpath=no 11142 11143 # Some binutils ld are patched to set DT_RUNPATH 11144 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11145 $as_echo_n "(cached) " >&6 11146else 11147 lt_cv_shlibpath_overrides_runpath=no 11148 save_LDFLAGS=$LDFLAGS 11149 save_libdir=$libdir 11150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11153/* end confdefs.h. */ 11154 11155int 11156main () 11157{ 11158 11159 ; 11160 return 0; 11161} 11162_ACEOF 11163if ac_fn_c_try_link "$LINENO"; then : 11164 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11165 lt_cv_shlibpath_overrides_runpath=yes 11166fi 11167fi 11168rm -f core conftest.err conftest.$ac_objext \ 11169 conftest$ac_exeext conftest.$ac_ext 11170 LDFLAGS=$save_LDFLAGS 11171 libdir=$save_libdir 11172 11173fi 11174 11175 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11176 11177 # This implies no fast_install, which is unacceptable. 11178 # Some rework will be needed to allow for fast_install 11179 # before this can be enabled. 11180 hardcode_into_libs=yes 11181 11182 # Ideally, we could use ldconfig to report *all* directores which are 11183 # searched for libraries, however this is still not possible. Aside from not 11184 # being certain /sbin/ldconfig is available, command 11185 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11186 # even though it is searched at run-time. Try to do the best guess by 11187 # appending ld.so.conf contents (and includes) to the search path. 11188 if test -f /etc/ld.so.conf; then 11189 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' ' '` 11190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11191 fi 11192 11193 # We used to test for /lib/ld.so.1 and disable shared libraries on 11194 # powerpc, because MkLinux only supported shared libraries with the 11195 # GNU dynamic linker. Since this was broken with cross compilers, 11196 # most powerpc-linux boxes support dynamic linking these days and 11197 # people can always --disable-shared, the test was removed, and we 11198 # assume the GNU/Linux dynamic linker is in use. 11199 dynamic_linker='GNU/Linux ld.so' 11200 ;; 11201 11202netbsd*) 11203 version_type=sunos 11204 need_lib_prefix=no 11205 need_version=no 11206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11209 dynamic_linker='NetBSD (a.out) ld.so' 11210 else 11211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11212 soname_spec='$libname$release$shared_ext$major' 11213 dynamic_linker='NetBSD ld.elf_so' 11214 fi 11215 shlibpath_var=LD_LIBRARY_PATH 11216 shlibpath_overrides_runpath=yes 11217 hardcode_into_libs=yes 11218 ;; 11219 11220newsos6) 11221 version_type=linux # correct to gnu/linux during the next big refactor 11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11223 shlibpath_var=LD_LIBRARY_PATH 11224 shlibpath_overrides_runpath=yes 11225 ;; 11226 11227*nto* | *qnx*) 11228 version_type=qnx 11229 need_lib_prefix=no 11230 need_version=no 11231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11232 soname_spec='$libname$release$shared_ext$major' 11233 shlibpath_var=LD_LIBRARY_PATH 11234 shlibpath_overrides_runpath=no 11235 hardcode_into_libs=yes 11236 dynamic_linker='ldqnx.so' 11237 ;; 11238 11239openbsd* | bitrig*) 11240 version_type=sunos 11241 sys_lib_dlsearch_path_spec=/usr/lib 11242 need_lib_prefix=no 11243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11244 need_version=no 11245 else 11246 need_version=yes 11247 fi 11248 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11250 shlibpath_var=LD_LIBRARY_PATH 11251 shlibpath_overrides_runpath=yes 11252 ;; 11253 11254os2*) 11255 libname_spec='$name' 11256 version_type=windows 11257 shrext_cmds=.dll 11258 need_version=no 11259 need_lib_prefix=no 11260 # OS/2 can only load a DLL with a base name of 8 characters or less. 11261 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11262 v=$($ECHO $release$versuffix | tr -d .-); 11263 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11264 $ECHO $n$v`$shared_ext' 11265 library_names_spec='${libname}_dll.$libext' 11266 dynamic_linker='OS/2 ld.exe' 11267 shlibpath_var=BEGINLIBPATH 11268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11270 postinstall_cmds='base_file=`basename \$file`~ 11271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11272 dldir=$destdir/`dirname \$dlpath`~ 11273 test -d \$dldir || mkdir -p \$dldir~ 11274 $install_prog $dir/$dlname \$dldir/$dlname~ 11275 chmod a+x \$dldir/$dlname~ 11276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11278 fi' 11279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11280 dlpath=$dir/\$dldll~ 11281 $RM \$dlpath' 11282 ;; 11283 11284osf3* | osf4* | osf5*) 11285 version_type=osf 11286 need_lib_prefix=no 11287 need_version=no 11288 soname_spec='$libname$release$shared_ext$major' 11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11290 shlibpath_var=LD_LIBRARY_PATH 11291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11293 ;; 11294 11295rdos*) 11296 dynamic_linker=no 11297 ;; 11298 11299solaris*) 11300 version_type=linux # correct to gnu/linux during the next big refactor 11301 need_lib_prefix=no 11302 need_version=no 11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11304 soname_spec='$libname$release$shared_ext$major' 11305 shlibpath_var=LD_LIBRARY_PATH 11306 shlibpath_overrides_runpath=yes 11307 hardcode_into_libs=yes 11308 # ldd complains unless libraries are executable 11309 postinstall_cmds='chmod +x $lib' 11310 ;; 11311 11312sunos4*) 11313 version_type=sunos 11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11316 shlibpath_var=LD_LIBRARY_PATH 11317 shlibpath_overrides_runpath=yes 11318 if test yes = "$with_gnu_ld"; then 11319 need_lib_prefix=no 11320 fi 11321 need_version=yes 11322 ;; 11323 11324sysv4 | sysv4.3*) 11325 version_type=linux # correct to gnu/linux during the next big refactor 11326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11327 soname_spec='$libname$release$shared_ext$major' 11328 shlibpath_var=LD_LIBRARY_PATH 11329 case $host_vendor in 11330 sni) 11331 shlibpath_overrides_runpath=no 11332 need_lib_prefix=no 11333 runpath_var=LD_RUN_PATH 11334 ;; 11335 siemens) 11336 need_lib_prefix=no 11337 ;; 11338 motorola) 11339 need_lib_prefix=no 11340 need_version=no 11341 shlibpath_overrides_runpath=no 11342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11343 ;; 11344 esac 11345 ;; 11346 11347sysv4*MP*) 11348 if test -d /usr/nec; then 11349 version_type=linux # correct to gnu/linux during the next big refactor 11350 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11351 soname_spec='$libname$shared_ext.$major' 11352 shlibpath_var=LD_LIBRARY_PATH 11353 fi 11354 ;; 11355 11356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11357 version_type=sco 11358 need_lib_prefix=no 11359 need_version=no 11360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11361 soname_spec='$libname$release$shared_ext$major' 11362 shlibpath_var=LD_LIBRARY_PATH 11363 shlibpath_overrides_runpath=yes 11364 hardcode_into_libs=yes 11365 if test yes = "$with_gnu_ld"; then 11366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11367 else 11368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11369 case $host_os in 11370 sco3.2v5*) 11371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11372 ;; 11373 esac 11374 fi 11375 sys_lib_dlsearch_path_spec='/usr/lib' 11376 ;; 11377 11378tpf*) 11379 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11380 version_type=linux # correct to gnu/linux during the next big refactor 11381 need_lib_prefix=no 11382 need_version=no 11383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11384 shlibpath_var=LD_LIBRARY_PATH 11385 shlibpath_overrides_runpath=no 11386 hardcode_into_libs=yes 11387 ;; 11388 11389uts4*) 11390 version_type=linux # correct to gnu/linux during the next big refactor 11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11392 soname_spec='$libname$release$shared_ext$major' 11393 shlibpath_var=LD_LIBRARY_PATH 11394 ;; 11395 11396*) 11397 dynamic_linker=no 11398 ;; 11399esac 11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11401$as_echo "$dynamic_linker" >&6; } 11402test no = "$dynamic_linker" && can_build_shared=no 11403 11404variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11405if test yes = "$GCC"; then 11406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11407fi 11408 11409if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11410 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11411fi 11412 11413if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11414 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11415fi 11416 11417# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11418configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11419 11420# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11421func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11422 11423# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11424configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11523$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11524hardcode_action= 11525if test -n "$hardcode_libdir_flag_spec" || 11526 test -n "$runpath_var" || 11527 test yes = "$hardcode_automatic"; then 11528 11529 # We can hardcode non-existent directories. 11530 if test no != "$hardcode_direct" && 11531 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11532 # have to relink, otherwise we might link with an installed library 11533 # when we should be linking with a yet-to-be-installed one 11534 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11535 test no != "$hardcode_minus_L"; then 11536 # Linking always hardcodes the temporary library directory. 11537 hardcode_action=relink 11538 else 11539 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11540 hardcode_action=immediate 11541 fi 11542else 11543 # We cannot hardcode anything, or else we can only hardcode existing 11544 # directories. 11545 hardcode_action=unsupported 11546fi 11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11548$as_echo "$hardcode_action" >&6; } 11549 11550if test relink = "$hardcode_action" || 11551 test yes = "$inherit_rpath"; then 11552 # Fast installation is not supported 11553 enable_fast_install=no 11554elif test yes = "$shlibpath_overrides_runpath" || 11555 test no = "$enable_shared"; then 11556 # Fast installation is not necessary 11557 enable_fast_install=needless 11558fi 11559 11560 11561 11562 11563 11564 11565 if test yes != "$enable_dlopen"; then 11566 enable_dlopen=unknown 11567 enable_dlopen_self=unknown 11568 enable_dlopen_self_static=unknown 11569else 11570 lt_cv_dlopen=no 11571 lt_cv_dlopen_libs= 11572 11573 case $host_os in 11574 beos*) 11575 lt_cv_dlopen=load_add_on 11576 lt_cv_dlopen_libs= 11577 lt_cv_dlopen_self=yes 11578 ;; 11579 11580 mingw* | pw32* | cegcc*) 11581 lt_cv_dlopen=LoadLibrary 11582 lt_cv_dlopen_libs= 11583 ;; 11584 11585 cygwin*) 11586 lt_cv_dlopen=dlopen 11587 lt_cv_dlopen_libs= 11588 ;; 11589 11590 darwin*) 11591 # if libdl is installed we need to link against it 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11593$as_echo_n "checking for dlopen in -ldl... " >&6; } 11594if ${ac_cv_lib_dl_dlopen+:} false; then : 11595 $as_echo_n "(cached) " >&6 11596else 11597 ac_check_lib_save_LIBS=$LIBS 11598LIBS="-ldl $LIBS" 11599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11600/* end confdefs.h. */ 11601 11602/* Override any GCC internal prototype to avoid an error. 11603 Use char because int might match the return type of a GCC 11604 builtin and then its argument prototype would still apply. */ 11605#ifdef __cplusplus 11606extern "C" 11607#endif 11608char dlopen (); 11609int 11610main () 11611{ 11612return dlopen (); 11613 ; 11614 return 0; 11615} 11616_ACEOF 11617if ac_fn_c_try_link "$LINENO"; then : 11618 ac_cv_lib_dl_dlopen=yes 11619else 11620 ac_cv_lib_dl_dlopen=no 11621fi 11622rm -f core conftest.err conftest.$ac_objext \ 11623 conftest$ac_exeext conftest.$ac_ext 11624LIBS=$ac_check_lib_save_LIBS 11625fi 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11627$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11628if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11629 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11630else 11631 11632 lt_cv_dlopen=dyld 11633 lt_cv_dlopen_libs= 11634 lt_cv_dlopen_self=yes 11635 11636fi 11637 11638 ;; 11639 11640 tpf*) 11641 # Don't try to run any link tests for TPF. We know it's impossible 11642 # because TPF is a cross-compiler, and we know how we open DSOs. 11643 lt_cv_dlopen=dlopen 11644 lt_cv_dlopen_libs= 11645 lt_cv_dlopen_self=no 11646 ;; 11647 11648 *) 11649 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11650if test "x$ac_cv_func_shl_load" = xyes; then : 11651 lt_cv_dlopen=shl_load 11652else 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11654$as_echo_n "checking for shl_load in -ldld... " >&6; } 11655if ${ac_cv_lib_dld_shl_load+:} false; then : 11656 $as_echo_n "(cached) " >&6 11657else 11658 ac_check_lib_save_LIBS=$LIBS 11659LIBS="-ldld $LIBS" 11660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11661/* end confdefs.h. */ 11662 11663/* Override any GCC internal prototype to avoid an error. 11664 Use char because int might match the return type of a GCC 11665 builtin and then its argument prototype would still apply. */ 11666#ifdef __cplusplus 11667extern "C" 11668#endif 11669char shl_load (); 11670int 11671main () 11672{ 11673return shl_load (); 11674 ; 11675 return 0; 11676} 11677_ACEOF 11678if ac_fn_c_try_link "$LINENO"; then : 11679 ac_cv_lib_dld_shl_load=yes 11680else 11681 ac_cv_lib_dld_shl_load=no 11682fi 11683rm -f core conftest.err conftest.$ac_objext \ 11684 conftest$ac_exeext conftest.$ac_ext 11685LIBS=$ac_check_lib_save_LIBS 11686fi 11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11688$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11689if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11690 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11691else 11692 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11693if test "x$ac_cv_func_dlopen" = xyes; then : 11694 lt_cv_dlopen=dlopen 11695else 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11697$as_echo_n "checking for dlopen in -ldl... " >&6; } 11698if ${ac_cv_lib_dl_dlopen+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700else 11701 ac_check_lib_save_LIBS=$LIBS 11702LIBS="-ldl $LIBS" 11703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11704/* end confdefs.h. */ 11705 11706/* Override any GCC internal prototype to avoid an error. 11707 Use char because int might match the return type of a GCC 11708 builtin and then its argument prototype would still apply. */ 11709#ifdef __cplusplus 11710extern "C" 11711#endif 11712char dlopen (); 11713int 11714main () 11715{ 11716return dlopen (); 11717 ; 11718 return 0; 11719} 11720_ACEOF 11721if ac_fn_c_try_link "$LINENO"; then : 11722 ac_cv_lib_dl_dlopen=yes 11723else 11724 ac_cv_lib_dl_dlopen=no 11725fi 11726rm -f core conftest.err conftest.$ac_objext \ 11727 conftest$ac_exeext conftest.$ac_ext 11728LIBS=$ac_check_lib_save_LIBS 11729fi 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11731$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11732if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11733 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11734else 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11736$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11737if ${ac_cv_lib_svld_dlopen+:} false; then : 11738 $as_echo_n "(cached) " >&6 11739else 11740 ac_check_lib_save_LIBS=$LIBS 11741LIBS="-lsvld $LIBS" 11742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11743/* end confdefs.h. */ 11744 11745/* Override any GCC internal prototype to avoid an error. 11746 Use char because int might match the return type of a GCC 11747 builtin and then its argument prototype would still apply. */ 11748#ifdef __cplusplus 11749extern "C" 11750#endif 11751char dlopen (); 11752int 11753main () 11754{ 11755return dlopen (); 11756 ; 11757 return 0; 11758} 11759_ACEOF 11760if ac_fn_c_try_link "$LINENO"; then : 11761 ac_cv_lib_svld_dlopen=yes 11762else 11763 ac_cv_lib_svld_dlopen=no 11764fi 11765rm -f core conftest.err conftest.$ac_objext \ 11766 conftest$ac_exeext conftest.$ac_ext 11767LIBS=$ac_check_lib_save_LIBS 11768fi 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11770$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11771if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11772 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11773else 11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11775$as_echo_n "checking for dld_link in -ldld... " >&6; } 11776if ${ac_cv_lib_dld_dld_link+:} false; then : 11777 $as_echo_n "(cached) " >&6 11778else 11779 ac_check_lib_save_LIBS=$LIBS 11780LIBS="-ldld $LIBS" 11781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11782/* end confdefs.h. */ 11783 11784/* Override any GCC internal prototype to avoid an error. 11785 Use char because int might match the return type of a GCC 11786 builtin and then its argument prototype would still apply. */ 11787#ifdef __cplusplus 11788extern "C" 11789#endif 11790char dld_link (); 11791int 11792main () 11793{ 11794return dld_link (); 11795 ; 11796 return 0; 11797} 11798_ACEOF 11799if ac_fn_c_try_link "$LINENO"; then : 11800 ac_cv_lib_dld_dld_link=yes 11801else 11802 ac_cv_lib_dld_dld_link=no 11803fi 11804rm -f core conftest.err conftest.$ac_objext \ 11805 conftest$ac_exeext conftest.$ac_ext 11806LIBS=$ac_check_lib_save_LIBS 11807fi 11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11809$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11810if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11811 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11812fi 11813 11814 11815fi 11816 11817 11818fi 11819 11820 11821fi 11822 11823 11824fi 11825 11826 11827fi 11828 11829 ;; 11830 esac 11831 11832 if test no = "$lt_cv_dlopen"; then 11833 enable_dlopen=no 11834 else 11835 enable_dlopen=yes 11836 fi 11837 11838 case $lt_cv_dlopen in 11839 dlopen) 11840 save_CPPFLAGS=$CPPFLAGS 11841 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11842 11843 save_LDFLAGS=$LDFLAGS 11844 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11845 11846 save_LIBS=$LIBS 11847 LIBS="$lt_cv_dlopen_libs $LIBS" 11848 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11850$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11851if ${lt_cv_dlopen_self+:} false; then : 11852 $as_echo_n "(cached) " >&6 11853else 11854 if test yes = "$cross_compiling"; then : 11855 lt_cv_dlopen_self=cross 11856else 11857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11858 lt_status=$lt_dlunknown 11859 cat > conftest.$ac_ext <<_LT_EOF 11860#line $LINENO "configure" 11861#include "confdefs.h" 11862 11863#if HAVE_DLFCN_H 11864#include <dlfcn.h> 11865#endif 11866 11867#include <stdio.h> 11868 11869#ifdef RTLD_GLOBAL 11870# define LT_DLGLOBAL RTLD_GLOBAL 11871#else 11872# ifdef DL_GLOBAL 11873# define LT_DLGLOBAL DL_GLOBAL 11874# else 11875# define LT_DLGLOBAL 0 11876# endif 11877#endif 11878 11879/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11880 find out it does not work in some platform. */ 11881#ifndef LT_DLLAZY_OR_NOW 11882# ifdef RTLD_LAZY 11883# define LT_DLLAZY_OR_NOW RTLD_LAZY 11884# else 11885# ifdef DL_LAZY 11886# define LT_DLLAZY_OR_NOW DL_LAZY 11887# else 11888# ifdef RTLD_NOW 11889# define LT_DLLAZY_OR_NOW RTLD_NOW 11890# else 11891# ifdef DL_NOW 11892# define LT_DLLAZY_OR_NOW DL_NOW 11893# else 11894# define LT_DLLAZY_OR_NOW 0 11895# endif 11896# endif 11897# endif 11898# endif 11899#endif 11900 11901/* When -fvisibility=hidden is used, assume the code has been annotated 11902 correspondingly for the symbols needed. */ 11903#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11904int fnord () __attribute__((visibility("default"))); 11905#endif 11906 11907int fnord () { return 42; } 11908int main () 11909{ 11910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11911 int status = $lt_dlunknown; 11912 11913 if (self) 11914 { 11915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11916 else 11917 { 11918 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11919 else puts (dlerror ()); 11920 } 11921 /* dlclose (self); */ 11922 } 11923 else 11924 puts (dlerror ()); 11925 11926 return status; 11927} 11928_LT_EOF 11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11930 (eval $ac_link) 2>&5 11931 ac_status=$? 11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11933 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11934 (./conftest; exit; ) >&5 2>/dev/null 11935 lt_status=$? 11936 case x$lt_status in 11937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11939 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11940 esac 11941 else : 11942 # compilation failed 11943 lt_cv_dlopen_self=no 11944 fi 11945fi 11946rm -fr conftest* 11947 11948 11949fi 11950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11951$as_echo "$lt_cv_dlopen_self" >&6; } 11952 11953 if test yes = "$lt_cv_dlopen_self"; then 11954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11956$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11957if ${lt_cv_dlopen_self_static+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 if test yes = "$cross_compiling"; then : 11961 lt_cv_dlopen_self_static=cross 11962else 11963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11964 lt_status=$lt_dlunknown 11965 cat > conftest.$ac_ext <<_LT_EOF 11966#line $LINENO "configure" 11967#include "confdefs.h" 11968 11969#if HAVE_DLFCN_H 11970#include <dlfcn.h> 11971#endif 11972 11973#include <stdio.h> 11974 11975#ifdef RTLD_GLOBAL 11976# define LT_DLGLOBAL RTLD_GLOBAL 11977#else 11978# ifdef DL_GLOBAL 11979# define LT_DLGLOBAL DL_GLOBAL 11980# else 11981# define LT_DLGLOBAL 0 11982# endif 11983#endif 11984 11985/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11986 find out it does not work in some platform. */ 11987#ifndef LT_DLLAZY_OR_NOW 11988# ifdef RTLD_LAZY 11989# define LT_DLLAZY_OR_NOW RTLD_LAZY 11990# else 11991# ifdef DL_LAZY 11992# define LT_DLLAZY_OR_NOW DL_LAZY 11993# else 11994# ifdef RTLD_NOW 11995# define LT_DLLAZY_OR_NOW RTLD_NOW 11996# else 11997# ifdef DL_NOW 11998# define LT_DLLAZY_OR_NOW DL_NOW 11999# else 12000# define LT_DLLAZY_OR_NOW 0 12001# endif 12002# endif 12003# endif 12004# endif 12005#endif 12006 12007/* When -fvisibility=hidden is used, assume the code has been annotated 12008 correspondingly for the symbols needed. */ 12009#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12010int fnord () __attribute__((visibility("default"))); 12011#endif 12012 12013int fnord () { return 42; } 12014int main () 12015{ 12016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12017 int status = $lt_dlunknown; 12018 12019 if (self) 12020 { 12021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12022 else 12023 { 12024 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12025 else puts (dlerror ()); 12026 } 12027 /* dlclose (self); */ 12028 } 12029 else 12030 puts (dlerror ()); 12031 12032 return status; 12033} 12034_LT_EOF 12035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12036 (eval $ac_link) 2>&5 12037 ac_status=$? 12038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12039 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12040 (./conftest; exit; ) >&5 2>/dev/null 12041 lt_status=$? 12042 case x$lt_status in 12043 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12044 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12045 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12046 esac 12047 else : 12048 # compilation failed 12049 lt_cv_dlopen_self_static=no 12050 fi 12051fi 12052rm -fr conftest* 12053 12054 12055fi 12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12057$as_echo "$lt_cv_dlopen_self_static" >&6; } 12058 fi 12059 12060 CPPFLAGS=$save_CPPFLAGS 12061 LDFLAGS=$save_LDFLAGS 12062 LIBS=$save_LIBS 12063 ;; 12064 esac 12065 12066 case $lt_cv_dlopen_self in 12067 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12068 *) enable_dlopen_self=unknown ;; 12069 esac 12070 12071 case $lt_cv_dlopen_self_static in 12072 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12073 *) enable_dlopen_self_static=unknown ;; 12074 esac 12075fi 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093striplib= 12094old_striplib= 12095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12096$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12097if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12098 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12099 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12101$as_echo "yes" >&6; } 12102else 12103# FIXME - insert some real tests, host_os isn't really good enough 12104 case $host_os in 12105 darwin*) 12106 if test -n "$STRIP"; then 12107 striplib="$STRIP -x" 12108 old_striplib="$STRIP -S" 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12110$as_echo "yes" >&6; } 12111 else 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12113$as_echo "no" >&6; } 12114 fi 12115 ;; 12116 *) 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12118$as_echo "no" >&6; } 12119 ;; 12120 esac 12121fi 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 # Report what library types will actually be built 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12136$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12138$as_echo "$can_build_shared" >&6; } 12139 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12141$as_echo_n "checking whether to build shared libraries... " >&6; } 12142 test no = "$can_build_shared" && enable_shared=no 12143 12144 # On AIX, shared libraries and static libraries use the same namespace, and 12145 # are all built from PIC. 12146 case $host_os in 12147 aix3*) 12148 test yes = "$enable_shared" && enable_static=no 12149 if test -n "$RANLIB"; then 12150 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12151 postinstall_cmds='$RANLIB $lib' 12152 fi 12153 ;; 12154 12155 aix[4-9]*) 12156 if test ia64 != "$host_cpu"; then 12157 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12158 yes,aix,yes) ;; # shared object as lib.so file only 12159 yes,svr4,*) ;; # shared object as lib.so archive member only 12160 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12161 esac 12162 fi 12163 ;; 12164 esac 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12166$as_echo "$enable_shared" >&6; } 12167 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12169$as_echo_n "checking whether to build static libraries... " >&6; } 12170 # Make sure either enable_shared or enable_static is yes. 12171 test yes = "$enable_shared" || enable_static=yes 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12173$as_echo "$enable_static" >&6; } 12174 12175 12176 12177 12178fi 12179ac_ext=c 12180ac_cpp='$CPP $CPPFLAGS' 12181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12183ac_compiler_gnu=$ac_cv_c_compiler_gnu 12184 12185CC=$lt_save_CC 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 ac_config_commands="$ac_config_commands libtool" 12202 12203 12204 12205 12206# Only expand once: 12207 12208 12209 12210# Require X.Org macros 1.13 or later for XORG_ENABLE_UNIT_TESTS 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12223$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12224if ${ac_cv_prog_cc_c99+:} false; then : 12225 $as_echo_n "(cached) " >&6 12226else 12227 ac_cv_prog_cc_c99=no 12228ac_save_CC=$CC 12229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12230/* end confdefs.h. */ 12231#include <stdarg.h> 12232#include <stdbool.h> 12233#include <stdlib.h> 12234#include <wchar.h> 12235#include <stdio.h> 12236 12237// Check varargs macros. These examples are taken from C99 6.10.3.5. 12238#define debug(...) fprintf (stderr, __VA_ARGS__) 12239#define showlist(...) puts (#__VA_ARGS__) 12240#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12241static void 12242test_varargs_macros (void) 12243{ 12244 int x = 1234; 12245 int y = 5678; 12246 debug ("Flag"); 12247 debug ("X = %d\n", x); 12248 showlist (The first, second, and third items.); 12249 report (x>y, "x is %d but y is %d", x, y); 12250} 12251 12252// Check long long types. 12253#define BIG64 18446744073709551615ull 12254#define BIG32 4294967295ul 12255#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12256#if !BIG_OK 12257 your preprocessor is broken; 12258#endif 12259#if BIG_OK 12260#else 12261 your preprocessor is broken; 12262#endif 12263static long long int bignum = -9223372036854775807LL; 12264static unsigned long long int ubignum = BIG64; 12265 12266struct incomplete_array 12267{ 12268 int datasize; 12269 double data[]; 12270}; 12271 12272struct named_init { 12273 int number; 12274 const wchar_t *name; 12275 double average; 12276}; 12277 12278typedef const char *ccp; 12279 12280static inline int 12281test_restrict (ccp restrict text) 12282{ 12283 // See if C++-style comments work. 12284 // Iterate through items via the restricted pointer. 12285 // Also check for declarations in for loops. 12286 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12287 continue; 12288 return 0; 12289} 12290 12291// Check varargs and va_copy. 12292static void 12293test_varargs (const char *format, ...) 12294{ 12295 va_list args; 12296 va_start (args, format); 12297 va_list args_copy; 12298 va_copy (args_copy, args); 12299 12300 const char *str; 12301 int number; 12302 float fnumber; 12303 12304 while (*format) 12305 { 12306 switch (*format++) 12307 { 12308 case 's': // string 12309 str = va_arg (args_copy, const char *); 12310 break; 12311 case 'd': // int 12312 number = va_arg (args_copy, int); 12313 break; 12314 case 'f': // float 12315 fnumber = va_arg (args_copy, double); 12316 break; 12317 default: 12318 break; 12319 } 12320 } 12321 va_end (args_copy); 12322 va_end (args); 12323} 12324 12325int 12326main () 12327{ 12328 12329 // Check bool. 12330 _Bool success = false; 12331 12332 // Check restrict. 12333 if (test_restrict ("String literal") == 0) 12334 success = true; 12335 char *restrict newvar = "Another string"; 12336 12337 // Check varargs. 12338 test_varargs ("s, d' f .", "string", 65, 34.234); 12339 test_varargs_macros (); 12340 12341 // Check flexible array members. 12342 struct incomplete_array *ia = 12343 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12344 ia->datasize = 10; 12345 for (int i = 0; i < ia->datasize; ++i) 12346 ia->data[i] = i * 1.234; 12347 12348 // Check named initializers. 12349 struct named_init ni = { 12350 .number = 34, 12351 .name = L"Test wide string", 12352 .average = 543.34343, 12353 }; 12354 12355 ni.number = 58; 12356 12357 int dynamic_array[ni.number]; 12358 dynamic_array[ni.number - 1] = 543; 12359 12360 // work around unused variable warnings 12361 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12362 || dynamic_array[ni.number - 1] != 543); 12363 12364 ; 12365 return 0; 12366} 12367_ACEOF 12368for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12369do 12370 CC="$ac_save_CC $ac_arg" 12371 if ac_fn_c_try_compile "$LINENO"; then : 12372 ac_cv_prog_cc_c99=$ac_arg 12373fi 12374rm -f core conftest.err conftest.$ac_objext 12375 test "x$ac_cv_prog_cc_c99" != "xno" && break 12376done 12377rm -f conftest.$ac_ext 12378CC=$ac_save_CC 12379 12380fi 12381# AC_CACHE_VAL 12382case "x$ac_cv_prog_cc_c99" in 12383 x) 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12385$as_echo "none needed" >&6; } ;; 12386 xno) 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12388$as_echo "unsupported" >&6; } ;; 12389 *) 12390 CC="$CC $ac_cv_prog_cc_c99" 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12392$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12393esac 12394if test "x$ac_cv_prog_cc_c99" != xno; then : 12395 12396fi 12397 12398 12399 12400 12401 12402 12403ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12404if test "x$ac_cv_have_decl___clang__" = xyes; then : 12405 CLANGCC="yes" 12406else 12407 CLANGCC="no" 12408fi 12409 12410ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12411if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12412 INTELCC="yes" 12413else 12414 INTELCC="no" 12415fi 12416 12417ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12418if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12419 SUNCC="yes" 12420else 12421 SUNCC="no" 12422fi 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12433 if test -n "$ac_tool_prefix"; then 12434 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12435set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12437$as_echo_n "checking for $ac_word... " >&6; } 12438if ${ac_cv_path_PKG_CONFIG+:} false; then : 12439 $as_echo_n "(cached) " >&6 12440else 12441 case $PKG_CONFIG in 12442 [\\/]* | ?:[\\/]*) 12443 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12444 ;; 12445 *) 12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12447for as_dir in $PATH 12448do 12449 IFS=$as_save_IFS 12450 test -z "$as_dir" && as_dir=. 12451 for ac_exec_ext in '' $ac_executable_extensions; do 12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12453 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12455 break 2 12456 fi 12457done 12458 done 12459IFS=$as_save_IFS 12460 12461 ;; 12462esac 12463fi 12464PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12465if test -n "$PKG_CONFIG"; then 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12467$as_echo "$PKG_CONFIG" >&6; } 12468else 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12470$as_echo "no" >&6; } 12471fi 12472 12473 12474fi 12475if test -z "$ac_cv_path_PKG_CONFIG"; then 12476 ac_pt_PKG_CONFIG=$PKG_CONFIG 12477 # Extract the first word of "pkg-config", so it can be a program name with args. 12478set dummy pkg-config; ac_word=$2 12479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12480$as_echo_n "checking for $ac_word... " >&6; } 12481if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12482 $as_echo_n "(cached) " >&6 12483else 12484 case $ac_pt_PKG_CONFIG in 12485 [\\/]* | ?:[\\/]*) 12486 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12487 ;; 12488 *) 12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12490for as_dir in $PATH 12491do 12492 IFS=$as_save_IFS 12493 test -z "$as_dir" && as_dir=. 12494 for ac_exec_ext in '' $ac_executable_extensions; do 12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12496 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12498 break 2 12499 fi 12500done 12501 done 12502IFS=$as_save_IFS 12503 12504 ;; 12505esac 12506fi 12507ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12508if test -n "$ac_pt_PKG_CONFIG"; then 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12510$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12511else 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12513$as_echo "no" >&6; } 12514fi 12515 12516 if test "x$ac_pt_PKG_CONFIG" = x; then 12517 PKG_CONFIG="" 12518 else 12519 case $cross_compiling:$ac_tool_warned in 12520yes:) 12521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12523ac_tool_warned=yes ;; 12524esac 12525 PKG_CONFIG=$ac_pt_PKG_CONFIG 12526 fi 12527else 12528 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12529fi 12530 12531fi 12532if test -n "$PKG_CONFIG"; then 12533 _pkg_min_version=0.9.0 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12535$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12536 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12538$as_echo "yes" >&6; } 12539 else 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12541$as_echo "no" >&6; } 12542 PKG_CONFIG="" 12543 fi 12544fi 12545 12546 12547 12548 12549 12550# Check whether --enable-selective-werror was given. 12551if test "${enable_selective_werror+set}" = set; then : 12552 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12553else 12554 SELECTIVE_WERROR=yes 12555fi 12556 12557 12558 12559 12560 12561# -v is too short to test reliably with XORG_TESTSET_CFLAG 12562if test "x$SUNCC" = "xyes"; then 12563 BASE_CFLAGS="-v" 12564else 12565 BASE_CFLAGS="" 12566fi 12567 12568# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582xorg_testset_save_CFLAGS="$CFLAGS" 12583 12584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12587$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12588if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12592/* end confdefs.h. */ 12593int i; 12594_ACEOF 12595if ac_fn_c_try_compile "$LINENO"; then : 12596 xorg_cv_cc_flag_unknown_warning_option=yes 12597else 12598 xorg_cv_cc_flag_unknown_warning_option=no 12599fi 12600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12601fi 12602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12603$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12605 CFLAGS="$xorg_testset_save_CFLAGS" 12606fi 12607 12608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12611 fi 12612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12614$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12615if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12616 $as_echo_n "(cached) " >&6 12617else 12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620int i; 12621_ACEOF 12622if ac_fn_c_try_compile "$LINENO"; then : 12623 xorg_cv_cc_flag_unused_command_line_argument=yes 12624else 12625 xorg_cv_cc_flag_unused_command_line_argument=no 12626fi 12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12628fi 12629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12630$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12632 CFLAGS="$xorg_testset_save_CFLAGS" 12633fi 12634 12635found="no" 12636 12637 if test $found = "no" ; then 12638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12640 fi 12641 12642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12644 fi 12645 12646 CFLAGS="$CFLAGS -Wall" 12647 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12649$as_echo_n "checking if $CC supports -Wall... " >&6; } 12650 cacheid=xorg_cv_cc_flag__Wall 12651 if eval \${$cacheid+:} false; then : 12652 $as_echo_n "(cached) " >&6 12653else 12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12655/* end confdefs.h. */ 12656int i; 12657int 12658main () 12659{ 12660 12661 ; 12662 return 0; 12663} 12664_ACEOF 12665if ac_fn_c_try_link "$LINENO"; then : 12666 eval $cacheid=yes 12667else 12668 eval $cacheid=no 12669fi 12670rm -f core conftest.err conftest.$ac_objext \ 12671 conftest$ac_exeext conftest.$ac_ext 12672fi 12673 12674 12675 CFLAGS="$xorg_testset_save_CFLAGS" 12676 12677 eval supported=\$$cacheid 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12679$as_echo "$supported" >&6; } 12680 if test "$supported" = "yes" ; then 12681 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12682 found="yes" 12683 fi 12684 fi 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700xorg_testset_save_CFLAGS="$CFLAGS" 12701 12702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12705$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12706if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12707 $as_echo_n "(cached) " >&6 12708else 12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12710/* end confdefs.h. */ 12711int i; 12712_ACEOF 12713if ac_fn_c_try_compile "$LINENO"; then : 12714 xorg_cv_cc_flag_unknown_warning_option=yes 12715else 12716 xorg_cv_cc_flag_unknown_warning_option=no 12717fi 12718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12719fi 12720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12721$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12723 CFLAGS="$xorg_testset_save_CFLAGS" 12724fi 12725 12726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12729 fi 12730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12732$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12733if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12734 $as_echo_n "(cached) " >&6 12735else 12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12737/* end confdefs.h. */ 12738int i; 12739_ACEOF 12740if ac_fn_c_try_compile "$LINENO"; then : 12741 xorg_cv_cc_flag_unused_command_line_argument=yes 12742else 12743 xorg_cv_cc_flag_unused_command_line_argument=no 12744fi 12745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12746fi 12747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12748$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12750 CFLAGS="$xorg_testset_save_CFLAGS" 12751fi 12752 12753found="no" 12754 12755 if test $found = "no" ; then 12756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12758 fi 12759 12760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12762 fi 12763 12764 CFLAGS="$CFLAGS -Wpointer-arith" 12765 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12767$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12768 cacheid=xorg_cv_cc_flag__Wpointer_arith 12769 if eval \${$cacheid+:} false; then : 12770 $as_echo_n "(cached) " >&6 12771else 12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12773/* end confdefs.h. */ 12774int i; 12775int 12776main () 12777{ 12778 12779 ; 12780 return 0; 12781} 12782_ACEOF 12783if ac_fn_c_try_link "$LINENO"; then : 12784 eval $cacheid=yes 12785else 12786 eval $cacheid=no 12787fi 12788rm -f core conftest.err conftest.$ac_objext \ 12789 conftest$ac_exeext conftest.$ac_ext 12790fi 12791 12792 12793 CFLAGS="$xorg_testset_save_CFLAGS" 12794 12795 eval supported=\$$cacheid 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12797$as_echo "$supported" >&6; } 12798 if test "$supported" = "yes" ; then 12799 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12800 found="yes" 12801 fi 12802 fi 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818xorg_testset_save_CFLAGS="$CFLAGS" 12819 12820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12823$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12824if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12825 $as_echo_n "(cached) " >&6 12826else 12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12828/* end confdefs.h. */ 12829int i; 12830_ACEOF 12831if ac_fn_c_try_compile "$LINENO"; then : 12832 xorg_cv_cc_flag_unknown_warning_option=yes 12833else 12834 xorg_cv_cc_flag_unknown_warning_option=no 12835fi 12836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12839$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12841 CFLAGS="$xorg_testset_save_CFLAGS" 12842fi 12843 12844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12847 fi 12848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12850$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12851if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12852 $as_echo_n "(cached) " >&6 12853else 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856int i; 12857_ACEOF 12858if ac_fn_c_try_compile "$LINENO"; then : 12859 xorg_cv_cc_flag_unused_command_line_argument=yes 12860else 12861 xorg_cv_cc_flag_unused_command_line_argument=no 12862fi 12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12864fi 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12866$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12868 CFLAGS="$xorg_testset_save_CFLAGS" 12869fi 12870 12871found="no" 12872 12873 if test $found = "no" ; then 12874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12876 fi 12877 12878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12880 fi 12881 12882 CFLAGS="$CFLAGS -Wmissing-declarations" 12883 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12885$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12886 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12887 if eval \${$cacheid+:} false; then : 12888 $as_echo_n "(cached) " >&6 12889else 12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12891/* end confdefs.h. */ 12892int i; 12893int 12894main () 12895{ 12896 12897 ; 12898 return 0; 12899} 12900_ACEOF 12901if ac_fn_c_try_link "$LINENO"; then : 12902 eval $cacheid=yes 12903else 12904 eval $cacheid=no 12905fi 12906rm -f core conftest.err conftest.$ac_objext \ 12907 conftest$ac_exeext conftest.$ac_ext 12908fi 12909 12910 12911 CFLAGS="$xorg_testset_save_CFLAGS" 12912 12913 eval supported=\$$cacheid 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12915$as_echo "$supported" >&6; } 12916 if test "$supported" = "yes" ; then 12917 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12918 found="yes" 12919 fi 12920 fi 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936xorg_testset_save_CFLAGS="$CFLAGS" 12937 12938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12943 $as_echo_n "(cached) " >&6 12944else 12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12946/* end confdefs.h. */ 12947int i; 12948_ACEOF 12949if ac_fn_c_try_compile "$LINENO"; then : 12950 xorg_cv_cc_flag_unknown_warning_option=yes 12951else 12952 xorg_cv_cc_flag_unknown_warning_option=no 12953fi 12954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12955fi 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12959 CFLAGS="$xorg_testset_save_CFLAGS" 12960fi 12961 12962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12965 fi 12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12970 $as_echo_n "(cached) " >&6 12971else 12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12973/* end confdefs.h. */ 12974int i; 12975_ACEOF 12976if ac_fn_c_try_compile "$LINENO"; then : 12977 xorg_cv_cc_flag_unused_command_line_argument=yes 12978else 12979 xorg_cv_cc_flag_unused_command_line_argument=no 12980fi 12981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12982fi 12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12986 CFLAGS="$xorg_testset_save_CFLAGS" 12987fi 12988 12989found="no" 12990 12991 if test $found = "no" ; then 12992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12994 fi 12995 12996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12998 fi 12999 13000 CFLAGS="$CFLAGS -Wformat=2" 13001 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13003$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13004 cacheid=xorg_cv_cc_flag__Wformat_2 13005 if eval \${$cacheid+:} false; then : 13006 $as_echo_n "(cached) " >&6 13007else 13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13009/* end confdefs.h. */ 13010int i; 13011int 13012main () 13013{ 13014 13015 ; 13016 return 0; 13017} 13018_ACEOF 13019if ac_fn_c_try_link "$LINENO"; then : 13020 eval $cacheid=yes 13021else 13022 eval $cacheid=no 13023fi 13024rm -f core conftest.err conftest.$ac_objext \ 13025 conftest$ac_exeext conftest.$ac_ext 13026fi 13027 13028 13029 CFLAGS="$xorg_testset_save_CFLAGS" 13030 13031 eval supported=\$$cacheid 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13033$as_echo "$supported" >&6; } 13034 if test "$supported" = "yes" ; then 13035 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13036 found="yes" 13037 fi 13038 fi 13039 13040 if test $found = "no" ; then 13041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13043 fi 13044 13045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13047 fi 13048 13049 CFLAGS="$CFLAGS -Wformat" 13050 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13052$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13053 cacheid=xorg_cv_cc_flag__Wformat 13054 if eval \${$cacheid+:} false; then : 13055 $as_echo_n "(cached) " >&6 13056else 13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13058/* end confdefs.h. */ 13059int i; 13060int 13061main () 13062{ 13063 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068if ac_fn_c_try_link "$LINENO"; then : 13069 eval $cacheid=yes 13070else 13071 eval $cacheid=no 13072fi 13073rm -f core conftest.err conftest.$ac_objext \ 13074 conftest$ac_exeext conftest.$ac_ext 13075fi 13076 13077 13078 CFLAGS="$xorg_testset_save_CFLAGS" 13079 13080 eval supported=\$$cacheid 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13082$as_echo "$supported" >&6; } 13083 if test "$supported" = "yes" ; then 13084 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13085 found="yes" 13086 fi 13087 fi 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105xorg_testset_save_CFLAGS="$CFLAGS" 13106 13107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13112 $as_echo_n "(cached) " >&6 13113else 13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13115/* end confdefs.h. */ 13116int i; 13117_ACEOF 13118if ac_fn_c_try_compile "$LINENO"; then : 13119 xorg_cv_cc_flag_unknown_warning_option=yes 13120else 13121 xorg_cv_cc_flag_unknown_warning_option=no 13122fi 13123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13124fi 13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13128 CFLAGS="$xorg_testset_save_CFLAGS" 13129fi 13130 13131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13134 fi 13135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13139 $as_echo_n "(cached) " >&6 13140else 13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13142/* end confdefs.h. */ 13143int i; 13144_ACEOF 13145if ac_fn_c_try_compile "$LINENO"; then : 13146 xorg_cv_cc_flag_unused_command_line_argument=yes 13147else 13148 xorg_cv_cc_flag_unused_command_line_argument=no 13149fi 13150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13151fi 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13155 CFLAGS="$xorg_testset_save_CFLAGS" 13156fi 13157 13158found="no" 13159 13160 if test $found = "no" ; then 13161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13163 fi 13164 13165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13167 fi 13168 13169 CFLAGS="$CFLAGS -Wstrict-prototypes" 13170 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13172$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13173 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13174 if eval \${$cacheid+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179int i; 13180int 13181main () 13182{ 13183 13184 ; 13185 return 0; 13186} 13187_ACEOF 13188if ac_fn_c_try_link "$LINENO"; then : 13189 eval $cacheid=yes 13190else 13191 eval $cacheid=no 13192fi 13193rm -f core conftest.err conftest.$ac_objext \ 13194 conftest$ac_exeext conftest.$ac_ext 13195fi 13196 13197 13198 CFLAGS="$xorg_testset_save_CFLAGS" 13199 13200 eval supported=\$$cacheid 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13202$as_echo "$supported" >&6; } 13203 if test "$supported" = "yes" ; then 13204 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13205 found="yes" 13206 fi 13207 fi 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223xorg_testset_save_CFLAGS="$CFLAGS" 13224 13225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13230 $as_echo_n "(cached) " >&6 13231else 13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13233/* end confdefs.h. */ 13234int i; 13235_ACEOF 13236if ac_fn_c_try_compile "$LINENO"; then : 13237 xorg_cv_cc_flag_unknown_warning_option=yes 13238else 13239 xorg_cv_cc_flag_unknown_warning_option=no 13240fi 13241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13242fi 13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13246 CFLAGS="$xorg_testset_save_CFLAGS" 13247fi 13248 13249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13252 fi 13253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13257 $as_echo_n "(cached) " >&6 13258else 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260/* end confdefs.h. */ 13261int i; 13262_ACEOF 13263if ac_fn_c_try_compile "$LINENO"; then : 13264 xorg_cv_cc_flag_unused_command_line_argument=yes 13265else 13266 xorg_cv_cc_flag_unused_command_line_argument=no 13267fi 13268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13269fi 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13273 CFLAGS="$xorg_testset_save_CFLAGS" 13274fi 13275 13276found="no" 13277 13278 if test $found = "no" ; then 13279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13281 fi 13282 13283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13285 fi 13286 13287 CFLAGS="$CFLAGS -Wmissing-prototypes" 13288 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13290$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13291 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13292 if eval \${$cacheid+:} false; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13296/* end confdefs.h. */ 13297int i; 13298int 13299main () 13300{ 13301 13302 ; 13303 return 0; 13304} 13305_ACEOF 13306if ac_fn_c_try_link "$LINENO"; then : 13307 eval $cacheid=yes 13308else 13309 eval $cacheid=no 13310fi 13311rm -f core conftest.err conftest.$ac_objext \ 13312 conftest$ac_exeext conftest.$ac_ext 13313fi 13314 13315 13316 CFLAGS="$xorg_testset_save_CFLAGS" 13317 13318 eval supported=\$$cacheid 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13320$as_echo "$supported" >&6; } 13321 if test "$supported" = "yes" ; then 13322 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13323 found="yes" 13324 fi 13325 fi 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341xorg_testset_save_CFLAGS="$CFLAGS" 13342 13343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13348 $as_echo_n "(cached) " >&6 13349else 13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13351/* end confdefs.h. */ 13352int i; 13353_ACEOF 13354if ac_fn_c_try_compile "$LINENO"; then : 13355 xorg_cv_cc_flag_unknown_warning_option=yes 13356else 13357 xorg_cv_cc_flag_unknown_warning_option=no 13358fi 13359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13360fi 13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13364 CFLAGS="$xorg_testset_save_CFLAGS" 13365fi 13366 13367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13370 fi 13371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13375 $as_echo_n "(cached) " >&6 13376else 13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13378/* end confdefs.h. */ 13379int i; 13380_ACEOF 13381if ac_fn_c_try_compile "$LINENO"; then : 13382 xorg_cv_cc_flag_unused_command_line_argument=yes 13383else 13384 xorg_cv_cc_flag_unused_command_line_argument=no 13385fi 13386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13387fi 13388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13391 CFLAGS="$xorg_testset_save_CFLAGS" 13392fi 13393 13394found="no" 13395 13396 if test $found = "no" ; then 13397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13399 fi 13400 13401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13403 fi 13404 13405 CFLAGS="$CFLAGS -Wnested-externs" 13406 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13408$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13409 cacheid=xorg_cv_cc_flag__Wnested_externs 13410 if eval \${$cacheid+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414/* end confdefs.h. */ 13415int i; 13416int 13417main () 13418{ 13419 13420 ; 13421 return 0; 13422} 13423_ACEOF 13424if ac_fn_c_try_link "$LINENO"; then : 13425 eval $cacheid=yes 13426else 13427 eval $cacheid=no 13428fi 13429rm -f core conftest.err conftest.$ac_objext \ 13430 conftest$ac_exeext conftest.$ac_ext 13431fi 13432 13433 13434 CFLAGS="$xorg_testset_save_CFLAGS" 13435 13436 eval supported=\$$cacheid 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13438$as_echo "$supported" >&6; } 13439 if test "$supported" = "yes" ; then 13440 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13441 found="yes" 13442 fi 13443 fi 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459xorg_testset_save_CFLAGS="$CFLAGS" 13460 13461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13466 $as_echo_n "(cached) " >&6 13467else 13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13469/* end confdefs.h. */ 13470int i; 13471_ACEOF 13472if ac_fn_c_try_compile "$LINENO"; then : 13473 xorg_cv_cc_flag_unknown_warning_option=yes 13474else 13475 xorg_cv_cc_flag_unknown_warning_option=no 13476fi 13477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13478fi 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13482 CFLAGS="$xorg_testset_save_CFLAGS" 13483fi 13484 13485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13488 fi 13489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13493 $as_echo_n "(cached) " >&6 13494else 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497int i; 13498_ACEOF 13499if ac_fn_c_try_compile "$LINENO"; then : 13500 xorg_cv_cc_flag_unused_command_line_argument=yes 13501else 13502 xorg_cv_cc_flag_unused_command_line_argument=no 13503fi 13504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13505fi 13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13509 CFLAGS="$xorg_testset_save_CFLAGS" 13510fi 13511 13512found="no" 13513 13514 if test $found = "no" ; then 13515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13517 fi 13518 13519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13521 fi 13522 13523 CFLAGS="$CFLAGS -Wbad-function-cast" 13524 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13526$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13527 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13528 if eval \${$cacheid+:} false; then : 13529 $as_echo_n "(cached) " >&6 13530else 13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13532/* end confdefs.h. */ 13533int i; 13534int 13535main () 13536{ 13537 13538 ; 13539 return 0; 13540} 13541_ACEOF 13542if ac_fn_c_try_link "$LINENO"; then : 13543 eval $cacheid=yes 13544else 13545 eval $cacheid=no 13546fi 13547rm -f core conftest.err conftest.$ac_objext \ 13548 conftest$ac_exeext conftest.$ac_ext 13549fi 13550 13551 13552 CFLAGS="$xorg_testset_save_CFLAGS" 13553 13554 eval supported=\$$cacheid 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13556$as_echo "$supported" >&6; } 13557 if test "$supported" = "yes" ; then 13558 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13559 found="yes" 13560 fi 13561 fi 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577xorg_testset_save_CFLAGS="$CFLAGS" 13578 13579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13584 $as_echo_n "(cached) " >&6 13585else 13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13587/* end confdefs.h. */ 13588int i; 13589_ACEOF 13590if ac_fn_c_try_compile "$LINENO"; then : 13591 xorg_cv_cc_flag_unknown_warning_option=yes 13592else 13593 xorg_cv_cc_flag_unknown_warning_option=no 13594fi 13595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13596fi 13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13600 CFLAGS="$xorg_testset_save_CFLAGS" 13601fi 13602 13603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13606 fi 13607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13611 $as_echo_n "(cached) " >&6 13612else 13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13614/* end confdefs.h. */ 13615int i; 13616_ACEOF 13617if ac_fn_c_try_compile "$LINENO"; then : 13618 xorg_cv_cc_flag_unused_command_line_argument=yes 13619else 13620 xorg_cv_cc_flag_unused_command_line_argument=no 13621fi 13622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13623fi 13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13627 CFLAGS="$xorg_testset_save_CFLAGS" 13628fi 13629 13630found="no" 13631 13632 if test $found = "no" ; then 13633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13635 fi 13636 13637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13639 fi 13640 13641 CFLAGS="$CFLAGS -Wold-style-definition" 13642 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13644$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13645 cacheid=xorg_cv_cc_flag__Wold_style_definition 13646 if eval \${$cacheid+:} false; then : 13647 $as_echo_n "(cached) " >&6 13648else 13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13650/* end confdefs.h. */ 13651int i; 13652int 13653main () 13654{ 13655 13656 ; 13657 return 0; 13658} 13659_ACEOF 13660if ac_fn_c_try_link "$LINENO"; then : 13661 eval $cacheid=yes 13662else 13663 eval $cacheid=no 13664fi 13665rm -f core conftest.err conftest.$ac_objext \ 13666 conftest$ac_exeext conftest.$ac_ext 13667fi 13668 13669 13670 CFLAGS="$xorg_testset_save_CFLAGS" 13671 13672 eval supported=\$$cacheid 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13674$as_echo "$supported" >&6; } 13675 if test "$supported" = "yes" ; then 13676 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13677 found="yes" 13678 fi 13679 fi 13680 13681 if test $found = "no" ; then 13682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13684 fi 13685 13686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13688 fi 13689 13690 CFLAGS="$CFLAGS -fd" 13691 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13693$as_echo_n "checking if $CC supports -fd... " >&6; } 13694 cacheid=xorg_cv_cc_flag__fd 13695 if eval \${$cacheid+:} false; then : 13696 $as_echo_n "(cached) " >&6 13697else 13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13699/* end confdefs.h. */ 13700int i; 13701int 13702main () 13703{ 13704 13705 ; 13706 return 0; 13707} 13708_ACEOF 13709if ac_fn_c_try_link "$LINENO"; then : 13710 eval $cacheid=yes 13711else 13712 eval $cacheid=no 13713fi 13714rm -f core conftest.err conftest.$ac_objext \ 13715 conftest$ac_exeext conftest.$ac_ext 13716fi 13717 13718 13719 CFLAGS="$xorg_testset_save_CFLAGS" 13720 13721 eval supported=\$$cacheid 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13723$as_echo "$supported" >&6; } 13724 if test "$supported" = "yes" ; then 13725 BASE_CFLAGS="$BASE_CFLAGS -fd" 13726 found="yes" 13727 fi 13728 fi 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744xorg_testset_save_CFLAGS="$CFLAGS" 13745 13746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13751 $as_echo_n "(cached) " >&6 13752else 13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13754/* end confdefs.h. */ 13755int i; 13756_ACEOF 13757if ac_fn_c_try_compile "$LINENO"; then : 13758 xorg_cv_cc_flag_unknown_warning_option=yes 13759else 13760 xorg_cv_cc_flag_unknown_warning_option=no 13761fi 13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13763fi 13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13767 CFLAGS="$xorg_testset_save_CFLAGS" 13768fi 13769 13770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13773 fi 13774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13778 $as_echo_n "(cached) " >&6 13779else 13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13781/* end confdefs.h. */ 13782int i; 13783_ACEOF 13784if ac_fn_c_try_compile "$LINENO"; then : 13785 xorg_cv_cc_flag_unused_command_line_argument=yes 13786else 13787 xorg_cv_cc_flag_unused_command_line_argument=no 13788fi 13789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13790fi 13791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13794 CFLAGS="$xorg_testset_save_CFLAGS" 13795fi 13796 13797found="no" 13798 13799 if test $found = "no" ; then 13800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13802 fi 13803 13804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13806 fi 13807 13808 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13809 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13811$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13812 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13813 if eval \${$cacheid+:} false; then : 13814 $as_echo_n "(cached) " >&6 13815else 13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13817/* end confdefs.h. */ 13818int i; 13819int 13820main () 13821{ 13822 13823 ; 13824 return 0; 13825} 13826_ACEOF 13827if ac_fn_c_try_link "$LINENO"; then : 13828 eval $cacheid=yes 13829else 13830 eval $cacheid=no 13831fi 13832rm -f core conftest.err conftest.$ac_objext \ 13833 conftest$ac_exeext conftest.$ac_ext 13834fi 13835 13836 13837 CFLAGS="$xorg_testset_save_CFLAGS" 13838 13839 eval supported=\$$cacheid 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13841$as_echo "$supported" >&6; } 13842 if test "$supported" = "yes" ; then 13843 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13844 found="yes" 13845 fi 13846 fi 13847 13848 13849 13850 13851 13852# This chunk adds additional warnings that could catch undesired effects. 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866xorg_testset_save_CFLAGS="$CFLAGS" 13867 13868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13873 $as_echo_n "(cached) " >&6 13874else 13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13876/* end confdefs.h. */ 13877int i; 13878_ACEOF 13879if ac_fn_c_try_compile "$LINENO"; then : 13880 xorg_cv_cc_flag_unknown_warning_option=yes 13881else 13882 xorg_cv_cc_flag_unknown_warning_option=no 13883fi 13884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13885fi 13886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13889 CFLAGS="$xorg_testset_save_CFLAGS" 13890fi 13891 13892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13895 fi 13896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13900 $as_echo_n "(cached) " >&6 13901else 13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13903/* end confdefs.h. */ 13904int i; 13905_ACEOF 13906if ac_fn_c_try_compile "$LINENO"; then : 13907 xorg_cv_cc_flag_unused_command_line_argument=yes 13908else 13909 xorg_cv_cc_flag_unused_command_line_argument=no 13910fi 13911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13912fi 13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13916 CFLAGS="$xorg_testset_save_CFLAGS" 13917fi 13918 13919found="no" 13920 13921 if test $found = "no" ; then 13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13924 fi 13925 13926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13928 fi 13929 13930 CFLAGS="$CFLAGS -Wunused" 13931 13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13933$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13934 cacheid=xorg_cv_cc_flag__Wunused 13935 if eval \${$cacheid+:} false; then : 13936 $as_echo_n "(cached) " >&6 13937else 13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13939/* end confdefs.h. */ 13940int i; 13941int 13942main () 13943{ 13944 13945 ; 13946 return 0; 13947} 13948_ACEOF 13949if ac_fn_c_try_link "$LINENO"; then : 13950 eval $cacheid=yes 13951else 13952 eval $cacheid=no 13953fi 13954rm -f core conftest.err conftest.$ac_objext \ 13955 conftest$ac_exeext conftest.$ac_ext 13956fi 13957 13958 13959 CFLAGS="$xorg_testset_save_CFLAGS" 13960 13961 eval supported=\$$cacheid 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13963$as_echo "$supported" >&6; } 13964 if test "$supported" = "yes" ; then 13965 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13966 found="yes" 13967 fi 13968 fi 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984xorg_testset_save_CFLAGS="$CFLAGS" 13985 13986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13991 $as_echo_n "(cached) " >&6 13992else 13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13994/* end confdefs.h. */ 13995int i; 13996_ACEOF 13997if ac_fn_c_try_compile "$LINENO"; then : 13998 xorg_cv_cc_flag_unknown_warning_option=yes 13999else 14000 xorg_cv_cc_flag_unknown_warning_option=no 14001fi 14002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14003fi 14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14007 CFLAGS="$xorg_testset_save_CFLAGS" 14008fi 14009 14010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14013 fi 14014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14018 $as_echo_n "(cached) " >&6 14019else 14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021/* end confdefs.h. */ 14022int i; 14023_ACEOF 14024if ac_fn_c_try_compile "$LINENO"; then : 14025 xorg_cv_cc_flag_unused_command_line_argument=yes 14026else 14027 xorg_cv_cc_flag_unused_command_line_argument=no 14028fi 14029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14030fi 14031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14034 CFLAGS="$xorg_testset_save_CFLAGS" 14035fi 14036 14037found="no" 14038 14039 if test $found = "no" ; then 14040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14042 fi 14043 14044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14046 fi 14047 14048 CFLAGS="$CFLAGS -Wuninitialized" 14049 14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14051$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14052 cacheid=xorg_cv_cc_flag__Wuninitialized 14053 if eval \${$cacheid+:} false; then : 14054 $as_echo_n "(cached) " >&6 14055else 14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14057/* end confdefs.h. */ 14058int i; 14059int 14060main () 14061{ 14062 14063 ; 14064 return 0; 14065} 14066_ACEOF 14067if ac_fn_c_try_link "$LINENO"; then : 14068 eval $cacheid=yes 14069else 14070 eval $cacheid=no 14071fi 14072rm -f core conftest.err conftest.$ac_objext \ 14073 conftest$ac_exeext conftest.$ac_ext 14074fi 14075 14076 14077 CFLAGS="$xorg_testset_save_CFLAGS" 14078 14079 eval supported=\$$cacheid 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14081$as_echo "$supported" >&6; } 14082 if test "$supported" = "yes" ; then 14083 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14084 found="yes" 14085 fi 14086 fi 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102xorg_testset_save_CFLAGS="$CFLAGS" 14103 14104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14112/* end confdefs.h. */ 14113int i; 14114_ACEOF 14115if ac_fn_c_try_compile "$LINENO"; then : 14116 xorg_cv_cc_flag_unknown_warning_option=yes 14117else 14118 xorg_cv_cc_flag_unknown_warning_option=no 14119fi 14120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14121fi 14122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14125 CFLAGS="$xorg_testset_save_CFLAGS" 14126fi 14127 14128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14131 fi 14132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14136 $as_echo_n "(cached) " >&6 14137else 14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14139/* end confdefs.h. */ 14140int i; 14141_ACEOF 14142if ac_fn_c_try_compile "$LINENO"; then : 14143 xorg_cv_cc_flag_unused_command_line_argument=yes 14144else 14145 xorg_cv_cc_flag_unused_command_line_argument=no 14146fi 14147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14148fi 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14152 CFLAGS="$xorg_testset_save_CFLAGS" 14153fi 14154 14155found="no" 14156 14157 if test $found = "no" ; then 14158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14160 fi 14161 14162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14164 fi 14165 14166 CFLAGS="$CFLAGS -Wshadow" 14167 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14169$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14170 cacheid=xorg_cv_cc_flag__Wshadow 14171 if eval \${$cacheid+:} false; then : 14172 $as_echo_n "(cached) " >&6 14173else 14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176int i; 14177int 14178main () 14179{ 14180 14181 ; 14182 return 0; 14183} 14184_ACEOF 14185if ac_fn_c_try_link "$LINENO"; then : 14186 eval $cacheid=yes 14187else 14188 eval $cacheid=no 14189fi 14190rm -f core conftest.err conftest.$ac_objext \ 14191 conftest$ac_exeext conftest.$ac_ext 14192fi 14193 14194 14195 CFLAGS="$xorg_testset_save_CFLAGS" 14196 14197 eval supported=\$$cacheid 14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14199$as_echo "$supported" >&6; } 14200 if test "$supported" = "yes" ; then 14201 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14202 found="yes" 14203 fi 14204 fi 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220xorg_testset_save_CFLAGS="$CFLAGS" 14221 14222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14227 $as_echo_n "(cached) " >&6 14228else 14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231int i; 14232_ACEOF 14233if ac_fn_c_try_compile "$LINENO"; then : 14234 xorg_cv_cc_flag_unknown_warning_option=yes 14235else 14236 xorg_cv_cc_flag_unknown_warning_option=no 14237fi 14238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14239fi 14240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14243 CFLAGS="$xorg_testset_save_CFLAGS" 14244fi 14245 14246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14249 fi 14250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14254 $as_echo_n "(cached) " >&6 14255else 14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14257/* end confdefs.h. */ 14258int i; 14259_ACEOF 14260if ac_fn_c_try_compile "$LINENO"; then : 14261 xorg_cv_cc_flag_unused_command_line_argument=yes 14262else 14263 xorg_cv_cc_flag_unused_command_line_argument=no 14264fi 14265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14266fi 14267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14270 CFLAGS="$xorg_testset_save_CFLAGS" 14271fi 14272 14273found="no" 14274 14275 if test $found = "no" ; then 14276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14278 fi 14279 14280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14282 fi 14283 14284 CFLAGS="$CFLAGS -Wmissing-noreturn" 14285 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14287$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14288 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14289 if eval \${$cacheid+:} false; then : 14290 $as_echo_n "(cached) " >&6 14291else 14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14293/* end confdefs.h. */ 14294int i; 14295int 14296main () 14297{ 14298 14299 ; 14300 return 0; 14301} 14302_ACEOF 14303if ac_fn_c_try_link "$LINENO"; then : 14304 eval $cacheid=yes 14305else 14306 eval $cacheid=no 14307fi 14308rm -f core conftest.err conftest.$ac_objext \ 14309 conftest$ac_exeext conftest.$ac_ext 14310fi 14311 14312 14313 CFLAGS="$xorg_testset_save_CFLAGS" 14314 14315 eval supported=\$$cacheid 14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14317$as_echo "$supported" >&6; } 14318 if test "$supported" = "yes" ; then 14319 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14320 found="yes" 14321 fi 14322 fi 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338xorg_testset_save_CFLAGS="$CFLAGS" 14339 14340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14345 $as_echo_n "(cached) " >&6 14346else 14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14348/* end confdefs.h. */ 14349int i; 14350_ACEOF 14351if ac_fn_c_try_compile "$LINENO"; then : 14352 xorg_cv_cc_flag_unknown_warning_option=yes 14353else 14354 xorg_cv_cc_flag_unknown_warning_option=no 14355fi 14356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14357fi 14358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14361 CFLAGS="$xorg_testset_save_CFLAGS" 14362fi 14363 14364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14367 fi 14368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14372 $as_echo_n "(cached) " >&6 14373else 14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14375/* end confdefs.h. */ 14376int i; 14377_ACEOF 14378if ac_fn_c_try_compile "$LINENO"; then : 14379 xorg_cv_cc_flag_unused_command_line_argument=yes 14380else 14381 xorg_cv_cc_flag_unused_command_line_argument=no 14382fi 14383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14384fi 14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14388 CFLAGS="$xorg_testset_save_CFLAGS" 14389fi 14390 14391found="no" 14392 14393 if test $found = "no" ; then 14394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14396 fi 14397 14398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14400 fi 14401 14402 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14403 14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14405$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14406 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14407 if eval \${$cacheid+:} false; then : 14408 $as_echo_n "(cached) " >&6 14409else 14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14411/* end confdefs.h. */ 14412int i; 14413int 14414main () 14415{ 14416 14417 ; 14418 return 0; 14419} 14420_ACEOF 14421if ac_fn_c_try_link "$LINENO"; then : 14422 eval $cacheid=yes 14423else 14424 eval $cacheid=no 14425fi 14426rm -f core conftest.err conftest.$ac_objext \ 14427 conftest$ac_exeext conftest.$ac_ext 14428fi 14429 14430 14431 CFLAGS="$xorg_testset_save_CFLAGS" 14432 14433 eval supported=\$$cacheid 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14435$as_echo "$supported" >&6; } 14436 if test "$supported" = "yes" ; then 14437 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14438 found="yes" 14439 fi 14440 fi 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456xorg_testset_save_CFLAGS="$CFLAGS" 14457 14458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14463 $as_echo_n "(cached) " >&6 14464else 14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14466/* end confdefs.h. */ 14467int i; 14468_ACEOF 14469if ac_fn_c_try_compile "$LINENO"; then : 14470 xorg_cv_cc_flag_unknown_warning_option=yes 14471else 14472 xorg_cv_cc_flag_unknown_warning_option=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14475fi 14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480fi 14481 14482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14485 fi 14486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14490 $as_echo_n "(cached) " >&6 14491else 14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14493/* end confdefs.h. */ 14494int i; 14495_ACEOF 14496if ac_fn_c_try_compile "$LINENO"; then : 14497 xorg_cv_cc_flag_unused_command_line_argument=yes 14498else 14499 xorg_cv_cc_flag_unused_command_line_argument=no 14500fi 14501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14502fi 14503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14506 CFLAGS="$xorg_testset_save_CFLAGS" 14507fi 14508 14509found="no" 14510 14511 if test $found = "no" ; then 14512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14514 fi 14515 14516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14518 fi 14519 14520 CFLAGS="$CFLAGS -Wredundant-decls" 14521 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14523$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14524 cacheid=xorg_cv_cc_flag__Wredundant_decls 14525 if eval \${$cacheid+:} false; then : 14526 $as_echo_n "(cached) " >&6 14527else 14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14529/* end confdefs.h. */ 14530int i; 14531int 14532main () 14533{ 14534 14535 ; 14536 return 0; 14537} 14538_ACEOF 14539if ac_fn_c_try_link "$LINENO"; then : 14540 eval $cacheid=yes 14541else 14542 eval $cacheid=no 14543fi 14544rm -f core conftest.err conftest.$ac_objext \ 14545 conftest$ac_exeext conftest.$ac_ext 14546fi 14547 14548 14549 CFLAGS="$xorg_testset_save_CFLAGS" 14550 14551 eval supported=\$$cacheid 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14553$as_echo "$supported" >&6; } 14554 if test "$supported" = "yes" ; then 14555 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14556 found="yes" 14557 fi 14558 fi 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574xorg_testset_save_CFLAGS="$CFLAGS" 14575 14576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14581 $as_echo_n "(cached) " >&6 14582else 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585int i; 14586_ACEOF 14587if ac_fn_c_try_compile "$LINENO"; then : 14588 xorg_cv_cc_flag_unknown_warning_option=yes 14589else 14590 xorg_cv_cc_flag_unknown_warning_option=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14593fi 14594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598fi 14599 14600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14603 fi 14604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14608 $as_echo_n "(cached) " >&6 14609else 14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14611/* end confdefs.h. */ 14612int i; 14613_ACEOF 14614if ac_fn_c_try_compile "$LINENO"; then : 14615 xorg_cv_cc_flag_unused_command_line_argument=yes 14616else 14617 xorg_cv_cc_flag_unused_command_line_argument=no 14618fi 14619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14620fi 14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14624 CFLAGS="$xorg_testset_save_CFLAGS" 14625fi 14626 14627found="no" 14628 14629 if test $found = "no" ; then 14630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14632 fi 14633 14634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14636 fi 14637 14638 CFLAGS="$CFLAGS -Wlogical-op" 14639 14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14641$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14642 cacheid=xorg_cv_cc_flag__Wlogical_op 14643 if eval \${$cacheid+:} false; then : 14644 $as_echo_n "(cached) " >&6 14645else 14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14647/* end confdefs.h. */ 14648int i; 14649int 14650main () 14651{ 14652 14653 ; 14654 return 0; 14655} 14656_ACEOF 14657if ac_fn_c_try_link "$LINENO"; then : 14658 eval $cacheid=yes 14659else 14660 eval $cacheid=no 14661fi 14662rm -f core conftest.err conftest.$ac_objext \ 14663 conftest$ac_exeext conftest.$ac_ext 14664fi 14665 14666 14667 CFLAGS="$xorg_testset_save_CFLAGS" 14668 14669 eval supported=\$$cacheid 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14671$as_echo "$supported" >&6; } 14672 if test "$supported" = "yes" ; then 14673 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14674 found="yes" 14675 fi 14676 fi 14677 14678 14679 14680# These are currently disabled because they are noisy. They will be enabled 14681# in the future once the codebase is sufficiently modernized to silence 14682# them. For now, I don't want them to drown out the other warnings. 14683# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14684# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14685# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14686 14687# Turn some warnings into errors, so we don't accidently get successful builds 14688# when there are problems that should be fixed. 14689 14690if test "x$SELECTIVE_WERROR" = "xyes" ; then 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704xorg_testset_save_CFLAGS="$CFLAGS" 14705 14706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14711 $as_echo_n "(cached) " >&6 14712else 14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714/* end confdefs.h. */ 14715int i; 14716_ACEOF 14717if ac_fn_c_try_compile "$LINENO"; then : 14718 xorg_cv_cc_flag_unknown_warning_option=yes 14719else 14720 xorg_cv_cc_flag_unknown_warning_option=no 14721fi 14722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14723fi 14724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14727 CFLAGS="$xorg_testset_save_CFLAGS" 14728fi 14729 14730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14733 fi 14734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14741/* end confdefs.h. */ 14742int i; 14743_ACEOF 14744if ac_fn_c_try_compile "$LINENO"; then : 14745 xorg_cv_cc_flag_unused_command_line_argument=yes 14746else 14747 xorg_cv_cc_flag_unused_command_line_argument=no 14748fi 14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14750fi 14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14754 CFLAGS="$xorg_testset_save_CFLAGS" 14755fi 14756 14757found="no" 14758 14759 if test $found = "no" ; then 14760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14762 fi 14763 14764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14766 fi 14767 14768 CFLAGS="$CFLAGS -Werror=implicit" 14769 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14771$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14772 cacheid=xorg_cv_cc_flag__Werror_implicit 14773 if eval \${$cacheid+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778int i; 14779int 14780main () 14781{ 14782 14783 ; 14784 return 0; 14785} 14786_ACEOF 14787if ac_fn_c_try_link "$LINENO"; then : 14788 eval $cacheid=yes 14789else 14790 eval $cacheid=no 14791fi 14792rm -f core conftest.err conftest.$ac_objext \ 14793 conftest$ac_exeext conftest.$ac_ext 14794fi 14795 14796 14797 CFLAGS="$xorg_testset_save_CFLAGS" 14798 14799 eval supported=\$$cacheid 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14801$as_echo "$supported" >&6; } 14802 if test "$supported" = "yes" ; then 14803 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14804 found="yes" 14805 fi 14806 fi 14807 14808 if test $found = "no" ; then 14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14811 fi 14812 14813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14815 fi 14816 14817 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14818 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14820$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14821 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14822 if eval \${$cacheid+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826/* end confdefs.h. */ 14827int i; 14828int 14829main () 14830{ 14831 14832 ; 14833 return 0; 14834} 14835_ACEOF 14836if ac_fn_c_try_link "$LINENO"; then : 14837 eval $cacheid=yes 14838else 14839 eval $cacheid=no 14840fi 14841rm -f core conftest.err conftest.$ac_objext \ 14842 conftest$ac_exeext conftest.$ac_ext 14843fi 14844 14845 14846 CFLAGS="$xorg_testset_save_CFLAGS" 14847 14848 eval supported=\$$cacheid 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14850$as_echo "$supported" >&6; } 14851 if test "$supported" = "yes" ; then 14852 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14853 found="yes" 14854 fi 14855 fi 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871xorg_testset_save_CFLAGS="$CFLAGS" 14872 14873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14878 $as_echo_n "(cached) " >&6 14879else 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881/* end confdefs.h. */ 14882int i; 14883_ACEOF 14884if ac_fn_c_try_compile "$LINENO"; then : 14885 xorg_cv_cc_flag_unknown_warning_option=yes 14886else 14887 xorg_cv_cc_flag_unknown_warning_option=no 14888fi 14889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14890fi 14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14894 CFLAGS="$xorg_testset_save_CFLAGS" 14895fi 14896 14897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14900 fi 14901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14905 $as_echo_n "(cached) " >&6 14906else 14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14908/* end confdefs.h. */ 14909int i; 14910_ACEOF 14911if ac_fn_c_try_compile "$LINENO"; then : 14912 xorg_cv_cc_flag_unused_command_line_argument=yes 14913else 14914 xorg_cv_cc_flag_unused_command_line_argument=no 14915fi 14916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14917fi 14918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14921 CFLAGS="$xorg_testset_save_CFLAGS" 14922fi 14923 14924found="no" 14925 14926 if test $found = "no" ; then 14927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14929 fi 14930 14931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14933 fi 14934 14935 CFLAGS="$CFLAGS -Werror=nonnull" 14936 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14938$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14939 cacheid=xorg_cv_cc_flag__Werror_nonnull 14940 if eval \${$cacheid+:} false; then : 14941 $as_echo_n "(cached) " >&6 14942else 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945int i; 14946int 14947main () 14948{ 14949 14950 ; 14951 return 0; 14952} 14953_ACEOF 14954if ac_fn_c_try_link "$LINENO"; then : 14955 eval $cacheid=yes 14956else 14957 eval $cacheid=no 14958fi 14959rm -f core conftest.err conftest.$ac_objext \ 14960 conftest$ac_exeext conftest.$ac_ext 14961fi 14962 14963 14964 CFLAGS="$xorg_testset_save_CFLAGS" 14965 14966 eval supported=\$$cacheid 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14968$as_echo "$supported" >&6; } 14969 if test "$supported" = "yes" ; then 14970 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14971 found="yes" 14972 fi 14973 fi 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989xorg_testset_save_CFLAGS="$CFLAGS" 14990 14991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14996 $as_echo_n "(cached) " >&6 14997else 14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14999/* end confdefs.h. */ 15000int i; 15001_ACEOF 15002if ac_fn_c_try_compile "$LINENO"; then : 15003 xorg_cv_cc_flag_unknown_warning_option=yes 15004else 15005 xorg_cv_cc_flag_unknown_warning_option=no 15006fi 15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15008fi 15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15012 CFLAGS="$xorg_testset_save_CFLAGS" 15013fi 15014 15015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15018 fi 15019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15023 $as_echo_n "(cached) " >&6 15024else 15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15026/* end confdefs.h. */ 15027int i; 15028_ACEOF 15029if ac_fn_c_try_compile "$LINENO"; then : 15030 xorg_cv_cc_flag_unused_command_line_argument=yes 15031else 15032 xorg_cv_cc_flag_unused_command_line_argument=no 15033fi 15034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15035fi 15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15039 CFLAGS="$xorg_testset_save_CFLAGS" 15040fi 15041 15042found="no" 15043 15044 if test $found = "no" ; then 15045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15047 fi 15048 15049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15051 fi 15052 15053 CFLAGS="$CFLAGS -Werror=init-self" 15054 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15056$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15057 cacheid=xorg_cv_cc_flag__Werror_init_self 15058 if eval \${$cacheid+:} false; then : 15059 $as_echo_n "(cached) " >&6 15060else 15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15062/* end confdefs.h. */ 15063int i; 15064int 15065main () 15066{ 15067 15068 ; 15069 return 0; 15070} 15071_ACEOF 15072if ac_fn_c_try_link "$LINENO"; then : 15073 eval $cacheid=yes 15074else 15075 eval $cacheid=no 15076fi 15077rm -f core conftest.err conftest.$ac_objext \ 15078 conftest$ac_exeext conftest.$ac_ext 15079fi 15080 15081 15082 CFLAGS="$xorg_testset_save_CFLAGS" 15083 15084 eval supported=\$$cacheid 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15086$as_echo "$supported" >&6; } 15087 if test "$supported" = "yes" ; then 15088 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15089 found="yes" 15090 fi 15091 fi 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107xorg_testset_save_CFLAGS="$CFLAGS" 15108 15109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15114 $as_echo_n "(cached) " >&6 15115else 15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15117/* end confdefs.h. */ 15118int i; 15119_ACEOF 15120if ac_fn_c_try_compile "$LINENO"; then : 15121 xorg_cv_cc_flag_unknown_warning_option=yes 15122else 15123 xorg_cv_cc_flag_unknown_warning_option=no 15124fi 15125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15126fi 15127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15130 CFLAGS="$xorg_testset_save_CFLAGS" 15131fi 15132 15133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15136 fi 15137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15141 $as_echo_n "(cached) " >&6 15142else 15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15144/* end confdefs.h. */ 15145int i; 15146_ACEOF 15147if ac_fn_c_try_compile "$LINENO"; then : 15148 xorg_cv_cc_flag_unused_command_line_argument=yes 15149else 15150 xorg_cv_cc_flag_unused_command_line_argument=no 15151fi 15152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15153fi 15154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15157 CFLAGS="$xorg_testset_save_CFLAGS" 15158fi 15159 15160found="no" 15161 15162 if test $found = "no" ; then 15163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15165 fi 15166 15167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15169 fi 15170 15171 CFLAGS="$CFLAGS -Werror=main" 15172 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15174$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15175 cacheid=xorg_cv_cc_flag__Werror_main 15176 if eval \${$cacheid+:} false; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15180/* end confdefs.h. */ 15181int i; 15182int 15183main () 15184{ 15185 15186 ; 15187 return 0; 15188} 15189_ACEOF 15190if ac_fn_c_try_link "$LINENO"; then : 15191 eval $cacheid=yes 15192else 15193 eval $cacheid=no 15194fi 15195rm -f core conftest.err conftest.$ac_objext \ 15196 conftest$ac_exeext conftest.$ac_ext 15197fi 15198 15199 15200 CFLAGS="$xorg_testset_save_CFLAGS" 15201 15202 eval supported=\$$cacheid 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15204$as_echo "$supported" >&6; } 15205 if test "$supported" = "yes" ; then 15206 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15207 found="yes" 15208 fi 15209 fi 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225xorg_testset_save_CFLAGS="$CFLAGS" 15226 15227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15232 $as_echo_n "(cached) " >&6 15233else 15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15235/* end confdefs.h. */ 15236int i; 15237_ACEOF 15238if ac_fn_c_try_compile "$LINENO"; then : 15239 xorg_cv_cc_flag_unknown_warning_option=yes 15240else 15241 xorg_cv_cc_flag_unknown_warning_option=no 15242fi 15243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15244fi 15245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15248 CFLAGS="$xorg_testset_save_CFLAGS" 15249fi 15250 15251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15254 fi 15255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15259 $as_echo_n "(cached) " >&6 15260else 15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15262/* end confdefs.h. */ 15263int i; 15264_ACEOF 15265if ac_fn_c_try_compile "$LINENO"; then : 15266 xorg_cv_cc_flag_unused_command_line_argument=yes 15267else 15268 xorg_cv_cc_flag_unused_command_line_argument=no 15269fi 15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15271fi 15272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15275 CFLAGS="$xorg_testset_save_CFLAGS" 15276fi 15277 15278found="no" 15279 15280 if test $found = "no" ; then 15281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15283 fi 15284 15285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15287 fi 15288 15289 CFLAGS="$CFLAGS -Werror=missing-braces" 15290 15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15292$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15293 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15294 if eval \${$cacheid+:} false; then : 15295 $as_echo_n "(cached) " >&6 15296else 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299int i; 15300int 15301main () 15302{ 15303 15304 ; 15305 return 0; 15306} 15307_ACEOF 15308if ac_fn_c_try_link "$LINENO"; then : 15309 eval $cacheid=yes 15310else 15311 eval $cacheid=no 15312fi 15313rm -f core conftest.err conftest.$ac_objext \ 15314 conftest$ac_exeext conftest.$ac_ext 15315fi 15316 15317 15318 CFLAGS="$xorg_testset_save_CFLAGS" 15319 15320 eval supported=\$$cacheid 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15322$as_echo "$supported" >&6; } 15323 if test "$supported" = "yes" ; then 15324 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15325 found="yes" 15326 fi 15327 fi 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343xorg_testset_save_CFLAGS="$CFLAGS" 15344 15345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15350 $as_echo_n "(cached) " >&6 15351else 15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15353/* end confdefs.h. */ 15354int i; 15355_ACEOF 15356if ac_fn_c_try_compile "$LINENO"; then : 15357 xorg_cv_cc_flag_unknown_warning_option=yes 15358else 15359 xorg_cv_cc_flag_unknown_warning_option=no 15360fi 15361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15362fi 15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15366 CFLAGS="$xorg_testset_save_CFLAGS" 15367fi 15368 15369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15372 fi 15373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15377 $as_echo_n "(cached) " >&6 15378else 15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15380/* end confdefs.h. */ 15381int i; 15382_ACEOF 15383if ac_fn_c_try_compile "$LINENO"; then : 15384 xorg_cv_cc_flag_unused_command_line_argument=yes 15385else 15386 xorg_cv_cc_flag_unused_command_line_argument=no 15387fi 15388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15389fi 15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15393 CFLAGS="$xorg_testset_save_CFLAGS" 15394fi 15395 15396found="no" 15397 15398 if test $found = "no" ; then 15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15401 fi 15402 15403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15405 fi 15406 15407 CFLAGS="$CFLAGS -Werror=sequence-point" 15408 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15410$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15411 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15412 if eval \${$cacheid+:} false; then : 15413 $as_echo_n "(cached) " >&6 15414else 15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417int i; 15418int 15419main () 15420{ 15421 15422 ; 15423 return 0; 15424} 15425_ACEOF 15426if ac_fn_c_try_link "$LINENO"; then : 15427 eval $cacheid=yes 15428else 15429 eval $cacheid=no 15430fi 15431rm -f core conftest.err conftest.$ac_objext \ 15432 conftest$ac_exeext conftest.$ac_ext 15433fi 15434 15435 15436 CFLAGS="$xorg_testset_save_CFLAGS" 15437 15438 eval supported=\$$cacheid 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15440$as_echo "$supported" >&6; } 15441 if test "$supported" = "yes" ; then 15442 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15443 found="yes" 15444 fi 15445 fi 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461xorg_testset_save_CFLAGS="$CFLAGS" 15462 15463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15468 $as_echo_n "(cached) " >&6 15469else 15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15471/* end confdefs.h. */ 15472int i; 15473_ACEOF 15474if ac_fn_c_try_compile "$LINENO"; then : 15475 xorg_cv_cc_flag_unknown_warning_option=yes 15476else 15477 xorg_cv_cc_flag_unknown_warning_option=no 15478fi 15479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15480fi 15481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15484 CFLAGS="$xorg_testset_save_CFLAGS" 15485fi 15486 15487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15490 fi 15491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15495 $as_echo_n "(cached) " >&6 15496else 15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15498/* end confdefs.h. */ 15499int i; 15500_ACEOF 15501if ac_fn_c_try_compile "$LINENO"; then : 15502 xorg_cv_cc_flag_unused_command_line_argument=yes 15503else 15504 xorg_cv_cc_flag_unused_command_line_argument=no 15505fi 15506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15507fi 15508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15511 CFLAGS="$xorg_testset_save_CFLAGS" 15512fi 15513 15514found="no" 15515 15516 if test $found = "no" ; then 15517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15519 fi 15520 15521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15523 fi 15524 15525 CFLAGS="$CFLAGS -Werror=return-type" 15526 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15528$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15529 cacheid=xorg_cv_cc_flag__Werror_return_type 15530 if eval \${$cacheid+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535int i; 15536int 15537main () 15538{ 15539 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544if ac_fn_c_try_link "$LINENO"; then : 15545 eval $cacheid=yes 15546else 15547 eval $cacheid=no 15548fi 15549rm -f core conftest.err conftest.$ac_objext \ 15550 conftest$ac_exeext conftest.$ac_ext 15551fi 15552 15553 15554 CFLAGS="$xorg_testset_save_CFLAGS" 15555 15556 eval supported=\$$cacheid 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15558$as_echo "$supported" >&6; } 15559 if test "$supported" = "yes" ; then 15560 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15561 found="yes" 15562 fi 15563 fi 15564 15565 if test $found = "no" ; then 15566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15568 fi 15569 15570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15572 fi 15573 15574 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15575 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15577$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15578 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15579 if eval \${$cacheid+:} false; then : 15580 $as_echo_n "(cached) " >&6 15581else 15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15583/* end confdefs.h. */ 15584int i; 15585int 15586main () 15587{ 15588 15589 ; 15590 return 0; 15591} 15592_ACEOF 15593if ac_fn_c_try_link "$LINENO"; then : 15594 eval $cacheid=yes 15595else 15596 eval $cacheid=no 15597fi 15598rm -f core conftest.err conftest.$ac_objext \ 15599 conftest$ac_exeext conftest.$ac_ext 15600fi 15601 15602 15603 CFLAGS="$xorg_testset_save_CFLAGS" 15604 15605 eval supported=\$$cacheid 15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15607$as_echo "$supported" >&6; } 15608 if test "$supported" = "yes" ; then 15609 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15610 found="yes" 15611 fi 15612 fi 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628xorg_testset_save_CFLAGS="$CFLAGS" 15629 15630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15635 $as_echo_n "(cached) " >&6 15636else 15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15638/* end confdefs.h. */ 15639int i; 15640_ACEOF 15641if ac_fn_c_try_compile "$LINENO"; then : 15642 xorg_cv_cc_flag_unknown_warning_option=yes 15643else 15644 xorg_cv_cc_flag_unknown_warning_option=no 15645fi 15646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15647fi 15648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15651 CFLAGS="$xorg_testset_save_CFLAGS" 15652fi 15653 15654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15657 fi 15658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15662 $as_echo_n "(cached) " >&6 15663else 15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15665/* end confdefs.h. */ 15666int i; 15667_ACEOF 15668if ac_fn_c_try_compile "$LINENO"; then : 15669 xorg_cv_cc_flag_unused_command_line_argument=yes 15670else 15671 xorg_cv_cc_flag_unused_command_line_argument=no 15672fi 15673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15674fi 15675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15678 CFLAGS="$xorg_testset_save_CFLAGS" 15679fi 15680 15681found="no" 15682 15683 if test $found = "no" ; then 15684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15686 fi 15687 15688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15690 fi 15691 15692 CFLAGS="$CFLAGS -Werror=trigraphs" 15693 15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15695$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15696 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15697 if eval \${$cacheid+:} false; then : 15698 $as_echo_n "(cached) " >&6 15699else 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701/* end confdefs.h. */ 15702int i; 15703int 15704main () 15705{ 15706 15707 ; 15708 return 0; 15709} 15710_ACEOF 15711if ac_fn_c_try_link "$LINENO"; then : 15712 eval $cacheid=yes 15713else 15714 eval $cacheid=no 15715fi 15716rm -f core conftest.err conftest.$ac_objext \ 15717 conftest$ac_exeext conftest.$ac_ext 15718fi 15719 15720 15721 CFLAGS="$xorg_testset_save_CFLAGS" 15722 15723 eval supported=\$$cacheid 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15725$as_echo "$supported" >&6; } 15726 if test "$supported" = "yes" ; then 15727 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15728 found="yes" 15729 fi 15730 fi 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746xorg_testset_save_CFLAGS="$CFLAGS" 15747 15748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15753 $as_echo_n "(cached) " >&6 15754else 15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15756/* end confdefs.h. */ 15757int i; 15758_ACEOF 15759if ac_fn_c_try_compile "$LINENO"; then : 15760 xorg_cv_cc_flag_unknown_warning_option=yes 15761else 15762 xorg_cv_cc_flag_unknown_warning_option=no 15763fi 15764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15765fi 15766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15769 CFLAGS="$xorg_testset_save_CFLAGS" 15770fi 15771 15772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15775 fi 15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15780 $as_echo_n "(cached) " >&6 15781else 15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15783/* end confdefs.h. */ 15784int i; 15785_ACEOF 15786if ac_fn_c_try_compile "$LINENO"; then : 15787 xorg_cv_cc_flag_unused_command_line_argument=yes 15788else 15789 xorg_cv_cc_flag_unused_command_line_argument=no 15790fi 15791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15792fi 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15796 CFLAGS="$xorg_testset_save_CFLAGS" 15797fi 15798 15799found="no" 15800 15801 if test $found = "no" ; then 15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15804 fi 15805 15806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15808 fi 15809 15810 CFLAGS="$CFLAGS -Werror=array-bounds" 15811 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15813$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15814 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15815 if eval \${$cacheid+:} false; then : 15816 $as_echo_n "(cached) " >&6 15817else 15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15819/* end confdefs.h. */ 15820int i; 15821int 15822main () 15823{ 15824 15825 ; 15826 return 0; 15827} 15828_ACEOF 15829if ac_fn_c_try_link "$LINENO"; then : 15830 eval $cacheid=yes 15831else 15832 eval $cacheid=no 15833fi 15834rm -f core conftest.err conftest.$ac_objext \ 15835 conftest$ac_exeext conftest.$ac_ext 15836fi 15837 15838 15839 CFLAGS="$xorg_testset_save_CFLAGS" 15840 15841 eval supported=\$$cacheid 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15843$as_echo "$supported" >&6; } 15844 if test "$supported" = "yes" ; then 15845 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15846 found="yes" 15847 fi 15848 fi 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864xorg_testset_save_CFLAGS="$CFLAGS" 15865 15866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15871 $as_echo_n "(cached) " >&6 15872else 15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15874/* end confdefs.h. */ 15875int i; 15876_ACEOF 15877if ac_fn_c_try_compile "$LINENO"; then : 15878 xorg_cv_cc_flag_unknown_warning_option=yes 15879else 15880 xorg_cv_cc_flag_unknown_warning_option=no 15881fi 15882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15883fi 15884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15887 CFLAGS="$xorg_testset_save_CFLAGS" 15888fi 15889 15890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15893 fi 15894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15898 $as_echo_n "(cached) " >&6 15899else 15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15901/* end confdefs.h. */ 15902int i; 15903_ACEOF 15904if ac_fn_c_try_compile "$LINENO"; then : 15905 xorg_cv_cc_flag_unused_command_line_argument=yes 15906else 15907 xorg_cv_cc_flag_unused_command_line_argument=no 15908fi 15909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15910fi 15911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15914 CFLAGS="$xorg_testset_save_CFLAGS" 15915fi 15916 15917found="no" 15918 15919 if test $found = "no" ; then 15920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15922 fi 15923 15924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15926 fi 15927 15928 CFLAGS="$CFLAGS -Werror=write-strings" 15929 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15931$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15932 cacheid=xorg_cv_cc_flag__Werror_write_strings 15933 if eval \${$cacheid+:} false; then : 15934 $as_echo_n "(cached) " >&6 15935else 15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15937/* end confdefs.h. */ 15938int i; 15939int 15940main () 15941{ 15942 15943 ; 15944 return 0; 15945} 15946_ACEOF 15947if ac_fn_c_try_link "$LINENO"; then : 15948 eval $cacheid=yes 15949else 15950 eval $cacheid=no 15951fi 15952rm -f core conftest.err conftest.$ac_objext \ 15953 conftest$ac_exeext conftest.$ac_ext 15954fi 15955 15956 15957 CFLAGS="$xorg_testset_save_CFLAGS" 15958 15959 eval supported=\$$cacheid 15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15961$as_echo "$supported" >&6; } 15962 if test "$supported" = "yes" ; then 15963 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15964 found="yes" 15965 fi 15966 fi 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982xorg_testset_save_CFLAGS="$CFLAGS" 15983 15984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15989 $as_echo_n "(cached) " >&6 15990else 15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15992/* end confdefs.h. */ 15993int i; 15994_ACEOF 15995if ac_fn_c_try_compile "$LINENO"; then : 15996 xorg_cv_cc_flag_unknown_warning_option=yes 15997else 15998 xorg_cv_cc_flag_unknown_warning_option=no 15999fi 16000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16001fi 16002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16005 CFLAGS="$xorg_testset_save_CFLAGS" 16006fi 16007 16008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16011 fi 16012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16016 $as_echo_n "(cached) " >&6 16017else 16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16019/* end confdefs.h. */ 16020int i; 16021_ACEOF 16022if ac_fn_c_try_compile "$LINENO"; then : 16023 xorg_cv_cc_flag_unused_command_line_argument=yes 16024else 16025 xorg_cv_cc_flag_unused_command_line_argument=no 16026fi 16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16028fi 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16032 CFLAGS="$xorg_testset_save_CFLAGS" 16033fi 16034 16035found="no" 16036 16037 if test $found = "no" ; then 16038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16040 fi 16041 16042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16044 fi 16045 16046 CFLAGS="$CFLAGS -Werror=address" 16047 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16049$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16050 cacheid=xorg_cv_cc_flag__Werror_address 16051 if eval \${$cacheid+:} false; then : 16052 $as_echo_n "(cached) " >&6 16053else 16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16055/* end confdefs.h. */ 16056int i; 16057int 16058main () 16059{ 16060 16061 ; 16062 return 0; 16063} 16064_ACEOF 16065if ac_fn_c_try_link "$LINENO"; then : 16066 eval $cacheid=yes 16067else 16068 eval $cacheid=no 16069fi 16070rm -f core conftest.err conftest.$ac_objext \ 16071 conftest$ac_exeext conftest.$ac_ext 16072fi 16073 16074 16075 CFLAGS="$xorg_testset_save_CFLAGS" 16076 16077 eval supported=\$$cacheid 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16079$as_echo "$supported" >&6; } 16080 if test "$supported" = "yes" ; then 16081 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16082 found="yes" 16083 fi 16084 fi 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100xorg_testset_save_CFLAGS="$CFLAGS" 16101 16102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16107 $as_echo_n "(cached) " >&6 16108else 16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16110/* end confdefs.h. */ 16111int i; 16112_ACEOF 16113if ac_fn_c_try_compile "$LINENO"; then : 16114 xorg_cv_cc_flag_unknown_warning_option=yes 16115else 16116 xorg_cv_cc_flag_unknown_warning_option=no 16117fi 16118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16119fi 16120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16123 CFLAGS="$xorg_testset_save_CFLAGS" 16124fi 16125 16126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16129 fi 16130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138int i; 16139_ACEOF 16140if ac_fn_c_try_compile "$LINENO"; then : 16141 xorg_cv_cc_flag_unused_command_line_argument=yes 16142else 16143 xorg_cv_cc_flag_unused_command_line_argument=no 16144fi 16145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16146fi 16147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16150 CFLAGS="$xorg_testset_save_CFLAGS" 16151fi 16152 16153found="no" 16154 16155 if test $found = "no" ; then 16156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16158 fi 16159 16160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16162 fi 16163 16164 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16165 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16167$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16168 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16169 if eval \${$cacheid+:} false; then : 16170 $as_echo_n "(cached) " >&6 16171else 16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16173/* end confdefs.h. */ 16174int i; 16175int 16176main () 16177{ 16178 16179 ; 16180 return 0; 16181} 16182_ACEOF 16183if ac_fn_c_try_link "$LINENO"; then : 16184 eval $cacheid=yes 16185else 16186 eval $cacheid=no 16187fi 16188rm -f core conftest.err conftest.$ac_objext \ 16189 conftest$ac_exeext conftest.$ac_ext 16190fi 16191 16192 16193 CFLAGS="$xorg_testset_save_CFLAGS" 16194 16195 eval supported=\$$cacheid 16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16197$as_echo "$supported" >&6; } 16198 if test "$supported" = "yes" ; then 16199 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16200 found="yes" 16201 fi 16202 fi 16203 16204 if test $found = "no" ; then 16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16207 fi 16208 16209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16211 fi 16212 16213 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16214 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16216$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16217 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16218 if eval \${$cacheid+:} false; then : 16219 $as_echo_n "(cached) " >&6 16220else 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223int i; 16224int 16225main () 16226{ 16227 16228 ; 16229 return 0; 16230} 16231_ACEOF 16232if ac_fn_c_try_link "$LINENO"; then : 16233 eval $cacheid=yes 16234else 16235 eval $cacheid=no 16236fi 16237rm -f core conftest.err conftest.$ac_objext \ 16238 conftest$ac_exeext conftest.$ac_ext 16239fi 16240 16241 16242 CFLAGS="$xorg_testset_save_CFLAGS" 16243 16244 eval supported=\$$cacheid 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16246$as_echo "$supported" >&6; } 16247 if test "$supported" = "yes" ; then 16248 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16249 found="yes" 16250 fi 16251 fi 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267xorg_testset_save_CFLAGS="$CFLAGS" 16268 16269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16274 $as_echo_n "(cached) " >&6 16275else 16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16277/* end confdefs.h. */ 16278int i; 16279_ACEOF 16280if ac_fn_c_try_compile "$LINENO"; then : 16281 xorg_cv_cc_flag_unknown_warning_option=yes 16282else 16283 xorg_cv_cc_flag_unknown_warning_option=no 16284fi 16285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16286fi 16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16290 CFLAGS="$xorg_testset_save_CFLAGS" 16291fi 16292 16293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16296 fi 16297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16301 $as_echo_n "(cached) " >&6 16302else 16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304/* end confdefs.h. */ 16305int i; 16306_ACEOF 16307if ac_fn_c_try_compile "$LINENO"; then : 16308 xorg_cv_cc_flag_unused_command_line_argument=yes 16309else 16310 xorg_cv_cc_flag_unused_command_line_argument=no 16311fi 16312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16313fi 16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16317 CFLAGS="$xorg_testset_save_CFLAGS" 16318fi 16319 16320found="no" 16321 16322 if test $found = "no" ; then 16323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16325 fi 16326 16327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16329 fi 16330 16331 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16332 16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16334$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16335 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16336 if eval \${$cacheid+:} false; then : 16337 $as_echo_n "(cached) " >&6 16338else 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341int i; 16342int 16343main () 16344{ 16345 16346 ; 16347 return 0; 16348} 16349_ACEOF 16350if ac_fn_c_try_link "$LINENO"; then : 16351 eval $cacheid=yes 16352else 16353 eval $cacheid=no 16354fi 16355rm -f core conftest.err conftest.$ac_objext \ 16356 conftest$ac_exeext conftest.$ac_ext 16357fi 16358 16359 16360 CFLAGS="$xorg_testset_save_CFLAGS" 16361 16362 eval supported=\$$cacheid 16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16364$as_echo "$supported" >&6; } 16365 if test "$supported" = "yes" ; then 16366 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16367 found="yes" 16368 fi 16369 fi 16370 16371 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16372else 16373{ $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 16374$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;} 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388xorg_testset_save_CFLAGS="$CFLAGS" 16389 16390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16395 $as_echo_n "(cached) " >&6 16396else 16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16398/* end confdefs.h. */ 16399int i; 16400_ACEOF 16401if ac_fn_c_try_compile "$LINENO"; then : 16402 xorg_cv_cc_flag_unknown_warning_option=yes 16403else 16404 xorg_cv_cc_flag_unknown_warning_option=no 16405fi 16406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16407fi 16408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16411 CFLAGS="$xorg_testset_save_CFLAGS" 16412fi 16413 16414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16417 fi 16418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16422 $as_echo_n "(cached) " >&6 16423else 16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16425/* end confdefs.h. */ 16426int i; 16427_ACEOF 16428if ac_fn_c_try_compile "$LINENO"; then : 16429 xorg_cv_cc_flag_unused_command_line_argument=yes 16430else 16431 xorg_cv_cc_flag_unused_command_line_argument=no 16432fi 16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16434fi 16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16438 CFLAGS="$xorg_testset_save_CFLAGS" 16439fi 16440 16441found="no" 16442 16443 if test $found = "no" ; then 16444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16446 fi 16447 16448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16450 fi 16451 16452 CFLAGS="$CFLAGS -Wimplicit" 16453 16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16455$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16456 cacheid=xorg_cv_cc_flag__Wimplicit 16457 if eval \${$cacheid+:} false; then : 16458 $as_echo_n "(cached) " >&6 16459else 16460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16461/* end confdefs.h. */ 16462int i; 16463int 16464main () 16465{ 16466 16467 ; 16468 return 0; 16469} 16470_ACEOF 16471if ac_fn_c_try_link "$LINENO"; then : 16472 eval $cacheid=yes 16473else 16474 eval $cacheid=no 16475fi 16476rm -f core conftest.err conftest.$ac_objext \ 16477 conftest$ac_exeext conftest.$ac_ext 16478fi 16479 16480 16481 CFLAGS="$xorg_testset_save_CFLAGS" 16482 16483 eval supported=\$$cacheid 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16485$as_echo "$supported" >&6; } 16486 if test "$supported" = "yes" ; then 16487 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16488 found="yes" 16489 fi 16490 fi 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506xorg_testset_save_CFLAGS="$CFLAGS" 16507 16508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16513 $as_echo_n "(cached) " >&6 16514else 16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16516/* end confdefs.h. */ 16517int i; 16518_ACEOF 16519if ac_fn_c_try_compile "$LINENO"; then : 16520 xorg_cv_cc_flag_unknown_warning_option=yes 16521else 16522 xorg_cv_cc_flag_unknown_warning_option=no 16523fi 16524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16525fi 16526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16529 CFLAGS="$xorg_testset_save_CFLAGS" 16530fi 16531 16532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16535 fi 16536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16540 $as_echo_n "(cached) " >&6 16541else 16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16543/* end confdefs.h. */ 16544int i; 16545_ACEOF 16546if ac_fn_c_try_compile "$LINENO"; then : 16547 xorg_cv_cc_flag_unused_command_line_argument=yes 16548else 16549 xorg_cv_cc_flag_unused_command_line_argument=no 16550fi 16551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16552fi 16553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16556 CFLAGS="$xorg_testset_save_CFLAGS" 16557fi 16558 16559found="no" 16560 16561 if test $found = "no" ; then 16562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16564 fi 16565 16566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16568 fi 16569 16570 CFLAGS="$CFLAGS -Wnonnull" 16571 16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16573$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16574 cacheid=xorg_cv_cc_flag__Wnonnull 16575 if eval \${$cacheid+:} false; then : 16576 $as_echo_n "(cached) " >&6 16577else 16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16579/* end confdefs.h. */ 16580int i; 16581int 16582main () 16583{ 16584 16585 ; 16586 return 0; 16587} 16588_ACEOF 16589if ac_fn_c_try_link "$LINENO"; then : 16590 eval $cacheid=yes 16591else 16592 eval $cacheid=no 16593fi 16594rm -f core conftest.err conftest.$ac_objext \ 16595 conftest$ac_exeext conftest.$ac_ext 16596fi 16597 16598 16599 CFLAGS="$xorg_testset_save_CFLAGS" 16600 16601 eval supported=\$$cacheid 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16603$as_echo "$supported" >&6; } 16604 if test "$supported" = "yes" ; then 16605 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16606 found="yes" 16607 fi 16608 fi 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624xorg_testset_save_CFLAGS="$CFLAGS" 16625 16626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16631 $as_echo_n "(cached) " >&6 16632else 16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16634/* end confdefs.h. */ 16635int i; 16636_ACEOF 16637if ac_fn_c_try_compile "$LINENO"; then : 16638 xorg_cv_cc_flag_unknown_warning_option=yes 16639else 16640 xorg_cv_cc_flag_unknown_warning_option=no 16641fi 16642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16643fi 16644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16647 CFLAGS="$xorg_testset_save_CFLAGS" 16648fi 16649 16650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16653 fi 16654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16658 $as_echo_n "(cached) " >&6 16659else 16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16661/* end confdefs.h. */ 16662int i; 16663_ACEOF 16664if ac_fn_c_try_compile "$LINENO"; then : 16665 xorg_cv_cc_flag_unused_command_line_argument=yes 16666else 16667 xorg_cv_cc_flag_unused_command_line_argument=no 16668fi 16669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16670fi 16671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16674 CFLAGS="$xorg_testset_save_CFLAGS" 16675fi 16676 16677found="no" 16678 16679 if test $found = "no" ; then 16680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16682 fi 16683 16684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16686 fi 16687 16688 CFLAGS="$CFLAGS -Winit-self" 16689 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16691$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16692 cacheid=xorg_cv_cc_flag__Winit_self 16693 if eval \${$cacheid+:} false; then : 16694 $as_echo_n "(cached) " >&6 16695else 16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16697/* end confdefs.h. */ 16698int i; 16699int 16700main () 16701{ 16702 16703 ; 16704 return 0; 16705} 16706_ACEOF 16707if ac_fn_c_try_link "$LINENO"; then : 16708 eval $cacheid=yes 16709else 16710 eval $cacheid=no 16711fi 16712rm -f core conftest.err conftest.$ac_objext \ 16713 conftest$ac_exeext conftest.$ac_ext 16714fi 16715 16716 16717 CFLAGS="$xorg_testset_save_CFLAGS" 16718 16719 eval supported=\$$cacheid 16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16721$as_echo "$supported" >&6; } 16722 if test "$supported" = "yes" ; then 16723 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16724 found="yes" 16725 fi 16726 fi 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742xorg_testset_save_CFLAGS="$CFLAGS" 16743 16744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16749 $as_echo_n "(cached) " >&6 16750else 16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752/* end confdefs.h. */ 16753int i; 16754_ACEOF 16755if ac_fn_c_try_compile "$LINENO"; then : 16756 xorg_cv_cc_flag_unknown_warning_option=yes 16757else 16758 xorg_cv_cc_flag_unknown_warning_option=no 16759fi 16760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16761fi 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16765 CFLAGS="$xorg_testset_save_CFLAGS" 16766fi 16767 16768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16771 fi 16772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16776 $as_echo_n "(cached) " >&6 16777else 16778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16779/* end confdefs.h. */ 16780int i; 16781_ACEOF 16782if ac_fn_c_try_compile "$LINENO"; then : 16783 xorg_cv_cc_flag_unused_command_line_argument=yes 16784else 16785 xorg_cv_cc_flag_unused_command_line_argument=no 16786fi 16787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16788fi 16789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16792 CFLAGS="$xorg_testset_save_CFLAGS" 16793fi 16794 16795found="no" 16796 16797 if test $found = "no" ; then 16798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16800 fi 16801 16802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16804 fi 16805 16806 CFLAGS="$CFLAGS -Wmain" 16807 16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16809$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16810 cacheid=xorg_cv_cc_flag__Wmain 16811 if eval \${$cacheid+:} false; then : 16812 $as_echo_n "(cached) " >&6 16813else 16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16815/* end confdefs.h. */ 16816int i; 16817int 16818main () 16819{ 16820 16821 ; 16822 return 0; 16823} 16824_ACEOF 16825if ac_fn_c_try_link "$LINENO"; then : 16826 eval $cacheid=yes 16827else 16828 eval $cacheid=no 16829fi 16830rm -f core conftest.err conftest.$ac_objext \ 16831 conftest$ac_exeext conftest.$ac_ext 16832fi 16833 16834 16835 CFLAGS="$xorg_testset_save_CFLAGS" 16836 16837 eval supported=\$$cacheid 16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16839$as_echo "$supported" >&6; } 16840 if test "$supported" = "yes" ; then 16841 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16842 found="yes" 16843 fi 16844 fi 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860xorg_testset_save_CFLAGS="$CFLAGS" 16861 16862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16867 $as_echo_n "(cached) " >&6 16868else 16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16870/* end confdefs.h. */ 16871int i; 16872_ACEOF 16873if ac_fn_c_try_compile "$LINENO"; then : 16874 xorg_cv_cc_flag_unknown_warning_option=yes 16875else 16876 xorg_cv_cc_flag_unknown_warning_option=no 16877fi 16878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16879fi 16880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16883 CFLAGS="$xorg_testset_save_CFLAGS" 16884fi 16885 16886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16889 fi 16890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16894 $as_echo_n "(cached) " >&6 16895else 16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16897/* end confdefs.h. */ 16898int i; 16899_ACEOF 16900if ac_fn_c_try_compile "$LINENO"; then : 16901 xorg_cv_cc_flag_unused_command_line_argument=yes 16902else 16903 xorg_cv_cc_flag_unused_command_line_argument=no 16904fi 16905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16906fi 16907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16910 CFLAGS="$xorg_testset_save_CFLAGS" 16911fi 16912 16913found="no" 16914 16915 if test $found = "no" ; then 16916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16918 fi 16919 16920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16922 fi 16923 16924 CFLAGS="$CFLAGS -Wmissing-braces" 16925 16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16927$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16928 cacheid=xorg_cv_cc_flag__Wmissing_braces 16929 if eval \${$cacheid+:} false; then : 16930 $as_echo_n "(cached) " >&6 16931else 16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16933/* end confdefs.h. */ 16934int i; 16935int 16936main () 16937{ 16938 16939 ; 16940 return 0; 16941} 16942_ACEOF 16943if ac_fn_c_try_link "$LINENO"; then : 16944 eval $cacheid=yes 16945else 16946 eval $cacheid=no 16947fi 16948rm -f core conftest.err conftest.$ac_objext \ 16949 conftest$ac_exeext conftest.$ac_ext 16950fi 16951 16952 16953 CFLAGS="$xorg_testset_save_CFLAGS" 16954 16955 eval supported=\$$cacheid 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16957$as_echo "$supported" >&6; } 16958 if test "$supported" = "yes" ; then 16959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16960 found="yes" 16961 fi 16962 fi 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978xorg_testset_save_CFLAGS="$CFLAGS" 16979 16980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16985 $as_echo_n "(cached) " >&6 16986else 16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16988/* end confdefs.h. */ 16989int i; 16990_ACEOF 16991if ac_fn_c_try_compile "$LINENO"; then : 16992 xorg_cv_cc_flag_unknown_warning_option=yes 16993else 16994 xorg_cv_cc_flag_unknown_warning_option=no 16995fi 16996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16997fi 16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17001 CFLAGS="$xorg_testset_save_CFLAGS" 17002fi 17003 17004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17007 fi 17008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17012 $as_echo_n "(cached) " >&6 17013else 17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17015/* end confdefs.h. */ 17016int i; 17017_ACEOF 17018if ac_fn_c_try_compile "$LINENO"; then : 17019 xorg_cv_cc_flag_unused_command_line_argument=yes 17020else 17021 xorg_cv_cc_flag_unused_command_line_argument=no 17022fi 17023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17024fi 17025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17028 CFLAGS="$xorg_testset_save_CFLAGS" 17029fi 17030 17031found="no" 17032 17033 if test $found = "no" ; then 17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17036 fi 17037 17038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17040 fi 17041 17042 CFLAGS="$CFLAGS -Wsequence-point" 17043 17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17045$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17046 cacheid=xorg_cv_cc_flag__Wsequence_point 17047 if eval \${$cacheid+:} false; then : 17048 $as_echo_n "(cached) " >&6 17049else 17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17051/* end confdefs.h. */ 17052int i; 17053int 17054main () 17055{ 17056 17057 ; 17058 return 0; 17059} 17060_ACEOF 17061if ac_fn_c_try_link "$LINENO"; then : 17062 eval $cacheid=yes 17063else 17064 eval $cacheid=no 17065fi 17066rm -f core conftest.err conftest.$ac_objext \ 17067 conftest$ac_exeext conftest.$ac_ext 17068fi 17069 17070 17071 CFLAGS="$xorg_testset_save_CFLAGS" 17072 17073 eval supported=\$$cacheid 17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17075$as_echo "$supported" >&6; } 17076 if test "$supported" = "yes" ; then 17077 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17078 found="yes" 17079 fi 17080 fi 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096xorg_testset_save_CFLAGS="$CFLAGS" 17097 17098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17103 $as_echo_n "(cached) " >&6 17104else 17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17106/* end confdefs.h. */ 17107int i; 17108_ACEOF 17109if ac_fn_c_try_compile "$LINENO"; then : 17110 xorg_cv_cc_flag_unknown_warning_option=yes 17111else 17112 xorg_cv_cc_flag_unknown_warning_option=no 17113fi 17114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17115fi 17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17119 CFLAGS="$xorg_testset_save_CFLAGS" 17120fi 17121 17122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17125 fi 17126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17130 $as_echo_n "(cached) " >&6 17131else 17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17133/* end confdefs.h. */ 17134int i; 17135_ACEOF 17136if ac_fn_c_try_compile "$LINENO"; then : 17137 xorg_cv_cc_flag_unused_command_line_argument=yes 17138else 17139 xorg_cv_cc_flag_unused_command_line_argument=no 17140fi 17141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17142fi 17143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17146 CFLAGS="$xorg_testset_save_CFLAGS" 17147fi 17148 17149found="no" 17150 17151 if test $found = "no" ; then 17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17154 fi 17155 17156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17158 fi 17159 17160 CFLAGS="$CFLAGS -Wreturn-type" 17161 17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17163$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17164 cacheid=xorg_cv_cc_flag__Wreturn_type 17165 if eval \${$cacheid+:} false; then : 17166 $as_echo_n "(cached) " >&6 17167else 17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17169/* end confdefs.h. */ 17170int i; 17171int 17172main () 17173{ 17174 17175 ; 17176 return 0; 17177} 17178_ACEOF 17179if ac_fn_c_try_link "$LINENO"; then : 17180 eval $cacheid=yes 17181else 17182 eval $cacheid=no 17183fi 17184rm -f core conftest.err conftest.$ac_objext \ 17185 conftest$ac_exeext conftest.$ac_ext 17186fi 17187 17188 17189 CFLAGS="$xorg_testset_save_CFLAGS" 17190 17191 eval supported=\$$cacheid 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17193$as_echo "$supported" >&6; } 17194 if test "$supported" = "yes" ; then 17195 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17196 found="yes" 17197 fi 17198 fi 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214xorg_testset_save_CFLAGS="$CFLAGS" 17215 17216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17221 $as_echo_n "(cached) " >&6 17222else 17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17224/* end confdefs.h. */ 17225int i; 17226_ACEOF 17227if ac_fn_c_try_compile "$LINENO"; then : 17228 xorg_cv_cc_flag_unknown_warning_option=yes 17229else 17230 xorg_cv_cc_flag_unknown_warning_option=no 17231fi 17232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17233fi 17234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17237 CFLAGS="$xorg_testset_save_CFLAGS" 17238fi 17239 17240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17243 fi 17244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17248 $as_echo_n "(cached) " >&6 17249else 17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17251/* end confdefs.h. */ 17252int i; 17253_ACEOF 17254if ac_fn_c_try_compile "$LINENO"; then : 17255 xorg_cv_cc_flag_unused_command_line_argument=yes 17256else 17257 xorg_cv_cc_flag_unused_command_line_argument=no 17258fi 17259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17260fi 17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17264 CFLAGS="$xorg_testset_save_CFLAGS" 17265fi 17266 17267found="no" 17268 17269 if test $found = "no" ; then 17270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17272 fi 17273 17274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17276 fi 17277 17278 CFLAGS="$CFLAGS -Wtrigraphs" 17279 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17281$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17282 cacheid=xorg_cv_cc_flag__Wtrigraphs 17283 if eval \${$cacheid+:} false; then : 17284 $as_echo_n "(cached) " >&6 17285else 17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17287/* end confdefs.h. */ 17288int i; 17289int 17290main () 17291{ 17292 17293 ; 17294 return 0; 17295} 17296_ACEOF 17297if ac_fn_c_try_link "$LINENO"; then : 17298 eval $cacheid=yes 17299else 17300 eval $cacheid=no 17301fi 17302rm -f core conftest.err conftest.$ac_objext \ 17303 conftest$ac_exeext conftest.$ac_ext 17304fi 17305 17306 17307 CFLAGS="$xorg_testset_save_CFLAGS" 17308 17309 eval supported=\$$cacheid 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17311$as_echo "$supported" >&6; } 17312 if test "$supported" = "yes" ; then 17313 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17314 found="yes" 17315 fi 17316 fi 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332xorg_testset_save_CFLAGS="$CFLAGS" 17333 17334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17339 $as_echo_n "(cached) " >&6 17340else 17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17342/* end confdefs.h. */ 17343int i; 17344_ACEOF 17345if ac_fn_c_try_compile "$LINENO"; then : 17346 xorg_cv_cc_flag_unknown_warning_option=yes 17347else 17348 xorg_cv_cc_flag_unknown_warning_option=no 17349fi 17350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17351fi 17352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17355 CFLAGS="$xorg_testset_save_CFLAGS" 17356fi 17357 17358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17361 fi 17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17366 $as_echo_n "(cached) " >&6 17367else 17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17369/* end confdefs.h. */ 17370int i; 17371_ACEOF 17372if ac_fn_c_try_compile "$LINENO"; then : 17373 xorg_cv_cc_flag_unused_command_line_argument=yes 17374else 17375 xorg_cv_cc_flag_unused_command_line_argument=no 17376fi 17377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17378fi 17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17382 CFLAGS="$xorg_testset_save_CFLAGS" 17383fi 17384 17385found="no" 17386 17387 if test $found = "no" ; then 17388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17390 fi 17391 17392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17394 fi 17395 17396 CFLAGS="$CFLAGS -Warray-bounds" 17397 17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17399$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17400 cacheid=xorg_cv_cc_flag__Warray_bounds 17401 if eval \${$cacheid+:} false; then : 17402 $as_echo_n "(cached) " >&6 17403else 17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405/* end confdefs.h. */ 17406int i; 17407int 17408main () 17409{ 17410 17411 ; 17412 return 0; 17413} 17414_ACEOF 17415if ac_fn_c_try_link "$LINENO"; then : 17416 eval $cacheid=yes 17417else 17418 eval $cacheid=no 17419fi 17420rm -f core conftest.err conftest.$ac_objext \ 17421 conftest$ac_exeext conftest.$ac_ext 17422fi 17423 17424 17425 CFLAGS="$xorg_testset_save_CFLAGS" 17426 17427 eval supported=\$$cacheid 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17429$as_echo "$supported" >&6; } 17430 if test "$supported" = "yes" ; then 17431 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17432 found="yes" 17433 fi 17434 fi 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450xorg_testset_save_CFLAGS="$CFLAGS" 17451 17452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17457 $as_echo_n "(cached) " >&6 17458else 17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17460/* end confdefs.h. */ 17461int i; 17462_ACEOF 17463if ac_fn_c_try_compile "$LINENO"; then : 17464 xorg_cv_cc_flag_unknown_warning_option=yes 17465else 17466 xorg_cv_cc_flag_unknown_warning_option=no 17467fi 17468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17469fi 17470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17473 CFLAGS="$xorg_testset_save_CFLAGS" 17474fi 17475 17476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17479 fi 17480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17484 $as_echo_n "(cached) " >&6 17485else 17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17487/* end confdefs.h. */ 17488int i; 17489_ACEOF 17490if ac_fn_c_try_compile "$LINENO"; then : 17491 xorg_cv_cc_flag_unused_command_line_argument=yes 17492else 17493 xorg_cv_cc_flag_unused_command_line_argument=no 17494fi 17495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17496fi 17497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17500 CFLAGS="$xorg_testset_save_CFLAGS" 17501fi 17502 17503found="no" 17504 17505 if test $found = "no" ; then 17506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17508 fi 17509 17510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17512 fi 17513 17514 CFLAGS="$CFLAGS -Wwrite-strings" 17515 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17517$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17518 cacheid=xorg_cv_cc_flag__Wwrite_strings 17519 if eval \${$cacheid+:} false; then : 17520 $as_echo_n "(cached) " >&6 17521else 17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17523/* end confdefs.h. */ 17524int i; 17525int 17526main () 17527{ 17528 17529 ; 17530 return 0; 17531} 17532_ACEOF 17533if ac_fn_c_try_link "$LINENO"; then : 17534 eval $cacheid=yes 17535else 17536 eval $cacheid=no 17537fi 17538rm -f core conftest.err conftest.$ac_objext \ 17539 conftest$ac_exeext conftest.$ac_ext 17540fi 17541 17542 17543 CFLAGS="$xorg_testset_save_CFLAGS" 17544 17545 eval supported=\$$cacheid 17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17547$as_echo "$supported" >&6; } 17548 if test "$supported" = "yes" ; then 17549 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17550 found="yes" 17551 fi 17552 fi 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568xorg_testset_save_CFLAGS="$CFLAGS" 17569 17570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17575 $as_echo_n "(cached) " >&6 17576else 17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17578/* end confdefs.h. */ 17579int i; 17580_ACEOF 17581if ac_fn_c_try_compile "$LINENO"; then : 17582 xorg_cv_cc_flag_unknown_warning_option=yes 17583else 17584 xorg_cv_cc_flag_unknown_warning_option=no 17585fi 17586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17587fi 17588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17591 CFLAGS="$xorg_testset_save_CFLAGS" 17592fi 17593 17594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17597 fi 17598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17602 $as_echo_n "(cached) " >&6 17603else 17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605/* end confdefs.h. */ 17606int i; 17607_ACEOF 17608if ac_fn_c_try_compile "$LINENO"; then : 17609 xorg_cv_cc_flag_unused_command_line_argument=yes 17610else 17611 xorg_cv_cc_flag_unused_command_line_argument=no 17612fi 17613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17614fi 17615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17618 CFLAGS="$xorg_testset_save_CFLAGS" 17619fi 17620 17621found="no" 17622 17623 if test $found = "no" ; then 17624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17626 fi 17627 17628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17630 fi 17631 17632 CFLAGS="$CFLAGS -Waddress" 17633 17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17635$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17636 cacheid=xorg_cv_cc_flag__Waddress 17637 if eval \${$cacheid+:} false; then : 17638 $as_echo_n "(cached) " >&6 17639else 17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17641/* end confdefs.h. */ 17642int i; 17643int 17644main () 17645{ 17646 17647 ; 17648 return 0; 17649} 17650_ACEOF 17651if ac_fn_c_try_link "$LINENO"; then : 17652 eval $cacheid=yes 17653else 17654 eval $cacheid=no 17655fi 17656rm -f core conftest.err conftest.$ac_objext \ 17657 conftest$ac_exeext conftest.$ac_ext 17658fi 17659 17660 17661 CFLAGS="$xorg_testset_save_CFLAGS" 17662 17663 eval supported=\$$cacheid 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17665$as_echo "$supported" >&6; } 17666 if test "$supported" = "yes" ; then 17667 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17668 found="yes" 17669 fi 17670 fi 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686xorg_testset_save_CFLAGS="$CFLAGS" 17687 17688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17693 $as_echo_n "(cached) " >&6 17694else 17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17696/* end confdefs.h. */ 17697int i; 17698_ACEOF 17699if ac_fn_c_try_compile "$LINENO"; then : 17700 xorg_cv_cc_flag_unknown_warning_option=yes 17701else 17702 xorg_cv_cc_flag_unknown_warning_option=no 17703fi 17704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17705fi 17706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17709 CFLAGS="$xorg_testset_save_CFLAGS" 17710fi 17711 17712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17715 fi 17716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17720 $as_echo_n "(cached) " >&6 17721else 17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723/* end confdefs.h. */ 17724int i; 17725_ACEOF 17726if ac_fn_c_try_compile "$LINENO"; then : 17727 xorg_cv_cc_flag_unused_command_line_argument=yes 17728else 17729 xorg_cv_cc_flag_unused_command_line_argument=no 17730fi 17731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17732fi 17733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17736 CFLAGS="$xorg_testset_save_CFLAGS" 17737fi 17738 17739found="no" 17740 17741 if test $found = "no" ; then 17742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17744 fi 17745 17746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17748 fi 17749 17750 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17751 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17753$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17754 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17755 if eval \${$cacheid+:} false; then : 17756 $as_echo_n "(cached) " >&6 17757else 17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17759/* end confdefs.h. */ 17760int i; 17761int 17762main () 17763{ 17764 17765 ; 17766 return 0; 17767} 17768_ACEOF 17769if ac_fn_c_try_link "$LINENO"; then : 17770 eval $cacheid=yes 17771else 17772 eval $cacheid=no 17773fi 17774rm -f core conftest.err conftest.$ac_objext \ 17775 conftest$ac_exeext conftest.$ac_ext 17776fi 17777 17778 17779 CFLAGS="$xorg_testset_save_CFLAGS" 17780 17781 eval supported=\$$cacheid 17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17783$as_echo "$supported" >&6; } 17784 if test "$supported" = "yes" ; then 17785 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17786 found="yes" 17787 fi 17788 fi 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804xorg_testset_save_CFLAGS="$CFLAGS" 17805 17806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17811 $as_echo_n "(cached) " >&6 17812else 17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17814/* end confdefs.h. */ 17815int i; 17816_ACEOF 17817if ac_fn_c_try_compile "$LINENO"; then : 17818 xorg_cv_cc_flag_unknown_warning_option=yes 17819else 17820 xorg_cv_cc_flag_unknown_warning_option=no 17821fi 17822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17823fi 17824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17827 CFLAGS="$xorg_testset_save_CFLAGS" 17828fi 17829 17830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17833 fi 17834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839else 17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17841/* end confdefs.h. */ 17842int i; 17843_ACEOF 17844if ac_fn_c_try_compile "$LINENO"; then : 17845 xorg_cv_cc_flag_unused_command_line_argument=yes 17846else 17847 xorg_cv_cc_flag_unused_command_line_argument=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17850fi 17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17854 CFLAGS="$xorg_testset_save_CFLAGS" 17855fi 17856 17857found="no" 17858 17859 if test $found = "no" ; then 17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 fi 17863 17864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17866 fi 17867 17868 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17869 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17871$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17872 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17873 if eval \${$cacheid+:} false; then : 17874 $as_echo_n "(cached) " >&6 17875else 17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17877/* end confdefs.h. */ 17878int i; 17879int 17880main () 17881{ 17882 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887if ac_fn_c_try_link "$LINENO"; then : 17888 eval $cacheid=yes 17889else 17890 eval $cacheid=no 17891fi 17892rm -f core conftest.err conftest.$ac_objext \ 17893 conftest$ac_exeext conftest.$ac_ext 17894fi 17895 17896 17897 CFLAGS="$xorg_testset_save_CFLAGS" 17898 17899 eval supported=\$$cacheid 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17901$as_echo "$supported" >&6; } 17902 if test "$supported" = "yes" ; then 17903 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17904 found="yes" 17905 fi 17906 fi 17907 17908 17909fi 17910 17911 17912 17913 17914 17915 17916 17917 CWARNFLAGS="$BASE_CFLAGS" 17918 if test "x$GCC" = xyes ; then 17919 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17920 fi 17921 17922 17923 17924 17925 17926 17927 17928 17929# Check whether --enable-strict-compilation was given. 17930if test "${enable_strict_compilation+set}" = set; then : 17931 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17932else 17933 STRICT_COMPILE=no 17934fi 17935 17936 17937 17938 17939 17940 17941STRICT_CFLAGS="" 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955xorg_testset_save_CFLAGS="$CFLAGS" 17956 17957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17962 $as_echo_n "(cached) " >&6 17963else 17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17965/* end confdefs.h. */ 17966int i; 17967_ACEOF 17968if ac_fn_c_try_compile "$LINENO"; then : 17969 xorg_cv_cc_flag_unknown_warning_option=yes 17970else 17971 xorg_cv_cc_flag_unknown_warning_option=no 17972fi 17973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17974fi 17975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17978 CFLAGS="$xorg_testset_save_CFLAGS" 17979fi 17980 17981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17984 fi 17985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17989 $as_echo_n "(cached) " >&6 17990else 17991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17992/* end confdefs.h. */ 17993int i; 17994_ACEOF 17995if ac_fn_c_try_compile "$LINENO"; then : 17996 xorg_cv_cc_flag_unused_command_line_argument=yes 17997else 17998 xorg_cv_cc_flag_unused_command_line_argument=no 17999fi 18000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18001fi 18002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18005 CFLAGS="$xorg_testset_save_CFLAGS" 18006fi 18007 18008found="no" 18009 18010 if test $found = "no" ; then 18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18013 fi 18014 18015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18017 fi 18018 18019 CFLAGS="$CFLAGS -pedantic" 18020 18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18022$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18023 cacheid=xorg_cv_cc_flag__pedantic 18024 if eval \${$cacheid+:} false; then : 18025 $as_echo_n "(cached) " >&6 18026else 18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18028/* end confdefs.h. */ 18029int i; 18030int 18031main () 18032{ 18033 18034 ; 18035 return 0; 18036} 18037_ACEOF 18038if ac_fn_c_try_link "$LINENO"; then : 18039 eval $cacheid=yes 18040else 18041 eval $cacheid=no 18042fi 18043rm -f core conftest.err conftest.$ac_objext \ 18044 conftest$ac_exeext conftest.$ac_ext 18045fi 18046 18047 18048 CFLAGS="$xorg_testset_save_CFLAGS" 18049 18050 eval supported=\$$cacheid 18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18052$as_echo "$supported" >&6; } 18053 if test "$supported" = "yes" ; then 18054 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18055 found="yes" 18056 fi 18057 fi 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073xorg_testset_save_CFLAGS="$CFLAGS" 18074 18075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18080 $as_echo_n "(cached) " >&6 18081else 18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18083/* end confdefs.h. */ 18084int i; 18085_ACEOF 18086if ac_fn_c_try_compile "$LINENO"; then : 18087 xorg_cv_cc_flag_unknown_warning_option=yes 18088else 18089 xorg_cv_cc_flag_unknown_warning_option=no 18090fi 18091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18092fi 18093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18096 CFLAGS="$xorg_testset_save_CFLAGS" 18097fi 18098 18099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18102 fi 18103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18107 $as_echo_n "(cached) " >&6 18108else 18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18110/* end confdefs.h. */ 18111int i; 18112_ACEOF 18113if ac_fn_c_try_compile "$LINENO"; then : 18114 xorg_cv_cc_flag_unused_command_line_argument=yes 18115else 18116 xorg_cv_cc_flag_unused_command_line_argument=no 18117fi 18118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18119fi 18120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18123 CFLAGS="$xorg_testset_save_CFLAGS" 18124fi 18125 18126found="no" 18127 18128 if test $found = "no" ; then 18129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18131 fi 18132 18133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18135 fi 18136 18137 CFLAGS="$CFLAGS -Werror" 18138 18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18140$as_echo_n "checking if $CC supports -Werror... " >&6; } 18141 cacheid=xorg_cv_cc_flag__Werror 18142 if eval \${$cacheid+:} false; then : 18143 $as_echo_n "(cached) " >&6 18144else 18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18146/* end confdefs.h. */ 18147int i; 18148int 18149main () 18150{ 18151 18152 ; 18153 return 0; 18154} 18155_ACEOF 18156if ac_fn_c_try_link "$LINENO"; then : 18157 eval $cacheid=yes 18158else 18159 eval $cacheid=no 18160fi 18161rm -f core conftest.err conftest.$ac_objext \ 18162 conftest$ac_exeext conftest.$ac_ext 18163fi 18164 18165 18166 CFLAGS="$xorg_testset_save_CFLAGS" 18167 18168 eval supported=\$$cacheid 18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18170$as_echo "$supported" >&6; } 18171 if test "$supported" = "yes" ; then 18172 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18173 found="yes" 18174 fi 18175 fi 18176 18177 if test $found = "no" ; then 18178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18180 fi 18181 18182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18184 fi 18185 18186 CFLAGS="$CFLAGS -errwarn" 18187 18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18189$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18190 cacheid=xorg_cv_cc_flag__errwarn 18191 if eval \${$cacheid+:} false; then : 18192 $as_echo_n "(cached) " >&6 18193else 18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18195/* end confdefs.h. */ 18196int i; 18197int 18198main () 18199{ 18200 18201 ; 18202 return 0; 18203} 18204_ACEOF 18205if ac_fn_c_try_link "$LINENO"; then : 18206 eval $cacheid=yes 18207else 18208 eval $cacheid=no 18209fi 18210rm -f core conftest.err conftest.$ac_objext \ 18211 conftest$ac_exeext conftest.$ac_ext 18212fi 18213 18214 18215 CFLAGS="$xorg_testset_save_CFLAGS" 18216 18217 eval supported=\$$cacheid 18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18219$as_echo "$supported" >&6; } 18220 if test "$supported" = "yes" ; then 18221 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18222 found="yes" 18223 fi 18224 fi 18225 18226 18227 18228# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18229# activate it with -Werror, so we add it here explicitly. 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243xorg_testset_save_CFLAGS="$CFLAGS" 18244 18245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18250 $as_echo_n "(cached) " >&6 18251else 18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18253/* end confdefs.h. */ 18254int i; 18255_ACEOF 18256if ac_fn_c_try_compile "$LINENO"; then : 18257 xorg_cv_cc_flag_unknown_warning_option=yes 18258else 18259 xorg_cv_cc_flag_unknown_warning_option=no 18260fi 18261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18262fi 18263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18266 CFLAGS="$xorg_testset_save_CFLAGS" 18267fi 18268 18269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18272 fi 18273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18277 $as_echo_n "(cached) " >&6 18278else 18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18280/* end confdefs.h. */ 18281int i; 18282_ACEOF 18283if ac_fn_c_try_compile "$LINENO"; then : 18284 xorg_cv_cc_flag_unused_command_line_argument=yes 18285else 18286 xorg_cv_cc_flag_unused_command_line_argument=no 18287fi 18288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18289fi 18290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18293 CFLAGS="$xorg_testset_save_CFLAGS" 18294fi 18295 18296found="no" 18297 18298 if test $found = "no" ; then 18299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18301 fi 18302 18303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18305 fi 18306 18307 CFLAGS="$CFLAGS -Werror=attributes" 18308 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18310$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18311 cacheid=xorg_cv_cc_flag__Werror_attributes 18312 if eval \${$cacheid+:} false; then : 18313 $as_echo_n "(cached) " >&6 18314else 18315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18316/* end confdefs.h. */ 18317int i; 18318int 18319main () 18320{ 18321 18322 ; 18323 return 0; 18324} 18325_ACEOF 18326if ac_fn_c_try_link "$LINENO"; then : 18327 eval $cacheid=yes 18328else 18329 eval $cacheid=no 18330fi 18331rm -f core conftest.err conftest.$ac_objext \ 18332 conftest$ac_exeext conftest.$ac_ext 18333fi 18334 18335 18336 CFLAGS="$xorg_testset_save_CFLAGS" 18337 18338 eval supported=\$$cacheid 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18340$as_echo "$supported" >&6; } 18341 if test "$supported" = "yes" ; then 18342 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18343 found="yes" 18344 fi 18345 fi 18346 18347 18348 18349if test "x$STRICT_COMPILE" = "xyes"; then 18350 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18351 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18352fi 18353 18354 18355 18356 18357 18358 18359cat >>confdefs.h <<_ACEOF 18360#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18361_ACEOF 18362 18363 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18364 if test "x$PVM" = "x"; then 18365 PVM="0" 18366 fi 18367 18368cat >>confdefs.h <<_ACEOF 18369#define PACKAGE_VERSION_MINOR $PVM 18370_ACEOF 18371 18372 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18373 if test "x$PVP" = "x"; then 18374 PVP="0" 18375 fi 18376 18377cat >>confdefs.h <<_ACEOF 18378#define PACKAGE_VERSION_PATCHLEVEL $PVP 18379_ACEOF 18380 18381 18382 18383CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18384mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18385|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18386touch \$(top_srcdir)/ChangeLog; \ 18387echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18388 18389 18390 18391 18392macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18393INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18394mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18395|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18396touch \$(top_srcdir)/INSTALL; \ 18397echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18398 18399 18400 18401 18402 18403 18404case $host_os in 18405 solaris*) 18406 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18407 # check for a man page file found in later versions that use 18408 # traditional section numbers instead 18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18410$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18411if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18412 $as_echo_n "(cached) " >&6 18413else 18414 test "$cross_compiling" = yes && 18415 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18416if test -r "/usr/share/man/man7/attributes.7"; then 18417 ac_cv_file__usr_share_man_man7_attributes_7=yes 18418else 18419 ac_cv_file__usr_share_man_man7_attributes_7=no 18420fi 18421fi 18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18423$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18424if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18425 SYSV_MAN_SECTIONS=false 18426else 18427 SYSV_MAN_SECTIONS=true 18428fi 18429 18430 ;; 18431 *) SYSV_MAN_SECTIONS=false ;; 18432esac 18433 18434if test x$APP_MAN_SUFFIX = x ; then 18435 APP_MAN_SUFFIX=1 18436fi 18437if test x$APP_MAN_DIR = x ; then 18438 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18439fi 18440 18441if test x$LIB_MAN_SUFFIX = x ; then 18442 LIB_MAN_SUFFIX=3 18443fi 18444if test x$LIB_MAN_DIR = x ; then 18445 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18446fi 18447 18448if test x$FILE_MAN_SUFFIX = x ; then 18449 case $SYSV_MAN_SECTIONS in 18450 true) FILE_MAN_SUFFIX=4 ;; 18451 *) FILE_MAN_SUFFIX=5 ;; 18452 esac 18453fi 18454if test x$FILE_MAN_DIR = x ; then 18455 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18456fi 18457 18458if test x$MISC_MAN_SUFFIX = x ; then 18459 case $SYSV_MAN_SECTIONS in 18460 true) MISC_MAN_SUFFIX=5 ;; 18461 *) MISC_MAN_SUFFIX=7 ;; 18462 esac 18463fi 18464if test x$MISC_MAN_DIR = x ; then 18465 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18466fi 18467 18468if test x$DRIVER_MAN_SUFFIX = x ; then 18469 case $SYSV_MAN_SECTIONS in 18470 true) DRIVER_MAN_SUFFIX=7 ;; 18471 *) DRIVER_MAN_SUFFIX=4 ;; 18472 esac 18473fi 18474if test x$DRIVER_MAN_DIR = x ; then 18475 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18476fi 18477 18478if test x$ADMIN_MAN_SUFFIX = x ; then 18479 case $SYSV_MAN_SECTIONS in 18480 true) ADMIN_MAN_SUFFIX=1m ;; 18481 *) ADMIN_MAN_SUFFIX=8 ;; 18482 esac 18483fi 18484if test x$ADMIN_MAN_DIR = x ; then 18485 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18486fi 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502XORG_MAN_PAGE="X Version 11" 18503 18504MAN_SUBSTS="\ 18505 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18506 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18507 -e 's|__xservername__|Xorg|g' \ 18508 -e 's|__xconfigfile__|xorg.conf|g' \ 18509 -e 's|__projectroot__|\$(prefix)|g' \ 18510 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18511 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18512 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18513 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18514 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18515 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18516 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18517 18518 18519 18520# Check whether --enable-silent-rules was given. 18521if test "${enable_silent_rules+set}" = set; then : 18522 enableval=$enable_silent_rules; 18523fi 18524 18525case $enable_silent_rules in # ((( 18526 yes) AM_DEFAULT_VERBOSITY=0;; 18527 no) AM_DEFAULT_VERBOSITY=1;; 18528 *) AM_DEFAULT_VERBOSITY=0;; 18529esac 18530am_make=${MAKE-make} 18531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18532$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18533if ${am_cv_make_support_nested_variables+:} false; then : 18534 $as_echo_n "(cached) " >&6 18535else 18536 if $as_echo 'TRUE=$(BAR$(V)) 18537BAR0=false 18538BAR1=true 18539V=1 18540am__doit: 18541 @$(TRUE) 18542.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18543 am_cv_make_support_nested_variables=yes 18544else 18545 am_cv_make_support_nested_variables=no 18546fi 18547fi 18548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18549$as_echo "$am_cv_make_support_nested_variables" >&6; } 18550if test $am_cv_make_support_nested_variables = yes; then 18551 AM_V='$(V)' 18552 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18553else 18554 AM_V=$AM_DEFAULT_VERBOSITY 18555 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18556fi 18557AM_BACKSLASH='\' 18558 18559 18560 18561# Check whether --enable-malloc0returnsnull was given. 18562if test "${enable_malloc0returnsnull+set}" = set; then : 18563 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18564else 18565 MALLOC_ZERO_RETURNS_NULL=auto 18566fi 18567 18568 18569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18570$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18571if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18572if ${xorg_cv_malloc0_returns_null+:} false; then : 18573 $as_echo_n "(cached) " >&6 18574else 18575 if test "$cross_compiling" = yes; then : 18576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18578as_fn_error $? "cannot run test program while cross compiling 18579See \`config.log' for more details" "$LINENO" 5; } 18580else 18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18582/* end confdefs.h. */ 18583 18584#include <stdlib.h> 18585 18586int 18587main () 18588{ 18589 18590 char *m0, *r0, *c0, *p; 18591 m0 = malloc(0); 18592 p = malloc(10); 18593 r0 = realloc(p,0); 18594 c0 = calloc(0,10); 18595 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18596 18597 ; 18598 return 0; 18599} 18600_ACEOF 18601if ac_fn_c_try_run "$LINENO"; then : 18602 xorg_cv_malloc0_returns_null=yes 18603else 18604 xorg_cv_malloc0_returns_null=no 18605fi 18606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18607 conftest.$ac_objext conftest.beam conftest.$ac_ext 18608fi 18609 18610fi 18611 18612MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 18613fi 18614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18615$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18616 18617if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18618 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18619 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18620 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18621else 18622 MALLOC_ZERO_CFLAGS="" 18623 XMALLOC_ZERO_CFLAGS="" 18624 XTMALLOC_ZERO_CFLAGS="" 18625fi 18626 18627 18628 18629 18630 18631 18632 18633# Check whether --enable-specs was given. 18634if test "${enable_specs+set}" = set; then : 18635 enableval=$enable_specs; build_specs=$enableval 18636else 18637 build_specs=yes 18638fi 18639 18640 18641 if test x$build_specs = xyes; then 18642 ENABLE_SPECS_TRUE= 18643 ENABLE_SPECS_FALSE='#' 18644else 18645 ENABLE_SPECS_TRUE='#' 18646 ENABLE_SPECS_FALSE= 18647fi 18648 18649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18650$as_echo_n "checking whether to build functional specifications... " >&6; } 18651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18652$as_echo "$build_specs" >&6; } 18653 18654 18655 18656 18657 18658# Check whether --with-xmlto was given. 18659if test "${with_xmlto+set}" = set; then : 18660 withval=$with_xmlto; use_xmlto=$withval 18661else 18662 use_xmlto=auto 18663fi 18664 18665 18666 18667if test "x$use_xmlto" = x"auto"; then 18668 # Extract the first word of "xmlto", so it can be a program name with args. 18669set dummy xmlto; ac_word=$2 18670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18671$as_echo_n "checking for $ac_word... " >&6; } 18672if ${ac_cv_path_XMLTO+:} false; then : 18673 $as_echo_n "(cached) " >&6 18674else 18675 case $XMLTO in 18676 [\\/]* | ?:[\\/]*) 18677 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18678 ;; 18679 *) 18680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18681for as_dir in $PATH 18682do 18683 IFS=$as_save_IFS 18684 test -z "$as_dir" && as_dir=. 18685 for ac_exec_ext in '' $ac_executable_extensions; do 18686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18687 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18689 break 2 18690 fi 18691done 18692 done 18693IFS=$as_save_IFS 18694 18695 ;; 18696esac 18697fi 18698XMLTO=$ac_cv_path_XMLTO 18699if test -n "$XMLTO"; then 18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18701$as_echo "$XMLTO" >&6; } 18702else 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18704$as_echo "no" >&6; } 18705fi 18706 18707 18708 if test "x$XMLTO" = "x"; then 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18710$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18711 have_xmlto=no 18712 else 18713 have_xmlto=yes 18714 fi 18715elif test "x$use_xmlto" = x"yes" ; then 18716 # Extract the first word of "xmlto", so it can be a program name with args. 18717set dummy xmlto; ac_word=$2 18718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18719$as_echo_n "checking for $ac_word... " >&6; } 18720if ${ac_cv_path_XMLTO+:} false; then : 18721 $as_echo_n "(cached) " >&6 18722else 18723 case $XMLTO in 18724 [\\/]* | ?:[\\/]*) 18725 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18726 ;; 18727 *) 18728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18729for as_dir in $PATH 18730do 18731 IFS=$as_save_IFS 18732 test -z "$as_dir" && as_dir=. 18733 for ac_exec_ext in '' $ac_executable_extensions; do 18734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18735 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18737 break 2 18738 fi 18739done 18740 done 18741IFS=$as_save_IFS 18742 18743 ;; 18744esac 18745fi 18746XMLTO=$ac_cv_path_XMLTO 18747if test -n "$XMLTO"; then 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18749$as_echo "$XMLTO" >&6; } 18750else 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18752$as_echo "no" >&6; } 18753fi 18754 18755 18756 if test "x$XMLTO" = "x"; then 18757 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18758 fi 18759 have_xmlto=yes 18760elif test "x$use_xmlto" = x"no" ; then 18761 if test "x$XMLTO" != "x"; then 18762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18763$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18764 fi 18765 have_xmlto=no 18766else 18767 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18768fi 18769 18770# Test for a minimum version of xmlto, if provided. 18771if test "$have_xmlto" = yes; then 18772 # scrape the xmlto version 18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18774$as_echo_n "checking the xmlto version... " >&6; } 18775 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18777$as_echo "$xmlto_version" >&6; } 18778 as_arg_v1=$xmlto_version 18779as_arg_v2=0.0.20 18780awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18781case $? in #( 18782 1) : 18783 if test "x$use_xmlto" = xauto; then 18784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 18785$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 18786 have_xmlto=no 18787 else 18788 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 18789 fi ;; #( 18790 0) : 18791 ;; #( 18792 2) : 18793 ;; #( 18794 *) : 18795 ;; 18796esac 18797fi 18798 18799# Test for the ability of xmlto to generate a text target 18800# 18801# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 18802# following test for empty XML docbook files. 18803# For compatibility reasons use the following empty XML docbook file and if 18804# it fails try it again with a non-empty XML file. 18805have_xmlto_text=no 18806cat > conftest.xml << "EOF" 18807EOF 18808if test "$have_xmlto" = yes; then : 18809 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18810 have_xmlto_text=yes 18811else 18812 # Try it again with a non-empty XML file. 18813 cat > conftest.xml << "EOF" 18814<x></x> 18815EOF 18816 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18817 have_xmlto_text=yes 18818else 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18820$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18821fi 18822fi 18823fi 18824rm -f conftest.xml 18825 if test $have_xmlto_text = yes; then 18826 HAVE_XMLTO_TEXT_TRUE= 18827 HAVE_XMLTO_TEXT_FALSE='#' 18828else 18829 HAVE_XMLTO_TEXT_TRUE='#' 18830 HAVE_XMLTO_TEXT_FALSE= 18831fi 18832 18833 if test "$have_xmlto" = yes; then 18834 HAVE_XMLTO_TRUE= 18835 HAVE_XMLTO_FALSE='#' 18836else 18837 HAVE_XMLTO_TRUE='#' 18838 HAVE_XMLTO_FALSE= 18839fi 18840 18841 18842 18843 18844 18845 18846# Check whether --with-fop was given. 18847if test "${with_fop+set}" = set; then : 18848 withval=$with_fop; use_fop=$withval 18849else 18850 use_fop=auto 18851fi 18852 18853 18854 18855if test "x$use_fop" = x"auto"; then 18856 # Extract the first word of "fop", so it can be a program name with args. 18857set dummy fop; ac_word=$2 18858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18859$as_echo_n "checking for $ac_word... " >&6; } 18860if ${ac_cv_path_FOP+:} false; then : 18861 $as_echo_n "(cached) " >&6 18862else 18863 case $FOP in 18864 [\\/]* | ?:[\\/]*) 18865 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18866 ;; 18867 *) 18868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18869for as_dir in $PATH 18870do 18871 IFS=$as_save_IFS 18872 test -z "$as_dir" && as_dir=. 18873 for ac_exec_ext in '' $ac_executable_extensions; do 18874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18875 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18877 break 2 18878 fi 18879done 18880 done 18881IFS=$as_save_IFS 18882 18883 ;; 18884esac 18885fi 18886FOP=$ac_cv_path_FOP 18887if test -n "$FOP"; then 18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18889$as_echo "$FOP" >&6; } 18890else 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18892$as_echo "no" >&6; } 18893fi 18894 18895 18896 if test "x$FOP" = "x"; then 18897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18898$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18899 have_fop=no 18900 else 18901 have_fop=yes 18902 fi 18903elif test "x$use_fop" = x"yes" ; then 18904 # Extract the first word of "fop", so it can be a program name with args. 18905set dummy fop; ac_word=$2 18906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18907$as_echo_n "checking for $ac_word... " >&6; } 18908if ${ac_cv_path_FOP+:} false; then : 18909 $as_echo_n "(cached) " >&6 18910else 18911 case $FOP in 18912 [\\/]* | ?:[\\/]*) 18913 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18914 ;; 18915 *) 18916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18917for as_dir in $PATH 18918do 18919 IFS=$as_save_IFS 18920 test -z "$as_dir" && as_dir=. 18921 for ac_exec_ext in '' $ac_executable_extensions; do 18922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18923 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18925 break 2 18926 fi 18927done 18928 done 18929IFS=$as_save_IFS 18930 18931 ;; 18932esac 18933fi 18934FOP=$ac_cv_path_FOP 18935if test -n "$FOP"; then 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18937$as_echo "$FOP" >&6; } 18938else 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18940$as_echo "no" >&6; } 18941fi 18942 18943 18944 if test "x$FOP" = "x"; then 18945 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18946 fi 18947 have_fop=yes 18948elif test "x$use_fop" = x"no" ; then 18949 if test "x$FOP" != "x"; then 18950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18951$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18952 fi 18953 have_fop=no 18954else 18955 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18956fi 18957 18958# Test for a minimum version of fop, if provided. 18959 18960 if test "$have_fop" = yes; then 18961 HAVE_FOP_TRUE= 18962 HAVE_FOP_FALSE='#' 18963else 18964 HAVE_FOP_TRUE='#' 18965 HAVE_FOP_FALSE= 18966fi 18967 18968 18969 18970 18971# Preserves the interface, should it be implemented later 18972 18973 18974 18975# Check whether --with-xsltproc was given. 18976if test "${with_xsltproc+set}" = set; then : 18977 withval=$with_xsltproc; use_xsltproc=$withval 18978else 18979 use_xsltproc=auto 18980fi 18981 18982 18983 18984if test "x$use_xsltproc" = x"auto"; then 18985 # Extract the first word of "xsltproc", so it can be a program name with args. 18986set dummy xsltproc; ac_word=$2 18987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18988$as_echo_n "checking for $ac_word... " >&6; } 18989if ${ac_cv_path_XSLTPROC+:} false; then : 18990 $as_echo_n "(cached) " >&6 18991else 18992 case $XSLTPROC in 18993 [\\/]* | ?:[\\/]*) 18994 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18995 ;; 18996 *) 18997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18998for as_dir in $PATH 18999do 19000 IFS=$as_save_IFS 19001 test -z "$as_dir" && as_dir=. 19002 for ac_exec_ext in '' $ac_executable_extensions; do 19003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19004 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19006 break 2 19007 fi 19008done 19009 done 19010IFS=$as_save_IFS 19011 19012 ;; 19013esac 19014fi 19015XSLTPROC=$ac_cv_path_XSLTPROC 19016if test -n "$XSLTPROC"; then 19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19018$as_echo "$XSLTPROC" >&6; } 19019else 19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19021$as_echo "no" >&6; } 19022fi 19023 19024 19025 if test "x$XSLTPROC" = "x"; then 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 19027$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 19028 have_xsltproc=no 19029 else 19030 have_xsltproc=yes 19031 fi 19032elif test "x$use_xsltproc" = x"yes" ; then 19033 # Extract the first word of "xsltproc", so it can be a program name with args. 19034set dummy xsltproc; ac_word=$2 19035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19036$as_echo_n "checking for $ac_word... " >&6; } 19037if ${ac_cv_path_XSLTPROC+:} false; then : 19038 $as_echo_n "(cached) " >&6 19039else 19040 case $XSLTPROC in 19041 [\\/]* | ?:[\\/]*) 19042 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19043 ;; 19044 *) 19045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19046for as_dir in $PATH 19047do 19048 IFS=$as_save_IFS 19049 test -z "$as_dir" && as_dir=. 19050 for ac_exec_ext in '' $ac_executable_extensions; do 19051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19052 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19054 break 2 19055 fi 19056done 19057 done 19058IFS=$as_save_IFS 19059 19060 ;; 19061esac 19062fi 19063XSLTPROC=$ac_cv_path_XSLTPROC 19064if test -n "$XSLTPROC"; then 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19066$as_echo "$XSLTPROC" >&6; } 19067else 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19069$as_echo "no" >&6; } 19070fi 19071 19072 19073 if test "x$XSLTPROC" = "x"; then 19074 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 19075 fi 19076 have_xsltproc=yes 19077elif test "x$use_xsltproc" = x"no" ; then 19078 if test "x$XSLTPROC" != "x"; then 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 19080$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 19081 fi 19082 have_xsltproc=no 19083else 19084 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 19085fi 19086 19087 if test "$have_xsltproc" = yes; then 19088 HAVE_XSLTPROC_TRUE= 19089 HAVE_XSLTPROC_FALSE='#' 19090else 19091 HAVE_XSLTPROC_TRUE='#' 19092 HAVE_XSLTPROC_FALSE= 19093fi 19094 19095 19096 19097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.01" >&5 19098$as_echo_n "checking for X.Org SGML entities >= 1.01... " >&6; } 19099XORG_SGML_PATH= 19100if test -n "$PKG_CONFIG" && \ 19101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.01\""; } >&5 19102 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.01") 2>&5 19103 ac_status=$? 19104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19105 test $ac_status = 0; }; then 19106 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19107else 19108 : 19109 19110fi 19111 19112# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19113# the path and the name of the doc stylesheet 19114if test "x$XORG_SGML_PATH" != "x" ; then 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19116$as_echo "$XORG_SGML_PATH" >&6; } 19117 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19118 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19119else 19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19121$as_echo "no" >&6; } 19122fi 19123 19124 19125 19126 19127 if test "x$XSL_STYLESHEET" != "x"; then 19128 HAVE_STYLESHEETS_TRUE= 19129 HAVE_STYLESHEETS_FALSE='#' 19130else 19131 HAVE_STYLESHEETS_TRUE='#' 19132 HAVE_STYLESHEETS_FALSE= 19133fi 19134 19135 19136 19137 19138if test -n "$ac_tool_prefix"; then 19139 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 19140set dummy ${ac_tool_prefix}cpp; ac_word=$2 19141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19142$as_echo_n "checking for $ac_word... " >&6; } 19143if ${ac_cv_path_RAWCPP+:} false; then : 19144 $as_echo_n "(cached) " >&6 19145else 19146 case $RAWCPP in 19147 [\\/]* | ?:[\\/]*) 19148 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 19149 ;; 19150 *) 19151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19152as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 19153for as_dir in $as_dummy 19154do 19155 IFS=$as_save_IFS 19156 test -z "$as_dir" && as_dir=. 19157 for ac_exec_ext in '' $ac_executable_extensions; do 19158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19159 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 19160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19161 break 2 19162 fi 19163done 19164 done 19165IFS=$as_save_IFS 19166 19167 ;; 19168esac 19169fi 19170RAWCPP=$ac_cv_path_RAWCPP 19171if test -n "$RAWCPP"; then 19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 19173$as_echo "$RAWCPP" >&6; } 19174else 19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19176$as_echo "no" >&6; } 19177fi 19178 19179 19180fi 19181if test -z "$ac_cv_path_RAWCPP"; then 19182 ac_pt_RAWCPP=$RAWCPP 19183 # Extract the first word of "cpp", so it can be a program name with args. 19184set dummy cpp; ac_word=$2 19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19186$as_echo_n "checking for $ac_word... " >&6; } 19187if ${ac_cv_path_ac_pt_RAWCPP+:} false; then : 19188 $as_echo_n "(cached) " >&6 19189else 19190 case $ac_pt_RAWCPP in 19191 [\\/]* | ?:[\\/]*) 19192 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 19193 ;; 19194 *) 19195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19196as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 19197for as_dir in $as_dummy 19198do 19199 IFS=$as_save_IFS 19200 test -z "$as_dir" && as_dir=. 19201 for ac_exec_ext in '' $ac_executable_extensions; do 19202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19203 ac_cv_path_ac_pt_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 19204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19205 break 2 19206 fi 19207done 19208 done 19209IFS=$as_save_IFS 19210 19211 ;; 19212esac 19213fi 19214ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 19215if test -n "$ac_pt_RAWCPP"; then 19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 19217$as_echo "$ac_pt_RAWCPP" >&6; } 19218else 19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19220$as_echo "no" >&6; } 19221fi 19222 19223 if test "x$ac_pt_RAWCPP" = x; then 19224 RAWCPP="${CPP}" 19225 else 19226 case $cross_compiling:$ac_tool_warned in 19227yes:) 19228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19230ac_tool_warned=yes ;; 19231esac 19232 RAWCPP=$ac_pt_RAWCPP 19233 fi 19234else 19235 RAWCPP="$ac_cv_path_RAWCPP" 19236fi 19237 19238 19239# Check for flag to avoid builtin definitions - assumes unix is predefined, 19240# which is not the best choice for supporting other OS'es, but covers most 19241# of the ones we need for now. 19242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 19243$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 19244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19245/* end confdefs.h. */ 19246Does cpp redefine unix ? 19247_ACEOF 19248if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19250$as_echo "no" >&6; } 19251else 19252 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19253 RAWCPPFLAGS=-undef 19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19255$as_echo "yes" >&6; } 19256 # under Cygwin unix is still defined even with -undef 19257 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19258 RAWCPPFLAGS="-undef -ansi" 19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 19260$as_echo "yes, with -ansi" >&6; } 19261 else 19262 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 19263 fi 19264fi 19265rm -f conftest.$ac_ext 19266 19267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 19268$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 19269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19270/* end confdefs.h. */ 19271Does cpp preserve "whitespace"? 19272_ACEOF 19273if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19275$as_echo "no" >&6; } 19276else 19277 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19278 TRADITIONALCPPFLAGS="-traditional" 19279 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19281$as_echo "yes" >&6; } 19282 else 19283 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 19284 fi 19285fi 19286rm -f conftest.$ac_ext 19287 19288 19289 19290 19291 19292# Preserves the interface, should it be implemented later 19293 19294 19295 19296# Check whether --with-perl was given. 19297if test "${with_perl+set}" = set; then : 19298 withval=$with_perl; use_perl=$withval 19299else 19300 use_perl=auto 19301fi 19302 19303 19304 19305if test "x$use_perl" = x"auto"; then 19306 # Extract the first word of "perl", so it can be a program name with args. 19307set dummy perl; ac_word=$2 19308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19309$as_echo_n "checking for $ac_word... " >&6; } 19310if ${ac_cv_path_PERL+:} false; then : 19311 $as_echo_n "(cached) " >&6 19312else 19313 case $PERL in 19314 [\\/]* | ?:[\\/]*) 19315 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19316 ;; 19317 *) 19318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19319for as_dir in $PATH 19320do 19321 IFS=$as_save_IFS 19322 test -z "$as_dir" && as_dir=. 19323 for ac_exec_ext in '' $ac_executable_extensions; do 19324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19325 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19327 break 2 19328 fi 19329done 19330 done 19331IFS=$as_save_IFS 19332 19333 ;; 19334esac 19335fi 19336PERL=$ac_cv_path_PERL 19337if test -n "$PERL"; then 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19339$as_echo "$PERL" >&6; } 19340else 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19342$as_echo "no" >&6; } 19343fi 19344 19345 19346 if test "x$PERL" = "x"; then 19347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 19348$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 19349 have_perl=no 19350 else 19351 have_perl=yes 19352 fi 19353elif test "x$use_perl" = x"yes" ; then 19354 # Extract the first word of "perl", so it can be a program name with args. 19355set dummy perl; ac_word=$2 19356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19357$as_echo_n "checking for $ac_word... " >&6; } 19358if ${ac_cv_path_PERL+:} false; then : 19359 $as_echo_n "(cached) " >&6 19360else 19361 case $PERL in 19362 [\\/]* | ?:[\\/]*) 19363 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19364 ;; 19365 *) 19366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19367for as_dir in $PATH 19368do 19369 IFS=$as_save_IFS 19370 test -z "$as_dir" && as_dir=. 19371 for ac_exec_ext in '' $ac_executable_extensions; do 19372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19373 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19375 break 2 19376 fi 19377done 19378 done 19379IFS=$as_save_IFS 19380 19381 ;; 19382esac 19383fi 19384PERL=$ac_cv_path_PERL 19385if test -n "$PERL"; then 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19387$as_echo "$PERL" >&6; } 19388else 19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19390$as_echo "no" >&6; } 19391fi 19392 19393 19394 if test "x$PERL" = "x"; then 19395 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 19396 fi 19397 have_perl=yes 19398elif test "x$use_perl" = x"no" ; then 19399 if test "x$PERL" != "x"; then 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 19401$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 19402 fi 19403 have_perl=no 19404else 19405 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 19406fi 19407 19408 if test "$have_perl" = yes; then 19409 HAVE_PERL_TRUE= 19410 HAVE_PERL_FALSE='#' 19411else 19412 HAVE_PERL_TRUE='#' 19413 HAVE_PERL_FALSE= 19414fi 19415 19416 19417 19418 19419# Checks for header files. 19420ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 19421if test "x$ac_cv_header_alloca_h" = xyes; then : 19422 19423$as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h 19424 19425fi 19426 19427 19428 19429# Obtain compiler/linker options for depedencies 19430 19431pkg_failed=no 19432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 19433$as_echo_n "checking for XT... " >&6; } 19434 19435if test -n "$XT_CFLAGS"; then 19436 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 19437 elif test -n "$PKG_CONFIG"; then 19438 if test -n "$PKG_CONFIG" && \ 19439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 19440 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 19441 ac_status=$? 19442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19443 test $ac_status = 0; }; then 19444 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null` 19445 test "x$?" != "x0" && pkg_failed=yes 19446else 19447 pkg_failed=yes 19448fi 19449 else 19450 pkg_failed=untried 19451fi 19452if test -n "$XT_LIBS"; then 19453 pkg_cv_XT_LIBS="$XT_LIBS" 19454 elif test -n "$PKG_CONFIG"; then 19455 if test -n "$PKG_CONFIG" && \ 19456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 19457 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 19458 ac_status=$? 19459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19460 test $ac_status = 0; }; then 19461 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null` 19462 test "x$?" != "x0" && pkg_failed=yes 19463else 19464 pkg_failed=yes 19465fi 19466 else 19467 pkg_failed=untried 19468fi 19469 19470 19471 19472if test $pkg_failed = yes; then 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19474$as_echo "no" >&6; } 19475 19476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19477 _pkg_short_errors_supported=yes 19478else 19479 _pkg_short_errors_supported=no 19480fi 19481 if test $_pkg_short_errors_supported = yes; then 19482 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1` 19483 else 19484 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1` 19485 fi 19486 # Put the nasty error message in config.log where it belongs 19487 echo "$XT_PKG_ERRORS" >&5 19488 19489 as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met: 19490 19491$XT_PKG_ERRORS 19492 19493Consider adjusting the PKG_CONFIG_PATH environment variable if you 19494installed software in a non-standard prefix. 19495 19496Alternatively, you may set the environment variables XT_CFLAGS 19497and XT_LIBS to avoid the need to call pkg-config. 19498See the pkg-config man page for more details." "$LINENO" 5 19499elif test $pkg_failed = untried; then 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19501$as_echo "no" >&6; } 19502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19504as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19505is in your PATH or set the PKG_CONFIG environment variable to the full 19506path to pkg-config. 19507 19508Alternatively, you may set the environment variables XT_CFLAGS 19509and XT_LIBS to avoid the need to call pkg-config. 19510See the pkg-config man page for more details. 19511 19512To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19513See \`config.log' for more details" "$LINENO" 5; } 19514else 19515 XT_CFLAGS=$pkg_cv_XT_CFLAGS 19516 XT_LIBS=$pkg_cv_XT_LIBS 19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19518$as_echo "yes" >&6; } 19519 19520fi 19521 19522# Set-up variables to use build machine compiler when cross-compiling 19523if test x"$CC_FOR_BUILD" = x; then 19524 if test x"$cross_compiling" = xyes; then 19525 for ac_prog in gcc cc 19526do 19527 # Extract the first word of "$ac_prog", so it can be a program name with args. 19528set dummy $ac_prog; ac_word=$2 19529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19530$as_echo_n "checking for $ac_word... " >&6; } 19531if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 19532 $as_echo_n "(cached) " >&6 19533else 19534 if test -n "$CC_FOR_BUILD"; then 19535 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 19536else 19537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19538for as_dir in $PATH 19539do 19540 IFS=$as_save_IFS 19541 test -z "$as_dir" && as_dir=. 19542 for ac_exec_ext in '' $ac_executable_extensions; do 19543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19544 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 19545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19546 break 2 19547 fi 19548done 19549 done 19550IFS=$as_save_IFS 19551 19552fi 19553fi 19554CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 19555if test -n "$CC_FOR_BUILD"; then 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 19557$as_echo "$CC_FOR_BUILD" >&6; } 19558else 19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19560$as_echo "no" >&6; } 19561fi 19562 19563 19564 test -n "$CC_FOR_BUILD" && break 19565done 19566 19567 else 19568 CC_FOR_BUILD="$CC" 19569 fi 19570fi 19571if test x"$cross_compiling" != xyes; then 19572 : ${CFLAGS_FOR_BUILD=${CFLAGS}} 19573 : ${LDFLAGS_FOR_BUILD=${LDFLAGS}} 19574fi 19575 19576DEFAULT_CPPFLAGS_FOR_BUILD="${CPPFLAGS}" 19577ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 19578if test "x$ac_cv_func_asprintf" = xyes; then : 19579 DEFAULT_CPPFLAGS_FOR_BUILD="${DEFAULT_CPPFLAGS_FOR_BUILD} -DHAVE_ASPRINTF -D_GNU_SOURCE" 19580fi 19581 19582CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${DEFAULT_CPPFLAGS_FOR_BUILD}} 19583 19584DEFAULT_CFLAGS_FOR_BUILD="${CFLAGS} ${CWARNFLAGS}" 19585 19586 19587 19588# Map function checks to old Imake #defines 19589case $host_os in 19590 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 19591 darwin[789]*|darwin10*) ;; 19592 darwin*) 19593 _ac_xorg_macosx_version_min="" 19594 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 19595 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 19596 else 19597 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 19598 fi 19599 case $_ac_xorg_macosx_version_min in 19600 10.[0123456]|10.[0123456].*) ;; 19601 *) 19602 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 19603if test "x$ac_cv_func_poll" = xyes; then : 19604 19605$as_echo "#define USE_POLL 1" >>confdefs.h 19606 19607fi 19608 19609 ;; 19610 esac 19611 unset _ac_xorg_macosx_version_min 19612 ;; 19613 *) 19614 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 19615if test "x$ac_cv_func_poll" = xyes; then : 19616 19617$as_echo "#define USE_POLL 1" >>confdefs.h 19618 19619fi 19620 19621 ;; 19622esac 19623 19624# Link with winsock if mingw target 19625case $host_os in 19626 *mingw*) 19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19628$as_echo_n "checking for main in -lws2_32... " >&6; } 19629if ${ac_cv_lib_ws2_32_main+:} false; then : 19630 $as_echo_n "(cached) " >&6 19631else 19632 ac_check_lib_save_LIBS=$LIBS 19633LIBS="-lws2_32 $LIBS" 19634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19635/* end confdefs.h. */ 19636 19637 19638int 19639main () 19640{ 19641return main (); 19642 ; 19643 return 0; 19644} 19645_ACEOF 19646if ac_fn_c_try_link "$LINENO"; then : 19647 ac_cv_lib_ws2_32_main=yes 19648else 19649 ac_cv_lib_ws2_32_main=no 19650fi 19651rm -f core conftest.err conftest.$ac_objext \ 19652 conftest$ac_exeext conftest.$ac_ext 19653LIBS=$ac_check_lib_save_LIBS 19654fi 19655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19656$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19657if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19658 cat >>confdefs.h <<_ACEOF 19659#define HAVE_LIBWS2_32 1 19660_ACEOF 19661 19662 LIBS="-lws2_32 $LIBS" 19663 19664fi 19665ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 19666 19667 ;; 19668 *) 19669 ;; 19670esac 19671 19672# Options 19673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XKB support is wanted" >&5 19674$as_echo_n "checking if XKB support is wanted... " >&6; } 19675# Check whether --enable-xkb was given. 19676if test "${enable_xkb+set}" = set; then : 19677 enableval=$enable_xkb; XKB="$enableval" 19678else 19679 XKB="yes" 19680fi 19681 19682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XKB" >&5 19683$as_echo "$XKB" >&6; } 19684if test "x$XKB" = "xyes" ; then 19685 19686$as_echo "#define XKB 1" >>confdefs.h 19687 19688fi 19689 19690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C const-support is wanted" >&5 19691$as_echo_n "checking if C const-support is wanted... " >&6; } 19692# Check whether --enable-const was given. 19693if test "${enable_const+set}" = set; then : 19694 enableval=$enable_const; USE_CONST="$enableval" 19695else 19696 USE_CONST="yes" 19697fi 19698 19699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_CONST" >&5 19700$as_echo "$USE_CONST" >&6; } 19701if test "x$USE_CONST" = "xyes" ; then 19702 19703$as_echo "#define _CONST_X_STRING 1" >>confdefs.h 19704 19705fi 19706 19707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if geo-tattler traces are wanted" >&5 19708$as_echo_n "checking if geo-tattler traces are wanted... " >&6; } 19709# Check whether --enable-geo-tattler was given. 19710if test "${enable_geo_tattler+set}" = set; then : 19711 enableval=$enable_geo_tattler; GEO_TATTLER="$enableval" 19712else 19713 GEO_TATTLER="no" 19714fi 19715 19716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEO_TATTLER" >&5 19717$as_echo "$GEO_TATTLER" >&6; } 19718if test "x$GEO_TATTLER" = "xyes" ; then 19719 19720$as_echo "#define XT_GEO_TATTLER 1" >>confdefs.h 19721 19722fi 19723 19724# --enable-unit-tests 19725 19726 19727 19728 19729 19730# Check for different types of support on different platforms 19731case $host_os in 19732 solaris*) 19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19734$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19735if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19736 $as_echo_n "(cached) " >&6 19737else 19738 ac_check_lib_save_LIBS=$LIBS 19739LIBS="-lumem $LIBS" 19740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19741/* end confdefs.h. */ 19742 19743/* Override any GCC internal prototype to avoid an error. 19744 Use char because int might match the return type of a GCC 19745 builtin and then its argument prototype would still apply. */ 19746#ifdef __cplusplus 19747extern "C" 19748#endif 19749char umem_alloc (); 19750int 19751main () 19752{ 19753return umem_alloc (); 19754 ; 19755 return 0; 19756} 19757_ACEOF 19758if ac_fn_c_try_link "$LINENO"; then : 19759 ac_cv_lib_umem_umem_alloc=yes 19760else 19761 ac_cv_lib_umem_umem_alloc=no 19762fi 19763rm -f core conftest.err conftest.$ac_objext \ 19764 conftest$ac_exeext conftest.$ac_ext 19765LIBS=$ac_check_lib_save_LIBS 19766fi 19767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19768$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19769if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19770 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19771fi 19772 19773 ;; 19774 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19775 # both directly and inverted, so should not be 0 or 255. 19776 malloc_debug_env='MALLOC_PERTURB_=15' 19777 ;; 19778 darwin*) 19779 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 19780 ;; 19781 *bsd*) 19782 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 19783 ;; 19784esac 19785 19786# User supplied flags override default flags 19787if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 19788 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 19789fi 19790 19791XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 19792 19793 19794 19795 19796 19797 19798 19799# Check whether --enable-unit-tests was given. 19800if test "${enable_unit_tests+set}" = set; then : 19801 enableval=$enable_unit_tests; enable_unit_tests=$enableval 19802else 19803 enable_unit_tests=auto 19804fi 19805 19806 19807 if test "x$enable_unit_tests" != xno; then 19808 ENABLE_UNIT_TESTS_TRUE= 19809 ENABLE_UNIT_TESTS_FALSE='#' 19810else 19811 ENABLE_UNIT_TESTS_TRUE='#' 19812 ENABLE_UNIT_TESTS_FALSE= 19813fi 19814 19815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 19816$as_echo_n "checking whether to build unit test cases... " >&6; } 19817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 19818$as_echo "$enable_unit_tests" >&6; } 19819 19820 19821 19822 19823 19824# Check whether --with-glib was given. 19825if test "${with_glib+set}" = set; then : 19826 withval=$with_glib; with_glib=$withval 19827else 19828 with_glib=auto 19829fi 19830 19831 19832 19833have_glib=no 19834# Do not probe GLib if user explicitly disabled unit testing 19835if test "x$enable_unit_tests" != x"no"; then 19836 # Do not probe GLib if user explicitly disabled it 19837 if test "x$with_glib" != x"no"; then 19838 19839pkg_failed=no 19840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 19841$as_echo_n "checking for GLIB... " >&6; } 19842 19843if test -n "$GLIB_CFLAGS"; then 19844 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 19845 elif test -n "$PKG_CONFIG"; then 19846 if test -n "$PKG_CONFIG" && \ 19847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 19848 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 19849 ac_status=$? 19850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19851 test $ac_status = 0; }; then 19852 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null` 19853 test "x$?" != "x0" && pkg_failed=yes 19854else 19855 pkg_failed=yes 19856fi 19857 else 19858 pkg_failed=untried 19859fi 19860if test -n "$GLIB_LIBS"; then 19861 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 19862 elif test -n "$PKG_CONFIG"; then 19863 if test -n "$PKG_CONFIG" && \ 19864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 19865 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 19866 ac_status=$? 19867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19868 test $ac_status = 0; }; then 19869 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null` 19870 test "x$?" != "x0" && pkg_failed=yes 19871else 19872 pkg_failed=yes 19873fi 19874 else 19875 pkg_failed=untried 19876fi 19877 19878 19879 19880if test $pkg_failed = yes; then 19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19882$as_echo "no" >&6; } 19883 19884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19885 _pkg_short_errors_supported=yes 19886else 19887 _pkg_short_errors_supported=no 19888fi 19889 if test $_pkg_short_errors_supported = yes; then 19890 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1` 19891 else 19892 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1` 19893 fi 19894 # Put the nasty error message in config.log where it belongs 19895 echo "$GLIB_PKG_ERRORS" >&5 19896 19897 have_glib=no 19898elif test $pkg_failed = untried; then 19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19900$as_echo "no" >&6; } 19901 have_glib=no 19902else 19903 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 19904 GLIB_LIBS=$pkg_cv_GLIB_LIBS 19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19906$as_echo "yes" >&6; } 19907 have_glib=yes 19908fi 19909 fi 19910fi 19911 19912# Not having GLib when unit testing has been explicitly requested is an error 19913if test "x$enable_unit_tests" = x"yes"; then 19914 if test "x$have_glib" = x"no"; then 19915 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19916 fi 19917fi 19918 19919# Having unit testing disabled when GLib has been explicitly requested is an error 19920if test "x$enable_unit_tests" = x"no"; then 19921 if test "x$with_glib" = x"yes"; then 19922 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19923 fi 19924fi 19925 19926# Not having GLib when it has been explicitly requested is an error 19927if test "x$with_glib" = x"yes"; then 19928 if test "x$have_glib" = x"no"; then 19929 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5 19930 fi 19931fi 19932 19933 if test "$have_glib" = yes; then 19934 HAVE_GLIB_TRUE= 19935 HAVE_GLIB_FALSE='#' 19936else 19937 HAVE_GLIB_TRUE='#' 19938 HAVE_GLIB_FALSE= 19939fi 19940 19941 19942 19943# Memory checking support 19944case $host_os in 19945 solaris*) 19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19947$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19948if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19949 $as_echo_n "(cached) " >&6 19950else 19951 ac_check_lib_save_LIBS=$LIBS 19952LIBS="-lumem $LIBS" 19953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19954/* end confdefs.h. */ 19955 19956/* Override any GCC internal prototype to avoid an error. 19957 Use char because int might match the return type of a GCC 19958 builtin and then its argument prototype would still apply. */ 19959#ifdef __cplusplus 19960extern "C" 19961#endif 19962char umem_alloc (); 19963int 19964main () 19965{ 19966return umem_alloc (); 19967 ; 19968 return 0; 19969} 19970_ACEOF 19971if ac_fn_c_try_link "$LINENO"; then : 19972 ac_cv_lib_umem_umem_alloc=yes 19973else 19974 ac_cv_lib_umem_umem_alloc=no 19975fi 19976rm -f core conftest.err conftest.$ac_objext \ 19977 conftest$ac_exeext conftest.$ac_ext 19978LIBS=$ac_check_lib_save_LIBS 19979fi 19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19981$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19982if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19983 MALLOC_DEBUG_ENV='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19984fi 19985 19986 ;; 19987 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19988 # both directly and inverted, so should not be 0 or 255. 19989 MALLOC_DEBUG_ENV='MALLOC_PERTURB_=15' 19990 ;; 19991 *bsd*|darwin*) 19992 MALLOC_DEBUG_ENV='MallocPreScribble=1 MallocScribble=1' 19993 ;; 19994esac 19995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for definitions to enable memory-checking support" >&5 19996$as_echo_n "checking for definitions to enable memory-checking support... " >&6; } 19997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MALLOC_DEBUG_ENV:-none}" >&5 19998$as_echo "${MALLOC_DEBUG_ENV:-none}" >&6; } 19999 20000 20001# Replaces XFileSearchPathDefault from Imake configs 20002XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S' 20003 20004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X files search path" >&5 20005$as_echo_n "checking for X files search path... " >&6; } 20006 20007# Check whether --with-xfile-search-path was given. 20008if test "${with_xfile_search_path+set}" = set; then : 20009 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval" 20010fi 20011 20012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XFILESEARCHPATHDEFAULT:-none}" >&5 20013$as_echo "${XFILESEARCHPATHDEFAULT:-none}" >&6; } 20014 20015 20016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5 20017$as_echo_n "checking for X app-defaults directory... " >&6; } 20018 20019# Check whether --with-appdefaultdir was given. 20020if test "${with_appdefaultdir+set}" = set; then : 20021 withval=$with_appdefaultdir; appdefaultdir="$withval" 20022else 20023 appdefaultdir=${datadir}/X11/app-defaults 20024fi 20025 20026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $appdefaultdir" >&5 20027$as_echo "$appdefaultdir" >&6; } 20028 20029 prefix_NONE= 20030 exec_prefix_NONE= 20031 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20032 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20033 eval ax_define_dir="\"$appdefaultdir\"" 20034 eval ax_define_dir="\"$ax_define_dir\"" 20035 appdefaultdir="$ax_define_dir" 20036 20037 20038cat >>confdefs.h <<_ACEOF 20039#define appdefaultdir "$ax_define_dir" 20040_ACEOF 20041 20042 test "$prefix_NONE" && prefix=NONE 20043 test "$exec_prefix_NONE" && exec_prefix=NONE 20044 20045 20046# Replacement for Imake ToolkitStringsABIOptions, controls string tables 20047# generated by util/string.list in StringDefs.h & Shell.h 20048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI options" >&5 20049$as_echo_n "checking for ABI options... " >&6; } 20050case $host_os in 20051 solaris*) 20052 # Solaris uses -intelabi even on SPARC 20053 STRINGSABIOPTIONS="-intelabi -solarisabinames" 20054 ;; 20055 sco* | svr4*) 20056 case $host_cpu in 20057 i*86) STRINGSABIOPTIONS="-intelabi" ;; 20058 *) STRINGSABIOPTIONS="" ;; 20059 esac 20060 ;; 20061esac 20062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STRINGSABIOPTIONS:-none}" >&5 20063$as_echo "${STRINGSABIOPTIONS:-none}" >&6; } 20064 20065 20066ERRORDBDIR=${datadir}/X11 20067 20068 20069ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile specs/libXt.ent test/Makefile xt.pc" 20070 20071cat >confcache <<\_ACEOF 20072# This file is a shell script that caches the results of configure 20073# tests run on this system so they can be shared between configure 20074# scripts and configure runs, see configure's option --config-cache. 20075# It is not useful on other systems. If it contains results you don't 20076# want to keep, you may remove or edit it. 20077# 20078# config.status only pays attention to the cache file if you give it 20079# the --recheck option to rerun configure. 20080# 20081# `ac_cv_env_foo' variables (set or unset) will be overridden when 20082# loading this file, other *unset* `ac_cv_foo' will be assigned the 20083# following values. 20084 20085_ACEOF 20086 20087# The following way of writing the cache mishandles newlines in values, 20088# but we know of no workaround that is simple, portable, and efficient. 20089# So, we kill variables containing newlines. 20090# Ultrix sh set writes to stderr and can't be redirected directly, 20091# and sets the high bit in the cache file unless we assign to the vars. 20092( 20093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20094 eval ac_val=\$$ac_var 20095 case $ac_val in #( 20096 *${as_nl}*) 20097 case $ac_var in #( 20098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20099$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20100 esac 20101 case $ac_var in #( 20102 _ | IFS | as_nl) ;; #( 20103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20104 *) { eval $ac_var=; unset $ac_var;} ;; 20105 esac ;; 20106 esac 20107 done 20108 20109 (set) 2>&1 | 20110 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20111 *${as_nl}ac_space=\ *) 20112 # `set' does not quote correctly, so add quotes: double-quote 20113 # substitution turns \\\\ into \\, and sed turns \\ into \. 20114 sed -n \ 20115 "s/'/'\\\\''/g; 20116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20117 ;; #( 20118 *) 20119 # `set' quotes correctly as required by POSIX, so do not add quotes. 20120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20121 ;; 20122 esac | 20123 sort 20124) | 20125 sed ' 20126 /^ac_cv_env_/b end 20127 t clear 20128 :clear 20129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20130 t end 20131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20132 :end' >>confcache 20133if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20134 if test -w "$cache_file"; then 20135 if test "x$cache_file" != "x/dev/null"; then 20136 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20137$as_echo "$as_me: updating cache $cache_file" >&6;} 20138 if test ! -f "$cache_file" || test -h "$cache_file"; then 20139 cat confcache >"$cache_file" 20140 else 20141 case $cache_file in #( 20142 */* | ?:*) 20143 mv -f confcache "$cache_file"$$ && 20144 mv -f "$cache_file"$$ "$cache_file" ;; #( 20145 *) 20146 mv -f confcache "$cache_file" ;; 20147 esac 20148 fi 20149 fi 20150 else 20151 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20152$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20153 fi 20154fi 20155rm -f confcache 20156 20157test "x$prefix" = xNONE && prefix=$ac_default_prefix 20158# Let make expand exec_prefix. 20159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20160 20161DEFS=-DHAVE_CONFIG_H 20162 20163ac_libobjs= 20164ac_ltlibobjs= 20165U= 20166for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20167 # 1. Remove the extension, and $U if already installed. 20168 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20169 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20170 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20171 # will be set to the directory where LIBOBJS objects are built. 20172 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20173 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20174done 20175LIBOBJS=$ac_libobjs 20176 20177LTLIBOBJS=$ac_ltlibobjs 20178 20179 20180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20181$as_echo_n "checking that generated files are newer than configure... " >&6; } 20182 if test -n "$am_sleep_pid"; then 20183 # Hide warnings about reused PIDs. 20184 wait $am_sleep_pid 2>/dev/null 20185 fi 20186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20187$as_echo "done" >&6; } 20188 if test -n "$EXEEXT"; then 20189 am__EXEEXT_TRUE= 20190 am__EXEEXT_FALSE='#' 20191else 20192 am__EXEEXT_TRUE='#' 20193 am__EXEEXT_FALSE= 20194fi 20195 20196if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20197 as_fn_error $? "conditional \"AMDEP\" was never defined. 20198Usually this means the macro was only invoked conditionally." "$LINENO" 5 20199fi 20200if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20201 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20202Usually this means the macro was only invoked conditionally." "$LINENO" 5 20203fi 20204if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 20205 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 20206Usually this means the macro was only invoked conditionally." "$LINENO" 5 20207fi 20208if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 20209 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 20210Usually this means the macro was only invoked conditionally." "$LINENO" 5 20211fi 20212if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 20213 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 20214Usually this means the macro was only invoked conditionally." "$LINENO" 5 20215fi 20216if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 20217 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 20218Usually this means the macro was only invoked conditionally." "$LINENO" 5 20219fi 20220if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 20221 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 20222Usually this means the macro was only invoked conditionally." "$LINENO" 5 20223fi 20224if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 20225 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 20226Usually this means the macro was only invoked conditionally." "$LINENO" 5 20227fi 20228if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 20229 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 20230Usually this means the macro was only invoked conditionally." "$LINENO" 5 20231fi 20232if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 20233 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 20234Usually this means the macro was only invoked conditionally." "$LINENO" 5 20235fi 20236if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then 20237 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. 20238Usually this means the macro was only invoked conditionally." "$LINENO" 5 20239fi 20240 20241: "${CONFIG_STATUS=./config.status}" 20242ac_write_fail=0 20243ac_clean_files_save=$ac_clean_files 20244ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20245{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20246$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20247as_write_fail=0 20248cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20249#! $SHELL 20250# Generated by $as_me. 20251# Run this file to recreate the current configuration. 20252# Compiler output produced by configure, useful for debugging 20253# configure, is in config.log if it exists. 20254 20255debug=false 20256ac_cs_recheck=false 20257ac_cs_silent=false 20258 20259SHELL=\${CONFIG_SHELL-$SHELL} 20260export SHELL 20261_ASEOF 20262cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20263## -------------------- ## 20264## M4sh Initialization. ## 20265## -------------------- ## 20266 20267# Be more Bourne compatible 20268DUALCASE=1; export DUALCASE # for MKS sh 20269if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20270 emulate sh 20271 NULLCMD=: 20272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20273 # is contrary to our usage. Disable this feature. 20274 alias -g '${1+"$@"}'='"$@"' 20275 setopt NO_GLOB_SUBST 20276else 20277 case `(set -o) 2>/dev/null` in #( 20278 *posix*) : 20279 set -o posix ;; #( 20280 *) : 20281 ;; 20282esac 20283fi 20284 20285 20286as_nl=' 20287' 20288export as_nl 20289# Printing a long string crashes Solaris 7 /usr/bin/printf. 20290as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20291as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20292as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20293# Prefer a ksh shell builtin over an external printf program on Solaris, 20294# but without wasting forks for bash or zsh. 20295if test -z "$BASH_VERSION$ZSH_VERSION" \ 20296 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20297 as_echo='print -r --' 20298 as_echo_n='print -rn --' 20299elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20300 as_echo='printf %s\n' 20301 as_echo_n='printf %s' 20302else 20303 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20304 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20305 as_echo_n='/usr/ucb/echo -n' 20306 else 20307 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20308 as_echo_n_body='eval 20309 arg=$1; 20310 case $arg in #( 20311 *"$as_nl"*) 20312 expr "X$arg" : "X\\(.*\\)$as_nl"; 20313 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20314 esac; 20315 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20316 ' 20317 export as_echo_n_body 20318 as_echo_n='sh -c $as_echo_n_body as_echo' 20319 fi 20320 export as_echo_body 20321 as_echo='sh -c $as_echo_body as_echo' 20322fi 20323 20324# The user is always right. 20325if test "${PATH_SEPARATOR+set}" != set; then 20326 PATH_SEPARATOR=: 20327 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20328 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20329 PATH_SEPARATOR=';' 20330 } 20331fi 20332 20333 20334# IFS 20335# We need space, tab and new line, in precisely that order. Quoting is 20336# there to prevent editors from complaining about space-tab. 20337# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20338# splitting by setting IFS to empty value.) 20339IFS=" "" $as_nl" 20340 20341# Find who we are. Look in the path if we contain no directory separator. 20342as_myself= 20343case $0 in #(( 20344 *[\\/]* ) as_myself=$0 ;; 20345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20346for as_dir in $PATH 20347do 20348 IFS=$as_save_IFS 20349 test -z "$as_dir" && as_dir=. 20350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20351 done 20352IFS=$as_save_IFS 20353 20354 ;; 20355esac 20356# We did not find ourselves, most probably we were run as `sh COMMAND' 20357# in which case we are not to be found in the path. 20358if test "x$as_myself" = x; then 20359 as_myself=$0 20360fi 20361if test ! -f "$as_myself"; then 20362 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20363 exit 1 20364fi 20365 20366# Unset variables that we do not need and which cause bugs (e.g. in 20367# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20368# suppresses any "Segmentation fault" message there. '((' could 20369# trigger a bug in pdksh 5.2.14. 20370for as_var in BASH_ENV ENV MAIL MAILPATH 20371do eval test x\${$as_var+set} = xset \ 20372 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20373done 20374PS1='$ ' 20375PS2='> ' 20376PS4='+ ' 20377 20378# NLS nuisances. 20379LC_ALL=C 20380export LC_ALL 20381LANGUAGE=C 20382export LANGUAGE 20383 20384# CDPATH. 20385(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20386 20387 20388# as_fn_error STATUS ERROR [LINENO LOG_FD] 20389# ---------------------------------------- 20390# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20391# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20392# script with STATUS, using 1 if that was 0. 20393as_fn_error () 20394{ 20395 as_status=$1; test $as_status -eq 0 && as_status=1 20396 if test "$4"; then 20397 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20398 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20399 fi 20400 $as_echo "$as_me: error: $2" >&2 20401 as_fn_exit $as_status 20402} # as_fn_error 20403 20404 20405# as_fn_set_status STATUS 20406# ----------------------- 20407# Set $? to STATUS, without forking. 20408as_fn_set_status () 20409{ 20410 return $1 20411} # as_fn_set_status 20412 20413# as_fn_exit STATUS 20414# ----------------- 20415# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20416as_fn_exit () 20417{ 20418 set +e 20419 as_fn_set_status $1 20420 exit $1 20421} # as_fn_exit 20422 20423# as_fn_unset VAR 20424# --------------- 20425# Portably unset VAR. 20426as_fn_unset () 20427{ 20428 { eval $1=; unset $1;} 20429} 20430as_unset=as_fn_unset 20431# as_fn_append VAR VALUE 20432# ---------------------- 20433# Append the text in VALUE to the end of the definition contained in VAR. Take 20434# advantage of any shell optimizations that allow amortized linear growth over 20435# repeated appends, instead of the typical quadratic growth present in naive 20436# implementations. 20437if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20438 eval 'as_fn_append () 20439 { 20440 eval $1+=\$2 20441 }' 20442else 20443 as_fn_append () 20444 { 20445 eval $1=\$$1\$2 20446 } 20447fi # as_fn_append 20448 20449# as_fn_arith ARG... 20450# ------------------ 20451# Perform arithmetic evaluation on the ARGs, and store the result in the 20452# global $as_val. Take advantage of shells that can avoid forks. The arguments 20453# must be portable across $(()) and expr. 20454if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20455 eval 'as_fn_arith () 20456 { 20457 as_val=$(( $* )) 20458 }' 20459else 20460 as_fn_arith () 20461 { 20462 as_val=`expr "$@" || test $? -eq 1` 20463 } 20464fi # as_fn_arith 20465 20466 20467if expr a : '\(a\)' >/dev/null 2>&1 && 20468 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20469 as_expr=expr 20470else 20471 as_expr=false 20472fi 20473 20474if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20475 as_basename=basename 20476else 20477 as_basename=false 20478fi 20479 20480if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20481 as_dirname=dirname 20482else 20483 as_dirname=false 20484fi 20485 20486as_me=`$as_basename -- "$0" || 20487$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20488 X"$0" : 'X\(//\)$' \| \ 20489 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20490$as_echo X/"$0" | 20491 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20492 s//\1/ 20493 q 20494 } 20495 /^X\/\(\/\/\)$/{ 20496 s//\1/ 20497 q 20498 } 20499 /^X\/\(\/\).*/{ 20500 s//\1/ 20501 q 20502 } 20503 s/.*/./; q'` 20504 20505# Avoid depending upon Character Ranges. 20506as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20507as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20508as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20509as_cr_digits='0123456789' 20510as_cr_alnum=$as_cr_Letters$as_cr_digits 20511 20512ECHO_C= ECHO_N= ECHO_T= 20513case `echo -n x` in #((((( 20514-n*) 20515 case `echo 'xy\c'` in 20516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20517 xy) ECHO_C='\c';; 20518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20519 ECHO_T=' ';; 20520 esac;; 20521*) 20522 ECHO_N='-n';; 20523esac 20524 20525rm -f conf$$ conf$$.exe conf$$.file 20526if test -d conf$$.dir; then 20527 rm -f conf$$.dir/conf$$.file 20528else 20529 rm -f conf$$.dir 20530 mkdir conf$$.dir 2>/dev/null 20531fi 20532if (echo >conf$$.file) 2>/dev/null; then 20533 if ln -s conf$$.file conf$$ 2>/dev/null; then 20534 as_ln_s='ln -s' 20535 # ... but there are two gotchas: 20536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20538 # In both cases, we have to default to `cp -pR'. 20539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20540 as_ln_s='cp -pR' 20541 elif ln conf$$.file conf$$ 2>/dev/null; then 20542 as_ln_s=ln 20543 else 20544 as_ln_s='cp -pR' 20545 fi 20546else 20547 as_ln_s='cp -pR' 20548fi 20549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20550rmdir conf$$.dir 2>/dev/null 20551 20552 20553# as_fn_mkdir_p 20554# ------------- 20555# Create "$as_dir" as a directory, including parents if necessary. 20556as_fn_mkdir_p () 20557{ 20558 20559 case $as_dir in #( 20560 -*) as_dir=./$as_dir;; 20561 esac 20562 test -d "$as_dir" || eval $as_mkdir_p || { 20563 as_dirs= 20564 while :; do 20565 case $as_dir in #( 20566 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20567 *) as_qdir=$as_dir;; 20568 esac 20569 as_dirs="'$as_qdir' $as_dirs" 20570 as_dir=`$as_dirname -- "$as_dir" || 20571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20572 X"$as_dir" : 'X\(//\)[^/]' \| \ 20573 X"$as_dir" : 'X\(//\)$' \| \ 20574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20575$as_echo X"$as_dir" | 20576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20577 s//\1/ 20578 q 20579 } 20580 /^X\(\/\/\)[^/].*/{ 20581 s//\1/ 20582 q 20583 } 20584 /^X\(\/\/\)$/{ 20585 s//\1/ 20586 q 20587 } 20588 /^X\(\/\).*/{ 20589 s//\1/ 20590 q 20591 } 20592 s/.*/./; q'` 20593 test -d "$as_dir" && break 20594 done 20595 test -z "$as_dirs" || eval "mkdir $as_dirs" 20596 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20597 20598 20599} # as_fn_mkdir_p 20600if mkdir -p . 2>/dev/null; then 20601 as_mkdir_p='mkdir -p "$as_dir"' 20602else 20603 test -d ./-p && rmdir ./-p 20604 as_mkdir_p=false 20605fi 20606 20607 20608# as_fn_executable_p FILE 20609# ----------------------- 20610# Test if FILE is an executable regular file. 20611as_fn_executable_p () 20612{ 20613 test -f "$1" && test -x "$1" 20614} # as_fn_executable_p 20615as_test_x='test -x' 20616as_executable_p=as_fn_executable_p 20617 20618# Sed expression to map a string onto a valid CPP name. 20619as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20620 20621# Sed expression to map a string onto a valid variable name. 20622as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20623 20624 20625exec 6>&1 20626## ----------------------------------- ## 20627## Main body of $CONFIG_STATUS script. ## 20628## ----------------------------------- ## 20629_ASEOF 20630test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20631 20632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20633# Save the log message, to keep $0 and so on meaningful, and to 20634# report actual input values of CONFIG_FILES etc. instead of their 20635# values after options handling. 20636ac_log=" 20637This file was extended by libXt $as_me 1.2.1, which was 20638generated by GNU Autoconf 2.69. Invocation command line was 20639 20640 CONFIG_FILES = $CONFIG_FILES 20641 CONFIG_HEADERS = $CONFIG_HEADERS 20642 CONFIG_LINKS = $CONFIG_LINKS 20643 CONFIG_COMMANDS = $CONFIG_COMMANDS 20644 $ $0 $@ 20645 20646on `(hostname || uname -n) 2>/dev/null | sed 1q` 20647" 20648 20649_ACEOF 20650 20651case $ac_config_files in *" 20652"*) set x $ac_config_files; shift; ac_config_files=$*;; 20653esac 20654 20655case $ac_config_headers in *" 20656"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20657esac 20658 20659 20660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20661# Files that config.status was made for. 20662config_files="$ac_config_files" 20663config_headers="$ac_config_headers" 20664config_commands="$ac_config_commands" 20665 20666_ACEOF 20667 20668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20669ac_cs_usage="\ 20670\`$as_me' instantiates files and other configuration actions 20671from templates according to the current configuration. Unless the files 20672and actions are specified as TAGs, all are instantiated by default. 20673 20674Usage: $0 [OPTION]... [TAG]... 20675 20676 -h, --help print this help, then exit 20677 -V, --version print version number and configuration settings, then exit 20678 --config print configuration, then exit 20679 -q, --quiet, --silent 20680 do not print progress messages 20681 -d, --debug don't remove temporary files 20682 --recheck update $as_me by reconfiguring in the same conditions 20683 --file=FILE[:TEMPLATE] 20684 instantiate the configuration file FILE 20685 --header=FILE[:TEMPLATE] 20686 instantiate the configuration header FILE 20687 20688Configuration files: 20689$config_files 20690 20691Configuration headers: 20692$config_headers 20693 20694Configuration commands: 20695$config_commands 20696 20697Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXt/issues>." 20698 20699_ACEOF 20700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20701ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20702ac_cs_version="\\ 20703libXt config.status 1.2.1 20704configured by $0, generated by GNU Autoconf 2.69, 20705 with options \\"\$ac_cs_config\\" 20706 20707Copyright (C) 2012 Free Software Foundation, Inc. 20708This config.status script is free software; the Free Software Foundation 20709gives unlimited permission to copy, distribute and modify it." 20710 20711ac_pwd='$ac_pwd' 20712srcdir='$srcdir' 20713INSTALL='$INSTALL' 20714MKDIR_P='$MKDIR_P' 20715AWK='$AWK' 20716test -n "\$AWK" || AWK=awk 20717_ACEOF 20718 20719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20720# The default lists apply if the user does not specify any file. 20721ac_need_defaults=: 20722while test $# != 0 20723do 20724 case $1 in 20725 --*=?*) 20726 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20728 ac_shift=: 20729 ;; 20730 --*=) 20731 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20732 ac_optarg= 20733 ac_shift=: 20734 ;; 20735 *) 20736 ac_option=$1 20737 ac_optarg=$2 20738 ac_shift=shift 20739 ;; 20740 esac 20741 20742 case $ac_option in 20743 # Handling of the options. 20744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20745 ac_cs_recheck=: ;; 20746 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20747 $as_echo "$ac_cs_version"; exit ;; 20748 --config | --confi | --conf | --con | --co | --c ) 20749 $as_echo "$ac_cs_config"; exit ;; 20750 --debug | --debu | --deb | --de | --d | -d ) 20751 debug=: ;; 20752 --file | --fil | --fi | --f ) 20753 $ac_shift 20754 case $ac_optarg in 20755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20756 '') as_fn_error $? "missing file argument" ;; 20757 esac 20758 as_fn_append CONFIG_FILES " '$ac_optarg'" 20759 ac_need_defaults=false;; 20760 --header | --heade | --head | --hea ) 20761 $ac_shift 20762 case $ac_optarg in 20763 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20764 esac 20765 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20766 ac_need_defaults=false;; 20767 --he | --h) 20768 # Conflict between --help and --header 20769 as_fn_error $? "ambiguous option: \`$1' 20770Try \`$0 --help' for more information.";; 20771 --help | --hel | -h ) 20772 $as_echo "$ac_cs_usage"; exit ;; 20773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20774 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20775 ac_cs_silent=: ;; 20776 20777 # This is an error. 20778 -*) as_fn_error $? "unrecognized option: \`$1' 20779Try \`$0 --help' for more information." ;; 20780 20781 *) as_fn_append ac_config_targets " $1" 20782 ac_need_defaults=false ;; 20783 20784 esac 20785 shift 20786done 20787 20788ac_configure_extra_args= 20789 20790if $ac_cs_silent; then 20791 exec 6>/dev/null 20792 ac_configure_extra_args="$ac_configure_extra_args --silent" 20793fi 20794 20795_ACEOF 20796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20797if \$ac_cs_recheck; then 20798 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20799 shift 20800 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20801 CONFIG_SHELL='$SHELL' 20802 export CONFIG_SHELL 20803 exec "\$@" 20804fi 20805 20806_ACEOF 20807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20808exec 5>>config.log 20809{ 20810 echo 20811 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20812## Running $as_me. ## 20813_ASBOX 20814 $as_echo "$ac_log" 20815} >&5 20816 20817_ACEOF 20818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20819# 20820# INIT-COMMANDS 20821# 20822AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20823 20824 20825# The HP-UX ksh and POSIX shell print the target directory to stdout 20826# if CDPATH is set. 20827(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20828 20829sed_quote_subst='$sed_quote_subst' 20830double_quote_subst='$double_quote_subst' 20831delay_variable_subst='$delay_variable_subst' 20832macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20833macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20834enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20835enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20836pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20837enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20838shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20839SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20840ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20841PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20842host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20843host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20844host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20845build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20846build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20847build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20848SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20849Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20850GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20851EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20852FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20853LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20854NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20855LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20856max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20857ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20858exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20859lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20860lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20861lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20862lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20863lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20864reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20865reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20866OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20867deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20868file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20869file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20870want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20871DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20872sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20873AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20874AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20875archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20876STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20877RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20878old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20879old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20880old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20881lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20882CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20883CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20884compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20885GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20886lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20887lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20888lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20889lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20890lt_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"`' 20891lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20892nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20893lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20894lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20895objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20896MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20897lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20898lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20899lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20900lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20901lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20902need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20903MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20904DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20905NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20906LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20907OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20908OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20909libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20910shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20911extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20912archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20913enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20914export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20915whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20916compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20917old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20918old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20919archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20920archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20921module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20922module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20923with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20924allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20925no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20926hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20927hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20928hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20929hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20930hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20931hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20932hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20933inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20934link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20935always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20936export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20937exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20938include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20939prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20940postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20941file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20942variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20943need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20944need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20945version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20946runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20947shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20948shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20949libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20950library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20951soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20952install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20953postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20954postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20955finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20956finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20957hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20958sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20959configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20960configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20961hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20962enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20963enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20964enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20965old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20966striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20967 20968LTCC='$LTCC' 20969LTCFLAGS='$LTCFLAGS' 20970compiler='$compiler_DEFAULT' 20971 20972# A function that is used when there is no print builtin or printf. 20973func_fallback_echo () 20974{ 20975 eval 'cat <<_LTECHO_EOF 20976\$1 20977_LTECHO_EOF' 20978} 20979 20980# Quote evaled strings. 20981for var in SHELL \ 20982ECHO \ 20983PATH_SEPARATOR \ 20984SED \ 20985GREP \ 20986EGREP \ 20987FGREP \ 20988LD \ 20989NM \ 20990LN_S \ 20991lt_SP2NL \ 20992lt_NL2SP \ 20993reload_flag \ 20994OBJDUMP \ 20995deplibs_check_method \ 20996file_magic_cmd \ 20997file_magic_glob \ 20998want_nocaseglob \ 20999DLLTOOL \ 21000sharedlib_from_linklib_cmd \ 21001AR \ 21002AR_FLAGS \ 21003archiver_list_spec \ 21004STRIP \ 21005RANLIB \ 21006CC \ 21007CFLAGS \ 21008compiler \ 21009lt_cv_sys_global_symbol_pipe \ 21010lt_cv_sys_global_symbol_to_cdecl \ 21011lt_cv_sys_global_symbol_to_import \ 21012lt_cv_sys_global_symbol_to_c_name_address \ 21013lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21014lt_cv_nm_interface \ 21015nm_file_list_spec \ 21016lt_cv_truncate_bin \ 21017lt_prog_compiler_no_builtin_flag \ 21018lt_prog_compiler_pic \ 21019lt_prog_compiler_wl \ 21020lt_prog_compiler_static \ 21021lt_cv_prog_compiler_c_o \ 21022need_locks \ 21023MANIFEST_TOOL \ 21024DSYMUTIL \ 21025NMEDIT \ 21026LIPO \ 21027OTOOL \ 21028OTOOL64 \ 21029shrext_cmds \ 21030export_dynamic_flag_spec \ 21031whole_archive_flag_spec \ 21032compiler_needs_object \ 21033with_gnu_ld \ 21034allow_undefined_flag \ 21035no_undefined_flag \ 21036hardcode_libdir_flag_spec \ 21037hardcode_libdir_separator \ 21038exclude_expsyms \ 21039include_expsyms \ 21040file_list_spec \ 21041variables_saved_for_relink \ 21042libname_spec \ 21043library_names_spec \ 21044soname_spec \ 21045install_override_mode \ 21046finish_eval \ 21047old_striplib \ 21048striplib; do 21049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21050 *[\\\\\\\`\\"\\\$]*) 21051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21052 ;; 21053 *) 21054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21055 ;; 21056 esac 21057done 21058 21059# Double-quote double-evaled strings. 21060for var in reload_cmds \ 21061old_postinstall_cmds \ 21062old_postuninstall_cmds \ 21063old_archive_cmds \ 21064extract_expsyms_cmds \ 21065old_archive_from_new_cmds \ 21066old_archive_from_expsyms_cmds \ 21067archive_cmds \ 21068archive_expsym_cmds \ 21069module_cmds \ 21070module_expsym_cmds \ 21071export_symbols_cmds \ 21072prelink_cmds \ 21073postlink_cmds \ 21074postinstall_cmds \ 21075postuninstall_cmds \ 21076finish_cmds \ 21077sys_lib_search_path_spec \ 21078configure_time_dlsearch_path \ 21079configure_time_lt_sys_library_path; do 21080 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21081 *[\\\\\\\`\\"\\\$]*) 21082 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21083 ;; 21084 *) 21085 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21086 ;; 21087 esac 21088done 21089 21090ac_aux_dir='$ac_aux_dir' 21091 21092# See if we are running on zsh, and set the options that allow our 21093# commands through without removal of \ escapes INIT. 21094if test -n "\${ZSH_VERSION+set}"; then 21095 setopt NO_GLOB_SUBST 21096fi 21097 21098 21099 PACKAGE='$PACKAGE' 21100 VERSION='$VERSION' 21101 RM='$RM' 21102 ofile='$ofile' 21103 21104 21105 21106 21107_ACEOF 21108 21109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21110 21111# Handling of arguments. 21112for ac_config_target in $ac_config_targets 21113do 21114 case $ac_config_target in 21115 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21116 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21117 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21119 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21120 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 21121 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21122 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21123 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 21124 "specs/libXt.ent") CONFIG_FILES="$CONFIG_FILES specs/libXt.ent" ;; 21125 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21126 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;; 21127 21128 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21129 esac 21130done 21131 21132 21133# If the user did not use the arguments to specify the items to instantiate, 21134# then the envvar interface is used. Set only those that are not. 21135# We use the long form for the default assignment because of an extremely 21136# bizarre bug on SunOS 4.1.3. 21137if $ac_need_defaults; then 21138 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21139 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21140 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21141fi 21142 21143# Have a temporary directory for convenience. Make it in the build tree 21144# simply because there is no reason against having it here, and in addition, 21145# creating and moving files from /tmp can sometimes cause problems. 21146# Hook for its removal unless debugging. 21147# Note that there is a small window in which the directory will not be cleaned: 21148# after its creation but before its name has been assigned to `$tmp'. 21149$debug || 21150{ 21151 tmp= ac_tmp= 21152 trap 'exit_status=$? 21153 : "${ac_tmp:=$tmp}" 21154 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21155' 0 21156 trap 'as_fn_exit 1' 1 2 13 15 21157} 21158# Create a (secure) tmp directory for tmp files. 21159 21160{ 21161 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21162 test -d "$tmp" 21163} || 21164{ 21165 tmp=./conf$$-$RANDOM 21166 (umask 077 && mkdir "$tmp") 21167} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21168ac_tmp=$tmp 21169 21170# Set up the scripts for CONFIG_FILES section. 21171# No need to generate them if there are no CONFIG_FILES. 21172# This happens for instance with `./config.status config.h'. 21173if test -n "$CONFIG_FILES"; then 21174 21175 21176ac_cr=`echo X | tr X '\015'` 21177# On cygwin, bash can eat \r inside `` if the user requested igncr. 21178# But we know of no other shell where ac_cr would be empty at this 21179# point, so we can use a bashism as a fallback. 21180if test "x$ac_cr" = x; then 21181 eval ac_cr=\$\'\\r\' 21182fi 21183ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21184if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21185 ac_cs_awk_cr='\\r' 21186else 21187 ac_cs_awk_cr=$ac_cr 21188fi 21189 21190echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21191_ACEOF 21192 21193 21194{ 21195 echo "cat >conf$$subs.awk <<_ACEOF" && 21196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21197 echo "_ACEOF" 21198} >conf$$subs.sh || 21199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21200ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21201ac_delim='%!_!# ' 21202for ac_last_try in false false false false false :; do 21203 . ./conf$$subs.sh || 21204 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21205 21206 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21207 if test $ac_delim_n = $ac_delim_num; then 21208 break 21209 elif $ac_last_try; then 21210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21211 else 21212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21213 fi 21214done 21215rm -f conf$$subs.sh 21216 21217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21218cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21219_ACEOF 21220sed -n ' 21221h 21222s/^/S["/; s/!.*/"]=/ 21223p 21224g 21225s/^[^!]*!// 21226:repl 21227t repl 21228s/'"$ac_delim"'$// 21229t delim 21230:nl 21231h 21232s/\(.\{148\}\)..*/\1/ 21233t more1 21234s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21235p 21236n 21237b repl 21238:more1 21239s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21240p 21241g 21242s/.\{148\}// 21243t nl 21244:delim 21245h 21246s/\(.\{148\}\)..*/\1/ 21247t more2 21248s/["\\]/\\&/g; s/^/"/; s/$/"/ 21249p 21250b 21251:more2 21252s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21253p 21254g 21255s/.\{148\}// 21256t delim 21257' <conf$$subs.awk | sed ' 21258/^[^""]/{ 21259 N 21260 s/\n// 21261} 21262' >>$CONFIG_STATUS || ac_write_fail=1 21263rm -f conf$$subs.awk 21264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21265_ACAWK 21266cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21267 for (key in S) S_is_set[key] = 1 21268 FS = "" 21269 21270} 21271{ 21272 line = $ 0 21273 nfields = split(line, field, "@") 21274 substed = 0 21275 len = length(field[1]) 21276 for (i = 2; i < nfields; i++) { 21277 key = field[i] 21278 keylen = length(key) 21279 if (S_is_set[key]) { 21280 value = S[key] 21281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21282 len += length(value) + length(field[++i]) 21283 substed = 1 21284 } else 21285 len += 1 + keylen 21286 } 21287 21288 print line 21289} 21290 21291_ACAWK 21292_ACEOF 21293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21294if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21295 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21296else 21297 cat 21298fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21299 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21300_ACEOF 21301 21302# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21303# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21304# trailing colons and then remove the whole line if VPATH becomes empty 21305# (actually we leave an empty line to preserve line numbers). 21306if test "x$srcdir" = x.; then 21307 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21308h 21309s/// 21310s/^/:/ 21311s/[ ]*$/:/ 21312s/:\$(srcdir):/:/g 21313s/:\${srcdir}:/:/g 21314s/:@srcdir@:/:/g 21315s/^:*// 21316s/:*$// 21317x 21318s/\(=[ ]*\).*/\1/ 21319G 21320s/\n// 21321s/^[^=]*=[ ]*$// 21322}' 21323fi 21324 21325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21326fi # test -n "$CONFIG_FILES" 21327 21328# Set up the scripts for CONFIG_HEADERS section. 21329# No need to generate them if there are no CONFIG_HEADERS. 21330# This happens for instance with `./config.status Makefile'. 21331if test -n "$CONFIG_HEADERS"; then 21332cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21333BEGIN { 21334_ACEOF 21335 21336# Transform confdefs.h into an awk script `defines.awk', embedded as 21337# here-document in config.status, that substitutes the proper values into 21338# config.h.in to produce config.h. 21339 21340# Create a delimiter string that does not exist in confdefs.h, to ease 21341# handling of long lines. 21342ac_delim='%!_!# ' 21343for ac_last_try in false false :; do 21344 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21345 if test -z "$ac_tt"; then 21346 break 21347 elif $ac_last_try; then 21348 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21349 else 21350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21351 fi 21352done 21353 21354# For the awk script, D is an array of macro values keyed by name, 21355# likewise P contains macro parameters if any. Preserve backslash 21356# newline sequences. 21357 21358ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21359sed -n ' 21360s/.\{148\}/&'"$ac_delim"'/g 21361t rset 21362:rset 21363s/^[ ]*#[ ]*define[ ][ ]*/ / 21364t def 21365d 21366:def 21367s/\\$// 21368t bsnl 21369s/["\\]/\\&/g 21370s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21371D["\1"]=" \3"/p 21372s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21373d 21374:bsnl 21375s/["\\]/\\&/g 21376s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21377D["\1"]=" \3\\\\\\n"\\/p 21378t cont 21379s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21380t cont 21381d 21382:cont 21383n 21384s/.\{148\}/&'"$ac_delim"'/g 21385t clear 21386:clear 21387s/\\$// 21388t bsnlc 21389s/["\\]/\\&/g; s/^/"/; s/$/"/p 21390d 21391:bsnlc 21392s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21393b cont 21394' <confdefs.h | sed ' 21395s/'"$ac_delim"'/"\\\ 21396"/g' >>$CONFIG_STATUS || ac_write_fail=1 21397 21398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21399 for (key in D) D_is_set[key] = 1 21400 FS = "" 21401} 21402/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21403 line = \$ 0 21404 split(line, arg, " ") 21405 if (arg[1] == "#") { 21406 defundef = arg[2] 21407 mac1 = arg[3] 21408 } else { 21409 defundef = substr(arg[1], 2) 21410 mac1 = arg[2] 21411 } 21412 split(mac1, mac2, "(") #) 21413 macro = mac2[1] 21414 prefix = substr(line, 1, index(line, defundef) - 1) 21415 if (D_is_set[macro]) { 21416 # Preserve the white space surrounding the "#". 21417 print prefix "define", macro P[macro] D[macro] 21418 next 21419 } else { 21420 # Replace #undef with comments. This is necessary, for example, 21421 # in the case of _POSIX_SOURCE, which is predefined and required 21422 # on some systems where configure will not decide to define it. 21423 if (defundef == "undef") { 21424 print "/*", prefix defundef, macro, "*/" 21425 next 21426 } 21427 } 21428} 21429{ print } 21430_ACAWK 21431_ACEOF 21432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21433 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21434fi # test -n "$CONFIG_HEADERS" 21435 21436 21437eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21438shift 21439for ac_tag 21440do 21441 case $ac_tag in 21442 :[FHLC]) ac_mode=$ac_tag; continue;; 21443 esac 21444 case $ac_mode$ac_tag in 21445 :[FHL]*:*);; 21446 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21447 :[FH]-) ac_tag=-:-;; 21448 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21449 esac 21450 ac_save_IFS=$IFS 21451 IFS=: 21452 set x $ac_tag 21453 IFS=$ac_save_IFS 21454 shift 21455 ac_file=$1 21456 shift 21457 21458 case $ac_mode in 21459 :L) ac_source=$1;; 21460 :[FH]) 21461 ac_file_inputs= 21462 for ac_f 21463 do 21464 case $ac_f in 21465 -) ac_f="$ac_tmp/stdin";; 21466 *) # Look for the file first in the build tree, then in the source tree 21467 # (if the path is not absolute). The absolute path cannot be DOS-style, 21468 # because $ac_f cannot contain `:'. 21469 test -f "$ac_f" || 21470 case $ac_f in 21471 [\\/$]*) false;; 21472 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21473 esac || 21474 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21475 esac 21476 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21477 as_fn_append ac_file_inputs " '$ac_f'" 21478 done 21479 21480 # Let's still pretend it is `configure' which instantiates (i.e., don't 21481 # use $as_me), people would be surprised to read: 21482 # /* config.h. Generated by config.status. */ 21483 configure_input='Generated from '` 21484 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21485 `' by configure.' 21486 if test x"$ac_file" != x-; then 21487 configure_input="$ac_file. $configure_input" 21488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21489$as_echo "$as_me: creating $ac_file" >&6;} 21490 fi 21491 # Neutralize special characters interpreted by sed in replacement strings. 21492 case $configure_input in #( 21493 *\&* | *\|* | *\\* ) 21494 ac_sed_conf_input=`$as_echo "$configure_input" | 21495 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21496 *) ac_sed_conf_input=$configure_input;; 21497 esac 21498 21499 case $ac_tag in 21500 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21502 esac 21503 ;; 21504 esac 21505 21506 ac_dir=`$as_dirname -- "$ac_file" || 21507$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21508 X"$ac_file" : 'X\(//\)[^/]' \| \ 21509 X"$ac_file" : 'X\(//\)$' \| \ 21510 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21511$as_echo X"$ac_file" | 21512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21513 s//\1/ 21514 q 21515 } 21516 /^X\(\/\/\)[^/].*/{ 21517 s//\1/ 21518 q 21519 } 21520 /^X\(\/\/\)$/{ 21521 s//\1/ 21522 q 21523 } 21524 /^X\(\/\).*/{ 21525 s//\1/ 21526 q 21527 } 21528 s/.*/./; q'` 21529 as_dir="$ac_dir"; as_fn_mkdir_p 21530 ac_builddir=. 21531 21532case "$ac_dir" in 21533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21534*) 21535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21536 # A ".." for each directory in $ac_dir_suffix. 21537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21538 case $ac_top_builddir_sub in 21539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21541 esac ;; 21542esac 21543ac_abs_top_builddir=$ac_pwd 21544ac_abs_builddir=$ac_pwd$ac_dir_suffix 21545# for backward compatibility: 21546ac_top_builddir=$ac_top_build_prefix 21547 21548case $srcdir in 21549 .) # We are building in place. 21550 ac_srcdir=. 21551 ac_top_srcdir=$ac_top_builddir_sub 21552 ac_abs_top_srcdir=$ac_pwd ;; 21553 [\\/]* | ?:[\\/]* ) # Absolute name. 21554 ac_srcdir=$srcdir$ac_dir_suffix; 21555 ac_top_srcdir=$srcdir 21556 ac_abs_top_srcdir=$srcdir ;; 21557 *) # Relative name. 21558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21559 ac_top_srcdir=$ac_top_build_prefix$srcdir 21560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21561esac 21562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21563 21564 21565 case $ac_mode in 21566 :F) 21567 # 21568 # CONFIG_FILE 21569 # 21570 21571 case $INSTALL in 21572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21573 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21574 esac 21575 ac_MKDIR_P=$MKDIR_P 21576 case $MKDIR_P in 21577 [\\/$]* | ?:[\\/]* ) ;; 21578 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21579 esac 21580_ACEOF 21581 21582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21583# If the template does not know about datarootdir, expand it. 21584# FIXME: This hack should be removed a few years after 2.60. 21585ac_datarootdir_hack=; ac_datarootdir_seen= 21586ac_sed_dataroot=' 21587/datarootdir/ { 21588 p 21589 q 21590} 21591/@datadir@/p 21592/@docdir@/p 21593/@infodir@/p 21594/@localedir@/p 21595/@mandir@/p' 21596case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21597*datarootdir*) ac_datarootdir_seen=yes;; 21598*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21600$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21601_ACEOF 21602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21603 ac_datarootdir_hack=' 21604 s&@datadir@&$datadir&g 21605 s&@docdir@&$docdir&g 21606 s&@infodir@&$infodir&g 21607 s&@localedir@&$localedir&g 21608 s&@mandir@&$mandir&g 21609 s&\\\${datarootdir}&$datarootdir&g' ;; 21610esac 21611_ACEOF 21612 21613# Neutralize VPATH when `$srcdir' = `.'. 21614# Shell code in configure.ac might set extrasub. 21615# FIXME: do we really want to maintain this feature? 21616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21617ac_sed_extra="$ac_vpsub 21618$extrasub 21619_ACEOF 21620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21621:t 21622/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21623s|@configure_input@|$ac_sed_conf_input|;t t 21624s&@top_builddir@&$ac_top_builddir_sub&;t t 21625s&@top_build_prefix@&$ac_top_build_prefix&;t t 21626s&@srcdir@&$ac_srcdir&;t t 21627s&@abs_srcdir@&$ac_abs_srcdir&;t t 21628s&@top_srcdir@&$ac_top_srcdir&;t t 21629s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21630s&@builddir@&$ac_builddir&;t t 21631s&@abs_builddir@&$ac_abs_builddir&;t t 21632s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21633s&@INSTALL@&$ac_INSTALL&;t t 21634s&@MKDIR_P@&$ac_MKDIR_P&;t t 21635$ac_datarootdir_hack 21636" 21637eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21638 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21639 21640test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21641 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21643 "$ac_tmp/out"`; test -z "$ac_out"; } && 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21645which seems to be undefined. Please make sure it is defined" >&5 21646$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21647which seems to be undefined. Please make sure it is defined" >&2;} 21648 21649 rm -f "$ac_tmp/stdin" 21650 case $ac_file in 21651 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21652 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21653 esac \ 21654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21655 ;; 21656 :H) 21657 # 21658 # CONFIG_HEADER 21659 # 21660 if test x"$ac_file" != x-; then 21661 { 21662 $as_echo "/* $configure_input */" \ 21663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21664 } >"$ac_tmp/config.h" \ 21665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21666 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21667 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21668$as_echo "$as_me: $ac_file is unchanged" >&6;} 21669 else 21670 rm -f "$ac_file" 21671 mv "$ac_tmp/config.h" "$ac_file" \ 21672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21673 fi 21674 else 21675 $as_echo "/* $configure_input */" \ 21676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21677 || as_fn_error $? "could not create -" "$LINENO" 5 21678 fi 21679# Compute "$ac_file"'s index in $config_headers. 21680_am_arg="$ac_file" 21681_am_stamp_count=1 21682for _am_header in $config_headers :; do 21683 case $_am_header in 21684 $_am_arg | $_am_arg:* ) 21685 break ;; 21686 * ) 21687 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21688 esac 21689done 21690echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21691$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21692 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21693 X"$_am_arg" : 'X\(//\)$' \| \ 21694 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21695$as_echo X"$_am_arg" | 21696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21697 s//\1/ 21698 q 21699 } 21700 /^X\(\/\/\)[^/].*/{ 21701 s//\1/ 21702 q 21703 } 21704 /^X\(\/\/\)$/{ 21705 s//\1/ 21706 q 21707 } 21708 /^X\(\/\).*/{ 21709 s//\1/ 21710 q 21711 } 21712 s/.*/./; q'`/stamp-h$_am_stamp_count 21713 ;; 21714 21715 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21716$as_echo "$as_me: executing $ac_file commands" >&6;} 21717 ;; 21718 esac 21719 21720 21721 case $ac_file$ac_mode in 21722 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21723 # Older Autoconf quotes --file arguments for eval, but not when files 21724 # are listed without --file. Let's play safe and only enable the eval 21725 # if we detect the quoting. 21726 # TODO: see whether this extra hack can be removed once we start 21727 # requiring Autoconf 2.70 or later. 21728 case $CONFIG_FILES in #( 21729 *\'*) : 21730 eval set x "$CONFIG_FILES" ;; #( 21731 *) : 21732 set x $CONFIG_FILES ;; #( 21733 *) : 21734 ;; 21735esac 21736 shift 21737 # Used to flag and report bootstrapping failures. 21738 am_rc=0 21739 for am_mf 21740 do 21741 # Strip MF so we end up with the name of the file. 21742 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21743 # Check whether this is an Automake generated Makefile which includes 21744 # dependency-tracking related rules and includes. 21745 # Grep'ing the whole file directly is not great: AIX grep has a line 21746 # limit of 2048, but all sed's we know have understand at least 4000. 21747 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21748 || continue 21749 am_dirpart=`$as_dirname -- "$am_mf" || 21750$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21751 X"$am_mf" : 'X\(//\)[^/]' \| \ 21752 X"$am_mf" : 'X\(//\)$' \| \ 21753 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21754$as_echo X"$am_mf" | 21755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21756 s//\1/ 21757 q 21758 } 21759 /^X\(\/\/\)[^/].*/{ 21760 s//\1/ 21761 q 21762 } 21763 /^X\(\/\/\)$/{ 21764 s//\1/ 21765 q 21766 } 21767 /^X\(\/\).*/{ 21768 s//\1/ 21769 q 21770 } 21771 s/.*/./; q'` 21772 am_filepart=`$as_basename -- "$am_mf" || 21773$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21774 X"$am_mf" : 'X\(//\)$' \| \ 21775 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21776$as_echo X/"$am_mf" | 21777 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21778 s//\1/ 21779 q 21780 } 21781 /^X\/\(\/\/\)$/{ 21782 s//\1/ 21783 q 21784 } 21785 /^X\/\(\/\).*/{ 21786 s//\1/ 21787 q 21788 } 21789 s/.*/./; q'` 21790 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21791 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21792 | $MAKE -f - am--depfiles" >&5 21793 (cd "$am_dirpart" \ 21794 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21795 | $MAKE -f - am--depfiles) >&5 2>&5 21796 ac_status=$? 21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21798 (exit $ac_status); } || am_rc=$? 21799 done 21800 if test $am_rc -ne 0; then 21801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21803as_fn_error $? "Something went wrong bootstrapping makefile fragments 21804 for automatic dependency tracking. If GNU make was not used, consider 21805 re-running the configure script with MAKE=\"gmake\" (or whatever is 21806 necessary). You can also try re-running configure with the 21807 '--disable-dependency-tracking' option to at least be able to build 21808 the package (albeit without support for automatic dependency tracking). 21809See \`config.log' for more details" "$LINENO" 5; } 21810 fi 21811 { am_dirpart=; unset am_dirpart;} 21812 { am_filepart=; unset am_filepart;} 21813 { am_mf=; unset am_mf;} 21814 { am_rc=; unset am_rc;} 21815 rm -f conftest-deps.mk 21816} 21817 ;; 21818 "libtool":C) 21819 21820 # See if we are running on zsh, and set the options that allow our 21821 # commands through without removal of \ escapes. 21822 if test -n "${ZSH_VERSION+set}"; then 21823 setopt NO_GLOB_SUBST 21824 fi 21825 21826 cfgfile=${ofile}T 21827 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21828 $RM "$cfgfile" 21829 21830 cat <<_LT_EOF >> "$cfgfile" 21831#! $SHELL 21832# Generated automatically by $as_me ($PACKAGE) $VERSION 21833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21834# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21835 21836# Provide generalized library-building support services. 21837# Written by Gordon Matzigkeit, 1996 21838 21839# Copyright (C) 2014 Free Software Foundation, Inc. 21840# This is free software; see the source for copying conditions. There is NO 21841# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21842 21843# GNU Libtool is free software; you can redistribute it and/or modify 21844# it under the terms of the GNU General Public License as published by 21845# the Free Software Foundation; either version 2 of of the License, or 21846# (at your option) any later version. 21847# 21848# As a special exception to the GNU General Public License, if you 21849# distribute this file as part of a program or library that is built 21850# using GNU Libtool, you may include this file under the same 21851# distribution terms that you use for the rest of that program. 21852# 21853# GNU Libtool is distributed in the hope that it will be useful, but 21854# WITHOUT ANY WARRANTY; without even the implied warranty of 21855# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21856# GNU General Public License for more details. 21857# 21858# You should have received a copy of the GNU General Public License 21859# along with this program. If not, see <http://www.gnu.org/licenses/>. 21860 21861 21862# The names of the tagged configurations supported by this script. 21863available_tags='' 21864 21865# Configured defaults for sys_lib_dlsearch_path munging. 21866: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21867 21868# ### BEGIN LIBTOOL CONFIG 21869 21870# Which release of libtool.m4 was used? 21871macro_version=$macro_version 21872macro_revision=$macro_revision 21873 21874# Whether or not to build shared libraries. 21875build_libtool_libs=$enable_shared 21876 21877# Whether or not to build static libraries. 21878build_old_libs=$enable_static 21879 21880# What type of objects to build. 21881pic_mode=$pic_mode 21882 21883# Whether or not to optimize for fast installation. 21884fast_install=$enable_fast_install 21885 21886# Shared archive member basename,for filename based shared library versioning on AIX. 21887shared_archive_member_spec=$shared_archive_member_spec 21888 21889# Shell to use when invoking shell scripts. 21890SHELL=$lt_SHELL 21891 21892# An echo program that protects backslashes. 21893ECHO=$lt_ECHO 21894 21895# The PATH separator for the build system. 21896PATH_SEPARATOR=$lt_PATH_SEPARATOR 21897 21898# The host system. 21899host_alias=$host_alias 21900host=$host 21901host_os=$host_os 21902 21903# The build system. 21904build_alias=$build_alias 21905build=$build 21906build_os=$build_os 21907 21908# A sed program that does not truncate output. 21909SED=$lt_SED 21910 21911# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21912Xsed="\$SED -e 1s/^X//" 21913 21914# A grep program that handles long lines. 21915GREP=$lt_GREP 21916 21917# An ERE matcher. 21918EGREP=$lt_EGREP 21919 21920# A literal string matcher. 21921FGREP=$lt_FGREP 21922 21923# A BSD- or MS-compatible name lister. 21924NM=$lt_NM 21925 21926# Whether we need soft or hard links. 21927LN_S=$lt_LN_S 21928 21929# What is the maximum length of a command? 21930max_cmd_len=$max_cmd_len 21931 21932# Object file suffix (normally "o"). 21933objext=$ac_objext 21934 21935# Executable file suffix (normally ""). 21936exeext=$exeext 21937 21938# whether the shell understands "unset". 21939lt_unset=$lt_unset 21940 21941# turn spaces into newlines. 21942SP2NL=$lt_lt_SP2NL 21943 21944# turn newlines into spaces. 21945NL2SP=$lt_lt_NL2SP 21946 21947# convert \$build file names to \$host format. 21948to_host_file_cmd=$lt_cv_to_host_file_cmd 21949 21950# convert \$build files to toolchain format. 21951to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21952 21953# An object symbol dumper. 21954OBJDUMP=$lt_OBJDUMP 21955 21956# Method to check whether dependent libraries are shared objects. 21957deplibs_check_method=$lt_deplibs_check_method 21958 21959# Command to use when deplibs_check_method = "file_magic". 21960file_magic_cmd=$lt_file_magic_cmd 21961 21962# How to find potential files when deplibs_check_method = "file_magic". 21963file_magic_glob=$lt_file_magic_glob 21964 21965# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21966want_nocaseglob=$lt_want_nocaseglob 21967 21968# DLL creation program. 21969DLLTOOL=$lt_DLLTOOL 21970 21971# Command to associate shared and link libraries. 21972sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21973 21974# The archiver. 21975AR=$lt_AR 21976 21977# Flags to create an archive. 21978AR_FLAGS=$lt_AR_FLAGS 21979 21980# How to feed a file listing to the archiver. 21981archiver_list_spec=$lt_archiver_list_spec 21982 21983# A symbol stripping program. 21984STRIP=$lt_STRIP 21985 21986# Commands used to install an old-style archive. 21987RANLIB=$lt_RANLIB 21988old_postinstall_cmds=$lt_old_postinstall_cmds 21989old_postuninstall_cmds=$lt_old_postuninstall_cmds 21990 21991# Whether to use a lock for old archive extraction. 21992lock_old_archive_extraction=$lock_old_archive_extraction 21993 21994# A C compiler. 21995LTCC=$lt_CC 21996 21997# LTCC compiler flags. 21998LTCFLAGS=$lt_CFLAGS 21999 22000# Take the output of nm and produce a listing of raw symbols and C names. 22001global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22002 22003# Transform the output of nm in a proper C declaration. 22004global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22005 22006# Transform the output of nm into a list of symbols to manually relocate. 22007global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22008 22009# Transform the output of nm in a C name address pair. 22010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22011 22012# Transform the output of nm in a C name address pair when lib prefix is needed. 22013global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22014 22015# The name lister interface. 22016nm_interface=$lt_lt_cv_nm_interface 22017 22018# Specify filename containing input files for \$NM. 22019nm_file_list_spec=$lt_nm_file_list_spec 22020 22021# The root where to search for dependent libraries,and where our libraries should be installed. 22022lt_sysroot=$lt_sysroot 22023 22024# Command to truncate a binary pipe. 22025lt_truncate_bin=$lt_lt_cv_truncate_bin 22026 22027# The name of the directory that contains temporary libtool files. 22028objdir=$objdir 22029 22030# Used to examine libraries when file_magic_cmd begins with "file". 22031MAGIC_CMD=$MAGIC_CMD 22032 22033# Must we lock files when doing compilation? 22034need_locks=$lt_need_locks 22035 22036# Manifest tool. 22037MANIFEST_TOOL=$lt_MANIFEST_TOOL 22038 22039# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22040DSYMUTIL=$lt_DSYMUTIL 22041 22042# Tool to change global to local symbols on Mac OS X. 22043NMEDIT=$lt_NMEDIT 22044 22045# Tool to manipulate fat objects and archives on Mac OS X. 22046LIPO=$lt_LIPO 22047 22048# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22049OTOOL=$lt_OTOOL 22050 22051# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22052OTOOL64=$lt_OTOOL64 22053 22054# Old archive suffix (normally "a"). 22055libext=$libext 22056 22057# Shared library suffix (normally ".so"). 22058shrext_cmds=$lt_shrext_cmds 22059 22060# The commands to extract the exported symbol list from a shared archive. 22061extract_expsyms_cmds=$lt_extract_expsyms_cmds 22062 22063# Variables whose values should be saved in libtool wrapper scripts and 22064# restored at link time. 22065variables_saved_for_relink=$lt_variables_saved_for_relink 22066 22067# Do we need the "lib" prefix for modules? 22068need_lib_prefix=$need_lib_prefix 22069 22070# Do we need a version for libraries? 22071need_version=$need_version 22072 22073# Library versioning type. 22074version_type=$version_type 22075 22076# Shared library runtime path variable. 22077runpath_var=$runpath_var 22078 22079# Shared library path variable. 22080shlibpath_var=$shlibpath_var 22081 22082# Is shlibpath searched before the hard-coded library search path? 22083shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22084 22085# Format of library name prefix. 22086libname_spec=$lt_libname_spec 22087 22088# List of archive names. First name is the real one, the rest are links. 22089# The last name is the one that the linker finds with -lNAME 22090library_names_spec=$lt_library_names_spec 22091 22092# The coded name of the library, if different from the real name. 22093soname_spec=$lt_soname_spec 22094 22095# Permission mode override for installation of shared libraries. 22096install_override_mode=$lt_install_override_mode 22097 22098# Command to use after installation of a shared archive. 22099postinstall_cmds=$lt_postinstall_cmds 22100 22101# Command to use after uninstallation of a shared archive. 22102postuninstall_cmds=$lt_postuninstall_cmds 22103 22104# Commands used to finish a libtool library installation in a directory. 22105finish_cmds=$lt_finish_cmds 22106 22107# As "finish_cmds", except a single script fragment to be evaled but 22108# not shown. 22109finish_eval=$lt_finish_eval 22110 22111# Whether we should hardcode library paths into libraries. 22112hardcode_into_libs=$hardcode_into_libs 22113 22114# Compile-time system search path for libraries. 22115sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22116 22117# Detected run-time system search path for libraries. 22118sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22119 22120# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22121configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22122 22123# Whether dlopen is supported. 22124dlopen_support=$enable_dlopen 22125 22126# Whether dlopen of programs is supported. 22127dlopen_self=$enable_dlopen_self 22128 22129# Whether dlopen of statically linked programs is supported. 22130dlopen_self_static=$enable_dlopen_self_static 22131 22132# Commands to strip libraries. 22133old_striplib=$lt_old_striplib 22134striplib=$lt_striplib 22135 22136 22137# The linker used to build libraries. 22138LD=$lt_LD 22139 22140# How to create reloadable object files. 22141reload_flag=$lt_reload_flag 22142reload_cmds=$lt_reload_cmds 22143 22144# Commands used to build an old-style archive. 22145old_archive_cmds=$lt_old_archive_cmds 22146 22147# A language specific compiler. 22148CC=$lt_compiler 22149 22150# Is the compiler the GNU compiler? 22151with_gcc=$GCC 22152 22153# Compiler flag to turn off builtin functions. 22154no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22155 22156# Additional compiler flags for building library objects. 22157pic_flag=$lt_lt_prog_compiler_pic 22158 22159# How to pass a linker flag through the compiler. 22160wl=$lt_lt_prog_compiler_wl 22161 22162# Compiler flag to prevent dynamic linking. 22163link_static_flag=$lt_lt_prog_compiler_static 22164 22165# Does compiler simultaneously support -c and -o options? 22166compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22167 22168# Whether or not to add -lc for building shared libraries. 22169build_libtool_need_lc=$archive_cmds_need_lc 22170 22171# Whether or not to disallow shared libs when runtime libs are static. 22172allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22173 22174# Compiler flag to allow reflexive dlopens. 22175export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22176 22177# Compiler flag to generate shared objects directly from archives. 22178whole_archive_flag_spec=$lt_whole_archive_flag_spec 22179 22180# Whether the compiler copes with passing no objects directly. 22181compiler_needs_object=$lt_compiler_needs_object 22182 22183# Create an old-style archive from a shared archive. 22184old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22185 22186# Create a temporary old-style archive to link instead of a shared archive. 22187old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22188 22189# Commands used to build a shared archive. 22190archive_cmds=$lt_archive_cmds 22191archive_expsym_cmds=$lt_archive_expsym_cmds 22192 22193# Commands used to build a loadable module if different from building 22194# a shared archive. 22195module_cmds=$lt_module_cmds 22196module_expsym_cmds=$lt_module_expsym_cmds 22197 22198# Whether we are building with GNU ld or not. 22199with_gnu_ld=$lt_with_gnu_ld 22200 22201# Flag that allows shared libraries with undefined symbols to be built. 22202allow_undefined_flag=$lt_allow_undefined_flag 22203 22204# Flag that enforces no undefined symbols. 22205no_undefined_flag=$lt_no_undefined_flag 22206 22207# Flag to hardcode \$libdir into a binary during linking. 22208# This must work even if \$libdir does not exist 22209hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22210 22211# Whether we need a single "-rpath" flag with a separated argument. 22212hardcode_libdir_separator=$lt_hardcode_libdir_separator 22213 22214# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22215# DIR into the resulting binary. 22216hardcode_direct=$hardcode_direct 22217 22218# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22219# DIR into the resulting binary and the resulting library dependency is 22220# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22221# library is relocated. 22222hardcode_direct_absolute=$hardcode_direct_absolute 22223 22224# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22225# into the resulting binary. 22226hardcode_minus_L=$hardcode_minus_L 22227 22228# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22229# into the resulting binary. 22230hardcode_shlibpath_var=$hardcode_shlibpath_var 22231 22232# Set to "yes" if building a shared library automatically hardcodes DIR 22233# into the library and all subsequent libraries and executables linked 22234# against it. 22235hardcode_automatic=$hardcode_automatic 22236 22237# Set to yes if linker adds runtime paths of dependent libraries 22238# to runtime path list. 22239inherit_rpath=$inherit_rpath 22240 22241# Whether libtool must link a program against all its dependency libraries. 22242link_all_deplibs=$link_all_deplibs 22243 22244# Set to "yes" if exported symbols are required. 22245always_export_symbols=$always_export_symbols 22246 22247# The commands to list exported symbols. 22248export_symbols_cmds=$lt_export_symbols_cmds 22249 22250# Symbols that should not be listed in the preloaded symbols. 22251exclude_expsyms=$lt_exclude_expsyms 22252 22253# Symbols that must always be exported. 22254include_expsyms=$lt_include_expsyms 22255 22256# Commands necessary for linking programs (against libraries) with templates. 22257prelink_cmds=$lt_prelink_cmds 22258 22259# Commands necessary for finishing linking programs. 22260postlink_cmds=$lt_postlink_cmds 22261 22262# Specify filename containing input files. 22263file_list_spec=$lt_file_list_spec 22264 22265# How to hardcode a shared library path into an executable. 22266hardcode_action=$hardcode_action 22267 22268# ### END LIBTOOL CONFIG 22269 22270_LT_EOF 22271 22272 cat <<'_LT_EOF' >> "$cfgfile" 22273 22274# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22275 22276# func_munge_path_list VARIABLE PATH 22277# ----------------------------------- 22278# VARIABLE is name of variable containing _space_ separated list of 22279# directories to be munged by the contents of PATH, which is string 22280# having a format: 22281# "DIR[:DIR]:" 22282# string "DIR[ DIR]" will be prepended to VARIABLE 22283# ":DIR[:DIR]" 22284# string "DIR[ DIR]" will be appended to VARIABLE 22285# "DIRP[:DIRP]::[DIRA:]DIRA" 22286# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22287# "DIRA[ DIRA]" will be appended to VARIABLE 22288# "DIR[:DIR]" 22289# VARIABLE will be replaced by "DIR[ DIR]" 22290func_munge_path_list () 22291{ 22292 case x$2 in 22293 x) 22294 ;; 22295 *:) 22296 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22297 ;; 22298 x:*) 22299 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22300 ;; 22301 *::*) 22302 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22303 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22304 ;; 22305 *) 22306 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22307 ;; 22308 esac 22309} 22310 22311 22312# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22313func_cc_basename () 22314{ 22315 for cc_temp in $*""; do 22316 case $cc_temp in 22317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22319 \-*) ;; 22320 *) break;; 22321 esac 22322 done 22323 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22324} 22325 22326 22327# ### END FUNCTIONS SHARED WITH CONFIGURE 22328 22329_LT_EOF 22330 22331 case $host_os in 22332 aix3*) 22333 cat <<\_LT_EOF >> "$cfgfile" 22334# AIX sometimes has problems with the GCC collect2 program. For some 22335# reason, if we set the COLLECT_NAMES environment variable, the problems 22336# vanish in a puff of smoke. 22337if test set != "${COLLECT_NAMES+set}"; then 22338 COLLECT_NAMES= 22339 export COLLECT_NAMES 22340fi 22341_LT_EOF 22342 ;; 22343 esac 22344 22345 22346ltmain=$ac_aux_dir/ltmain.sh 22347 22348 22349 # We use sed instead of cat because bash on DJGPP gets confused if 22350 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22351 # text mode, it properly converts lines to CR/LF. This bash problem 22352 # is reportedly fixed, but why not run on old versions too? 22353 sed '$q' "$ltmain" >> "$cfgfile" \ 22354 || (rm -f "$cfgfile"; exit 1) 22355 22356 mv -f "$cfgfile" "$ofile" || 22357 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22358 chmod +x "$ofile" 22359 22360 ;; 22361 22362 esac 22363done # for ac_tag 22364 22365 22366as_fn_exit 0 22367_ACEOF 22368ac_clean_files=$ac_clean_files_save 22369 22370test $ac_write_fail = 0 || 22371 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22372 22373 22374# configure is writing to config.log, and then calls config.status. 22375# config.status does its own redirection, appending to config.log. 22376# Unfortunately, on DOS this fails, as config.log is still kept open 22377# by configure, so config.status won't be able to write to it; its 22378# output is simply discarded. So we exec the FD to /dev/null, 22379# effectively closing config.log, so it can be properly (re)opened and 22380# appended to by config.status. When coming back to configure, we 22381# need to make the FD available again. 22382if test "$no_create" != yes; then 22383 ac_cs_success=: 22384 ac_config_status_args= 22385 test "$silent" = yes && 22386 ac_config_status_args="$ac_config_status_args --quiet" 22387 exec 5>/dev/null 22388 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22389 exec 5>>config.log 22390 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22391 # would make configure fail if this is the last instruction. 22392 $ac_cs_success || as_fn_exit 1 22393fi 22394if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22396$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22397fi 22398 22399