configure revision 444fb138
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXv 1.0.11. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 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://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libXv' 593PACKAGE_TARNAME='libXv' 594PACKAGE_VERSION='1.0.11' 595PACKAGE_STRING='libXv 1.0.11' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640MAKE_LINT_LIB_FALSE 641MAKE_LINT_LIB_TRUE 642LINTLIB 643LINT_FALSE 644LINT_TRUE 645LINT_FLAGS 646LINT 647XV_LIBS 648XV_CFLAGS 649XTMALLOC_ZERO_CFLAGS 650XMALLOC_ZERO_CFLAGS 651MALLOC_ZERO_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666INSTALL_CMD 667PKG_CONFIG_LIBDIR 668PKG_CONFIG_PATH 669PKG_CONFIG 670CHANGELOG_CMD 671STRICT_CFLAGS 672CWARNFLAGS 673BASE_CFLAGS 674CPP 675OTOOL64 676OTOOL 677LIPO 678NMEDIT 679DSYMUTIL 680MANIFEST_TOOL 681RANLIB 682ac_ct_AR 683AR 684DLLTOOL 685OBJDUMP 686LN_S 687NM 688ac_ct_DUMPBIN 689DUMPBIN 690LD 691FGREP 692EGREP 693GREP 694SED 695am__fastdepCC_FALSE 696am__fastdepCC_TRUE 697CCDEPMODE 698am__nodep 699AMDEPBACKSLASH 700AMDEP_FALSE 701AMDEP_TRUE 702am__quote 703am__include 704DEPDIR 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712host_os 713host_vendor 714host_cpu 715host 716build_os 717build_vendor 718build_cpu 719build 720LIBTOOL 721AM_BACKSLASH 722AM_DEFAULT_VERBOSITY 723AM_DEFAULT_V 724AM_V 725am__untar 726am__tar 727AMTAR 728am__leading_dot 729SET_MAKE 730AWK 731mkdir_p 732MKDIR_P 733INSTALL_STRIP_PROGRAM 734STRIP 735install_sh 736MAKEINFO 737AUTOHEADER 738AUTOMAKE 739AUTOCONF 740ACLOCAL 741VERSION 742PACKAGE 743CYGPATH_W 744am__isrc 745INSTALL_DATA 746INSTALL_SCRIPT 747INSTALL_PROGRAM 748target_alias 749host_alias 750build_alias 751LIBS 752ECHO_T 753ECHO_N 754ECHO_C 755DEFS 756mandir 757localedir 758libdir 759psdir 760pdfdir 761dvidir 762htmldir 763infodir 764docdir 765oldincludedir 766includedir 767localstatedir 768sharedstatedir 769sysconfdir 770datadir 771datarootdir 772libexecdir 773sbindir 774bindir 775program_transform_name 776prefix 777exec_prefix 778PACKAGE_URL 779PACKAGE_BUGREPORT 780PACKAGE_STRING 781PACKAGE_VERSION 782PACKAGE_TARNAME 783PACKAGE_NAME 784PATH_SEPARATOR 785SHELL' 786ac_subst_files='' 787ac_user_opts=' 788enable_option_checking 789enable_silent_rules 790enable_shared 791enable_static 792with_pic 793enable_fast_install 794enable_dependency_tracking 795with_gnu_ld 796with_sysroot 797enable_libtool_lock 798enable_selective_werror 799enable_strict_compilation 800enable_malloc0returnsnull 801with_lint 802enable_lint_library 803' 804 ac_precious_vars='build_alias 805host_alias 806target_alias 807CC 808CFLAGS 809LDFLAGS 810LIBS 811CPPFLAGS 812CPP 813PKG_CONFIG 814PKG_CONFIG_PATH 815PKG_CONFIG_LIBDIR 816XV_CFLAGS 817XV_LIBS 818LINT 819LINT_FLAGS' 820 821 822# Initialize some variables set by options. 823ac_init_help= 824ac_init_version=false 825ac_unrecognized_opts= 826ac_unrecognized_sep= 827# The variables have the same names as the options, with 828# dashes changed to underlines. 829cache_file=/dev/null 830exec_prefix=NONE 831no_create= 832no_recursion= 833prefix=NONE 834program_prefix=NONE 835program_suffix=NONE 836program_transform_name=s,x,x, 837silent= 838site= 839srcdir= 840verbose= 841x_includes=NONE 842x_libraries=NONE 843 844# Installation directory options. 845# These are left unexpanded so users can "make install exec_prefix=/foo" 846# and all the variables that are supposed to be based on exec_prefix 847# by default will actually change. 848# Use braces instead of parens because sh, perl, etc. also accept them. 849# (The list follows the same order as the GNU Coding Standards.) 850bindir='${exec_prefix}/bin' 851sbindir='${exec_prefix}/sbin' 852libexecdir='${exec_prefix}/libexec' 853datarootdir='${prefix}/share' 854datadir='${datarootdir}' 855sysconfdir='${prefix}/etc' 856sharedstatedir='${prefix}/com' 857localstatedir='${prefix}/var' 858includedir='${prefix}/include' 859oldincludedir='/usr/include' 860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 861infodir='${datarootdir}/info' 862htmldir='${docdir}' 863dvidir='${docdir}' 864pdfdir='${docdir}' 865psdir='${docdir}' 866libdir='${exec_prefix}/lib' 867localedir='${datarootdir}/locale' 868mandir='${datarootdir}/man' 869 870ac_prev= 871ac_dashdash= 872for ac_option 873do 874 # If the previous option needs an argument, assign it. 875 if test -n "$ac_prev"; then 876 eval $ac_prev=\$ac_option 877 ac_prev= 878 continue 879 fi 880 881 case $ac_option in 882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 883 *=) ac_optarg= ;; 884 *) ac_optarg=yes ;; 885 esac 886 887 # Accept the important Cygnus configure options, so we can diagnose typos. 888 889 case $ac_dashdash$ac_option in 890 --) 891 ac_dashdash=yes ;; 892 893 -bindir | --bindir | --bindi | --bind | --bin | --bi) 894 ac_prev=bindir ;; 895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 896 bindir=$ac_optarg ;; 897 898 -build | --build | --buil | --bui | --bu) 899 ac_prev=build_alias ;; 900 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 901 build_alias=$ac_optarg ;; 902 903 -cache-file | --cache-file | --cache-fil | --cache-fi \ 904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 905 ac_prev=cache_file ;; 906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 908 cache_file=$ac_optarg ;; 909 910 --config-cache | -C) 911 cache_file=config.cache ;; 912 913 -datadir | --datadir | --datadi | --datad) 914 ac_prev=datadir ;; 915 -datadir=* | --datadir=* | --datadi=* | --datad=*) 916 datadir=$ac_optarg ;; 917 918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 919 | --dataroo | --dataro | --datar) 920 ac_prev=datarootdir ;; 921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 923 datarootdir=$ac_optarg ;; 924 925 -disable-* | --disable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: $ac_useropt" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: $ac_useropt" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960"enable_$ac_useropt" 961"*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=\$ac_optarg ;; 966 967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 969 | --exec | --exe | --ex) 970 ac_prev=exec_prefix ;; 971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 973 | --exec=* | --exe=* | --ex=*) 974 exec_prefix=$ac_optarg ;; 975 976 -gas | --gas | --ga | --g) 977 # Obsolete; use --with-gas. 978 with_gas=yes ;; 979 980 -help | --help | --hel | --he | -h) 981 ac_init_help=long ;; 982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 983 ac_init_help=recursive ;; 984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 985 ac_init_help=short ;; 986 987 -host | --host | --hos | --ho) 988 ac_prev=host_alias ;; 989 -host=* | --host=* | --hos=* | --ho=*) 990 host_alias=$ac_optarg ;; 991 992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 993 ac_prev=htmldir ;; 994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 995 | --ht=*) 996 htmldir=$ac_optarg ;; 997 998 -includedir | --includedir | --includedi | --included | --include \ 999 | --includ | --inclu | --incl | --inc) 1000 ac_prev=includedir ;; 1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1002 | --includ=* | --inclu=* | --incl=* | --inc=*) 1003 includedir=$ac_optarg ;; 1004 1005 -infodir | --infodir | --infodi | --infod | --info | --inf) 1006 ac_prev=infodir ;; 1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1008 infodir=$ac_optarg ;; 1009 1010 -libdir | --libdir | --libdi | --libd) 1011 ac_prev=libdir ;; 1012 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1013 libdir=$ac_optarg ;; 1014 1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1016 | --libexe | --libex | --libe) 1017 ac_prev=libexecdir ;; 1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1019 | --libexe=* | --libex=* | --libe=*) 1020 libexecdir=$ac_optarg ;; 1021 1022 -localedir | --localedir | --localedi | --localed | --locale) 1023 ac_prev=localedir ;; 1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1025 localedir=$ac_optarg ;; 1026 1027 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1028 | --localstate | --localstat | --localsta | --localst | --locals) 1029 ac_prev=localstatedir ;; 1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1032 localstatedir=$ac_optarg ;; 1033 1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1035 ac_prev=mandir ;; 1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1037 mandir=$ac_optarg ;; 1038 1039 -nfp | --nfp | --nf) 1040 # Obsolete; use --without-fp. 1041 with_fp=no ;; 1042 1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1044 | --no-cr | --no-c | -n) 1045 no_create=yes ;; 1046 1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1049 no_recursion=yes ;; 1050 1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1053 | --oldin | --oldi | --old | --ol | --o) 1054 ac_prev=oldincludedir ;; 1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1058 oldincludedir=$ac_optarg ;; 1059 1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1061 ac_prev=prefix ;; 1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1063 prefix=$ac_optarg ;; 1064 1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1066 | --program-pre | --program-pr | --program-p) 1067 ac_prev=program_prefix ;; 1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1070 program_prefix=$ac_optarg ;; 1071 1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1073 | --program-suf | --program-su | --program-s) 1074 ac_prev=program_suffix ;; 1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1077 program_suffix=$ac_optarg ;; 1078 1079 -program-transform-name | --program-transform-name \ 1080 | --program-transform-nam | --program-transform-na \ 1081 | --program-transform-n | --program-transform- \ 1082 | --program-transform | --program-transfor \ 1083 | --program-transfo | --program-transf \ 1084 | --program-trans | --program-tran \ 1085 | --progr-tra | --program-tr | --program-t) 1086 ac_prev=program_transform_name ;; 1087 -program-transform-name=* | --program-transform-name=* \ 1088 | --program-transform-nam=* | --program-transform-na=* \ 1089 | --program-transform-n=* | --program-transform-=* \ 1090 | --program-transform=* | --program-transfor=* \ 1091 | --program-transfo=* | --program-transf=* \ 1092 | --program-trans=* | --program-tran=* \ 1093 | --progr-tra=* | --program-tr=* | --program-t=*) 1094 program_transform_name=$ac_optarg ;; 1095 1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1097 ac_prev=pdfdir ;; 1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1099 pdfdir=$ac_optarg ;; 1100 1101 -psdir | --psdir | --psdi | --psd | --ps) 1102 ac_prev=psdir ;; 1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1104 psdir=$ac_optarg ;; 1105 1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1107 | -silent | --silent | --silen | --sile | --sil) 1108 silent=yes ;; 1109 1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1111 ac_prev=sbindir ;; 1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1113 | --sbi=* | --sb=*) 1114 sbindir=$ac_optarg ;; 1115 1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1118 | --sharedst | --shareds | --shared | --share | --shar \ 1119 | --sha | --sh) 1120 ac_prev=sharedstatedir ;; 1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1124 | --sha=* | --sh=*) 1125 sharedstatedir=$ac_optarg ;; 1126 1127 -site | --site | --sit) 1128 ac_prev=site ;; 1129 -site=* | --site=* | --sit=*) 1130 site=$ac_optarg ;; 1131 1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1133 ac_prev=srcdir ;; 1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1135 srcdir=$ac_optarg ;; 1136 1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1138 | --syscon | --sysco | --sysc | --sys | --sy) 1139 ac_prev=sysconfdir ;; 1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1142 sysconfdir=$ac_optarg ;; 1143 1144 -target | --target | --targe | --targ | --tar | --ta | --t) 1145 ac_prev=target_alias ;; 1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1147 target_alias=$ac_optarg ;; 1148 1149 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1150 verbose=yes ;; 1151 1152 -version | --version | --versio | --versi | --vers | -V) 1153 ac_init_version=: ;; 1154 1155 -with-* | --with-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=\$ac_optarg ;; 1170 1171 -without-* | --without-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=no ;; 1186 1187 --x) 1188 # Obsolete; use --with-x. 1189 with_x=yes ;; 1190 1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1192 | --x-incl | --x-inc | --x-in | --x-i) 1193 ac_prev=x_includes ;; 1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1196 x_includes=$ac_optarg ;; 1197 1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1200 ac_prev=x_libraries ;; 1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1203 x_libraries=$ac_optarg ;; 1204 1205 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1206Try \`$0 --help' for more information" 1207 ;; 1208 1209 *=*) 1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1211 # Reject names that are not valid shell variable names. 1212 case $ac_envvar in #( 1213 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1215 esac 1216 eval $ac_envvar=\$ac_optarg 1217 export $ac_envvar ;; 1218 1219 *) 1220 # FIXME: should be removed in autoconf 3.0. 1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1225 ;; 1226 1227 esac 1228done 1229 1230if test -n "$ac_prev"; then 1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1232 as_fn_error $? "missing argument to $ac_option" 1233fi 1234 1235if test -n "$ac_unrecognized_opts"; then 1236 case $enable_option_checking in 1237 no) ;; 1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1240 esac 1241fi 1242 1243# Check all directory arguments for consistency. 1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1245 datadir sysconfdir sharedstatedir localstatedir includedir \ 1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1247 libdir localedir mandir 1248do 1249 eval ac_val=\$$ac_var 1250 # Remove trailing slashes. 1251 case $ac_val in 1252 */ ) 1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1254 eval $ac_var=\$ac_val;; 1255 esac 1256 # Be sure to have absolute directory names. 1257 case $ac_val in 1258 [\\/$]* | ?:[\\/]* ) continue;; 1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1260 esac 1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1262done 1263 1264# There might be people who depend on the old broken behavior: `$host' 1265# used to hold the argument of --host etc. 1266# FIXME: To remove some day. 1267build=$build_alias 1268host=$host_alias 1269target=$target_alias 1270 1271# FIXME: To remove some day. 1272if test "x$host_alias" != x; then 1273 if test "x$build_alias" = x; then 1274 cross_compiling=maybe 1275 elif test "x$build_alias" != "x$host_alias"; then 1276 cross_compiling=yes 1277 fi 1278fi 1279 1280ac_tool_prefix= 1281test -n "$host_alias" && ac_tool_prefix=$host_alias- 1282 1283test "$silent" = yes && exec 6>/dev/null 1284 1285 1286ac_pwd=`pwd` && test -n "$ac_pwd" && 1287ac_ls_di=`ls -di .` && 1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1289 as_fn_error $? "working directory cannot be determined" 1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1291 as_fn_error $? "pwd does not report name of working directory" 1292 1293 1294# Find the source files, if location was not specified. 1295if test -z "$srcdir"; then 1296 ac_srcdir_defaulted=yes 1297 # Try the directory containing this script, then the parent directory. 1298 ac_confdir=`$as_dirname -- "$as_myself" || 1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1300 X"$as_myself" : 'X\(//\)[^/]' \| \ 1301 X"$as_myself" : 'X\(//\)$' \| \ 1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1303$as_echo X"$as_myself" | 1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)[^/].*/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\).*/{ 1317 s//\1/ 1318 q 1319 } 1320 s/.*/./; q'` 1321 srcdir=$ac_confdir 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 srcdir=.. 1324 fi 1325else 1326 ac_srcdir_defaulted=no 1327fi 1328if test ! -r "$srcdir/$ac_unique_file"; then 1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1331fi 1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1333ac_abs_confdir=`( 1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1335 pwd)` 1336# When building in place, set srcdir=. 1337if test "$ac_abs_confdir" = "$ac_pwd"; then 1338 srcdir=. 1339fi 1340# Remove unnecessary trailing slashes from srcdir. 1341# Double slashes in file names in object file debugging info 1342# mess up M-x gdb in Emacs. 1343case $srcdir in 1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1345esac 1346for ac_var in $ac_precious_vars; do 1347 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_env_${ac_var}_value=\$${ac_var} 1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1350 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1351done 1352 1353# 1354# Report the --help message. 1355# 1356if test "$ac_init_help" = "long"; then 1357 # Omit some internal or obsolete options to make the list less imposing. 1358 # This message is too long to be a string in the A/UX 3.1 sh. 1359 cat <<_ACEOF 1360\`configure' configures libXv 1.0.11 to adapt to many kinds of systems. 1361 1362Usage: $0 [OPTION]... [VAR=VALUE]... 1363 1364To assign environment variables (e.g., CC, CFLAGS...), specify them as 1365VAR=VALUE. See below for descriptions of some of the useful variables. 1366 1367Defaults for the options are specified in brackets. 1368 1369Configuration: 1370 -h, --help display this help and exit 1371 --help=short display options specific to this package 1372 --help=recursive display the short help of all the included packages 1373 -V, --version display version information and exit 1374 -q, --quiet, --silent do not print \`checking ...' messages 1375 --cache-file=FILE cache test results in FILE [disabled] 1376 -C, --config-cache alias for \`--cache-file=config.cache' 1377 -n, --no-create do not create output files 1378 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1379 1380Installation directories: 1381 --prefix=PREFIX install architecture-independent files in PREFIX 1382 [$ac_default_prefix] 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1384 [PREFIX] 1385 1386By default, \`make install' will install all the files in 1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1388an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1389for instance \`--prefix=\$HOME'. 1390 1391For better control, use the options below. 1392 1393Fine tuning of the installation directories: 1394 --bindir=DIR user executables [EPREFIX/bin] 1395 --sbindir=DIR system admin executables [EPREFIX/sbin] 1396 --libexecdir=DIR program executables [EPREFIX/libexec] 1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1400 --libdir=DIR object code libraries [EPREFIX/lib] 1401 --includedir=DIR C header files [PREFIX/include] 1402 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1405 --infodir=DIR info documentation [DATAROOTDIR/info] 1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1407 --mandir=DIR man documentation [DATAROOTDIR/man] 1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libXv] 1409 --htmldir=DIR html documentation [DOCDIR] 1410 --dvidir=DIR dvi documentation [DOCDIR] 1411 --pdfdir=DIR pdf documentation [DOCDIR] 1412 --psdir=DIR ps documentation [DOCDIR] 1413_ACEOF 1414 1415 cat <<\_ACEOF 1416 1417Program names: 1418 --program-prefix=PREFIX prepend PREFIX to installed program names 1419 --program-suffix=SUFFIX append SUFFIX to installed program names 1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1421 1422System types: 1423 --build=BUILD configure for building on BUILD [guessed] 1424 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1425_ACEOF 1426fi 1427 1428if test -n "$ac_init_help"; then 1429 case $ac_init_help in 1430 short | recursive ) echo "Configuration of libXv 1.0.11:";; 1431 esac 1432 cat <<\_ACEOF 1433 1434Optional Features: 1435 --disable-option-checking ignore unrecognized --enable/--with options 1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1438 --enable-silent-rules less verbose build output (undo: "make V=1") 1439 --disable-silent-rules verbose build output (undo: "make V=0") 1440 --enable-shared[=PKGS] build shared libraries [default=yes] 1441 --enable-static[=PKGS] build static libraries [default=yes] 1442 --enable-fast-install[=PKGS] 1443 optimize for fast installation [default=yes] 1444 --enable-dependency-tracking 1445 do not reject slow dependency extractors 1446 --disable-dependency-tracking 1447 speeds up one-time build 1448 --disable-libtool-lock avoid locking (might break parallel builds) 1449 --disable-selective-werror 1450 Turn off selective compiler errors. (default: 1451 enabled) 1452 --enable-strict-compilation 1453 Enable all warnings from compiler and make them 1454 errors (default: disabled) 1455 --enable-malloc0returnsnull 1456 malloc(0) returns NULL (default: auto) 1457 --enable-lint-library Create lint library (default: disabled) 1458 1459Optional Packages: 1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1463 both] 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1465 --with-sysroot=DIR Search for dependent libraries within DIR 1466 (or the compiler's sysroot if not specified). 1467 --with-lint Use a lint-style source code checker (default: 1468 disabled) 1469 1470Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 CPP C preprocessor 1479 PKG_CONFIG path to pkg-config utility 1480 PKG_CONFIG_PATH 1481 directories to add to pkg-config's search path 1482 PKG_CONFIG_LIBDIR 1483 path overriding pkg-config's built-in search path 1484 XV_CFLAGS C compiler flags for XV, overriding pkg-config 1485 XV_LIBS linker flags for XV, overriding pkg-config 1486 LINT Path to a lint-style command 1487 LINT_FLAGS Flags for the lint-style command 1488 1489Use these variables to override the choices made by `configure' or to help 1490it to find libraries and programs with nonstandard names/locations. 1491 1492Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1493_ACEOF 1494ac_status=$? 1495fi 1496 1497if test "$ac_init_help" = "recursive"; then 1498 # If there are subdirs, report their specific --help. 1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1500 test -d "$ac_dir" || 1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1502 continue 1503 ac_builddir=. 1504 1505case "$ac_dir" in 1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1507*) 1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1509 # A ".." for each directory in $ac_dir_suffix. 1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1511 case $ac_top_builddir_sub in 1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1514 esac ;; 1515esac 1516ac_abs_top_builddir=$ac_pwd 1517ac_abs_builddir=$ac_pwd$ac_dir_suffix 1518# for backward compatibility: 1519ac_top_builddir=$ac_top_build_prefix 1520 1521case $srcdir in 1522 .) # We are building in place. 1523 ac_srcdir=. 1524 ac_top_srcdir=$ac_top_builddir_sub 1525 ac_abs_top_srcdir=$ac_pwd ;; 1526 [\\/]* | ?:[\\/]* ) # Absolute name. 1527 ac_srcdir=$srcdir$ac_dir_suffix; 1528 ac_top_srcdir=$srcdir 1529 ac_abs_top_srcdir=$srcdir ;; 1530 *) # Relative name. 1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1532 ac_top_srcdir=$ac_top_build_prefix$srcdir 1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1534esac 1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1536 1537 cd "$ac_dir" || { ac_status=$?; continue; } 1538 # Check for guested configure. 1539 if test -f "$ac_srcdir/configure.gnu"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1542 elif test -f "$ac_srcdir/configure"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure" --help=recursive 1545 else 1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1547 fi || ac_status=$? 1548 cd "$ac_pwd" || { ac_status=$?; break; } 1549 done 1550fi 1551 1552test -n "$ac_init_help" && exit $ac_status 1553if $ac_init_version; then 1554 cat <<\_ACEOF 1555libXv configure 1.0.11 1556generated by GNU Autoconf 2.69 1557 1558Copyright (C) 2012 Free Software Foundation, Inc. 1559This configure script is free software; the Free Software Foundation 1560gives unlimited permission to copy, distribute and modify it. 1561_ACEOF 1562 exit 1563fi 1564 1565## ------------------------ ## 1566## Autoconf initialization. ## 1567## ------------------------ ## 1568 1569# ac_fn_c_try_compile LINENO 1570# -------------------------- 1571# Try to compile conftest.$ac_ext, and return whether this succeeded. 1572ac_fn_c_try_compile () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 rm -f conftest.$ac_objext 1576 if { { ac_try="$ac_compile" 1577case "(($ac_try" in 1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1579 *) ac_try_echo=$ac_try;; 1580esac 1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1582$as_echo "$ac_try_echo"; } >&5 1583 (eval "$ac_compile") 2>conftest.err 1584 ac_status=$? 1585 if test -s conftest.err; then 1586 grep -v '^ *+' conftest.err >conftest.er1 1587 cat conftest.er1 >&5 1588 mv -f conftest.er1 conftest.err 1589 fi 1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1591 test $ac_status = 0; } && { 1592 test -z "$ac_c_werror_flag" || 1593 test ! -s conftest.err 1594 } && test -s conftest.$ac_objext; then : 1595 ac_retval=0 1596else 1597 $as_echo "$as_me: failed program was:" >&5 1598sed 's/^/| /' conftest.$ac_ext >&5 1599 1600 ac_retval=1 1601fi 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 as_fn_set_status $ac_retval 1604 1605} # ac_fn_c_try_compile 1606 1607# ac_fn_c_try_link LINENO 1608# ----------------------- 1609# Try to link conftest.$ac_ext, and return whether this succeeded. 1610ac_fn_c_try_link () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 rm -f conftest.$ac_objext conftest$ac_exeext 1614 if { { ac_try="$ac_link" 1615case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618esac 1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620$as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_link") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } && { 1630 test -z "$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 } && test -s conftest$ac_exeext && { 1633 test "$cross_compiling" = yes || 1634 test -x conftest$ac_exeext 1635 }; then : 1636 ac_retval=0 1637else 1638 $as_echo "$as_me: failed program was:" >&5 1639sed 's/^/| /' conftest.$ac_ext >&5 1640 1641 ac_retval=1 1642fi 1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1645 # interfere with the next link command; also delete a directory that is 1646 # left behind by Apple's compiler. We do this before executing the actions. 1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651} # ac_fn_c_try_link 1652 1653# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1654# ------------------------------------------------------- 1655# Tests whether HEADER exists and can be compiled using the include files in 1656# INCLUDES, setting the cache variable VAR accordingly. 1657ac_fn_c_check_header_compile () 1658{ 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1661$as_echo_n "checking for $2... " >&6; } 1662if eval \${$3+:} false; then : 1663 $as_echo_n "(cached) " >&6 1664else 1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1666/* end confdefs.h. */ 1667$4 1668#include <$2> 1669_ACEOF 1670if ac_fn_c_try_compile "$LINENO"; then : 1671 eval "$3=yes" 1672else 1673 eval "$3=no" 1674fi 1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1676fi 1677eval ac_res=\$$3 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679$as_echo "$ac_res" >&6; } 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 1682} # ac_fn_c_check_header_compile 1683 1684# ac_fn_c_try_cpp LINENO 1685# ---------------------- 1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_cpp () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { { ac_try="$ac_cpp conftest.$ac_ext" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1698 ac_status=$? 1699 if test -s conftest.err; then 1700 grep -v '^ *+' conftest.err >conftest.er1 1701 cat conftest.er1 >&5 1702 mv -f conftest.er1 conftest.err 1703 fi 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } > conftest.i && { 1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1707 test ! -s conftest.err 1708 }; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=1 1715fi 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_cpp 1720 1721# ac_fn_c_try_run LINENO 1722# ---------------------- 1723# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1724# that executables *can* be run. 1725ac_fn_c_try_run () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 if { { ac_try="$ac_link" 1729case "(($ac_try" in 1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1731 *) ac_try_echo=$ac_try;; 1732esac 1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1734$as_echo "$ac_try_echo"; } >&5 1735 (eval "$ac_link") 2>&5 1736 ac_status=$? 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1739 { { case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742esac 1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744$as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_try") 2>&5 1746 ac_status=$? 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; }; }; then : 1749 ac_retval=0 1750else 1751 $as_echo "$as_me: program exited with status $ac_status" >&5 1752 $as_echo "$as_me: failed program was:" >&5 1753sed 's/^/| /' conftest.$ac_ext >&5 1754 1755 ac_retval=$ac_status 1756fi 1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_c_try_run 1762 1763# ac_fn_c_check_func LINENO FUNC VAR 1764# ---------------------------------- 1765# Tests whether FUNC exists, setting the cache variable VAR accordingly 1766ac_fn_c_check_func () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770$as_echo_n "checking for $2... " >&6; } 1771if eval \${$3+:} false; then : 1772 $as_echo_n "(cached) " >&6 1773else 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775/* end confdefs.h. */ 1776/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1778#define $2 innocuous_$2 1779 1780/* System header to define __stub macros and hopefully few prototypes, 1781 which can conflict with char $2 (); below. 1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1783 <limits.h> exists even on freestanding compilers. */ 1784 1785#ifdef __STDC__ 1786# include <limits.h> 1787#else 1788# include <assert.h> 1789#endif 1790 1791#undef $2 1792 1793/* Override any GCC internal prototype to avoid an error. 1794 Use char because int might match the return type of a GCC 1795 builtin and then its argument prototype would still apply. */ 1796#ifdef __cplusplus 1797extern "C" 1798#endif 1799char $2 (); 1800/* The GNU C library defines this for functions which it implements 1801 to always fail with ENOSYS. Some functions are actually named 1802 something starting with __ and the normal name is an alias. */ 1803#if defined __stub_$2 || defined __stub___$2 1804choke me 1805#endif 1806 1807int 1808main () 1809{ 1810return $2 (); 1811 ; 1812 return 0; 1813} 1814_ACEOF 1815if ac_fn_c_try_link "$LINENO"; then : 1816 eval "$3=yes" 1817else 1818 eval "$3=no" 1819fi 1820rm -f core conftest.err conftest.$ac_objext \ 1821 conftest$ac_exeext conftest.$ac_ext 1822fi 1823eval ac_res=\$$3 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825$as_echo "$ac_res" >&6; } 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 1828} # ac_fn_c_check_func 1829 1830# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1831# --------------------------------------------- 1832# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1833# accordingly. 1834ac_fn_c_check_decl () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 as_decl_name=`echo $2|sed 's/ *(.*//'` 1838 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1840$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1841if eval \${$3+:} false; then : 1842 $as_echo_n "(cached) " >&6 1843else 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846$4 1847int 1848main () 1849{ 1850#ifndef $as_decl_name 1851#ifdef __cplusplus 1852 (void) $as_decl_use; 1853#else 1854 (void) $as_decl_name; 1855#endif 1856#endif 1857 1858 ; 1859 return 0; 1860} 1861_ACEOF 1862if ac_fn_c_try_compile "$LINENO"; then : 1863 eval "$3=yes" 1864else 1865 eval "$3=no" 1866fi 1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1868fi 1869eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871$as_echo "$ac_res" >&6; } 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_decl 1875cat >config.log <<_ACEOF 1876This file contains any messages produced by compilers while 1877running configure, to aid debugging if configure makes a mistake. 1878 1879It was created by libXv $as_me 1.0.11, which was 1880generated by GNU Autoconf 2.69. Invocation command line was 1881 1882 $ $0 $@ 1883 1884_ACEOF 1885exec 5>>config.log 1886{ 1887cat <<_ASUNAME 1888## --------- ## 1889## Platform. ## 1890## --------- ## 1891 1892hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1893uname -m = `(uname -m) 2>/dev/null || echo unknown` 1894uname -r = `(uname -r) 2>/dev/null || echo unknown` 1895uname -s = `(uname -s) 2>/dev/null || echo unknown` 1896uname -v = `(uname -v) 2>/dev/null || echo unknown` 1897 1898/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1899/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1900 1901/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1902/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1903/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1904/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1905/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1906/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1907/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1908 1909_ASUNAME 1910 1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1912for as_dir in $PATH 1913do 1914 IFS=$as_save_IFS 1915 test -z "$as_dir" && as_dir=. 1916 $as_echo "PATH: $as_dir" 1917 done 1918IFS=$as_save_IFS 1919 1920} >&5 1921 1922cat >&5 <<_ACEOF 1923 1924 1925## ----------- ## 1926## Core tests. ## 1927## ----------- ## 1928 1929_ACEOF 1930 1931 1932# Keep a trace of the command line. 1933# Strip out --no-create and --no-recursion so they do not pile up. 1934# Strip out --silent because we don't want to record it for future runs. 1935# Also quote any args containing shell meta-characters. 1936# Make two passes to allow for proper duplicate-argument suppression. 1937ac_configure_args= 1938ac_configure_args0= 1939ac_configure_args1= 1940ac_must_keep_next=false 1941for ac_pass in 1 2 1942do 1943 for ac_arg 1944 do 1945 case $ac_arg in 1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1948 | -silent | --silent | --silen | --sile | --sil) 1949 continue ;; 1950 *\'*) 1951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1952 esac 1953 case $ac_pass in 1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1955 2) 1956 as_fn_append ac_configure_args1 " '$ac_arg'" 1957 if test $ac_must_keep_next = true; then 1958 ac_must_keep_next=false # Got value, back to normal. 1959 else 1960 case $ac_arg in 1961 *=* | --config-cache | -C | -disable-* | --disable-* \ 1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1964 | -with-* | --with-* | -without-* | --without-* | --x) 1965 case "$ac_configure_args0 " in 1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1967 esac 1968 ;; 1969 -* ) ac_must_keep_next=true ;; 1970 esac 1971 fi 1972 as_fn_append ac_configure_args " '$ac_arg'" 1973 ;; 1974 esac 1975 done 1976done 1977{ ac_configure_args0=; unset ac_configure_args0;} 1978{ ac_configure_args1=; unset ac_configure_args1;} 1979 1980# When interrupted or exit'd, cleanup temporary files, and complete 1981# config.log. We remove comments because anyway the quotes in there 1982# would cause problems or look ugly. 1983# WARNING: Use '\'' to represent an apostrophe within the trap. 1984# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1985trap 'exit_status=$? 1986 # Save into config.log some information that might help in debugging. 1987 { 1988 echo 1989 1990 $as_echo "## ---------------- ## 1991## Cache variables. ## 1992## ---------------- ##" 1993 echo 1994 # The following way of writing the cache mishandles newlines in values, 1995( 1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1997 eval ac_val=\$$ac_var 1998 case $ac_val in #( 1999 *${as_nl}*) 2000 case $ac_var in #( 2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2003 esac 2004 case $ac_var in #( 2005 _ | IFS | as_nl) ;; #( 2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2007 *) { eval $ac_var=; unset $ac_var;} ;; 2008 esac ;; 2009 esac 2010 done 2011 (set) 2>&1 | 2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2013 *${as_nl}ac_space=\ *) 2014 sed -n \ 2015 "s/'\''/'\''\\\\'\'''\''/g; 2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2017 ;; #( 2018 *) 2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2020 ;; 2021 esac | 2022 sort 2023) 2024 echo 2025 2026 $as_echo "## ----------------- ## 2027## Output variables. ## 2028## ----------------- ##" 2029 echo 2030 for ac_var in $ac_subst_vars 2031 do 2032 eval ac_val=\$$ac_var 2033 case $ac_val in 2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2035 esac 2036 $as_echo "$ac_var='\''$ac_val'\''" 2037 done | sort 2038 echo 2039 2040 if test -n "$ac_subst_files"; then 2041 $as_echo "## ------------------- ## 2042## File substitutions. ## 2043## ------------------- ##" 2044 echo 2045 for ac_var in $ac_subst_files 2046 do 2047 eval ac_val=\$$ac_var 2048 case $ac_val in 2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2050 esac 2051 $as_echo "$ac_var='\''$ac_val'\''" 2052 done | sort 2053 echo 2054 fi 2055 2056 if test -s confdefs.h; then 2057 $as_echo "## ----------- ## 2058## confdefs.h. ## 2059## ----------- ##" 2060 echo 2061 cat confdefs.h 2062 echo 2063 fi 2064 test "$ac_signal" != 0 && 2065 $as_echo "$as_me: caught signal $ac_signal" 2066 $as_echo "$as_me: exit $exit_status" 2067 } >&5 2068 rm -f core *.core core.conftest.* && 2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2070 exit $exit_status 2071' 0 2072for ac_signal in 1 2 13 15; do 2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2074done 2075ac_signal=0 2076 2077# confdefs.h avoids OS command line length limits that DEFS can exceed. 2078rm -f -r conftest* confdefs.h 2079 2080$as_echo "/* confdefs.h */" > confdefs.h 2081 2082# Predefined preprocessor variables. 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_NAME "$PACKAGE_NAME" 2086_ACEOF 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_VERSION "$PACKAGE_VERSION" 2094_ACEOF 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_STRING "$PACKAGE_STRING" 2098_ACEOF 2099 2100cat >>confdefs.h <<_ACEOF 2101#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2102_ACEOF 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_URL "$PACKAGE_URL" 2106_ACEOF 2107 2108 2109# Let the site file select an alternate cache file if it wants to. 2110# Prefer an explicitly selected file to automatically selected ones. 2111ac_site_file1=NONE 2112ac_site_file2=NONE 2113if test -n "$CONFIG_SITE"; then 2114 # We do not want a PATH search for config.site. 2115 case $CONFIG_SITE in #(( 2116 -*) ac_site_file1=./$CONFIG_SITE;; 2117 */*) ac_site_file1=$CONFIG_SITE;; 2118 *) ac_site_file1=./$CONFIG_SITE;; 2119 esac 2120elif test "x$prefix" != xNONE; then 2121 ac_site_file1=$prefix/share/config.site 2122 ac_site_file2=$prefix/etc/config.site 2123else 2124 ac_site_file1=$ac_default_prefix/share/config.site 2125 ac_site_file2=$ac_default_prefix/etc/config.site 2126fi 2127for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2128do 2129 test "x$ac_site_file" = xNONE && continue 2130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2132$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2133 sed 's/^/| /' "$ac_site_file" >&5 2134 . "$ac_site_file" \ 2135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2137as_fn_error $? "failed to load site script $ac_site_file 2138See \`config.log' for more details" "$LINENO" 5; } 2139 fi 2140done 2141 2142if test -r "$cache_file"; then 2143 # Some versions of bash will fail to source /dev/null (special files 2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2147$as_echo "$as_me: loading cache $cache_file" >&6;} 2148 case $cache_file in 2149 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2150 *) . "./$cache_file";; 2151 esac 2152 fi 2153else 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2155$as_echo "$as_me: creating cache $cache_file" >&6;} 2156 >$cache_file 2157fi 2158 2159# Check that the precious variables saved in the cache have kept the same 2160# value. 2161ac_cache_corrupted=false 2162for ac_var in $ac_precious_vars; do 2163 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2164 eval ac_new_set=\$ac_env_${ac_var}_set 2165 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2166 eval ac_new_val=\$ac_env_${ac_var}_value 2167 case $ac_old_set,$ac_new_set in 2168 set,) 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2170$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2171 ac_cache_corrupted=: ;; 2172 ,set) 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2174$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2175 ac_cache_corrupted=: ;; 2176 ,);; 2177 *) 2178 if test "x$ac_old_val" != "x$ac_new_val"; then 2179 # differences in whitespace do not lead to failure. 2180 ac_old_val_w=`echo x $ac_old_val` 2181 ac_new_val_w=`echo x $ac_new_val` 2182 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2184$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2185 ac_cache_corrupted=: 2186 else 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2188$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2189 eval $ac_var=\$ac_old_val 2190 fi 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2192$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2194$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2195 fi;; 2196 esac 2197 # Pass precious variables to config.status. 2198 if test "$ac_new_set" = set; then 2199 case $ac_new_val in 2200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2201 *) ac_arg=$ac_var=$ac_new_val ;; 2202 esac 2203 case " $ac_configure_args " in 2204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2205 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2206 esac 2207 fi 2208done 2209if $ac_cache_corrupted; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2213$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2214 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2215fi 2216## -------------------- ## 2217## Main body of script. ## 2218## -------------------- ## 2219 2220ac_ext=c 2221ac_cpp='$CPP $CPPFLAGS' 2222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2224ac_compiler_gnu=$ac_cv_c_compiler_gnu 2225 2226 2227 2228ac_config_headers="$ac_config_headers config.h" 2229 2230 2231# Initialize Automake 2232am__api_version='1.14' 2233 2234ac_aux_dir= 2235for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2236 if test -f "$ac_dir/install-sh"; then 2237 ac_aux_dir=$ac_dir 2238 ac_install_sh="$ac_aux_dir/install-sh -c" 2239 break 2240 elif test -f "$ac_dir/install.sh"; then 2241 ac_aux_dir=$ac_dir 2242 ac_install_sh="$ac_aux_dir/install.sh -c" 2243 break 2244 elif test -f "$ac_dir/shtool"; then 2245 ac_aux_dir=$ac_dir 2246 ac_install_sh="$ac_aux_dir/shtool install -c" 2247 break 2248 fi 2249done 2250if test -z "$ac_aux_dir"; then 2251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2252fi 2253 2254# These three variables are undocumented and unsupported, 2255# and are intended to be withdrawn in a future Autoconf release. 2256# They can cause serious problems if a builder's source tree is in a directory 2257# whose full name contains unusual characters. 2258ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2259ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2260ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2261 2262 2263# Find a good install program. We prefer a C program (faster), 2264# so one script is as good as another. But avoid the broken or 2265# incompatible versions: 2266# SysV /etc/install, /usr/sbin/install 2267# SunOS /usr/etc/install 2268# IRIX /sbin/install 2269# AIX /bin/install 2270# AmigaOS /C/install, which installs bootblocks on floppy discs 2271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2272# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2274# OS/2's system install, which has a completely different semantic 2275# ./install, which can be erroneously created by make from ./install.sh. 2276# Reject install programs that cannot install multiple files. 2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2278$as_echo_n "checking for a BSD-compatible install... " >&6; } 2279if test -z "$INSTALL"; then 2280if ${ac_cv_path_install+:} false; then : 2281 $as_echo_n "(cached) " >&6 2282else 2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 # Account for people who put trailing slashes in PATH elements. 2289case $as_dir/ in #(( 2290 ./ | .// | /[cC]/* | \ 2291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2293 /usr/ucb/* ) ;; 2294 *) 2295 # OSF1 and SCO ODT 3.0 have their own names for install. 2296 # Don't use installbsd from OSF since it installs stuff as root 2297 # by default. 2298 for ac_prog in ginstall scoinst install; do 2299 for ac_exec_ext in '' $ac_executable_extensions; do 2300 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2301 if test $ac_prog = install && 2302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2303 # AIX install. It has an incompatible calling convention. 2304 : 2305 elif test $ac_prog = install && 2306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2307 # program-specific install script used by HP pwplus--don't use. 2308 : 2309 else 2310 rm -rf conftest.one conftest.two conftest.dir 2311 echo one > conftest.one 2312 echo two > conftest.two 2313 mkdir conftest.dir 2314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2315 test -s conftest.one && test -s conftest.two && 2316 test -s conftest.dir/conftest.one && 2317 test -s conftest.dir/conftest.two 2318 then 2319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2320 break 3 2321 fi 2322 fi 2323 fi 2324 done 2325 done 2326 ;; 2327esac 2328 2329 done 2330IFS=$as_save_IFS 2331 2332rm -rf conftest.one conftest.two conftest.dir 2333 2334fi 2335 if test "${ac_cv_path_install+set}" = set; then 2336 INSTALL=$ac_cv_path_install 2337 else 2338 # As a last resort, use the slow shell script. Don't cache a 2339 # value for INSTALL within a source directory, because that will 2340 # break other packages using the cache if that directory is 2341 # removed, or if the value is a relative name. 2342 INSTALL=$ac_install_sh 2343 fi 2344fi 2345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2346$as_echo "$INSTALL" >&6; } 2347 2348# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2349# It thinks the first close brace ends the variable substitution. 2350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2351 2352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2353 2354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2355 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2357$as_echo_n "checking whether build environment is sane... " >&6; } 2358# Reject unsafe characters in $srcdir or the absolute working directory 2359# name. Accept space and tab only in the latter. 2360am_lf=' 2361' 2362case `pwd` in 2363 *[\\\"\#\$\&\'\`$am_lf]*) 2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2365esac 2366case $srcdir in 2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2368 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2369esac 2370 2371# Do 'set' in a subshell so we don't clobber the current shell's 2372# arguments. Must try -L first in case configure is actually a 2373# symlink; some systems play weird games with the mod time of symlinks 2374# (eg FreeBSD returns the mod time of the symlink's containing 2375# directory). 2376if ( 2377 am_has_slept=no 2378 for am_try in 1 2; do 2379 echo "timestamp, slept: $am_has_slept" > conftest.file 2380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2381 if test "$*" = "X"; then 2382 # -L didn't work. 2383 set X `ls -t "$srcdir/configure" conftest.file` 2384 fi 2385 if test "$*" != "X $srcdir/configure conftest.file" \ 2386 && test "$*" != "X conftest.file $srcdir/configure"; then 2387 2388 # If neither matched, then we have a broken ls. This can happen 2389 # if, for instance, CONFIG_SHELL is bash and it inherits a 2390 # broken ls alias from the environment. This has actually 2391 # happened. Such a system could not be considered "sane". 2392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2393 alias in your environment" "$LINENO" 5 2394 fi 2395 if test "$2" = conftest.file || test $am_try -eq 2; then 2396 break 2397 fi 2398 # Just in case. 2399 sleep 1 2400 am_has_slept=yes 2401 done 2402 test "$2" = conftest.file 2403 ) 2404then 2405 # Ok. 2406 : 2407else 2408 as_fn_error $? "newly created file is older than distributed files! 2409Check your system clock" "$LINENO" 5 2410fi 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2412$as_echo "yes" >&6; } 2413# If we didn't sleep, we still need to ensure time stamps of config.status and 2414# generated files are strictly newer. 2415am_sleep_pid= 2416if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2417 ( sleep 1 ) & 2418 am_sleep_pid=$! 2419fi 2420 2421rm -f conftest.file 2422 2423test "$program_prefix" != NONE && 2424 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2425# Use a double $ so make ignores it. 2426test "$program_suffix" != NONE && 2427 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2428# Double any \ or $. 2429# By default was `s,x,x', remove it if useless. 2430ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2431program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2432 2433# expand $ac_aux_dir to an absolute path 2434am_aux_dir=`cd $ac_aux_dir && pwd` 2435 2436if test x"${MISSING+set}" != xset; then 2437 case $am_aux_dir in 2438 *\ * | *\ *) 2439 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2440 *) 2441 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2442 esac 2443fi 2444# Use eval to expand $SHELL 2445if eval "$MISSING --is-lightweight"; then 2446 am_missing_run="$MISSING " 2447else 2448 am_missing_run= 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2450$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2451fi 2452 2453if test x"${install_sh}" != xset; then 2454 case $am_aux_dir in 2455 *\ * | *\ *) 2456 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2457 *) 2458 install_sh="\${SHELL} $am_aux_dir/install-sh" 2459 esac 2460fi 2461 2462# Installed binaries are usually stripped using 'strip' when the user 2463# run "make install-strip". However 'strip' might not be the right 2464# tool to use in cross-compilation environments, therefore Automake 2465# will honor the 'STRIP' environment variable to overrule this program. 2466if test "$cross_compiling" != no; then 2467 if test -n "$ac_tool_prefix"; then 2468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2469set dummy ${ac_tool_prefix}strip; ac_word=$2 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2471$as_echo_n "checking for $ac_word... " >&6; } 2472if ${ac_cv_prog_STRIP+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 if test -n "$STRIP"; then 2476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2485 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490 done 2491IFS=$as_save_IFS 2492 2493fi 2494fi 2495STRIP=$ac_cv_prog_STRIP 2496if test -n "$STRIP"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2498$as_echo "$STRIP" >&6; } 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501$as_echo "no" >&6; } 2502fi 2503 2504 2505fi 2506if test -z "$ac_cv_prog_STRIP"; then 2507 ac_ct_STRIP=$STRIP 2508 # Extract the first word of "strip", so it can be a program name with args. 2509set dummy strip; ac_word=$2 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2511$as_echo_n "checking for $ac_word... " >&6; } 2512if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2513 $as_echo_n "(cached) " >&6 2514else 2515 if test -n "$ac_ct_STRIP"; then 2516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2525 ac_cv_prog_ac_ct_STRIP="strip" 2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2536if test -n "$ac_ct_STRIP"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2538$as_echo "$ac_ct_STRIP" >&6; } 2539else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2541$as_echo "no" >&6; } 2542fi 2543 2544 if test "x$ac_ct_STRIP" = x; then 2545 STRIP=":" 2546 else 2547 case $cross_compiling:$ac_tool_warned in 2548yes:) 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2551ac_tool_warned=yes ;; 2552esac 2553 STRIP=$ac_ct_STRIP 2554 fi 2555else 2556 STRIP="$ac_cv_prog_STRIP" 2557fi 2558 2559fi 2560INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2561 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2563$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2564if test -z "$MKDIR_P"; then 2565 if ${ac_cv_path_mkdir+:} false; then : 2566 $as_echo_n "(cached) " >&6 2567else 2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2569for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2570do 2571 IFS=$as_save_IFS 2572 test -z "$as_dir" && as_dir=. 2573 for ac_prog in mkdir gmkdir; do 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2576 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2577 'mkdir (GNU coreutils) '* | \ 2578 'mkdir (coreutils) '* | \ 2579 'mkdir (fileutils) '4.1*) 2580 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2581 break 3;; 2582 esac 2583 done 2584 done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589 2590 test -d ./--version && rmdir ./--version 2591 if test "${ac_cv_path_mkdir+set}" = set; then 2592 MKDIR_P="$ac_cv_path_mkdir -p" 2593 else 2594 # As a last resort, use the slow shell script. Don't cache a 2595 # value for MKDIR_P within a source directory, because that will 2596 # break other packages using the cache if that directory is 2597 # removed, or if the value is a relative name. 2598 MKDIR_P="$ac_install_sh -d" 2599 fi 2600fi 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2602$as_echo "$MKDIR_P" >&6; } 2603 2604for ac_prog in gawk mawk nawk awk 2605do 2606 # Extract the first word of "$ac_prog", so it can be a program name with args. 2607set dummy $ac_prog; ac_word=$2 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2609$as_echo_n "checking for $ac_word... " >&6; } 2610if ${ac_cv_prog_AWK+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 if test -n "$AWK"; then 2614 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2615else 2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2617for as_dir in $PATH 2618do 2619 IFS=$as_save_IFS 2620 test -z "$as_dir" && as_dir=. 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2623 ac_cv_prog_AWK="$ac_prog" 2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2625 break 2 2626 fi 2627done 2628 done 2629IFS=$as_save_IFS 2630 2631fi 2632fi 2633AWK=$ac_cv_prog_AWK 2634if test -n "$AWK"; then 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2636$as_echo "$AWK" >&6; } 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639$as_echo "no" >&6; } 2640fi 2641 2642 2643 test -n "$AWK" && break 2644done 2645 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2647$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2648set x ${MAKE-make} 2649ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2650if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 cat >conftest.make <<\_ACEOF 2654SHELL = /bin/sh 2655all: 2656 @echo '@@@%%%=$(MAKE)=@@@%%%' 2657_ACEOF 2658# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2659case `${MAKE-make} -f conftest.make 2>/dev/null` in 2660 *@@@%%%=?*=@@@%%%*) 2661 eval ac_cv_prog_make_${ac_make}_set=yes;; 2662 *) 2663 eval ac_cv_prog_make_${ac_make}_set=no;; 2664esac 2665rm -f conftest.make 2666fi 2667if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2669$as_echo "yes" >&6; } 2670 SET_MAKE= 2671else 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2673$as_echo "no" >&6; } 2674 SET_MAKE="MAKE=${MAKE-make}" 2675fi 2676 2677rm -rf .tst 2>/dev/null 2678mkdir .tst 2>/dev/null 2679if test -d .tst; then 2680 am__leading_dot=. 2681else 2682 am__leading_dot=_ 2683fi 2684rmdir .tst 2>/dev/null 2685 2686# Check whether --enable-silent-rules was given. 2687if test "${enable_silent_rules+set}" = set; then : 2688 enableval=$enable_silent_rules; 2689fi 2690 2691case $enable_silent_rules in # ((( 2692 yes) AM_DEFAULT_VERBOSITY=0;; 2693 no) AM_DEFAULT_VERBOSITY=1;; 2694 *) AM_DEFAULT_VERBOSITY=1;; 2695esac 2696am_make=${MAKE-make} 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2698$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2699if ${am_cv_make_support_nested_variables+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 if $as_echo 'TRUE=$(BAR$(V)) 2703BAR0=false 2704BAR1=true 2705V=1 2706am__doit: 2707 @$(TRUE) 2708.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2709 am_cv_make_support_nested_variables=yes 2710else 2711 am_cv_make_support_nested_variables=no 2712fi 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2715$as_echo "$am_cv_make_support_nested_variables" >&6; } 2716if test $am_cv_make_support_nested_variables = yes; then 2717 AM_V='$(V)' 2718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2719else 2720 AM_V=$AM_DEFAULT_VERBOSITY 2721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2722fi 2723AM_BACKSLASH='\' 2724 2725if test "`cd $srcdir && pwd`" != "`pwd`"; then 2726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2727 # is not polluted with repeated "-I." 2728 am__isrc=' -I$(srcdir)' 2729 # test to see if srcdir already configured 2730 if test -f $srcdir/config.status; then 2731 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2732 fi 2733fi 2734 2735# test whether we have cygpath 2736if test -z "$CYGPATH_W"; then 2737 if (cygpath --version) >/dev/null 2>/dev/null; then 2738 CYGPATH_W='cygpath -w' 2739 else 2740 CYGPATH_W=echo 2741 fi 2742fi 2743 2744 2745# Define the identity of the package. 2746 PACKAGE='libXv' 2747 VERSION='1.0.11' 2748 2749 2750cat >>confdefs.h <<_ACEOF 2751#define PACKAGE "$PACKAGE" 2752_ACEOF 2753 2754 2755cat >>confdefs.h <<_ACEOF 2756#define VERSION "$VERSION" 2757_ACEOF 2758 2759# Some tools Automake needs. 2760 2761ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2762 2763 2764AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2765 2766 2767AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2768 2769 2770AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2771 2772 2773MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2774 2775# For better backward compatibility. To be removed once Automake 1.9.x 2776# dies out for good. For more background, see: 2777# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2778# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2779mkdir_p='$(MKDIR_P)' 2780 2781# We need awk for the "check" target. The system "awk" is bad on 2782# some platforms. 2783# Always define AMTAR for backward compatibility. Yes, it's still used 2784# in the wild :-( We should find a proper way to deprecate it ... 2785AMTAR='$${TAR-tar}' 2786 2787 2788# We'll loop over all known methods to create a tar archive until one works. 2789_am_tools='gnutar pax cpio none' 2790 2791am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2792 2793 2794 2795 2796 2797 2798# POSIX will say in a future version that running "rm -f" with no argument 2799# is OK; and we want to be able to make that assumption in our Makefile 2800# recipes. So use an aggressive probe to check that the usage we want is 2801# actually supported "in the wild" to an acceptable degree. 2802# See automake bug#10828. 2803# To make any issue more visible, cause the running configure to be aborted 2804# by default if the 'rm' program in use doesn't match our expectations; the 2805# user can still override this though. 2806if rm -f && rm -fr && rm -rf; then : OK; else 2807 cat >&2 <<'END' 2808Oops! 2809 2810Your 'rm' program seems unable to run without file operands specified 2811on the command line, even when the '-f' option is present. This is contrary 2812to the behaviour of most rm programs out there, and not conforming with 2813the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2814 2815Please tell bug-automake@gnu.org about your system, including the value 2816of your $PATH and any error possibly output before this message. This 2817can help us improve future automake versions. 2818 2819END 2820 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2821 echo 'Configuration will proceed anyway, since you have set the' >&2 2822 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2823 echo >&2 2824 else 2825 cat >&2 <<'END' 2826Aborting the configuration process, to ensure you take notice of the issue. 2827 2828You can download and install GNU coreutils to get an 'rm' implementation 2829that behaves properly: <http://www.gnu.org/software/coreutils/>. 2830 2831If you want to complete the configuration process using your problematic 2832'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2833to "yes", and re-run configure. 2834 2835END 2836 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2837 fi 2838fi 2839 2840# Initialize libtool 2841case `pwd` in 2842 *\ * | *\ *) 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2844$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2845esac 2846 2847 2848 2849macro_version='2.4.2' 2850macro_revision='1.3337' 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864ltmain="$ac_aux_dir/ltmain.sh" 2865 2866# Make sure we can run config.sub. 2867$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2868 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2869 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2871$as_echo_n "checking build system type... " >&6; } 2872if ${ac_cv_build+:} false; then : 2873 $as_echo_n "(cached) " >&6 2874else 2875 ac_build_alias=$build_alias 2876test "x$ac_build_alias" = x && 2877 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2878test "x$ac_build_alias" = x && 2879 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2880ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2881 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2882 2883fi 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2885$as_echo "$ac_cv_build" >&6; } 2886case $ac_cv_build in 2887*-*-*) ;; 2888*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2889esac 2890build=$ac_cv_build 2891ac_save_IFS=$IFS; IFS='-' 2892set x $ac_cv_build 2893shift 2894build_cpu=$1 2895build_vendor=$2 2896shift; shift 2897# Remember, the first character of IFS is used to create $*, 2898# except with old shells: 2899build_os=$* 2900IFS=$ac_save_IFS 2901case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2902 2903 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2905$as_echo_n "checking host system type... " >&6; } 2906if ${ac_cv_host+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 if test "x$host_alias" = x; then 2910 ac_cv_host=$ac_cv_build 2911else 2912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2913 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2914fi 2915 2916fi 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2918$as_echo "$ac_cv_host" >&6; } 2919case $ac_cv_host in 2920*-*-*) ;; 2921*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2922esac 2923host=$ac_cv_host 2924ac_save_IFS=$IFS; IFS='-' 2925set x $ac_cv_host 2926shift 2927host_cpu=$1 2928host_vendor=$2 2929shift; shift 2930# Remember, the first character of IFS is used to create $*, 2931# except with old shells: 2932host_os=$* 2933IFS=$ac_save_IFS 2934case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2935 2936 2937# Backslashify metacharacters that are still active within 2938# double-quoted strings. 2939sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2940 2941# Same as above, but do not quote variable references. 2942double_quote_subst='s/\(["`\\]\)/\\\1/g' 2943 2944# Sed substitution to delay expansion of an escaped shell variable in a 2945# double_quote_subst'ed string. 2946delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2947 2948# Sed substitution to delay expansion of an escaped single quote. 2949delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2950 2951# Sed substitution to avoid accidental globbing in evaled expressions 2952no_glob_subst='s/\*/\\\*/g' 2953 2954ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2955ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2956ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2957 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2959$as_echo_n "checking how to print strings... " >&6; } 2960# Test print first, because it will be a builtin if present. 2961if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2962 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2963 ECHO='print -r --' 2964elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2965 ECHO='printf %s\n' 2966else 2967 # Use this function as a fallback that always works. 2968 func_fallback_echo () 2969 { 2970 eval 'cat <<_LTECHO_EOF 2971$1 2972_LTECHO_EOF' 2973 } 2974 ECHO='func_fallback_echo' 2975fi 2976 2977# func_echo_all arg... 2978# Invoke $ECHO with all args, space-separated. 2979func_echo_all () 2980{ 2981 $ECHO "" 2982} 2983 2984case "$ECHO" in 2985 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2986$as_echo "printf" >&6; } ;; 2987 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2988$as_echo "print -r" >&6; } ;; 2989 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2990$as_echo "cat" >&6; } ;; 2991esac 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006DEPDIR="${am__leading_dot}deps" 3007 3008ac_config_commands="$ac_config_commands depfiles" 3009 3010 3011am_make=${MAKE-make} 3012cat > confinc << 'END' 3013am__doit: 3014 @echo this is the am__doit target 3015.PHONY: am__doit 3016END 3017# If we don't find an include directive, just comment out the code. 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3019$as_echo_n "checking for style of include used by $am_make... " >&6; } 3020am__include="#" 3021am__quote= 3022_am_result=none 3023# First try GNU make style include. 3024echo "include confinc" > confmf 3025# Ignore all kinds of additional output from 'make'. 3026case `$am_make -s -f confmf 2> /dev/null` in #( 3027*the\ am__doit\ target*) 3028 am__include=include 3029 am__quote= 3030 _am_result=GNU 3031 ;; 3032esac 3033# Now try BSD make style include. 3034if test "$am__include" = "#"; then 3035 echo '.include "confinc"' > confmf 3036 case `$am_make -s -f confmf 2> /dev/null` in #( 3037 *the\ am__doit\ target*) 3038 am__include=.include 3039 am__quote="\"" 3040 _am_result=BSD 3041 ;; 3042 esac 3043fi 3044 3045 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3047$as_echo "$_am_result" >&6; } 3048rm -f confinc confmf 3049 3050# Check whether --enable-dependency-tracking was given. 3051if test "${enable_dependency_tracking+set}" = set; then : 3052 enableval=$enable_dependency_tracking; 3053fi 3054 3055if test "x$enable_dependency_tracking" != xno; then 3056 am_depcomp="$ac_aux_dir/depcomp" 3057 AMDEPBACKSLASH='\' 3058 am__nodep='_no' 3059fi 3060 if test "x$enable_dependency_tracking" != xno; then 3061 AMDEP_TRUE= 3062 AMDEP_FALSE='#' 3063else 3064 AMDEP_TRUE='#' 3065 AMDEP_FALSE= 3066fi 3067 3068 3069ac_ext=c 3070ac_cpp='$CPP $CPPFLAGS' 3071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3073ac_compiler_gnu=$ac_cv_c_compiler_gnu 3074if test -n "$ac_tool_prefix"; then 3075 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3076set dummy ${ac_tool_prefix}gcc; ac_word=$2 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3078$as_echo_n "checking for $ac_word... " >&6; } 3079if ${ac_cv_prog_CC+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081else 3082 if test -n "$CC"; then 3083 ac_cv_prog_CC="$CC" # Let the user override the test. 3084else 3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3086for as_dir in $PATH 3087do 3088 IFS=$as_save_IFS 3089 test -z "$as_dir" && as_dir=. 3090 for ac_exec_ext in '' $ac_executable_extensions; do 3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3092 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3094 break 2 3095 fi 3096done 3097 done 3098IFS=$as_save_IFS 3099 3100fi 3101fi 3102CC=$ac_cv_prog_CC 3103if test -n "$CC"; then 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3105$as_echo "$CC" >&6; } 3106else 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3108$as_echo "no" >&6; } 3109fi 3110 3111 3112fi 3113if test -z "$ac_cv_prog_CC"; then 3114 ac_ct_CC=$CC 3115 # Extract the first word of "gcc", so it can be a program name with args. 3116set dummy gcc; ac_word=$2 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3118$as_echo_n "checking for $ac_word... " >&6; } 3119if ${ac_cv_prog_ac_ct_CC+:} false; then : 3120 $as_echo_n "(cached) " >&6 3121else 3122 if test -n "$ac_ct_CC"; then 3123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3124else 3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126for as_dir in $PATH 3127do 3128 IFS=$as_save_IFS 3129 test -z "$as_dir" && as_dir=. 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3132 ac_cv_prog_ac_ct_CC="gcc" 3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3134 break 2 3135 fi 3136done 3137 done 3138IFS=$as_save_IFS 3139 3140fi 3141fi 3142ac_ct_CC=$ac_cv_prog_ac_ct_CC 3143if test -n "$ac_ct_CC"; then 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3145$as_echo "$ac_ct_CC" >&6; } 3146else 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3148$as_echo "no" >&6; } 3149fi 3150 3151 if test "x$ac_ct_CC" = x; then 3152 CC="" 3153 else 3154 case $cross_compiling:$ac_tool_warned in 3155yes:) 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3158ac_tool_warned=yes ;; 3159esac 3160 CC=$ac_ct_CC 3161 fi 3162else 3163 CC="$ac_cv_prog_CC" 3164fi 3165 3166if test -z "$CC"; then 3167 if test -n "$ac_tool_prefix"; then 3168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3169set dummy ${ac_tool_prefix}cc; ac_word=$2 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3171$as_echo_n "checking for $ac_word... " >&6; } 3172if ${ac_cv_prog_CC+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 if test -n "$CC"; then 3176 ac_cv_prog_CC="$CC" # Let the user override the test. 3177else 3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3179for as_dir in $PATH 3180do 3181 IFS=$as_save_IFS 3182 test -z "$as_dir" && as_dir=. 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3185 ac_cv_prog_CC="${ac_tool_prefix}cc" 3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3187 break 2 3188 fi 3189done 3190 done 3191IFS=$as_save_IFS 3192 3193fi 3194fi 3195CC=$ac_cv_prog_CC 3196if test -n "$CC"; then 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3198$as_echo "$CC" >&6; } 3199else 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3201$as_echo "no" >&6; } 3202fi 3203 3204 3205 fi 3206fi 3207if test -z "$CC"; then 3208 # Extract the first word of "cc", so it can be a program name with args. 3209set dummy cc; ac_word=$2 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3211$as_echo_n "checking for $ac_word... " >&6; } 3212if ${ac_cv_prog_CC+:} false; then : 3213 $as_echo_n "(cached) " >&6 3214else 3215 if test -n "$CC"; then 3216 ac_cv_prog_CC="$CC" # Let the user override the test. 3217else 3218 ac_prog_rejected=no 3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220for as_dir in $PATH 3221do 3222 IFS=$as_save_IFS 3223 test -z "$as_dir" && as_dir=. 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3227 ac_prog_rejected=yes 3228 continue 3229 fi 3230 ac_cv_prog_CC="cc" 3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3232 break 2 3233 fi 3234done 3235 done 3236IFS=$as_save_IFS 3237 3238if test $ac_prog_rejected = yes; then 3239 # We found a bogon in the path, so make sure we never use it. 3240 set dummy $ac_cv_prog_CC 3241 shift 3242 if test $# != 0; then 3243 # We chose a different compiler from the bogus one. 3244 # However, it has the same basename, so the bogon will be chosen 3245 # first if we set CC to just the basename; use the full file name. 3246 shift 3247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3248 fi 3249fi 3250fi 3251fi 3252CC=$ac_cv_prog_CC 3253if test -n "$CC"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3255$as_echo "$CC" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262fi 3263if test -z "$CC"; then 3264 if test -n "$ac_tool_prefix"; then 3265 for ac_prog in cl.exe 3266 do 3267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3268set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3270$as_echo_n "checking for $ac_word... " >&6; } 3271if ${ac_cv_prog_CC+:} false; then : 3272 $as_echo_n "(cached) " >&6 3273else 3274 if test -n "$CC"; then 3275 ac_cv_prog_CC="$CC" # Let the user override the test. 3276else 3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278for as_dir in $PATH 3279do 3280 IFS=$as_save_IFS 3281 test -z "$as_dir" && as_dir=. 3282 for ac_exec_ext in '' $ac_executable_extensions; do 3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3286 break 2 3287 fi 3288done 3289 done 3290IFS=$as_save_IFS 3291 3292fi 3293fi 3294CC=$ac_cv_prog_CC 3295if test -n "$CC"; then 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3297$as_echo "$CC" >&6; } 3298else 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3300$as_echo "no" >&6; } 3301fi 3302 3303 3304 test -n "$CC" && break 3305 done 3306fi 3307if test -z "$CC"; then 3308 ac_ct_CC=$CC 3309 for ac_prog in cl.exe 3310do 3311 # Extract the first word of "$ac_prog", so it can be a program name with args. 3312set dummy $ac_prog; ac_word=$2 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3314$as_echo_n "checking for $ac_word... " >&6; } 3315if ${ac_cv_prog_ac_ct_CC+:} false; then : 3316 $as_echo_n "(cached) " >&6 3317else 3318 if test -n "$ac_ct_CC"; then 3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3320else 3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3322for as_dir in $PATH 3323do 3324 IFS=$as_save_IFS 3325 test -z "$as_dir" && as_dir=. 3326 for ac_exec_ext in '' $ac_executable_extensions; do 3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3328 ac_cv_prog_ac_ct_CC="$ac_prog" 3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3330 break 2 3331 fi 3332done 3333 done 3334IFS=$as_save_IFS 3335 3336fi 3337fi 3338ac_ct_CC=$ac_cv_prog_ac_ct_CC 3339if test -n "$ac_ct_CC"; then 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3341$as_echo "$ac_ct_CC" >&6; } 3342else 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3344$as_echo "no" >&6; } 3345fi 3346 3347 3348 test -n "$ac_ct_CC" && break 3349done 3350 3351 if test "x$ac_ct_CC" = x; then 3352 CC="" 3353 else 3354 case $cross_compiling:$ac_tool_warned in 3355yes:) 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3358ac_tool_warned=yes ;; 3359esac 3360 CC=$ac_ct_CC 3361 fi 3362fi 3363 3364fi 3365 3366 3367test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3369as_fn_error $? "no acceptable C compiler found in \$PATH 3370See \`config.log' for more details" "$LINENO" 5; } 3371 3372# Provide some information about the compiler. 3373$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3374set X $ac_compile 3375ac_compiler=$2 3376for ac_option in --version -v -V -qversion; do 3377 { { ac_try="$ac_compiler $ac_option >&5" 3378case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381esac 3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3383$as_echo "$ac_try_echo"; } >&5 3384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3385 ac_status=$? 3386 if test -s conftest.err; then 3387 sed '10a\ 3388... rest of stderr output deleted ... 3389 10q' conftest.err >conftest.er1 3390 cat conftest.er1 >&5 3391 fi 3392 rm -f conftest.er1 conftest.err 3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3394 test $ac_status = 0; } 3395done 3396 3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399 3400int 3401main () 3402{ 3403 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408ac_clean_files_save=$ac_clean_files 3409ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3410# Try to create an executable without -o first, disregard a.out. 3411# It will help us diagnose broken compilers, and finding out an intuition 3412# of exeext. 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3414$as_echo_n "checking whether the C compiler works... " >&6; } 3415ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3416 3417# The possible output files: 3418ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3419 3420ac_rmfiles= 3421for ac_file in $ac_files 3422do 3423 case $ac_file in 3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3425 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3426 esac 3427done 3428rm -f $ac_rmfiles 3429 3430if { { ac_try="$ac_link_default" 3431case "(($ac_try" in 3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3433 *) ac_try_echo=$ac_try;; 3434esac 3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3436$as_echo "$ac_try_echo"; } >&5 3437 (eval "$ac_link_default") 2>&5 3438 ac_status=$? 3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3440 test $ac_status = 0; }; then : 3441 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3442# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3443# in a Makefile. We should not override ac_cv_exeext if it was cached, 3444# so that the user can short-circuit this test for compilers unknown to 3445# Autoconf. 3446for ac_file in $ac_files '' 3447do 3448 test -f "$ac_file" || continue 3449 case $ac_file in 3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3451 ;; 3452 [ab].out ) 3453 # We found the default executable, but exeext='' is most 3454 # certainly right. 3455 break;; 3456 *.* ) 3457 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3458 then :; else 3459 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3460 fi 3461 # We set ac_cv_exeext here because the later test for it is not 3462 # safe: cross compilers may not add the suffix if given an `-o' 3463 # argument, so we may need to know it at that point already. 3464 # Even if this section looks crufty: it has the advantage of 3465 # actually working. 3466 break;; 3467 * ) 3468 break;; 3469 esac 3470done 3471test "$ac_cv_exeext" = no && ac_cv_exeext= 3472 3473else 3474 ac_file='' 3475fi 3476if test -z "$ac_file"; then : 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3478$as_echo "no" >&6; } 3479$as_echo "$as_me: failed program was:" >&5 3480sed 's/^/| /' conftest.$ac_ext >&5 3481 3482{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3484as_fn_error 77 "C compiler cannot create executables 3485See \`config.log' for more details" "$LINENO" 5; } 3486else 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3488$as_echo "yes" >&6; } 3489fi 3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3491$as_echo_n "checking for C compiler default output file name... " >&6; } 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3493$as_echo "$ac_file" >&6; } 3494ac_exeext=$ac_cv_exeext 3495 3496rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3497ac_clean_files=$ac_clean_files_save 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3499$as_echo_n "checking for suffix of executables... " >&6; } 3500if { { ac_try="$ac_link" 3501case "(($ac_try" in 3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3503 *) ac_try_echo=$ac_try;; 3504esac 3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3506$as_echo "$ac_try_echo"; } >&5 3507 (eval "$ac_link") 2>&5 3508 ac_status=$? 3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3510 test $ac_status = 0; }; then : 3511 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3512# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3513# work properly (i.e., refer to `conftest.exe'), while it won't with 3514# `rm'. 3515for ac_file in conftest.exe conftest conftest.*; do 3516 test -f "$ac_file" || continue 3517 case $ac_file in 3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3520 break;; 3521 * ) break;; 3522 esac 3523done 3524else 3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3527as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3528See \`config.log' for more details" "$LINENO" 5; } 3529fi 3530rm -f conftest conftest$ac_cv_exeext 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3532$as_echo "$ac_cv_exeext" >&6; } 3533 3534rm -f conftest.$ac_ext 3535EXEEXT=$ac_cv_exeext 3536ac_exeext=$EXEEXT 3537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539#include <stdio.h> 3540int 3541main () 3542{ 3543FILE *f = fopen ("conftest.out", "w"); 3544 return ferror (f) || fclose (f) != 0; 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550ac_clean_files="$ac_clean_files conftest.out" 3551# Check that the compiler produces executables we can run. If not, either 3552# the compiler is broken, or we cross compile. 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3554$as_echo_n "checking whether we are cross compiling... " >&6; } 3555if test "$cross_compiling" != yes; then 3556 { { ac_try="$ac_link" 3557case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3562$as_echo "$ac_try_echo"; } >&5 3563 (eval "$ac_link") 2>&5 3564 ac_status=$? 3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3566 test $ac_status = 0; } 3567 if { ac_try='./conftest$ac_cv_exeext' 3568 { { case "(($ac_try" in 3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3570 *) ac_try_echo=$ac_try;; 3571esac 3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3573$as_echo "$ac_try_echo"; } >&5 3574 (eval "$ac_try") 2>&5 3575 ac_status=$? 3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3577 test $ac_status = 0; }; }; then 3578 cross_compiling=no 3579 else 3580 if test "$cross_compiling" = maybe; then 3581 cross_compiling=yes 3582 else 3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3585as_fn_error $? "cannot run C compiled programs. 3586If you meant to cross compile, use \`--host'. 3587See \`config.log' for more details" "$LINENO" 5; } 3588 fi 3589 fi 3590fi 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3592$as_echo "$cross_compiling" >&6; } 3593 3594rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3595ac_clean_files=$ac_clean_files_save 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3597$as_echo_n "checking for suffix of object files... " >&6; } 3598if ${ac_cv_objext+:} false; then : 3599 $as_echo_n "(cached) " >&6 3600else 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603 3604int 3605main () 3606{ 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612rm -f conftest.o conftest.obj 3613if { { ac_try="$ac_compile" 3614case "(($ac_try" in 3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3616 *) ac_try_echo=$ac_try;; 3617esac 3618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3619$as_echo "$ac_try_echo"; } >&5 3620 (eval "$ac_compile") 2>&5 3621 ac_status=$? 3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3623 test $ac_status = 0; }; then : 3624 for ac_file in conftest.o conftest.obj conftest.*; do 3625 test -f "$ac_file" || continue; 3626 case $ac_file in 3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3629 break;; 3630 esac 3631done 3632else 3633 $as_echo "$as_me: failed program was:" >&5 3634sed 's/^/| /' conftest.$ac_ext >&5 3635 3636{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3638as_fn_error $? "cannot compute suffix of object files: cannot compile 3639See \`config.log' for more details" "$LINENO" 5; } 3640fi 3641rm -f conftest.$ac_cv_objext conftest.$ac_ext 3642fi 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3644$as_echo "$ac_cv_objext" >&6; } 3645OBJEXT=$ac_cv_objext 3646ac_objext=$OBJEXT 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3648$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3649if ${ac_cv_c_compiler_gnu+:} false; then : 3650 $as_echo_n "(cached) " >&6 3651else 3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653/* end confdefs.h. */ 3654 3655int 3656main () 3657{ 3658#ifndef __GNUC__ 3659 choke me 3660#endif 3661 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666if ac_fn_c_try_compile "$LINENO"; then : 3667 ac_compiler_gnu=yes 3668else 3669 ac_compiler_gnu=no 3670fi 3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3672ac_cv_c_compiler_gnu=$ac_compiler_gnu 3673 3674fi 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3676$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3677if test $ac_compiler_gnu = yes; then 3678 GCC=yes 3679else 3680 GCC= 3681fi 3682ac_test_CFLAGS=${CFLAGS+set} 3683ac_save_CFLAGS=$CFLAGS 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3685$as_echo_n "checking whether $CC accepts -g... " >&6; } 3686if ${ac_cv_prog_cc_g+:} false; then : 3687 $as_echo_n "(cached) " >&6 3688else 3689 ac_save_c_werror_flag=$ac_c_werror_flag 3690 ac_c_werror_flag=yes 3691 ac_cv_prog_cc_g=no 3692 CFLAGS="-g" 3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704if ac_fn_c_try_compile "$LINENO"; then : 3705 ac_cv_prog_cc_g=yes 3706else 3707 CFLAGS="" 3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3709/* end confdefs.h. */ 3710 3711int 3712main () 3713{ 3714 3715 ; 3716 return 0; 3717} 3718_ACEOF 3719if ac_fn_c_try_compile "$LINENO"; then : 3720 3721else 3722 ac_c_werror_flag=$ac_save_c_werror_flag 3723 CFLAGS="-g" 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726 3727int 3728main () 3729{ 3730 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735if ac_fn_c_try_compile "$LINENO"; then : 3736 ac_cv_prog_cc_g=yes 3737fi 3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3739fi 3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3741fi 3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3743 ac_c_werror_flag=$ac_save_c_werror_flag 3744fi 3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3746$as_echo "$ac_cv_prog_cc_g" >&6; } 3747if test "$ac_test_CFLAGS" = set; then 3748 CFLAGS=$ac_save_CFLAGS 3749elif test $ac_cv_prog_cc_g = yes; then 3750 if test "$GCC" = yes; then 3751 CFLAGS="-g -O2" 3752 else 3753 CFLAGS="-g" 3754 fi 3755else 3756 if test "$GCC" = yes; then 3757 CFLAGS="-O2" 3758 else 3759 CFLAGS= 3760 fi 3761fi 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3763$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3764if ${ac_cv_prog_cc_c89+:} false; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 ac_cv_prog_cc_c89=no 3768ac_save_CC=$CC 3769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770/* end confdefs.h. */ 3771#include <stdarg.h> 3772#include <stdio.h> 3773struct stat; 3774/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3775struct buf { int x; }; 3776FILE * (*rcsopen) (struct buf *, struct stat *, int); 3777static char *e (p, i) 3778 char **p; 3779 int i; 3780{ 3781 return p[i]; 3782} 3783static char *f (char * (*g) (char **, int), char **p, ...) 3784{ 3785 char *s; 3786 va_list v; 3787 va_start (v,p); 3788 s = g (p, va_arg (v,int)); 3789 va_end (v); 3790 return s; 3791} 3792 3793/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3794 function prototypes and stuff, but not '\xHH' hex character constants. 3795 These don't provoke an error unfortunately, instead are silently treated 3796 as 'x'. The following induces an error, until -std is added to get 3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3798 array size at least. It's necessary to write '\x00'==0 to get something 3799 that's true only with -std. */ 3800int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3801 3802/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3803 inside strings and character constants. */ 3804#define FOO(x) 'x' 3805int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3806 3807int test (int i, double x); 3808struct s1 {int (*f) (int a);}; 3809struct s2 {int (*f) (double a);}; 3810int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3811int argc; 3812char **argv; 3813int 3814main () 3815{ 3816return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3817 ; 3818 return 0; 3819} 3820_ACEOF 3821for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3823do 3824 CC="$ac_save_CC $ac_arg" 3825 if ac_fn_c_try_compile "$LINENO"; then : 3826 ac_cv_prog_cc_c89=$ac_arg 3827fi 3828rm -f core conftest.err conftest.$ac_objext 3829 test "x$ac_cv_prog_cc_c89" != "xno" && break 3830done 3831rm -f conftest.$ac_ext 3832CC=$ac_save_CC 3833 3834fi 3835# AC_CACHE_VAL 3836case "x$ac_cv_prog_cc_c89" in 3837 x) 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3839$as_echo "none needed" >&6; } ;; 3840 xno) 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3842$as_echo "unsupported" >&6; } ;; 3843 *) 3844 CC="$CC $ac_cv_prog_cc_c89" 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3846$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3847esac 3848if test "x$ac_cv_prog_cc_c89" != xno; then : 3849 3850fi 3851 3852ac_ext=c 3853ac_cpp='$CPP $CPPFLAGS' 3854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3856ac_compiler_gnu=$ac_cv_c_compiler_gnu 3857 3858ac_ext=c 3859ac_cpp='$CPP $CPPFLAGS' 3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3862ac_compiler_gnu=$ac_cv_c_compiler_gnu 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3864$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3865if ${am_cv_prog_cc_c_o+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879 # Make sure it works both with $CC and with simple cc. 3880 # Following AC_PROG_CC_C_O, we do the test twice because some 3881 # compilers refuse to overwrite an existing .o file with -o, 3882 # though they will create one. 3883 am_cv_prog_cc_c_o=yes 3884 for am_i in 1 2; do 3885 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3886 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3887 ac_status=$? 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); } \ 3890 && test -f conftest2.$ac_objext; then 3891 : OK 3892 else 3893 am_cv_prog_cc_c_o=no 3894 break 3895 fi 3896 done 3897 rm -f core conftest* 3898 unset am_i 3899fi 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3901$as_echo "$am_cv_prog_cc_c_o" >&6; } 3902if test "$am_cv_prog_cc_c_o" != yes; then 3903 # Losing compiler, so override with the script. 3904 # FIXME: It is wrong to rewrite CC. 3905 # But if we don't then we get into trouble of one sort or another. 3906 # A longer-term fix would be to have automake use am__CC in this case, 3907 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3908 CC="$am_aux_dir/compile $CC" 3909fi 3910ac_ext=c 3911ac_cpp='$CPP $CPPFLAGS' 3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3914ac_compiler_gnu=$ac_cv_c_compiler_gnu 3915 3916 3917depcc="$CC" am_compiler_list= 3918 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3920$as_echo_n "checking dependency style of $depcc... " >&6; } 3921if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3922 $as_echo_n "(cached) " >&6 3923else 3924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3925 # We make a subdir and do the tests there. Otherwise we can end up 3926 # making bogus files that we don't know about and never remove. For 3927 # instance it was reported that on HP-UX the gcc test will end up 3928 # making a dummy file named 'D' -- because '-MD' means "put the output 3929 # in D". 3930 rm -rf conftest.dir 3931 mkdir conftest.dir 3932 # Copy depcomp to subdir because otherwise we won't find it if we're 3933 # using a relative directory. 3934 cp "$am_depcomp" conftest.dir 3935 cd conftest.dir 3936 # We will build objects and dependencies in a subdirectory because 3937 # it helps to detect inapplicable dependency modes. For instance 3938 # both Tru64's cc and ICC support -MD to output dependencies as a 3939 # side effect of compilation, but ICC will put the dependencies in 3940 # the current directory while Tru64 will put them in the object 3941 # directory. 3942 mkdir sub 3943 3944 am_cv_CC_dependencies_compiler_type=none 3945 if test "$am_compiler_list" = ""; then 3946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3947 fi 3948 am__universal=false 3949 case " $depcc " in #( 3950 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3951 esac 3952 3953 for depmode in $am_compiler_list; do 3954 # Setup a source with many dependencies, because some compilers 3955 # like to wrap large dependency lists on column 80 (with \), and 3956 # we should not choose a depcomp mode which is confused by this. 3957 # 3958 # We need to recreate these files for each test, as the compiler may 3959 # overwrite some of them when testing with obscure command lines. 3960 # This happens at least with the AIX C compiler. 3961 : > sub/conftest.c 3962 for i in 1 2 3 4 5 6; do 3963 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3964 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3965 # Solaris 10 /bin/sh. 3966 echo '/* dummy */' > sub/conftst$i.h 3967 done 3968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3969 3970 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3971 # mode. It turns out that the SunPro C++ compiler does not properly 3972 # handle '-M -o', and we need to detect this. Also, some Intel 3973 # versions had trouble with output in subdirs. 3974 am__obj=sub/conftest.${OBJEXT-o} 3975 am__minus_obj="-o $am__obj" 3976 case $depmode in 3977 gcc) 3978 # This depmode causes a compiler race in universal mode. 3979 test "$am__universal" = false || continue 3980 ;; 3981 nosideeffect) 3982 # After this tag, mechanisms are not by side-effect, so they'll 3983 # only be used when explicitly requested. 3984 if test "x$enable_dependency_tracking" = xyes; then 3985 continue 3986 else 3987 break 3988 fi 3989 ;; 3990 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3991 # This compiler won't grok '-c -o', but also, the minuso test has 3992 # not run yet. These depmodes are late enough in the game, and 3993 # so weak that their functioning should not be impacted. 3994 am__obj=conftest.${OBJEXT-o} 3995 am__minus_obj= 3996 ;; 3997 none) break ;; 3998 esac 3999 if depmode=$depmode \ 4000 source=sub/conftest.c object=$am__obj \ 4001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4003 >/dev/null 2>conftest.err && 4004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4008 # icc doesn't choke on unknown options, it will just issue warnings 4009 # or remarks (even with -Werror). So we grep stderr for any message 4010 # that says an option was ignored or not supported. 4011 # When given -MP, icc 7.0 and 7.1 complain thusly: 4012 # icc: Command line warning: ignoring option '-M'; no argument required 4013 # The diagnosis changed in icc 8.0: 4014 # icc: Command line remark: option '-MP' not supported 4015 if (grep 'ignoring option' conftest.err || 4016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4017 am_cv_CC_dependencies_compiler_type=$depmode 4018 break 4019 fi 4020 fi 4021 done 4022 4023 cd .. 4024 rm -rf conftest.dir 4025else 4026 am_cv_CC_dependencies_compiler_type=none 4027fi 4028 4029fi 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4031$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4032CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4033 4034 if 4035 test "x$enable_dependency_tracking" != xno \ 4036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4037 am__fastdepCC_TRUE= 4038 am__fastdepCC_FALSE='#' 4039else 4040 am__fastdepCC_TRUE='#' 4041 am__fastdepCC_FALSE= 4042fi 4043 4044 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4046$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4047if ${ac_cv_path_SED+:} false; then : 4048 $as_echo_n "(cached) " >&6 4049else 4050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4051 for ac_i in 1 2 3 4 5 6 7; do 4052 ac_script="$ac_script$as_nl$ac_script" 4053 done 4054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4055 { ac_script=; unset ac_script;} 4056 if test -z "$SED"; then 4057 ac_path_SED_found=false 4058 # Loop through the user's path and test for each of PROGNAME-LIST 4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4060for as_dir in $PATH 4061do 4062 IFS=$as_save_IFS 4063 test -z "$as_dir" && as_dir=. 4064 for ac_prog in sed gsed; do 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4067 as_fn_executable_p "$ac_path_SED" || continue 4068# Check for GNU ac_path_SED and select it if it is found. 4069 # Check for GNU $ac_path_SED 4070case `"$ac_path_SED" --version 2>&1` in 4071*GNU*) 4072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4073*) 4074 ac_count=0 4075 $as_echo_n 0123456789 >"conftest.in" 4076 while : 4077 do 4078 cat "conftest.in" "conftest.in" >"conftest.tmp" 4079 mv "conftest.tmp" "conftest.in" 4080 cp "conftest.in" "conftest.nl" 4081 $as_echo '' >> "conftest.nl" 4082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4084 as_fn_arith $ac_count + 1 && ac_count=$as_val 4085 if test $ac_count -gt ${ac_path_SED_max-0}; then 4086 # Best one so far, save it but keep looking for a better one 4087 ac_cv_path_SED="$ac_path_SED" 4088 ac_path_SED_max=$ac_count 4089 fi 4090 # 10*(2^10) chars as input seems more than enough 4091 test $ac_count -gt 10 && break 4092 done 4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4094esac 4095 4096 $ac_path_SED_found && break 3 4097 done 4098 done 4099 done 4100IFS=$as_save_IFS 4101 if test -z "$ac_cv_path_SED"; then 4102 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4103 fi 4104else 4105 ac_cv_path_SED=$SED 4106fi 4107 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4110$as_echo "$ac_cv_path_SED" >&6; } 4111 SED="$ac_cv_path_SED" 4112 rm -f conftest.sed 4113 4114test -z "$SED" && SED=sed 4115Xsed="$SED -e 1s/^X//" 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4128$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4129if ${ac_cv_path_GREP+:} false; then : 4130 $as_echo_n "(cached) " >&6 4131else 4132 if test -z "$GREP"; then 4133 ac_path_GREP_found=false 4134 # Loop through the user's path and test for each of PROGNAME-LIST 4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4137do 4138 IFS=$as_save_IFS 4139 test -z "$as_dir" && as_dir=. 4140 for ac_prog in grep ggrep; do 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4143 as_fn_executable_p "$ac_path_GREP" || continue 4144# Check for GNU ac_path_GREP and select it if it is found. 4145 # Check for GNU $ac_path_GREP 4146case `"$ac_path_GREP" --version 2>&1` in 4147*GNU*) 4148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4149*) 4150 ac_count=0 4151 $as_echo_n 0123456789 >"conftest.in" 4152 while : 4153 do 4154 cat "conftest.in" "conftest.in" >"conftest.tmp" 4155 mv "conftest.tmp" "conftest.in" 4156 cp "conftest.in" "conftest.nl" 4157 $as_echo 'GREP' >> "conftest.nl" 4158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4160 as_fn_arith $ac_count + 1 && ac_count=$as_val 4161 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4162 # Best one so far, save it but keep looking for a better one 4163 ac_cv_path_GREP="$ac_path_GREP" 4164 ac_path_GREP_max=$ac_count 4165 fi 4166 # 10*(2^10) chars as input seems more than enough 4167 test $ac_count -gt 10 && break 4168 done 4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4170esac 4171 4172 $ac_path_GREP_found && break 3 4173 done 4174 done 4175 done 4176IFS=$as_save_IFS 4177 if test -z "$ac_cv_path_GREP"; then 4178 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4179 fi 4180else 4181 ac_cv_path_GREP=$GREP 4182fi 4183 4184fi 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4186$as_echo "$ac_cv_path_GREP" >&6; } 4187 GREP="$ac_cv_path_GREP" 4188 4189 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4191$as_echo_n "checking for egrep... " >&6; } 4192if ${ac_cv_path_EGREP+:} false; then : 4193 $as_echo_n "(cached) " >&6 4194else 4195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4196 then ac_cv_path_EGREP="$GREP -E" 4197 else 4198 if test -z "$EGREP"; then 4199 ac_path_EGREP_found=false 4200 # Loop through the user's path and test for each of PROGNAME-LIST 4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4203do 4204 IFS=$as_save_IFS 4205 test -z "$as_dir" && as_dir=. 4206 for ac_prog in egrep; do 4207 for ac_exec_ext in '' $ac_executable_extensions; do 4208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4209 as_fn_executable_p "$ac_path_EGREP" || continue 4210# Check for GNU ac_path_EGREP and select it if it is found. 4211 # Check for GNU $ac_path_EGREP 4212case `"$ac_path_EGREP" --version 2>&1` in 4213*GNU*) 4214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4215*) 4216 ac_count=0 4217 $as_echo_n 0123456789 >"conftest.in" 4218 while : 4219 do 4220 cat "conftest.in" "conftest.in" >"conftest.tmp" 4221 mv "conftest.tmp" "conftest.in" 4222 cp "conftest.in" "conftest.nl" 4223 $as_echo 'EGREP' >> "conftest.nl" 4224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4226 as_fn_arith $ac_count + 1 && ac_count=$as_val 4227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4228 # Best one so far, save it but keep looking for a better one 4229 ac_cv_path_EGREP="$ac_path_EGREP" 4230 ac_path_EGREP_max=$ac_count 4231 fi 4232 # 10*(2^10) chars as input seems more than enough 4233 test $ac_count -gt 10 && break 4234 done 4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4236esac 4237 4238 $ac_path_EGREP_found && break 3 4239 done 4240 done 4241 done 4242IFS=$as_save_IFS 4243 if test -z "$ac_cv_path_EGREP"; then 4244 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4245 fi 4246else 4247 ac_cv_path_EGREP=$EGREP 4248fi 4249 4250 fi 4251fi 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4253$as_echo "$ac_cv_path_EGREP" >&6; } 4254 EGREP="$ac_cv_path_EGREP" 4255 4256 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4258$as_echo_n "checking for fgrep... " >&6; } 4259if ${ac_cv_path_FGREP+:} false; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4263 then ac_cv_path_FGREP="$GREP -F" 4264 else 4265 if test -z "$FGREP"; then 4266 ac_path_FGREP_found=false 4267 # Loop through the user's path and test for each of PROGNAME-LIST 4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4270do 4271 IFS=$as_save_IFS 4272 test -z "$as_dir" && as_dir=. 4273 for ac_prog in fgrep; do 4274 for ac_exec_ext in '' $ac_executable_extensions; do 4275 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4276 as_fn_executable_p "$ac_path_FGREP" || continue 4277# Check for GNU ac_path_FGREP and select it if it is found. 4278 # Check for GNU $ac_path_FGREP 4279case `"$ac_path_FGREP" --version 2>&1` in 4280*GNU*) 4281 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4282*) 4283 ac_count=0 4284 $as_echo_n 0123456789 >"conftest.in" 4285 while : 4286 do 4287 cat "conftest.in" "conftest.in" >"conftest.tmp" 4288 mv "conftest.tmp" "conftest.in" 4289 cp "conftest.in" "conftest.nl" 4290 $as_echo 'FGREP' >> "conftest.nl" 4291 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4293 as_fn_arith $ac_count + 1 && ac_count=$as_val 4294 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4295 # Best one so far, save it but keep looking for a better one 4296 ac_cv_path_FGREP="$ac_path_FGREP" 4297 ac_path_FGREP_max=$ac_count 4298 fi 4299 # 10*(2^10) chars as input seems more than enough 4300 test $ac_count -gt 10 && break 4301 done 4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4303esac 4304 4305 $ac_path_FGREP_found && break 3 4306 done 4307 done 4308 done 4309IFS=$as_save_IFS 4310 if test -z "$ac_cv_path_FGREP"; then 4311 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4312 fi 4313else 4314 ac_cv_path_FGREP=$FGREP 4315fi 4316 4317 fi 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4320$as_echo "$ac_cv_path_FGREP" >&6; } 4321 FGREP="$ac_cv_path_FGREP" 4322 4323 4324test -z "$GREP" && GREP=grep 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344# Check whether --with-gnu-ld was given. 4345if test "${with_gnu_ld+set}" = set; then : 4346 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4347else 4348 with_gnu_ld=no 4349fi 4350 4351ac_prog=ld 4352if test "$GCC" = yes; then 4353 # Check if gcc -print-prog-name=ld gives a path. 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4355$as_echo_n "checking for ld used by $CC... " >&6; } 4356 case $host in 4357 *-*-mingw*) 4358 # gcc leaves a trailing carriage return which upsets mingw 4359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4360 *) 4361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4362 esac 4363 case $ac_prog in 4364 # Accept absolute paths. 4365 [\\/]* | ?:[\\/]*) 4366 re_direlt='/[^/][^/]*/\.\./' 4367 # Canonicalize the pathname of ld 4368 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4369 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4370 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4371 done 4372 test -z "$LD" && LD="$ac_prog" 4373 ;; 4374 "") 4375 # If it fails, then pretend we aren't using GCC. 4376 ac_prog=ld 4377 ;; 4378 *) 4379 # If it is relative, then search for the first ld in PATH. 4380 with_gnu_ld=unknown 4381 ;; 4382 esac 4383elif test "$with_gnu_ld" = yes; then 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4385$as_echo_n "checking for GNU ld... " >&6; } 4386else 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4388$as_echo_n "checking for non-GNU ld... " >&6; } 4389fi 4390if ${lt_cv_path_LD+:} false; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 if test -z "$LD"; then 4394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4395 for ac_dir in $PATH; do 4396 IFS="$lt_save_ifs" 4397 test -z "$ac_dir" && ac_dir=. 4398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4399 lt_cv_path_LD="$ac_dir/$ac_prog" 4400 # Check to see if the program is GNU ld. I'd rather use --version, 4401 # but apparently some variants of GNU ld only accept -v. 4402 # Break only if it was the GNU/non-GNU ld that we prefer. 4403 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4404 *GNU* | *'with BFD'*) 4405 test "$with_gnu_ld" != no && break 4406 ;; 4407 *) 4408 test "$with_gnu_ld" != yes && break 4409 ;; 4410 esac 4411 fi 4412 done 4413 IFS="$lt_save_ifs" 4414else 4415 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4416fi 4417fi 4418 4419LD="$lt_cv_path_LD" 4420if test -n "$LD"; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4422$as_echo "$LD" >&6; } 4423else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425$as_echo "no" >&6; } 4426fi 4427test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4429$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4430if ${lt_cv_prog_gnu_ld+:} false; then : 4431 $as_echo_n "(cached) " >&6 4432else 4433 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4434case `$LD -v 2>&1 </dev/null` in 4435*GNU* | *'with BFD'*) 4436 lt_cv_prog_gnu_ld=yes 4437 ;; 4438*) 4439 lt_cv_prog_gnu_ld=no 4440 ;; 4441esac 4442fi 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4444$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4445with_gnu_ld=$lt_cv_prog_gnu_ld 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4456$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4457if ${lt_cv_path_NM+:} false; then : 4458 $as_echo_n "(cached) " >&6 4459else 4460 if test -n "$NM"; then 4461 # Let the user override the test. 4462 lt_cv_path_NM="$NM" 4463else 4464 lt_nm_to_check="${ac_tool_prefix}nm" 4465 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4466 lt_nm_to_check="$lt_nm_to_check nm" 4467 fi 4468 for lt_tmp_nm in $lt_nm_to_check; do 4469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4470 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4471 IFS="$lt_save_ifs" 4472 test -z "$ac_dir" && ac_dir=. 4473 tmp_nm="$ac_dir/$lt_tmp_nm" 4474 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4475 # Check to see if the nm accepts a BSD-compat flag. 4476 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4477 # nm: unknown option "B" ignored 4478 # Tru64's nm complains that /dev/null is an invalid object file 4479 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4480 */dev/null* | *'Invalid file or object type'*) 4481 lt_cv_path_NM="$tmp_nm -B" 4482 break 4483 ;; 4484 *) 4485 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4486 */dev/null*) 4487 lt_cv_path_NM="$tmp_nm -p" 4488 break 4489 ;; 4490 *) 4491 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4492 continue # so that we can try to find one that supports BSD flags 4493 ;; 4494 esac 4495 ;; 4496 esac 4497 fi 4498 done 4499 IFS="$lt_save_ifs" 4500 done 4501 : ${lt_cv_path_NM=no} 4502fi 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4505$as_echo "$lt_cv_path_NM" >&6; } 4506if test "$lt_cv_path_NM" != "no"; then 4507 NM="$lt_cv_path_NM" 4508else 4509 # Didn't find any BSD compatible name lister, look for dumpbin. 4510 if test -n "$DUMPBIN"; then : 4511 # Let the user override the test. 4512 else 4513 if test -n "$ac_tool_prefix"; then 4514 for ac_prog in dumpbin "link -dump" 4515 do 4516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4517set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4519$as_echo_n "checking for $ac_word... " >&6; } 4520if ${ac_cv_prog_DUMPBIN+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 if test -n "$DUMPBIN"; then 4524 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4525else 4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4535 break 2 4536 fi 4537done 4538 done 4539IFS=$as_save_IFS 4540 4541fi 4542fi 4543DUMPBIN=$ac_cv_prog_DUMPBIN 4544if test -n "$DUMPBIN"; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4546$as_echo "$DUMPBIN" >&6; } 4547else 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549$as_echo "no" >&6; } 4550fi 4551 4552 4553 test -n "$DUMPBIN" && break 4554 done 4555fi 4556if test -z "$DUMPBIN"; then 4557 ac_ct_DUMPBIN=$DUMPBIN 4558 for ac_prog in dumpbin "link -dump" 4559do 4560 # Extract the first word of "$ac_prog", so it can be a program name with args. 4561set dummy $ac_prog; ac_word=$2 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4563$as_echo_n "checking for $ac_word... " >&6; } 4564if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 if test -n "$ac_ct_DUMPBIN"; then 4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4569else 4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4571for as_dir in $PATH 4572do 4573 IFS=$as_save_IFS 4574 test -z "$as_dir" && as_dir=. 4575 for ac_exec_ext in '' $ac_executable_extensions; do 4576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4579 break 2 4580 fi 4581done 4582 done 4583IFS=$as_save_IFS 4584 4585fi 4586fi 4587ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4588if test -n "$ac_ct_DUMPBIN"; then 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4590$as_echo "$ac_ct_DUMPBIN" >&6; } 4591else 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4593$as_echo "no" >&6; } 4594fi 4595 4596 4597 test -n "$ac_ct_DUMPBIN" && break 4598done 4599 4600 if test "x$ac_ct_DUMPBIN" = x; then 4601 DUMPBIN=":" 4602 else 4603 case $cross_compiling:$ac_tool_warned in 4604yes:) 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4607ac_tool_warned=yes ;; 4608esac 4609 DUMPBIN=$ac_ct_DUMPBIN 4610 fi 4611fi 4612 4613 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4614 *COFF*) 4615 DUMPBIN="$DUMPBIN -symbols" 4616 ;; 4617 *) 4618 DUMPBIN=: 4619 ;; 4620 esac 4621 fi 4622 4623 if test "$DUMPBIN" != ":"; then 4624 NM="$DUMPBIN" 4625 fi 4626fi 4627test -z "$NM" && NM=nm 4628 4629 4630 4631 4632 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4635$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4636if ${lt_cv_nm_interface+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 lt_cv_nm_interface="BSD nm" 4640 echo "int some_variable = 0;" > conftest.$ac_ext 4641 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4642 (eval "$ac_compile" 2>conftest.err) 4643 cat conftest.err >&5 4644 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4645 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4646 cat conftest.err >&5 4647 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4648 cat conftest.out >&5 4649 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4650 lt_cv_nm_interface="MS dumpbin" 4651 fi 4652 rm -f conftest* 4653fi 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4655$as_echo "$lt_cv_nm_interface" >&6; } 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4658$as_echo_n "checking whether ln -s works... " >&6; } 4659LN_S=$as_ln_s 4660if test "$LN_S" = "ln -s"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4662$as_echo "yes" >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4665$as_echo "no, using $LN_S" >&6; } 4666fi 4667 4668# find the maximum length of command line arguments 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4670$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4671if ${lt_cv_sys_max_cmd_len+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 i=0 4675 teststring="ABCD" 4676 4677 case $build_os in 4678 msdosdjgpp*) 4679 # On DJGPP, this test can blow up pretty badly due to problems in libc 4680 # (any single argument exceeding 2000 bytes causes a buffer overrun 4681 # during glob expansion). Even if it were fixed, the result of this 4682 # check would be larger than it should be. 4683 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4684 ;; 4685 4686 gnu*) 4687 # Under GNU Hurd, this test is not required because there is 4688 # no limit to the length of command line arguments. 4689 # Libtool will interpret -1 as no limit whatsoever 4690 lt_cv_sys_max_cmd_len=-1; 4691 ;; 4692 4693 cygwin* | mingw* | cegcc*) 4694 # On Win9x/ME, this test blows up -- it succeeds, but takes 4695 # about 5 minutes as the teststring grows exponentially. 4696 # Worse, since 9x/ME are not pre-emptively multitasking, 4697 # you end up with a "frozen" computer, even though with patience 4698 # the test eventually succeeds (with a max line length of 256k). 4699 # Instead, let's just punt: use the minimum linelength reported by 4700 # all of the supported platforms: 8192 (on NT/2K/XP). 4701 lt_cv_sys_max_cmd_len=8192; 4702 ;; 4703 4704 mint*) 4705 # On MiNT this can take a long time and run out of memory. 4706 lt_cv_sys_max_cmd_len=8192; 4707 ;; 4708 4709 amigaos*) 4710 # On AmigaOS with pdksh, this test takes hours, literally. 4711 # So we just punt and use a minimum line length of 8192. 4712 lt_cv_sys_max_cmd_len=8192; 4713 ;; 4714 4715 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4716 # This has been around since 386BSD, at least. Likely further. 4717 if test -x /sbin/sysctl; then 4718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4719 elif test -x /usr/sbin/sysctl; then 4720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4721 else 4722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4723 fi 4724 # And add a safety zone 4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4727 ;; 4728 4729 interix*) 4730 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4731 lt_cv_sys_max_cmd_len=196608 4732 ;; 4733 4734 os2*) 4735 # The test takes a long time on OS/2. 4736 lt_cv_sys_max_cmd_len=8192 4737 ;; 4738 4739 osf*) 4740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4742 # nice to cause kernel panics so lets avoid the loop below. 4743 # First set a reasonable default. 4744 lt_cv_sys_max_cmd_len=16384 4745 # 4746 if test -x /sbin/sysconfig; then 4747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4748 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4749 esac 4750 fi 4751 ;; 4752 sco3.2v5*) 4753 lt_cv_sys_max_cmd_len=102400 4754 ;; 4755 sysv5* | sco5v6* | sysv4.2uw2*) 4756 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4757 if test -n "$kargmax"; then 4758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4759 else 4760 lt_cv_sys_max_cmd_len=32768 4761 fi 4762 ;; 4763 *) 4764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4765 if test -n "$lt_cv_sys_max_cmd_len" && \ 4766 test undefined != "$lt_cv_sys_max_cmd_len"; then 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4769 else 4770 # Make teststring a little bigger before we do anything with it. 4771 # a 1K string should be a reasonable start. 4772 for i in 1 2 3 4 5 6 7 8 ; do 4773 teststring=$teststring$teststring 4774 done 4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4776 # If test is not a shell built-in, we'll probably end up computing a 4777 # maximum length that is only half of the actual maximum length, but 4778 # we can't tell. 4779 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4780 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4781 test $i != 17 # 1/2 MB should be enough 4782 do 4783 i=`expr $i + 1` 4784 teststring=$teststring$teststring 4785 done 4786 # Only check the string length outside the loop. 4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4788 teststring= 4789 # Add a significant safety factor because C++ compilers can tack on 4790 # massive amounts of additional arguments before passing them to the 4791 # linker. It appears as though 1/2 is a usable value. 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4793 fi 4794 ;; 4795 esac 4796 4797fi 4798 4799if test -n $lt_cv_sys_max_cmd_len ; then 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4801$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4802else 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4804$as_echo "none" >&6; } 4805fi 4806max_cmd_len=$lt_cv_sys_max_cmd_len 4807 4808 4809 4810 4811 4812 4813: ${CP="cp -f"} 4814: ${MV="mv -f"} 4815: ${RM="rm -f"} 4816 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4818$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4819# Try some XSI features 4820xsi_shell=no 4821( _lt_dummy="a/b/c" 4822 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4823 = c,a/b,b/c, \ 4824 && eval 'test $(( 1 + 1 )) -eq 2 \ 4825 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4826 && xsi_shell=yes 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4828$as_echo "$xsi_shell" >&6; } 4829 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4832$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4833lt_shell_append=no 4834( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4835 >/dev/null 2>&1 \ 4836 && lt_shell_append=yes 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4838$as_echo "$lt_shell_append" >&6; } 4839 4840 4841if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4842 lt_unset=unset 4843else 4844 lt_unset=false 4845fi 4846 4847 4848 4849 4850 4851# test EBCDIC or ASCII 4852case `echo X|tr X '\101'` in 4853 A) # ASCII based system 4854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4855 lt_SP2NL='tr \040 \012' 4856 lt_NL2SP='tr \015\012 \040\040' 4857 ;; 4858 *) # EBCDIC based system 4859 lt_SP2NL='tr \100 \n' 4860 lt_NL2SP='tr \r\n \100\100' 4861 ;; 4862esac 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4873$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4874if ${lt_cv_to_host_file_cmd+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 case $host in 4878 *-*-mingw* ) 4879 case $build in 4880 *-*-mingw* ) # actually msys 4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4882 ;; 4883 *-*-cygwin* ) 4884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4885 ;; 4886 * ) # otherwise, assume *nix 4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4888 ;; 4889 esac 4890 ;; 4891 *-*-cygwin* ) 4892 case $build in 4893 *-*-mingw* ) # actually msys 4894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4895 ;; 4896 *-*-cygwin* ) 4897 lt_cv_to_host_file_cmd=func_convert_file_noop 4898 ;; 4899 * ) # otherwise, assume *nix 4900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4901 ;; 4902 esac 4903 ;; 4904 * ) # unhandled hosts (and "normal" native builds) 4905 lt_cv_to_host_file_cmd=func_convert_file_noop 4906 ;; 4907esac 4908 4909fi 4910 4911to_host_file_cmd=$lt_cv_to_host_file_cmd 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4913$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4914 4915 4916 4917 4918 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4920$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4921if ${lt_cv_to_tool_file_cmd+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 #assume ordinary cross tools, or native build. 4925lt_cv_to_tool_file_cmd=func_convert_file_noop 4926case $host in 4927 *-*-mingw* ) 4928 case $build in 4929 *-*-mingw* ) # actually msys 4930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4931 ;; 4932 esac 4933 ;; 4934esac 4935 4936fi 4937 4938to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4940$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4941 4942 4943 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4947$as_echo_n "checking for $LD option to reload object files... " >&6; } 4948if ${lt_cv_ld_reload_flag+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 lt_cv_ld_reload_flag='-r' 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4954$as_echo "$lt_cv_ld_reload_flag" >&6; } 4955reload_flag=$lt_cv_ld_reload_flag 4956case $reload_flag in 4957"" | " "*) ;; 4958*) reload_flag=" $reload_flag" ;; 4959esac 4960reload_cmds='$LD$reload_flag -o $output$reload_objs' 4961case $host_os in 4962 cygwin* | mingw* | pw32* | cegcc*) 4963 if test "$GCC" != yes; then 4964 reload_cmds=false 4965 fi 4966 ;; 4967 darwin*) 4968 if test "$GCC" = yes; then 4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4970 else 4971 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4972 fi 4973 ;; 4974esac 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984if test -n "$ac_tool_prefix"; then 4985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4986set dummy ${ac_tool_prefix}objdump; ac_word=$2 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4988$as_echo_n "checking for $ac_word... " >&6; } 4989if ${ac_cv_prog_OBJDUMP+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 if test -n "$OBJDUMP"; then 4993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4994else 4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4996for as_dir in $PATH 4997do 4998 IFS=$as_save_IFS 4999 test -z "$as_dir" && as_dir=. 5000 for ac_exec_ext in '' $ac_executable_extensions; do 5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5004 break 2 5005 fi 5006done 5007 done 5008IFS=$as_save_IFS 5009 5010fi 5011fi 5012OBJDUMP=$ac_cv_prog_OBJDUMP 5013if test -n "$OBJDUMP"; then 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5015$as_echo "$OBJDUMP" >&6; } 5016else 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5018$as_echo "no" >&6; } 5019fi 5020 5021 5022fi 5023if test -z "$ac_cv_prog_OBJDUMP"; then 5024 ac_ct_OBJDUMP=$OBJDUMP 5025 # Extract the first word of "objdump", so it can be a program name with args. 5026set dummy objdump; ac_word=$2 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5028$as_echo_n "checking for $ac_word... " >&6; } 5029if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031else 5032 if test -n "$ac_ct_OBJDUMP"; then 5033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5034else 5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5036for as_dir in $PATH 5037do 5038 IFS=$as_save_IFS 5039 test -z "$as_dir" && as_dir=. 5040 for ac_exec_ext in '' $ac_executable_extensions; do 5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5042 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5044 break 2 5045 fi 5046done 5047 done 5048IFS=$as_save_IFS 5049 5050fi 5051fi 5052ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5053if test -n "$ac_ct_OBJDUMP"; then 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5055$as_echo "$ac_ct_OBJDUMP" >&6; } 5056else 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5058$as_echo "no" >&6; } 5059fi 5060 5061 if test "x$ac_ct_OBJDUMP" = x; then 5062 OBJDUMP="false" 5063 else 5064 case $cross_compiling:$ac_tool_warned in 5065yes:) 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5068ac_tool_warned=yes ;; 5069esac 5070 OBJDUMP=$ac_ct_OBJDUMP 5071 fi 5072else 5073 OBJDUMP="$ac_cv_prog_OBJDUMP" 5074fi 5075 5076test -z "$OBJDUMP" && OBJDUMP=objdump 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5087$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5088if ${lt_cv_deplibs_check_method+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 lt_cv_file_magic_cmd='$MAGIC_CMD' 5092lt_cv_file_magic_test_file= 5093lt_cv_deplibs_check_method='unknown' 5094# Need to set the preceding variable on all platforms that support 5095# interlibrary dependencies. 5096# 'none' -- dependencies not supported. 5097# `unknown' -- same as none, but documents that we really don't know. 5098# 'pass_all' -- all dependencies passed with no checks. 5099# 'test_compile' -- check by making test program. 5100# 'file_magic [[regex]]' -- check by looking for files in library path 5101# which responds to the $file_magic_cmd with a given extended regex. 5102# If you have `file' or equivalent on your system and you're not sure 5103# whether `pass_all' will *always* work, you probably want this one. 5104 5105case $host_os in 5106aix[4-9]*) 5107 lt_cv_deplibs_check_method=pass_all 5108 ;; 5109 5110beos*) 5111 lt_cv_deplibs_check_method=pass_all 5112 ;; 5113 5114bsdi[45]*) 5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5116 lt_cv_file_magic_cmd='/usr/bin/file -L' 5117 lt_cv_file_magic_test_file=/shlib/libc.so 5118 ;; 5119 5120cygwin*) 5121 # func_win32_libid is a shell function defined in ltmain.sh 5122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5123 lt_cv_file_magic_cmd='func_win32_libid' 5124 ;; 5125 5126mingw* | pw32*) 5127 # Base MSYS/MinGW do not provide the 'file' command needed by 5128 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5129 # unless we find 'file', for example because we are cross-compiling. 5130 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5131 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5133 lt_cv_file_magic_cmd='func_win32_libid' 5134 else 5135 # Keep this pattern in sync with the one in func_win32_libid. 5136 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5137 lt_cv_file_magic_cmd='$OBJDUMP -f' 5138 fi 5139 ;; 5140 5141cegcc*) 5142 # use the weaker test based on 'objdump'. See mingw*. 5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5144 lt_cv_file_magic_cmd='$OBJDUMP -f' 5145 ;; 5146 5147darwin* | rhapsody*) 5148 lt_cv_deplibs_check_method=pass_all 5149 ;; 5150 5151freebsd* | dragonfly*) 5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5153 case $host_cpu in 5154 i*86 ) 5155 # Not sure whether the presence of OpenBSD here was a mistake. 5156 # Let's accept both of them until this is cleared up. 5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5158 lt_cv_file_magic_cmd=/usr/bin/file 5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5160 ;; 5161 esac 5162 else 5163 lt_cv_deplibs_check_method=pass_all 5164 fi 5165 ;; 5166 5167haiku*) 5168 lt_cv_deplibs_check_method=pass_all 5169 ;; 5170 5171hpux10.20* | hpux11*) 5172 lt_cv_file_magic_cmd=/usr/bin/file 5173 case $host_cpu in 5174 ia64*) 5175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5176 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5177 ;; 5178 hppa*64*) 5179 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]' 5180 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5181 ;; 5182 *) 5183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5184 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5185 ;; 5186 esac 5187 ;; 5188 5189interix[3-9]*) 5190 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5192 ;; 5193 5194irix5* | irix6* | nonstopux*) 5195 case $LD in 5196 *-32|*"-32 ") libmagic=32-bit;; 5197 *-n32|*"-n32 ") libmagic=N32;; 5198 *-64|*"-64 ") libmagic=64-bit;; 5199 *) libmagic=never-match;; 5200 esac 5201 lt_cv_deplibs_check_method=pass_all 5202 ;; 5203 5204# This must be glibc/ELF. 5205linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5206 lt_cv_deplibs_check_method=pass_all 5207 ;; 5208 5209netbsd* | netbsdelf*-gnu) 5210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5212 else 5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5214 fi 5215 ;; 5216 5217newos6*) 5218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5219 lt_cv_file_magic_cmd=/usr/bin/file 5220 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5221 ;; 5222 5223*nto* | *qnx*) 5224 lt_cv_deplibs_check_method=pass_all 5225 ;; 5226 5227openbsd*) 5228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5230 else 5231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5232 fi 5233 ;; 5234 5235osf3* | osf4* | osf5*) 5236 lt_cv_deplibs_check_method=pass_all 5237 ;; 5238 5239rdos*) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 5243solaris*) 5244 lt_cv_deplibs_check_method=pass_all 5245 ;; 5246 5247sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 5251sysv4 | sysv4.3*) 5252 case $host_vendor in 5253 motorola) 5254 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]' 5255 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5256 ;; 5257 ncr) 5258 lt_cv_deplibs_check_method=pass_all 5259 ;; 5260 sequent) 5261 lt_cv_file_magic_cmd='/bin/file' 5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5263 ;; 5264 sni) 5265 lt_cv_file_magic_cmd='/bin/file' 5266 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5267 lt_cv_file_magic_test_file=/lib/libc.so 5268 ;; 5269 siemens) 5270 lt_cv_deplibs_check_method=pass_all 5271 ;; 5272 pc) 5273 lt_cv_deplibs_check_method=pass_all 5274 ;; 5275 esac 5276 ;; 5277 5278tpf*) 5279 lt_cv_deplibs_check_method=pass_all 5280 ;; 5281esac 5282 5283fi 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5285$as_echo "$lt_cv_deplibs_check_method" >&6; } 5286 5287file_magic_glob= 5288want_nocaseglob=no 5289if test "$build" = "$host"; then 5290 case $host_os in 5291 mingw* | pw32*) 5292 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5293 want_nocaseglob=yes 5294 else 5295 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5296 fi 5297 ;; 5298 esac 5299fi 5300 5301file_magic_cmd=$lt_cv_file_magic_cmd 5302deplibs_check_method=$lt_cv_deplibs_check_method 5303test -z "$deplibs_check_method" && deplibs_check_method=unknown 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326if test -n "$ac_tool_prefix"; then 5327 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5328set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5330$as_echo_n "checking for $ac_word... " >&6; } 5331if ${ac_cv_prog_DLLTOOL+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 if test -n "$DLLTOOL"; then 5335 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5336else 5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5338for as_dir in $PATH 5339do 5340 IFS=$as_save_IFS 5341 test -z "$as_dir" && as_dir=. 5342 for ac_exec_ext in '' $ac_executable_extensions; do 5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5344 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5346 break 2 5347 fi 5348done 5349 done 5350IFS=$as_save_IFS 5351 5352fi 5353fi 5354DLLTOOL=$ac_cv_prog_DLLTOOL 5355if test -n "$DLLTOOL"; then 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5357$as_echo "$DLLTOOL" >&6; } 5358else 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5360$as_echo "no" >&6; } 5361fi 5362 5363 5364fi 5365if test -z "$ac_cv_prog_DLLTOOL"; then 5366 ac_ct_DLLTOOL=$DLLTOOL 5367 # Extract the first word of "dlltool", so it can be a program name with args. 5368set dummy dlltool; ac_word=$2 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5370$as_echo_n "checking for $ac_word... " >&6; } 5371if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 if test -n "$ac_ct_DLLTOOL"; then 5375 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5376else 5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5378for as_dir in $PATH 5379do 5380 IFS=$as_save_IFS 5381 test -z "$as_dir" && as_dir=. 5382 for ac_exec_ext in '' $ac_executable_extensions; do 5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5384 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5386 break 2 5387 fi 5388done 5389 done 5390IFS=$as_save_IFS 5391 5392fi 5393fi 5394ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5395if test -n "$ac_ct_DLLTOOL"; then 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5397$as_echo "$ac_ct_DLLTOOL" >&6; } 5398else 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5400$as_echo "no" >&6; } 5401fi 5402 5403 if test "x$ac_ct_DLLTOOL" = x; then 5404 DLLTOOL="false" 5405 else 5406 case $cross_compiling:$ac_tool_warned in 5407yes:) 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5410ac_tool_warned=yes ;; 5411esac 5412 DLLTOOL=$ac_ct_DLLTOOL 5413 fi 5414else 5415 DLLTOOL="$ac_cv_prog_DLLTOOL" 5416fi 5417 5418test -z "$DLLTOOL" && DLLTOOL=dlltool 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5430$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5431if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433else 5434 lt_cv_sharedlib_from_linklib_cmd='unknown' 5435 5436case $host_os in 5437cygwin* | mingw* | pw32* | cegcc*) 5438 # two different shell functions defined in ltmain.sh 5439 # decide which to use based on capabilities of $DLLTOOL 5440 case `$DLLTOOL --help 2>&1` in 5441 *--identify-strict*) 5442 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5443 ;; 5444 *) 5445 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5446 ;; 5447 esac 5448 ;; 5449*) 5450 # fallback: assume linklib IS sharedlib 5451 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5452 ;; 5453esac 5454 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5457$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5458sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5459test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5460 5461 5462 5463 5464 5465 5466 5467 5468if test -n "$ac_tool_prefix"; then 5469 for ac_prog in ar 5470 do 5471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5472set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5474$as_echo_n "checking for $ac_word... " >&6; } 5475if ${ac_cv_prog_AR+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 if test -n "$AR"; then 5479 ac_cv_prog_AR="$AR" # Let the user override the test. 5480else 5481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5482for as_dir in $PATH 5483do 5484 IFS=$as_save_IFS 5485 test -z "$as_dir" && as_dir=. 5486 for ac_exec_ext in '' $ac_executable_extensions; do 5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5488 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5490 break 2 5491 fi 5492done 5493 done 5494IFS=$as_save_IFS 5495 5496fi 5497fi 5498AR=$ac_cv_prog_AR 5499if test -n "$AR"; then 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5501$as_echo "$AR" >&6; } 5502else 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5504$as_echo "no" >&6; } 5505fi 5506 5507 5508 test -n "$AR" && break 5509 done 5510fi 5511if test -z "$AR"; then 5512 ac_ct_AR=$AR 5513 for ac_prog in ar 5514do 5515 # Extract the first word of "$ac_prog", so it can be a program name with args. 5516set dummy $ac_prog; ac_word=$2 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5518$as_echo_n "checking for $ac_word... " >&6; } 5519if ${ac_cv_prog_ac_ct_AR+:} false; then : 5520 $as_echo_n "(cached) " >&6 5521else 5522 if test -n "$ac_ct_AR"; then 5523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5524else 5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5526for as_dir in $PATH 5527do 5528 IFS=$as_save_IFS 5529 test -z "$as_dir" && as_dir=. 5530 for ac_exec_ext in '' $ac_executable_extensions; do 5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5532 ac_cv_prog_ac_ct_AR="$ac_prog" 5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5534 break 2 5535 fi 5536done 5537 done 5538IFS=$as_save_IFS 5539 5540fi 5541fi 5542ac_ct_AR=$ac_cv_prog_ac_ct_AR 5543if test -n "$ac_ct_AR"; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5545$as_echo "$ac_ct_AR" >&6; } 5546else 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5548$as_echo "no" >&6; } 5549fi 5550 5551 5552 test -n "$ac_ct_AR" && break 5553done 5554 5555 if test "x$ac_ct_AR" = x; then 5556 AR="false" 5557 else 5558 case $cross_compiling:$ac_tool_warned in 5559yes:) 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5562ac_tool_warned=yes ;; 5563esac 5564 AR=$ac_ct_AR 5565 fi 5566fi 5567 5568: ${AR=ar} 5569: ${AR_FLAGS=cru} 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5582$as_echo_n "checking for archiver @FILE support... " >&6; } 5583if ${lt_cv_ar_at_file+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 lt_cv_ar_at_file=no 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589 5590int 5591main () 5592{ 5593 5594 ; 5595 return 0; 5596} 5597_ACEOF 5598if ac_fn_c_try_compile "$LINENO"; then : 5599 echo conftest.$ac_objext > conftest.lst 5600 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5602 (eval $lt_ar_try) 2>&5 5603 ac_status=$? 5604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5605 test $ac_status = 0; } 5606 if test "$ac_status" -eq 0; then 5607 # Ensure the archiver fails upon bogus file names. 5608 rm -f conftest.$ac_objext libconftest.a 5609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5610 (eval $lt_ar_try) 2>&5 5611 ac_status=$? 5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5613 test $ac_status = 0; } 5614 if test "$ac_status" -ne 0; then 5615 lt_cv_ar_at_file=@ 5616 fi 5617 fi 5618 rm -f conftest.* libconftest.a 5619 5620fi 5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5622 5623fi 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5625$as_echo "$lt_cv_ar_at_file" >&6; } 5626 5627if test "x$lt_cv_ar_at_file" = xno; then 5628 archiver_list_spec= 5629else 5630 archiver_list_spec=$lt_cv_ar_at_file 5631fi 5632 5633 5634 5635 5636 5637 5638 5639if test -n "$ac_tool_prefix"; then 5640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5641set dummy ${ac_tool_prefix}strip; ac_word=$2 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5643$as_echo_n "checking for $ac_word... " >&6; } 5644if ${ac_cv_prog_STRIP+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 if test -n "$STRIP"; then 5648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5649else 5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651for as_dir in $PATH 5652do 5653 IFS=$as_save_IFS 5654 test -z "$as_dir" && as_dir=. 5655 for ac_exec_ext in '' $ac_executable_extensions; do 5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5657 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5659 break 2 5660 fi 5661done 5662 done 5663IFS=$as_save_IFS 5664 5665fi 5666fi 5667STRIP=$ac_cv_prog_STRIP 5668if test -n "$STRIP"; then 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5670$as_echo "$STRIP" >&6; } 5671else 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5673$as_echo "no" >&6; } 5674fi 5675 5676 5677fi 5678if test -z "$ac_cv_prog_STRIP"; then 5679 ac_ct_STRIP=$STRIP 5680 # Extract the first word of "strip", so it can be a program name with args. 5681set dummy strip; ac_word=$2 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5683$as_echo_n "checking for $ac_word... " >&6; } 5684if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 if test -n "$ac_ct_STRIP"; then 5688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5689else 5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691for as_dir in $PATH 5692do 5693 IFS=$as_save_IFS 5694 test -z "$as_dir" && as_dir=. 5695 for ac_exec_ext in '' $ac_executable_extensions; do 5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5697 ac_cv_prog_ac_ct_STRIP="strip" 5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5699 break 2 5700 fi 5701done 5702 done 5703IFS=$as_save_IFS 5704 5705fi 5706fi 5707ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5708if test -n "$ac_ct_STRIP"; then 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5710$as_echo "$ac_ct_STRIP" >&6; } 5711else 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713$as_echo "no" >&6; } 5714fi 5715 5716 if test "x$ac_ct_STRIP" = x; then 5717 STRIP=":" 5718 else 5719 case $cross_compiling:$ac_tool_warned in 5720yes:) 5721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5723ac_tool_warned=yes ;; 5724esac 5725 STRIP=$ac_ct_STRIP 5726 fi 5727else 5728 STRIP="$ac_cv_prog_STRIP" 5729fi 5730 5731test -z "$STRIP" && STRIP=: 5732 5733 5734 5735 5736 5737 5738if test -n "$ac_tool_prefix"; then 5739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5740set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5742$as_echo_n "checking for $ac_word... " >&6; } 5743if ${ac_cv_prog_RANLIB+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 if test -n "$RANLIB"; then 5747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5748else 5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5750for as_dir in $PATH 5751do 5752 IFS=$as_save_IFS 5753 test -z "$as_dir" && as_dir=. 5754 for ac_exec_ext in '' $ac_executable_extensions; do 5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5758 break 2 5759 fi 5760done 5761 done 5762IFS=$as_save_IFS 5763 5764fi 5765fi 5766RANLIB=$ac_cv_prog_RANLIB 5767if test -n "$RANLIB"; then 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5769$as_echo "$RANLIB" >&6; } 5770else 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5772$as_echo "no" >&6; } 5773fi 5774 5775 5776fi 5777if test -z "$ac_cv_prog_RANLIB"; then 5778 ac_ct_RANLIB=$RANLIB 5779 # Extract the first word of "ranlib", so it can be a program name with args. 5780set dummy ranlib; ac_word=$2 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5782$as_echo_n "checking for $ac_word... " >&6; } 5783if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5784 $as_echo_n "(cached) " >&6 5785else 5786 if test -n "$ac_ct_RANLIB"; then 5787 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5788else 5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5790for as_dir in $PATH 5791do 5792 IFS=$as_save_IFS 5793 test -z "$as_dir" && as_dir=. 5794 for ac_exec_ext in '' $ac_executable_extensions; do 5795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5796 ac_cv_prog_ac_ct_RANLIB="ranlib" 5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5798 break 2 5799 fi 5800done 5801 done 5802IFS=$as_save_IFS 5803 5804fi 5805fi 5806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5807if test -n "$ac_ct_RANLIB"; then 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5809$as_echo "$ac_ct_RANLIB" >&6; } 5810else 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5812$as_echo "no" >&6; } 5813fi 5814 5815 if test "x$ac_ct_RANLIB" = x; then 5816 RANLIB=":" 5817 else 5818 case $cross_compiling:$ac_tool_warned in 5819yes:) 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5822ac_tool_warned=yes ;; 5823esac 5824 RANLIB=$ac_ct_RANLIB 5825 fi 5826else 5827 RANLIB="$ac_cv_prog_RANLIB" 5828fi 5829 5830test -z "$RANLIB" && RANLIB=: 5831 5832 5833 5834 5835 5836 5837# Determine commands to create old-style static archives. 5838old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5839old_postinstall_cmds='chmod 644 $oldlib' 5840old_postuninstall_cmds= 5841 5842if test -n "$RANLIB"; then 5843 case $host_os in 5844 openbsd*) 5845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5846 ;; 5847 *) 5848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5849 ;; 5850 esac 5851 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5852fi 5853 5854case $host_os in 5855 darwin*) 5856 lock_old_archive_extraction=yes ;; 5857 *) 5858 lock_old_archive_extraction=no ;; 5859esac 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899# If no C compiler was specified, use CC. 5900LTCC=${LTCC-"$CC"} 5901 5902# If no C compiler flags were specified, use CFLAGS. 5903LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5904 5905# Allow CC to be a program name with arguments. 5906compiler=$CC 5907 5908 5909# Check for command to grab the raw symbol name followed by C symbol from nm. 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5911$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5912if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5913 $as_echo_n "(cached) " >&6 5914else 5915 5916# These are sane defaults that work on at least a few old systems. 5917# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5918 5919# Character class describing NM global symbol codes. 5920symcode='[BCDEGRST]' 5921 5922# Regexp to match symbols that can be accessed directly from C. 5923sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5924 5925# Define system-specific variables. 5926case $host_os in 5927aix*) 5928 symcode='[BCDT]' 5929 ;; 5930cygwin* | mingw* | pw32* | cegcc*) 5931 symcode='[ABCDGISTW]' 5932 ;; 5933hpux*) 5934 if test "$host_cpu" = ia64; then 5935 symcode='[ABCDEGRST]' 5936 fi 5937 ;; 5938irix* | nonstopux*) 5939 symcode='[BCDEGRST]' 5940 ;; 5941osf*) 5942 symcode='[BCDEGQRST]' 5943 ;; 5944solaris*) 5945 symcode='[BDRT]' 5946 ;; 5947sco3.2v5*) 5948 symcode='[DT]' 5949 ;; 5950sysv4.2uw2*) 5951 symcode='[DT]' 5952 ;; 5953sysv5* | sco5v6* | unixware* | OpenUNIX*) 5954 symcode='[ABDT]' 5955 ;; 5956sysv4) 5957 symcode='[DFNSTU]' 5958 ;; 5959esac 5960 5961# If we're using GNU nm, then use its standard symbol codes. 5962case `$NM -V 2>&1` in 5963*GNU* | *'with BFD'*) 5964 symcode='[ABCDGIRSTW]' ;; 5965esac 5966 5967# Transform an extracted symbol line into a proper C declaration. 5968# Some systems (esp. on ia64) link data and code symbols differently, 5969# so use this general approach. 5970lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5971 5972# Transform an extracted symbol line into symbol name and symbol address 5973lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5974lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5975 5976# Handle CRLF in mingw tool chain 5977opt_cr= 5978case $build_os in 5979mingw*) 5980 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5981 ;; 5982esac 5983 5984# Try without a prefix underscore, then with it. 5985for ac_symprfx in "" "_"; do 5986 5987 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5988 symxfrm="\\1 $ac_symprfx\\2 \\2" 5989 5990 # Write the raw and C identifiers. 5991 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5992 # Fake it for dumpbin and say T for any non-static function 5993 # and D for any global variable. 5994 # Also find C++ and __fastcall symbols from MSVC++, 5995 # which start with @ or ?. 5996 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5997" {last_section=section; section=\$ 3};"\ 5998" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5999" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6000" \$ 0!~/External *\|/{next};"\ 6001" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6002" {if(hide[section]) next};"\ 6003" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6004" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6005" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6006" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6007" ' prfx=^$ac_symprfx" 6008 else 6009 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6010 fi 6011 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6012 6013 # Check to see that the pipe works correctly. 6014 pipe_works=no 6015 6016 rm -f conftest* 6017 cat > conftest.$ac_ext <<_LT_EOF 6018#ifdef __cplusplus 6019extern "C" { 6020#endif 6021char nm_test_var; 6022void nm_test_func(void); 6023void nm_test_func(void){} 6024#ifdef __cplusplus 6025} 6026#endif 6027int main(){nm_test_var='a';nm_test_func();return(0);} 6028_LT_EOF 6029 6030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6031 (eval $ac_compile) 2>&5 6032 ac_status=$? 6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6034 test $ac_status = 0; }; then 6035 # Now try to grab the symbols. 6036 nlist=conftest.nm 6037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6038 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6039 ac_status=$? 6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6041 test $ac_status = 0; } && test -s "$nlist"; then 6042 # Try sorting and uniquifying the output. 6043 if sort "$nlist" | uniq > "$nlist"T; then 6044 mv -f "$nlist"T "$nlist" 6045 else 6046 rm -f "$nlist"T 6047 fi 6048 6049 # Make sure that we snagged all the symbols we need. 6050 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6051 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6052 cat <<_LT_EOF > conftest.$ac_ext 6053/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6054#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6055/* DATA imports from DLLs on WIN32 con't be const, because runtime 6056 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6057# define LT_DLSYM_CONST 6058#elif defined(__osf__) 6059/* This system does not cope well with relocations in const data. */ 6060# define LT_DLSYM_CONST 6061#else 6062# define LT_DLSYM_CONST const 6063#endif 6064 6065#ifdef __cplusplus 6066extern "C" { 6067#endif 6068 6069_LT_EOF 6070 # Now generate the symbol file. 6071 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6072 6073 cat <<_LT_EOF >> conftest.$ac_ext 6074 6075/* The mapping between symbol names and symbols. */ 6076LT_DLSYM_CONST struct { 6077 const char *name; 6078 void *address; 6079} 6080lt__PROGRAM__LTX_preloaded_symbols[] = 6081{ 6082 { "@PROGRAM@", (void *) 0 }, 6083_LT_EOF 6084 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6085 cat <<\_LT_EOF >> conftest.$ac_ext 6086 {0, (void *) 0} 6087}; 6088 6089/* This works around a problem in FreeBSD linker */ 6090#ifdef FREEBSD_WORKAROUND 6091static const void *lt_preloaded_setup() { 6092 return lt__PROGRAM__LTX_preloaded_symbols; 6093} 6094#endif 6095 6096#ifdef __cplusplus 6097} 6098#endif 6099_LT_EOF 6100 # Now try linking the two files. 6101 mv conftest.$ac_objext conftstm.$ac_objext 6102 lt_globsym_save_LIBS=$LIBS 6103 lt_globsym_save_CFLAGS=$CFLAGS 6104 LIBS="conftstm.$ac_objext" 6105 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6107 (eval $ac_link) 2>&5 6108 ac_status=$? 6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6110 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6111 pipe_works=yes 6112 fi 6113 LIBS=$lt_globsym_save_LIBS 6114 CFLAGS=$lt_globsym_save_CFLAGS 6115 else 6116 echo "cannot find nm_test_func in $nlist" >&5 6117 fi 6118 else 6119 echo "cannot find nm_test_var in $nlist" >&5 6120 fi 6121 else 6122 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6123 fi 6124 else 6125 echo "$progname: failed program was:" >&5 6126 cat conftest.$ac_ext >&5 6127 fi 6128 rm -rf conftest* conftst* 6129 6130 # Do not use the global_symbol_pipe unless it works. 6131 if test "$pipe_works" = yes; then 6132 break 6133 else 6134 lt_cv_sys_global_symbol_pipe= 6135 fi 6136done 6137 6138fi 6139 6140if test -z "$lt_cv_sys_global_symbol_pipe"; then 6141 lt_cv_sys_global_symbol_to_cdecl= 6142fi 6143if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6145$as_echo "failed" >&6; } 6146else 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6148$as_echo "ok" >&6; } 6149fi 6150 6151# Response file support. 6152if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6153 nm_file_list_spec='@' 6154elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6155 nm_file_list_spec='@' 6156fi 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6185$as_echo_n "checking for sysroot... " >&6; } 6186 6187# Check whether --with-sysroot was given. 6188if test "${with_sysroot+set}" = set; then : 6189 withval=$with_sysroot; 6190else 6191 with_sysroot=no 6192fi 6193 6194 6195lt_sysroot= 6196case ${with_sysroot} in #( 6197 yes) 6198 if test "$GCC" = yes; then 6199 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6200 fi 6201 ;; #( 6202 /*) 6203 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6204 ;; #( 6205 no|'') 6206 ;; #( 6207 *) 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6209$as_echo "${with_sysroot}" >&6; } 6210 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6211 ;; 6212esac 6213 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6215$as_echo "${lt_sysroot:-no}" >&6; } 6216 6217 6218 6219 6220 6221# Check whether --enable-libtool-lock was given. 6222if test "${enable_libtool_lock+set}" = set; then : 6223 enableval=$enable_libtool_lock; 6224fi 6225 6226test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6227 6228# Some flags need to be propagated to the compiler or linker for good 6229# libtool support. 6230case $host in 6231ia64-*-hpux*) 6232 # Find out which ABI we are using. 6233 echo 'int i;' > conftest.$ac_ext 6234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6235 (eval $ac_compile) 2>&5 6236 ac_status=$? 6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6238 test $ac_status = 0; }; then 6239 case `/usr/bin/file conftest.$ac_objext` in 6240 *ELF-32*) 6241 HPUX_IA64_MODE="32" 6242 ;; 6243 *ELF-64*) 6244 HPUX_IA64_MODE="64" 6245 ;; 6246 esac 6247 fi 6248 rm -rf conftest* 6249 ;; 6250*-*-irix6*) 6251 # Find out which ABI we are using. 6252 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6254 (eval $ac_compile) 2>&5 6255 ac_status=$? 6256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6257 test $ac_status = 0; }; then 6258 if test "$lt_cv_prog_gnu_ld" = yes; then 6259 case `/usr/bin/file conftest.$ac_objext` in 6260 *32-bit*) 6261 LD="${LD-ld} -melf32bsmip" 6262 ;; 6263 *N32*) 6264 LD="${LD-ld} -melf32bmipn32" 6265 ;; 6266 *64-bit*) 6267 LD="${LD-ld} -melf64bmip" 6268 ;; 6269 esac 6270 else 6271 case `/usr/bin/file conftest.$ac_objext` in 6272 *32-bit*) 6273 LD="${LD-ld} -32" 6274 ;; 6275 *N32*) 6276 LD="${LD-ld} -n32" 6277 ;; 6278 *64-bit*) 6279 LD="${LD-ld} -64" 6280 ;; 6281 esac 6282 fi 6283 fi 6284 rm -rf conftest* 6285 ;; 6286 6287x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6288s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6289 # Find out which ABI we are using. 6290 echo 'int i;' > conftest.$ac_ext 6291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6292 (eval $ac_compile) 2>&5 6293 ac_status=$? 6294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6295 test $ac_status = 0; }; then 6296 case `/usr/bin/file conftest.o` in 6297 *32-bit*) 6298 case $host in 6299 x86_64-*kfreebsd*-gnu) 6300 LD="${LD-ld} -m elf_i386_fbsd" 6301 ;; 6302 x86_64-*linux*) 6303 case `/usr/bin/file conftest.o` in 6304 *x86-64*) 6305 LD="${LD-ld} -m elf32_x86_64" 6306 ;; 6307 *) 6308 LD="${LD-ld} -m elf_i386" 6309 ;; 6310 esac 6311 ;; 6312 powerpc64le-*) 6313 LD="${LD-ld} -m elf32lppclinux" 6314 ;; 6315 powerpc64-*) 6316 LD="${LD-ld} -m elf32ppclinux" 6317 ;; 6318 s390x-*linux*) 6319 LD="${LD-ld} -m elf_s390" 6320 ;; 6321 sparc64-*linux*) 6322 LD="${LD-ld} -m elf32_sparc" 6323 ;; 6324 esac 6325 ;; 6326 *64-bit*) 6327 case $host in 6328 x86_64-*kfreebsd*-gnu) 6329 LD="${LD-ld} -m elf_x86_64_fbsd" 6330 ;; 6331 x86_64-*linux*) 6332 LD="${LD-ld} -m elf_x86_64" 6333 ;; 6334 powerpcle-*) 6335 LD="${LD-ld} -m elf64lppc" 6336 ;; 6337 powerpc-*) 6338 LD="${LD-ld} -m elf64ppc" 6339 ;; 6340 s390*-*linux*|s390*-*tpf*) 6341 LD="${LD-ld} -m elf64_s390" 6342 ;; 6343 sparc*-*linux*) 6344 LD="${LD-ld} -m elf64_sparc" 6345 ;; 6346 esac 6347 ;; 6348 esac 6349 fi 6350 rm -rf conftest* 6351 ;; 6352 6353*-*-sco3.2v5*) 6354 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6355 SAVE_CFLAGS="$CFLAGS" 6356 CFLAGS="$CFLAGS -belf" 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6358$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6359if ${lt_cv_cc_needs_belf+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 ac_ext=c 6363ac_cpp='$CPP $CPPFLAGS' 6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6366ac_compiler_gnu=$ac_cv_c_compiler_gnu 6367 6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370 6371int 6372main () 6373{ 6374 6375 ; 6376 return 0; 6377} 6378_ACEOF 6379if ac_fn_c_try_link "$LINENO"; then : 6380 lt_cv_cc_needs_belf=yes 6381else 6382 lt_cv_cc_needs_belf=no 6383fi 6384rm -f core conftest.err conftest.$ac_objext \ 6385 conftest$ac_exeext conftest.$ac_ext 6386 ac_ext=c 6387ac_cpp='$CPP $CPPFLAGS' 6388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6390ac_compiler_gnu=$ac_cv_c_compiler_gnu 6391 6392fi 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6394$as_echo "$lt_cv_cc_needs_belf" >&6; } 6395 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6396 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6397 CFLAGS="$SAVE_CFLAGS" 6398 fi 6399 ;; 6400*-*solaris*) 6401 # Find out which ABI we are using. 6402 echo 'int i;' > conftest.$ac_ext 6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6404 (eval $ac_compile) 2>&5 6405 ac_status=$? 6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6407 test $ac_status = 0; }; then 6408 case `/usr/bin/file conftest.o` in 6409 *64-bit*) 6410 case $lt_cv_prog_gnu_ld in 6411 yes*) 6412 case $host in 6413 i?86-*-solaris*) 6414 LD="${LD-ld} -m elf_x86_64" 6415 ;; 6416 sparc*-*-solaris*) 6417 LD="${LD-ld} -m elf64_sparc" 6418 ;; 6419 esac 6420 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6421 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6422 LD="${LD-ld}_sol2" 6423 fi 6424 ;; 6425 *) 6426 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6427 LD="${LD-ld} -64" 6428 fi 6429 ;; 6430 esac 6431 ;; 6432 esac 6433 fi 6434 rm -rf conftest* 6435 ;; 6436esac 6437 6438need_locks="$enable_libtool_lock" 6439 6440if test -n "$ac_tool_prefix"; then 6441 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6442set dummy ${ac_tool_prefix}mt; ac_word=$2 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444$as_echo_n "checking for $ac_word... " >&6; } 6445if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 if test -n "$MANIFEST_TOOL"; then 6449 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6450else 6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6452for as_dir in $PATH 6453do 6454 IFS=$as_save_IFS 6455 test -z "$as_dir" && as_dir=. 6456 for ac_exec_ext in '' $ac_executable_extensions; do 6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6458 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6460 break 2 6461 fi 6462done 6463 done 6464IFS=$as_save_IFS 6465 6466fi 6467fi 6468MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6469if test -n "$MANIFEST_TOOL"; then 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6471$as_echo "$MANIFEST_TOOL" >&6; } 6472else 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6474$as_echo "no" >&6; } 6475fi 6476 6477 6478fi 6479if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6480 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6481 # Extract the first word of "mt", so it can be a program name with args. 6482set dummy mt; ac_word=$2 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6484$as_echo_n "checking for $ac_word... " >&6; } 6485if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 if test -n "$ac_ct_MANIFEST_TOOL"; then 6489 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6490else 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6498 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502done 6503 done 6504IFS=$as_save_IFS 6505 6506fi 6507fi 6508ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6509if test -n "$ac_ct_MANIFEST_TOOL"; then 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6511$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6512else 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6514$as_echo "no" >&6; } 6515fi 6516 6517 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6518 MANIFEST_TOOL=":" 6519 else 6520 case $cross_compiling:$ac_tool_warned in 6521yes:) 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6524ac_tool_warned=yes ;; 6525esac 6526 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6527 fi 6528else 6529 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6530fi 6531 6532test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6534$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6535if ${lt_cv_path_mainfest_tool+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 lt_cv_path_mainfest_tool=no 6539 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6540 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6541 cat conftest.err >&5 6542 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6543 lt_cv_path_mainfest_tool=yes 6544 fi 6545 rm -f conftest* 6546fi 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6548$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6549if test "x$lt_cv_path_mainfest_tool" != xyes; then 6550 MANIFEST_TOOL=: 6551fi 6552 6553 6554 6555 6556 6557 6558 case $host_os in 6559 rhapsody* | darwin*) 6560 if test -n "$ac_tool_prefix"; then 6561 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6562set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_DSYMUTIL+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$DSYMUTIL"; then 6569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588DSYMUTIL=$ac_cv_prog_DSYMUTIL 6589if test -n "$DSYMUTIL"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6591$as_echo "$DSYMUTIL" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 6598fi 6599if test -z "$ac_cv_prog_DSYMUTIL"; then 6600 ac_ct_DSYMUTIL=$DSYMUTIL 6601 # Extract the first word of "dsymutil", so it can be a program name with args. 6602set dummy dsymutil; ac_word=$2 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604$as_echo_n "checking for $ac_word... " >&6; } 6605if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 if test -n "$ac_ct_DSYMUTIL"; then 6609 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6618 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623 done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6629if test -n "$ac_ct_DSYMUTIL"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6631$as_echo "$ac_ct_DSYMUTIL" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635fi 6636 6637 if test "x$ac_ct_DSYMUTIL" = x; then 6638 DSYMUTIL=":" 6639 else 6640 case $cross_compiling:$ac_tool_warned in 6641yes:) 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6644ac_tool_warned=yes ;; 6645esac 6646 DSYMUTIL=$ac_ct_DSYMUTIL 6647 fi 6648else 6649 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6650fi 6651 6652 if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_NMEDIT+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$NMEDIT"; then 6661 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680NMEDIT=$ac_cv_prog_NMEDIT 6681if test -n "$NMEDIT"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6683$as_echo "$NMEDIT" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_NMEDIT"; then 6692 ac_ct_NMEDIT=$NMEDIT 6693 # Extract the first word of "nmedit", so it can be a program name with args. 6694set dummy nmedit; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_NMEDIT"; then 6701 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6710 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6721if test -n "$ac_ct_NMEDIT"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6723$as_echo "$ac_ct_NMEDIT" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_NMEDIT" = x; then 6730 NMEDIT=":" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6736ac_tool_warned=yes ;; 6737esac 6738 NMEDIT=$ac_ct_NMEDIT 6739 fi 6740else 6741 NMEDIT="$ac_cv_prog_NMEDIT" 6742fi 6743 6744 if test -n "$ac_tool_prefix"; then 6745 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6746set dummy ${ac_tool_prefix}lipo; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_LIPO+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$LIPO"; then 6753 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772LIPO=$ac_cv_prog_LIPO 6773if test -n "$LIPO"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6775$as_echo "$LIPO" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782fi 6783if test -z "$ac_cv_prog_LIPO"; then 6784 ac_ct_LIPO=$LIPO 6785 # Extract the first word of "lipo", so it can be a program name with args. 6786set dummy lipo; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$ac_ct_LIPO"; then 6793 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_ac_ct_LIPO="lipo" 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6813if test -n "$ac_ct_LIPO"; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6815$as_echo "$ac_ct_LIPO" >&6; } 6816else 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_LIPO" = x; then 6822 LIPO=":" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 LIPO=$ac_ct_LIPO 6831 fi 6832else 6833 LIPO="$ac_cv_prog_LIPO" 6834fi 6835 6836 if test -n "$ac_tool_prefix"; then 6837 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6838set dummy ${ac_tool_prefix}otool; ac_word=$2 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6840$as_echo_n "checking for $ac_word... " >&6; } 6841if ${ac_cv_prog_OTOOL+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 if test -n "$OTOOL"; then 6845 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6846else 6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6848for as_dir in $PATH 6849do 6850 IFS=$as_save_IFS 6851 test -z "$as_dir" && as_dir=. 6852 for ac_exec_ext in '' $ac_executable_extensions; do 6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6854 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6856 break 2 6857 fi 6858done 6859 done 6860IFS=$as_save_IFS 6861 6862fi 6863fi 6864OTOOL=$ac_cv_prog_OTOOL 6865if test -n "$OTOOL"; then 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6867$as_echo "$OTOOL" >&6; } 6868else 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6870$as_echo "no" >&6; } 6871fi 6872 6873 6874fi 6875if test -z "$ac_cv_prog_OTOOL"; then 6876 ac_ct_OTOOL=$OTOOL 6877 # Extract the first word of "otool", so it can be a program name with args. 6878set dummy otool; ac_word=$2 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6880$as_echo_n "checking for $ac_word... " >&6; } 6881if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 if test -n "$ac_ct_OTOOL"; then 6885 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6886else 6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6888for as_dir in $PATH 6889do 6890 IFS=$as_save_IFS 6891 test -z "$as_dir" && as_dir=. 6892 for ac_exec_ext in '' $ac_executable_extensions; do 6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6894 ac_cv_prog_ac_ct_OTOOL="otool" 6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6896 break 2 6897 fi 6898done 6899 done 6900IFS=$as_save_IFS 6901 6902fi 6903fi 6904ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6905if test -n "$ac_ct_OTOOL"; then 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6907$as_echo "$ac_ct_OTOOL" >&6; } 6908else 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6910$as_echo "no" >&6; } 6911fi 6912 6913 if test "x$ac_ct_OTOOL" = x; then 6914 OTOOL=":" 6915 else 6916 case $cross_compiling:$ac_tool_warned in 6917yes:) 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6920ac_tool_warned=yes ;; 6921esac 6922 OTOOL=$ac_ct_OTOOL 6923 fi 6924else 6925 OTOOL="$ac_cv_prog_OTOOL" 6926fi 6927 6928 if test -n "$ac_tool_prefix"; then 6929 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6930set dummy ${ac_tool_prefix}otool64; ac_word=$2 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6932$as_echo_n "checking for $ac_word... " >&6; } 6933if ${ac_cv_prog_OTOOL64+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 if test -n "$OTOOL64"; then 6937 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6938else 6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6940for as_dir in $PATH 6941do 6942 IFS=$as_save_IFS 6943 test -z "$as_dir" && as_dir=. 6944 for ac_exec_ext in '' $ac_executable_extensions; do 6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6946 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6948 break 2 6949 fi 6950done 6951 done 6952IFS=$as_save_IFS 6953 6954fi 6955fi 6956OTOOL64=$ac_cv_prog_OTOOL64 6957if test -n "$OTOOL64"; then 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6959$as_echo "$OTOOL64" >&6; } 6960else 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6962$as_echo "no" >&6; } 6963fi 6964 6965 6966fi 6967if test -z "$ac_cv_prog_OTOOL64"; then 6968 ac_ct_OTOOL64=$OTOOL64 6969 # Extract the first word of "otool64", so it can be a program name with args. 6970set dummy otool64; ac_word=$2 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6972$as_echo_n "checking for $ac_word... " >&6; } 6973if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975else 6976 if test -n "$ac_ct_OTOOL64"; then 6977 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6978else 6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6980for as_dir in $PATH 6981do 6982 IFS=$as_save_IFS 6983 test -z "$as_dir" && as_dir=. 6984 for ac_exec_ext in '' $ac_executable_extensions; do 6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6986 ac_cv_prog_ac_ct_OTOOL64="otool64" 6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6988 break 2 6989 fi 6990done 6991 done 6992IFS=$as_save_IFS 6993 6994fi 6995fi 6996ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6997if test -n "$ac_ct_OTOOL64"; then 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6999$as_echo "$ac_ct_OTOOL64" >&6; } 7000else 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7002$as_echo "no" >&6; } 7003fi 7004 7005 if test "x$ac_ct_OTOOL64" = x; then 7006 OTOOL64=":" 7007 else 7008 case $cross_compiling:$ac_tool_warned in 7009yes:) 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7012ac_tool_warned=yes ;; 7013esac 7014 OTOOL64=$ac_ct_OTOOL64 7015 fi 7016else 7017 OTOOL64="$ac_cv_prog_OTOOL64" 7018fi 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7047$as_echo_n "checking for -single_module linker flag... " >&6; } 7048if ${lt_cv_apple_cc_single_mod+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 lt_cv_apple_cc_single_mod=no 7052 if test -z "${LT_MULTI_MODULE}"; then 7053 # By default we will add the -single_module flag. You can override 7054 # by either setting the environment variable LT_MULTI_MODULE 7055 # non-empty at configure time, or by adding -multi_module to the 7056 # link flags. 7057 rm -rf libconftest.dylib* 7058 echo "int foo(void){return 1;}" > conftest.c 7059 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7060-dynamiclib -Wl,-single_module conftest.c" >&5 7061 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7062 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7063 _lt_result=$? 7064 # If there is a non-empty error log, and "single_module" 7065 # appears in it, assume the flag caused a linker warning 7066 if test -s conftest.err && $GREP single_module conftest.err; then 7067 cat conftest.err >&5 7068 # Otherwise, if the output was created with a 0 exit code from 7069 # the compiler, it worked. 7070 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7071 lt_cv_apple_cc_single_mod=yes 7072 else 7073 cat conftest.err >&5 7074 fi 7075 rm -rf libconftest.dylib* 7076 rm -f conftest.* 7077 fi 7078fi 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7080$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7081 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7083$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7084if ${lt_cv_ld_exported_symbols_list+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 lt_cv_ld_exported_symbols_list=no 7088 save_LDFLAGS=$LDFLAGS 7089 echo "_main" > conftest.sym 7090 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093 7094int 7095main () 7096{ 7097 7098 ; 7099 return 0; 7100} 7101_ACEOF 7102if ac_fn_c_try_link "$LINENO"; then : 7103 lt_cv_ld_exported_symbols_list=yes 7104else 7105 lt_cv_ld_exported_symbols_list=no 7106fi 7107rm -f core conftest.err conftest.$ac_objext \ 7108 conftest$ac_exeext conftest.$ac_ext 7109 LDFLAGS="$save_LDFLAGS" 7110 7111fi 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7113$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7114 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7116$as_echo_n "checking for -force_load linker flag... " >&6; } 7117if ${lt_cv_ld_force_load+:} false; then : 7118 $as_echo_n "(cached) " >&6 7119else 7120 lt_cv_ld_force_load=no 7121 cat > conftest.c << _LT_EOF 7122int forced_loaded() { return 2;} 7123_LT_EOF 7124 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7125 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7126 echo "$AR cru libconftest.a conftest.o" >&5 7127 $AR cru libconftest.a conftest.o 2>&5 7128 echo "$RANLIB libconftest.a" >&5 7129 $RANLIB libconftest.a 2>&5 7130 cat > conftest.c << _LT_EOF 7131int main() { return 0;} 7132_LT_EOF 7133 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7134 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7135 _lt_result=$? 7136 if test -s conftest.err && $GREP force_load conftest.err; then 7137 cat conftest.err >&5 7138 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7139 lt_cv_ld_force_load=yes 7140 else 7141 cat conftest.err >&5 7142 fi 7143 rm -f conftest.err libconftest.a conftest conftest.c 7144 rm -rf conftest.dSYM 7145 7146fi 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7148$as_echo "$lt_cv_ld_force_load" >&6; } 7149 case $host_os in 7150 rhapsody* | darwin1.[012]) 7151 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7152 darwin1.*) 7153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7154 darwin*) # darwin 5.x on 7155 # if running on 10.5 or later, the deployment target defaults 7156 # to the OS version, if on x86, and 10.4, the deployment 7157 # target defaults to 10.4. Don't you love it? 7158 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7159 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7160 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7161 10.[012]*) 7162 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7163 10.*) 7164 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7165 esac 7166 ;; 7167 esac 7168 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7169 _lt_dar_single_mod='$single_module' 7170 fi 7171 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7172 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7173 else 7174 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7175 fi 7176 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7177 _lt_dsymutil='~$DSYMUTIL $lib || :' 7178 else 7179 _lt_dsymutil= 7180 fi 7181 ;; 7182 esac 7183 7184ac_ext=c 7185ac_cpp='$CPP $CPPFLAGS' 7186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7188ac_compiler_gnu=$ac_cv_c_compiler_gnu 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7190$as_echo_n "checking how to run the C preprocessor... " >&6; } 7191# On Suns, sometimes $CPP names a directory. 7192if test -n "$CPP" && test -d "$CPP"; then 7193 CPP= 7194fi 7195if test -z "$CPP"; then 7196 if ${ac_cv_prog_CPP+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 # Double quotes because CPP needs to be expanded 7200 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7201 do 7202 ac_preproc_ok=false 7203for ac_c_preproc_warn_flag in '' yes 7204do 7205 # Use a header file that comes with gcc, so configuring glibc 7206 # with a fresh cross-compiler works. 7207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7208 # <limits.h> exists even on freestanding compilers. 7209 # On the NeXT, cc -E runs the code through the compiler's parser, 7210 # not just through cpp. "Syntax error" is here to catch this case. 7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7212/* end confdefs.h. */ 7213#ifdef __STDC__ 7214# include <limits.h> 7215#else 7216# include <assert.h> 7217#endif 7218 Syntax error 7219_ACEOF 7220if ac_fn_c_try_cpp "$LINENO"; then : 7221 7222else 7223 # Broken: fails on valid input. 7224continue 7225fi 7226rm -f conftest.err conftest.i conftest.$ac_ext 7227 7228 # OK, works on sane cases. Now check whether nonexistent headers 7229 # can be detected and how. 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7231/* end confdefs.h. */ 7232#include <ac_nonexistent.h> 7233_ACEOF 7234if ac_fn_c_try_cpp "$LINENO"; then : 7235 # Broken: success on invalid input. 7236continue 7237else 7238 # Passes both tests. 7239ac_preproc_ok=: 7240break 7241fi 7242rm -f conftest.err conftest.i conftest.$ac_ext 7243 7244done 7245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7246rm -f conftest.i conftest.err conftest.$ac_ext 7247if $ac_preproc_ok; then : 7248 break 7249fi 7250 7251 done 7252 ac_cv_prog_CPP=$CPP 7253 7254fi 7255 CPP=$ac_cv_prog_CPP 7256else 7257 ac_cv_prog_CPP=$CPP 7258fi 7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7260$as_echo "$CPP" >&6; } 7261ac_preproc_ok=false 7262for ac_c_preproc_warn_flag in '' yes 7263do 7264 # Use a header file that comes with gcc, so configuring glibc 7265 # with a fresh cross-compiler works. 7266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7267 # <limits.h> exists even on freestanding compilers. 7268 # On the NeXT, cc -E runs the code through the compiler's parser, 7269 # not just through cpp. "Syntax error" is here to catch this case. 7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7271/* end confdefs.h. */ 7272#ifdef __STDC__ 7273# include <limits.h> 7274#else 7275# include <assert.h> 7276#endif 7277 Syntax error 7278_ACEOF 7279if ac_fn_c_try_cpp "$LINENO"; then : 7280 7281else 7282 # Broken: fails on valid input. 7283continue 7284fi 7285rm -f conftest.err conftest.i conftest.$ac_ext 7286 7287 # OK, works on sane cases. Now check whether nonexistent headers 7288 # can be detected and how. 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290/* end confdefs.h. */ 7291#include <ac_nonexistent.h> 7292_ACEOF 7293if ac_fn_c_try_cpp "$LINENO"; then : 7294 # Broken: success on invalid input. 7295continue 7296else 7297 # Passes both tests. 7298ac_preproc_ok=: 7299break 7300fi 7301rm -f conftest.err conftest.i conftest.$ac_ext 7302 7303done 7304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7305rm -f conftest.i conftest.err conftest.$ac_ext 7306if $ac_preproc_ok; then : 7307 7308else 7309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7311as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7312See \`config.log' for more details" "$LINENO" 5; } 7313fi 7314 7315ac_ext=c 7316ac_cpp='$CPP $CPPFLAGS' 7317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7319ac_compiler_gnu=$ac_cv_c_compiler_gnu 7320 7321 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7323$as_echo_n "checking for ANSI C header files... " >&6; } 7324if ${ac_cv_header_stdc+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329#include <stdlib.h> 7330#include <stdarg.h> 7331#include <string.h> 7332#include <float.h> 7333 7334int 7335main () 7336{ 7337 7338 ; 7339 return 0; 7340} 7341_ACEOF 7342if ac_fn_c_try_compile "$LINENO"; then : 7343 ac_cv_header_stdc=yes 7344else 7345 ac_cv_header_stdc=no 7346fi 7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7348 7349if test $ac_cv_header_stdc = yes; then 7350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353#include <string.h> 7354 7355_ACEOF 7356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7357 $EGREP "memchr" >/dev/null 2>&1; then : 7358 7359else 7360 ac_cv_header_stdc=no 7361fi 7362rm -f conftest* 7363 7364fi 7365 7366if test $ac_cv_header_stdc = yes; then 7367 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370#include <stdlib.h> 7371 7372_ACEOF 7373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7374 $EGREP "free" >/dev/null 2>&1; then : 7375 7376else 7377 ac_cv_header_stdc=no 7378fi 7379rm -f conftest* 7380 7381fi 7382 7383if test $ac_cv_header_stdc = yes; then 7384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7385 if test "$cross_compiling" = yes; then : 7386 : 7387else 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390#include <ctype.h> 7391#include <stdlib.h> 7392#if ((' ' & 0x0FF) == 0x020) 7393# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7394# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7395#else 7396# define ISLOWER(c) \ 7397 (('a' <= (c) && (c) <= 'i') \ 7398 || ('j' <= (c) && (c) <= 'r') \ 7399 || ('s' <= (c) && (c) <= 'z')) 7400# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7401#endif 7402 7403#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7404int 7405main () 7406{ 7407 int i; 7408 for (i = 0; i < 256; i++) 7409 if (XOR (islower (i), ISLOWER (i)) 7410 || toupper (i) != TOUPPER (i)) 7411 return 2; 7412 return 0; 7413} 7414_ACEOF 7415if ac_fn_c_try_run "$LINENO"; then : 7416 7417else 7418 ac_cv_header_stdc=no 7419fi 7420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7421 conftest.$ac_objext conftest.beam conftest.$ac_ext 7422fi 7423 7424fi 7425fi 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7427$as_echo "$ac_cv_header_stdc" >&6; } 7428if test $ac_cv_header_stdc = yes; then 7429 7430$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7431 7432fi 7433 7434# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7436 inttypes.h stdint.h unistd.h 7437do : 7438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7439ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7440" 7441if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7442 cat >>confdefs.h <<_ACEOF 7443#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7444_ACEOF 7445 7446fi 7447 7448done 7449 7450 7451for ac_header in dlfcn.h 7452do : 7453 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7454" 7455if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7456 cat >>confdefs.h <<_ACEOF 7457#define HAVE_DLFCN_H 1 7458_ACEOF 7459 7460fi 7461 7462done 7463 7464 7465 7466 7467 7468# Set options 7469 7470 7471 7472 enable_dlopen=no 7473 7474 7475 enable_win32_dll=no 7476 7477 7478 # Check whether --enable-shared was given. 7479if test "${enable_shared+set}" = set; then : 7480 enableval=$enable_shared; p=${PACKAGE-default} 7481 case $enableval in 7482 yes) enable_shared=yes ;; 7483 no) enable_shared=no ;; 7484 *) 7485 enable_shared=no 7486 # Look at the argument we got. We use all the common list separators. 7487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7488 for pkg in $enableval; do 7489 IFS="$lt_save_ifs" 7490 if test "X$pkg" = "X$p"; then 7491 enable_shared=yes 7492 fi 7493 done 7494 IFS="$lt_save_ifs" 7495 ;; 7496 esac 7497else 7498 enable_shared=yes 7499fi 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 # Check whether --enable-static was given. 7510if test "${enable_static+set}" = set; then : 7511 enableval=$enable_static; p=${PACKAGE-default} 7512 case $enableval in 7513 yes) enable_static=yes ;; 7514 no) enable_static=no ;; 7515 *) 7516 enable_static=no 7517 # Look at the argument we got. We use all the common list separators. 7518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7519 for pkg in $enableval; do 7520 IFS="$lt_save_ifs" 7521 if test "X$pkg" = "X$p"; then 7522 enable_static=yes 7523 fi 7524 done 7525 IFS="$lt_save_ifs" 7526 ;; 7527 esac 7528else 7529 enable_static=yes 7530fi 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541# Check whether --with-pic was given. 7542if test "${with_pic+set}" = set; then : 7543 withval=$with_pic; lt_p=${PACKAGE-default} 7544 case $withval in 7545 yes|no) pic_mode=$withval ;; 7546 *) 7547 pic_mode=default 7548 # Look at the argument we got. We use all the common list separators. 7549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7550 for lt_pkg in $withval; do 7551 IFS="$lt_save_ifs" 7552 if test "X$lt_pkg" = "X$lt_p"; then 7553 pic_mode=yes 7554 fi 7555 done 7556 IFS="$lt_save_ifs" 7557 ;; 7558 esac 7559else 7560 pic_mode=default 7561fi 7562 7563 7564test -z "$pic_mode" && pic_mode=default 7565 7566 7567 7568 7569 7570 7571 7572 # Check whether --enable-fast-install was given. 7573if test "${enable_fast_install+set}" = set; then : 7574 enableval=$enable_fast_install; p=${PACKAGE-default} 7575 case $enableval in 7576 yes) enable_fast_install=yes ;; 7577 no) enable_fast_install=no ;; 7578 *) 7579 enable_fast_install=no 7580 # Look at the argument we got. We use all the common list separators. 7581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7582 for pkg in $enableval; do 7583 IFS="$lt_save_ifs" 7584 if test "X$pkg" = "X$p"; then 7585 enable_fast_install=yes 7586 fi 7587 done 7588 IFS="$lt_save_ifs" 7589 ;; 7590 esac 7591else 7592 enable_fast_install=yes 7593fi 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605# This can be used to rebuild libtool when needed 7606LIBTOOL_DEPS="$ltmain" 7607 7608# Always use our own libtool. 7609LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640test -z "$LN_S" && LN_S="ln -s" 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655if test -n "${ZSH_VERSION+set}" ; then 7656 setopt NO_GLOB_SUBST 7657fi 7658 7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7660$as_echo_n "checking for objdir... " >&6; } 7661if ${lt_cv_objdir+:} false; then : 7662 $as_echo_n "(cached) " >&6 7663else 7664 rm -f .libs 2>/dev/null 7665mkdir .libs 2>/dev/null 7666if test -d .libs; then 7667 lt_cv_objdir=.libs 7668else 7669 # MS-DOS does not allow filenames that begin with a dot. 7670 lt_cv_objdir=_libs 7671fi 7672rmdir .libs 2>/dev/null 7673fi 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7675$as_echo "$lt_cv_objdir" >&6; } 7676objdir=$lt_cv_objdir 7677 7678 7679 7680 7681 7682cat >>confdefs.h <<_ACEOF 7683#define LT_OBJDIR "$lt_cv_objdir/" 7684_ACEOF 7685 7686 7687 7688 7689case $host_os in 7690aix3*) 7691 # AIX sometimes has problems with the GCC collect2 program. For some 7692 # reason, if we set the COLLECT_NAMES environment variable, the problems 7693 # vanish in a puff of smoke. 7694 if test "X${COLLECT_NAMES+set}" != Xset; then 7695 COLLECT_NAMES= 7696 export COLLECT_NAMES 7697 fi 7698 ;; 7699esac 7700 7701# Global variables: 7702ofile=libtool 7703can_build_shared=yes 7704 7705# All known linkers require a `.a' archive for static linking (except MSVC, 7706# which needs '.lib'). 7707libext=a 7708 7709with_gnu_ld="$lt_cv_prog_gnu_ld" 7710 7711old_CC="$CC" 7712old_CFLAGS="$CFLAGS" 7713 7714# Set sane defaults for various variables 7715test -z "$CC" && CC=cc 7716test -z "$LTCC" && LTCC=$CC 7717test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7718test -z "$LD" && LD=ld 7719test -z "$ac_objext" && ac_objext=o 7720 7721for cc_temp in $compiler""; do 7722 case $cc_temp in 7723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7725 \-*) ;; 7726 *) break;; 7727 esac 7728done 7729cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7730 7731 7732# Only perform the check for file, if the check method requires it 7733test -z "$MAGIC_CMD" && MAGIC_CMD=file 7734case $deplibs_check_method in 7735file_magic*) 7736 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7738$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7739if ${lt_cv_path_MAGIC_CMD+:} false; then : 7740 $as_echo_n "(cached) " >&6 7741else 7742 case $MAGIC_CMD in 7743[\\/*] | ?:[\\/]*) 7744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7745 ;; 7746*) 7747 lt_save_MAGIC_CMD="$MAGIC_CMD" 7748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7750 for ac_dir in $ac_dummy; do 7751 IFS="$lt_save_ifs" 7752 test -z "$ac_dir" && ac_dir=. 7753 if test -f $ac_dir/${ac_tool_prefix}file; then 7754 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7755 if test -n "$file_magic_test_file"; then 7756 case $deplibs_check_method in 7757 "file_magic "*) 7758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7761 $EGREP "$file_magic_regex" > /dev/null; then 7762 : 7763 else 7764 cat <<_LT_EOF 1>&2 7765 7766*** Warning: the command libtool uses to detect shared libraries, 7767*** $file_magic_cmd, produces output that libtool cannot recognize. 7768*** The result is that libtool may fail to recognize shared libraries 7769*** as such. This will affect the creation of libtool libraries that 7770*** depend on shared libraries, but programs linked with such libtool 7771*** libraries will work regardless of this problem. Nevertheless, you 7772*** may want to report the problem to your system manager and/or to 7773*** bug-libtool@gnu.org 7774 7775_LT_EOF 7776 fi ;; 7777 esac 7778 fi 7779 break 7780 fi 7781 done 7782 IFS="$lt_save_ifs" 7783 MAGIC_CMD="$lt_save_MAGIC_CMD" 7784 ;; 7785esac 7786fi 7787 7788MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7789if test -n "$MAGIC_CMD"; then 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7791$as_echo "$MAGIC_CMD" >&6; } 7792else 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794$as_echo "no" >&6; } 7795fi 7796 7797 7798 7799 7800 7801if test -z "$lt_cv_path_MAGIC_CMD"; then 7802 if test -n "$ac_tool_prefix"; then 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7804$as_echo_n "checking for file... " >&6; } 7805if ${lt_cv_path_MAGIC_CMD+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 case $MAGIC_CMD in 7809[\\/*] | ?:[\\/]*) 7810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7811 ;; 7812*) 7813 lt_save_MAGIC_CMD="$MAGIC_CMD" 7814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7816 for ac_dir in $ac_dummy; do 7817 IFS="$lt_save_ifs" 7818 test -z "$ac_dir" && ac_dir=. 7819 if test -f $ac_dir/file; then 7820 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7821 if test -n "$file_magic_test_file"; then 7822 case $deplibs_check_method in 7823 "file_magic "*) 7824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7827 $EGREP "$file_magic_regex" > /dev/null; then 7828 : 7829 else 7830 cat <<_LT_EOF 1>&2 7831 7832*** Warning: the command libtool uses to detect shared libraries, 7833*** $file_magic_cmd, produces output that libtool cannot recognize. 7834*** The result is that libtool may fail to recognize shared libraries 7835*** as such. This will affect the creation of libtool libraries that 7836*** depend on shared libraries, but programs linked with such libtool 7837*** libraries will work regardless of this problem. Nevertheless, you 7838*** may want to report the problem to your system manager and/or to 7839*** bug-libtool@gnu.org 7840 7841_LT_EOF 7842 fi ;; 7843 esac 7844 fi 7845 break 7846 fi 7847 done 7848 IFS="$lt_save_ifs" 7849 MAGIC_CMD="$lt_save_MAGIC_CMD" 7850 ;; 7851esac 7852fi 7853 7854MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7855if test -n "$MAGIC_CMD"; then 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7857$as_echo "$MAGIC_CMD" >&6; } 7858else 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7860$as_echo "no" >&6; } 7861fi 7862 7863 7864 else 7865 MAGIC_CMD=: 7866 fi 7867fi 7868 7869 fi 7870 ;; 7871esac 7872 7873# Use C for the default configuration in the libtool script 7874 7875lt_save_CC="$CC" 7876ac_ext=c 7877ac_cpp='$CPP $CPPFLAGS' 7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7880ac_compiler_gnu=$ac_cv_c_compiler_gnu 7881 7882 7883# Source file extension for C test sources. 7884ac_ext=c 7885 7886# Object file extension for compiled C test sources. 7887objext=o 7888objext=$objext 7889 7890# Code to be used in simple compile tests 7891lt_simple_compile_test_code="int some_variable = 0;" 7892 7893# Code to be used in simple link tests 7894lt_simple_link_test_code='int main(){return(0);}' 7895 7896 7897 7898 7899 7900 7901 7902# If no C compiler was specified, use CC. 7903LTCC=${LTCC-"$CC"} 7904 7905# If no C compiler flags were specified, use CFLAGS. 7906LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7907 7908# Allow CC to be a program name with arguments. 7909compiler=$CC 7910 7911# Save the default compiler, since it gets overwritten when the other 7912# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7913compiler_DEFAULT=$CC 7914 7915# save warnings/boilerplate of simple test code 7916ac_outfile=conftest.$ac_objext 7917echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7918eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7919_lt_compiler_boilerplate=`cat conftest.err` 7920$RM conftest* 7921 7922ac_outfile=conftest.$ac_objext 7923echo "$lt_simple_link_test_code" >conftest.$ac_ext 7924eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7925_lt_linker_boilerplate=`cat conftest.err` 7926$RM -r conftest* 7927 7928 7929if test -n "$compiler"; then 7930 7931lt_prog_compiler_no_builtin_flag= 7932 7933if test "$GCC" = yes; then 7934 case $cc_basename in 7935 nvcc*) 7936 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7937 *) 7938 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7939 esac 7940 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7942$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7943if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 lt_cv_prog_compiler_rtti_exceptions=no 7947 ac_outfile=conftest.$ac_objext 7948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7949 lt_compiler_flag="-fno-rtti -fno-exceptions" 7950 # Insert the option either (1) after the last *FLAGS variable, or 7951 # (2) before a word containing "conftest.", or (3) at the end. 7952 # Note that $ac_compile itself does not contain backslashes and begins 7953 # with a dollar sign (not a hyphen), so the echo should work correctly. 7954 # The option is referenced via a variable to avoid confusing sed. 7955 lt_compile=`echo "$ac_compile" | $SED \ 7956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7958 -e 's:$: $lt_compiler_flag:'` 7959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7960 (eval "$lt_compile" 2>conftest.err) 7961 ac_status=$? 7962 cat conftest.err >&5 7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7964 if (exit $ac_status) && test -s "$ac_outfile"; then 7965 # The compiler can only warn and ignore the option if not recognized 7966 # So say no if there are warnings other than the usual output. 7967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7970 lt_cv_prog_compiler_rtti_exceptions=yes 7971 fi 7972 fi 7973 $RM conftest* 7974 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7977$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7978 7979if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7980 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7981else 7982 : 7983fi 7984 7985fi 7986 7987 7988 7989 7990 7991 7992 lt_prog_compiler_wl= 7993lt_prog_compiler_pic= 7994lt_prog_compiler_static= 7995 7996 7997 if test "$GCC" = yes; then 7998 lt_prog_compiler_wl='-Wl,' 7999 lt_prog_compiler_static='-static' 8000 8001 case $host_os in 8002 aix*) 8003 # All AIX code is PIC. 8004 if test "$host_cpu" = ia64; then 8005 # AIX 5 now supports IA64 processor 8006 lt_prog_compiler_static='-Bstatic' 8007 fi 8008 ;; 8009 8010 amigaos*) 8011 case $host_cpu in 8012 powerpc) 8013 # see comment about AmigaOS4 .so support 8014 lt_prog_compiler_pic='-fPIC' 8015 ;; 8016 m68k) 8017 # FIXME: we need at least 68020 code to build shared libraries, but 8018 # adding the `-m68020' flag to GCC prevents building anything better, 8019 # like `-m68040'. 8020 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8021 ;; 8022 esac 8023 ;; 8024 8025 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8026 # PIC is the default for these OSes. 8027 ;; 8028 8029 mingw* | cygwin* | pw32* | os2* | cegcc*) 8030 # This hack is so that the source file can tell whether it is being 8031 # built for inclusion in a dll (and should export symbols for example). 8032 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8033 # (--disable-auto-import) libraries 8034 lt_prog_compiler_pic='-DDLL_EXPORT' 8035 ;; 8036 8037 darwin* | rhapsody*) 8038 # PIC is the default on this platform 8039 # Common symbols not allowed in MH_DYLIB files 8040 lt_prog_compiler_pic='-fno-common' 8041 ;; 8042 8043 haiku*) 8044 # PIC is the default for Haiku. 8045 # The "-static" flag exists, but is broken. 8046 lt_prog_compiler_static= 8047 ;; 8048 8049 hpux*) 8050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8052 # sets the default TLS model and affects inlining. 8053 case $host_cpu in 8054 hppa*64*) 8055 # +Z the default 8056 ;; 8057 *) 8058 lt_prog_compiler_pic='-fPIC' 8059 ;; 8060 esac 8061 ;; 8062 8063 interix[3-9]*) 8064 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8065 # Instead, we relocate shared libraries at runtime. 8066 ;; 8067 8068 msdosdjgpp*) 8069 # Just because we use GCC doesn't mean we suddenly get shared libraries 8070 # on systems that don't support them. 8071 lt_prog_compiler_can_build_shared=no 8072 enable_shared=no 8073 ;; 8074 8075 *nto* | *qnx*) 8076 # QNX uses GNU C++, but need to define -shared option too, otherwise 8077 # it will coredump. 8078 lt_prog_compiler_pic='-fPIC -shared' 8079 ;; 8080 8081 sysv4*MP*) 8082 if test -d /usr/nec; then 8083 lt_prog_compiler_pic=-Kconform_pic 8084 fi 8085 ;; 8086 8087 *) 8088 lt_prog_compiler_pic='-fPIC' 8089 ;; 8090 esac 8091 8092 case $cc_basename in 8093 nvcc*) # Cuda Compiler Driver 2.2 8094 lt_prog_compiler_wl='-Xlinker ' 8095 if test -n "$lt_prog_compiler_pic"; then 8096 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8097 fi 8098 ;; 8099 esac 8100 else 8101 # PORTME Check for flag to pass linker flags through the system compiler. 8102 case $host_os in 8103 aix*) 8104 lt_prog_compiler_wl='-Wl,' 8105 if test "$host_cpu" = ia64; then 8106 # AIX 5 now supports IA64 processor 8107 lt_prog_compiler_static='-Bstatic' 8108 else 8109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8110 fi 8111 ;; 8112 8113 mingw* | cygwin* | pw32* | os2* | cegcc*) 8114 # This hack is so that the source file can tell whether it is being 8115 # built for inclusion in a dll (and should export symbols for example). 8116 lt_prog_compiler_pic='-DDLL_EXPORT' 8117 ;; 8118 8119 hpux9* | hpux10* | hpux11*) 8120 lt_prog_compiler_wl='-Wl,' 8121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8122 # not for PA HP-UX. 8123 case $host_cpu in 8124 hppa*64*|ia64*) 8125 # +Z the default 8126 ;; 8127 *) 8128 lt_prog_compiler_pic='+Z' 8129 ;; 8130 esac 8131 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8132 lt_prog_compiler_static='${wl}-a ${wl}archive' 8133 ;; 8134 8135 irix5* | irix6* | nonstopux*) 8136 lt_prog_compiler_wl='-Wl,' 8137 # PIC (with -KPIC) is the default. 8138 lt_prog_compiler_static='-non_shared' 8139 ;; 8140 8141 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8142 case $cc_basename in 8143 # old Intel for x86_64 which still supported -KPIC. 8144 ecc*) 8145 lt_prog_compiler_wl='-Wl,' 8146 lt_prog_compiler_pic='-KPIC' 8147 lt_prog_compiler_static='-static' 8148 ;; 8149 # icc used to be incompatible with GCC. 8150 # ICC 10 doesn't accept -KPIC any more. 8151 icc* | ifort*) 8152 lt_prog_compiler_wl='-Wl,' 8153 lt_prog_compiler_pic='-fPIC' 8154 lt_prog_compiler_static='-static' 8155 ;; 8156 # Lahey Fortran 8.1. 8157 lf95*) 8158 lt_prog_compiler_wl='-Wl,' 8159 lt_prog_compiler_pic='--shared' 8160 lt_prog_compiler_static='--static' 8161 ;; 8162 nagfor*) 8163 # NAG Fortran compiler 8164 lt_prog_compiler_wl='-Wl,-Wl,,' 8165 lt_prog_compiler_pic='-PIC' 8166 lt_prog_compiler_static='-Bstatic' 8167 ;; 8168 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8169 # Portland Group compilers (*not* the Pentium gcc compiler, 8170 # which looks to be a dead project) 8171 lt_prog_compiler_wl='-Wl,' 8172 lt_prog_compiler_pic='-fpic' 8173 lt_prog_compiler_static='-Bstatic' 8174 ;; 8175 ccc*) 8176 lt_prog_compiler_wl='-Wl,' 8177 # All Alpha code is PIC. 8178 lt_prog_compiler_static='-non_shared' 8179 ;; 8180 xl* | bgxl* | bgf* | mpixl*) 8181 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8182 lt_prog_compiler_wl='-Wl,' 8183 lt_prog_compiler_pic='-qpic' 8184 lt_prog_compiler_static='-qstaticlink' 8185 ;; 8186 *) 8187 case `$CC -V 2>&1 | sed 5q` in 8188 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8189 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8190 lt_prog_compiler_pic='-KPIC' 8191 lt_prog_compiler_static='-Bstatic' 8192 lt_prog_compiler_wl='' 8193 ;; 8194 *Sun\ F* | *Sun*Fortran*) 8195 lt_prog_compiler_pic='-KPIC' 8196 lt_prog_compiler_static='-Bstatic' 8197 lt_prog_compiler_wl='-Qoption ld ' 8198 ;; 8199 *Sun\ C*) 8200 # Sun C 5.9 8201 lt_prog_compiler_pic='-KPIC' 8202 lt_prog_compiler_static='-Bstatic' 8203 lt_prog_compiler_wl='-Wl,' 8204 ;; 8205 *Intel*\ [CF]*Compiler*) 8206 lt_prog_compiler_wl='-Wl,' 8207 lt_prog_compiler_pic='-fPIC' 8208 lt_prog_compiler_static='-static' 8209 ;; 8210 *Portland\ Group*) 8211 lt_prog_compiler_wl='-Wl,' 8212 lt_prog_compiler_pic='-fpic' 8213 lt_prog_compiler_static='-Bstatic' 8214 ;; 8215 esac 8216 ;; 8217 esac 8218 ;; 8219 8220 newsos6) 8221 lt_prog_compiler_pic='-KPIC' 8222 lt_prog_compiler_static='-Bstatic' 8223 ;; 8224 8225 *nto* | *qnx*) 8226 # QNX uses GNU C++, but need to define -shared option too, otherwise 8227 # it will coredump. 8228 lt_prog_compiler_pic='-fPIC -shared' 8229 ;; 8230 8231 osf3* | osf4* | osf5*) 8232 lt_prog_compiler_wl='-Wl,' 8233 # All OSF/1 code is PIC. 8234 lt_prog_compiler_static='-non_shared' 8235 ;; 8236 8237 rdos*) 8238 lt_prog_compiler_static='-non_shared' 8239 ;; 8240 8241 solaris*) 8242 lt_prog_compiler_pic='-KPIC' 8243 lt_prog_compiler_static='-Bstatic' 8244 case $cc_basename in 8245 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8246 lt_prog_compiler_wl='-Qoption ld ';; 8247 *) 8248 lt_prog_compiler_wl='-Wl,';; 8249 esac 8250 ;; 8251 8252 sunos4*) 8253 lt_prog_compiler_wl='-Qoption ld ' 8254 lt_prog_compiler_pic='-PIC' 8255 lt_prog_compiler_static='-Bstatic' 8256 ;; 8257 8258 sysv4 | sysv4.2uw2* | sysv4.3*) 8259 lt_prog_compiler_wl='-Wl,' 8260 lt_prog_compiler_pic='-KPIC' 8261 lt_prog_compiler_static='-Bstatic' 8262 ;; 8263 8264 sysv4*MP*) 8265 if test -d /usr/nec ;then 8266 lt_prog_compiler_pic='-Kconform_pic' 8267 lt_prog_compiler_static='-Bstatic' 8268 fi 8269 ;; 8270 8271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8272 lt_prog_compiler_wl='-Wl,' 8273 lt_prog_compiler_pic='-KPIC' 8274 lt_prog_compiler_static='-Bstatic' 8275 ;; 8276 8277 unicos*) 8278 lt_prog_compiler_wl='-Wl,' 8279 lt_prog_compiler_can_build_shared=no 8280 ;; 8281 8282 uts4*) 8283 lt_prog_compiler_pic='-pic' 8284 lt_prog_compiler_static='-Bstatic' 8285 ;; 8286 8287 *) 8288 lt_prog_compiler_can_build_shared=no 8289 ;; 8290 esac 8291 fi 8292 8293case $host_os in 8294 # For platforms which do not support PIC, -DPIC is meaningless: 8295 *djgpp*) 8296 lt_prog_compiler_pic= 8297 ;; 8298 *) 8299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8300 ;; 8301esac 8302 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8304$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8305if ${lt_cv_prog_compiler_pic+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8309fi 8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8311$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8312lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8313 8314# 8315# Check to make sure the PIC flag actually works. 8316# 8317if test -n "$lt_prog_compiler_pic"; then 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8320if ${lt_cv_prog_compiler_pic_works+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 lt_cv_prog_compiler_pic_works=no 8324 ac_outfile=conftest.$ac_objext 8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8327 # Insert the option either (1) after the last *FLAGS variable, or 8328 # (2) before a word containing "conftest.", or (3) at the end. 8329 # Note that $ac_compile itself does not contain backslashes and begins 8330 # with a dollar sign (not a hyphen), so the echo should work correctly. 8331 # The option is referenced via a variable to avoid confusing sed. 8332 lt_compile=`echo "$ac_compile" | $SED \ 8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8335 -e 's:$: $lt_compiler_flag:'` 8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8337 (eval "$lt_compile" 2>conftest.err) 8338 ac_status=$? 8339 cat conftest.err >&5 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8341 if (exit $ac_status) && test -s "$ac_outfile"; then 8342 # The compiler can only warn and ignore the option if not recognized 8343 # So say no if there are warnings other than the usual output. 8344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8347 lt_cv_prog_compiler_pic_works=yes 8348 fi 8349 fi 8350 $RM conftest* 8351 8352fi 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8354$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8355 8356if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8357 case $lt_prog_compiler_pic in 8358 "" | " "*) ;; 8359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8360 esac 8361else 8362 lt_prog_compiler_pic= 8363 lt_prog_compiler_can_build_shared=no 8364fi 8365 8366fi 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378# 8379# Check to make sure the static flag actually works. 8380# 8381wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8383$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8384if ${lt_cv_prog_compiler_static_works+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 lt_cv_prog_compiler_static_works=no 8388 save_LDFLAGS="$LDFLAGS" 8389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8390 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8392 # The linker can only warn and ignore the option if not recognized 8393 # So say no if there are warnings 8394 if test -s conftest.err; then 8395 # Append any errors to the config.log. 8396 cat conftest.err 1>&5 8397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8399 if diff conftest.exp conftest.er2 >/dev/null; then 8400 lt_cv_prog_compiler_static_works=yes 8401 fi 8402 else 8403 lt_cv_prog_compiler_static_works=yes 8404 fi 8405 fi 8406 $RM -r conftest* 8407 LDFLAGS="$save_LDFLAGS" 8408 8409fi 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8411$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8412 8413if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8414 : 8415else 8416 lt_prog_compiler_static= 8417fi 8418 8419 8420 8421 8422 8423 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8427if ${lt_cv_prog_compiler_c_o+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429else 8430 lt_cv_prog_compiler_c_o=no 8431 $RM -r conftest 2>/dev/null 8432 mkdir conftest 8433 cd conftest 8434 mkdir out 8435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8436 8437 lt_compiler_flag="-o out/conftest2.$ac_objext" 8438 # Insert the option either (1) after the last *FLAGS variable, or 8439 # (2) before a word containing "conftest.", or (3) at the end. 8440 # Note that $ac_compile itself does not contain backslashes and begins 8441 # with a dollar sign (not a hyphen), so the echo should work correctly. 8442 lt_compile=`echo "$ac_compile" | $SED \ 8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8445 -e 's:$: $lt_compiler_flag:'` 8446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8447 (eval "$lt_compile" 2>out/conftest.err) 8448 ac_status=$? 8449 cat out/conftest.err >&5 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8452 then 8453 # The compiler can only warn and ignore the option if not recognized 8454 # So say no if there are warnings 8455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8458 lt_cv_prog_compiler_c_o=yes 8459 fi 8460 fi 8461 chmod u+w . 2>&5 8462 $RM conftest* 8463 # SGI C++ compiler will create directory out/ii_files/ for 8464 # template instantiation 8465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8466 $RM out/* && rmdir out 8467 cd .. 8468 $RM -r conftest 8469 $RM conftest* 8470 8471fi 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8473$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8474 8475 8476 8477 8478 8479 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8481$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8482if ${lt_cv_prog_compiler_c_o+:} false; then : 8483 $as_echo_n "(cached) " >&6 8484else 8485 lt_cv_prog_compiler_c_o=no 8486 $RM -r conftest 2>/dev/null 8487 mkdir conftest 8488 cd conftest 8489 mkdir out 8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8491 8492 lt_compiler_flag="-o out/conftest2.$ac_objext" 8493 # Insert the option either (1) after the last *FLAGS variable, or 8494 # (2) before a word containing "conftest.", or (3) at the end. 8495 # Note that $ac_compile itself does not contain backslashes and begins 8496 # with a dollar sign (not a hyphen), so the echo should work correctly. 8497 lt_compile=`echo "$ac_compile" | $SED \ 8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8500 -e 's:$: $lt_compiler_flag:'` 8501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8502 (eval "$lt_compile" 2>out/conftest.err) 8503 ac_status=$? 8504 cat out/conftest.err >&5 8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8506 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8507 then 8508 # The compiler can only warn and ignore the option if not recognized 8509 # So say no if there are warnings 8510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8513 lt_cv_prog_compiler_c_o=yes 8514 fi 8515 fi 8516 chmod u+w . 2>&5 8517 $RM conftest* 8518 # SGI C++ compiler will create directory out/ii_files/ for 8519 # template instantiation 8520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8521 $RM out/* && rmdir out 8522 cd .. 8523 $RM -r conftest 8524 $RM conftest* 8525 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8528$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8529 8530 8531 8532 8533hard_links="nottested" 8534if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8535 # do not overwrite the value of need_locks provided by the user 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8537$as_echo_n "checking if we can lock with hard links... " >&6; } 8538 hard_links=yes 8539 $RM conftest* 8540 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8541 touch conftest.a 8542 ln conftest.a conftest.b 2>&5 || hard_links=no 8543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8545$as_echo "$hard_links" >&6; } 8546 if test "$hard_links" = no; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8548$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8549 need_locks=warn 8550 fi 8551else 8552 need_locks=no 8553fi 8554 8555 8556 8557 8558 8559 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8561$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8562 8563 runpath_var= 8564 allow_undefined_flag= 8565 always_export_symbols=no 8566 archive_cmds= 8567 archive_expsym_cmds= 8568 compiler_needs_object=no 8569 enable_shared_with_static_runtimes=no 8570 export_dynamic_flag_spec= 8571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8572 hardcode_automatic=no 8573 hardcode_direct=no 8574 hardcode_direct_absolute=no 8575 hardcode_libdir_flag_spec= 8576 hardcode_libdir_separator= 8577 hardcode_minus_L=no 8578 hardcode_shlibpath_var=unsupported 8579 inherit_rpath=no 8580 link_all_deplibs=unknown 8581 module_cmds= 8582 module_expsym_cmds= 8583 old_archive_from_new_cmds= 8584 old_archive_from_expsyms_cmds= 8585 thread_safe_flag_spec= 8586 whole_archive_flag_spec= 8587 # include_expsyms should be a list of space-separated symbols to be *always* 8588 # included in the symbol list 8589 include_expsyms= 8590 # exclude_expsyms can be an extended regexp of symbols to exclude 8591 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8593 # as well as any symbol that contains `d'. 8594 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8596 # platforms (ab)use it in PIC code, but their linkers get confused if 8597 # the symbol is explicitly referenced. Since portable code cannot 8598 # rely on this symbol name, it's probably fine to never include it in 8599 # preloaded symbol tables. 8600 # Exclude shared library initialization/finalization symbols. 8601 extract_expsyms_cmds= 8602 8603 case $host_os in 8604 cygwin* | mingw* | pw32* | cegcc*) 8605 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8606 # When not using gcc, we currently assume that we are using 8607 # Microsoft Visual C++. 8608 if test "$GCC" != yes; then 8609 with_gnu_ld=no 8610 fi 8611 ;; 8612 interix*) 8613 # we just hope/assume this is gcc and not c89 (= MSVC++) 8614 with_gnu_ld=yes 8615 ;; 8616 openbsd*) 8617 with_gnu_ld=no 8618 ;; 8619 linux* | k*bsd*-gnu | gnu*) 8620 link_all_deplibs=no 8621 ;; 8622 esac 8623 8624 ld_shlibs=yes 8625 8626 # On some targets, GNU ld is compatible enough with the native linker 8627 # that we're better off using the native interface for both. 8628 lt_use_gnu_ld_interface=no 8629 if test "$with_gnu_ld" = yes; then 8630 case $host_os in 8631 aix*) 8632 # The AIX port of GNU ld has always aspired to compatibility 8633 # with the native linker. However, as the warning in the GNU ld 8634 # block says, versions before 2.19.5* couldn't really create working 8635 # shared libraries, regardless of the interface used. 8636 case `$LD -v 2>&1` in 8637 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8638 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8639 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8640 *) 8641 lt_use_gnu_ld_interface=yes 8642 ;; 8643 esac 8644 ;; 8645 *) 8646 lt_use_gnu_ld_interface=yes 8647 ;; 8648 esac 8649 fi 8650 8651 if test "$lt_use_gnu_ld_interface" = yes; then 8652 # If archive_cmds runs LD, not CC, wlarc should be empty 8653 wlarc='${wl}' 8654 8655 # Set some defaults for GNU ld with shared library support. These 8656 # are reset later if shared libraries are not supported. Putting them 8657 # here allows them to be overridden if necessary. 8658 runpath_var=LD_RUN_PATH 8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8660 export_dynamic_flag_spec='${wl}--export-dynamic' 8661 # ancient GNU ld didn't support --whole-archive et. al. 8662 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8663 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8664 else 8665 whole_archive_flag_spec= 8666 fi 8667 supports_anon_versioning=no 8668 case `$LD -v 2>&1` in 8669 *GNU\ gold*) supports_anon_versioning=yes ;; 8670 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8673 *\ 2.11.*) ;; # other 2.11 versions 8674 *) supports_anon_versioning=yes ;; 8675 esac 8676 8677 # See if GNU ld supports shared libraries. 8678 case $host_os in 8679 aix[3-9]*) 8680 # On AIX/PPC, the GNU linker is very broken 8681 if test "$host_cpu" != ia64; then 8682 ld_shlibs=no 8683 cat <<_LT_EOF 1>&2 8684 8685*** Warning: the GNU linker, at least up to release 2.19, is reported 8686*** to be unable to reliably create shared libraries on AIX. 8687*** Therefore, libtool is disabling shared libraries support. If you 8688*** really care for shared libraries, you may want to install binutils 8689*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8690*** You will then need to restart the configuration process. 8691 8692_LT_EOF 8693 fi 8694 ;; 8695 8696 amigaos*) 8697 case $host_cpu in 8698 powerpc) 8699 # see comment about AmigaOS4 .so support 8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8701 archive_expsym_cmds='' 8702 ;; 8703 m68k) 8704 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)' 8705 hardcode_libdir_flag_spec='-L$libdir' 8706 hardcode_minus_L=yes 8707 ;; 8708 esac 8709 ;; 8710 8711 beos*) 8712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8713 allow_undefined_flag=unsupported 8714 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8715 # support --undefined. This deserves some investigation. FIXME 8716 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8717 else 8718 ld_shlibs=no 8719 fi 8720 ;; 8721 8722 cygwin* | mingw* | pw32* | cegcc*) 8723 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8724 # as there is no search path for DLLs. 8725 hardcode_libdir_flag_spec='-L$libdir' 8726 export_dynamic_flag_spec='${wl}--export-all-symbols' 8727 allow_undefined_flag=unsupported 8728 always_export_symbols=no 8729 enable_shared_with_static_runtimes=yes 8730 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' 8731 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8732 8733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8735 # If the export-symbols file already is a .def file (1st line 8736 # is EXPORTS), use it as is; otherwise, prepend... 8737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8738 cp $export_symbols $output_objdir/$soname.def; 8739 else 8740 echo EXPORTS > $output_objdir/$soname.def; 8741 cat $export_symbols >> $output_objdir/$soname.def; 8742 fi~ 8743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8744 else 8745 ld_shlibs=no 8746 fi 8747 ;; 8748 8749 haiku*) 8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8751 link_all_deplibs=yes 8752 ;; 8753 8754 interix[3-9]*) 8755 hardcode_direct=no 8756 hardcode_shlibpath_var=no 8757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8758 export_dynamic_flag_spec='${wl}-E' 8759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8760 # Instead, shared libraries are loaded at an image base (0x10000000 by 8761 # default) and relocated if they conflict, which is a slow very memory 8762 # consuming and fragmenting process. To avoid this, we pick a random, 8763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8764 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8766 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' 8767 ;; 8768 8769 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8770 tmp_diet=no 8771 if test "$host_os" = linux-dietlibc; then 8772 case $cc_basename in 8773 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8774 esac 8775 fi 8776 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8777 && test "$tmp_diet" = no 8778 then 8779 tmp_addflag=' $pic_flag' 8780 tmp_sharedflag='-shared' 8781 case $cc_basename,$host_cpu in 8782 pgcc*) # Portland Group C compiler 8783 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' 8784 tmp_addflag=' $pic_flag' 8785 ;; 8786 pgf77* | pgf90* | pgf95* | pgfortran*) 8787 # Portland Group f77 and f90 compilers 8788 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' 8789 tmp_addflag=' $pic_flag -Mnomain' ;; 8790 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8791 tmp_addflag=' -i_dynamic' ;; 8792 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8793 tmp_addflag=' -i_dynamic -nofor_main' ;; 8794 ifc* | ifort*) # Intel Fortran compiler 8795 tmp_addflag=' -nofor_main' ;; 8796 lf95*) # Lahey Fortran 8.1 8797 whole_archive_flag_spec= 8798 tmp_sharedflag='--shared' ;; 8799 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8800 tmp_sharedflag='-qmkshrobj' 8801 tmp_addflag= ;; 8802 nvcc*) # Cuda Compiler Driver 2.2 8803 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' 8804 compiler_needs_object=yes 8805 ;; 8806 esac 8807 case `$CC -V 2>&1 | sed 5q` in 8808 *Sun\ C*) # Sun C 5.9 8809 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' 8810 compiler_needs_object=yes 8811 tmp_sharedflag='-G' ;; 8812 *Sun\ F*) # Sun Fortran 8.3 8813 tmp_sharedflag='-G' ;; 8814 esac 8815 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8816 8817 if test "x$supports_anon_versioning" = xyes; then 8818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8820 echo "local: *; };" >> $output_objdir/$libname.ver~ 8821 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8822 fi 8823 8824 case $cc_basename in 8825 xlf* | bgf* | bgxlf* | mpixlf*) 8826 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8827 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8829 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8830 if test "x$supports_anon_versioning" = xyes; then 8831 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8832 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8833 echo "local: *; };" >> $output_objdir/$libname.ver~ 8834 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8835 fi 8836 ;; 8837 esac 8838 else 8839 ld_shlibs=no 8840 fi 8841 ;; 8842 8843 netbsd* | netbsdelf*-gnu) 8844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8845 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8846 wlarc= 8847 else 8848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8849 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8850 fi 8851 ;; 8852 8853 solaris*) 8854 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8855 ld_shlibs=no 8856 cat <<_LT_EOF 1>&2 8857 8858*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8859*** create shared libraries on Solaris systems. Therefore, libtool 8860*** is disabling shared libraries support. We urge you to upgrade GNU 8861*** binutils to release 2.9.1 or newer. Another option is to modify 8862*** your PATH or compiler configuration so that the native linker is 8863*** used, and then restart. 8864 8865_LT_EOF 8866 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8869 else 8870 ld_shlibs=no 8871 fi 8872 ;; 8873 8874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8875 case `$LD -v 2>&1` in 8876 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8877 ld_shlibs=no 8878 cat <<_LT_EOF 1>&2 8879 8880*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8881*** reliably create shared libraries on SCO systems. Therefore, libtool 8882*** is disabling shared libraries support. We urge you to upgrade GNU 8883*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8884*** your PATH or compiler configuration so that the native linker is 8885*** used, and then restart. 8886 8887_LT_EOF 8888 ;; 8889 *) 8890 # For security reasons, it is highly recommended that you always 8891 # use absolute paths for naming shared libraries, and exclude the 8892 # DT_RUNPATH tag from executables and libraries. But doing so 8893 # requires that you compile everything twice, which is a pain. 8894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8898 else 8899 ld_shlibs=no 8900 fi 8901 ;; 8902 esac 8903 ;; 8904 8905 sunos4*) 8906 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8907 wlarc= 8908 hardcode_direct=yes 8909 hardcode_shlibpath_var=no 8910 ;; 8911 8912 *) 8913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8916 else 8917 ld_shlibs=no 8918 fi 8919 ;; 8920 esac 8921 8922 if test "$ld_shlibs" = no; then 8923 runpath_var= 8924 hardcode_libdir_flag_spec= 8925 export_dynamic_flag_spec= 8926 whole_archive_flag_spec= 8927 fi 8928 else 8929 # PORTME fill in a description of your system's linker (not GNU ld) 8930 case $host_os in 8931 aix3*) 8932 allow_undefined_flag=unsupported 8933 always_export_symbols=yes 8934 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' 8935 # Note: this linker hardcodes the directories in LIBPATH if there 8936 # are no directories specified by -L. 8937 hardcode_minus_L=yes 8938 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8939 # Neither direct hardcoding nor static linking is supported with a 8940 # broken collect2. 8941 hardcode_direct=unsupported 8942 fi 8943 ;; 8944 8945 aix[4-9]*) 8946 if test "$host_cpu" = ia64; then 8947 # On IA64, the linker does run time linking by default, so we don't 8948 # have to do anything special. 8949 aix_use_runtimelinking=no 8950 exp_sym_flag='-Bexport' 8951 no_entry_flag="" 8952 else 8953 # If we're using GNU nm, then we don't want the "-C" option. 8954 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8955 # Also, AIX nm treats weak defined symbols like other global 8956 # defined symbols, whereas GNU nm marks them as "W". 8957 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8958 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8959 else 8960 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8961 fi 8962 aix_use_runtimelinking=no 8963 8964 # Test if we are trying to use run time linking or normal 8965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8966 # need to do runtime linking. 8967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8968 for ld_flag in $LDFLAGS; do 8969 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8970 aix_use_runtimelinking=yes 8971 break 8972 fi 8973 done 8974 ;; 8975 esac 8976 8977 exp_sym_flag='-bexport' 8978 no_entry_flag='-bnoentry' 8979 fi 8980 8981 # When large executables or shared objects are built, AIX ld can 8982 # have problems creating the table of contents. If linking a library 8983 # or program results in "error TOC overflow" add -mminimal-toc to 8984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8986 8987 archive_cmds='' 8988 hardcode_direct=yes 8989 hardcode_direct_absolute=yes 8990 hardcode_libdir_separator=':' 8991 link_all_deplibs=yes 8992 file_list_spec='${wl}-f,' 8993 8994 if test "$GCC" = yes; then 8995 case $host_os in aix4.[012]|aix4.[012].*) 8996 # We only want to do this on AIX 4.2 and lower, the check 8997 # below for broken collect2 doesn't work under 4.3+ 8998 collect2name=`${CC} -print-prog-name=collect2` 8999 if test -f "$collect2name" && 9000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9001 then 9002 # We have reworked collect2 9003 : 9004 else 9005 # We have old collect2 9006 hardcode_direct=unsupported 9007 # It fails to find uninstalled libraries when the uninstalled 9008 # path is not listed in the libpath. Setting hardcode_minus_L 9009 # to unsupported forces relinking 9010 hardcode_minus_L=yes 9011 hardcode_libdir_flag_spec='-L$libdir' 9012 hardcode_libdir_separator= 9013 fi 9014 ;; 9015 esac 9016 shared_flag='-shared' 9017 if test "$aix_use_runtimelinking" = yes; then 9018 shared_flag="$shared_flag "'${wl}-G' 9019 fi 9020 link_all_deplibs=no 9021 else 9022 # not using gcc 9023 if test "$host_cpu" = ia64; then 9024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9025 # chokes on -Wl,-G. The following line is correct: 9026 shared_flag='-G' 9027 else 9028 if test "$aix_use_runtimelinking" = yes; then 9029 shared_flag='${wl}-G' 9030 else 9031 shared_flag='${wl}-bM:SRE' 9032 fi 9033 fi 9034 fi 9035 9036 export_dynamic_flag_spec='${wl}-bexpall' 9037 # It seems that -bexpall does not export symbols beginning with 9038 # underscore (_), so it is better to generate a list of symbols to export. 9039 always_export_symbols=yes 9040 if test "$aix_use_runtimelinking" = yes; then 9041 # Warning - without using the other runtime loading flags (-brtl), 9042 # -berok will link without error, but may produce a broken library. 9043 allow_undefined_flag='-berok' 9044 # Determine the default libpath from the value encoded in an 9045 # empty executable. 9046 if test "${lt_cv_aix_libpath+set}" = set; then 9047 aix_libpath=$lt_cv_aix_libpath 9048else 9049 if ${lt_cv_aix_libpath_+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054 9055int 9056main () 9057{ 9058 9059 ; 9060 return 0; 9061} 9062_ACEOF 9063if ac_fn_c_try_link "$LINENO"; then : 9064 9065 lt_aix_libpath_sed=' 9066 /Import File Strings/,/^$/ { 9067 /^0/ { 9068 s/^0 *\([^ ]*\) *$/\1/ 9069 p 9070 } 9071 }' 9072 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9073 # Check for a 64-bit object if we didn't find anything. 9074 if test -z "$lt_cv_aix_libpath_"; then 9075 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9076 fi 9077fi 9078rm -f core conftest.err conftest.$ac_objext \ 9079 conftest$ac_exeext conftest.$ac_ext 9080 if test -z "$lt_cv_aix_libpath_"; then 9081 lt_cv_aix_libpath_="/usr/lib:/lib" 9082 fi 9083 9084fi 9085 9086 aix_libpath=$lt_cv_aix_libpath_ 9087fi 9088 9089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9090 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9091 else 9092 if test "$host_cpu" = ia64; then 9093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9094 allow_undefined_flag="-z nodefs" 9095 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" 9096 else 9097 # Determine the default libpath from the value encoded in an 9098 # empty executable. 9099 if test "${lt_cv_aix_libpath+set}" = set; then 9100 aix_libpath=$lt_cv_aix_libpath 9101else 9102 if ${lt_cv_aix_libpath_+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104else 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107 9108int 9109main () 9110{ 9111 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116if ac_fn_c_try_link "$LINENO"; then : 9117 9118 lt_aix_libpath_sed=' 9119 /Import File Strings/,/^$/ { 9120 /^0/ { 9121 s/^0 *\([^ ]*\) *$/\1/ 9122 p 9123 } 9124 }' 9125 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9126 # Check for a 64-bit object if we didn't find anything. 9127 if test -z "$lt_cv_aix_libpath_"; then 9128 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9129 fi 9130fi 9131rm -f core conftest.err conftest.$ac_objext \ 9132 conftest$ac_exeext conftest.$ac_ext 9133 if test -z "$lt_cv_aix_libpath_"; then 9134 lt_cv_aix_libpath_="/usr/lib:/lib" 9135 fi 9136 9137fi 9138 9139 aix_libpath=$lt_cv_aix_libpath_ 9140fi 9141 9142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9143 # Warning - without using the other run time loading flags, 9144 # -berok will link without error, but may produce a broken library. 9145 no_undefined_flag=' ${wl}-bernotok' 9146 allow_undefined_flag=' ${wl}-berok' 9147 if test "$with_gnu_ld" = yes; then 9148 # We only use this code for GNU lds that support --whole-archive. 9149 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9150 else 9151 # Exported symbols can be pulled into shared objects from archives 9152 whole_archive_flag_spec='$convenience' 9153 fi 9154 archive_cmds_need_lc=yes 9155 # This is similar to how AIX traditionally builds its shared libraries. 9156 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9157 fi 9158 fi 9159 ;; 9160 9161 amigaos*) 9162 case $host_cpu in 9163 powerpc) 9164 # see comment about AmigaOS4 .so support 9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9166 archive_expsym_cmds='' 9167 ;; 9168 m68k) 9169 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)' 9170 hardcode_libdir_flag_spec='-L$libdir' 9171 hardcode_minus_L=yes 9172 ;; 9173 esac 9174 ;; 9175 9176 bsdi[45]*) 9177 export_dynamic_flag_spec=-rdynamic 9178 ;; 9179 9180 cygwin* | mingw* | pw32* | cegcc*) 9181 # When not using gcc, we currently assume that we are using 9182 # Microsoft Visual C++. 9183 # hardcode_libdir_flag_spec is actually meaningless, as there is 9184 # no search path for DLLs. 9185 case $cc_basename in 9186 cl*) 9187 # Native MSVC 9188 hardcode_libdir_flag_spec=' ' 9189 allow_undefined_flag=unsupported 9190 always_export_symbols=yes 9191 file_list_spec='@' 9192 # Tell ltmain to make .lib files, not .a files. 9193 libext=lib 9194 # Tell ltmain to make .dll files, not .so files. 9195 shrext_cmds=".dll" 9196 # FIXME: Setting linknames here is a bad hack. 9197 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9198 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9199 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9200 else 9201 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9202 fi~ 9203 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9204 linknames=' 9205 # The linker will not automatically build a static lib if we build a DLL. 9206 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9207 enable_shared_with_static_runtimes=yes 9208 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9210 # Don't use ranlib 9211 old_postinstall_cmds='chmod 644 $oldlib' 9212 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9213 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9214 case $lt_outputfile in 9215 *.exe|*.EXE) ;; 9216 *) 9217 lt_outputfile="$lt_outputfile.exe" 9218 lt_tool_outputfile="$lt_tool_outputfile.exe" 9219 ;; 9220 esac~ 9221 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9222 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9223 $RM "$lt_outputfile.manifest"; 9224 fi' 9225 ;; 9226 *) 9227 # Assume MSVC wrapper 9228 hardcode_libdir_flag_spec=' ' 9229 allow_undefined_flag=unsupported 9230 # Tell ltmain to make .lib files, not .a files. 9231 libext=lib 9232 # Tell ltmain to make .dll files, not .so files. 9233 shrext_cmds=".dll" 9234 # FIXME: Setting linknames here is a bad hack. 9235 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9236 # The linker will automatically build a .lib file if we build a DLL. 9237 old_archive_from_new_cmds='true' 9238 # FIXME: Should let the user specify the lib program. 9239 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9240 enable_shared_with_static_runtimes=yes 9241 ;; 9242 esac 9243 ;; 9244 9245 darwin* | rhapsody*) 9246 9247 9248 archive_cmds_need_lc=no 9249 hardcode_direct=no 9250 hardcode_automatic=yes 9251 hardcode_shlibpath_var=unsupported 9252 if test "$lt_cv_ld_force_load" = "yes"; then 9253 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\"`' 9254 9255 else 9256 whole_archive_flag_spec='' 9257 fi 9258 link_all_deplibs=yes 9259 allow_undefined_flag="$_lt_dar_allow_undefined" 9260 case $cc_basename in 9261 ifort*) _lt_dar_can_shared=yes ;; 9262 *) _lt_dar_can_shared=$GCC ;; 9263 esac 9264 if test "$_lt_dar_can_shared" = "yes"; then 9265 output_verbose_link_cmd=func_echo_all 9266 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9267 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9268 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}" 9269 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}" 9270 9271 else 9272 ld_shlibs=no 9273 fi 9274 9275 ;; 9276 9277 dgux*) 9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9279 hardcode_libdir_flag_spec='-L$libdir' 9280 hardcode_shlibpath_var=no 9281 ;; 9282 9283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9284 # support. Future versions do this automatically, but an explicit c++rt0.o 9285 # does not break anything, and helps significantly (at the cost of a little 9286 # extra space). 9287 freebsd2.2*) 9288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9289 hardcode_libdir_flag_spec='-R$libdir' 9290 hardcode_direct=yes 9291 hardcode_shlibpath_var=no 9292 ;; 9293 9294 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9295 freebsd2.*) 9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9297 hardcode_direct=yes 9298 hardcode_minus_L=yes 9299 hardcode_shlibpath_var=no 9300 ;; 9301 9302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9303 freebsd* | dragonfly*) 9304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9305 hardcode_libdir_flag_spec='-R$libdir' 9306 hardcode_direct=yes 9307 hardcode_shlibpath_var=no 9308 ;; 9309 9310 hpux9*) 9311 if test "$GCC" = yes; then 9312 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9313 else 9314 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9315 fi 9316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9317 hardcode_libdir_separator=: 9318 hardcode_direct=yes 9319 9320 # hardcode_minus_L: Not really in the search PATH, 9321 # but as the default location of the library. 9322 hardcode_minus_L=yes 9323 export_dynamic_flag_spec='${wl}-E' 9324 ;; 9325 9326 hpux10*) 9327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9329 else 9330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9331 fi 9332 if test "$with_gnu_ld" = no; then 9333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9334 hardcode_libdir_separator=: 9335 hardcode_direct=yes 9336 hardcode_direct_absolute=yes 9337 export_dynamic_flag_spec='${wl}-E' 9338 # hardcode_minus_L: Not really in the search PATH, 9339 # but as the default location of the library. 9340 hardcode_minus_L=yes 9341 fi 9342 ;; 9343 9344 hpux11*) 9345 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9346 case $host_cpu in 9347 hppa*64*) 9348 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9349 ;; 9350 ia64*) 9351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9352 ;; 9353 *) 9354 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9355 ;; 9356 esac 9357 else 9358 case $host_cpu in 9359 hppa*64*) 9360 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9361 ;; 9362 ia64*) 9363 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9364 ;; 9365 *) 9366 9367 # Older versions of the 11.00 compiler do not understand -b yet 9368 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9370$as_echo_n "checking if $CC understands -b... " >&6; } 9371if ${lt_cv_prog_compiler__b+:} false; then : 9372 $as_echo_n "(cached) " >&6 9373else 9374 lt_cv_prog_compiler__b=no 9375 save_LDFLAGS="$LDFLAGS" 9376 LDFLAGS="$LDFLAGS -b" 9377 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9379 # The linker can only warn and ignore the option if not recognized 9380 # So say no if there are warnings 9381 if test -s conftest.err; then 9382 # Append any errors to the config.log. 9383 cat conftest.err 1>&5 9384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9386 if diff conftest.exp conftest.er2 >/dev/null; then 9387 lt_cv_prog_compiler__b=yes 9388 fi 9389 else 9390 lt_cv_prog_compiler__b=yes 9391 fi 9392 fi 9393 $RM -r conftest* 9394 LDFLAGS="$save_LDFLAGS" 9395 9396fi 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9398$as_echo "$lt_cv_prog_compiler__b" >&6; } 9399 9400if test x"$lt_cv_prog_compiler__b" = xyes; then 9401 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9402else 9403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9404fi 9405 9406 ;; 9407 esac 9408 fi 9409 if test "$with_gnu_ld" = no; then 9410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9411 hardcode_libdir_separator=: 9412 9413 case $host_cpu in 9414 hppa*64*|ia64*) 9415 hardcode_direct=no 9416 hardcode_shlibpath_var=no 9417 ;; 9418 *) 9419 hardcode_direct=yes 9420 hardcode_direct_absolute=yes 9421 export_dynamic_flag_spec='${wl}-E' 9422 9423 # hardcode_minus_L: Not really in the search PATH, 9424 # but as the default location of the library. 9425 hardcode_minus_L=yes 9426 ;; 9427 esac 9428 fi 9429 ;; 9430 9431 irix5* | irix6* | nonstopux*) 9432 if test "$GCC" = yes; then 9433 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' 9434 # Try to use the -exported_symbol ld option, if it does not 9435 # work, assume that -exports_file does not work either and 9436 # implicitly export all symbols. 9437 # This should be the same for all languages, so no per-tag cache variable. 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9439$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9440if ${lt_cv_irix_exported_symbol+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 save_LDFLAGS="$LDFLAGS" 9444 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446/* end confdefs.h. */ 9447int foo (void) { return 0; } 9448_ACEOF 9449if ac_fn_c_try_link "$LINENO"; then : 9450 lt_cv_irix_exported_symbol=yes 9451else 9452 lt_cv_irix_exported_symbol=no 9453fi 9454rm -f core conftest.err conftest.$ac_objext \ 9455 conftest$ac_exeext conftest.$ac_ext 9456 LDFLAGS="$save_LDFLAGS" 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9459$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9460 if test "$lt_cv_irix_exported_symbol" = yes; then 9461 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' 9462 fi 9463 else 9464 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' 9465 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' 9466 fi 9467 archive_cmds_need_lc='no' 9468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9469 hardcode_libdir_separator=: 9470 inherit_rpath=yes 9471 link_all_deplibs=yes 9472 ;; 9473 9474 netbsd* | netbsdelf*-gnu) 9475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9477 else 9478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9479 fi 9480 hardcode_libdir_flag_spec='-R$libdir' 9481 hardcode_direct=yes 9482 hardcode_shlibpath_var=no 9483 ;; 9484 9485 newsos6) 9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9487 hardcode_direct=yes 9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9489 hardcode_libdir_separator=: 9490 hardcode_shlibpath_var=no 9491 ;; 9492 9493 *nto* | *qnx*) 9494 ;; 9495 9496 openbsd*) 9497 if test -f /usr/libexec/ld.so; then 9498 hardcode_direct=yes 9499 hardcode_shlibpath_var=no 9500 hardcode_direct_absolute=yes 9501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9503 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9505 export_dynamic_flag_spec='${wl}-E' 9506 else 9507 case $host_os in 9508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9510 hardcode_libdir_flag_spec='-R$libdir' 9511 ;; 9512 *) 9513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9515 ;; 9516 esac 9517 fi 9518 else 9519 ld_shlibs=no 9520 fi 9521 ;; 9522 9523 os2*) 9524 hardcode_libdir_flag_spec='-L$libdir' 9525 hardcode_minus_L=yes 9526 allow_undefined_flag=unsupported 9527 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9528 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9529 ;; 9530 9531 osf3*) 9532 if test "$GCC" = yes; then 9533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9534 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' 9535 else 9536 allow_undefined_flag=' -expect_unresolved \*' 9537 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' 9538 fi 9539 archive_cmds_need_lc='no' 9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9541 hardcode_libdir_separator=: 9542 ;; 9543 9544 osf4* | osf5*) # as osf3* with the addition of -msym flag 9545 if test "$GCC" = yes; then 9546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9547 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' 9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9549 else 9550 allow_undefined_flag=' -expect_unresolved \*' 9551 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' 9552 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~ 9553 $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' 9554 9555 # Both c and cxx compiler support -rpath directly 9556 hardcode_libdir_flag_spec='-rpath $libdir' 9557 fi 9558 archive_cmds_need_lc='no' 9559 hardcode_libdir_separator=: 9560 ;; 9561 9562 solaris*) 9563 no_undefined_flag=' -z defs' 9564 if test "$GCC" = yes; then 9565 wlarc='${wl}' 9566 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9568 $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' 9569 else 9570 case `$CC -V 2>&1` in 9571 *"Compilers 5.0"*) 9572 wlarc='' 9573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9576 ;; 9577 *) 9578 wlarc='${wl}' 9579 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9582 ;; 9583 esac 9584 fi 9585 hardcode_libdir_flag_spec='-R$libdir' 9586 hardcode_shlibpath_var=no 9587 case $host_os in 9588 solaris2.[0-5] | solaris2.[0-5].*) ;; 9589 *) 9590 # The compiler driver will combine and reorder linker options, 9591 # but understands `-z linker_flag'. GCC discards it without `$wl', 9592 # but is careful enough not to reorder. 9593 # Supported since Solaris 2.6 (maybe 2.5.1?) 9594 if test "$GCC" = yes; then 9595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9596 else 9597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9598 fi 9599 ;; 9600 esac 9601 link_all_deplibs=yes 9602 ;; 9603 9604 sunos4*) 9605 if test "x$host_vendor" = xsequent; then 9606 # Use $CC to link under sequent, because it throws in some extra .o 9607 # files that make .init and .fini sections work. 9608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9609 else 9610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9611 fi 9612 hardcode_libdir_flag_spec='-L$libdir' 9613 hardcode_direct=yes 9614 hardcode_minus_L=yes 9615 hardcode_shlibpath_var=no 9616 ;; 9617 9618 sysv4) 9619 case $host_vendor in 9620 sni) 9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9622 hardcode_direct=yes # is this really true??? 9623 ;; 9624 siemens) 9625 ## LD is ld it makes a PLAMLIB 9626 ## CC just makes a GrossModule. 9627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9628 reload_cmds='$CC -r -o $output$reload_objs' 9629 hardcode_direct=no 9630 ;; 9631 motorola) 9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9634 ;; 9635 esac 9636 runpath_var='LD_RUN_PATH' 9637 hardcode_shlibpath_var=no 9638 ;; 9639 9640 sysv4.3*) 9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9642 hardcode_shlibpath_var=no 9643 export_dynamic_flag_spec='-Bexport' 9644 ;; 9645 9646 sysv4*MP*) 9647 if test -d /usr/nec; then 9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9649 hardcode_shlibpath_var=no 9650 runpath_var=LD_RUN_PATH 9651 hardcode_runpath_var=yes 9652 ld_shlibs=yes 9653 fi 9654 ;; 9655 9656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9657 no_undefined_flag='${wl}-z,text' 9658 archive_cmds_need_lc=no 9659 hardcode_shlibpath_var=no 9660 runpath_var='LD_RUN_PATH' 9661 9662 if test "$GCC" = yes; then 9663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9665 else 9666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9668 fi 9669 ;; 9670 9671 sysv5* | sco3.2v5* | sco5v6*) 9672 # Note: We can NOT use -z defs as we might desire, because we do not 9673 # link with -lc, and that would cause any symbols used from libc to 9674 # always be unresolved, which means just about no library would 9675 # ever link correctly. If we're not using GNU ld we use -z text 9676 # though, which does catch some bad symbols but isn't as heavy-handed 9677 # as -z defs. 9678 no_undefined_flag='${wl}-z,text' 9679 allow_undefined_flag='${wl}-z,nodefs' 9680 archive_cmds_need_lc=no 9681 hardcode_shlibpath_var=no 9682 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9683 hardcode_libdir_separator=':' 9684 link_all_deplibs=yes 9685 export_dynamic_flag_spec='${wl}-Bexport' 9686 runpath_var='LD_RUN_PATH' 9687 9688 if test "$GCC" = yes; then 9689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9691 else 9692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9694 fi 9695 ;; 9696 9697 uts4*) 9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9699 hardcode_libdir_flag_spec='-L$libdir' 9700 hardcode_shlibpath_var=no 9701 ;; 9702 9703 *) 9704 ld_shlibs=no 9705 ;; 9706 esac 9707 9708 if test x$host_vendor = xsni; then 9709 case $host in 9710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9711 export_dynamic_flag_spec='${wl}-Blargedynsym' 9712 ;; 9713 esac 9714 fi 9715 fi 9716 9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9718$as_echo "$ld_shlibs" >&6; } 9719test "$ld_shlibs" = no && can_build_shared=no 9720 9721with_gnu_ld=$with_gnu_ld 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737# 9738# Do we need to explicitly link libc? 9739# 9740case "x$archive_cmds_need_lc" in 9741x|xyes) 9742 # Assume -lc should be added 9743 archive_cmds_need_lc=yes 9744 9745 if test "$enable_shared" = yes && test "$GCC" = yes; then 9746 case $archive_cmds in 9747 *'~'*) 9748 # FIXME: we may have to deal with multi-command sequences. 9749 ;; 9750 '$CC '*) 9751 # Test whether the compiler implicitly links with -lc since on some 9752 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9753 # to ld, don't add -lc before -lgcc. 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9755$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9756if ${lt_cv_archive_cmds_need_lc+:} false; then : 9757 $as_echo_n "(cached) " >&6 9758else 9759 $RM conftest* 9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9761 9762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9763 (eval $ac_compile) 2>&5 9764 ac_status=$? 9765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9766 test $ac_status = 0; } 2>conftest.err; then 9767 soname=conftest 9768 lib=conftest 9769 libobjs=conftest.$ac_objext 9770 deplibs= 9771 wl=$lt_prog_compiler_wl 9772 pic_flag=$lt_prog_compiler_pic 9773 compiler_flags=-v 9774 linker_flags=-v 9775 verstring= 9776 output_objdir=. 9777 libname=conftest 9778 lt_save_allow_undefined_flag=$allow_undefined_flag 9779 allow_undefined_flag= 9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9782 ac_status=$? 9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9784 test $ac_status = 0; } 9785 then 9786 lt_cv_archive_cmds_need_lc=no 9787 else 9788 lt_cv_archive_cmds_need_lc=yes 9789 fi 9790 allow_undefined_flag=$lt_save_allow_undefined_flag 9791 else 9792 cat conftest.err 1>&5 9793 fi 9794 $RM conftest* 9795 9796fi 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9798$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9800 ;; 9801 esac 9802 fi 9803 ;; 9804esac 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9958$as_echo_n "checking dynamic linker characteristics... " >&6; } 9959 9960if test "$GCC" = yes; then 9961 case $host_os in 9962 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9963 *) lt_awk_arg="/^libraries:/" ;; 9964 esac 9965 case $host_os in 9966 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9967 *) lt_sed_strip_eq="s,=/,/,g" ;; 9968 esac 9969 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9970 case $lt_search_path_spec in 9971 *\;*) 9972 # if the path contains ";" then we assume it to be the separator 9973 # otherwise default to the standard path separator (i.e. ":") - it is 9974 # assumed that no part of a normal pathname contains ";" but that should 9975 # okay in the real world where ";" in dirpaths is itself problematic. 9976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9977 ;; 9978 *) 9979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9980 ;; 9981 esac 9982 # Ok, now we have the path, separated by spaces, we can step through it 9983 # and add multilib dir if necessary. 9984 lt_tmp_lt_search_path_spec= 9985 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9986 for lt_sys_path in $lt_search_path_spec; do 9987 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9989 else 9990 test -d "$lt_sys_path" && \ 9991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9992 fi 9993 done 9994 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9995BEGIN {RS=" "; FS="/|\n";} { 9996 lt_foo=""; 9997 lt_count=0; 9998 for (lt_i = NF; lt_i > 0; lt_i--) { 9999 if ($lt_i != "" && $lt_i != ".") { 10000 if ($lt_i == "..") { 10001 lt_count++; 10002 } else { 10003 if (lt_count == 0) { 10004 lt_foo="/" $lt_i lt_foo; 10005 } else { 10006 lt_count--; 10007 } 10008 } 10009 } 10010 } 10011 if (lt_foo != "") { lt_freq[lt_foo]++; } 10012 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10013}'` 10014 # AWK program above erroneously prepends '/' to C:/dos/paths 10015 # for these hosts. 10016 case $host_os in 10017 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10018 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10019 esac 10020 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10021else 10022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10023fi 10024library_names_spec= 10025libname_spec='lib$name' 10026soname_spec= 10027shrext_cmds=".so" 10028postinstall_cmds= 10029postuninstall_cmds= 10030finish_cmds= 10031finish_eval= 10032shlibpath_var= 10033shlibpath_overrides_runpath=unknown 10034version_type=none 10035dynamic_linker="$host_os ld.so" 10036sys_lib_dlsearch_path_spec="/lib /usr/lib" 10037need_lib_prefix=unknown 10038hardcode_into_libs=no 10039 10040# when you set need_version to no, make sure it does not cause -set_version 10041# flags to be left without arguments 10042need_version=unknown 10043 10044case $host_os in 10045aix3*) 10046 version_type=linux # correct to gnu/linux during the next big refactor 10047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10048 shlibpath_var=LIBPATH 10049 10050 # AIX 3 has no versioning support, so we append a major version to the name. 10051 soname_spec='${libname}${release}${shared_ext}$major' 10052 ;; 10053 10054aix[4-9]*) 10055 version_type=linux # correct to gnu/linux during the next big refactor 10056 need_lib_prefix=no 10057 need_version=no 10058 hardcode_into_libs=yes 10059 if test "$host_cpu" = ia64; then 10060 # AIX 5 supports IA64 10061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10062 shlibpath_var=LD_LIBRARY_PATH 10063 else 10064 # With GCC up to 2.95.x, collect2 would create an import file 10065 # for dependence libraries. The import file would start with 10066 # the line `#! .'. This would cause the generated library to 10067 # depend on `.', always an invalid library. This was fixed in 10068 # development snapshots of GCC prior to 3.0. 10069 case $host_os in 10070 aix4 | aix4.[01] | aix4.[01].*) 10071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10072 echo ' yes ' 10073 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10074 : 10075 else 10076 can_build_shared=no 10077 fi 10078 ;; 10079 esac 10080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10081 # soname into executable. Probably we can add versioning support to 10082 # collect2, so additional links can be useful in future. 10083 if test "$aix_use_runtimelinking" = yes; then 10084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10085 # instead of lib<name>.a to let people know that these are not 10086 # typical AIX shared libraries. 10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10088 else 10089 # We preserve .a as extension for shared libraries through AIX4.2 10090 # and later when we are not doing run time linking. 10091 library_names_spec='${libname}${release}.a $libname.a' 10092 soname_spec='${libname}${release}${shared_ext}$major' 10093 fi 10094 shlibpath_var=LIBPATH 10095 fi 10096 ;; 10097 10098amigaos*) 10099 case $host_cpu in 10100 powerpc) 10101 # Since July 2007 AmigaOS4 officially supports .so libraries. 10102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10104 ;; 10105 m68k) 10106 library_names_spec='$libname.ixlibrary $libname.a' 10107 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10108 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10109 ;; 10110 esac 10111 ;; 10112 10113beos*) 10114 library_names_spec='${libname}${shared_ext}' 10115 dynamic_linker="$host_os ld.so" 10116 shlibpath_var=LIBRARY_PATH 10117 ;; 10118 10119bsdi[45]*) 10120 version_type=linux # correct to gnu/linux during the next big refactor 10121 need_version=no 10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10123 soname_spec='${libname}${release}${shared_ext}$major' 10124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10125 shlibpath_var=LD_LIBRARY_PATH 10126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10128 # the default ld.so.conf also contains /usr/contrib/lib and 10129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10130 # libtool to hard-code these into programs 10131 ;; 10132 10133cygwin* | mingw* | pw32* | cegcc*) 10134 version_type=windows 10135 shrext_cmds=".dll" 10136 need_version=no 10137 need_lib_prefix=no 10138 10139 case $GCC,$cc_basename in 10140 yes,*) 10141 # gcc 10142 library_names_spec='$libname.dll.a' 10143 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10144 postinstall_cmds='base_file=`basename \${file}`~ 10145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10146 dldir=$destdir/`dirname \$dlpath`~ 10147 test -d \$dldir || mkdir -p \$dldir~ 10148 $install_prog $dir/$dlname \$dldir/$dlname~ 10149 chmod a+x \$dldir/$dlname~ 10150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10152 fi' 10153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10154 dlpath=$dir/\$dldll~ 10155 $RM \$dlpath' 10156 shlibpath_overrides_runpath=yes 10157 10158 case $host_os in 10159 cygwin*) 10160 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10162 10163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10164 ;; 10165 mingw* | cegcc*) 10166 # MinGW DLLs use traditional 'lib' prefix 10167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10168 ;; 10169 pw32*) 10170 # pw32 DLLs use 'pw' prefix rather than 'lib' 10171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10172 ;; 10173 esac 10174 dynamic_linker='Win32 ld.exe' 10175 ;; 10176 10177 *,cl*) 10178 # Native MSVC 10179 libname_spec='$name' 10180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10181 library_names_spec='${libname}.dll.lib' 10182 10183 case $build_os in 10184 mingw*) 10185 sys_lib_search_path_spec= 10186 lt_save_ifs=$IFS 10187 IFS=';' 10188 for lt_path in $LIB 10189 do 10190 IFS=$lt_save_ifs 10191 # Let DOS variable expansion print the short 8.3 style file name. 10192 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10193 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10194 done 10195 IFS=$lt_save_ifs 10196 # Convert to MSYS style. 10197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10198 ;; 10199 cygwin*) 10200 # Convert to unix form, then to dos form, then back to unix form 10201 # but this time dos style (no spaces!) so that the unix form looks 10202 # like /cygdrive/c/PROGRA~1:/cygdr... 10203 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10204 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10205 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10206 ;; 10207 *) 10208 sys_lib_search_path_spec="$LIB" 10209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10210 # It is most probably a Windows format PATH. 10211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10212 else 10213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10214 fi 10215 # FIXME: find the short name or the path components, as spaces are 10216 # common. (e.g. "Program Files" -> "PROGRA~1") 10217 ;; 10218 esac 10219 10220 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10221 postinstall_cmds='base_file=`basename \${file}`~ 10222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10223 dldir=$destdir/`dirname \$dlpath`~ 10224 test -d \$dldir || mkdir -p \$dldir~ 10225 $install_prog $dir/$dlname \$dldir/$dlname' 10226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10227 dlpath=$dir/\$dldll~ 10228 $RM \$dlpath' 10229 shlibpath_overrides_runpath=yes 10230 dynamic_linker='Win32 link.exe' 10231 ;; 10232 10233 *) 10234 # Assume MSVC wrapper 10235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10236 dynamic_linker='Win32 ld.exe' 10237 ;; 10238 esac 10239 # FIXME: first we should search . and the directory the executable is in 10240 shlibpath_var=PATH 10241 ;; 10242 10243darwin* | rhapsody*) 10244 dynamic_linker="$host_os dyld" 10245 version_type=darwin 10246 need_lib_prefix=no 10247 need_version=no 10248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10249 soname_spec='${libname}${release}${major}$shared_ext' 10250 shlibpath_overrides_runpath=yes 10251 shlibpath_var=DYLD_LIBRARY_PATH 10252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10253 10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10256 ;; 10257 10258dgux*) 10259 version_type=linux # correct to gnu/linux during the next big refactor 10260 need_lib_prefix=no 10261 need_version=no 10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10263 soname_spec='${libname}${release}${shared_ext}$major' 10264 shlibpath_var=LD_LIBRARY_PATH 10265 ;; 10266 10267freebsd* | dragonfly*) 10268 # DragonFly does not have aout. When/if they implement a new 10269 # versioning mechanism, adjust this. 10270 if test -x /usr/bin/objformat; then 10271 objformat=`/usr/bin/objformat` 10272 else 10273 case $host_os in 10274 freebsd[23].*) objformat=aout ;; 10275 *) objformat=elf ;; 10276 esac 10277 fi 10278 version_type=freebsd-$objformat 10279 case $version_type in 10280 freebsd-elf*) 10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10282 need_version=no 10283 need_lib_prefix=no 10284 ;; 10285 freebsd-*) 10286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10287 need_version=yes 10288 ;; 10289 esac 10290 shlibpath_var=LD_LIBRARY_PATH 10291 case $host_os in 10292 freebsd2.*) 10293 shlibpath_overrides_runpath=yes 10294 ;; 10295 freebsd3.[01]* | freebsdelf3.[01]*) 10296 shlibpath_overrides_runpath=yes 10297 hardcode_into_libs=yes 10298 ;; 10299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10301 shlibpath_overrides_runpath=no 10302 hardcode_into_libs=yes 10303 ;; 10304 *) # from 4.6 on, and DragonFly 10305 shlibpath_overrides_runpath=yes 10306 hardcode_into_libs=yes 10307 ;; 10308 esac 10309 ;; 10310 10311haiku*) 10312 version_type=linux # correct to gnu/linux during the next big refactor 10313 need_lib_prefix=no 10314 need_version=no 10315 dynamic_linker="$host_os runtime_loader" 10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10317 soname_spec='${libname}${release}${shared_ext}$major' 10318 shlibpath_var=LIBRARY_PATH 10319 shlibpath_overrides_runpath=yes 10320 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10321 hardcode_into_libs=yes 10322 ;; 10323 10324hpux9* | hpux10* | hpux11*) 10325 # Give a soname corresponding to the major version so that dld.sl refuses to 10326 # link against other versions. 10327 version_type=sunos 10328 need_lib_prefix=no 10329 need_version=no 10330 case $host_cpu in 10331 ia64*) 10332 shrext_cmds='.so' 10333 hardcode_into_libs=yes 10334 dynamic_linker="$host_os dld.so" 10335 shlibpath_var=LD_LIBRARY_PATH 10336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10338 soname_spec='${libname}${release}${shared_ext}$major' 10339 if test "X$HPUX_IA64_MODE" = X32; then 10340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10341 else 10342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10343 fi 10344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10345 ;; 10346 hppa*64*) 10347 shrext_cmds='.sl' 10348 hardcode_into_libs=yes 10349 dynamic_linker="$host_os dld.sl" 10350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10353 soname_spec='${libname}${release}${shared_ext}$major' 10354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10356 ;; 10357 *) 10358 shrext_cmds='.sl' 10359 dynamic_linker="$host_os dld.sl" 10360 shlibpath_var=SHLIB_PATH 10361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10363 soname_spec='${libname}${release}${shared_ext}$major' 10364 ;; 10365 esac 10366 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10367 postinstall_cmds='chmod 555 $lib' 10368 # or fails outright, so override atomically: 10369 install_override_mode=555 10370 ;; 10371 10372interix[3-9]*) 10373 version_type=linux # correct to gnu/linux during the next big refactor 10374 need_lib_prefix=no 10375 need_version=no 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10379 shlibpath_var=LD_LIBRARY_PATH 10380 shlibpath_overrides_runpath=no 10381 hardcode_into_libs=yes 10382 ;; 10383 10384irix5* | irix6* | nonstopux*) 10385 case $host_os in 10386 nonstopux*) version_type=nonstopux ;; 10387 *) 10388 if test "$lt_cv_prog_gnu_ld" = yes; then 10389 version_type=linux # correct to gnu/linux during the next big refactor 10390 else 10391 version_type=irix 10392 fi ;; 10393 esac 10394 need_lib_prefix=no 10395 need_version=no 10396 soname_spec='${libname}${release}${shared_ext}$major' 10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10398 case $host_os in 10399 irix5* | nonstopux*) 10400 libsuff= shlibsuff= 10401 ;; 10402 *) 10403 case $LD in # libtool.m4 will add one of these switches to LD 10404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10405 libsuff= shlibsuff= libmagic=32-bit;; 10406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10407 libsuff=32 shlibsuff=N32 libmagic=N32;; 10408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10409 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10410 *) libsuff= shlibsuff= libmagic=never-match;; 10411 esac 10412 ;; 10413 esac 10414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10415 shlibpath_overrides_runpath=no 10416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10418 hardcode_into_libs=yes 10419 ;; 10420 10421# No shared lib support for Linux oldld, aout, or coff. 10422linux*oldld* | linux*aout* | linux*coff*) 10423 dynamic_linker=no 10424 ;; 10425 10426# This must be glibc/ELF. 10427linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10428 version_type=linux # correct to gnu/linux during the next big refactor 10429 need_lib_prefix=no 10430 need_version=no 10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10432 soname_spec='${libname}${release}${shared_ext}$major' 10433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10434 shlibpath_var=LD_LIBRARY_PATH 10435 shlibpath_overrides_runpath=no 10436 10437 # Some binutils ld are patched to set DT_RUNPATH 10438 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10439 $as_echo_n "(cached) " >&6 10440else 10441 lt_cv_shlibpath_overrides_runpath=no 10442 save_LDFLAGS=$LDFLAGS 10443 save_libdir=$libdir 10444 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10445 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447/* end confdefs.h. */ 10448 10449int 10450main () 10451{ 10452 10453 ; 10454 return 0; 10455} 10456_ACEOF 10457if ac_fn_c_try_link "$LINENO"; then : 10458 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10459 lt_cv_shlibpath_overrides_runpath=yes 10460fi 10461fi 10462rm -f core conftest.err conftest.$ac_objext \ 10463 conftest$ac_exeext conftest.$ac_ext 10464 LDFLAGS=$save_LDFLAGS 10465 libdir=$save_libdir 10466 10467fi 10468 10469 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10470 10471 # This implies no fast_install, which is unacceptable. 10472 # Some rework will be needed to allow for fast_install 10473 # before this can be enabled. 10474 hardcode_into_libs=yes 10475 10476 # Append ld.so.conf contents to the search path 10477 if test -f /etc/ld.so.conf; then 10478 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' ' '` 10479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10480 fi 10481 10482 # We used to test for /lib/ld.so.1 and disable shared libraries on 10483 # powerpc, because MkLinux only supported shared libraries with the 10484 # GNU dynamic linker. Since this was broken with cross compilers, 10485 # most powerpc-linux boxes support dynamic linking these days and 10486 # people can always --disable-shared, the test was removed, and we 10487 # assume the GNU/Linux dynamic linker is in use. 10488 dynamic_linker='GNU/Linux ld.so' 10489 ;; 10490 10491netbsdelf*-gnu) 10492 version_type=linux 10493 need_lib_prefix=no 10494 need_version=no 10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10496 soname_spec='${libname}${release}${shared_ext}$major' 10497 shlibpath_var=LD_LIBRARY_PATH 10498 shlibpath_overrides_runpath=no 10499 hardcode_into_libs=yes 10500 dynamic_linker='NetBSD ld.elf_so' 10501 ;; 10502 10503netbsd*) 10504 version_type=sunos 10505 need_lib_prefix=no 10506 need_version=no 10507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10510 dynamic_linker='NetBSD (a.out) ld.so' 10511 else 10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10513 soname_spec='${libname}${release}${shared_ext}$major' 10514 dynamic_linker='NetBSD ld.elf_so' 10515 fi 10516 shlibpath_var=LD_LIBRARY_PATH 10517 shlibpath_overrides_runpath=yes 10518 hardcode_into_libs=yes 10519 ;; 10520 10521newsos6) 10522 version_type=linux # correct to gnu/linux during the next big refactor 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10524 shlibpath_var=LD_LIBRARY_PATH 10525 shlibpath_overrides_runpath=yes 10526 ;; 10527 10528*nto* | *qnx*) 10529 version_type=qnx 10530 need_lib_prefix=no 10531 need_version=no 10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10533 soname_spec='${libname}${release}${shared_ext}$major' 10534 shlibpath_var=LD_LIBRARY_PATH 10535 shlibpath_overrides_runpath=no 10536 hardcode_into_libs=yes 10537 dynamic_linker='ldqnx.so' 10538 ;; 10539 10540openbsd*) 10541 version_type=sunos 10542 sys_lib_dlsearch_path_spec="/usr/lib" 10543 need_lib_prefix=no 10544 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10545 case $host_os in 10546 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10547 *) need_version=no ;; 10548 esac 10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10551 shlibpath_var=LD_LIBRARY_PATH 10552 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10553 case $host_os in 10554 openbsd2.[89] | openbsd2.[89].*) 10555 shlibpath_overrides_runpath=no 10556 ;; 10557 *) 10558 shlibpath_overrides_runpath=yes 10559 ;; 10560 esac 10561 else 10562 shlibpath_overrides_runpath=yes 10563 fi 10564 ;; 10565 10566os2*) 10567 libname_spec='$name' 10568 shrext_cmds=".dll" 10569 need_lib_prefix=no 10570 library_names_spec='$libname${shared_ext} $libname.a' 10571 dynamic_linker='OS/2 ld.exe' 10572 shlibpath_var=LIBPATH 10573 ;; 10574 10575osf3* | osf4* | osf5*) 10576 version_type=osf 10577 need_lib_prefix=no 10578 need_version=no 10579 soname_spec='${libname}${release}${shared_ext}$major' 10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10581 shlibpath_var=LD_LIBRARY_PATH 10582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10584 ;; 10585 10586rdos*) 10587 dynamic_linker=no 10588 ;; 10589 10590solaris*) 10591 version_type=linux # correct to gnu/linux during the next big refactor 10592 need_lib_prefix=no 10593 need_version=no 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10595 soname_spec='${libname}${release}${shared_ext}$major' 10596 shlibpath_var=LD_LIBRARY_PATH 10597 shlibpath_overrides_runpath=yes 10598 hardcode_into_libs=yes 10599 # ldd complains unless libraries are executable 10600 postinstall_cmds='chmod +x $lib' 10601 ;; 10602 10603sunos4*) 10604 version_type=sunos 10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10606 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10607 shlibpath_var=LD_LIBRARY_PATH 10608 shlibpath_overrides_runpath=yes 10609 if test "$with_gnu_ld" = yes; then 10610 need_lib_prefix=no 10611 fi 10612 need_version=yes 10613 ;; 10614 10615sysv4 | sysv4.3*) 10616 version_type=linux # correct to gnu/linux during the next big refactor 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10618 soname_spec='${libname}${release}${shared_ext}$major' 10619 shlibpath_var=LD_LIBRARY_PATH 10620 case $host_vendor in 10621 sni) 10622 shlibpath_overrides_runpath=no 10623 need_lib_prefix=no 10624 runpath_var=LD_RUN_PATH 10625 ;; 10626 siemens) 10627 need_lib_prefix=no 10628 ;; 10629 motorola) 10630 need_lib_prefix=no 10631 need_version=no 10632 shlibpath_overrides_runpath=no 10633 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10634 ;; 10635 esac 10636 ;; 10637 10638sysv4*MP*) 10639 if test -d /usr/nec ;then 10640 version_type=linux # correct to gnu/linux during the next big refactor 10641 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10642 soname_spec='$libname${shared_ext}.$major' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 fi 10645 ;; 10646 10647sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10648 version_type=freebsd-elf 10649 need_lib_prefix=no 10650 need_version=no 10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10652 soname_spec='${libname}${release}${shared_ext}$major' 10653 shlibpath_var=LD_LIBRARY_PATH 10654 shlibpath_overrides_runpath=yes 10655 hardcode_into_libs=yes 10656 if test "$with_gnu_ld" = yes; then 10657 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10658 else 10659 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10660 case $host_os in 10661 sco3.2v5*) 10662 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10663 ;; 10664 esac 10665 fi 10666 sys_lib_dlsearch_path_spec='/usr/lib' 10667 ;; 10668 10669tpf*) 10670 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10671 version_type=linux # correct to gnu/linux during the next big refactor 10672 need_lib_prefix=no 10673 need_version=no 10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10675 shlibpath_var=LD_LIBRARY_PATH 10676 shlibpath_overrides_runpath=no 10677 hardcode_into_libs=yes 10678 ;; 10679 10680uts4*) 10681 version_type=linux # correct to gnu/linux during the next big refactor 10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10683 soname_spec='${libname}${release}${shared_ext}$major' 10684 shlibpath_var=LD_LIBRARY_PATH 10685 ;; 10686 10687*) 10688 dynamic_linker=no 10689 ;; 10690esac 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10692$as_echo "$dynamic_linker" >&6; } 10693test "$dynamic_linker" = no && can_build_shared=no 10694 10695variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10696if test "$GCC" = yes; then 10697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10698fi 10699 10700if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10701 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10702fi 10703if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10704 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10705fi 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10799$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10800hardcode_action= 10801if test -n "$hardcode_libdir_flag_spec" || 10802 test -n "$runpath_var" || 10803 test "X$hardcode_automatic" = "Xyes" ; then 10804 10805 # We can hardcode non-existent directories. 10806 if test "$hardcode_direct" != no && 10807 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10808 # have to relink, otherwise we might link with an installed library 10809 # when we should be linking with a yet-to-be-installed one 10810 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10811 test "$hardcode_minus_L" != no; then 10812 # Linking always hardcodes the temporary library directory. 10813 hardcode_action=relink 10814 else 10815 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10816 hardcode_action=immediate 10817 fi 10818else 10819 # We cannot hardcode anything, or else we can only hardcode existing 10820 # directories. 10821 hardcode_action=unsupported 10822fi 10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10824$as_echo "$hardcode_action" >&6; } 10825 10826if test "$hardcode_action" = relink || 10827 test "$inherit_rpath" = yes; then 10828 # Fast installation is not supported 10829 enable_fast_install=no 10830elif test "$shlibpath_overrides_runpath" = yes || 10831 test "$enable_shared" = no; then 10832 # Fast installation is not necessary 10833 enable_fast_install=needless 10834fi 10835 10836 10837 10838 10839 10840 10841 if test "x$enable_dlopen" != xyes; then 10842 enable_dlopen=unknown 10843 enable_dlopen_self=unknown 10844 enable_dlopen_self_static=unknown 10845else 10846 lt_cv_dlopen=no 10847 lt_cv_dlopen_libs= 10848 10849 case $host_os in 10850 beos*) 10851 lt_cv_dlopen="load_add_on" 10852 lt_cv_dlopen_libs= 10853 lt_cv_dlopen_self=yes 10854 ;; 10855 10856 mingw* | pw32* | cegcc*) 10857 lt_cv_dlopen="LoadLibrary" 10858 lt_cv_dlopen_libs= 10859 ;; 10860 10861 cygwin*) 10862 lt_cv_dlopen="dlopen" 10863 lt_cv_dlopen_libs= 10864 ;; 10865 10866 darwin*) 10867 # if libdl is installed we need to link against it 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10869$as_echo_n "checking for dlopen in -ldl... " >&6; } 10870if ${ac_cv_lib_dl_dlopen+:} false; then : 10871 $as_echo_n "(cached) " >&6 10872else 10873 ac_check_lib_save_LIBS=$LIBS 10874LIBS="-ldl $LIBS" 10875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10876/* end confdefs.h. */ 10877 10878/* Override any GCC internal prototype to avoid an error. 10879 Use char because int might match the return type of a GCC 10880 builtin and then its argument prototype would still apply. */ 10881#ifdef __cplusplus 10882extern "C" 10883#endif 10884char dlopen (); 10885int 10886main () 10887{ 10888return dlopen (); 10889 ; 10890 return 0; 10891} 10892_ACEOF 10893if ac_fn_c_try_link "$LINENO"; then : 10894 ac_cv_lib_dl_dlopen=yes 10895else 10896 ac_cv_lib_dl_dlopen=no 10897fi 10898rm -f core conftest.err conftest.$ac_objext \ 10899 conftest$ac_exeext conftest.$ac_ext 10900LIBS=$ac_check_lib_save_LIBS 10901fi 10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10903$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10904if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10906else 10907 10908 lt_cv_dlopen="dyld" 10909 lt_cv_dlopen_libs= 10910 lt_cv_dlopen_self=yes 10911 10912fi 10913 10914 ;; 10915 10916 *) 10917 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10918if test "x$ac_cv_func_shl_load" = xyes; then : 10919 lt_cv_dlopen="shl_load" 10920else 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10922$as_echo_n "checking for shl_load in -ldld... " >&6; } 10923if ${ac_cv_lib_dld_shl_load+:} false; then : 10924 $as_echo_n "(cached) " >&6 10925else 10926 ac_check_lib_save_LIBS=$LIBS 10927LIBS="-ldld $LIBS" 10928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929/* end confdefs.h. */ 10930 10931/* Override any GCC internal prototype to avoid an error. 10932 Use char because int might match the return type of a GCC 10933 builtin and then its argument prototype would still apply. */ 10934#ifdef __cplusplus 10935extern "C" 10936#endif 10937char shl_load (); 10938int 10939main () 10940{ 10941return shl_load (); 10942 ; 10943 return 0; 10944} 10945_ACEOF 10946if ac_fn_c_try_link "$LINENO"; then : 10947 ac_cv_lib_dld_shl_load=yes 10948else 10949 ac_cv_lib_dld_shl_load=no 10950fi 10951rm -f core conftest.err conftest.$ac_objext \ 10952 conftest$ac_exeext conftest.$ac_ext 10953LIBS=$ac_check_lib_save_LIBS 10954fi 10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10956$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10957if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10958 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10959else 10960 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10961if test "x$ac_cv_func_dlopen" = xyes; then : 10962 lt_cv_dlopen="dlopen" 10963else 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10965$as_echo_n "checking for dlopen in -ldl... " >&6; } 10966if ${ac_cv_lib_dl_dlopen+:} false; then : 10967 $as_echo_n "(cached) " >&6 10968else 10969 ac_check_lib_save_LIBS=$LIBS 10970LIBS="-ldl $LIBS" 10971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972/* end confdefs.h. */ 10973 10974/* Override any GCC internal prototype to avoid an error. 10975 Use char because int might match the return type of a GCC 10976 builtin and then its argument prototype would still apply. */ 10977#ifdef __cplusplus 10978extern "C" 10979#endif 10980char dlopen (); 10981int 10982main () 10983{ 10984return dlopen (); 10985 ; 10986 return 0; 10987} 10988_ACEOF 10989if ac_fn_c_try_link "$LINENO"; then : 10990 ac_cv_lib_dl_dlopen=yes 10991else 10992 ac_cv_lib_dl_dlopen=no 10993fi 10994rm -f core conftest.err conftest.$ac_objext \ 10995 conftest$ac_exeext conftest.$ac_ext 10996LIBS=$ac_check_lib_save_LIBS 10997fi 10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10999$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11000if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11002else 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11004$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11005if ${ac_cv_lib_svld_dlopen+:} false; then : 11006 $as_echo_n "(cached) " >&6 11007else 11008 ac_check_lib_save_LIBS=$LIBS 11009LIBS="-lsvld $LIBS" 11010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11011/* end confdefs.h. */ 11012 11013/* Override any GCC internal prototype to avoid an error. 11014 Use char because int might match the return type of a GCC 11015 builtin and then its argument prototype would still apply. */ 11016#ifdef __cplusplus 11017extern "C" 11018#endif 11019char dlopen (); 11020int 11021main () 11022{ 11023return dlopen (); 11024 ; 11025 return 0; 11026} 11027_ACEOF 11028if ac_fn_c_try_link "$LINENO"; then : 11029 ac_cv_lib_svld_dlopen=yes 11030else 11031 ac_cv_lib_svld_dlopen=no 11032fi 11033rm -f core conftest.err conftest.$ac_objext \ 11034 conftest$ac_exeext conftest.$ac_ext 11035LIBS=$ac_check_lib_save_LIBS 11036fi 11037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11038$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11039if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11041else 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11043$as_echo_n "checking for dld_link in -ldld... " >&6; } 11044if ${ac_cv_lib_dld_dld_link+:} false; then : 11045 $as_echo_n "(cached) " >&6 11046else 11047 ac_check_lib_save_LIBS=$LIBS 11048LIBS="-ldld $LIBS" 11049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11050/* end confdefs.h. */ 11051 11052/* Override any GCC internal prototype to avoid an error. 11053 Use char because int might match the return type of a GCC 11054 builtin and then its argument prototype would still apply. */ 11055#ifdef __cplusplus 11056extern "C" 11057#endif 11058char dld_link (); 11059int 11060main () 11061{ 11062return dld_link (); 11063 ; 11064 return 0; 11065} 11066_ACEOF 11067if ac_fn_c_try_link "$LINENO"; then : 11068 ac_cv_lib_dld_dld_link=yes 11069else 11070 ac_cv_lib_dld_dld_link=no 11071fi 11072rm -f core conftest.err conftest.$ac_objext \ 11073 conftest$ac_exeext conftest.$ac_ext 11074LIBS=$ac_check_lib_save_LIBS 11075fi 11076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11077$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11078if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11079 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11080fi 11081 11082 11083fi 11084 11085 11086fi 11087 11088 11089fi 11090 11091 11092fi 11093 11094 11095fi 11096 11097 ;; 11098 esac 11099 11100 if test "x$lt_cv_dlopen" != xno; then 11101 enable_dlopen=yes 11102 else 11103 enable_dlopen=no 11104 fi 11105 11106 case $lt_cv_dlopen in 11107 dlopen) 11108 save_CPPFLAGS="$CPPFLAGS" 11109 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11110 11111 save_LDFLAGS="$LDFLAGS" 11112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11113 11114 save_LIBS="$LIBS" 11115 LIBS="$lt_cv_dlopen_libs $LIBS" 11116 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11118$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11119if ${lt_cv_dlopen_self+:} false; then : 11120 $as_echo_n "(cached) " >&6 11121else 11122 if test "$cross_compiling" = yes; then : 11123 lt_cv_dlopen_self=cross 11124else 11125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11126 lt_status=$lt_dlunknown 11127 cat > conftest.$ac_ext <<_LT_EOF 11128#line $LINENO "configure" 11129#include "confdefs.h" 11130 11131#if HAVE_DLFCN_H 11132#include <dlfcn.h> 11133#endif 11134 11135#include <stdio.h> 11136 11137#ifdef RTLD_GLOBAL 11138# define LT_DLGLOBAL RTLD_GLOBAL 11139#else 11140# ifdef DL_GLOBAL 11141# define LT_DLGLOBAL DL_GLOBAL 11142# else 11143# define LT_DLGLOBAL 0 11144# endif 11145#endif 11146 11147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11148 find out it does not work in some platform. */ 11149#ifndef LT_DLLAZY_OR_NOW 11150# ifdef RTLD_LAZY 11151# define LT_DLLAZY_OR_NOW RTLD_LAZY 11152# else 11153# ifdef DL_LAZY 11154# define LT_DLLAZY_OR_NOW DL_LAZY 11155# else 11156# ifdef RTLD_NOW 11157# define LT_DLLAZY_OR_NOW RTLD_NOW 11158# else 11159# ifdef DL_NOW 11160# define LT_DLLAZY_OR_NOW DL_NOW 11161# else 11162# define LT_DLLAZY_OR_NOW 0 11163# endif 11164# endif 11165# endif 11166# endif 11167#endif 11168 11169/* When -fvisbility=hidden is used, assume the code has been annotated 11170 correspondingly for the symbols needed. */ 11171#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11172int fnord () __attribute__((visibility("default"))); 11173#endif 11174 11175int fnord () { return 42; } 11176int main () 11177{ 11178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11179 int status = $lt_dlunknown; 11180 11181 if (self) 11182 { 11183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11184 else 11185 { 11186 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11187 else puts (dlerror ()); 11188 } 11189 /* dlclose (self); */ 11190 } 11191 else 11192 puts (dlerror ()); 11193 11194 return status; 11195} 11196_LT_EOF 11197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11198 (eval $ac_link) 2>&5 11199 ac_status=$? 11200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11201 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11202 (./conftest; exit; ) >&5 2>/dev/null 11203 lt_status=$? 11204 case x$lt_status in 11205 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11206 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11207 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11208 esac 11209 else : 11210 # compilation failed 11211 lt_cv_dlopen_self=no 11212 fi 11213fi 11214rm -fr conftest* 11215 11216 11217fi 11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11219$as_echo "$lt_cv_dlopen_self" >&6; } 11220 11221 if test "x$lt_cv_dlopen_self" = xyes; then 11222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11224$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11225if ${lt_cv_dlopen_self_static+:} false; then : 11226 $as_echo_n "(cached) " >&6 11227else 11228 if test "$cross_compiling" = yes; then : 11229 lt_cv_dlopen_self_static=cross 11230else 11231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11232 lt_status=$lt_dlunknown 11233 cat > conftest.$ac_ext <<_LT_EOF 11234#line $LINENO "configure" 11235#include "confdefs.h" 11236 11237#if HAVE_DLFCN_H 11238#include <dlfcn.h> 11239#endif 11240 11241#include <stdio.h> 11242 11243#ifdef RTLD_GLOBAL 11244# define LT_DLGLOBAL RTLD_GLOBAL 11245#else 11246# ifdef DL_GLOBAL 11247# define LT_DLGLOBAL DL_GLOBAL 11248# else 11249# define LT_DLGLOBAL 0 11250# endif 11251#endif 11252 11253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11254 find out it does not work in some platform. */ 11255#ifndef LT_DLLAZY_OR_NOW 11256# ifdef RTLD_LAZY 11257# define LT_DLLAZY_OR_NOW RTLD_LAZY 11258# else 11259# ifdef DL_LAZY 11260# define LT_DLLAZY_OR_NOW DL_LAZY 11261# else 11262# ifdef RTLD_NOW 11263# define LT_DLLAZY_OR_NOW RTLD_NOW 11264# else 11265# ifdef DL_NOW 11266# define LT_DLLAZY_OR_NOW DL_NOW 11267# else 11268# define LT_DLLAZY_OR_NOW 0 11269# endif 11270# endif 11271# endif 11272# endif 11273#endif 11274 11275/* When -fvisbility=hidden is used, assume the code has been annotated 11276 correspondingly for the symbols needed. */ 11277#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11278int fnord () __attribute__((visibility("default"))); 11279#endif 11280 11281int fnord () { return 42; } 11282int main () 11283{ 11284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11285 int status = $lt_dlunknown; 11286 11287 if (self) 11288 { 11289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11290 else 11291 { 11292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11293 else puts (dlerror ()); 11294 } 11295 /* dlclose (self); */ 11296 } 11297 else 11298 puts (dlerror ()); 11299 11300 return status; 11301} 11302_LT_EOF 11303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11304 (eval $ac_link) 2>&5 11305 ac_status=$? 11306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11307 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11308 (./conftest; exit; ) >&5 2>/dev/null 11309 lt_status=$? 11310 case x$lt_status in 11311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11314 esac 11315 else : 11316 # compilation failed 11317 lt_cv_dlopen_self_static=no 11318 fi 11319fi 11320rm -fr conftest* 11321 11322 11323fi 11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11325$as_echo "$lt_cv_dlopen_self_static" >&6; } 11326 fi 11327 11328 CPPFLAGS="$save_CPPFLAGS" 11329 LDFLAGS="$save_LDFLAGS" 11330 LIBS="$save_LIBS" 11331 ;; 11332 esac 11333 11334 case $lt_cv_dlopen_self in 11335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11336 *) enable_dlopen_self=unknown ;; 11337 esac 11338 11339 case $lt_cv_dlopen_self_static in 11340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11341 *) enable_dlopen_self_static=unknown ;; 11342 esac 11343fi 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361striplib= 11362old_striplib= 11363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11364$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11365if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11367 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11369$as_echo "yes" >&6; } 11370else 11371# FIXME - insert some real tests, host_os isn't really good enough 11372 case $host_os in 11373 darwin*) 11374 if test -n "$STRIP" ; then 11375 striplib="$STRIP -x" 11376 old_striplib="$STRIP -S" 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11378$as_echo "yes" >&6; } 11379 else 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11381$as_echo "no" >&6; } 11382 fi 11383 ;; 11384 *) 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11386$as_echo "no" >&6; } 11387 ;; 11388 esac 11389fi 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 # Report which library types will actually be built 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11404$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11406$as_echo "$can_build_shared" >&6; } 11407 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11409$as_echo_n "checking whether to build shared libraries... " >&6; } 11410 test "$can_build_shared" = "no" && enable_shared=no 11411 11412 # On AIX, shared libraries and static libraries use the same namespace, and 11413 # are all built from PIC. 11414 case $host_os in 11415 aix3*) 11416 test "$enable_shared" = yes && enable_static=no 11417 if test -n "$RANLIB"; then 11418 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11419 postinstall_cmds='$RANLIB $lib' 11420 fi 11421 ;; 11422 11423 aix[4-9]*) 11424 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11425 test "$enable_shared" = yes && enable_static=no 11426 fi 11427 ;; 11428 esac 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11430$as_echo "$enable_shared" >&6; } 11431 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11433$as_echo_n "checking whether to build static libraries... " >&6; } 11434 # Make sure either enable_shared or enable_static is yes. 11435 test "$enable_shared" = yes || enable_static=yes 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11437$as_echo "$enable_static" >&6; } 11438 11439 11440 11441 11442fi 11443ac_ext=c 11444ac_cpp='$CPP $CPPFLAGS' 11445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11447ac_compiler_gnu=$ac_cv_c_compiler_gnu 11448 11449CC="$lt_save_CC" 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 ac_config_commands="$ac_config_commands libtool" 11466 11467 11468 11469 11470# Only expand once: 11471 11472 11473 11474# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11487$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11488if ${ac_cv_prog_cc_c99+:} false; then : 11489 $as_echo_n "(cached) " >&6 11490else 11491 ac_cv_prog_cc_c99=no 11492ac_save_CC=$CC 11493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11494/* end confdefs.h. */ 11495#include <stdarg.h> 11496#include <stdbool.h> 11497#include <stdlib.h> 11498#include <wchar.h> 11499#include <stdio.h> 11500 11501// Check varargs macros. These examples are taken from C99 6.10.3.5. 11502#define debug(...) fprintf (stderr, __VA_ARGS__) 11503#define showlist(...) puts (#__VA_ARGS__) 11504#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11505static void 11506test_varargs_macros (void) 11507{ 11508 int x = 1234; 11509 int y = 5678; 11510 debug ("Flag"); 11511 debug ("X = %d\n", x); 11512 showlist (The first, second, and third items.); 11513 report (x>y, "x is %d but y is %d", x, y); 11514} 11515 11516// Check long long types. 11517#define BIG64 18446744073709551615ull 11518#define BIG32 4294967295ul 11519#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11520#if !BIG_OK 11521 your preprocessor is broken; 11522#endif 11523#if BIG_OK 11524#else 11525 your preprocessor is broken; 11526#endif 11527static long long int bignum = -9223372036854775807LL; 11528static unsigned long long int ubignum = BIG64; 11529 11530struct incomplete_array 11531{ 11532 int datasize; 11533 double data[]; 11534}; 11535 11536struct named_init { 11537 int number; 11538 const wchar_t *name; 11539 double average; 11540}; 11541 11542typedef const char *ccp; 11543 11544static inline int 11545test_restrict (ccp restrict text) 11546{ 11547 // See if C++-style comments work. 11548 // Iterate through items via the restricted pointer. 11549 // Also check for declarations in for loops. 11550 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11551 continue; 11552 return 0; 11553} 11554 11555// Check varargs and va_copy. 11556static void 11557test_varargs (const char *format, ...) 11558{ 11559 va_list args; 11560 va_start (args, format); 11561 va_list args_copy; 11562 va_copy (args_copy, args); 11563 11564 const char *str; 11565 int number; 11566 float fnumber; 11567 11568 while (*format) 11569 { 11570 switch (*format++) 11571 { 11572 case 's': // string 11573 str = va_arg (args_copy, const char *); 11574 break; 11575 case 'd': // int 11576 number = va_arg (args_copy, int); 11577 break; 11578 case 'f': // float 11579 fnumber = va_arg (args_copy, double); 11580 break; 11581 default: 11582 break; 11583 } 11584 } 11585 va_end (args_copy); 11586 va_end (args); 11587} 11588 11589int 11590main () 11591{ 11592 11593 // Check bool. 11594 _Bool success = false; 11595 11596 // Check restrict. 11597 if (test_restrict ("String literal") == 0) 11598 success = true; 11599 char *restrict newvar = "Another string"; 11600 11601 // Check varargs. 11602 test_varargs ("s, d' f .", "string", 65, 34.234); 11603 test_varargs_macros (); 11604 11605 // Check flexible array members. 11606 struct incomplete_array *ia = 11607 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11608 ia->datasize = 10; 11609 for (int i = 0; i < ia->datasize; ++i) 11610 ia->data[i] = i * 1.234; 11611 11612 // Check named initializers. 11613 struct named_init ni = { 11614 .number = 34, 11615 .name = L"Test wide string", 11616 .average = 543.34343, 11617 }; 11618 11619 ni.number = 58; 11620 11621 int dynamic_array[ni.number]; 11622 dynamic_array[ni.number - 1] = 543; 11623 11624 // work around unused variable warnings 11625 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11626 || dynamic_array[ni.number - 1] != 543); 11627 11628 ; 11629 return 0; 11630} 11631_ACEOF 11632for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11633do 11634 CC="$ac_save_CC $ac_arg" 11635 if ac_fn_c_try_compile "$LINENO"; then : 11636 ac_cv_prog_cc_c99=$ac_arg 11637fi 11638rm -f core conftest.err conftest.$ac_objext 11639 test "x$ac_cv_prog_cc_c99" != "xno" && break 11640done 11641rm -f conftest.$ac_ext 11642CC=$ac_save_CC 11643 11644fi 11645# AC_CACHE_VAL 11646case "x$ac_cv_prog_cc_c99" in 11647 x) 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11649$as_echo "none needed" >&6; } ;; 11650 xno) 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11652$as_echo "unsupported" >&6; } ;; 11653 *) 11654 CC="$CC $ac_cv_prog_cc_c99" 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11656$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11657esac 11658if test "x$ac_cv_prog_cc_c99" != xno; then : 11659 11660fi 11661 11662 11663 11664 11665 11666 11667ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11668if test "x$ac_cv_have_decl___clang__" = xyes; then : 11669 CLANGCC="yes" 11670else 11671 CLANGCC="no" 11672fi 11673 11674ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11675if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11676 INTELCC="yes" 11677else 11678 INTELCC="no" 11679fi 11680 11681ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11682if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11683 SUNCC="yes" 11684else 11685 SUNCC="no" 11686fi 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11697 if test -n "$ac_tool_prefix"; then 11698 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11699set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11701$as_echo_n "checking for $ac_word... " >&6; } 11702if ${ac_cv_path_PKG_CONFIG+:} false; then : 11703 $as_echo_n "(cached) " >&6 11704else 11705 case $PKG_CONFIG in 11706 [\\/]* | ?:[\\/]*) 11707 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11708 ;; 11709 *) 11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11711for as_dir in $PATH 11712do 11713 IFS=$as_save_IFS 11714 test -z "$as_dir" && as_dir=. 11715 for ac_exec_ext in '' $ac_executable_extensions; do 11716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11717 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11719 break 2 11720 fi 11721done 11722 done 11723IFS=$as_save_IFS 11724 11725 ;; 11726esac 11727fi 11728PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11729if test -n "$PKG_CONFIG"; then 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11731$as_echo "$PKG_CONFIG" >&6; } 11732else 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11734$as_echo "no" >&6; } 11735fi 11736 11737 11738fi 11739if test -z "$ac_cv_path_PKG_CONFIG"; then 11740 ac_pt_PKG_CONFIG=$PKG_CONFIG 11741 # Extract the first word of "pkg-config", so it can be a program name with args. 11742set dummy pkg-config; ac_word=$2 11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11744$as_echo_n "checking for $ac_word... " >&6; } 11745if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11746 $as_echo_n "(cached) " >&6 11747else 11748 case $ac_pt_PKG_CONFIG in 11749 [\\/]* | ?:[\\/]*) 11750 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11751 ;; 11752 *) 11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11754for as_dir in $PATH 11755do 11756 IFS=$as_save_IFS 11757 test -z "$as_dir" && as_dir=. 11758 for ac_exec_ext in '' $ac_executable_extensions; do 11759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11760 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11762 break 2 11763 fi 11764done 11765 done 11766IFS=$as_save_IFS 11767 11768 ;; 11769esac 11770fi 11771ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11772if test -n "$ac_pt_PKG_CONFIG"; then 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11774$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11775else 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11777$as_echo "no" >&6; } 11778fi 11779 11780 if test "x$ac_pt_PKG_CONFIG" = x; then 11781 PKG_CONFIG="" 11782 else 11783 case $cross_compiling:$ac_tool_warned in 11784yes:) 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11787ac_tool_warned=yes ;; 11788esac 11789 PKG_CONFIG=$ac_pt_PKG_CONFIG 11790 fi 11791else 11792 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11793fi 11794 11795fi 11796if test -n "$PKG_CONFIG"; then 11797 _pkg_min_version=0.9.0 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11799$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11800 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11802$as_echo "yes" >&6; } 11803 else 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11805$as_echo "no" >&6; } 11806 PKG_CONFIG="" 11807 fi 11808fi 11809 11810 11811 11812 11813 11814# Check whether --enable-selective-werror was given. 11815if test "${enable_selective_werror+set}" = set; then : 11816 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11817else 11818 SELECTIVE_WERROR=yes 11819fi 11820 11821 11822 11823 11824 11825# -v is too short to test reliably with XORG_TESTSET_CFLAG 11826if test "x$SUNCC" = "xyes"; then 11827 BASE_CFLAGS="-v" 11828else 11829 BASE_CFLAGS="" 11830fi 11831 11832# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846xorg_testset_save_CFLAGS="$CFLAGS" 11847 11848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11853 $as_echo_n "(cached) " >&6 11854else 11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11856/* end confdefs.h. */ 11857int i; 11858_ACEOF 11859if ac_fn_c_try_compile "$LINENO"; then : 11860 xorg_cv_cc_flag_unknown_warning_option=yes 11861else 11862 xorg_cv_cc_flag_unknown_warning_option=no 11863fi 11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11865fi 11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11869 CFLAGS="$xorg_testset_save_CFLAGS" 11870fi 11871 11872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11875 fi 11876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11880 $as_echo_n "(cached) " >&6 11881else 11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11883/* end confdefs.h. */ 11884int i; 11885_ACEOF 11886if ac_fn_c_try_compile "$LINENO"; then : 11887 xorg_cv_cc_flag_unused_command_line_argument=yes 11888else 11889 xorg_cv_cc_flag_unused_command_line_argument=no 11890fi 11891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11892fi 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11896 CFLAGS="$xorg_testset_save_CFLAGS" 11897fi 11898 11899found="no" 11900 11901 if test $found = "no" ; then 11902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11904 fi 11905 11906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11908 fi 11909 11910 CFLAGS="$CFLAGS -Wall" 11911 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11913$as_echo_n "checking if $CC supports -Wall... " >&6; } 11914 cacheid=xorg_cv_cc_flag__Wall 11915 if eval \${$cacheid+:} false; then : 11916 $as_echo_n "(cached) " >&6 11917else 11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11919/* end confdefs.h. */ 11920int i; 11921int 11922main () 11923{ 11924 11925 ; 11926 return 0; 11927} 11928_ACEOF 11929if ac_fn_c_try_link "$LINENO"; then : 11930 eval $cacheid=yes 11931else 11932 eval $cacheid=no 11933fi 11934rm -f core conftest.err conftest.$ac_objext \ 11935 conftest$ac_exeext conftest.$ac_ext 11936fi 11937 11938 11939 CFLAGS="$xorg_testset_save_CFLAGS" 11940 11941 eval supported=\$$cacheid 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11943$as_echo "$supported" >&6; } 11944 if test "$supported" = "yes" ; then 11945 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11946 found="yes" 11947 fi 11948 fi 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964xorg_testset_save_CFLAGS="$CFLAGS" 11965 11966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11971 $as_echo_n "(cached) " >&6 11972else 11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11974/* end confdefs.h. */ 11975int i; 11976_ACEOF 11977if ac_fn_c_try_compile "$LINENO"; then : 11978 xorg_cv_cc_flag_unknown_warning_option=yes 11979else 11980 xorg_cv_cc_flag_unknown_warning_option=no 11981fi 11982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11983fi 11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11987 CFLAGS="$xorg_testset_save_CFLAGS" 11988fi 11989 11990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11993 fi 11994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11998 $as_echo_n "(cached) " >&6 11999else 12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12001/* end confdefs.h. */ 12002int i; 12003_ACEOF 12004if ac_fn_c_try_compile "$LINENO"; then : 12005 xorg_cv_cc_flag_unused_command_line_argument=yes 12006else 12007 xorg_cv_cc_flag_unused_command_line_argument=no 12008fi 12009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12010fi 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12014 CFLAGS="$xorg_testset_save_CFLAGS" 12015fi 12016 12017found="no" 12018 12019 if test $found = "no" ; then 12020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12022 fi 12023 12024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12026 fi 12027 12028 CFLAGS="$CFLAGS -Wpointer-arith" 12029 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12031$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12032 cacheid=xorg_cv_cc_flag__Wpointer_arith 12033 if eval \${$cacheid+:} false; then : 12034 $as_echo_n "(cached) " >&6 12035else 12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12037/* end confdefs.h. */ 12038int i; 12039int 12040main () 12041{ 12042 12043 ; 12044 return 0; 12045} 12046_ACEOF 12047if ac_fn_c_try_link "$LINENO"; then : 12048 eval $cacheid=yes 12049else 12050 eval $cacheid=no 12051fi 12052rm -f core conftest.err conftest.$ac_objext \ 12053 conftest$ac_exeext conftest.$ac_ext 12054fi 12055 12056 12057 CFLAGS="$xorg_testset_save_CFLAGS" 12058 12059 eval supported=\$$cacheid 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12061$as_echo "$supported" >&6; } 12062 if test "$supported" = "yes" ; then 12063 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12064 found="yes" 12065 fi 12066 fi 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082xorg_testset_save_CFLAGS="$CFLAGS" 12083 12084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12089 $as_echo_n "(cached) " >&6 12090else 12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12092/* end confdefs.h. */ 12093int i; 12094_ACEOF 12095if ac_fn_c_try_compile "$LINENO"; then : 12096 xorg_cv_cc_flag_unknown_warning_option=yes 12097else 12098 xorg_cv_cc_flag_unknown_warning_option=no 12099fi 12100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12101fi 12102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12105 CFLAGS="$xorg_testset_save_CFLAGS" 12106fi 12107 12108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12111 fi 12112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12116 $as_echo_n "(cached) " >&6 12117else 12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12119/* end confdefs.h. */ 12120int i; 12121_ACEOF 12122if ac_fn_c_try_compile "$LINENO"; then : 12123 xorg_cv_cc_flag_unused_command_line_argument=yes 12124else 12125 xorg_cv_cc_flag_unused_command_line_argument=no 12126fi 12127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12128fi 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12132 CFLAGS="$xorg_testset_save_CFLAGS" 12133fi 12134 12135found="no" 12136 12137 if test $found = "no" ; then 12138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12140 fi 12141 12142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12144 fi 12145 12146 CFLAGS="$CFLAGS -Wmissing-declarations" 12147 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12149$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12150 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12151 if eval \${$cacheid+:} false; then : 12152 $as_echo_n "(cached) " >&6 12153else 12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12155/* end confdefs.h. */ 12156int i; 12157int 12158main () 12159{ 12160 12161 ; 12162 return 0; 12163} 12164_ACEOF 12165if ac_fn_c_try_link "$LINENO"; then : 12166 eval $cacheid=yes 12167else 12168 eval $cacheid=no 12169fi 12170rm -f core conftest.err conftest.$ac_objext \ 12171 conftest$ac_exeext conftest.$ac_ext 12172fi 12173 12174 12175 CFLAGS="$xorg_testset_save_CFLAGS" 12176 12177 eval supported=\$$cacheid 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12179$as_echo "$supported" >&6; } 12180 if test "$supported" = "yes" ; then 12181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12182 found="yes" 12183 fi 12184 fi 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200xorg_testset_save_CFLAGS="$CFLAGS" 12201 12202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12207 $as_echo_n "(cached) " >&6 12208else 12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12210/* end confdefs.h. */ 12211int i; 12212_ACEOF 12213if ac_fn_c_try_compile "$LINENO"; then : 12214 xorg_cv_cc_flag_unknown_warning_option=yes 12215else 12216 xorg_cv_cc_flag_unknown_warning_option=no 12217fi 12218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12219fi 12220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12223 CFLAGS="$xorg_testset_save_CFLAGS" 12224fi 12225 12226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12229 fi 12230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12234 $as_echo_n "(cached) " >&6 12235else 12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12237/* end confdefs.h. */ 12238int i; 12239_ACEOF 12240if ac_fn_c_try_compile "$LINENO"; then : 12241 xorg_cv_cc_flag_unused_command_line_argument=yes 12242else 12243 xorg_cv_cc_flag_unused_command_line_argument=no 12244fi 12245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12246fi 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12250 CFLAGS="$xorg_testset_save_CFLAGS" 12251fi 12252 12253found="no" 12254 12255 if test $found = "no" ; then 12256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12258 fi 12259 12260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12262 fi 12263 12264 CFLAGS="$CFLAGS -Wformat=2" 12265 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12267$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12268 cacheid=xorg_cv_cc_flag__Wformat_2 12269 if eval \${$cacheid+:} false; then : 12270 $as_echo_n "(cached) " >&6 12271else 12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273/* end confdefs.h. */ 12274int i; 12275int 12276main () 12277{ 12278 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283if ac_fn_c_try_link "$LINENO"; then : 12284 eval $cacheid=yes 12285else 12286 eval $cacheid=no 12287fi 12288rm -f core conftest.err conftest.$ac_objext \ 12289 conftest$ac_exeext conftest.$ac_ext 12290fi 12291 12292 12293 CFLAGS="$xorg_testset_save_CFLAGS" 12294 12295 eval supported=\$$cacheid 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12297$as_echo "$supported" >&6; } 12298 if test "$supported" = "yes" ; then 12299 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12300 found="yes" 12301 fi 12302 fi 12303 12304 if test $found = "no" ; then 12305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12307 fi 12308 12309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12311 fi 12312 12313 CFLAGS="$CFLAGS -Wformat" 12314 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12316$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12317 cacheid=xorg_cv_cc_flag__Wformat 12318 if eval \${$cacheid+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320else 12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12322/* end confdefs.h. */ 12323int i; 12324int 12325main () 12326{ 12327 12328 ; 12329 return 0; 12330} 12331_ACEOF 12332if ac_fn_c_try_link "$LINENO"; then : 12333 eval $cacheid=yes 12334else 12335 eval $cacheid=no 12336fi 12337rm -f core conftest.err conftest.$ac_objext \ 12338 conftest$ac_exeext conftest.$ac_ext 12339fi 12340 12341 12342 CFLAGS="$xorg_testset_save_CFLAGS" 12343 12344 eval supported=\$$cacheid 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12346$as_echo "$supported" >&6; } 12347 if test "$supported" = "yes" ; then 12348 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12349 found="yes" 12350 fi 12351 fi 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369xorg_testset_save_CFLAGS="$CFLAGS" 12370 12371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377else 12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12379/* end confdefs.h. */ 12380int i; 12381_ACEOF 12382if ac_fn_c_try_compile "$LINENO"; then : 12383 xorg_cv_cc_flag_unknown_warning_option=yes 12384else 12385 xorg_cv_cc_flag_unknown_warning_option=no 12386fi 12387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12388fi 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12392 CFLAGS="$xorg_testset_save_CFLAGS" 12393fi 12394 12395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12398 fi 12399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404else 12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406/* end confdefs.h. */ 12407int i; 12408_ACEOF 12409if ac_fn_c_try_compile "$LINENO"; then : 12410 xorg_cv_cc_flag_unused_command_line_argument=yes 12411else 12412 xorg_cv_cc_flag_unused_command_line_argument=no 12413fi 12414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12415fi 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12419 CFLAGS="$xorg_testset_save_CFLAGS" 12420fi 12421 12422found="no" 12423 12424 if test $found = "no" ; then 12425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12427 fi 12428 12429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12431 fi 12432 12433 CFLAGS="$CFLAGS -Wstrict-prototypes" 12434 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12436$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12437 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12438 if eval \${$cacheid+:} false; then : 12439 $as_echo_n "(cached) " >&6 12440else 12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12442/* end confdefs.h. */ 12443int i; 12444int 12445main () 12446{ 12447 12448 ; 12449 return 0; 12450} 12451_ACEOF 12452if ac_fn_c_try_link "$LINENO"; then : 12453 eval $cacheid=yes 12454else 12455 eval $cacheid=no 12456fi 12457rm -f core conftest.err conftest.$ac_objext \ 12458 conftest$ac_exeext conftest.$ac_ext 12459fi 12460 12461 12462 CFLAGS="$xorg_testset_save_CFLAGS" 12463 12464 eval supported=\$$cacheid 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12466$as_echo "$supported" >&6; } 12467 if test "$supported" = "yes" ; then 12468 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12469 found="yes" 12470 fi 12471 fi 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487xorg_testset_save_CFLAGS="$CFLAGS" 12488 12489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12497/* end confdefs.h. */ 12498int i; 12499_ACEOF 12500if ac_fn_c_try_compile "$LINENO"; then : 12501 xorg_cv_cc_flag_unknown_warning_option=yes 12502else 12503 xorg_cv_cc_flag_unknown_warning_option=no 12504fi 12505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12506fi 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12510 CFLAGS="$xorg_testset_save_CFLAGS" 12511fi 12512 12513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12516 fi 12517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12521 $as_echo_n "(cached) " >&6 12522else 12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12524/* end confdefs.h. */ 12525int i; 12526_ACEOF 12527if ac_fn_c_try_compile "$LINENO"; then : 12528 xorg_cv_cc_flag_unused_command_line_argument=yes 12529else 12530 xorg_cv_cc_flag_unused_command_line_argument=no 12531fi 12532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12533fi 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12537 CFLAGS="$xorg_testset_save_CFLAGS" 12538fi 12539 12540found="no" 12541 12542 if test $found = "no" ; then 12543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12545 fi 12546 12547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12549 fi 12550 12551 CFLAGS="$CFLAGS -Wmissing-prototypes" 12552 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12554$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12555 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12556 if eval \${$cacheid+:} false; then : 12557 $as_echo_n "(cached) " >&6 12558else 12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12560/* end confdefs.h. */ 12561int i; 12562int 12563main () 12564{ 12565 12566 ; 12567 return 0; 12568} 12569_ACEOF 12570if ac_fn_c_try_link "$LINENO"; then : 12571 eval $cacheid=yes 12572else 12573 eval $cacheid=no 12574fi 12575rm -f core conftest.err conftest.$ac_objext \ 12576 conftest$ac_exeext conftest.$ac_ext 12577fi 12578 12579 12580 CFLAGS="$xorg_testset_save_CFLAGS" 12581 12582 eval supported=\$$cacheid 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12584$as_echo "$supported" >&6; } 12585 if test "$supported" = "yes" ; then 12586 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12587 found="yes" 12588 fi 12589 fi 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605xorg_testset_save_CFLAGS="$CFLAGS" 12606 12607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616int i; 12617_ACEOF 12618if ac_fn_c_try_compile "$LINENO"; then : 12619 xorg_cv_cc_flag_unknown_warning_option=yes 12620else 12621 xorg_cv_cc_flag_unknown_warning_option=no 12622fi 12623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12624fi 12625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12628 CFLAGS="$xorg_testset_save_CFLAGS" 12629fi 12630 12631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12634 fi 12635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12639 $as_echo_n "(cached) " >&6 12640else 12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12642/* end confdefs.h. */ 12643int i; 12644_ACEOF 12645if ac_fn_c_try_compile "$LINENO"; then : 12646 xorg_cv_cc_flag_unused_command_line_argument=yes 12647else 12648 xorg_cv_cc_flag_unused_command_line_argument=no 12649fi 12650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12651fi 12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12655 CFLAGS="$xorg_testset_save_CFLAGS" 12656fi 12657 12658found="no" 12659 12660 if test $found = "no" ; then 12661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12663 fi 12664 12665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12667 fi 12668 12669 CFLAGS="$CFLAGS -Wnested-externs" 12670 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12672$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12673 cacheid=xorg_cv_cc_flag__Wnested_externs 12674 if eval \${$cacheid+:} false; then : 12675 $as_echo_n "(cached) " >&6 12676else 12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12678/* end confdefs.h. */ 12679int i; 12680int 12681main () 12682{ 12683 12684 ; 12685 return 0; 12686} 12687_ACEOF 12688if ac_fn_c_try_link "$LINENO"; then : 12689 eval $cacheid=yes 12690else 12691 eval $cacheid=no 12692fi 12693rm -f core conftest.err conftest.$ac_objext \ 12694 conftest$ac_exeext conftest.$ac_ext 12695fi 12696 12697 12698 CFLAGS="$xorg_testset_save_CFLAGS" 12699 12700 eval supported=\$$cacheid 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12702$as_echo "$supported" >&6; } 12703 if test "$supported" = "yes" ; then 12704 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12705 found="yes" 12706 fi 12707 fi 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723xorg_testset_save_CFLAGS="$CFLAGS" 12724 12725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731else 12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12733/* end confdefs.h. */ 12734int i; 12735_ACEOF 12736if ac_fn_c_try_compile "$LINENO"; then : 12737 xorg_cv_cc_flag_unknown_warning_option=yes 12738else 12739 xorg_cv_cc_flag_unknown_warning_option=no 12740fi 12741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12742fi 12743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12746 CFLAGS="$xorg_testset_save_CFLAGS" 12747fi 12748 12749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12752 fi 12753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12757 $as_echo_n "(cached) " >&6 12758else 12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12760/* end confdefs.h. */ 12761int i; 12762_ACEOF 12763if ac_fn_c_try_compile "$LINENO"; then : 12764 xorg_cv_cc_flag_unused_command_line_argument=yes 12765else 12766 xorg_cv_cc_flag_unused_command_line_argument=no 12767fi 12768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12769fi 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12773 CFLAGS="$xorg_testset_save_CFLAGS" 12774fi 12775 12776found="no" 12777 12778 if test $found = "no" ; then 12779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12781 fi 12782 12783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12785 fi 12786 12787 CFLAGS="$CFLAGS -Wbad-function-cast" 12788 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12790$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12791 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12792 if eval \${$cacheid+:} false; then : 12793 $as_echo_n "(cached) " >&6 12794else 12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12796/* end confdefs.h. */ 12797int i; 12798int 12799main () 12800{ 12801 12802 ; 12803 return 0; 12804} 12805_ACEOF 12806if ac_fn_c_try_link "$LINENO"; then : 12807 eval $cacheid=yes 12808else 12809 eval $cacheid=no 12810fi 12811rm -f core conftest.err conftest.$ac_objext \ 12812 conftest$ac_exeext conftest.$ac_ext 12813fi 12814 12815 12816 CFLAGS="$xorg_testset_save_CFLAGS" 12817 12818 eval supported=\$$cacheid 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12820$as_echo "$supported" >&6; } 12821 if test "$supported" = "yes" ; then 12822 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12823 found="yes" 12824 fi 12825 fi 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841xorg_testset_save_CFLAGS="$CFLAGS" 12842 12843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12848 $as_echo_n "(cached) " >&6 12849else 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852int i; 12853_ACEOF 12854if ac_fn_c_try_compile "$LINENO"; then : 12855 xorg_cv_cc_flag_unknown_warning_option=yes 12856else 12857 xorg_cv_cc_flag_unknown_warning_option=no 12858fi 12859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12860fi 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12864 CFLAGS="$xorg_testset_save_CFLAGS" 12865fi 12866 12867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12870 fi 12871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879int i; 12880_ACEOF 12881if ac_fn_c_try_compile "$LINENO"; then : 12882 xorg_cv_cc_flag_unused_command_line_argument=yes 12883else 12884 xorg_cv_cc_flag_unused_command_line_argument=no 12885fi 12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12887fi 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12891 CFLAGS="$xorg_testset_save_CFLAGS" 12892fi 12893 12894found="no" 12895 12896 if test $found = "no" ; then 12897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12899 fi 12900 12901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12903 fi 12904 12905 CFLAGS="$CFLAGS -Wold-style-definition" 12906 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12908$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12909 cacheid=xorg_cv_cc_flag__Wold_style_definition 12910 if eval \${$cacheid+:} false; then : 12911 $as_echo_n "(cached) " >&6 12912else 12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12914/* end confdefs.h. */ 12915int i; 12916int 12917main () 12918{ 12919 12920 ; 12921 return 0; 12922} 12923_ACEOF 12924if ac_fn_c_try_link "$LINENO"; then : 12925 eval $cacheid=yes 12926else 12927 eval $cacheid=no 12928fi 12929rm -f core conftest.err conftest.$ac_objext \ 12930 conftest$ac_exeext conftest.$ac_ext 12931fi 12932 12933 12934 CFLAGS="$xorg_testset_save_CFLAGS" 12935 12936 eval supported=\$$cacheid 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12938$as_echo "$supported" >&6; } 12939 if test "$supported" = "yes" ; then 12940 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12941 found="yes" 12942 fi 12943 fi 12944 12945 if test $found = "no" ; then 12946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12948 fi 12949 12950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12952 fi 12953 12954 CFLAGS="$CFLAGS -fd" 12955 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 12957$as_echo_n "checking if $CC supports -fd... " >&6; } 12958 cacheid=xorg_cv_cc_flag__fd 12959 if eval \${$cacheid+:} false; then : 12960 $as_echo_n "(cached) " >&6 12961else 12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12963/* end confdefs.h. */ 12964int i; 12965int 12966main () 12967{ 12968 12969 ; 12970 return 0; 12971} 12972_ACEOF 12973if ac_fn_c_try_link "$LINENO"; then : 12974 eval $cacheid=yes 12975else 12976 eval $cacheid=no 12977fi 12978rm -f core conftest.err conftest.$ac_objext \ 12979 conftest$ac_exeext conftest.$ac_ext 12980fi 12981 12982 12983 CFLAGS="$xorg_testset_save_CFLAGS" 12984 12985 eval supported=\$$cacheid 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12987$as_echo "$supported" >&6; } 12988 if test "$supported" = "yes" ; then 12989 BASE_CFLAGS="$BASE_CFLAGS -fd" 12990 found="yes" 12991 fi 12992 fi 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008xorg_testset_save_CFLAGS="$CFLAGS" 13009 13010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13015 $as_echo_n "(cached) " >&6 13016else 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019int i; 13020_ACEOF 13021if ac_fn_c_try_compile "$LINENO"; then : 13022 xorg_cv_cc_flag_unknown_warning_option=yes 13023else 13024 xorg_cv_cc_flag_unknown_warning_option=no 13025fi 13026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13027fi 13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13031 CFLAGS="$xorg_testset_save_CFLAGS" 13032fi 13033 13034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13037 fi 13038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13042 $as_echo_n "(cached) " >&6 13043else 13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13045/* end confdefs.h. */ 13046int i; 13047_ACEOF 13048if ac_fn_c_try_compile "$LINENO"; then : 13049 xorg_cv_cc_flag_unused_command_line_argument=yes 13050else 13051 xorg_cv_cc_flag_unused_command_line_argument=no 13052fi 13053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13054fi 13055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13058 CFLAGS="$xorg_testset_save_CFLAGS" 13059fi 13060 13061found="no" 13062 13063 if test $found = "no" ; then 13064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13066 fi 13067 13068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13070 fi 13071 13072 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13073 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13075$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13076 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13077 if eval \${$cacheid+:} false; then : 13078 $as_echo_n "(cached) " >&6 13079else 13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13081/* end confdefs.h. */ 13082int i; 13083int 13084main () 13085{ 13086 13087 ; 13088 return 0; 13089} 13090_ACEOF 13091if ac_fn_c_try_link "$LINENO"; then : 13092 eval $cacheid=yes 13093else 13094 eval $cacheid=no 13095fi 13096rm -f core conftest.err conftest.$ac_objext \ 13097 conftest$ac_exeext conftest.$ac_ext 13098fi 13099 13100 13101 CFLAGS="$xorg_testset_save_CFLAGS" 13102 13103 eval supported=\$$cacheid 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13105$as_echo "$supported" >&6; } 13106 if test "$supported" = "yes" ; then 13107 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13108 found="yes" 13109 fi 13110 fi 13111 13112 13113 13114 13115 13116# This chunk adds additional warnings that could catch undesired effects. 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130xorg_testset_save_CFLAGS="$CFLAGS" 13131 13132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13137 $as_echo_n "(cached) " >&6 13138else 13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141int i; 13142_ACEOF 13143if ac_fn_c_try_compile "$LINENO"; then : 13144 xorg_cv_cc_flag_unknown_warning_option=yes 13145else 13146 xorg_cv_cc_flag_unknown_warning_option=no 13147fi 13148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13149fi 13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13153 CFLAGS="$xorg_testset_save_CFLAGS" 13154fi 13155 13156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13159 fi 13160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13164 $as_echo_n "(cached) " >&6 13165else 13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13167/* end confdefs.h. */ 13168int i; 13169_ACEOF 13170if ac_fn_c_try_compile "$LINENO"; then : 13171 xorg_cv_cc_flag_unused_command_line_argument=yes 13172else 13173 xorg_cv_cc_flag_unused_command_line_argument=no 13174fi 13175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13176fi 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13180 CFLAGS="$xorg_testset_save_CFLAGS" 13181fi 13182 13183found="no" 13184 13185 if test $found = "no" ; then 13186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13188 fi 13189 13190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13192 fi 13193 13194 CFLAGS="$CFLAGS -Wunused" 13195 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13197$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13198 cacheid=xorg_cv_cc_flag__Wunused 13199 if eval \${$cacheid+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13203/* end confdefs.h. */ 13204int i; 13205int 13206main () 13207{ 13208 13209 ; 13210 return 0; 13211} 13212_ACEOF 13213if ac_fn_c_try_link "$LINENO"; then : 13214 eval $cacheid=yes 13215else 13216 eval $cacheid=no 13217fi 13218rm -f core conftest.err conftest.$ac_objext \ 13219 conftest$ac_exeext conftest.$ac_ext 13220fi 13221 13222 13223 CFLAGS="$xorg_testset_save_CFLAGS" 13224 13225 eval supported=\$$cacheid 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13227$as_echo "$supported" >&6; } 13228 if test "$supported" = "yes" ; then 13229 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13230 found="yes" 13231 fi 13232 fi 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248xorg_testset_save_CFLAGS="$CFLAGS" 13249 13250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13255 $as_echo_n "(cached) " >&6 13256else 13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13258/* end confdefs.h. */ 13259int i; 13260_ACEOF 13261if ac_fn_c_try_compile "$LINENO"; then : 13262 xorg_cv_cc_flag_unknown_warning_option=yes 13263else 13264 xorg_cv_cc_flag_unknown_warning_option=no 13265fi 13266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13267fi 13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13271 CFLAGS="$xorg_testset_save_CFLAGS" 13272fi 13273 13274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13277 fi 13278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13282 $as_echo_n "(cached) " >&6 13283else 13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13285/* end confdefs.h. */ 13286int i; 13287_ACEOF 13288if ac_fn_c_try_compile "$LINENO"; then : 13289 xorg_cv_cc_flag_unused_command_line_argument=yes 13290else 13291 xorg_cv_cc_flag_unused_command_line_argument=no 13292fi 13293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13294fi 13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13298 CFLAGS="$xorg_testset_save_CFLAGS" 13299fi 13300 13301found="no" 13302 13303 if test $found = "no" ; then 13304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13306 fi 13307 13308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13310 fi 13311 13312 CFLAGS="$CFLAGS -Wuninitialized" 13313 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13315$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13316 cacheid=xorg_cv_cc_flag__Wuninitialized 13317 if eval \${$cacheid+:} false; then : 13318 $as_echo_n "(cached) " >&6 13319else 13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13321/* end confdefs.h. */ 13322int i; 13323int 13324main () 13325{ 13326 13327 ; 13328 return 0; 13329} 13330_ACEOF 13331if ac_fn_c_try_link "$LINENO"; then : 13332 eval $cacheid=yes 13333else 13334 eval $cacheid=no 13335fi 13336rm -f core conftest.err conftest.$ac_objext \ 13337 conftest$ac_exeext conftest.$ac_ext 13338fi 13339 13340 13341 CFLAGS="$xorg_testset_save_CFLAGS" 13342 13343 eval supported=\$$cacheid 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13345$as_echo "$supported" >&6; } 13346 if test "$supported" = "yes" ; then 13347 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13348 found="yes" 13349 fi 13350 fi 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366xorg_testset_save_CFLAGS="$CFLAGS" 13367 13368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13373 $as_echo_n "(cached) " >&6 13374else 13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13376/* end confdefs.h. */ 13377int i; 13378_ACEOF 13379if ac_fn_c_try_compile "$LINENO"; then : 13380 xorg_cv_cc_flag_unknown_warning_option=yes 13381else 13382 xorg_cv_cc_flag_unknown_warning_option=no 13383fi 13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13385fi 13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13389 CFLAGS="$xorg_testset_save_CFLAGS" 13390fi 13391 13392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13395 fi 13396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13400 $as_echo_n "(cached) " >&6 13401else 13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13403/* end confdefs.h. */ 13404int i; 13405_ACEOF 13406if ac_fn_c_try_compile "$LINENO"; then : 13407 xorg_cv_cc_flag_unused_command_line_argument=yes 13408else 13409 xorg_cv_cc_flag_unused_command_line_argument=no 13410fi 13411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13412fi 13413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13416 CFLAGS="$xorg_testset_save_CFLAGS" 13417fi 13418 13419found="no" 13420 13421 if test $found = "no" ; then 13422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13424 fi 13425 13426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13428 fi 13429 13430 CFLAGS="$CFLAGS -Wshadow" 13431 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13433$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13434 cacheid=xorg_cv_cc_flag__Wshadow 13435 if eval \${$cacheid+:} false; then : 13436 $as_echo_n "(cached) " >&6 13437else 13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13439/* end confdefs.h. */ 13440int i; 13441int 13442main () 13443{ 13444 13445 ; 13446 return 0; 13447} 13448_ACEOF 13449if ac_fn_c_try_link "$LINENO"; then : 13450 eval $cacheid=yes 13451else 13452 eval $cacheid=no 13453fi 13454rm -f core conftest.err conftest.$ac_objext \ 13455 conftest$ac_exeext conftest.$ac_ext 13456fi 13457 13458 13459 CFLAGS="$xorg_testset_save_CFLAGS" 13460 13461 eval supported=\$$cacheid 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13463$as_echo "$supported" >&6; } 13464 if test "$supported" = "yes" ; then 13465 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13466 found="yes" 13467 fi 13468 fi 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484xorg_testset_save_CFLAGS="$CFLAGS" 13485 13486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13491 $as_echo_n "(cached) " >&6 13492else 13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13494/* end confdefs.h. */ 13495int i; 13496_ACEOF 13497if ac_fn_c_try_compile "$LINENO"; then : 13498 xorg_cv_cc_flag_unknown_warning_option=yes 13499else 13500 xorg_cv_cc_flag_unknown_warning_option=no 13501fi 13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13503fi 13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13507 CFLAGS="$xorg_testset_save_CFLAGS" 13508fi 13509 13510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13513 fi 13514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13518 $as_echo_n "(cached) " >&6 13519else 13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13521/* end confdefs.h. */ 13522int i; 13523_ACEOF 13524if ac_fn_c_try_compile "$LINENO"; then : 13525 xorg_cv_cc_flag_unused_command_line_argument=yes 13526else 13527 xorg_cv_cc_flag_unused_command_line_argument=no 13528fi 13529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13530fi 13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13534 CFLAGS="$xorg_testset_save_CFLAGS" 13535fi 13536 13537found="no" 13538 13539 if test $found = "no" ; then 13540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13542 fi 13543 13544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13546 fi 13547 13548 CFLAGS="$CFLAGS -Wmissing-noreturn" 13549 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13551$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13552 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13553 if eval \${$cacheid+:} false; then : 13554 $as_echo_n "(cached) " >&6 13555else 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558int i; 13559int 13560main () 13561{ 13562 13563 ; 13564 return 0; 13565} 13566_ACEOF 13567if ac_fn_c_try_link "$LINENO"; then : 13568 eval $cacheid=yes 13569else 13570 eval $cacheid=no 13571fi 13572rm -f core conftest.err conftest.$ac_objext \ 13573 conftest$ac_exeext conftest.$ac_ext 13574fi 13575 13576 13577 CFLAGS="$xorg_testset_save_CFLAGS" 13578 13579 eval supported=\$$cacheid 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13581$as_echo "$supported" >&6; } 13582 if test "$supported" = "yes" ; then 13583 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13584 found="yes" 13585 fi 13586 fi 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602xorg_testset_save_CFLAGS="$CFLAGS" 13603 13604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13609 $as_echo_n "(cached) " >&6 13610else 13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13612/* end confdefs.h. */ 13613int i; 13614_ACEOF 13615if ac_fn_c_try_compile "$LINENO"; then : 13616 xorg_cv_cc_flag_unknown_warning_option=yes 13617else 13618 xorg_cv_cc_flag_unknown_warning_option=no 13619fi 13620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13621fi 13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13625 CFLAGS="$xorg_testset_save_CFLAGS" 13626fi 13627 13628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13631 fi 13632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13636 $as_echo_n "(cached) " >&6 13637else 13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13639/* end confdefs.h. */ 13640int i; 13641_ACEOF 13642if ac_fn_c_try_compile "$LINENO"; then : 13643 xorg_cv_cc_flag_unused_command_line_argument=yes 13644else 13645 xorg_cv_cc_flag_unused_command_line_argument=no 13646fi 13647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13648fi 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13652 CFLAGS="$xorg_testset_save_CFLAGS" 13653fi 13654 13655found="no" 13656 13657 if test $found = "no" ; then 13658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13660 fi 13661 13662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13664 fi 13665 13666 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13667 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13669$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13670 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13671 if eval \${$cacheid+:} false; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13675/* end confdefs.h. */ 13676int i; 13677int 13678main () 13679{ 13680 13681 ; 13682 return 0; 13683} 13684_ACEOF 13685if ac_fn_c_try_link "$LINENO"; then : 13686 eval $cacheid=yes 13687else 13688 eval $cacheid=no 13689fi 13690rm -f core conftest.err conftest.$ac_objext \ 13691 conftest$ac_exeext conftest.$ac_ext 13692fi 13693 13694 13695 CFLAGS="$xorg_testset_save_CFLAGS" 13696 13697 eval supported=\$$cacheid 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13699$as_echo "$supported" >&6; } 13700 if test "$supported" = "yes" ; then 13701 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13702 found="yes" 13703 fi 13704 fi 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720xorg_testset_save_CFLAGS="$CFLAGS" 13721 13722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13727 $as_echo_n "(cached) " >&6 13728else 13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13730/* end confdefs.h. */ 13731int i; 13732_ACEOF 13733if ac_fn_c_try_compile "$LINENO"; then : 13734 xorg_cv_cc_flag_unknown_warning_option=yes 13735else 13736 xorg_cv_cc_flag_unknown_warning_option=no 13737fi 13738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13739fi 13740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13743 CFLAGS="$xorg_testset_save_CFLAGS" 13744fi 13745 13746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13749 fi 13750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13754 $as_echo_n "(cached) " >&6 13755else 13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13757/* end confdefs.h. */ 13758int i; 13759_ACEOF 13760if ac_fn_c_try_compile "$LINENO"; then : 13761 xorg_cv_cc_flag_unused_command_line_argument=yes 13762else 13763 xorg_cv_cc_flag_unused_command_line_argument=no 13764fi 13765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13766fi 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13770 CFLAGS="$xorg_testset_save_CFLAGS" 13771fi 13772 13773found="no" 13774 13775 if test $found = "no" ; then 13776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13778 fi 13779 13780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13782 fi 13783 13784 CFLAGS="$CFLAGS -Wredundant-decls" 13785 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13787$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13788 cacheid=xorg_cv_cc_flag__Wredundant_decls 13789 if eval \${$cacheid+:} false; then : 13790 $as_echo_n "(cached) " >&6 13791else 13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13793/* end confdefs.h. */ 13794int i; 13795int 13796main () 13797{ 13798 13799 ; 13800 return 0; 13801} 13802_ACEOF 13803if ac_fn_c_try_link "$LINENO"; then : 13804 eval $cacheid=yes 13805else 13806 eval $cacheid=no 13807fi 13808rm -f core conftest.err conftest.$ac_objext \ 13809 conftest$ac_exeext conftest.$ac_ext 13810fi 13811 13812 13813 CFLAGS="$xorg_testset_save_CFLAGS" 13814 13815 eval supported=\$$cacheid 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13817$as_echo "$supported" >&6; } 13818 if test "$supported" = "yes" ; then 13819 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13820 found="yes" 13821 fi 13822 fi 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838xorg_testset_save_CFLAGS="$CFLAGS" 13839 13840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13845 $as_echo_n "(cached) " >&6 13846else 13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13848/* end confdefs.h. */ 13849int i; 13850_ACEOF 13851if ac_fn_c_try_compile "$LINENO"; then : 13852 xorg_cv_cc_flag_unknown_warning_option=yes 13853else 13854 xorg_cv_cc_flag_unknown_warning_option=no 13855fi 13856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13857fi 13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13861 CFLAGS="$xorg_testset_save_CFLAGS" 13862fi 13863 13864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13867 fi 13868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13872 $as_echo_n "(cached) " >&6 13873else 13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875/* end confdefs.h. */ 13876int i; 13877_ACEOF 13878if ac_fn_c_try_compile "$LINENO"; then : 13879 xorg_cv_cc_flag_unused_command_line_argument=yes 13880else 13881 xorg_cv_cc_flag_unused_command_line_argument=no 13882fi 13883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13884fi 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13888 CFLAGS="$xorg_testset_save_CFLAGS" 13889fi 13890 13891found="no" 13892 13893 if test $found = "no" ; then 13894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13896 fi 13897 13898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13900 fi 13901 13902 CFLAGS="$CFLAGS -Wlogical-op" 13903 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 13905$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 13906 cacheid=xorg_cv_cc_flag__Wlogical_op 13907 if eval \${$cacheid+:} false; then : 13908 $as_echo_n "(cached) " >&6 13909else 13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13911/* end confdefs.h. */ 13912int i; 13913int 13914main () 13915{ 13916 13917 ; 13918 return 0; 13919} 13920_ACEOF 13921if ac_fn_c_try_link "$LINENO"; then : 13922 eval $cacheid=yes 13923else 13924 eval $cacheid=no 13925fi 13926rm -f core conftest.err conftest.$ac_objext \ 13927 conftest$ac_exeext conftest.$ac_ext 13928fi 13929 13930 13931 CFLAGS="$xorg_testset_save_CFLAGS" 13932 13933 eval supported=\$$cacheid 13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13935$as_echo "$supported" >&6; } 13936 if test "$supported" = "yes" ; then 13937 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 13938 found="yes" 13939 fi 13940 fi 13941 13942 13943 13944# These are currently disabled because they are noisy. They will be enabled 13945# in the future once the codebase is sufficiently modernized to silence 13946# them. For now, I don't want them to drown out the other warnings. 13947# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13948# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13949# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 13950 13951# Turn some warnings into errors, so we don't accidently get successful builds 13952# when there are problems that should be fixed. 13953 13954if test "x$SELECTIVE_WERROR" = "xyes" ; then 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968xorg_testset_save_CFLAGS="$CFLAGS" 13969 13970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13975 $as_echo_n "(cached) " >&6 13976else 13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13978/* end confdefs.h. */ 13979int i; 13980_ACEOF 13981if ac_fn_c_try_compile "$LINENO"; then : 13982 xorg_cv_cc_flag_unknown_warning_option=yes 13983else 13984 xorg_cv_cc_flag_unknown_warning_option=no 13985fi 13986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13987fi 13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13991 CFLAGS="$xorg_testset_save_CFLAGS" 13992fi 13993 13994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13997 fi 13998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14002 $as_echo_n "(cached) " >&6 14003else 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14005/* end confdefs.h. */ 14006int i; 14007_ACEOF 14008if ac_fn_c_try_compile "$LINENO"; then : 14009 xorg_cv_cc_flag_unused_command_line_argument=yes 14010else 14011 xorg_cv_cc_flag_unused_command_line_argument=no 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14014fi 14015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14018 CFLAGS="$xorg_testset_save_CFLAGS" 14019fi 14020 14021found="no" 14022 14023 if test $found = "no" ; then 14024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14026 fi 14027 14028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14030 fi 14031 14032 CFLAGS="$CFLAGS -Werror=implicit" 14033 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14035$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14036 cacheid=xorg_cv_cc_flag__Werror_implicit 14037 if eval \${$cacheid+:} false; then : 14038 $as_echo_n "(cached) " >&6 14039else 14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042int i; 14043int 14044main () 14045{ 14046 14047 ; 14048 return 0; 14049} 14050_ACEOF 14051if ac_fn_c_try_link "$LINENO"; then : 14052 eval $cacheid=yes 14053else 14054 eval $cacheid=no 14055fi 14056rm -f core conftest.err conftest.$ac_objext \ 14057 conftest$ac_exeext conftest.$ac_ext 14058fi 14059 14060 14061 CFLAGS="$xorg_testset_save_CFLAGS" 14062 14063 eval supported=\$$cacheid 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14065$as_echo "$supported" >&6; } 14066 if test "$supported" = "yes" ; then 14067 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14068 found="yes" 14069 fi 14070 fi 14071 14072 if test $found = "no" ; then 14073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14075 fi 14076 14077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14079 fi 14080 14081 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14082 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14084$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14085 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14086 if eval \${$cacheid+:} false; then : 14087 $as_echo_n "(cached) " >&6 14088else 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090/* end confdefs.h. */ 14091int i; 14092int 14093main () 14094{ 14095 14096 ; 14097 return 0; 14098} 14099_ACEOF 14100if ac_fn_c_try_link "$LINENO"; then : 14101 eval $cacheid=yes 14102else 14103 eval $cacheid=no 14104fi 14105rm -f core conftest.err conftest.$ac_objext \ 14106 conftest$ac_exeext conftest.$ac_ext 14107fi 14108 14109 14110 CFLAGS="$xorg_testset_save_CFLAGS" 14111 14112 eval supported=\$$cacheid 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14114$as_echo "$supported" >&6; } 14115 if test "$supported" = "yes" ; then 14116 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14117 found="yes" 14118 fi 14119 fi 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135xorg_testset_save_CFLAGS="$CFLAGS" 14136 14137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14142 $as_echo_n "(cached) " >&6 14143else 14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14145/* end confdefs.h. */ 14146int i; 14147_ACEOF 14148if ac_fn_c_try_compile "$LINENO"; then : 14149 xorg_cv_cc_flag_unknown_warning_option=yes 14150else 14151 xorg_cv_cc_flag_unknown_warning_option=no 14152fi 14153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14154fi 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14158 CFLAGS="$xorg_testset_save_CFLAGS" 14159fi 14160 14161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14164 fi 14165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14169 $as_echo_n "(cached) " >&6 14170else 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172/* end confdefs.h. */ 14173int i; 14174_ACEOF 14175if ac_fn_c_try_compile "$LINENO"; then : 14176 xorg_cv_cc_flag_unused_command_line_argument=yes 14177else 14178 xorg_cv_cc_flag_unused_command_line_argument=no 14179fi 14180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14181fi 14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14185 CFLAGS="$xorg_testset_save_CFLAGS" 14186fi 14187 14188found="no" 14189 14190 if test $found = "no" ; then 14191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14193 fi 14194 14195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14197 fi 14198 14199 CFLAGS="$CFLAGS -Werror=nonnull" 14200 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14202$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14203 cacheid=xorg_cv_cc_flag__Werror_nonnull 14204 if eval \${$cacheid+:} false; then : 14205 $as_echo_n "(cached) " >&6 14206else 14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208/* end confdefs.h. */ 14209int i; 14210int 14211main () 14212{ 14213 14214 ; 14215 return 0; 14216} 14217_ACEOF 14218if ac_fn_c_try_link "$LINENO"; then : 14219 eval $cacheid=yes 14220else 14221 eval $cacheid=no 14222fi 14223rm -f core conftest.err conftest.$ac_objext \ 14224 conftest$ac_exeext conftest.$ac_ext 14225fi 14226 14227 14228 CFLAGS="$xorg_testset_save_CFLAGS" 14229 14230 eval supported=\$$cacheid 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14232$as_echo "$supported" >&6; } 14233 if test "$supported" = "yes" ; then 14234 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14235 found="yes" 14236 fi 14237 fi 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253xorg_testset_save_CFLAGS="$CFLAGS" 14254 14255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14260 $as_echo_n "(cached) " >&6 14261else 14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14263/* end confdefs.h. */ 14264int i; 14265_ACEOF 14266if ac_fn_c_try_compile "$LINENO"; then : 14267 xorg_cv_cc_flag_unknown_warning_option=yes 14268else 14269 xorg_cv_cc_flag_unknown_warning_option=no 14270fi 14271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14272fi 14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14276 CFLAGS="$xorg_testset_save_CFLAGS" 14277fi 14278 14279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14282 fi 14283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14290/* end confdefs.h. */ 14291int i; 14292_ACEOF 14293if ac_fn_c_try_compile "$LINENO"; then : 14294 xorg_cv_cc_flag_unused_command_line_argument=yes 14295else 14296 xorg_cv_cc_flag_unused_command_line_argument=no 14297fi 14298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14299fi 14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14303 CFLAGS="$xorg_testset_save_CFLAGS" 14304fi 14305 14306found="no" 14307 14308 if test $found = "no" ; then 14309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14311 fi 14312 14313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14315 fi 14316 14317 CFLAGS="$CFLAGS -Werror=init-self" 14318 14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14320$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14321 cacheid=xorg_cv_cc_flag__Werror_init_self 14322 if eval \${$cacheid+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327int i; 14328int 14329main () 14330{ 14331 14332 ; 14333 return 0; 14334} 14335_ACEOF 14336if ac_fn_c_try_link "$LINENO"; then : 14337 eval $cacheid=yes 14338else 14339 eval $cacheid=no 14340fi 14341rm -f core conftest.err conftest.$ac_objext \ 14342 conftest$ac_exeext conftest.$ac_ext 14343fi 14344 14345 14346 CFLAGS="$xorg_testset_save_CFLAGS" 14347 14348 eval supported=\$$cacheid 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14350$as_echo "$supported" >&6; } 14351 if test "$supported" = "yes" ; then 14352 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14353 found="yes" 14354 fi 14355 fi 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371xorg_testset_save_CFLAGS="$CFLAGS" 14372 14373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14378 $as_echo_n "(cached) " >&6 14379else 14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14381/* end confdefs.h. */ 14382int i; 14383_ACEOF 14384if ac_fn_c_try_compile "$LINENO"; then : 14385 xorg_cv_cc_flag_unknown_warning_option=yes 14386else 14387 xorg_cv_cc_flag_unknown_warning_option=no 14388fi 14389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14390fi 14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14394 CFLAGS="$xorg_testset_save_CFLAGS" 14395fi 14396 14397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14400 fi 14401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14405 $as_echo_n "(cached) " >&6 14406else 14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14408/* end confdefs.h. */ 14409int i; 14410_ACEOF 14411if ac_fn_c_try_compile "$LINENO"; then : 14412 xorg_cv_cc_flag_unused_command_line_argument=yes 14413else 14414 xorg_cv_cc_flag_unused_command_line_argument=no 14415fi 14416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14417fi 14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14421 CFLAGS="$xorg_testset_save_CFLAGS" 14422fi 14423 14424found="no" 14425 14426 if test $found = "no" ; then 14427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14429 fi 14430 14431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14433 fi 14434 14435 CFLAGS="$CFLAGS -Werror=main" 14436 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14438$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14439 cacheid=xorg_cv_cc_flag__Werror_main 14440 if eval \${$cacheid+:} false; then : 14441 $as_echo_n "(cached) " >&6 14442else 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444/* end confdefs.h. */ 14445int i; 14446int 14447main () 14448{ 14449 14450 ; 14451 return 0; 14452} 14453_ACEOF 14454if ac_fn_c_try_link "$LINENO"; then : 14455 eval $cacheid=yes 14456else 14457 eval $cacheid=no 14458fi 14459rm -f core conftest.err conftest.$ac_objext \ 14460 conftest$ac_exeext conftest.$ac_ext 14461fi 14462 14463 14464 CFLAGS="$xorg_testset_save_CFLAGS" 14465 14466 eval supported=\$$cacheid 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14468$as_echo "$supported" >&6; } 14469 if test "$supported" = "yes" ; then 14470 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14471 found="yes" 14472 fi 14473 fi 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489xorg_testset_save_CFLAGS="$CFLAGS" 14490 14491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14496 $as_echo_n "(cached) " >&6 14497else 14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500int i; 14501_ACEOF 14502if ac_fn_c_try_compile "$LINENO"; then : 14503 xorg_cv_cc_flag_unknown_warning_option=yes 14504else 14505 xorg_cv_cc_flag_unknown_warning_option=no 14506fi 14507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14508fi 14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14512 CFLAGS="$xorg_testset_save_CFLAGS" 14513fi 14514 14515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14518 fi 14519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14523 $as_echo_n "(cached) " >&6 14524else 14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14526/* end confdefs.h. */ 14527int i; 14528_ACEOF 14529if ac_fn_c_try_compile "$LINENO"; then : 14530 xorg_cv_cc_flag_unused_command_line_argument=yes 14531else 14532 xorg_cv_cc_flag_unused_command_line_argument=no 14533fi 14534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14535fi 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14539 CFLAGS="$xorg_testset_save_CFLAGS" 14540fi 14541 14542found="no" 14543 14544 if test $found = "no" ; then 14545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14547 fi 14548 14549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14551 fi 14552 14553 CFLAGS="$CFLAGS -Werror=missing-braces" 14554 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14556$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14557 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14558 if eval \${$cacheid+:} false; then : 14559 $as_echo_n "(cached) " >&6 14560else 14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562/* end confdefs.h. */ 14563int i; 14564int 14565main () 14566{ 14567 14568 ; 14569 return 0; 14570} 14571_ACEOF 14572if ac_fn_c_try_link "$LINENO"; then : 14573 eval $cacheid=yes 14574else 14575 eval $cacheid=no 14576fi 14577rm -f core conftest.err conftest.$ac_objext \ 14578 conftest$ac_exeext conftest.$ac_ext 14579fi 14580 14581 14582 CFLAGS="$xorg_testset_save_CFLAGS" 14583 14584 eval supported=\$$cacheid 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14586$as_echo "$supported" >&6; } 14587 if test "$supported" = "yes" ; then 14588 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14589 found="yes" 14590 fi 14591 fi 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607xorg_testset_save_CFLAGS="$CFLAGS" 14608 14609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14614 $as_echo_n "(cached) " >&6 14615else 14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14617/* end confdefs.h. */ 14618int i; 14619_ACEOF 14620if ac_fn_c_try_compile "$LINENO"; then : 14621 xorg_cv_cc_flag_unknown_warning_option=yes 14622else 14623 xorg_cv_cc_flag_unknown_warning_option=no 14624fi 14625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14626fi 14627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14630 CFLAGS="$xorg_testset_save_CFLAGS" 14631fi 14632 14633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14636 fi 14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14641 $as_echo_n "(cached) " >&6 14642else 14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14644/* end confdefs.h. */ 14645int i; 14646_ACEOF 14647if ac_fn_c_try_compile "$LINENO"; then : 14648 xorg_cv_cc_flag_unused_command_line_argument=yes 14649else 14650 xorg_cv_cc_flag_unused_command_line_argument=no 14651fi 14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14653fi 14654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14657 CFLAGS="$xorg_testset_save_CFLAGS" 14658fi 14659 14660found="no" 14661 14662 if test $found = "no" ; then 14663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14665 fi 14666 14667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14669 fi 14670 14671 CFLAGS="$CFLAGS -Werror=sequence-point" 14672 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14674$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14675 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14676 if eval \${$cacheid+:} false; then : 14677 $as_echo_n "(cached) " >&6 14678else 14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14680/* end confdefs.h. */ 14681int i; 14682int 14683main () 14684{ 14685 14686 ; 14687 return 0; 14688} 14689_ACEOF 14690if ac_fn_c_try_link "$LINENO"; then : 14691 eval $cacheid=yes 14692else 14693 eval $cacheid=no 14694fi 14695rm -f core conftest.err conftest.$ac_objext \ 14696 conftest$ac_exeext conftest.$ac_ext 14697fi 14698 14699 14700 CFLAGS="$xorg_testset_save_CFLAGS" 14701 14702 eval supported=\$$cacheid 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14704$as_echo "$supported" >&6; } 14705 if test "$supported" = "yes" ; then 14706 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14707 found="yes" 14708 fi 14709 fi 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725xorg_testset_save_CFLAGS="$CFLAGS" 14726 14727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14732 $as_echo_n "(cached) " >&6 14733else 14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14735/* end confdefs.h. */ 14736int i; 14737_ACEOF 14738if ac_fn_c_try_compile "$LINENO"; then : 14739 xorg_cv_cc_flag_unknown_warning_option=yes 14740else 14741 xorg_cv_cc_flag_unknown_warning_option=no 14742fi 14743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14744fi 14745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14748 CFLAGS="$xorg_testset_save_CFLAGS" 14749fi 14750 14751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14754 fi 14755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14759 $as_echo_n "(cached) " >&6 14760else 14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14762/* end confdefs.h. */ 14763int i; 14764_ACEOF 14765if ac_fn_c_try_compile "$LINENO"; then : 14766 xorg_cv_cc_flag_unused_command_line_argument=yes 14767else 14768 xorg_cv_cc_flag_unused_command_line_argument=no 14769fi 14770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14771fi 14772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14775 CFLAGS="$xorg_testset_save_CFLAGS" 14776fi 14777 14778found="no" 14779 14780 if test $found = "no" ; then 14781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14783 fi 14784 14785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14787 fi 14788 14789 CFLAGS="$CFLAGS -Werror=return-type" 14790 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14792$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14793 cacheid=xorg_cv_cc_flag__Werror_return_type 14794 if eval \${$cacheid+:} false; then : 14795 $as_echo_n "(cached) " >&6 14796else 14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14798/* end confdefs.h. */ 14799int i; 14800int 14801main () 14802{ 14803 14804 ; 14805 return 0; 14806} 14807_ACEOF 14808if ac_fn_c_try_link "$LINENO"; then : 14809 eval $cacheid=yes 14810else 14811 eval $cacheid=no 14812fi 14813rm -f core conftest.err conftest.$ac_objext \ 14814 conftest$ac_exeext conftest.$ac_ext 14815fi 14816 14817 14818 CFLAGS="$xorg_testset_save_CFLAGS" 14819 14820 eval supported=\$$cacheid 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14822$as_echo "$supported" >&6; } 14823 if test "$supported" = "yes" ; then 14824 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14825 found="yes" 14826 fi 14827 fi 14828 14829 if test $found = "no" ; then 14830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14832 fi 14833 14834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14836 fi 14837 14838 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14839 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14841$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14842 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14843 if eval \${$cacheid+:} false; then : 14844 $as_echo_n "(cached) " >&6 14845else 14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14847/* end confdefs.h. */ 14848int i; 14849int 14850main () 14851{ 14852 14853 ; 14854 return 0; 14855} 14856_ACEOF 14857if ac_fn_c_try_link "$LINENO"; then : 14858 eval $cacheid=yes 14859else 14860 eval $cacheid=no 14861fi 14862rm -f core conftest.err conftest.$ac_objext \ 14863 conftest$ac_exeext conftest.$ac_ext 14864fi 14865 14866 14867 CFLAGS="$xorg_testset_save_CFLAGS" 14868 14869 eval supported=\$$cacheid 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14871$as_echo "$supported" >&6; } 14872 if test "$supported" = "yes" ; then 14873 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14874 found="yes" 14875 fi 14876 fi 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892xorg_testset_save_CFLAGS="$CFLAGS" 14893 14894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14899 $as_echo_n "(cached) " >&6 14900else 14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14902/* end confdefs.h. */ 14903int i; 14904_ACEOF 14905if ac_fn_c_try_compile "$LINENO"; then : 14906 xorg_cv_cc_flag_unknown_warning_option=yes 14907else 14908 xorg_cv_cc_flag_unknown_warning_option=no 14909fi 14910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14911fi 14912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14915 CFLAGS="$xorg_testset_save_CFLAGS" 14916fi 14917 14918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14921 fi 14922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14926 $as_echo_n "(cached) " >&6 14927else 14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14929/* end confdefs.h. */ 14930int i; 14931_ACEOF 14932if ac_fn_c_try_compile "$LINENO"; then : 14933 xorg_cv_cc_flag_unused_command_line_argument=yes 14934else 14935 xorg_cv_cc_flag_unused_command_line_argument=no 14936fi 14937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14938fi 14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14942 CFLAGS="$xorg_testset_save_CFLAGS" 14943fi 14944 14945found="no" 14946 14947 if test $found = "no" ; then 14948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14950 fi 14951 14952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14954 fi 14955 14956 CFLAGS="$CFLAGS -Werror=trigraphs" 14957 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14959$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14960 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14961 if eval \${$cacheid+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963else 14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14965/* end confdefs.h. */ 14966int i; 14967int 14968main () 14969{ 14970 14971 ; 14972 return 0; 14973} 14974_ACEOF 14975if ac_fn_c_try_link "$LINENO"; then : 14976 eval $cacheid=yes 14977else 14978 eval $cacheid=no 14979fi 14980rm -f core conftest.err conftest.$ac_objext \ 14981 conftest$ac_exeext conftest.$ac_ext 14982fi 14983 14984 14985 CFLAGS="$xorg_testset_save_CFLAGS" 14986 14987 eval supported=\$$cacheid 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14989$as_echo "$supported" >&6; } 14990 if test "$supported" = "yes" ; then 14991 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14992 found="yes" 14993 fi 14994 fi 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010xorg_testset_save_CFLAGS="$CFLAGS" 15011 15012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15017 $as_echo_n "(cached) " >&6 15018else 15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15020/* end confdefs.h. */ 15021int i; 15022_ACEOF 15023if ac_fn_c_try_compile "$LINENO"; then : 15024 xorg_cv_cc_flag_unknown_warning_option=yes 15025else 15026 xorg_cv_cc_flag_unknown_warning_option=no 15027fi 15028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15029fi 15030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15033 CFLAGS="$xorg_testset_save_CFLAGS" 15034fi 15035 15036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15039 fi 15040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15044 $as_echo_n "(cached) " >&6 15045else 15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15047/* end confdefs.h. */ 15048int i; 15049_ACEOF 15050if ac_fn_c_try_compile "$LINENO"; then : 15051 xorg_cv_cc_flag_unused_command_line_argument=yes 15052else 15053 xorg_cv_cc_flag_unused_command_line_argument=no 15054fi 15055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15056fi 15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15060 CFLAGS="$xorg_testset_save_CFLAGS" 15061fi 15062 15063found="no" 15064 15065 if test $found = "no" ; then 15066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15068 fi 15069 15070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15072 fi 15073 15074 CFLAGS="$CFLAGS -Werror=array-bounds" 15075 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15077$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15078 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15079 if eval \${$cacheid+:} false; then : 15080 $as_echo_n "(cached) " >&6 15081else 15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15083/* end confdefs.h. */ 15084int i; 15085int 15086main () 15087{ 15088 15089 ; 15090 return 0; 15091} 15092_ACEOF 15093if ac_fn_c_try_link "$LINENO"; then : 15094 eval $cacheid=yes 15095else 15096 eval $cacheid=no 15097fi 15098rm -f core conftest.err conftest.$ac_objext \ 15099 conftest$ac_exeext conftest.$ac_ext 15100fi 15101 15102 15103 CFLAGS="$xorg_testset_save_CFLAGS" 15104 15105 eval supported=\$$cacheid 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15107$as_echo "$supported" >&6; } 15108 if test "$supported" = "yes" ; then 15109 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15110 found="yes" 15111 fi 15112 fi 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128xorg_testset_save_CFLAGS="$CFLAGS" 15129 15130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15133$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15134if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15135 $as_echo_n "(cached) " >&6 15136else 15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15138/* end confdefs.h. */ 15139int i; 15140_ACEOF 15141if ac_fn_c_try_compile "$LINENO"; then : 15142 xorg_cv_cc_flag_unknown_warning_option=yes 15143else 15144 xorg_cv_cc_flag_unknown_warning_option=no 15145fi 15146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15147fi 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15149$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15151 CFLAGS="$xorg_testset_save_CFLAGS" 15152fi 15153 15154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15157 fi 15158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15160$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15161if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15162 $as_echo_n "(cached) " >&6 15163else 15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15165/* end confdefs.h. */ 15166int i; 15167_ACEOF 15168if ac_fn_c_try_compile "$LINENO"; then : 15169 xorg_cv_cc_flag_unused_command_line_argument=yes 15170else 15171 xorg_cv_cc_flag_unused_command_line_argument=no 15172fi 15173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15174fi 15175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15176$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15178 CFLAGS="$xorg_testset_save_CFLAGS" 15179fi 15180 15181found="no" 15182 15183 if test $found = "no" ; then 15184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15186 fi 15187 15188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15190 fi 15191 15192 CFLAGS="$CFLAGS -Werror=write-strings" 15193 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15195$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15196 cacheid=xorg_cv_cc_flag__Werror_write_strings 15197 if eval \${$cacheid+:} false; then : 15198 $as_echo_n "(cached) " >&6 15199else 15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15201/* end confdefs.h. */ 15202int i; 15203int 15204main () 15205{ 15206 15207 ; 15208 return 0; 15209} 15210_ACEOF 15211if ac_fn_c_try_link "$LINENO"; then : 15212 eval $cacheid=yes 15213else 15214 eval $cacheid=no 15215fi 15216rm -f core conftest.err conftest.$ac_objext \ 15217 conftest$ac_exeext conftest.$ac_ext 15218fi 15219 15220 15221 CFLAGS="$xorg_testset_save_CFLAGS" 15222 15223 eval supported=\$$cacheid 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15225$as_echo "$supported" >&6; } 15226 if test "$supported" = "yes" ; then 15227 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15228 found="yes" 15229 fi 15230 fi 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246xorg_testset_save_CFLAGS="$CFLAGS" 15247 15248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15253 $as_echo_n "(cached) " >&6 15254else 15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15256/* end confdefs.h. */ 15257int i; 15258_ACEOF 15259if ac_fn_c_try_compile "$LINENO"; then : 15260 xorg_cv_cc_flag_unknown_warning_option=yes 15261else 15262 xorg_cv_cc_flag_unknown_warning_option=no 15263fi 15264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15265fi 15266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15269 CFLAGS="$xorg_testset_save_CFLAGS" 15270fi 15271 15272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15275 fi 15276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15280 $as_echo_n "(cached) " >&6 15281else 15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15283/* end confdefs.h. */ 15284int i; 15285_ACEOF 15286if ac_fn_c_try_compile "$LINENO"; then : 15287 xorg_cv_cc_flag_unused_command_line_argument=yes 15288else 15289 xorg_cv_cc_flag_unused_command_line_argument=no 15290fi 15291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15292fi 15293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15296 CFLAGS="$xorg_testset_save_CFLAGS" 15297fi 15298 15299found="no" 15300 15301 if test $found = "no" ; then 15302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15304 fi 15305 15306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15308 fi 15309 15310 CFLAGS="$CFLAGS -Werror=address" 15311 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15313$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15314 cacheid=xorg_cv_cc_flag__Werror_address 15315 if eval \${$cacheid+:} false; then : 15316 $as_echo_n "(cached) " >&6 15317else 15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15319/* end confdefs.h. */ 15320int i; 15321int 15322main () 15323{ 15324 15325 ; 15326 return 0; 15327} 15328_ACEOF 15329if ac_fn_c_try_link "$LINENO"; then : 15330 eval $cacheid=yes 15331else 15332 eval $cacheid=no 15333fi 15334rm -f core conftest.err conftest.$ac_objext \ 15335 conftest$ac_exeext conftest.$ac_ext 15336fi 15337 15338 15339 CFLAGS="$xorg_testset_save_CFLAGS" 15340 15341 eval supported=\$$cacheid 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15343$as_echo "$supported" >&6; } 15344 if test "$supported" = "yes" ; then 15345 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15346 found="yes" 15347 fi 15348 fi 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364xorg_testset_save_CFLAGS="$CFLAGS" 15365 15366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15371 $as_echo_n "(cached) " >&6 15372else 15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15374/* end confdefs.h. */ 15375int i; 15376_ACEOF 15377if ac_fn_c_try_compile "$LINENO"; then : 15378 xorg_cv_cc_flag_unknown_warning_option=yes 15379else 15380 xorg_cv_cc_flag_unknown_warning_option=no 15381fi 15382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15383fi 15384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15387 CFLAGS="$xorg_testset_save_CFLAGS" 15388fi 15389 15390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15393 fi 15394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15398 $as_echo_n "(cached) " >&6 15399else 15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15401/* end confdefs.h. */ 15402int i; 15403_ACEOF 15404if ac_fn_c_try_compile "$LINENO"; then : 15405 xorg_cv_cc_flag_unused_command_line_argument=yes 15406else 15407 xorg_cv_cc_flag_unused_command_line_argument=no 15408fi 15409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15410fi 15411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15414 CFLAGS="$xorg_testset_save_CFLAGS" 15415fi 15416 15417found="no" 15418 15419 if test $found = "no" ; then 15420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15422 fi 15423 15424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15426 fi 15427 15428 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15429 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15431$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15432 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15433 if eval \${$cacheid+:} false; then : 15434 $as_echo_n "(cached) " >&6 15435else 15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15437/* end confdefs.h. */ 15438int i; 15439int 15440main () 15441{ 15442 15443 ; 15444 return 0; 15445} 15446_ACEOF 15447if ac_fn_c_try_link "$LINENO"; then : 15448 eval $cacheid=yes 15449else 15450 eval $cacheid=no 15451fi 15452rm -f core conftest.err conftest.$ac_objext \ 15453 conftest$ac_exeext conftest.$ac_ext 15454fi 15455 15456 15457 CFLAGS="$xorg_testset_save_CFLAGS" 15458 15459 eval supported=\$$cacheid 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15461$as_echo "$supported" >&6; } 15462 if test "$supported" = "yes" ; then 15463 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15464 found="yes" 15465 fi 15466 fi 15467 15468 if test $found = "no" ; then 15469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15471 fi 15472 15473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15475 fi 15476 15477 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15478 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15480$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15481 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15482 if eval \${$cacheid+:} false; then : 15483 $as_echo_n "(cached) " >&6 15484else 15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15486/* end confdefs.h. */ 15487int i; 15488int 15489main () 15490{ 15491 15492 ; 15493 return 0; 15494} 15495_ACEOF 15496if ac_fn_c_try_link "$LINENO"; then : 15497 eval $cacheid=yes 15498else 15499 eval $cacheid=no 15500fi 15501rm -f core conftest.err conftest.$ac_objext \ 15502 conftest$ac_exeext conftest.$ac_ext 15503fi 15504 15505 15506 CFLAGS="$xorg_testset_save_CFLAGS" 15507 15508 eval supported=\$$cacheid 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15510$as_echo "$supported" >&6; } 15511 if test "$supported" = "yes" ; then 15512 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15513 found="yes" 15514 fi 15515 fi 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531xorg_testset_save_CFLAGS="$CFLAGS" 15532 15533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15538 $as_echo_n "(cached) " >&6 15539else 15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15541/* end confdefs.h. */ 15542int i; 15543_ACEOF 15544if ac_fn_c_try_compile "$LINENO"; then : 15545 xorg_cv_cc_flag_unknown_warning_option=yes 15546else 15547 xorg_cv_cc_flag_unknown_warning_option=no 15548fi 15549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15550fi 15551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15554 CFLAGS="$xorg_testset_save_CFLAGS" 15555fi 15556 15557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15560 fi 15561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15565 $as_echo_n "(cached) " >&6 15566else 15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15568/* end confdefs.h. */ 15569int i; 15570_ACEOF 15571if ac_fn_c_try_compile "$LINENO"; then : 15572 xorg_cv_cc_flag_unused_command_line_argument=yes 15573else 15574 xorg_cv_cc_flag_unused_command_line_argument=no 15575fi 15576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15577fi 15578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15581 CFLAGS="$xorg_testset_save_CFLAGS" 15582fi 15583 15584found="no" 15585 15586 if test $found = "no" ; then 15587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15589 fi 15590 15591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15593 fi 15594 15595 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15596 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15598$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15599 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15600 if eval \${$cacheid+:} false; then : 15601 $as_echo_n "(cached) " >&6 15602else 15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15604/* end confdefs.h. */ 15605int i; 15606int 15607main () 15608{ 15609 15610 ; 15611 return 0; 15612} 15613_ACEOF 15614if ac_fn_c_try_link "$LINENO"; then : 15615 eval $cacheid=yes 15616else 15617 eval $cacheid=no 15618fi 15619rm -f core conftest.err conftest.$ac_objext \ 15620 conftest$ac_exeext conftest.$ac_ext 15621fi 15622 15623 15624 CFLAGS="$xorg_testset_save_CFLAGS" 15625 15626 eval supported=\$$cacheid 15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15628$as_echo "$supported" >&6; } 15629 if test "$supported" = "yes" ; then 15630 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15631 found="yes" 15632 fi 15633 fi 15634 15635 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15636else 15637{ $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 15638$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;} 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652xorg_testset_save_CFLAGS="$CFLAGS" 15653 15654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15659 $as_echo_n "(cached) " >&6 15660else 15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15662/* end confdefs.h. */ 15663int i; 15664_ACEOF 15665if ac_fn_c_try_compile "$LINENO"; then : 15666 xorg_cv_cc_flag_unknown_warning_option=yes 15667else 15668 xorg_cv_cc_flag_unknown_warning_option=no 15669fi 15670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15671fi 15672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15675 CFLAGS="$xorg_testset_save_CFLAGS" 15676fi 15677 15678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15681 fi 15682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15686 $as_echo_n "(cached) " >&6 15687else 15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15689/* end confdefs.h. */ 15690int i; 15691_ACEOF 15692if ac_fn_c_try_compile "$LINENO"; then : 15693 xorg_cv_cc_flag_unused_command_line_argument=yes 15694else 15695 xorg_cv_cc_flag_unused_command_line_argument=no 15696fi 15697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15698fi 15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15702 CFLAGS="$xorg_testset_save_CFLAGS" 15703fi 15704 15705found="no" 15706 15707 if test $found = "no" ; then 15708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15710 fi 15711 15712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15714 fi 15715 15716 CFLAGS="$CFLAGS -Wimplicit" 15717 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15719$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15720 cacheid=xorg_cv_cc_flag__Wimplicit 15721 if eval \${$cacheid+:} false; then : 15722 $as_echo_n "(cached) " >&6 15723else 15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15725/* end confdefs.h. */ 15726int i; 15727int 15728main () 15729{ 15730 15731 ; 15732 return 0; 15733} 15734_ACEOF 15735if ac_fn_c_try_link "$LINENO"; then : 15736 eval $cacheid=yes 15737else 15738 eval $cacheid=no 15739fi 15740rm -f core conftest.err conftest.$ac_objext \ 15741 conftest$ac_exeext conftest.$ac_ext 15742fi 15743 15744 15745 CFLAGS="$xorg_testset_save_CFLAGS" 15746 15747 eval supported=\$$cacheid 15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15749$as_echo "$supported" >&6; } 15750 if test "$supported" = "yes" ; then 15751 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15752 found="yes" 15753 fi 15754 fi 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770xorg_testset_save_CFLAGS="$CFLAGS" 15771 15772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15777 $as_echo_n "(cached) " >&6 15778else 15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15780/* end confdefs.h. */ 15781int i; 15782_ACEOF 15783if ac_fn_c_try_compile "$LINENO"; then : 15784 xorg_cv_cc_flag_unknown_warning_option=yes 15785else 15786 xorg_cv_cc_flag_unknown_warning_option=no 15787fi 15788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15789fi 15790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15793 CFLAGS="$xorg_testset_save_CFLAGS" 15794fi 15795 15796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15799 fi 15800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15804 $as_echo_n "(cached) " >&6 15805else 15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15807/* end confdefs.h. */ 15808int i; 15809_ACEOF 15810if ac_fn_c_try_compile "$LINENO"; then : 15811 xorg_cv_cc_flag_unused_command_line_argument=yes 15812else 15813 xorg_cv_cc_flag_unused_command_line_argument=no 15814fi 15815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15816fi 15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15820 CFLAGS="$xorg_testset_save_CFLAGS" 15821fi 15822 15823found="no" 15824 15825 if test $found = "no" ; then 15826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15828 fi 15829 15830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15832 fi 15833 15834 CFLAGS="$CFLAGS -Wnonnull" 15835 15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15837$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15838 cacheid=xorg_cv_cc_flag__Wnonnull 15839 if eval \${$cacheid+:} false; then : 15840 $as_echo_n "(cached) " >&6 15841else 15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15843/* end confdefs.h. */ 15844int i; 15845int 15846main () 15847{ 15848 15849 ; 15850 return 0; 15851} 15852_ACEOF 15853if ac_fn_c_try_link "$LINENO"; then : 15854 eval $cacheid=yes 15855else 15856 eval $cacheid=no 15857fi 15858rm -f core conftest.err conftest.$ac_objext \ 15859 conftest$ac_exeext conftest.$ac_ext 15860fi 15861 15862 15863 CFLAGS="$xorg_testset_save_CFLAGS" 15864 15865 eval supported=\$$cacheid 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15867$as_echo "$supported" >&6; } 15868 if test "$supported" = "yes" ; then 15869 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15870 found="yes" 15871 fi 15872 fi 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888xorg_testset_save_CFLAGS="$CFLAGS" 15889 15890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15895 $as_echo_n "(cached) " >&6 15896else 15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15898/* end confdefs.h. */ 15899int i; 15900_ACEOF 15901if ac_fn_c_try_compile "$LINENO"; then : 15902 xorg_cv_cc_flag_unknown_warning_option=yes 15903else 15904 xorg_cv_cc_flag_unknown_warning_option=no 15905fi 15906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15907fi 15908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15911 CFLAGS="$xorg_testset_save_CFLAGS" 15912fi 15913 15914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15917 fi 15918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15922 $as_echo_n "(cached) " >&6 15923else 15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15925/* end confdefs.h. */ 15926int i; 15927_ACEOF 15928if ac_fn_c_try_compile "$LINENO"; then : 15929 xorg_cv_cc_flag_unused_command_line_argument=yes 15930else 15931 xorg_cv_cc_flag_unused_command_line_argument=no 15932fi 15933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15934fi 15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15938 CFLAGS="$xorg_testset_save_CFLAGS" 15939fi 15940 15941found="no" 15942 15943 if test $found = "no" ; then 15944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15946 fi 15947 15948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15950 fi 15951 15952 CFLAGS="$CFLAGS -Winit-self" 15953 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15955$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15956 cacheid=xorg_cv_cc_flag__Winit_self 15957 if eval \${$cacheid+:} false; then : 15958 $as_echo_n "(cached) " >&6 15959else 15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15961/* end confdefs.h. */ 15962int i; 15963int 15964main () 15965{ 15966 15967 ; 15968 return 0; 15969} 15970_ACEOF 15971if ac_fn_c_try_link "$LINENO"; then : 15972 eval $cacheid=yes 15973else 15974 eval $cacheid=no 15975fi 15976rm -f core conftest.err conftest.$ac_objext \ 15977 conftest$ac_exeext conftest.$ac_ext 15978fi 15979 15980 15981 CFLAGS="$xorg_testset_save_CFLAGS" 15982 15983 eval supported=\$$cacheid 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15985$as_echo "$supported" >&6; } 15986 if test "$supported" = "yes" ; then 15987 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15988 found="yes" 15989 fi 15990 fi 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006xorg_testset_save_CFLAGS="$CFLAGS" 16007 16008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16013 $as_echo_n "(cached) " >&6 16014else 16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16016/* end confdefs.h. */ 16017int i; 16018_ACEOF 16019if ac_fn_c_try_compile "$LINENO"; then : 16020 xorg_cv_cc_flag_unknown_warning_option=yes 16021else 16022 xorg_cv_cc_flag_unknown_warning_option=no 16023fi 16024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16025fi 16026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16029 CFLAGS="$xorg_testset_save_CFLAGS" 16030fi 16031 16032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16035 fi 16036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16040 $as_echo_n "(cached) " >&6 16041else 16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16043/* end confdefs.h. */ 16044int i; 16045_ACEOF 16046if ac_fn_c_try_compile "$LINENO"; then : 16047 xorg_cv_cc_flag_unused_command_line_argument=yes 16048else 16049 xorg_cv_cc_flag_unused_command_line_argument=no 16050fi 16051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16052fi 16053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16056 CFLAGS="$xorg_testset_save_CFLAGS" 16057fi 16058 16059found="no" 16060 16061 if test $found = "no" ; then 16062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16064 fi 16065 16066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16068 fi 16069 16070 CFLAGS="$CFLAGS -Wmain" 16071 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16073$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16074 cacheid=xorg_cv_cc_flag__Wmain 16075 if eval \${$cacheid+:} false; then : 16076 $as_echo_n "(cached) " >&6 16077else 16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16079/* end confdefs.h. */ 16080int i; 16081int 16082main () 16083{ 16084 16085 ; 16086 return 0; 16087} 16088_ACEOF 16089if ac_fn_c_try_link "$LINENO"; then : 16090 eval $cacheid=yes 16091else 16092 eval $cacheid=no 16093fi 16094rm -f core conftest.err conftest.$ac_objext \ 16095 conftest$ac_exeext conftest.$ac_ext 16096fi 16097 16098 16099 CFLAGS="$xorg_testset_save_CFLAGS" 16100 16101 eval supported=\$$cacheid 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16103$as_echo "$supported" >&6; } 16104 if test "$supported" = "yes" ; then 16105 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16106 found="yes" 16107 fi 16108 fi 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124xorg_testset_save_CFLAGS="$CFLAGS" 16125 16126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16131 $as_echo_n "(cached) " >&6 16132else 16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16134/* end confdefs.h. */ 16135int i; 16136_ACEOF 16137if ac_fn_c_try_compile "$LINENO"; then : 16138 xorg_cv_cc_flag_unknown_warning_option=yes 16139else 16140 xorg_cv_cc_flag_unknown_warning_option=no 16141fi 16142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16143fi 16144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16147 CFLAGS="$xorg_testset_save_CFLAGS" 16148fi 16149 16150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16153 fi 16154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16158 $as_echo_n "(cached) " >&6 16159else 16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161/* end confdefs.h. */ 16162int i; 16163_ACEOF 16164if ac_fn_c_try_compile "$LINENO"; then : 16165 xorg_cv_cc_flag_unused_command_line_argument=yes 16166else 16167 xorg_cv_cc_flag_unused_command_line_argument=no 16168fi 16169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16170fi 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16174 CFLAGS="$xorg_testset_save_CFLAGS" 16175fi 16176 16177found="no" 16178 16179 if test $found = "no" ; then 16180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16182 fi 16183 16184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16186 fi 16187 16188 CFLAGS="$CFLAGS -Wmissing-braces" 16189 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16191$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16192 cacheid=xorg_cv_cc_flag__Wmissing_braces 16193 if eval \${$cacheid+:} false; then : 16194 $as_echo_n "(cached) " >&6 16195else 16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16197/* end confdefs.h. */ 16198int i; 16199int 16200main () 16201{ 16202 16203 ; 16204 return 0; 16205} 16206_ACEOF 16207if ac_fn_c_try_link "$LINENO"; then : 16208 eval $cacheid=yes 16209else 16210 eval $cacheid=no 16211fi 16212rm -f core conftest.err conftest.$ac_objext \ 16213 conftest$ac_exeext conftest.$ac_ext 16214fi 16215 16216 16217 CFLAGS="$xorg_testset_save_CFLAGS" 16218 16219 eval supported=\$$cacheid 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16221$as_echo "$supported" >&6; } 16222 if test "$supported" = "yes" ; then 16223 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16224 found="yes" 16225 fi 16226 fi 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242xorg_testset_save_CFLAGS="$CFLAGS" 16243 16244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16249 $as_echo_n "(cached) " >&6 16250else 16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16252/* end confdefs.h. */ 16253int i; 16254_ACEOF 16255if ac_fn_c_try_compile "$LINENO"; then : 16256 xorg_cv_cc_flag_unknown_warning_option=yes 16257else 16258 xorg_cv_cc_flag_unknown_warning_option=no 16259fi 16260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16261fi 16262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16265 CFLAGS="$xorg_testset_save_CFLAGS" 16266fi 16267 16268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16271 fi 16272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16276 $as_echo_n "(cached) " >&6 16277else 16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16279/* end confdefs.h. */ 16280int i; 16281_ACEOF 16282if ac_fn_c_try_compile "$LINENO"; then : 16283 xorg_cv_cc_flag_unused_command_line_argument=yes 16284else 16285 xorg_cv_cc_flag_unused_command_line_argument=no 16286fi 16287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16288fi 16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16292 CFLAGS="$xorg_testset_save_CFLAGS" 16293fi 16294 16295found="no" 16296 16297 if test $found = "no" ; then 16298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16300 fi 16301 16302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16304 fi 16305 16306 CFLAGS="$CFLAGS -Wsequence-point" 16307 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16309$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16310 cacheid=xorg_cv_cc_flag__Wsequence_point 16311 if eval \${$cacheid+:} false; then : 16312 $as_echo_n "(cached) " >&6 16313else 16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16315/* end confdefs.h. */ 16316int i; 16317int 16318main () 16319{ 16320 16321 ; 16322 return 0; 16323} 16324_ACEOF 16325if ac_fn_c_try_link "$LINENO"; then : 16326 eval $cacheid=yes 16327else 16328 eval $cacheid=no 16329fi 16330rm -f core conftest.err conftest.$ac_objext \ 16331 conftest$ac_exeext conftest.$ac_ext 16332fi 16333 16334 16335 CFLAGS="$xorg_testset_save_CFLAGS" 16336 16337 eval supported=\$$cacheid 16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16339$as_echo "$supported" >&6; } 16340 if test "$supported" = "yes" ; then 16341 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16342 found="yes" 16343 fi 16344 fi 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360xorg_testset_save_CFLAGS="$CFLAGS" 16361 16362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16367 $as_echo_n "(cached) " >&6 16368else 16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16370/* end confdefs.h. */ 16371int i; 16372_ACEOF 16373if ac_fn_c_try_compile "$LINENO"; then : 16374 xorg_cv_cc_flag_unknown_warning_option=yes 16375else 16376 xorg_cv_cc_flag_unknown_warning_option=no 16377fi 16378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16379fi 16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16383 CFLAGS="$xorg_testset_save_CFLAGS" 16384fi 16385 16386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16389 fi 16390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16394 $as_echo_n "(cached) " >&6 16395else 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398int i; 16399_ACEOF 16400if ac_fn_c_try_compile "$LINENO"; then : 16401 xorg_cv_cc_flag_unused_command_line_argument=yes 16402else 16403 xorg_cv_cc_flag_unused_command_line_argument=no 16404fi 16405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16406fi 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16410 CFLAGS="$xorg_testset_save_CFLAGS" 16411fi 16412 16413found="no" 16414 16415 if test $found = "no" ; then 16416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16418 fi 16419 16420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16422 fi 16423 16424 CFLAGS="$CFLAGS -Wreturn-type" 16425 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16427$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16428 cacheid=xorg_cv_cc_flag__Wreturn_type 16429 if eval \${$cacheid+:} false; then : 16430 $as_echo_n "(cached) " >&6 16431else 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433/* end confdefs.h. */ 16434int i; 16435int 16436main () 16437{ 16438 16439 ; 16440 return 0; 16441} 16442_ACEOF 16443if ac_fn_c_try_link "$LINENO"; then : 16444 eval $cacheid=yes 16445else 16446 eval $cacheid=no 16447fi 16448rm -f core conftest.err conftest.$ac_objext \ 16449 conftest$ac_exeext conftest.$ac_ext 16450fi 16451 16452 16453 CFLAGS="$xorg_testset_save_CFLAGS" 16454 16455 eval supported=\$$cacheid 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16457$as_echo "$supported" >&6; } 16458 if test "$supported" = "yes" ; then 16459 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16460 found="yes" 16461 fi 16462 fi 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478xorg_testset_save_CFLAGS="$CFLAGS" 16479 16480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16485 $as_echo_n "(cached) " >&6 16486else 16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16488/* end confdefs.h. */ 16489int i; 16490_ACEOF 16491if ac_fn_c_try_compile "$LINENO"; then : 16492 xorg_cv_cc_flag_unknown_warning_option=yes 16493else 16494 xorg_cv_cc_flag_unknown_warning_option=no 16495fi 16496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16497fi 16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16501 CFLAGS="$xorg_testset_save_CFLAGS" 16502fi 16503 16504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16507 fi 16508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16512 $as_echo_n "(cached) " >&6 16513else 16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16515/* end confdefs.h. */ 16516int i; 16517_ACEOF 16518if ac_fn_c_try_compile "$LINENO"; then : 16519 xorg_cv_cc_flag_unused_command_line_argument=yes 16520else 16521 xorg_cv_cc_flag_unused_command_line_argument=no 16522fi 16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16524fi 16525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16528 CFLAGS="$xorg_testset_save_CFLAGS" 16529fi 16530 16531found="no" 16532 16533 if test $found = "no" ; then 16534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16536 fi 16537 16538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16540 fi 16541 16542 CFLAGS="$CFLAGS -Wtrigraphs" 16543 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16545$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16546 cacheid=xorg_cv_cc_flag__Wtrigraphs 16547 if eval \${$cacheid+:} false; then : 16548 $as_echo_n "(cached) " >&6 16549else 16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16551/* end confdefs.h. */ 16552int i; 16553int 16554main () 16555{ 16556 16557 ; 16558 return 0; 16559} 16560_ACEOF 16561if ac_fn_c_try_link "$LINENO"; then : 16562 eval $cacheid=yes 16563else 16564 eval $cacheid=no 16565fi 16566rm -f core conftest.err conftest.$ac_objext \ 16567 conftest$ac_exeext conftest.$ac_ext 16568fi 16569 16570 16571 CFLAGS="$xorg_testset_save_CFLAGS" 16572 16573 eval supported=\$$cacheid 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16575$as_echo "$supported" >&6; } 16576 if test "$supported" = "yes" ; then 16577 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16578 found="yes" 16579 fi 16580 fi 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596xorg_testset_save_CFLAGS="$CFLAGS" 16597 16598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16603 $as_echo_n "(cached) " >&6 16604else 16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16606/* end confdefs.h. */ 16607int i; 16608_ACEOF 16609if ac_fn_c_try_compile "$LINENO"; then : 16610 xorg_cv_cc_flag_unknown_warning_option=yes 16611else 16612 xorg_cv_cc_flag_unknown_warning_option=no 16613fi 16614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16615fi 16616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16619 CFLAGS="$xorg_testset_save_CFLAGS" 16620fi 16621 16622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16625 fi 16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16630 $as_echo_n "(cached) " >&6 16631else 16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16633/* end confdefs.h. */ 16634int i; 16635_ACEOF 16636if ac_fn_c_try_compile "$LINENO"; then : 16637 xorg_cv_cc_flag_unused_command_line_argument=yes 16638else 16639 xorg_cv_cc_flag_unused_command_line_argument=no 16640fi 16641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16642fi 16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16646 CFLAGS="$xorg_testset_save_CFLAGS" 16647fi 16648 16649found="no" 16650 16651 if test $found = "no" ; then 16652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16654 fi 16655 16656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16658 fi 16659 16660 CFLAGS="$CFLAGS -Warray-bounds" 16661 16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16663$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16664 cacheid=xorg_cv_cc_flag__Warray_bounds 16665 if eval \${$cacheid+:} false; then : 16666 $as_echo_n "(cached) " >&6 16667else 16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16669/* end confdefs.h. */ 16670int i; 16671int 16672main () 16673{ 16674 16675 ; 16676 return 0; 16677} 16678_ACEOF 16679if ac_fn_c_try_link "$LINENO"; then : 16680 eval $cacheid=yes 16681else 16682 eval $cacheid=no 16683fi 16684rm -f core conftest.err conftest.$ac_objext \ 16685 conftest$ac_exeext conftest.$ac_ext 16686fi 16687 16688 16689 CFLAGS="$xorg_testset_save_CFLAGS" 16690 16691 eval supported=\$$cacheid 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16693$as_echo "$supported" >&6; } 16694 if test "$supported" = "yes" ; then 16695 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16696 found="yes" 16697 fi 16698 fi 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714xorg_testset_save_CFLAGS="$CFLAGS" 16715 16716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16721 $as_echo_n "(cached) " >&6 16722else 16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16724/* end confdefs.h. */ 16725int i; 16726_ACEOF 16727if ac_fn_c_try_compile "$LINENO"; then : 16728 xorg_cv_cc_flag_unknown_warning_option=yes 16729else 16730 xorg_cv_cc_flag_unknown_warning_option=no 16731fi 16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16733fi 16734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16737 CFLAGS="$xorg_testset_save_CFLAGS" 16738fi 16739 16740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16743 fi 16744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16748 $as_echo_n "(cached) " >&6 16749else 16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16751/* end confdefs.h. */ 16752int i; 16753_ACEOF 16754if ac_fn_c_try_compile "$LINENO"; then : 16755 xorg_cv_cc_flag_unused_command_line_argument=yes 16756else 16757 xorg_cv_cc_flag_unused_command_line_argument=no 16758fi 16759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16760fi 16761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16764 CFLAGS="$xorg_testset_save_CFLAGS" 16765fi 16766 16767found="no" 16768 16769 if test $found = "no" ; then 16770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16772 fi 16773 16774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16776 fi 16777 16778 CFLAGS="$CFLAGS -Wwrite-strings" 16779 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16781$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16782 cacheid=xorg_cv_cc_flag__Wwrite_strings 16783 if eval \${$cacheid+:} false; then : 16784 $as_echo_n "(cached) " >&6 16785else 16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16787/* end confdefs.h. */ 16788int i; 16789int 16790main () 16791{ 16792 16793 ; 16794 return 0; 16795} 16796_ACEOF 16797if ac_fn_c_try_link "$LINENO"; then : 16798 eval $cacheid=yes 16799else 16800 eval $cacheid=no 16801fi 16802rm -f core conftest.err conftest.$ac_objext \ 16803 conftest$ac_exeext conftest.$ac_ext 16804fi 16805 16806 16807 CFLAGS="$xorg_testset_save_CFLAGS" 16808 16809 eval supported=\$$cacheid 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16811$as_echo "$supported" >&6; } 16812 if test "$supported" = "yes" ; then 16813 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16814 found="yes" 16815 fi 16816 fi 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832xorg_testset_save_CFLAGS="$CFLAGS" 16833 16834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16839 $as_echo_n "(cached) " >&6 16840else 16841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16842/* end confdefs.h. */ 16843int i; 16844_ACEOF 16845if ac_fn_c_try_compile "$LINENO"; then : 16846 xorg_cv_cc_flag_unknown_warning_option=yes 16847else 16848 xorg_cv_cc_flag_unknown_warning_option=no 16849fi 16850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16851fi 16852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16855 CFLAGS="$xorg_testset_save_CFLAGS" 16856fi 16857 16858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16861 fi 16862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16866 $as_echo_n "(cached) " >&6 16867else 16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16869/* end confdefs.h. */ 16870int i; 16871_ACEOF 16872if ac_fn_c_try_compile "$LINENO"; then : 16873 xorg_cv_cc_flag_unused_command_line_argument=yes 16874else 16875 xorg_cv_cc_flag_unused_command_line_argument=no 16876fi 16877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16878fi 16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16882 CFLAGS="$xorg_testset_save_CFLAGS" 16883fi 16884 16885found="no" 16886 16887 if test $found = "no" ; then 16888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16890 fi 16891 16892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16894 fi 16895 16896 CFLAGS="$CFLAGS -Waddress" 16897 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16899$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16900 cacheid=xorg_cv_cc_flag__Waddress 16901 if eval \${$cacheid+:} false; then : 16902 $as_echo_n "(cached) " >&6 16903else 16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16905/* end confdefs.h. */ 16906int i; 16907int 16908main () 16909{ 16910 16911 ; 16912 return 0; 16913} 16914_ACEOF 16915if ac_fn_c_try_link "$LINENO"; then : 16916 eval $cacheid=yes 16917else 16918 eval $cacheid=no 16919fi 16920rm -f core conftest.err conftest.$ac_objext \ 16921 conftest$ac_exeext conftest.$ac_ext 16922fi 16923 16924 16925 CFLAGS="$xorg_testset_save_CFLAGS" 16926 16927 eval supported=\$$cacheid 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16929$as_echo "$supported" >&6; } 16930 if test "$supported" = "yes" ; then 16931 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16932 found="yes" 16933 fi 16934 fi 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950xorg_testset_save_CFLAGS="$CFLAGS" 16951 16952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16957 $as_echo_n "(cached) " >&6 16958else 16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16960/* end confdefs.h. */ 16961int i; 16962_ACEOF 16963if ac_fn_c_try_compile "$LINENO"; then : 16964 xorg_cv_cc_flag_unknown_warning_option=yes 16965else 16966 xorg_cv_cc_flag_unknown_warning_option=no 16967fi 16968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16969fi 16970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16973 CFLAGS="$xorg_testset_save_CFLAGS" 16974fi 16975 16976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16979 fi 16980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16984 $as_echo_n "(cached) " >&6 16985else 16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16987/* end confdefs.h. */ 16988int i; 16989_ACEOF 16990if ac_fn_c_try_compile "$LINENO"; then : 16991 xorg_cv_cc_flag_unused_command_line_argument=yes 16992else 16993 xorg_cv_cc_flag_unused_command_line_argument=no 16994fi 16995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16996fi 16997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17000 CFLAGS="$xorg_testset_save_CFLAGS" 17001fi 17002 17003found="no" 17004 17005 if test $found = "no" ; then 17006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17008 fi 17009 17010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17012 fi 17013 17014 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17015 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17017$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17018 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17019 if eval \${$cacheid+:} false; then : 17020 $as_echo_n "(cached) " >&6 17021else 17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17023/* end confdefs.h. */ 17024int i; 17025int 17026main () 17027{ 17028 17029 ; 17030 return 0; 17031} 17032_ACEOF 17033if ac_fn_c_try_link "$LINENO"; then : 17034 eval $cacheid=yes 17035else 17036 eval $cacheid=no 17037fi 17038rm -f core conftest.err conftest.$ac_objext \ 17039 conftest$ac_exeext conftest.$ac_ext 17040fi 17041 17042 17043 CFLAGS="$xorg_testset_save_CFLAGS" 17044 17045 eval supported=\$$cacheid 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17047$as_echo "$supported" >&6; } 17048 if test "$supported" = "yes" ; then 17049 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17050 found="yes" 17051 fi 17052 fi 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068xorg_testset_save_CFLAGS="$CFLAGS" 17069 17070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17075 $as_echo_n "(cached) " >&6 17076else 17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17078/* end confdefs.h. */ 17079int i; 17080_ACEOF 17081if ac_fn_c_try_compile "$LINENO"; then : 17082 xorg_cv_cc_flag_unknown_warning_option=yes 17083else 17084 xorg_cv_cc_flag_unknown_warning_option=no 17085fi 17086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17087fi 17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17091 CFLAGS="$xorg_testset_save_CFLAGS" 17092fi 17093 17094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17097 fi 17098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17102 $as_echo_n "(cached) " >&6 17103else 17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17105/* end confdefs.h. */ 17106int i; 17107_ACEOF 17108if ac_fn_c_try_compile "$LINENO"; then : 17109 xorg_cv_cc_flag_unused_command_line_argument=yes 17110else 17111 xorg_cv_cc_flag_unused_command_line_argument=no 17112fi 17113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17114fi 17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17118 CFLAGS="$xorg_testset_save_CFLAGS" 17119fi 17120 17121found="no" 17122 17123 if test $found = "no" ; then 17124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17126 fi 17127 17128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17130 fi 17131 17132 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17133 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17135$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17136 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17137 if eval \${$cacheid+:} false; then : 17138 $as_echo_n "(cached) " >&6 17139else 17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17141/* end confdefs.h. */ 17142int i; 17143int 17144main () 17145{ 17146 17147 ; 17148 return 0; 17149} 17150_ACEOF 17151if ac_fn_c_try_link "$LINENO"; then : 17152 eval $cacheid=yes 17153else 17154 eval $cacheid=no 17155fi 17156rm -f core conftest.err conftest.$ac_objext \ 17157 conftest$ac_exeext conftest.$ac_ext 17158fi 17159 17160 17161 CFLAGS="$xorg_testset_save_CFLAGS" 17162 17163 eval supported=\$$cacheid 17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17165$as_echo "$supported" >&6; } 17166 if test "$supported" = "yes" ; then 17167 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17168 found="yes" 17169 fi 17170 fi 17171 17172 17173fi 17174 17175 17176 17177 17178 17179 17180 17181 CWARNFLAGS="$BASE_CFLAGS" 17182 if test "x$GCC" = xyes ; then 17183 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17184 fi 17185 17186 17187 17188 17189 17190 17191 17192 17193# Check whether --enable-strict-compilation was given. 17194if test "${enable_strict_compilation+set}" = set; then : 17195 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17196else 17197 STRICT_COMPILE=no 17198fi 17199 17200 17201 17202 17203 17204 17205STRICT_CFLAGS="" 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219xorg_testset_save_CFLAGS="$CFLAGS" 17220 17221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17226 $as_echo_n "(cached) " >&6 17227else 17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17229/* end confdefs.h. */ 17230int i; 17231_ACEOF 17232if ac_fn_c_try_compile "$LINENO"; then : 17233 xorg_cv_cc_flag_unknown_warning_option=yes 17234else 17235 xorg_cv_cc_flag_unknown_warning_option=no 17236fi 17237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17238fi 17239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17242 CFLAGS="$xorg_testset_save_CFLAGS" 17243fi 17244 17245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17248 fi 17249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17253 $as_echo_n "(cached) " >&6 17254else 17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17256/* end confdefs.h. */ 17257int i; 17258_ACEOF 17259if ac_fn_c_try_compile "$LINENO"; then : 17260 xorg_cv_cc_flag_unused_command_line_argument=yes 17261else 17262 xorg_cv_cc_flag_unused_command_line_argument=no 17263fi 17264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17265fi 17266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17269 CFLAGS="$xorg_testset_save_CFLAGS" 17270fi 17271 17272found="no" 17273 17274 if test $found = "no" ; then 17275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17277 fi 17278 17279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17281 fi 17282 17283 CFLAGS="$CFLAGS -pedantic" 17284 17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17286$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17287 cacheid=xorg_cv_cc_flag__pedantic 17288 if eval \${$cacheid+:} false; then : 17289 $as_echo_n "(cached) " >&6 17290else 17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17292/* end confdefs.h. */ 17293int i; 17294int 17295main () 17296{ 17297 17298 ; 17299 return 0; 17300} 17301_ACEOF 17302if ac_fn_c_try_link "$LINENO"; then : 17303 eval $cacheid=yes 17304else 17305 eval $cacheid=no 17306fi 17307rm -f core conftest.err conftest.$ac_objext \ 17308 conftest$ac_exeext conftest.$ac_ext 17309fi 17310 17311 17312 CFLAGS="$xorg_testset_save_CFLAGS" 17313 17314 eval supported=\$$cacheid 17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17316$as_echo "$supported" >&6; } 17317 if test "$supported" = "yes" ; then 17318 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17319 found="yes" 17320 fi 17321 fi 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337xorg_testset_save_CFLAGS="$CFLAGS" 17338 17339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17344 $as_echo_n "(cached) " >&6 17345else 17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17347/* end confdefs.h. */ 17348int i; 17349_ACEOF 17350if ac_fn_c_try_compile "$LINENO"; then : 17351 xorg_cv_cc_flag_unknown_warning_option=yes 17352else 17353 xorg_cv_cc_flag_unknown_warning_option=no 17354fi 17355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17356fi 17357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17360 CFLAGS="$xorg_testset_save_CFLAGS" 17361fi 17362 17363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17366 fi 17367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17371 $as_echo_n "(cached) " >&6 17372else 17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17374/* end confdefs.h. */ 17375int i; 17376_ACEOF 17377if ac_fn_c_try_compile "$LINENO"; then : 17378 xorg_cv_cc_flag_unused_command_line_argument=yes 17379else 17380 xorg_cv_cc_flag_unused_command_line_argument=no 17381fi 17382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17383fi 17384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17387 CFLAGS="$xorg_testset_save_CFLAGS" 17388fi 17389 17390found="no" 17391 17392 if test $found = "no" ; then 17393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17395 fi 17396 17397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17399 fi 17400 17401 CFLAGS="$CFLAGS -Werror" 17402 17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17404$as_echo_n "checking if $CC supports -Werror... " >&6; } 17405 cacheid=xorg_cv_cc_flag__Werror 17406 if eval \${$cacheid+:} false; then : 17407 $as_echo_n "(cached) " >&6 17408else 17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17410/* end confdefs.h. */ 17411int i; 17412int 17413main () 17414{ 17415 17416 ; 17417 return 0; 17418} 17419_ACEOF 17420if ac_fn_c_try_link "$LINENO"; then : 17421 eval $cacheid=yes 17422else 17423 eval $cacheid=no 17424fi 17425rm -f core conftest.err conftest.$ac_objext \ 17426 conftest$ac_exeext conftest.$ac_ext 17427fi 17428 17429 17430 CFLAGS="$xorg_testset_save_CFLAGS" 17431 17432 eval supported=\$$cacheid 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17434$as_echo "$supported" >&6; } 17435 if test "$supported" = "yes" ; then 17436 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17437 found="yes" 17438 fi 17439 fi 17440 17441 if test $found = "no" ; then 17442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17444 fi 17445 17446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17448 fi 17449 17450 CFLAGS="$CFLAGS -errwarn" 17451 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17453$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17454 cacheid=xorg_cv_cc_flag__errwarn 17455 if eval \${$cacheid+:} false; then : 17456 $as_echo_n "(cached) " >&6 17457else 17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17459/* end confdefs.h. */ 17460int i; 17461int 17462main () 17463{ 17464 17465 ; 17466 return 0; 17467} 17468_ACEOF 17469if ac_fn_c_try_link "$LINENO"; then : 17470 eval $cacheid=yes 17471else 17472 eval $cacheid=no 17473fi 17474rm -f core conftest.err conftest.$ac_objext \ 17475 conftest$ac_exeext conftest.$ac_ext 17476fi 17477 17478 17479 CFLAGS="$xorg_testset_save_CFLAGS" 17480 17481 eval supported=\$$cacheid 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17483$as_echo "$supported" >&6; } 17484 if test "$supported" = "yes" ; then 17485 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17486 found="yes" 17487 fi 17488 fi 17489 17490 17491 17492# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17493# activate it with -Werror, so we add it here explicitly. 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507xorg_testset_save_CFLAGS="$CFLAGS" 17508 17509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17514 $as_echo_n "(cached) " >&6 17515else 17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17517/* end confdefs.h. */ 17518int i; 17519_ACEOF 17520if ac_fn_c_try_compile "$LINENO"; then : 17521 xorg_cv_cc_flag_unknown_warning_option=yes 17522else 17523 xorg_cv_cc_flag_unknown_warning_option=no 17524fi 17525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17526fi 17527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17530 CFLAGS="$xorg_testset_save_CFLAGS" 17531fi 17532 17533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17536 fi 17537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17541 $as_echo_n "(cached) " >&6 17542else 17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17544/* end confdefs.h. */ 17545int i; 17546_ACEOF 17547if ac_fn_c_try_compile "$LINENO"; then : 17548 xorg_cv_cc_flag_unused_command_line_argument=yes 17549else 17550 xorg_cv_cc_flag_unused_command_line_argument=no 17551fi 17552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17553fi 17554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17557 CFLAGS="$xorg_testset_save_CFLAGS" 17558fi 17559 17560found="no" 17561 17562 if test $found = "no" ; then 17563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17565 fi 17566 17567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17569 fi 17570 17571 CFLAGS="$CFLAGS -Werror=attributes" 17572 17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17574$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17575 cacheid=xorg_cv_cc_flag__Werror_attributes 17576 if eval \${$cacheid+:} false; then : 17577 $as_echo_n "(cached) " >&6 17578else 17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17580/* end confdefs.h. */ 17581int i; 17582int 17583main () 17584{ 17585 17586 ; 17587 return 0; 17588} 17589_ACEOF 17590if ac_fn_c_try_link "$LINENO"; then : 17591 eval $cacheid=yes 17592else 17593 eval $cacheid=no 17594fi 17595rm -f core conftest.err conftest.$ac_objext \ 17596 conftest$ac_exeext conftest.$ac_ext 17597fi 17598 17599 17600 CFLAGS="$xorg_testset_save_CFLAGS" 17601 17602 eval supported=\$$cacheid 17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17604$as_echo "$supported" >&6; } 17605 if test "$supported" = "yes" ; then 17606 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17607 found="yes" 17608 fi 17609 fi 17610 17611 17612 17613if test "x$STRICT_COMPILE" = "xyes"; then 17614 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17615 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17616fi 17617 17618 17619 17620 17621 17622 17623cat >>confdefs.h <<_ACEOF 17624#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17625_ACEOF 17626 17627 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17628 if test "x$PVM" = "x"; then 17629 PVM="0" 17630 fi 17631 17632cat >>confdefs.h <<_ACEOF 17633#define PACKAGE_VERSION_MINOR $PVM 17634_ACEOF 17635 17636 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17637 if test "x$PVP" = "x"; then 17638 PVP="0" 17639 fi 17640 17641cat >>confdefs.h <<_ACEOF 17642#define PACKAGE_VERSION_PATCHLEVEL $PVP 17643_ACEOF 17644 17645 17646 17647CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17648mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17649|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17650echo 'git directory not found: installing possibly empty changelog.' >&2)" 17651 17652 17653 17654 17655macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17656INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17657mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17658|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17659echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17660 17661 17662 17663 17664 17665 17666if test x$APP_MAN_SUFFIX = x ; then 17667 APP_MAN_SUFFIX=1 17668fi 17669if test x$APP_MAN_DIR = x ; then 17670 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17671fi 17672 17673if test x$LIB_MAN_SUFFIX = x ; then 17674 LIB_MAN_SUFFIX=3 17675fi 17676if test x$LIB_MAN_DIR = x ; then 17677 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17678fi 17679 17680if test x$FILE_MAN_SUFFIX = x ; then 17681 case $host_os in 17682 # Solaris 2.0 - 11 use SysV man page sections 17683 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 17684 *) FILE_MAN_SUFFIX=5 ;; 17685 esac 17686fi 17687if test x$FILE_MAN_DIR = x ; then 17688 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17689fi 17690 17691if test x$MISC_MAN_SUFFIX = x ; then 17692 case $host_os in 17693 # Solaris 2.0 - 11 use SysV man page sections 17694 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 17695 *) MISC_MAN_SUFFIX=7 ;; 17696 esac 17697fi 17698if test x$MISC_MAN_DIR = x ; then 17699 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17700fi 17701 17702if test x$DRIVER_MAN_SUFFIX = x ; then 17703 case $host_os in 17704 # Solaris 2.0 - 11 use SysV man page sections 17705 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 17706 *) DRIVER_MAN_SUFFIX=4 ;; 17707 esac 17708fi 17709if test x$DRIVER_MAN_DIR = x ; then 17710 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17711fi 17712 17713if test x$ADMIN_MAN_SUFFIX = x ; then 17714 case $host_os in 17715 # Solaris 2.0 - 11 use SysV man page sections 17716 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 17717 *) ADMIN_MAN_SUFFIX=8 ;; 17718 esac 17719fi 17720if test x$ADMIN_MAN_DIR = x ; then 17721 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17722fi 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738XORG_MAN_PAGE="X Version 11" 17739 17740MAN_SUBSTS="\ 17741 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17742 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17743 -e 's|__xservername__|Xorg|g' \ 17744 -e 's|__xconfigfile__|xorg.conf|g' \ 17745 -e 's|__projectroot__|\$(prefix)|g' \ 17746 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17747 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17748 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17749 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17750 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17751 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17752 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17753 17754 17755 17756# Check whether --enable-silent-rules was given. 17757if test "${enable_silent_rules+set}" = set; then : 17758 enableval=$enable_silent_rules; 17759fi 17760 17761case $enable_silent_rules in # ((( 17762 yes) AM_DEFAULT_VERBOSITY=0;; 17763 no) AM_DEFAULT_VERBOSITY=1;; 17764 *) AM_DEFAULT_VERBOSITY=0;; 17765esac 17766am_make=${MAKE-make} 17767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17768$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17769if ${am_cv_make_support_nested_variables+:} false; then : 17770 $as_echo_n "(cached) " >&6 17771else 17772 if $as_echo 'TRUE=$(BAR$(V)) 17773BAR0=false 17774BAR1=true 17775V=1 17776am__doit: 17777 @$(TRUE) 17778.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17779 am_cv_make_support_nested_variables=yes 17780else 17781 am_cv_make_support_nested_variables=no 17782fi 17783fi 17784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17785$as_echo "$am_cv_make_support_nested_variables" >&6; } 17786if test $am_cv_make_support_nested_variables = yes; then 17787 AM_V='$(V)' 17788 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17789else 17790 AM_V=$AM_DEFAULT_VERBOSITY 17791 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17792fi 17793AM_BACKSLASH='\' 17794 17795 17796 17797# Check whether --enable-malloc0returnsnull was given. 17798if test "${enable_malloc0returnsnull+set}" = set; then : 17799 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17800else 17801 MALLOC_ZERO_RETURNS_NULL=auto 17802fi 17803 17804 17805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17806$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17807if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17808if ${xorg_cv_malloc0_returns_null+:} false; then : 17809 $as_echo_n "(cached) " >&6 17810else 17811 if test "$cross_compiling" = yes; then : 17812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17814as_fn_error $? "cannot run test program while cross compiling 17815See \`config.log' for more details" "$LINENO" 5; } 17816else 17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17818/* end confdefs.h. */ 17819 17820#include <stdlib.h> 17821 17822int 17823main () 17824{ 17825 17826 char *m0, *r0, *c0, *p; 17827 m0 = malloc(0); 17828 p = malloc(10); 17829 r0 = realloc(p,0); 17830 c0 = calloc(0,10); 17831 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17832 17833 ; 17834 return 0; 17835} 17836_ACEOF 17837if ac_fn_c_try_run "$LINENO"; then : 17838 xorg_cv_malloc0_returns_null=yes 17839else 17840 xorg_cv_malloc0_returns_null=no 17841fi 17842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17843 conftest.$ac_objext conftest.beam conftest.$ac_ext 17844fi 17845 17846fi 17847 17848MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 17849fi 17850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17851$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17852 17853if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17854 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17855 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17856 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17857else 17858 MALLOC_ZERO_CFLAGS="" 17859 XMALLOC_ZERO_CFLAGS="" 17860 XTMALLOC_ZERO_CFLAGS="" 17861fi 17862 17863 17864 17865 17866 17867 17868# Obtain compiler/linker options for depedencies 17869 17870pkg_failed=no 17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5 17872$as_echo_n "checking for XV... " >&6; } 17873 17874if test -n "$XV_CFLAGS"; then 17875 pkg_cv_XV_CFLAGS="$XV_CFLAGS" 17876 elif test -n "$PKG_CONFIG"; then 17877 if test -n "$PKG_CONFIG" && \ 17878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5 17879 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5 17880 ac_status=$? 17881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17882 test $ac_status = 0; }; then 17883 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null` 17884 test "x$?" != "x0" && pkg_failed=yes 17885else 17886 pkg_failed=yes 17887fi 17888 else 17889 pkg_failed=untried 17890fi 17891if test -n "$XV_LIBS"; then 17892 pkg_cv_XV_LIBS="$XV_LIBS" 17893 elif test -n "$PKG_CONFIG"; then 17894 if test -n "$PKG_CONFIG" && \ 17895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5 17896 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5 17897 ac_status=$? 17898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17899 test $ac_status = 0; }; then 17900 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null` 17901 test "x$?" != "x0" && pkg_failed=yes 17902else 17903 pkg_failed=yes 17904fi 17905 else 17906 pkg_failed=untried 17907fi 17908 17909 17910 17911if test $pkg_failed = yes; then 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17913$as_echo "no" >&6; } 17914 17915if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17916 _pkg_short_errors_supported=yes 17917else 17918 _pkg_short_errors_supported=no 17919fi 17920 if test $_pkg_short_errors_supported = yes; then 17921 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1` 17922 else 17923 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1` 17924 fi 17925 # Put the nasty error message in config.log where it belongs 17926 echo "$XV_PKG_ERRORS" >&5 17927 17928 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto videoproto) were not met: 17929 17930$XV_PKG_ERRORS 17931 17932Consider adjusting the PKG_CONFIG_PATH environment variable if you 17933installed software in a non-standard prefix. 17934 17935Alternatively, you may set the environment variables XV_CFLAGS 17936and XV_LIBS to avoid the need to call pkg-config. 17937See the pkg-config man page for more details." "$LINENO" 5 17938elif test $pkg_failed = untried; then 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17940$as_echo "no" >&6; } 17941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17943as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17944is in your PATH or set the PKG_CONFIG environment variable to the full 17945path to pkg-config. 17946 17947Alternatively, you may set the environment variables XV_CFLAGS 17948and XV_LIBS to avoid the need to call pkg-config. 17949See the pkg-config man page for more details. 17950 17951To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17952See \`config.log' for more details" "$LINENO" 5; } 17953else 17954 XV_CFLAGS=$pkg_cv_XV_CFLAGS 17955 XV_LIBS=$pkg_cv_XV_LIBS 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17957$as_echo "yes" >&6; } 17958 17959fi 17960 17961# Allow checking code with lint, sparse, etc. 17962 17963 17964 17965 17966 17967# Check whether --with-lint was given. 17968if test "${with_lint+set}" = set; then : 17969 withval=$with_lint; use_lint=$withval 17970else 17971 use_lint=no 17972fi 17973 17974 17975# Obtain platform specific info like program name and options 17976# The lint program on FreeBSD and NetBSD is different from the one on Solaris 17977case $host_os in 17978 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 17979 lint_name=splint 17980 lint_options="-badflag" 17981 ;; 17982 *freebsd* | *netbsd*) 17983 lint_name=lint 17984 lint_options="-u -b" 17985 ;; 17986 *solaris*) 17987 lint_name=lint 17988 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 17989 ;; 17990esac 17991 17992# Test for the presence of the program (either guessed by the code or spelled out by the user) 17993if test "x$use_lint" = x"yes" ; then 17994 # Extract the first word of "$lint_name", so it can be a program name with args. 17995set dummy $lint_name; ac_word=$2 17996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17997$as_echo_n "checking for $ac_word... " >&6; } 17998if ${ac_cv_path_LINT+:} false; then : 17999 $as_echo_n "(cached) " >&6 18000else 18001 case $LINT in 18002 [\\/]* | ?:[\\/]*) 18003 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18004 ;; 18005 *) 18006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18007for as_dir in $PATH 18008do 18009 IFS=$as_save_IFS 18010 test -z "$as_dir" && as_dir=. 18011 for ac_exec_ext in '' $ac_executable_extensions; do 18012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18013 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18015 break 2 18016 fi 18017done 18018 done 18019IFS=$as_save_IFS 18020 18021 ;; 18022esac 18023fi 18024LINT=$ac_cv_path_LINT 18025if test -n "$LINT"; then 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18027$as_echo "$LINT" >&6; } 18028else 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18030$as_echo "no" >&6; } 18031fi 18032 18033 18034 if test "x$LINT" = "x"; then 18035 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18036 fi 18037elif test "x$use_lint" = x"no" ; then 18038 if test "x$LINT" != "x"; then 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18040$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18041 fi 18042else 18043 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18044fi 18045 18046# User supplied flags override default flags 18047if test "x$LINT_FLAGS" != "x"; then 18048 lint_options=$LINT_FLAGS 18049fi 18050 18051LINT_FLAGS=$lint_options 18052 18053 if test "x$LINT" != x; then 18054 LINT_TRUE= 18055 LINT_FALSE='#' 18056else 18057 LINT_TRUE='#' 18058 LINT_FALSE= 18059fi 18060 18061 18062 18063 18064 18065# Check whether --enable-lint-library was given. 18066if test "${enable_lint_library+set}" = set; then : 18067 enableval=$enable_lint_library; make_lint_lib=$enableval 18068else 18069 make_lint_lib=no 18070fi 18071 18072 18073if test "x$make_lint_lib" = x"yes" ; then 18074 LINTLIB=llib-lXv.ln 18075 if test "x$LINT" = "x"; then 18076 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18077 fi 18078elif test "x$make_lint_lib" != x"no" ; then 18079 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18080fi 18081 18082 18083 if test x$make_lint_lib != xno; then 18084 MAKE_LINT_LIB_TRUE= 18085 MAKE_LINT_LIB_FALSE='#' 18086else 18087 MAKE_LINT_LIB_TRUE='#' 18088 MAKE_LINT_LIB_FALSE= 18089fi 18090 18091 18092 18093 18094ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc" 18095 18096cat >confcache <<\_ACEOF 18097# This file is a shell script that caches the results of configure 18098# tests run on this system so they can be shared between configure 18099# scripts and configure runs, see configure's option --config-cache. 18100# It is not useful on other systems. If it contains results you don't 18101# want to keep, you may remove or edit it. 18102# 18103# config.status only pays attention to the cache file if you give it 18104# the --recheck option to rerun configure. 18105# 18106# `ac_cv_env_foo' variables (set or unset) will be overridden when 18107# loading this file, other *unset* `ac_cv_foo' will be assigned the 18108# following values. 18109 18110_ACEOF 18111 18112# The following way of writing the cache mishandles newlines in values, 18113# but we know of no workaround that is simple, portable, and efficient. 18114# So, we kill variables containing newlines. 18115# Ultrix sh set writes to stderr and can't be redirected directly, 18116# and sets the high bit in the cache file unless we assign to the vars. 18117( 18118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18119 eval ac_val=\$$ac_var 18120 case $ac_val in #( 18121 *${as_nl}*) 18122 case $ac_var in #( 18123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18124$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18125 esac 18126 case $ac_var in #( 18127 _ | IFS | as_nl) ;; #( 18128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18129 *) { eval $ac_var=; unset $ac_var;} ;; 18130 esac ;; 18131 esac 18132 done 18133 18134 (set) 2>&1 | 18135 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18136 *${as_nl}ac_space=\ *) 18137 # `set' does not quote correctly, so add quotes: double-quote 18138 # substitution turns \\\\ into \\, and sed turns \\ into \. 18139 sed -n \ 18140 "s/'/'\\\\''/g; 18141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18142 ;; #( 18143 *) 18144 # `set' quotes correctly as required by POSIX, so do not add quotes. 18145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18146 ;; 18147 esac | 18148 sort 18149) | 18150 sed ' 18151 /^ac_cv_env_/b end 18152 t clear 18153 :clear 18154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18155 t end 18156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18157 :end' >>confcache 18158if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18159 if test -w "$cache_file"; then 18160 if test "x$cache_file" != "x/dev/null"; then 18161 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18162$as_echo "$as_me: updating cache $cache_file" >&6;} 18163 if test ! -f "$cache_file" || test -h "$cache_file"; then 18164 cat confcache >"$cache_file" 18165 else 18166 case $cache_file in #( 18167 */* | ?:*) 18168 mv -f confcache "$cache_file"$$ && 18169 mv -f "$cache_file"$$ "$cache_file" ;; #( 18170 *) 18171 mv -f confcache "$cache_file" ;; 18172 esac 18173 fi 18174 fi 18175 else 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18177$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18178 fi 18179fi 18180rm -f confcache 18181 18182test "x$prefix" = xNONE && prefix=$ac_default_prefix 18183# Let make expand exec_prefix. 18184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18185 18186DEFS=-DHAVE_CONFIG_H 18187 18188ac_libobjs= 18189ac_ltlibobjs= 18190U= 18191for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18192 # 1. Remove the extension, and $U if already installed. 18193 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18194 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18195 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18196 # will be set to the directory where LIBOBJS objects are built. 18197 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18198 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18199done 18200LIBOBJS=$ac_libobjs 18201 18202LTLIBOBJS=$ac_ltlibobjs 18203 18204 18205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18206$as_echo_n "checking that generated files are newer than configure... " >&6; } 18207 if test -n "$am_sleep_pid"; then 18208 # Hide warnings about reused PIDs. 18209 wait $am_sleep_pid 2>/dev/null 18210 fi 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18212$as_echo "done" >&6; } 18213 if test -n "$EXEEXT"; then 18214 am__EXEEXT_TRUE= 18215 am__EXEEXT_FALSE='#' 18216else 18217 am__EXEEXT_TRUE='#' 18218 am__EXEEXT_FALSE= 18219fi 18220 18221if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18222 as_fn_error $? "conditional \"AMDEP\" was never defined. 18223Usually this means the macro was only invoked conditionally." "$LINENO" 5 18224fi 18225if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18226 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18227Usually this means the macro was only invoked conditionally." "$LINENO" 5 18228fi 18229if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18230 as_fn_error $? "conditional \"LINT\" was never defined. 18231Usually this means the macro was only invoked conditionally." "$LINENO" 5 18232fi 18233if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18234 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18235Usually this means the macro was only invoked conditionally." "$LINENO" 5 18236fi 18237 18238: "${CONFIG_STATUS=./config.status}" 18239ac_write_fail=0 18240ac_clean_files_save=$ac_clean_files 18241ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18242{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18243$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18244as_write_fail=0 18245cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18246#! $SHELL 18247# Generated by $as_me. 18248# Run this file to recreate the current configuration. 18249# Compiler output produced by configure, useful for debugging 18250# configure, is in config.log if it exists. 18251 18252debug=false 18253ac_cs_recheck=false 18254ac_cs_silent=false 18255 18256SHELL=\${CONFIG_SHELL-$SHELL} 18257export SHELL 18258_ASEOF 18259cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18260## -------------------- ## 18261## M4sh Initialization. ## 18262## -------------------- ## 18263 18264# Be more Bourne compatible 18265DUALCASE=1; export DUALCASE # for MKS sh 18266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18267 emulate sh 18268 NULLCMD=: 18269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18270 # is contrary to our usage. Disable this feature. 18271 alias -g '${1+"$@"}'='"$@"' 18272 setopt NO_GLOB_SUBST 18273else 18274 case `(set -o) 2>/dev/null` in #( 18275 *posix*) : 18276 set -o posix ;; #( 18277 *) : 18278 ;; 18279esac 18280fi 18281 18282 18283as_nl=' 18284' 18285export as_nl 18286# Printing a long string crashes Solaris 7 /usr/bin/printf. 18287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18290# Prefer a ksh shell builtin over an external printf program on Solaris, 18291# but without wasting forks for bash or zsh. 18292if test -z "$BASH_VERSION$ZSH_VERSION" \ 18293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18294 as_echo='print -r --' 18295 as_echo_n='print -rn --' 18296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18297 as_echo='printf %s\n' 18298 as_echo_n='printf %s' 18299else 18300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18302 as_echo_n='/usr/ucb/echo -n' 18303 else 18304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18305 as_echo_n_body='eval 18306 arg=$1; 18307 case $arg in #( 18308 *"$as_nl"*) 18309 expr "X$arg" : "X\\(.*\\)$as_nl"; 18310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18311 esac; 18312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18313 ' 18314 export as_echo_n_body 18315 as_echo_n='sh -c $as_echo_n_body as_echo' 18316 fi 18317 export as_echo_body 18318 as_echo='sh -c $as_echo_body as_echo' 18319fi 18320 18321# The user is always right. 18322if test "${PATH_SEPARATOR+set}" != set; then 18323 PATH_SEPARATOR=: 18324 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18325 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18326 PATH_SEPARATOR=';' 18327 } 18328fi 18329 18330 18331# IFS 18332# We need space, tab and new line, in precisely that order. Quoting is 18333# there to prevent editors from complaining about space-tab. 18334# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18335# splitting by setting IFS to empty value.) 18336IFS=" "" $as_nl" 18337 18338# Find who we are. Look in the path if we contain no directory separator. 18339as_myself= 18340case $0 in #(( 18341 *[\\/]* ) as_myself=$0 ;; 18342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18343for as_dir in $PATH 18344do 18345 IFS=$as_save_IFS 18346 test -z "$as_dir" && as_dir=. 18347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18348 done 18349IFS=$as_save_IFS 18350 18351 ;; 18352esac 18353# We did not find ourselves, most probably we were run as `sh COMMAND' 18354# in which case we are not to be found in the path. 18355if test "x$as_myself" = x; then 18356 as_myself=$0 18357fi 18358if test ! -f "$as_myself"; then 18359 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18360 exit 1 18361fi 18362 18363# Unset variables that we do not need and which cause bugs (e.g. in 18364# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18365# suppresses any "Segmentation fault" message there. '((' could 18366# trigger a bug in pdksh 5.2.14. 18367for as_var in BASH_ENV ENV MAIL MAILPATH 18368do eval test x\${$as_var+set} = xset \ 18369 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18370done 18371PS1='$ ' 18372PS2='> ' 18373PS4='+ ' 18374 18375# NLS nuisances. 18376LC_ALL=C 18377export LC_ALL 18378LANGUAGE=C 18379export LANGUAGE 18380 18381# CDPATH. 18382(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18383 18384 18385# as_fn_error STATUS ERROR [LINENO LOG_FD] 18386# ---------------------------------------- 18387# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18388# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18389# script with STATUS, using 1 if that was 0. 18390as_fn_error () 18391{ 18392 as_status=$1; test $as_status -eq 0 && as_status=1 18393 if test "$4"; then 18394 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18395 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18396 fi 18397 $as_echo "$as_me: error: $2" >&2 18398 as_fn_exit $as_status 18399} # as_fn_error 18400 18401 18402# as_fn_set_status STATUS 18403# ----------------------- 18404# Set $? to STATUS, without forking. 18405as_fn_set_status () 18406{ 18407 return $1 18408} # as_fn_set_status 18409 18410# as_fn_exit STATUS 18411# ----------------- 18412# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18413as_fn_exit () 18414{ 18415 set +e 18416 as_fn_set_status $1 18417 exit $1 18418} # as_fn_exit 18419 18420# as_fn_unset VAR 18421# --------------- 18422# Portably unset VAR. 18423as_fn_unset () 18424{ 18425 { eval $1=; unset $1;} 18426} 18427as_unset=as_fn_unset 18428# as_fn_append VAR VALUE 18429# ---------------------- 18430# Append the text in VALUE to the end of the definition contained in VAR. Take 18431# advantage of any shell optimizations that allow amortized linear growth over 18432# repeated appends, instead of the typical quadratic growth present in naive 18433# implementations. 18434if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18435 eval 'as_fn_append () 18436 { 18437 eval $1+=\$2 18438 }' 18439else 18440 as_fn_append () 18441 { 18442 eval $1=\$$1\$2 18443 } 18444fi # as_fn_append 18445 18446# as_fn_arith ARG... 18447# ------------------ 18448# Perform arithmetic evaluation on the ARGs, and store the result in the 18449# global $as_val. Take advantage of shells that can avoid forks. The arguments 18450# must be portable across $(()) and expr. 18451if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18452 eval 'as_fn_arith () 18453 { 18454 as_val=$(( $* )) 18455 }' 18456else 18457 as_fn_arith () 18458 { 18459 as_val=`expr "$@" || test $? -eq 1` 18460 } 18461fi # as_fn_arith 18462 18463 18464if expr a : '\(a\)' >/dev/null 2>&1 && 18465 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18466 as_expr=expr 18467else 18468 as_expr=false 18469fi 18470 18471if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18472 as_basename=basename 18473else 18474 as_basename=false 18475fi 18476 18477if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18478 as_dirname=dirname 18479else 18480 as_dirname=false 18481fi 18482 18483as_me=`$as_basename -- "$0" || 18484$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18485 X"$0" : 'X\(//\)$' \| \ 18486 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18487$as_echo X/"$0" | 18488 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18489 s//\1/ 18490 q 18491 } 18492 /^X\/\(\/\/\)$/{ 18493 s//\1/ 18494 q 18495 } 18496 /^X\/\(\/\).*/{ 18497 s//\1/ 18498 q 18499 } 18500 s/.*/./; q'` 18501 18502# Avoid depending upon Character Ranges. 18503as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18505as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18506as_cr_digits='0123456789' 18507as_cr_alnum=$as_cr_Letters$as_cr_digits 18508 18509ECHO_C= ECHO_N= ECHO_T= 18510case `echo -n x` in #((((( 18511-n*) 18512 case `echo 'xy\c'` in 18513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18514 xy) ECHO_C='\c';; 18515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18516 ECHO_T=' ';; 18517 esac;; 18518*) 18519 ECHO_N='-n';; 18520esac 18521 18522rm -f conf$$ conf$$.exe conf$$.file 18523if test -d conf$$.dir; then 18524 rm -f conf$$.dir/conf$$.file 18525else 18526 rm -f conf$$.dir 18527 mkdir conf$$.dir 2>/dev/null 18528fi 18529if (echo >conf$$.file) 2>/dev/null; then 18530 if ln -s conf$$.file conf$$ 2>/dev/null; then 18531 as_ln_s='ln -s' 18532 # ... but there are two gotchas: 18533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18535 # In both cases, we have to default to `cp -pR'. 18536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18537 as_ln_s='cp -pR' 18538 elif ln conf$$.file conf$$ 2>/dev/null; then 18539 as_ln_s=ln 18540 else 18541 as_ln_s='cp -pR' 18542 fi 18543else 18544 as_ln_s='cp -pR' 18545fi 18546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18547rmdir conf$$.dir 2>/dev/null 18548 18549 18550# as_fn_mkdir_p 18551# ------------- 18552# Create "$as_dir" as a directory, including parents if necessary. 18553as_fn_mkdir_p () 18554{ 18555 18556 case $as_dir in #( 18557 -*) as_dir=./$as_dir;; 18558 esac 18559 test -d "$as_dir" || eval $as_mkdir_p || { 18560 as_dirs= 18561 while :; do 18562 case $as_dir in #( 18563 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18564 *) as_qdir=$as_dir;; 18565 esac 18566 as_dirs="'$as_qdir' $as_dirs" 18567 as_dir=`$as_dirname -- "$as_dir" || 18568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18569 X"$as_dir" : 'X\(//\)[^/]' \| \ 18570 X"$as_dir" : 'X\(//\)$' \| \ 18571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18572$as_echo X"$as_dir" | 18573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18574 s//\1/ 18575 q 18576 } 18577 /^X\(\/\/\)[^/].*/{ 18578 s//\1/ 18579 q 18580 } 18581 /^X\(\/\/\)$/{ 18582 s//\1/ 18583 q 18584 } 18585 /^X\(\/\).*/{ 18586 s//\1/ 18587 q 18588 } 18589 s/.*/./; q'` 18590 test -d "$as_dir" && break 18591 done 18592 test -z "$as_dirs" || eval "mkdir $as_dirs" 18593 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18594 18595 18596} # as_fn_mkdir_p 18597if mkdir -p . 2>/dev/null; then 18598 as_mkdir_p='mkdir -p "$as_dir"' 18599else 18600 test -d ./-p && rmdir ./-p 18601 as_mkdir_p=false 18602fi 18603 18604 18605# as_fn_executable_p FILE 18606# ----------------------- 18607# Test if FILE is an executable regular file. 18608as_fn_executable_p () 18609{ 18610 test -f "$1" && test -x "$1" 18611} # as_fn_executable_p 18612as_test_x='test -x' 18613as_executable_p=as_fn_executable_p 18614 18615# Sed expression to map a string onto a valid CPP name. 18616as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18617 18618# Sed expression to map a string onto a valid variable name. 18619as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18620 18621 18622exec 6>&1 18623## ----------------------------------- ## 18624## Main body of $CONFIG_STATUS script. ## 18625## ----------------------------------- ## 18626_ASEOF 18627test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18628 18629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18630# Save the log message, to keep $0 and so on meaningful, and to 18631# report actual input values of CONFIG_FILES etc. instead of their 18632# values after options handling. 18633ac_log=" 18634This file was extended by libXv $as_me 1.0.11, which was 18635generated by GNU Autoconf 2.69. Invocation command line was 18636 18637 CONFIG_FILES = $CONFIG_FILES 18638 CONFIG_HEADERS = $CONFIG_HEADERS 18639 CONFIG_LINKS = $CONFIG_LINKS 18640 CONFIG_COMMANDS = $CONFIG_COMMANDS 18641 $ $0 $@ 18642 18643on `(hostname || uname -n) 2>/dev/null | sed 1q` 18644" 18645 18646_ACEOF 18647 18648case $ac_config_files in *" 18649"*) set x $ac_config_files; shift; ac_config_files=$*;; 18650esac 18651 18652case $ac_config_headers in *" 18653"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18654esac 18655 18656 18657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18658# Files that config.status was made for. 18659config_files="$ac_config_files" 18660config_headers="$ac_config_headers" 18661config_commands="$ac_config_commands" 18662 18663_ACEOF 18664 18665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18666ac_cs_usage="\ 18667\`$as_me' instantiates files and other configuration actions 18668from templates according to the current configuration. Unless the files 18669and actions are specified as TAGs, all are instantiated by default. 18670 18671Usage: $0 [OPTION]... [TAG]... 18672 18673 -h, --help print this help, then exit 18674 -V, --version print version number and configuration settings, then exit 18675 --config print configuration, then exit 18676 -q, --quiet, --silent 18677 do not print progress messages 18678 -d, --debug don't remove temporary files 18679 --recheck update $as_me by reconfiguring in the same conditions 18680 --file=FILE[:TEMPLATE] 18681 instantiate the configuration file FILE 18682 --header=FILE[:TEMPLATE] 18683 instantiate the configuration header FILE 18684 18685Configuration files: 18686$config_files 18687 18688Configuration headers: 18689$config_headers 18690 18691Configuration commands: 18692$config_commands 18693 18694Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18695 18696_ACEOF 18697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18698ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18699ac_cs_version="\\ 18700libXv config.status 1.0.11 18701configured by $0, generated by GNU Autoconf 2.69, 18702 with options \\"\$ac_cs_config\\" 18703 18704Copyright (C) 2012 Free Software Foundation, Inc. 18705This config.status script is free software; the Free Software Foundation 18706gives unlimited permission to copy, distribute and modify it." 18707 18708ac_pwd='$ac_pwd' 18709srcdir='$srcdir' 18710INSTALL='$INSTALL' 18711MKDIR_P='$MKDIR_P' 18712AWK='$AWK' 18713test -n "\$AWK" || AWK=awk 18714_ACEOF 18715 18716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18717# The default lists apply if the user does not specify any file. 18718ac_need_defaults=: 18719while test $# != 0 18720do 18721 case $1 in 18722 --*=?*) 18723 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18725 ac_shift=: 18726 ;; 18727 --*=) 18728 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18729 ac_optarg= 18730 ac_shift=: 18731 ;; 18732 *) 18733 ac_option=$1 18734 ac_optarg=$2 18735 ac_shift=shift 18736 ;; 18737 esac 18738 18739 case $ac_option in 18740 # Handling of the options. 18741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18742 ac_cs_recheck=: ;; 18743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18744 $as_echo "$ac_cs_version"; exit ;; 18745 --config | --confi | --conf | --con | --co | --c ) 18746 $as_echo "$ac_cs_config"; exit ;; 18747 --debug | --debu | --deb | --de | --d | -d ) 18748 debug=: ;; 18749 --file | --fil | --fi | --f ) 18750 $ac_shift 18751 case $ac_optarg in 18752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18753 '') as_fn_error $? "missing file argument" ;; 18754 esac 18755 as_fn_append CONFIG_FILES " '$ac_optarg'" 18756 ac_need_defaults=false;; 18757 --header | --heade | --head | --hea ) 18758 $ac_shift 18759 case $ac_optarg in 18760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18761 esac 18762 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18763 ac_need_defaults=false;; 18764 --he | --h) 18765 # Conflict between --help and --header 18766 as_fn_error $? "ambiguous option: \`$1' 18767Try \`$0 --help' for more information.";; 18768 --help | --hel | -h ) 18769 $as_echo "$ac_cs_usage"; exit ;; 18770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18771 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18772 ac_cs_silent=: ;; 18773 18774 # This is an error. 18775 -*) as_fn_error $? "unrecognized option: \`$1' 18776Try \`$0 --help' for more information." ;; 18777 18778 *) as_fn_append ac_config_targets " $1" 18779 ac_need_defaults=false ;; 18780 18781 esac 18782 shift 18783done 18784 18785ac_configure_extra_args= 18786 18787if $ac_cs_silent; then 18788 exec 6>/dev/null 18789 ac_configure_extra_args="$ac_configure_extra_args --silent" 18790fi 18791 18792_ACEOF 18793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18794if \$ac_cs_recheck; then 18795 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18796 shift 18797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18798 CONFIG_SHELL='$SHELL' 18799 export CONFIG_SHELL 18800 exec "\$@" 18801fi 18802 18803_ACEOF 18804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18805exec 5>>config.log 18806{ 18807 echo 18808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18809## Running $as_me. ## 18810_ASBOX 18811 $as_echo "$ac_log" 18812} >&5 18813 18814_ACEOF 18815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18816# 18817# INIT-COMMANDS 18818# 18819AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18820 18821 18822# The HP-UX ksh and POSIX shell print the target directory to stdout 18823# if CDPATH is set. 18824(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18825 18826sed_quote_subst='$sed_quote_subst' 18827double_quote_subst='$double_quote_subst' 18828delay_variable_subst='$delay_variable_subst' 18829macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18830macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18831enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18832enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18833pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18834enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18835SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18836ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18837PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18838host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18839host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18840host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18841build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18842build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18843build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18844SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18845Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18846GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18847EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18848FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18849LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18850NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18851LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18852max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18853ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18854exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18855lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18856lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18857lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18858lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18859lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18860reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18861reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18862OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18863deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18864file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18865file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18866want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18867DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18868sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18869AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18870AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18871archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18872STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18873RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18874old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18875old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18876old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18877lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18878CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18879CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18880compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18881GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18882lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18883lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18884lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18885lt_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"`' 18886nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18887lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18888objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18889MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18890lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18891lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18892lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18893lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18894lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18895need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18896MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18897DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18898NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18899LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18900OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18901OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18902libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18903shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18904extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18905archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18906enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18907export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18908whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18909compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18910old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18911old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18912archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18913archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18914module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18915module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18916with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18917allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18918no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18919hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18920hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18921hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18922hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18923hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18924hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18925hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18926inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18927link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18928always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18929export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18930exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18931include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18932prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18933postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18934file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18935variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18936need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18937need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18938version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18939runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18940shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18941shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18942libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18943library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18944soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18945install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18946postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18947postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18948finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18949finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18950hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18951sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18952sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18953hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18954enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18955enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18956enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18957old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18958striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18959 18960LTCC='$LTCC' 18961LTCFLAGS='$LTCFLAGS' 18962compiler='$compiler_DEFAULT' 18963 18964# A function that is used when there is no print builtin or printf. 18965func_fallback_echo () 18966{ 18967 eval 'cat <<_LTECHO_EOF 18968\$1 18969_LTECHO_EOF' 18970} 18971 18972# Quote evaled strings. 18973for var in SHELL \ 18974ECHO \ 18975PATH_SEPARATOR \ 18976SED \ 18977GREP \ 18978EGREP \ 18979FGREP \ 18980LD \ 18981NM \ 18982LN_S \ 18983lt_SP2NL \ 18984lt_NL2SP \ 18985reload_flag \ 18986OBJDUMP \ 18987deplibs_check_method \ 18988file_magic_cmd \ 18989file_magic_glob \ 18990want_nocaseglob \ 18991DLLTOOL \ 18992sharedlib_from_linklib_cmd \ 18993AR \ 18994AR_FLAGS \ 18995archiver_list_spec \ 18996STRIP \ 18997RANLIB \ 18998CC \ 18999CFLAGS \ 19000compiler \ 19001lt_cv_sys_global_symbol_pipe \ 19002lt_cv_sys_global_symbol_to_cdecl \ 19003lt_cv_sys_global_symbol_to_c_name_address \ 19004lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19005nm_file_list_spec \ 19006lt_prog_compiler_no_builtin_flag \ 19007lt_prog_compiler_pic \ 19008lt_prog_compiler_wl \ 19009lt_prog_compiler_static \ 19010lt_cv_prog_compiler_c_o \ 19011need_locks \ 19012MANIFEST_TOOL \ 19013DSYMUTIL \ 19014NMEDIT \ 19015LIPO \ 19016OTOOL \ 19017OTOOL64 \ 19018shrext_cmds \ 19019export_dynamic_flag_spec \ 19020whole_archive_flag_spec \ 19021compiler_needs_object \ 19022with_gnu_ld \ 19023allow_undefined_flag \ 19024no_undefined_flag \ 19025hardcode_libdir_flag_spec \ 19026hardcode_libdir_separator \ 19027exclude_expsyms \ 19028include_expsyms \ 19029file_list_spec \ 19030variables_saved_for_relink \ 19031libname_spec \ 19032library_names_spec \ 19033soname_spec \ 19034install_override_mode \ 19035finish_eval \ 19036old_striplib \ 19037striplib; do 19038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19039 *[\\\\\\\`\\"\\\$]*) 19040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19041 ;; 19042 *) 19043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19044 ;; 19045 esac 19046done 19047 19048# Double-quote double-evaled strings. 19049for var in reload_cmds \ 19050old_postinstall_cmds \ 19051old_postuninstall_cmds \ 19052old_archive_cmds \ 19053extract_expsyms_cmds \ 19054old_archive_from_new_cmds \ 19055old_archive_from_expsyms_cmds \ 19056archive_cmds \ 19057archive_expsym_cmds \ 19058module_cmds \ 19059module_expsym_cmds \ 19060export_symbols_cmds \ 19061prelink_cmds \ 19062postlink_cmds \ 19063postinstall_cmds \ 19064postuninstall_cmds \ 19065finish_cmds \ 19066sys_lib_search_path_spec \ 19067sys_lib_dlsearch_path_spec; do 19068 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19069 *[\\\\\\\`\\"\\\$]*) 19070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19071 ;; 19072 *) 19073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19074 ;; 19075 esac 19076done 19077 19078ac_aux_dir='$ac_aux_dir' 19079xsi_shell='$xsi_shell' 19080lt_shell_append='$lt_shell_append' 19081 19082# See if we are running on zsh, and set the options which allow our 19083# commands through without removal of \ escapes INIT. 19084if test -n "\${ZSH_VERSION+set}" ; then 19085 setopt NO_GLOB_SUBST 19086fi 19087 19088 19089 PACKAGE='$PACKAGE' 19090 VERSION='$VERSION' 19091 TIMESTAMP='$TIMESTAMP' 19092 RM='$RM' 19093 ofile='$ofile' 19094 19095 19096 19097 19098_ACEOF 19099 19100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19101 19102# Handling of arguments. 19103for ac_config_target in $ac_config_targets 19104do 19105 case $ac_config_target in 19106 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19107 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19108 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19110 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19111 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;; 19112 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;; 19113 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19114 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19115 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;; 19116 19117 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19118 esac 19119done 19120 19121 19122# If the user did not use the arguments to specify the items to instantiate, 19123# then the envvar interface is used. Set only those that are not. 19124# We use the long form for the default assignment because of an extremely 19125# bizarre bug on SunOS 4.1.3. 19126if $ac_need_defaults; then 19127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19130fi 19131 19132# Have a temporary directory for convenience. Make it in the build tree 19133# simply because there is no reason against having it here, and in addition, 19134# creating and moving files from /tmp can sometimes cause problems. 19135# Hook for its removal unless debugging. 19136# Note that there is a small window in which the directory will not be cleaned: 19137# after its creation but before its name has been assigned to `$tmp'. 19138$debug || 19139{ 19140 tmp= ac_tmp= 19141 trap 'exit_status=$? 19142 : "${ac_tmp:=$tmp}" 19143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19144' 0 19145 trap 'as_fn_exit 1' 1 2 13 15 19146} 19147# Create a (secure) tmp directory for tmp files. 19148 19149{ 19150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19151 test -d "$tmp" 19152} || 19153{ 19154 tmp=./conf$$-$RANDOM 19155 (umask 077 && mkdir "$tmp") 19156} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19157ac_tmp=$tmp 19158 19159# Set up the scripts for CONFIG_FILES section. 19160# No need to generate them if there are no CONFIG_FILES. 19161# This happens for instance with `./config.status config.h'. 19162if test -n "$CONFIG_FILES"; then 19163 19164 19165ac_cr=`echo X | tr X '\015'` 19166# On cygwin, bash can eat \r inside `` if the user requested igncr. 19167# But we know of no other shell where ac_cr would be empty at this 19168# point, so we can use a bashism as a fallback. 19169if test "x$ac_cr" = x; then 19170 eval ac_cr=\$\'\\r\' 19171fi 19172ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19173if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19174 ac_cs_awk_cr='\\r' 19175else 19176 ac_cs_awk_cr=$ac_cr 19177fi 19178 19179echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19180_ACEOF 19181 19182 19183{ 19184 echo "cat >conf$$subs.awk <<_ACEOF" && 19185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19186 echo "_ACEOF" 19187} >conf$$subs.sh || 19188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19189ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19190ac_delim='%!_!# ' 19191for ac_last_try in false false false false false :; do 19192 . ./conf$$subs.sh || 19193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19194 19195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19196 if test $ac_delim_n = $ac_delim_num; then 19197 break 19198 elif $ac_last_try; then 19199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19200 else 19201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19202 fi 19203done 19204rm -f conf$$subs.sh 19205 19206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19207cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19208_ACEOF 19209sed -n ' 19210h 19211s/^/S["/; s/!.*/"]=/ 19212p 19213g 19214s/^[^!]*!// 19215:repl 19216t repl 19217s/'"$ac_delim"'$// 19218t delim 19219:nl 19220h 19221s/\(.\{148\}\)..*/\1/ 19222t more1 19223s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19224p 19225n 19226b repl 19227:more1 19228s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19229p 19230g 19231s/.\{148\}// 19232t nl 19233:delim 19234h 19235s/\(.\{148\}\)..*/\1/ 19236t more2 19237s/["\\]/\\&/g; s/^/"/; s/$/"/ 19238p 19239b 19240:more2 19241s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19242p 19243g 19244s/.\{148\}// 19245t delim 19246' <conf$$subs.awk | sed ' 19247/^[^""]/{ 19248 N 19249 s/\n// 19250} 19251' >>$CONFIG_STATUS || ac_write_fail=1 19252rm -f conf$$subs.awk 19253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19254_ACAWK 19255cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19256 for (key in S) S_is_set[key] = 1 19257 FS = "" 19258 19259} 19260{ 19261 line = $ 0 19262 nfields = split(line, field, "@") 19263 substed = 0 19264 len = length(field[1]) 19265 for (i = 2; i < nfields; i++) { 19266 key = field[i] 19267 keylen = length(key) 19268 if (S_is_set[key]) { 19269 value = S[key] 19270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19271 len += length(value) + length(field[++i]) 19272 substed = 1 19273 } else 19274 len += 1 + keylen 19275 } 19276 19277 print line 19278} 19279 19280_ACAWK 19281_ACEOF 19282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19283if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19285else 19286 cat 19287fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19289_ACEOF 19290 19291# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19292# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19293# trailing colons and then remove the whole line if VPATH becomes empty 19294# (actually we leave an empty line to preserve line numbers). 19295if test "x$srcdir" = x.; then 19296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19297h 19298s/// 19299s/^/:/ 19300s/[ ]*$/:/ 19301s/:\$(srcdir):/:/g 19302s/:\${srcdir}:/:/g 19303s/:@srcdir@:/:/g 19304s/^:*// 19305s/:*$// 19306x 19307s/\(=[ ]*\).*/\1/ 19308G 19309s/\n// 19310s/^[^=]*=[ ]*$// 19311}' 19312fi 19313 19314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19315fi # test -n "$CONFIG_FILES" 19316 19317# Set up the scripts for CONFIG_HEADERS section. 19318# No need to generate them if there are no CONFIG_HEADERS. 19319# This happens for instance with `./config.status Makefile'. 19320if test -n "$CONFIG_HEADERS"; then 19321cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19322BEGIN { 19323_ACEOF 19324 19325# Transform confdefs.h into an awk script `defines.awk', embedded as 19326# here-document in config.status, that substitutes the proper values into 19327# config.h.in to produce config.h. 19328 19329# Create a delimiter string that does not exist in confdefs.h, to ease 19330# handling of long lines. 19331ac_delim='%!_!# ' 19332for ac_last_try in false false :; do 19333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19334 if test -z "$ac_tt"; then 19335 break 19336 elif $ac_last_try; then 19337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19338 else 19339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19340 fi 19341done 19342 19343# For the awk script, D is an array of macro values keyed by name, 19344# likewise P contains macro parameters if any. Preserve backslash 19345# newline sequences. 19346 19347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19348sed -n ' 19349s/.\{148\}/&'"$ac_delim"'/g 19350t rset 19351:rset 19352s/^[ ]*#[ ]*define[ ][ ]*/ / 19353t def 19354d 19355:def 19356s/\\$// 19357t bsnl 19358s/["\\]/\\&/g 19359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19360D["\1"]=" \3"/p 19361s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19362d 19363:bsnl 19364s/["\\]/\\&/g 19365s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19366D["\1"]=" \3\\\\\\n"\\/p 19367t cont 19368s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19369t cont 19370d 19371:cont 19372n 19373s/.\{148\}/&'"$ac_delim"'/g 19374t clear 19375:clear 19376s/\\$// 19377t bsnlc 19378s/["\\]/\\&/g; s/^/"/; s/$/"/p 19379d 19380:bsnlc 19381s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19382b cont 19383' <confdefs.h | sed ' 19384s/'"$ac_delim"'/"\\\ 19385"/g' >>$CONFIG_STATUS || ac_write_fail=1 19386 19387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19388 for (key in D) D_is_set[key] = 1 19389 FS = "" 19390} 19391/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19392 line = \$ 0 19393 split(line, arg, " ") 19394 if (arg[1] == "#") { 19395 defundef = arg[2] 19396 mac1 = arg[3] 19397 } else { 19398 defundef = substr(arg[1], 2) 19399 mac1 = arg[2] 19400 } 19401 split(mac1, mac2, "(") #) 19402 macro = mac2[1] 19403 prefix = substr(line, 1, index(line, defundef) - 1) 19404 if (D_is_set[macro]) { 19405 # Preserve the white space surrounding the "#". 19406 print prefix "define", macro P[macro] D[macro] 19407 next 19408 } else { 19409 # Replace #undef with comments. This is necessary, for example, 19410 # in the case of _POSIX_SOURCE, which is predefined and required 19411 # on some systems where configure will not decide to define it. 19412 if (defundef == "undef") { 19413 print "/*", prefix defundef, macro, "*/" 19414 next 19415 } 19416 } 19417} 19418{ print } 19419_ACAWK 19420_ACEOF 19421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19423fi # test -n "$CONFIG_HEADERS" 19424 19425 19426eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19427shift 19428for ac_tag 19429do 19430 case $ac_tag in 19431 :[FHLC]) ac_mode=$ac_tag; continue;; 19432 esac 19433 case $ac_mode$ac_tag in 19434 :[FHL]*:*);; 19435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19436 :[FH]-) ac_tag=-:-;; 19437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19438 esac 19439 ac_save_IFS=$IFS 19440 IFS=: 19441 set x $ac_tag 19442 IFS=$ac_save_IFS 19443 shift 19444 ac_file=$1 19445 shift 19446 19447 case $ac_mode in 19448 :L) ac_source=$1;; 19449 :[FH]) 19450 ac_file_inputs= 19451 for ac_f 19452 do 19453 case $ac_f in 19454 -) ac_f="$ac_tmp/stdin";; 19455 *) # Look for the file first in the build tree, then in the source tree 19456 # (if the path is not absolute). The absolute path cannot be DOS-style, 19457 # because $ac_f cannot contain `:'. 19458 test -f "$ac_f" || 19459 case $ac_f in 19460 [\\/$]*) false;; 19461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19462 esac || 19463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19464 esac 19465 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19466 as_fn_append ac_file_inputs " '$ac_f'" 19467 done 19468 19469 # Let's still pretend it is `configure' which instantiates (i.e., don't 19470 # use $as_me), people would be surprised to read: 19471 # /* config.h. Generated by config.status. */ 19472 configure_input='Generated from '` 19473 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19474 `' by configure.' 19475 if test x"$ac_file" != x-; then 19476 configure_input="$ac_file. $configure_input" 19477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19478$as_echo "$as_me: creating $ac_file" >&6;} 19479 fi 19480 # Neutralize special characters interpreted by sed in replacement strings. 19481 case $configure_input in #( 19482 *\&* | *\|* | *\\* ) 19483 ac_sed_conf_input=`$as_echo "$configure_input" | 19484 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19485 *) ac_sed_conf_input=$configure_input;; 19486 esac 19487 19488 case $ac_tag in 19489 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19491 esac 19492 ;; 19493 esac 19494 19495 ac_dir=`$as_dirname -- "$ac_file" || 19496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19497 X"$ac_file" : 'X\(//\)[^/]' \| \ 19498 X"$ac_file" : 'X\(//\)$' \| \ 19499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19500$as_echo X"$ac_file" | 19501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19502 s//\1/ 19503 q 19504 } 19505 /^X\(\/\/\)[^/].*/{ 19506 s//\1/ 19507 q 19508 } 19509 /^X\(\/\/\)$/{ 19510 s//\1/ 19511 q 19512 } 19513 /^X\(\/\).*/{ 19514 s//\1/ 19515 q 19516 } 19517 s/.*/./; q'` 19518 as_dir="$ac_dir"; as_fn_mkdir_p 19519 ac_builddir=. 19520 19521case "$ac_dir" in 19522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19523*) 19524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19525 # A ".." for each directory in $ac_dir_suffix. 19526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19527 case $ac_top_builddir_sub in 19528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19530 esac ;; 19531esac 19532ac_abs_top_builddir=$ac_pwd 19533ac_abs_builddir=$ac_pwd$ac_dir_suffix 19534# for backward compatibility: 19535ac_top_builddir=$ac_top_build_prefix 19536 19537case $srcdir in 19538 .) # We are building in place. 19539 ac_srcdir=. 19540 ac_top_srcdir=$ac_top_builddir_sub 19541 ac_abs_top_srcdir=$ac_pwd ;; 19542 [\\/]* | ?:[\\/]* ) # Absolute name. 19543 ac_srcdir=$srcdir$ac_dir_suffix; 19544 ac_top_srcdir=$srcdir 19545 ac_abs_top_srcdir=$srcdir ;; 19546 *) # Relative name. 19547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19548 ac_top_srcdir=$ac_top_build_prefix$srcdir 19549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19550esac 19551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19552 19553 19554 case $ac_mode in 19555 :F) 19556 # 19557 # CONFIG_FILE 19558 # 19559 19560 case $INSTALL in 19561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19562 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19563 esac 19564 ac_MKDIR_P=$MKDIR_P 19565 case $MKDIR_P in 19566 [\\/$]* | ?:[\\/]* ) ;; 19567 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19568 esac 19569_ACEOF 19570 19571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19572# If the template does not know about datarootdir, expand it. 19573# FIXME: This hack should be removed a few years after 2.60. 19574ac_datarootdir_hack=; ac_datarootdir_seen= 19575ac_sed_dataroot=' 19576/datarootdir/ { 19577 p 19578 q 19579} 19580/@datadir@/p 19581/@docdir@/p 19582/@infodir@/p 19583/@localedir@/p 19584/@mandir@/p' 19585case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19586*datarootdir*) ac_datarootdir_seen=yes;; 19587*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19589$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19590_ACEOF 19591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19592 ac_datarootdir_hack=' 19593 s&@datadir@&$datadir&g 19594 s&@docdir@&$docdir&g 19595 s&@infodir@&$infodir&g 19596 s&@localedir@&$localedir&g 19597 s&@mandir@&$mandir&g 19598 s&\\\${datarootdir}&$datarootdir&g' ;; 19599esac 19600_ACEOF 19601 19602# Neutralize VPATH when `$srcdir' = `.'. 19603# Shell code in configure.ac might set extrasub. 19604# FIXME: do we really want to maintain this feature? 19605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19606ac_sed_extra="$ac_vpsub 19607$extrasub 19608_ACEOF 19609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19610:t 19611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19612s|@configure_input@|$ac_sed_conf_input|;t t 19613s&@top_builddir@&$ac_top_builddir_sub&;t t 19614s&@top_build_prefix@&$ac_top_build_prefix&;t t 19615s&@srcdir@&$ac_srcdir&;t t 19616s&@abs_srcdir@&$ac_abs_srcdir&;t t 19617s&@top_srcdir@&$ac_top_srcdir&;t t 19618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19619s&@builddir@&$ac_builddir&;t t 19620s&@abs_builddir@&$ac_abs_builddir&;t t 19621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19622s&@INSTALL@&$ac_INSTALL&;t t 19623s&@MKDIR_P@&$ac_MKDIR_P&;t t 19624$ac_datarootdir_hack 19625" 19626eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19628 19629test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19632 "$ac_tmp/out"`; test -z "$ac_out"; } && 19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19634which seems to be undefined. Please make sure it is defined" >&5 19635$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19636which seems to be undefined. Please make sure it is defined" >&2;} 19637 19638 rm -f "$ac_tmp/stdin" 19639 case $ac_file in 19640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19642 esac \ 19643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19644 ;; 19645 :H) 19646 # 19647 # CONFIG_HEADER 19648 # 19649 if test x"$ac_file" != x-; then 19650 { 19651 $as_echo "/* $configure_input */" \ 19652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19653 } >"$ac_tmp/config.h" \ 19654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19655 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19657$as_echo "$as_me: $ac_file is unchanged" >&6;} 19658 else 19659 rm -f "$ac_file" 19660 mv "$ac_tmp/config.h" "$ac_file" \ 19661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19662 fi 19663 else 19664 $as_echo "/* $configure_input */" \ 19665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19666 || as_fn_error $? "could not create -" "$LINENO" 5 19667 fi 19668# Compute "$ac_file"'s index in $config_headers. 19669_am_arg="$ac_file" 19670_am_stamp_count=1 19671for _am_header in $config_headers :; do 19672 case $_am_header in 19673 $_am_arg | $_am_arg:* ) 19674 break ;; 19675 * ) 19676 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19677 esac 19678done 19679echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19680$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19681 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19682 X"$_am_arg" : 'X\(//\)$' \| \ 19683 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19684$as_echo X"$_am_arg" | 19685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19686 s//\1/ 19687 q 19688 } 19689 /^X\(\/\/\)[^/].*/{ 19690 s//\1/ 19691 q 19692 } 19693 /^X\(\/\/\)$/{ 19694 s//\1/ 19695 q 19696 } 19697 /^X\(\/\).*/{ 19698 s//\1/ 19699 q 19700 } 19701 s/.*/./; q'`/stamp-h$_am_stamp_count 19702 ;; 19703 19704 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19705$as_echo "$as_me: executing $ac_file commands" >&6;} 19706 ;; 19707 esac 19708 19709 19710 case $ac_file$ac_mode in 19711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19712 # Older Autoconf quotes --file arguments for eval, but not when files 19713 # are listed without --file. Let's play safe and only enable the eval 19714 # if we detect the quoting. 19715 case $CONFIG_FILES in 19716 *\'*) eval set x "$CONFIG_FILES" ;; 19717 *) set x $CONFIG_FILES ;; 19718 esac 19719 shift 19720 for mf 19721 do 19722 # Strip MF so we end up with the name of the file. 19723 mf=`echo "$mf" | sed -e 's/:.*$//'` 19724 # Check whether this is an Automake generated Makefile or not. 19725 # We used to match only the files named 'Makefile.in', but 19726 # some people rename them; so instead we look at the file content. 19727 # Grep'ing the first line is not enough: some people post-process 19728 # each Makefile.in and add a new line on top of each file to say so. 19729 # Grep'ing the whole file is not good either: AIX grep has a line 19730 # limit of 2048, but all sed's we know have understand at least 4000. 19731 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19732 dirpart=`$as_dirname -- "$mf" || 19733$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19734 X"$mf" : 'X\(//\)[^/]' \| \ 19735 X"$mf" : 'X\(//\)$' \| \ 19736 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19737$as_echo X"$mf" | 19738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19739 s//\1/ 19740 q 19741 } 19742 /^X\(\/\/\)[^/].*/{ 19743 s//\1/ 19744 q 19745 } 19746 /^X\(\/\/\)$/{ 19747 s//\1/ 19748 q 19749 } 19750 /^X\(\/\).*/{ 19751 s//\1/ 19752 q 19753 } 19754 s/.*/./; q'` 19755 else 19756 continue 19757 fi 19758 # Extract the definition of DEPDIR, am__include, and am__quote 19759 # from the Makefile without running 'make'. 19760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19761 test -z "$DEPDIR" && continue 19762 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19763 test -z "$am__include" && continue 19764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19765 # Find all dependency output files, they are included files with 19766 # $(DEPDIR) in their names. We invoke sed twice because it is the 19767 # simplest approach to changing $(DEPDIR) to its actual value in the 19768 # expansion. 19769 for file in `sed -n " 19770 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19771 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19772 # Make sure the directory exists. 19773 test -f "$dirpart/$file" && continue 19774 fdir=`$as_dirname -- "$file" || 19775$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19776 X"$file" : 'X\(//\)[^/]' \| \ 19777 X"$file" : 'X\(//\)$' \| \ 19778 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19779$as_echo X"$file" | 19780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19781 s//\1/ 19782 q 19783 } 19784 /^X\(\/\/\)[^/].*/{ 19785 s//\1/ 19786 q 19787 } 19788 /^X\(\/\/\)$/{ 19789 s//\1/ 19790 q 19791 } 19792 /^X\(\/\).*/{ 19793 s//\1/ 19794 q 19795 } 19796 s/.*/./; q'` 19797 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19798 # echo "creating $dirpart/$file" 19799 echo '# dummy' > "$dirpart/$file" 19800 done 19801 done 19802} 19803 ;; 19804 "libtool":C) 19805 19806 # See if we are running on zsh, and set the options which allow our 19807 # commands through without removal of \ escapes. 19808 if test -n "${ZSH_VERSION+set}" ; then 19809 setopt NO_GLOB_SUBST 19810 fi 19811 19812 cfgfile="${ofile}T" 19813 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19814 $RM "$cfgfile" 19815 19816 cat <<_LT_EOF >> "$cfgfile" 19817#! $SHELL 19818 19819# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19820# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19822# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19823# 19824# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19825# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19826# Foundation, Inc. 19827# Written by Gordon Matzigkeit, 1996 19828# 19829# This file is part of GNU Libtool. 19830# 19831# GNU Libtool is free software; you can redistribute it and/or 19832# modify it under the terms of the GNU General Public License as 19833# published by the Free Software Foundation; either version 2 of 19834# the License, or (at your option) any later version. 19835# 19836# As a special exception to the GNU General Public License, 19837# if you distribute this file as part of a program or library that 19838# is built using GNU Libtool, you may include this file under the 19839# same distribution terms that you use for the rest of that program. 19840# 19841# GNU Libtool is distributed in the hope that it will be useful, 19842# but WITHOUT ANY WARRANTY; without even the implied warranty of 19843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19844# GNU General Public License for more details. 19845# 19846# You should have received a copy of the GNU General Public License 19847# along with GNU Libtool; see the file COPYING. If not, a copy 19848# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19849# obtained by writing to the Free Software Foundation, Inc., 19850# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19851 19852 19853# The names of the tagged configurations supported by this script. 19854available_tags="" 19855 19856# ### BEGIN LIBTOOL CONFIG 19857 19858# Which release of libtool.m4 was used? 19859macro_version=$macro_version 19860macro_revision=$macro_revision 19861 19862# Whether or not to build shared libraries. 19863build_libtool_libs=$enable_shared 19864 19865# Whether or not to build static libraries. 19866build_old_libs=$enable_static 19867 19868# What type of objects to build. 19869pic_mode=$pic_mode 19870 19871# Whether or not to optimize for fast installation. 19872fast_install=$enable_fast_install 19873 19874# Shell to use when invoking shell scripts. 19875SHELL=$lt_SHELL 19876 19877# An echo program that protects backslashes. 19878ECHO=$lt_ECHO 19879 19880# The PATH separator for the build system. 19881PATH_SEPARATOR=$lt_PATH_SEPARATOR 19882 19883# The host system. 19884host_alias=$host_alias 19885host=$host 19886host_os=$host_os 19887 19888# The build system. 19889build_alias=$build_alias 19890build=$build 19891build_os=$build_os 19892 19893# A sed program that does not truncate output. 19894SED=$lt_SED 19895 19896# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19897Xsed="\$SED -e 1s/^X//" 19898 19899# A grep program that handles long lines. 19900GREP=$lt_GREP 19901 19902# An ERE matcher. 19903EGREP=$lt_EGREP 19904 19905# A literal string matcher. 19906FGREP=$lt_FGREP 19907 19908# A BSD- or MS-compatible name lister. 19909NM=$lt_NM 19910 19911# Whether we need soft or hard links. 19912LN_S=$lt_LN_S 19913 19914# What is the maximum length of a command? 19915max_cmd_len=$max_cmd_len 19916 19917# Object file suffix (normally "o"). 19918objext=$ac_objext 19919 19920# Executable file suffix (normally ""). 19921exeext=$exeext 19922 19923# whether the shell understands "unset". 19924lt_unset=$lt_unset 19925 19926# turn spaces into newlines. 19927SP2NL=$lt_lt_SP2NL 19928 19929# turn newlines into spaces. 19930NL2SP=$lt_lt_NL2SP 19931 19932# convert \$build file names to \$host format. 19933to_host_file_cmd=$lt_cv_to_host_file_cmd 19934 19935# convert \$build files to toolchain format. 19936to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19937 19938# An object symbol dumper. 19939OBJDUMP=$lt_OBJDUMP 19940 19941# Method to check whether dependent libraries are shared objects. 19942deplibs_check_method=$lt_deplibs_check_method 19943 19944# Command to use when deplibs_check_method = "file_magic". 19945file_magic_cmd=$lt_file_magic_cmd 19946 19947# How to find potential files when deplibs_check_method = "file_magic". 19948file_magic_glob=$lt_file_magic_glob 19949 19950# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19951want_nocaseglob=$lt_want_nocaseglob 19952 19953# DLL creation program. 19954DLLTOOL=$lt_DLLTOOL 19955 19956# Command to associate shared and link libraries. 19957sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19958 19959# The archiver. 19960AR=$lt_AR 19961 19962# Flags to create an archive. 19963AR_FLAGS=$lt_AR_FLAGS 19964 19965# How to feed a file listing to the archiver. 19966archiver_list_spec=$lt_archiver_list_spec 19967 19968# A symbol stripping program. 19969STRIP=$lt_STRIP 19970 19971# Commands used to install an old-style archive. 19972RANLIB=$lt_RANLIB 19973old_postinstall_cmds=$lt_old_postinstall_cmds 19974old_postuninstall_cmds=$lt_old_postuninstall_cmds 19975 19976# Whether to use a lock for old archive extraction. 19977lock_old_archive_extraction=$lock_old_archive_extraction 19978 19979# A C compiler. 19980LTCC=$lt_CC 19981 19982# LTCC compiler flags. 19983LTCFLAGS=$lt_CFLAGS 19984 19985# Take the output of nm and produce a listing of raw symbols and C names. 19986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19987 19988# Transform the output of nm in a proper C declaration. 19989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19990 19991# Transform the output of nm in a C name address pair. 19992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19993 19994# Transform the output of nm in a C name address pair when lib prefix is needed. 19995global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19996 19997# Specify filename containing input files for \$NM. 19998nm_file_list_spec=$lt_nm_file_list_spec 19999 20000# The root where to search for dependent libraries,and in which our libraries should be installed. 20001lt_sysroot=$lt_sysroot 20002 20003# The name of the directory that contains temporary libtool files. 20004objdir=$objdir 20005 20006# Used to examine libraries when file_magic_cmd begins with "file". 20007MAGIC_CMD=$MAGIC_CMD 20008 20009# Must we lock files when doing compilation? 20010need_locks=$lt_need_locks 20011 20012# Manifest tool. 20013MANIFEST_TOOL=$lt_MANIFEST_TOOL 20014 20015# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20016DSYMUTIL=$lt_DSYMUTIL 20017 20018# Tool to change global to local symbols on Mac OS X. 20019NMEDIT=$lt_NMEDIT 20020 20021# Tool to manipulate fat objects and archives on Mac OS X. 20022LIPO=$lt_LIPO 20023 20024# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20025OTOOL=$lt_OTOOL 20026 20027# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20028OTOOL64=$lt_OTOOL64 20029 20030# Old archive suffix (normally "a"). 20031libext=$libext 20032 20033# Shared library suffix (normally ".so"). 20034shrext_cmds=$lt_shrext_cmds 20035 20036# The commands to extract the exported symbol list from a shared archive. 20037extract_expsyms_cmds=$lt_extract_expsyms_cmds 20038 20039# Variables whose values should be saved in libtool wrapper scripts and 20040# restored at link time. 20041variables_saved_for_relink=$lt_variables_saved_for_relink 20042 20043# Do we need the "lib" prefix for modules? 20044need_lib_prefix=$need_lib_prefix 20045 20046# Do we need a version for libraries? 20047need_version=$need_version 20048 20049# Library versioning type. 20050version_type=$version_type 20051 20052# Shared library runtime path variable. 20053runpath_var=$runpath_var 20054 20055# Shared library path variable. 20056shlibpath_var=$shlibpath_var 20057 20058# Is shlibpath searched before the hard-coded library search path? 20059shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20060 20061# Format of library name prefix. 20062libname_spec=$lt_libname_spec 20063 20064# List of archive names. First name is the real one, the rest are links. 20065# The last name is the one that the linker finds with -lNAME 20066library_names_spec=$lt_library_names_spec 20067 20068# The coded name of the library, if different from the real name. 20069soname_spec=$lt_soname_spec 20070 20071# Permission mode override for installation of shared libraries. 20072install_override_mode=$lt_install_override_mode 20073 20074# Command to use after installation of a shared archive. 20075postinstall_cmds=$lt_postinstall_cmds 20076 20077# Command to use after uninstallation of a shared archive. 20078postuninstall_cmds=$lt_postuninstall_cmds 20079 20080# Commands used to finish a libtool library installation in a directory. 20081finish_cmds=$lt_finish_cmds 20082 20083# As "finish_cmds", except a single script fragment to be evaled but 20084# not shown. 20085finish_eval=$lt_finish_eval 20086 20087# Whether we should hardcode library paths into libraries. 20088hardcode_into_libs=$hardcode_into_libs 20089 20090# Compile-time system search path for libraries. 20091sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20092 20093# Run-time system search path for libraries. 20094sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20095 20096# Whether dlopen is supported. 20097dlopen_support=$enable_dlopen 20098 20099# Whether dlopen of programs is supported. 20100dlopen_self=$enable_dlopen_self 20101 20102# Whether dlopen of statically linked programs is supported. 20103dlopen_self_static=$enable_dlopen_self_static 20104 20105# Commands to strip libraries. 20106old_striplib=$lt_old_striplib 20107striplib=$lt_striplib 20108 20109 20110# The linker used to build libraries. 20111LD=$lt_LD 20112 20113# How to create reloadable object files. 20114reload_flag=$lt_reload_flag 20115reload_cmds=$lt_reload_cmds 20116 20117# Commands used to build an old-style archive. 20118old_archive_cmds=$lt_old_archive_cmds 20119 20120# A language specific compiler. 20121CC=$lt_compiler 20122 20123# Is the compiler the GNU compiler? 20124with_gcc=$GCC 20125 20126# Compiler flag to turn off builtin functions. 20127no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20128 20129# Additional compiler flags for building library objects. 20130pic_flag=$lt_lt_prog_compiler_pic 20131 20132# How to pass a linker flag through the compiler. 20133wl=$lt_lt_prog_compiler_wl 20134 20135# Compiler flag to prevent dynamic linking. 20136link_static_flag=$lt_lt_prog_compiler_static 20137 20138# Does compiler simultaneously support -c and -o options? 20139compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20140 20141# Whether or not to add -lc for building shared libraries. 20142build_libtool_need_lc=$archive_cmds_need_lc 20143 20144# Whether or not to disallow shared libs when runtime libs are static. 20145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20146 20147# Compiler flag to allow reflexive dlopens. 20148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20149 20150# Compiler flag to generate shared objects directly from archives. 20151whole_archive_flag_spec=$lt_whole_archive_flag_spec 20152 20153# Whether the compiler copes with passing no objects directly. 20154compiler_needs_object=$lt_compiler_needs_object 20155 20156# Create an old-style archive from a shared archive. 20157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20158 20159# Create a temporary old-style archive to link instead of a shared archive. 20160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20161 20162# Commands used to build a shared archive. 20163archive_cmds=$lt_archive_cmds 20164archive_expsym_cmds=$lt_archive_expsym_cmds 20165 20166# Commands used to build a loadable module if different from building 20167# a shared archive. 20168module_cmds=$lt_module_cmds 20169module_expsym_cmds=$lt_module_expsym_cmds 20170 20171# Whether we are building with GNU ld or not. 20172with_gnu_ld=$lt_with_gnu_ld 20173 20174# Flag that allows shared libraries with undefined symbols to be built. 20175allow_undefined_flag=$lt_allow_undefined_flag 20176 20177# Flag that enforces no undefined symbols. 20178no_undefined_flag=$lt_no_undefined_flag 20179 20180# Flag to hardcode \$libdir into a binary during linking. 20181# This must work even if \$libdir does not exist 20182hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20183 20184# Whether we need a single "-rpath" flag with a separated argument. 20185hardcode_libdir_separator=$lt_hardcode_libdir_separator 20186 20187# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20188# DIR into the resulting binary. 20189hardcode_direct=$hardcode_direct 20190 20191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20192# DIR into the resulting binary and the resulting library dependency is 20193# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20194# library is relocated. 20195hardcode_direct_absolute=$hardcode_direct_absolute 20196 20197# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20198# into the resulting binary. 20199hardcode_minus_L=$hardcode_minus_L 20200 20201# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20202# into the resulting binary. 20203hardcode_shlibpath_var=$hardcode_shlibpath_var 20204 20205# Set to "yes" if building a shared library automatically hardcodes DIR 20206# into the library and all subsequent libraries and executables linked 20207# against it. 20208hardcode_automatic=$hardcode_automatic 20209 20210# Set to yes if linker adds runtime paths of dependent libraries 20211# to runtime path list. 20212inherit_rpath=$inherit_rpath 20213 20214# Whether libtool must link a program against all its dependency libraries. 20215link_all_deplibs=$link_all_deplibs 20216 20217# Set to "yes" if exported symbols are required. 20218always_export_symbols=$always_export_symbols 20219 20220# The commands to list exported symbols. 20221export_symbols_cmds=$lt_export_symbols_cmds 20222 20223# Symbols that should not be listed in the preloaded symbols. 20224exclude_expsyms=$lt_exclude_expsyms 20225 20226# Symbols that must always be exported. 20227include_expsyms=$lt_include_expsyms 20228 20229# Commands necessary for linking programs (against libraries) with templates. 20230prelink_cmds=$lt_prelink_cmds 20231 20232# Commands necessary for finishing linking programs. 20233postlink_cmds=$lt_postlink_cmds 20234 20235# Specify filename containing input files. 20236file_list_spec=$lt_file_list_spec 20237 20238# How to hardcode a shared library path into an executable. 20239hardcode_action=$hardcode_action 20240 20241# ### END LIBTOOL CONFIG 20242 20243_LT_EOF 20244 20245 case $host_os in 20246 aix3*) 20247 cat <<\_LT_EOF >> "$cfgfile" 20248# AIX sometimes has problems with the GCC collect2 program. For some 20249# reason, if we set the COLLECT_NAMES environment variable, the problems 20250# vanish in a puff of smoke. 20251if test "X${COLLECT_NAMES+set}" != Xset; then 20252 COLLECT_NAMES= 20253 export COLLECT_NAMES 20254fi 20255_LT_EOF 20256 ;; 20257 esac 20258 20259 20260ltmain="$ac_aux_dir/ltmain.sh" 20261 20262 20263 # We use sed instead of cat because bash on DJGPP gets confused if 20264 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20265 # text mode, it properly converts lines to CR/LF. This bash problem 20266 # is reportedly fixed, but why not run on old versions too? 20267 sed '$q' "$ltmain" >> "$cfgfile" \ 20268 || (rm -f "$cfgfile"; exit 1) 20269 20270 if test x"$xsi_shell" = xyes; then 20271 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20272func_dirname ()\ 20273{\ 20274\ case ${1} in\ 20275\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20276\ * ) func_dirname_result="${3}" ;;\ 20277\ esac\ 20278} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20279 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20281test 0 -eq $? || _lt_function_replace_fail=: 20282 20283 20284 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20285func_basename ()\ 20286{\ 20287\ func_basename_result="${1##*/}"\ 20288} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20289 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20291test 0 -eq $? || _lt_function_replace_fail=: 20292 20293 20294 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20295func_dirname_and_basename ()\ 20296{\ 20297\ case ${1} in\ 20298\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20299\ * ) func_dirname_result="${3}" ;;\ 20300\ esac\ 20301\ func_basename_result="${1##*/}"\ 20302} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20303 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20305test 0 -eq $? || _lt_function_replace_fail=: 20306 20307 20308 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20309func_stripname ()\ 20310{\ 20311\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20312\ # positional parameters, so assign one to ordinary parameter first.\ 20313\ func_stripname_result=${3}\ 20314\ func_stripname_result=${func_stripname_result#"${1}"}\ 20315\ func_stripname_result=${func_stripname_result%"${2}"}\ 20316} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20317 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20319test 0 -eq $? || _lt_function_replace_fail=: 20320 20321 20322 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20323func_split_long_opt ()\ 20324{\ 20325\ func_split_long_opt_name=${1%%=*}\ 20326\ func_split_long_opt_arg=${1#*=}\ 20327} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20328 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20330test 0 -eq $? || _lt_function_replace_fail=: 20331 20332 20333 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20334func_split_short_opt ()\ 20335{\ 20336\ func_split_short_opt_arg=${1#??}\ 20337\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20338} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20339 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20341test 0 -eq $? || _lt_function_replace_fail=: 20342 20343 20344 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20345func_lo2o ()\ 20346{\ 20347\ case ${1} in\ 20348\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20349\ *) func_lo2o_result=${1} ;;\ 20350\ esac\ 20351} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20352 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20354test 0 -eq $? || _lt_function_replace_fail=: 20355 20356 20357 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20358func_xform ()\ 20359{\ 20360 func_xform_result=${1%.*}.lo\ 20361} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20362 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20364test 0 -eq $? || _lt_function_replace_fail=: 20365 20366 20367 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20368func_arith ()\ 20369{\ 20370 func_arith_result=$(( $* ))\ 20371} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20372 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20374test 0 -eq $? || _lt_function_replace_fail=: 20375 20376 20377 sed -e '/^func_len ()$/,/^} # func_len /c\ 20378func_len ()\ 20379{\ 20380 func_len_result=${#1}\ 20381} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20382 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20384test 0 -eq $? || _lt_function_replace_fail=: 20385 20386fi 20387 20388if test x"$lt_shell_append" = xyes; then 20389 sed -e '/^func_append ()$/,/^} # func_append /c\ 20390func_append ()\ 20391{\ 20392 eval "${1}+=\\${2}"\ 20393} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20394 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20396test 0 -eq $? || _lt_function_replace_fail=: 20397 20398 20399 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20400func_append_quoted ()\ 20401{\ 20402\ func_quote_for_eval "${2}"\ 20403\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20404} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20405 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20407test 0 -eq $? || _lt_function_replace_fail=: 20408 20409 20410 # Save a `func_append' function call where possible by direct use of '+=' 20411 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20412 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20414 test 0 -eq $? || _lt_function_replace_fail=: 20415else 20416 # Save a `func_append' function call even when '+=' is not available 20417 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20418 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20420 test 0 -eq $? || _lt_function_replace_fail=: 20421fi 20422 20423if test x"$_lt_function_replace_fail" = x":"; then 20424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20425$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20426fi 20427 20428 20429 mv -f "$cfgfile" "$ofile" || 20430 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20431 chmod +x "$ofile" 20432 20433 ;; 20434 20435 esac 20436done # for ac_tag 20437 20438 20439as_fn_exit 0 20440_ACEOF 20441ac_clean_files=$ac_clean_files_save 20442 20443test $ac_write_fail = 0 || 20444 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20445 20446 20447# configure is writing to config.log, and then calls config.status. 20448# config.status does its own redirection, appending to config.log. 20449# Unfortunately, on DOS this fails, as config.log is still kept open 20450# by configure, so config.status won't be able to write to it; its 20451# output is simply discarded. So we exec the FD to /dev/null, 20452# effectively closing config.log, so it can be properly (re)opened and 20453# appended to by config.status. When coming back to configure, we 20454# need to make the FD available again. 20455if test "$no_create" != yes; then 20456 ac_cs_success=: 20457 ac_config_status_args= 20458 test "$silent" = yes && 20459 ac_config_status_args="$ac_config_status_args --quiet" 20460 exec 5>/dev/null 20461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20462 exec 5>>config.log 20463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20464 # would make configure fail if this is the last instruction. 20465 $ac_cs_success || as_fn_exit 1 20466fi 20467if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20469$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20470fi 20471 20472