configure revision cdbfa18a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXv 1.0.8. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='libXv' 573PACKAGE_TARNAME='libXv' 574PACKAGE_VERSION='1.0.8' 575PACKAGE_STRING='libXv 1.0.8' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620MAKE_LINT_LIB_FALSE 621MAKE_LINT_LIB_TRUE 622LINTLIB 623LINT_FALSE 624LINT_TRUE 625LINT_FLAGS 626LINT 627XV_LIBS 628XV_CFLAGS 629XTMALLOC_ZERO_CFLAGS 630XMALLOC_ZERO_CFLAGS 631MALLOC_ZERO_CFLAGS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646INSTALL_CMD 647PKG_CONFIG 648CHANGELOG_CMD 649STRICT_CFLAGS 650CWARNFLAGS 651BASE_CFLAGS 652CPP 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662DLLTOOL 663OBJDUMP 664LN_S 665NM 666ac_ct_DUMPBIN 667DUMPBIN 668LD 669FGREP 670EGREP 671GREP 672SED 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698LIBTOOL 699AM_BACKSLASH 700AM_DEFAULT_VERBOSITY 701AM_DEFAULT_V 702AM_V 703am__untar 704am__tar 705AMTAR 706am__leading_dot 707SET_MAKE 708AWK 709mkdir_p 710MKDIR_P 711INSTALL_STRIP_PROGRAM 712STRIP 713install_sh 714MAKEINFO 715AUTOHEADER 716AUTOMAKE 717AUTOCONF 718ACLOCAL 719VERSION 720PACKAGE 721CYGPATH_W 722am__isrc 723INSTALL_DATA 724INSTALL_SCRIPT 725INSTALL_PROGRAM 726target_alias 727host_alias 728build_alias 729LIBS 730ECHO_T 731ECHO_N 732ECHO_C 733DEFS 734mandir 735localedir 736libdir 737psdir 738pdfdir 739dvidir 740htmldir 741infodir 742docdir 743oldincludedir 744includedir 745localstatedir 746sharedstatedir 747sysconfdir 748datadir 749datarootdir 750libexecdir 751sbindir 752bindir 753program_transform_name 754prefix 755exec_prefix 756PACKAGE_URL 757PACKAGE_BUGREPORT 758PACKAGE_STRING 759PACKAGE_VERSION 760PACKAGE_TARNAME 761PACKAGE_NAME 762PATH_SEPARATOR 763SHELL' 764ac_subst_files='' 765ac_user_opts=' 766enable_option_checking 767enable_silent_rules 768enable_shared 769enable_static 770with_pic 771enable_fast_install 772enable_dependency_tracking 773with_gnu_ld 774with_sysroot 775enable_libtool_lock 776enable_selective_werror 777enable_strict_compilation 778enable_malloc0returnsnull 779with_lint 780enable_lint_library 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CPP 791PKG_CONFIG 792XV_CFLAGS 793XV_LIBS 794LINT 795LINT_FLAGS' 796 797 798# Initialize some variables set by options. 799ac_init_help= 800ac_init_version=false 801ac_unrecognized_opts= 802ac_unrecognized_sep= 803# The variables have the same names as the options, with 804# dashes changed to underlines. 805cache_file=/dev/null 806exec_prefix=NONE 807no_create= 808no_recursion= 809prefix=NONE 810program_prefix=NONE 811program_suffix=NONE 812program_transform_name=s,x,x, 813silent= 814site= 815srcdir= 816verbose= 817x_includes=NONE 818x_libraries=NONE 819 820# Installation directory options. 821# These are left unexpanded so users can "make install exec_prefix=/foo" 822# and all the variables that are supposed to be based on exec_prefix 823# by default will actually change. 824# Use braces instead of parens because sh, perl, etc. also accept them. 825# (The list follows the same order as the GNU Coding Standards.) 826bindir='${exec_prefix}/bin' 827sbindir='${exec_prefix}/sbin' 828libexecdir='${exec_prefix}/libexec' 829datarootdir='${prefix}/share' 830datadir='${datarootdir}' 831sysconfdir='${prefix}/etc' 832sharedstatedir='${prefix}/com' 833localstatedir='${prefix}/var' 834includedir='${prefix}/include' 835oldincludedir='/usr/include' 836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 837infodir='${datarootdir}/info' 838htmldir='${docdir}' 839dvidir='${docdir}' 840pdfdir='${docdir}' 841psdir='${docdir}' 842libdir='${exec_prefix}/lib' 843localedir='${datarootdir}/locale' 844mandir='${datarootdir}/man' 845 846ac_prev= 847ac_dashdash= 848for ac_option 849do 850 # If the previous option needs an argument, assign it. 851 if test -n "$ac_prev"; then 852 eval $ac_prev=\$ac_option 853 ac_prev= 854 continue 855 fi 856 857 case $ac_option in 858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 859 *=) ac_optarg= ;; 860 *) ac_optarg=yes ;; 861 esac 862 863 # Accept the important Cygnus configure options, so we can diagnose typos. 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: $ac_useropt" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936"enable_$ac_useropt" 937"*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1087 ac_prev=sbindir ;; 1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1089 | --sbi=* | --sb=*) 1090 sbindir=$ac_optarg ;; 1091 1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1094 | --sharedst | --shareds | --shared | --share | --shar \ 1095 | --sha | --sh) 1096 ac_prev=sharedstatedir ;; 1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1100 | --sha=* | --sh=*) 1101 sharedstatedir=$ac_optarg ;; 1102 1103 -site | --site | --sit) 1104 ac_prev=site ;; 1105 -site=* | --site=* | --sit=*) 1106 site=$ac_optarg ;; 1107 1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1109 ac_prev=srcdir ;; 1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1111 srcdir=$ac_optarg ;; 1112 1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1114 | --syscon | --sysco | --sysc | --sys | --sy) 1115 ac_prev=sysconfdir ;; 1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1118 sysconfdir=$ac_optarg ;; 1119 1120 -target | --target | --targe | --targ | --tar | --ta | --t) 1121 ac_prev=target_alias ;; 1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1123 target_alias=$ac_optarg ;; 1124 1125 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1126 verbose=yes ;; 1127 1128 -version | --version | --versio | --versi | --vers | -V) 1129 ac_init_version=: ;; 1130 1131 -with-* | --with-*) 1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1133 # Reject names that are not valid shell variable names. 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1135 as_fn_error $? "invalid package name: $ac_useropt" 1136 ac_useropt_orig=$ac_useropt 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1138 case $ac_user_opts in 1139 *" 1140"with_$ac_useropt" 1141"*) ;; 1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1143 ac_unrecognized_sep=', ';; 1144 esac 1145 eval with_$ac_useropt=\$ac_optarg ;; 1146 1147 -without-* | --without-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: $ac_useropt" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"with_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=no ;; 1162 1163 --x) 1164 # Obsolete; use --with-x. 1165 with_x=yes ;; 1166 1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1168 | --x-incl | --x-inc | --x-in | --x-i) 1169 ac_prev=x_includes ;; 1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1172 x_includes=$ac_optarg ;; 1173 1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1176 ac_prev=x_libraries ;; 1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1179 x_libraries=$ac_optarg ;; 1180 1181 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1182Try \`$0 --help' for more information" 1183 ;; 1184 1185 *=*) 1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1187 # Reject names that are not valid shell variable names. 1188 case $ac_envvar in #( 1189 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1191 esac 1192 eval $ac_envvar=\$ac_optarg 1193 export $ac_envvar ;; 1194 1195 *) 1196 # FIXME: should be removed in autoconf 3.0. 1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1201 ;; 1202 1203 esac 1204done 1205 1206if test -n "$ac_prev"; then 1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1208 as_fn_error $? "missing argument to $ac_option" 1209fi 1210 1211if test -n "$ac_unrecognized_opts"; then 1212 case $enable_option_checking in 1213 no) ;; 1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1216 esac 1217fi 1218 1219# Check all directory arguments for consistency. 1220for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1221 datadir sysconfdir sharedstatedir localstatedir includedir \ 1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1223 libdir localedir mandir 1224do 1225 eval ac_val=\$$ac_var 1226 # Remove trailing slashes. 1227 case $ac_val in 1228 */ ) 1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1230 eval $ac_var=\$ac_val;; 1231 esac 1232 # Be sure to have absolute directory names. 1233 case $ac_val in 1234 [\\/$]* | ?:[\\/]* ) continue;; 1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1236 esac 1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1238done 1239 1240# There might be people who depend on the old broken behavior: `$host' 1241# used to hold the argument of --host etc. 1242# FIXME: To remove some day. 1243build=$build_alias 1244host=$host_alias 1245target=$target_alias 1246 1247# FIXME: To remove some day. 1248if test "x$host_alias" != x; then 1249 if test "x$build_alias" = x; then 1250 cross_compiling=maybe 1251 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1252 If a cross compiler is detected then cross compile mode will be used" >&2 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256fi 1257 1258ac_tool_prefix= 1259test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261test "$silent" = yes && exec 6>/dev/null 1262 1263 1264ac_pwd=`pwd` && test -n "$ac_pwd" && 1265ac_ls_di=`ls -di .` && 1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272# Find the source files, if location was not specified. 1273if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281$as_echo X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303else 1304 ac_srcdir_defaulted=no 1305fi 1306if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309fi 1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1311ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338\`configure' configures libXv 1.0.8 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print \`checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for \`--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, \`make install' will install all the files in 1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1367for instance \`--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --libdir=DIR object code libraries [EPREFIX/lib] 1379 --includedir=DIR C header files [PREFIX/include] 1380 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1383 --infodir=DIR info documentation [DATAROOTDIR/info] 1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1385 --mandir=DIR man documentation [DATAROOTDIR/man] 1386 --docdir=DIR documentation root [DATAROOTDIR/doc/libXv] 1387 --htmldir=DIR html documentation [DOCDIR] 1388 --dvidir=DIR dvi documentation [DOCDIR] 1389 --pdfdir=DIR pdf documentation [DOCDIR] 1390 --psdir=DIR ps documentation [DOCDIR] 1391_ACEOF 1392 1393 cat <<\_ACEOF 1394 1395Program names: 1396 --program-prefix=PREFIX prepend PREFIX to installed program names 1397 --program-suffix=SUFFIX append SUFFIX to installed program names 1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1399 1400System types: 1401 --build=BUILD configure for building on BUILD [guessed] 1402 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1403_ACEOF 1404fi 1405 1406if test -n "$ac_init_help"; then 1407 case $ac_init_help in 1408 short | recursive ) echo "Configuration of libXv 1.0.8:";; 1409 esac 1410 cat <<\_ACEOF 1411 1412Optional Features: 1413 --disable-option-checking ignore unrecognized --enable/--with options 1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1416 --enable-silent-rules less verbose build output (undo: "make V=1") 1417 --disable-silent-rules verbose build output (undo: "make V=0") 1418 --enable-shared[=PKGS] build shared libraries [default=yes] 1419 --enable-static[=PKGS] build static libraries [default=yes] 1420 --enable-fast-install[=PKGS] 1421 optimize for fast installation [default=yes] 1422 --enable-dependency-tracking 1423 do not reject slow dependency extractors 1424 --disable-dependency-tracking 1425 speeds up one-time build 1426 --disable-libtool-lock avoid locking (might break parallel builds) 1427 --disable-selective-werror 1428 Turn off selective compiler errors. (default: 1429 enabled) 1430 --enable-strict-compilation 1431 Enable all warnings from compiler and make them 1432 errors (default: disabled) 1433 --enable-malloc0returnsnull 1434 malloc(0) returns NULL (default: auto) 1435 --enable-lint-library Create lint library (default: disabled) 1436 1437Optional Packages: 1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1441 both] 1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1443 --with-sysroot=DIR Search for dependent libraries within DIR 1444 (or the compiler's sysroot if not specified). 1445 --with-lint Use a lint-style source code checker (default: 1446 disabled) 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 CPP C preprocessor 1457 PKG_CONFIG path to pkg-config utility 1458 XV_CFLAGS C compiler flags for XV, overriding pkg-config 1459 XV_LIBS linker flags for XV, overriding pkg-config 1460 LINT Path to a lint-style command 1461 LINT_FLAGS Flags for the lint-style command 1462 1463Use these variables to override the choices made by `configure' or to help 1464it to find libraries and programs with nonstandard names/locations. 1465 1466Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1467_ACEOF 1468ac_status=$? 1469fi 1470 1471if test "$ac_init_help" = "recursive"; then 1472 # If there are subdirs, report their specific --help. 1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1474 test -d "$ac_dir" || 1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1476 continue 1477 ac_builddir=. 1478 1479case "$ac_dir" in 1480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481*) 1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1483 # A ".." for each directory in $ac_dir_suffix. 1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1485 case $ac_top_builddir_sub in 1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1488 esac ;; 1489esac 1490ac_abs_top_builddir=$ac_pwd 1491ac_abs_builddir=$ac_pwd$ac_dir_suffix 1492# for backward compatibility: 1493ac_top_builddir=$ac_top_build_prefix 1494 1495case $srcdir in 1496 .) # We are building in place. 1497 ac_srcdir=. 1498 ac_top_srcdir=$ac_top_builddir_sub 1499 ac_abs_top_srcdir=$ac_pwd ;; 1500 [\\/]* | ?:[\\/]* ) # Absolute name. 1501 ac_srcdir=$srcdir$ac_dir_suffix; 1502 ac_top_srcdir=$srcdir 1503 ac_abs_top_srcdir=$srcdir ;; 1504 *) # Relative name. 1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1506 ac_top_srcdir=$ac_top_build_prefix$srcdir 1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1508esac 1509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1510 1511 cd "$ac_dir" || { ac_status=$?; continue; } 1512 # Check for guested configure. 1513 if test -f "$ac_srcdir/configure.gnu"; then 1514 echo && 1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1516 elif test -f "$ac_srcdir/configure"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure" --help=recursive 1519 else 1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1521 fi || ac_status=$? 1522 cd "$ac_pwd" || { ac_status=$?; break; } 1523 done 1524fi 1525 1526test -n "$ac_init_help" && exit $ac_status 1527if $ac_init_version; then 1528 cat <<\_ACEOF 1529libXv configure 1.0.8 1530generated by GNU Autoconf 2.68 1531 1532Copyright (C) 2010 Free Software Foundation, Inc. 1533This configure script is free software; the Free Software Foundation 1534gives unlimited permission to copy, distribute and modify it. 1535_ACEOF 1536 exit 1537fi 1538 1539## ------------------------ ## 1540## Autoconf initialization. ## 1541## ------------------------ ## 1542 1543# ac_fn_c_try_compile LINENO 1544# -------------------------- 1545# Try to compile conftest.$ac_ext, and return whether this succeeded. 1546ac_fn_c_try_compile () 1547{ 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1549 rm -f conftest.$ac_objext 1550 if { { ac_try="$ac_compile" 1551case "(($ac_try" in 1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1553 *) ac_try_echo=$ac_try;; 1554esac 1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1556$as_echo "$ac_try_echo"; } >&5 1557 (eval "$ac_compile") 2>conftest.err 1558 ac_status=$? 1559 if test -s conftest.err; then 1560 grep -v '^ *+' conftest.err >conftest.er1 1561 cat conftest.er1 >&5 1562 mv -f conftest.er1 conftest.err 1563 fi 1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1565 test $ac_status = 0; } && { 1566 test -z "$ac_c_werror_flag" || 1567 test ! -s conftest.err 1568 } && test -s conftest.$ac_objext; then : 1569 ac_retval=0 1570else 1571 $as_echo "$as_me: failed program was:" >&5 1572sed 's/^/| /' conftest.$ac_ext >&5 1573 1574 ac_retval=1 1575fi 1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1577 as_fn_set_status $ac_retval 1578 1579} # ac_fn_c_try_compile 1580 1581# ac_fn_c_try_link LINENO 1582# ----------------------- 1583# Try to link conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_link () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext conftest$ac_exeext 1588 if { { ac_try="$ac_link" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_link") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest$ac_exeext && { 1607 test "$cross_compiling" = yes || 1608 $as_test_x conftest$ac_exeext 1609 }; then : 1610 ac_retval=0 1611else 1612 $as_echo "$as_me: failed program was:" >&5 1613sed 's/^/| /' conftest.$ac_ext >&5 1614 1615 ac_retval=1 1616fi 1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1619 # interfere with the next link command; also delete a directory that is 1620 # left behind by Apple's compiler. We do this before executing the actions. 1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1623 as_fn_set_status $ac_retval 1624 1625} # ac_fn_c_try_link 1626 1627# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1628# ------------------------------------------------------- 1629# Tests whether HEADER exists and can be compiled using the include files in 1630# INCLUDES, setting the cache variable VAR accordingly. 1631ac_fn_c_check_header_compile () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1635$as_echo_n "checking for $2... " >&6; } 1636if eval \${$3+:} false; then : 1637 $as_echo_n "(cached) " >&6 1638else 1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640/* end confdefs.h. */ 1641$4 1642#include <$2> 1643_ACEOF 1644if ac_fn_c_try_compile "$LINENO"; then : 1645 eval "$3=yes" 1646else 1647 eval "$3=no" 1648fi 1649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1650fi 1651eval ac_res=\$$3 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1653$as_echo "$ac_res" >&6; } 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 1656} # ac_fn_c_check_header_compile 1657 1658# ac_fn_c_try_cpp LINENO 1659# ---------------------- 1660# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_cpp () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if { { ac_try="$ac_cpp conftest.$ac_ext" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } > conftest.i && { 1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 }; then : 1683 ac_retval=0 1684else 1685 $as_echo "$as_me: failed program was:" >&5 1686sed 's/^/| /' conftest.$ac_ext >&5 1687 1688 ac_retval=1 1689fi 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 as_fn_set_status $ac_retval 1692 1693} # ac_fn_c_try_cpp 1694 1695# ac_fn_c_try_run LINENO 1696# ---------------------- 1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1698# that executables *can* be run. 1699ac_fn_c_try_run () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 if { { ac_try="$ac_link" 1703case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_link") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1713 { { case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_try") 2>&5 1720 ac_status=$? 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; }; }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: program exited with status $ac_status" >&5 1726 $as_echo "$as_me: failed program was:" >&5 1727sed 's/^/| /' conftest.$ac_ext >&5 1728 1729 ac_retval=$ac_status 1730fi 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_run 1736 1737# ac_fn_c_check_func LINENO FUNC VAR 1738# ---------------------------------- 1739# Tests whether FUNC exists, setting the cache variable VAR accordingly 1740ac_fn_c_check_func () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1744$as_echo_n "checking for $2... " >&6; } 1745if eval \${$3+:} false; then : 1746 $as_echo_n "(cached) " >&6 1747else 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1752#define $2 innocuous_$2 1753 1754/* System header to define __stub macros and hopefully few prototypes, 1755 which can conflict with char $2 (); below. 1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1757 <limits.h> exists even on freestanding compilers. */ 1758 1759#ifdef __STDC__ 1760# include <limits.h> 1761#else 1762# include <assert.h> 1763#endif 1764 1765#undef $2 1766 1767/* Override any GCC internal prototype to avoid an error. 1768 Use char because int might match the return type of a GCC 1769 builtin and then its argument prototype would still apply. */ 1770#ifdef __cplusplus 1771extern "C" 1772#endif 1773char $2 (); 1774/* The GNU C library defines this for functions which it implements 1775 to always fail with ENOSYS. Some functions are actually named 1776 something starting with __ and the normal name is an alias. */ 1777#if defined __stub_$2 || defined __stub___$2 1778choke me 1779#endif 1780 1781int 1782main () 1783{ 1784return $2 (); 1785 ; 1786 return 0; 1787} 1788_ACEOF 1789if ac_fn_c_try_link "$LINENO"; then : 1790 eval "$3=yes" 1791else 1792 eval "$3=no" 1793fi 1794rm -f core conftest.err conftest.$ac_objext \ 1795 conftest$ac_exeext conftest.$ac_ext 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 1802} # ac_fn_c_check_func 1803 1804# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1805# --------------------------------------------- 1806# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1807# accordingly. 1808ac_fn_c_check_decl () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 as_decl_name=`echo $2|sed 's/ *(.*//'` 1812 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1814$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1815if eval \${$3+:} false; then : 1816 $as_echo_n "(cached) " >&6 1817else 1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820$4 1821int 1822main () 1823{ 1824#ifndef $as_decl_name 1825#ifdef __cplusplus 1826 (void) $as_decl_use; 1827#else 1828 (void) $as_decl_name; 1829#endif 1830#endif 1831 1832 ; 1833 return 0; 1834} 1835_ACEOF 1836if ac_fn_c_try_compile "$LINENO"; then : 1837 eval "$3=yes" 1838else 1839 eval "$3=no" 1840fi 1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1842fi 1843eval ac_res=\$$3 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845$as_echo "$ac_res" >&6; } 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 1848} # ac_fn_c_check_decl 1849cat >config.log <<_ACEOF 1850This file contains any messages produced by compilers while 1851running configure, to aid debugging if configure makes a mistake. 1852 1853It was created by libXv $as_me 1.0.8, which was 1854generated by GNU Autoconf 2.68. Invocation command line was 1855 1856 $ $0 $@ 1857 1858_ACEOF 1859exec 5>>config.log 1860{ 1861cat <<_ASUNAME 1862## --------- ## 1863## Platform. ## 1864## --------- ## 1865 1866hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1867uname -m = `(uname -m) 2>/dev/null || echo unknown` 1868uname -r = `(uname -r) 2>/dev/null || echo unknown` 1869uname -s = `(uname -s) 2>/dev/null || echo unknown` 1870uname -v = `(uname -v) 2>/dev/null || echo unknown` 1871 1872/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1873/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1874 1875/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1876/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1877/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1878/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1879/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1880/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1881/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1882 1883_ASUNAME 1884 1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1886for as_dir in $PATH 1887do 1888 IFS=$as_save_IFS 1889 test -z "$as_dir" && as_dir=. 1890 $as_echo "PATH: $as_dir" 1891 done 1892IFS=$as_save_IFS 1893 1894} >&5 1895 1896cat >&5 <<_ACEOF 1897 1898 1899## ----------- ## 1900## Core tests. ## 1901## ----------- ## 1902 1903_ACEOF 1904 1905 1906# Keep a trace of the command line. 1907# Strip out --no-create and --no-recursion so they do not pile up. 1908# Strip out --silent because we don't want to record it for future runs. 1909# Also quote any args containing shell meta-characters. 1910# Make two passes to allow for proper duplicate-argument suppression. 1911ac_configure_args= 1912ac_configure_args0= 1913ac_configure_args1= 1914ac_must_keep_next=false 1915for ac_pass in 1 2 1916do 1917 for ac_arg 1918 do 1919 case $ac_arg in 1920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1922 | -silent | --silent | --silen | --sile | --sil) 1923 continue ;; 1924 *\'*) 1925 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1926 esac 1927 case $ac_pass in 1928 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1929 2) 1930 as_fn_append ac_configure_args1 " '$ac_arg'" 1931 if test $ac_must_keep_next = true; then 1932 ac_must_keep_next=false # Got value, back to normal. 1933 else 1934 case $ac_arg in 1935 *=* | --config-cache | -C | -disable-* | --disable-* \ 1936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1938 | -with-* | --with-* | -without-* | --without-* | --x) 1939 case "$ac_configure_args0 " in 1940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1941 esac 1942 ;; 1943 -* ) ac_must_keep_next=true ;; 1944 esac 1945 fi 1946 as_fn_append ac_configure_args " '$ac_arg'" 1947 ;; 1948 esac 1949 done 1950done 1951{ ac_configure_args0=; unset ac_configure_args0;} 1952{ ac_configure_args1=; unset ac_configure_args1;} 1953 1954# When interrupted or exit'd, cleanup temporary files, and complete 1955# config.log. We remove comments because anyway the quotes in there 1956# would cause problems or look ugly. 1957# WARNING: Use '\'' to represent an apostrophe within the trap. 1958# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1959trap 'exit_status=$? 1960 # Save into config.log some information that might help in debugging. 1961 { 1962 echo 1963 1964 $as_echo "## ---------------- ## 1965## Cache variables. ## 1966## ---------------- ##" 1967 echo 1968 # The following way of writing the cache mishandles newlines in values, 1969( 1970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1971 eval ac_val=\$$ac_var 1972 case $ac_val in #( 1973 *${as_nl}*) 1974 case $ac_var in #( 1975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1976$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1977 esac 1978 case $ac_var in #( 1979 _ | IFS | as_nl) ;; #( 1980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1981 *) { eval $ac_var=; unset $ac_var;} ;; 1982 esac ;; 1983 esac 1984 done 1985 (set) 2>&1 | 1986 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1987 *${as_nl}ac_space=\ *) 1988 sed -n \ 1989 "s/'\''/'\''\\\\'\'''\''/g; 1990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1991 ;; #( 1992 *) 1993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1994 ;; 1995 esac | 1996 sort 1997) 1998 echo 1999 2000 $as_echo "## ----------------- ## 2001## Output variables. ## 2002## ----------------- ##" 2003 echo 2004 for ac_var in $ac_subst_vars 2005 do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in 2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2009 esac 2010 $as_echo "$ac_var='\''$ac_val'\''" 2011 done | sort 2012 echo 2013 2014 if test -n "$ac_subst_files"; then 2015 $as_echo "## ------------------- ## 2016## File substitutions. ## 2017## ------------------- ##" 2018 echo 2019 for ac_var in $ac_subst_files 2020 do 2021 eval ac_val=\$$ac_var 2022 case $ac_val in 2023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2024 esac 2025 $as_echo "$ac_var='\''$ac_val'\''" 2026 done | sort 2027 echo 2028 fi 2029 2030 if test -s confdefs.h; then 2031 $as_echo "## ----------- ## 2032## confdefs.h. ## 2033## ----------- ##" 2034 echo 2035 cat confdefs.h 2036 echo 2037 fi 2038 test "$ac_signal" != 0 && 2039 $as_echo "$as_me: caught signal $ac_signal" 2040 $as_echo "$as_me: exit $exit_status" 2041 } >&5 2042 rm -f core *.core core.conftest.* && 2043 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2044 exit $exit_status 2045' 0 2046for ac_signal in 1 2 13 15; do 2047 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2048done 2049ac_signal=0 2050 2051# confdefs.h avoids OS command line length limits that DEFS can exceed. 2052rm -f -r conftest* confdefs.h 2053 2054$as_echo "/* confdefs.h */" > confdefs.h 2055 2056# Predefined preprocessor variables. 2057 2058cat >>confdefs.h <<_ACEOF 2059#define PACKAGE_NAME "$PACKAGE_NAME" 2060_ACEOF 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2064_ACEOF 2065 2066cat >>confdefs.h <<_ACEOF 2067#define PACKAGE_VERSION "$PACKAGE_VERSION" 2068_ACEOF 2069 2070cat >>confdefs.h <<_ACEOF 2071#define PACKAGE_STRING "$PACKAGE_STRING" 2072_ACEOF 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2076_ACEOF 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_URL "$PACKAGE_URL" 2080_ACEOF 2081 2082 2083# Let the site file select an alternate cache file if it wants to. 2084# Prefer an explicitly selected file to automatically selected ones. 2085ac_site_file1=NONE 2086ac_site_file2=NONE 2087if test -n "$CONFIG_SITE"; then 2088 # We do not want a PATH search for config.site. 2089 case $CONFIG_SITE in #(( 2090 -*) ac_site_file1=./$CONFIG_SITE;; 2091 */*) ac_site_file1=$CONFIG_SITE;; 2092 *) ac_site_file1=./$CONFIG_SITE;; 2093 esac 2094elif test "x$prefix" != xNONE; then 2095 ac_site_file1=$prefix/share/config.site 2096 ac_site_file2=$prefix/etc/config.site 2097else 2098 ac_site_file1=$ac_default_prefix/share/config.site 2099 ac_site_file2=$ac_default_prefix/etc/config.site 2100fi 2101for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2102do 2103 test "x$ac_site_file" = xNONE && continue 2104 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2106$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2107 sed 's/^/| /' "$ac_site_file" >&5 2108 . "$ac_site_file" \ 2109 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2111as_fn_error $? "failed to load site script $ac_site_file 2112See \`config.log' for more details" "$LINENO" 5; } 2113 fi 2114done 2115 2116if test -r "$cache_file"; then 2117 # Some versions of bash will fail to source /dev/null (special files 2118 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2119 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2121$as_echo "$as_me: loading cache $cache_file" >&6;} 2122 case $cache_file in 2123 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2124 *) . "./$cache_file";; 2125 esac 2126 fi 2127else 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2129$as_echo "$as_me: creating cache $cache_file" >&6;} 2130 >$cache_file 2131fi 2132 2133# Check that the precious variables saved in the cache have kept the same 2134# value. 2135ac_cache_corrupted=false 2136for ac_var in $ac_precious_vars; do 2137 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2138 eval ac_new_set=\$ac_env_${ac_var}_set 2139 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2140 eval ac_new_val=\$ac_env_${ac_var}_value 2141 case $ac_old_set,$ac_new_set in 2142 set,) 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2144$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2145 ac_cache_corrupted=: ;; 2146 ,set) 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2148$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2149 ac_cache_corrupted=: ;; 2150 ,);; 2151 *) 2152 if test "x$ac_old_val" != "x$ac_new_val"; then 2153 # differences in whitespace do not lead to failure. 2154 ac_old_val_w=`echo x $ac_old_val` 2155 ac_new_val_w=`echo x $ac_new_val` 2156 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2158$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2159 ac_cache_corrupted=: 2160 else 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2162$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2163 eval $ac_var=\$ac_old_val 2164 fi 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2166$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2168$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2169 fi;; 2170 esac 2171 # Pass precious variables to config.status. 2172 if test "$ac_new_set" = set; then 2173 case $ac_new_val in 2174 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2175 *) ac_arg=$ac_var=$ac_new_val ;; 2176 esac 2177 case " $ac_configure_args " in 2178 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2179 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2180 esac 2181 fi 2182done 2183if $ac_cache_corrupted; then 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2187$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2188 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2189fi 2190## -------------------- ## 2191## Main body of script. ## 2192## -------------------- ## 2193 2194ac_ext=c 2195ac_cpp='$CPP $CPPFLAGS' 2196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2198ac_compiler_gnu=$ac_cv_c_compiler_gnu 2199 2200 2201 2202ac_config_headers="$ac_config_headers config.h" 2203 2204 2205# Initialize Automake 2206am__api_version='1.13' 2207 2208ac_aux_dir= 2209for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2210 if test -f "$ac_dir/install-sh"; then 2211 ac_aux_dir=$ac_dir 2212 ac_install_sh="$ac_aux_dir/install-sh -c" 2213 break 2214 elif test -f "$ac_dir/install.sh"; then 2215 ac_aux_dir=$ac_dir 2216 ac_install_sh="$ac_aux_dir/install.sh -c" 2217 break 2218 elif test -f "$ac_dir/shtool"; then 2219 ac_aux_dir=$ac_dir 2220 ac_install_sh="$ac_aux_dir/shtool install -c" 2221 break 2222 fi 2223done 2224if test -z "$ac_aux_dir"; then 2225 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2226fi 2227 2228# These three variables are undocumented and unsupported, 2229# and are intended to be withdrawn in a future Autoconf release. 2230# They can cause serious problems if a builder's source tree is in a directory 2231# whose full name contains unusual characters. 2232ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2233ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2234ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2235 2236 2237# Find a good install program. We prefer a C program (faster), 2238# so one script is as good as another. But avoid the broken or 2239# incompatible versions: 2240# SysV /etc/install, /usr/sbin/install 2241# SunOS /usr/etc/install 2242# IRIX /sbin/install 2243# AIX /bin/install 2244# AmigaOS /C/install, which installs bootblocks on floppy discs 2245# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2246# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2247# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2248# OS/2's system install, which has a completely different semantic 2249# ./install, which can be erroneously created by make from ./install.sh. 2250# Reject install programs that cannot install multiple files. 2251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2252$as_echo_n "checking for a BSD-compatible install... " >&6; } 2253if test -z "$INSTALL"; then 2254if ${ac_cv_path_install+:} false; then : 2255 $as_echo_n "(cached) " >&6 2256else 2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2258for as_dir in $PATH 2259do 2260 IFS=$as_save_IFS 2261 test -z "$as_dir" && as_dir=. 2262 # Account for people who put trailing slashes in PATH elements. 2263case $as_dir/ in #(( 2264 ./ | .// | /[cC]/* | \ 2265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2266 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2267 /usr/ucb/* ) ;; 2268 *) 2269 # OSF1 and SCO ODT 3.0 have their own names for install. 2270 # Don't use installbsd from OSF since it installs stuff as root 2271 # by default. 2272 for ac_prog in ginstall scoinst install; do 2273 for ac_exec_ext in '' $ac_executable_extensions; do 2274 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2275 if test $ac_prog = install && 2276 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2277 # AIX install. It has an incompatible calling convention. 2278 : 2279 elif test $ac_prog = install && 2280 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2281 # program-specific install script used by HP pwplus--don't use. 2282 : 2283 else 2284 rm -rf conftest.one conftest.two conftest.dir 2285 echo one > conftest.one 2286 echo two > conftest.two 2287 mkdir conftest.dir 2288 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2289 test -s conftest.one && test -s conftest.two && 2290 test -s conftest.dir/conftest.one && 2291 test -s conftest.dir/conftest.two 2292 then 2293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2294 break 3 2295 fi 2296 fi 2297 fi 2298 done 2299 done 2300 ;; 2301esac 2302 2303 done 2304IFS=$as_save_IFS 2305 2306rm -rf conftest.one conftest.two conftest.dir 2307 2308fi 2309 if test "${ac_cv_path_install+set}" = set; then 2310 INSTALL=$ac_cv_path_install 2311 else 2312 # As a last resort, use the slow shell script. Don't cache a 2313 # value for INSTALL within a source directory, because that will 2314 # break other packages using the cache if that directory is 2315 # removed, or if the value is a relative name. 2316 INSTALL=$ac_install_sh 2317 fi 2318fi 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2320$as_echo "$INSTALL" >&6; } 2321 2322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2323# It thinks the first close brace ends the variable substitution. 2324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2325 2326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2327 2328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2329 2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2331$as_echo_n "checking whether build environment is sane... " >&6; } 2332# Reject unsafe characters in $srcdir or the absolute working directory 2333# name. Accept space and tab only in the latter. 2334am_lf=' 2335' 2336case `pwd` in 2337 *[\\\"\#\$\&\'\`$am_lf]*) 2338 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2339esac 2340case $srcdir in 2341 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2342 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2343esac 2344 2345# Do 'set' in a subshell so we don't clobber the current shell's 2346# arguments. Must try -L first in case configure is actually a 2347# symlink; some systems play weird games with the mod time of symlinks 2348# (eg FreeBSD returns the mod time of the symlink's containing 2349# directory). 2350if ( 2351 am_has_slept=no 2352 for am_try in 1 2; do 2353 echo "timestamp, slept: $am_has_slept" > conftest.file 2354 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2355 if test "$*" = "X"; then 2356 # -L didn't work. 2357 set X `ls -t "$srcdir/configure" conftest.file` 2358 fi 2359 if test "$*" != "X $srcdir/configure conftest.file" \ 2360 && test "$*" != "X conftest.file $srcdir/configure"; then 2361 2362 # If neither matched, then we have a broken ls. This can happen 2363 # if, for instance, CONFIG_SHELL is bash and it inherits a 2364 # broken ls alias from the environment. This has actually 2365 # happened. Such a system could not be considered "sane". 2366 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2367 alias in your environment" "$LINENO" 5 2368 fi 2369 if test "$2" = conftest.file || test $am_try -eq 2; then 2370 break 2371 fi 2372 # Just in case. 2373 sleep 1 2374 am_has_slept=yes 2375 done 2376 test "$2" = conftest.file 2377 ) 2378then 2379 # Ok. 2380 : 2381else 2382 as_fn_error $? "newly created file is older than distributed files! 2383Check your system clock" "$LINENO" 5 2384fi 2385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2386$as_echo "yes" >&6; } 2387# If we didn't sleep, we still need to ensure time stamps of config.status and 2388# generated files are strictly newer. 2389am_sleep_pid= 2390if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2391 ( sleep 1 ) & 2392 am_sleep_pid=$! 2393fi 2394 2395rm -f conftest.file 2396 2397test "$program_prefix" != NONE && 2398 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2399# Use a double $ so make ignores it. 2400test "$program_suffix" != NONE && 2401 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2402# Double any \ or $. 2403# By default was `s,x,x', remove it if useless. 2404ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2405program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2406 2407# expand $ac_aux_dir to an absolute path 2408am_aux_dir=`cd $ac_aux_dir && pwd` 2409 2410if test x"${MISSING+set}" != xset; then 2411 case $am_aux_dir in 2412 *\ * | *\ *) 2413 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2414 *) 2415 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2416 esac 2417fi 2418# Use eval to expand $SHELL 2419if eval "$MISSING --is-lightweight"; then 2420 am_missing_run="$MISSING " 2421else 2422 am_missing_run= 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2424$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2425fi 2426 2427if test x"${install_sh}" != xset; then 2428 case $am_aux_dir in 2429 *\ * | *\ *) 2430 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2431 *) 2432 install_sh="\${SHELL} $am_aux_dir/install-sh" 2433 esac 2434fi 2435 2436# Installed binaries are usually stripped using 'strip' when the user 2437# run "make install-strip". However 'strip' might not be the right 2438# tool to use in cross-compilation environments, therefore Automake 2439# will honor the 'STRIP' environment variable to overrule this program. 2440if test "$cross_compiling" != no; then 2441 if test -n "$ac_tool_prefix"; then 2442 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2443set dummy ${ac_tool_prefix}strip; ac_word=$2 2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2445$as_echo_n "checking for $ac_word... " >&6; } 2446if ${ac_cv_prog_STRIP+:} false; then : 2447 $as_echo_n "(cached) " >&6 2448else 2449 if test -n "$STRIP"; then 2450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2451else 2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2453for as_dir in $PATH 2454do 2455 IFS=$as_save_IFS 2456 test -z "$as_dir" && as_dir=. 2457 for ac_exec_ext in '' $ac_executable_extensions; do 2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2459 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2461 break 2 2462 fi 2463done 2464 done 2465IFS=$as_save_IFS 2466 2467fi 2468fi 2469STRIP=$ac_cv_prog_STRIP 2470if test -n "$STRIP"; then 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2472$as_echo "$STRIP" >&6; } 2473else 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2475$as_echo "no" >&6; } 2476fi 2477 2478 2479fi 2480if test -z "$ac_cv_prog_STRIP"; then 2481 ac_ct_STRIP=$STRIP 2482 # Extract the first word of "strip", so it can be a program name with args. 2483set dummy strip; ac_word=$2 2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2485$as_echo_n "checking for $ac_word... " >&6; } 2486if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2487 $as_echo_n "(cached) " >&6 2488else 2489 if test -n "$ac_ct_STRIP"; then 2490 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2491else 2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 for ac_exec_ext in '' $ac_executable_extensions; do 2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2499 ac_cv_prog_ac_ct_STRIP="strip" 2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2501 break 2 2502 fi 2503done 2504 done 2505IFS=$as_save_IFS 2506 2507fi 2508fi 2509ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2510if test -n "$ac_ct_STRIP"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2512$as_echo "$ac_ct_STRIP" >&6; } 2513else 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2515$as_echo "no" >&6; } 2516fi 2517 2518 if test "x$ac_ct_STRIP" = x; then 2519 STRIP=":" 2520 else 2521 case $cross_compiling:$ac_tool_warned in 2522yes:) 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2525ac_tool_warned=yes ;; 2526esac 2527 STRIP=$ac_ct_STRIP 2528 fi 2529else 2530 STRIP="$ac_cv_prog_STRIP" 2531fi 2532 2533fi 2534INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2535 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2537$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2538if test -z "$MKDIR_P"; then 2539 if ${ac_cv_path_mkdir+:} false; then : 2540 $as_echo_n "(cached) " >&6 2541else 2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_prog in mkdir gmkdir; do 2548 for ac_exec_ext in '' $ac_executable_extensions; do 2549 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2550 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2551 'mkdir (GNU coreutils) '* | \ 2552 'mkdir (coreutils) '* | \ 2553 'mkdir (fileutils) '4.1*) 2554 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2555 break 3;; 2556 esac 2557 done 2558 done 2559 done 2560IFS=$as_save_IFS 2561 2562fi 2563 2564 test -d ./--version && rmdir ./--version 2565 if test "${ac_cv_path_mkdir+set}" = set; then 2566 MKDIR_P="$ac_cv_path_mkdir -p" 2567 else 2568 # As a last resort, use the slow shell script. Don't cache a 2569 # value for MKDIR_P within a source directory, because that will 2570 # break other packages using the cache if that directory is 2571 # removed, or if the value is a relative name. 2572 MKDIR_P="$ac_install_sh -d" 2573 fi 2574fi 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2576$as_echo "$MKDIR_P" >&6; } 2577 2578for ac_prog in gawk mawk nawk awk 2579do 2580 # Extract the first word of "$ac_prog", so it can be a program name with args. 2581set dummy $ac_prog; ac_word=$2 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2583$as_echo_n "checking for $ac_word... " >&6; } 2584if ${ac_cv_prog_AWK+:} false; then : 2585 $as_echo_n "(cached) " >&6 2586else 2587 if test -n "$AWK"; then 2588 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2589else 2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2597 ac_cv_prog_AWK="$ac_prog" 2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2599 break 2 2600 fi 2601done 2602 done 2603IFS=$as_save_IFS 2604 2605fi 2606fi 2607AWK=$ac_cv_prog_AWK 2608if test -n "$AWK"; then 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2610$as_echo "$AWK" >&6; } 2611else 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2613$as_echo "no" >&6; } 2614fi 2615 2616 2617 test -n "$AWK" && break 2618done 2619 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2621$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2622set x ${MAKE-make} 2623ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2624if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 cat >conftest.make <<\_ACEOF 2628SHELL = /bin/sh 2629all: 2630 @echo '@@@%%%=$(MAKE)=@@@%%%' 2631_ACEOF 2632# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2633case `${MAKE-make} -f conftest.make 2>/dev/null` in 2634 *@@@%%%=?*=@@@%%%*) 2635 eval ac_cv_prog_make_${ac_make}_set=yes;; 2636 *) 2637 eval ac_cv_prog_make_${ac_make}_set=no;; 2638esac 2639rm -f conftest.make 2640fi 2641if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2643$as_echo "yes" >&6; } 2644 SET_MAKE= 2645else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647$as_echo "no" >&6; } 2648 SET_MAKE="MAKE=${MAKE-make}" 2649fi 2650 2651rm -rf .tst 2>/dev/null 2652mkdir .tst 2>/dev/null 2653if test -d .tst; then 2654 am__leading_dot=. 2655else 2656 am__leading_dot=_ 2657fi 2658rmdir .tst 2>/dev/null 2659 2660# Check whether --enable-silent-rules was given. 2661if test "${enable_silent_rules+set}" = set; then : 2662 enableval=$enable_silent_rules; 2663fi 2664 2665case $enable_silent_rules in # ((( 2666 yes) AM_DEFAULT_VERBOSITY=0;; 2667 no) AM_DEFAULT_VERBOSITY=1;; 2668 *) AM_DEFAULT_VERBOSITY=1;; 2669esac 2670am_make=${MAKE-make} 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2672$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2673if ${am_cv_make_support_nested_variables+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 if $as_echo 'TRUE=$(BAR$(V)) 2677BAR0=false 2678BAR1=true 2679V=1 2680am__doit: 2681 @$(TRUE) 2682.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2683 am_cv_make_support_nested_variables=yes 2684else 2685 am_cv_make_support_nested_variables=no 2686fi 2687fi 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2689$as_echo "$am_cv_make_support_nested_variables" >&6; } 2690if test $am_cv_make_support_nested_variables = yes; then 2691 AM_V='$(V)' 2692 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2693else 2694 AM_V=$AM_DEFAULT_VERBOSITY 2695 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2696fi 2697AM_BACKSLASH='\' 2698 2699if test "`cd $srcdir && pwd`" != "`pwd`"; then 2700 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2701 # is not polluted with repeated "-I." 2702 am__isrc=' -I$(srcdir)' 2703 # test to see if srcdir already configured 2704 if test -f $srcdir/config.status; then 2705 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2706 fi 2707fi 2708 2709# test whether we have cygpath 2710if test -z "$CYGPATH_W"; then 2711 if (cygpath --version) >/dev/null 2>/dev/null; then 2712 CYGPATH_W='cygpath -w' 2713 else 2714 CYGPATH_W=echo 2715 fi 2716fi 2717 2718 2719# Define the identity of the package. 2720 PACKAGE='libXv' 2721 VERSION='1.0.8' 2722 2723 2724cat >>confdefs.h <<_ACEOF 2725#define PACKAGE "$PACKAGE" 2726_ACEOF 2727 2728 2729cat >>confdefs.h <<_ACEOF 2730#define VERSION "$VERSION" 2731_ACEOF 2732 2733# Some tools Automake needs. 2734 2735ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2736 2737 2738AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2739 2740 2741AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2742 2743 2744AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2745 2746 2747MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2748 2749# For better backward compatibility. To be removed once Automake 1.9.x 2750# dies out for good. For more background, see: 2751# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2752# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2753mkdir_p='$(MKDIR_P)' 2754 2755# We need awk for the "check" target. The system "awk" is bad on 2756# some platforms. 2757# Always define AMTAR for backward compatibility. Yes, it's still used 2758# in the wild :-( We should find a proper way to deprecate it ... 2759AMTAR='$${TAR-tar}' 2760 2761 2762# We'll loop over all known methods to create a tar archive until one works. 2763_am_tools='gnutar pax cpio none' 2764 2765am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2766 2767 2768 2769 2770 2771 2772 2773# Initialize libtool 2774case `pwd` in 2775 *\ * | *\ *) 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2777$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2778esac 2779 2780 2781 2782macro_version='2.4.2' 2783macro_revision='1.3337' 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797ltmain="$ac_aux_dir/ltmain.sh" 2798 2799# Make sure we can run config.sub. 2800$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2801 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2802 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2804$as_echo_n "checking build system type... " >&6; } 2805if ${ac_cv_build+:} false; then : 2806 $as_echo_n "(cached) " >&6 2807else 2808 ac_build_alias=$build_alias 2809test "x$ac_build_alias" = x && 2810 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2811test "x$ac_build_alias" = x && 2812 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2813ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2814 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2815 2816fi 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2818$as_echo "$ac_cv_build" >&6; } 2819case $ac_cv_build in 2820*-*-*) ;; 2821*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2822esac 2823build=$ac_cv_build 2824ac_save_IFS=$IFS; IFS='-' 2825set x $ac_cv_build 2826shift 2827build_cpu=$1 2828build_vendor=$2 2829shift; shift 2830# Remember, the first character of IFS is used to create $*, 2831# except with old shells: 2832build_os=$* 2833IFS=$ac_save_IFS 2834case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2835 2836 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2838$as_echo_n "checking host system type... " >&6; } 2839if ${ac_cv_host+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test "x$host_alias" = x; then 2843 ac_cv_host=$ac_cv_build 2844else 2845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2847fi 2848 2849fi 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2851$as_echo "$ac_cv_host" >&6; } 2852case $ac_cv_host in 2853*-*-*) ;; 2854*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2855esac 2856host=$ac_cv_host 2857ac_save_IFS=$IFS; IFS='-' 2858set x $ac_cv_host 2859shift 2860host_cpu=$1 2861host_vendor=$2 2862shift; shift 2863# Remember, the first character of IFS is used to create $*, 2864# except with old shells: 2865host_os=$* 2866IFS=$ac_save_IFS 2867case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2868 2869 2870# Backslashify metacharacters that are still active within 2871# double-quoted strings. 2872sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2873 2874# Same as above, but do not quote variable references. 2875double_quote_subst='s/\(["`\\]\)/\\\1/g' 2876 2877# Sed substitution to delay expansion of an escaped shell variable in a 2878# double_quote_subst'ed string. 2879delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2880 2881# Sed substitution to delay expansion of an escaped single quote. 2882delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2883 2884# Sed substitution to avoid accidental globbing in evaled expressions 2885no_glob_subst='s/\*/\\\*/g' 2886 2887ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2888ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2889ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2890 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2892$as_echo_n "checking how to print strings... " >&6; } 2893# Test print first, because it will be a builtin if present. 2894if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2895 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2896 ECHO='print -r --' 2897elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2898 ECHO='printf %s\n' 2899else 2900 # Use this function as a fallback that always works. 2901 func_fallback_echo () 2902 { 2903 eval 'cat <<_LTECHO_EOF 2904$1 2905_LTECHO_EOF' 2906 } 2907 ECHO='func_fallback_echo' 2908fi 2909 2910# func_echo_all arg... 2911# Invoke $ECHO with all args, space-separated. 2912func_echo_all () 2913{ 2914 $ECHO "" 2915} 2916 2917case "$ECHO" in 2918 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2919$as_echo "printf" >&6; } ;; 2920 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2921$as_echo "print -r" >&6; } ;; 2922 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2923$as_echo "cat" >&6; } ;; 2924esac 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939DEPDIR="${am__leading_dot}deps" 2940 2941ac_config_commands="$ac_config_commands depfiles" 2942 2943 2944am_make=${MAKE-make} 2945cat > confinc << 'END' 2946am__doit: 2947 @echo this is the am__doit target 2948.PHONY: am__doit 2949END 2950# If we don't find an include directive, just comment out the code. 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2952$as_echo_n "checking for style of include used by $am_make... " >&6; } 2953am__include="#" 2954am__quote= 2955_am_result=none 2956# First try GNU make style include. 2957echo "include confinc" > confmf 2958# Ignore all kinds of additional output from 'make'. 2959case `$am_make -s -f confmf 2> /dev/null` in #( 2960*the\ am__doit\ target*) 2961 am__include=include 2962 am__quote= 2963 _am_result=GNU 2964 ;; 2965esac 2966# Now try BSD make style include. 2967if test "$am__include" = "#"; then 2968 echo '.include "confinc"' > confmf 2969 case `$am_make -s -f confmf 2> /dev/null` in #( 2970 *the\ am__doit\ target*) 2971 am__include=.include 2972 am__quote="\"" 2973 _am_result=BSD 2974 ;; 2975 esac 2976fi 2977 2978 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2980$as_echo "$_am_result" >&6; } 2981rm -f confinc confmf 2982 2983# Check whether --enable-dependency-tracking was given. 2984if test "${enable_dependency_tracking+set}" = set; then : 2985 enableval=$enable_dependency_tracking; 2986fi 2987 2988if test "x$enable_dependency_tracking" != xno; then 2989 am_depcomp="$ac_aux_dir/depcomp" 2990 AMDEPBACKSLASH='\' 2991 am__nodep='_no' 2992fi 2993 if test "x$enable_dependency_tracking" != xno; then 2994 AMDEP_TRUE= 2995 AMDEP_FALSE='#' 2996else 2997 AMDEP_TRUE='#' 2998 AMDEP_FALSE= 2999fi 3000 3001 3002ac_ext=c 3003ac_cpp='$CPP $CPPFLAGS' 3004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3006ac_compiler_gnu=$ac_cv_c_compiler_gnu 3007if test -n "$ac_tool_prefix"; then 3008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3009set dummy ${ac_tool_prefix}gcc; ac_word=$2 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011$as_echo_n "checking for $ac_word... " >&6; } 3012if ${ac_cv_prog_CC+:} false; then : 3013 $as_echo_n "(cached) " >&6 3014else 3015 if test -n "$CC"; then 3016 ac_cv_prog_CC="$CC" # Let the user override the test. 3017else 3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019for as_dir in $PATH 3020do 3021 IFS=$as_save_IFS 3022 test -z "$as_dir" && as_dir=. 3023 for ac_exec_ext in '' $ac_executable_extensions; do 3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3025 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3027 break 2 3028 fi 3029done 3030 done 3031IFS=$as_save_IFS 3032 3033fi 3034fi 3035CC=$ac_cv_prog_CC 3036if test -n "$CC"; then 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3038$as_echo "$CC" >&6; } 3039else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041$as_echo "no" >&6; } 3042fi 3043 3044 3045fi 3046if test -z "$ac_cv_prog_CC"; then 3047 ac_ct_CC=$CC 3048 # Extract the first word of "gcc", so it can be a program name with args. 3049set dummy gcc; ac_word=$2 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051$as_echo_n "checking for $ac_word... " >&6; } 3052if ${ac_cv_prog_ac_ct_CC+:} false; then : 3053 $as_echo_n "(cached) " >&6 3054else 3055 if test -n "$ac_ct_CC"; then 3056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3057else 3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3065 ac_cv_prog_ac_ct_CC="gcc" 3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069done 3070 done 3071IFS=$as_save_IFS 3072 3073fi 3074fi 3075ac_ct_CC=$ac_cv_prog_ac_ct_CC 3076if test -n "$ac_ct_CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3078$as_echo "$ac_ct_CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 if test "x$ac_ct_CC" = x; then 3085 CC="" 3086 else 3087 case $cross_compiling:$ac_tool_warned in 3088yes:) 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3091ac_tool_warned=yes ;; 3092esac 3093 CC=$ac_ct_CC 3094 fi 3095else 3096 CC="$ac_cv_prog_CC" 3097fi 3098 3099if test -z "$CC"; then 3100 if test -n "$ac_tool_prefix"; then 3101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3102set dummy ${ac_tool_prefix}cc; ac_word=$2 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104$as_echo_n "checking for $ac_word... " >&6; } 3105if ${ac_cv_prog_CC+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 if test -n "$CC"; then 3109 ac_cv_prog_CC="$CC" # Let the user override the test. 3110else 3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112for as_dir in $PATH 3113do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3118 ac_cv_prog_CC="${ac_tool_prefix}cc" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122done 3123 done 3124IFS=$as_save_IFS 3125 3126fi 3127fi 3128CC=$ac_cv_prog_CC 3129if test -n "$CC"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3131$as_echo "$CC" >&6; } 3132else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134$as_echo "no" >&6; } 3135fi 3136 3137 3138 fi 3139fi 3140if test -z "$CC"; then 3141 # Extract the first word of "cc", so it can be a program name with args. 3142set dummy cc; ac_word=$2 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144$as_echo_n "checking for $ac_word... " >&6; } 3145if ${ac_cv_prog_CC+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 if test -n "$CC"; then 3149 ac_cv_prog_CC="$CC" # Let the user override the test. 3150else 3151 ac_prog_rejected=no 3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153for as_dir in $PATH 3154do 3155 IFS=$as_save_IFS 3156 test -z "$as_dir" && as_dir=. 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3160 ac_prog_rejected=yes 3161 continue 3162 fi 3163 ac_cv_prog_CC="cc" 3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3165 break 2 3166 fi 3167done 3168 done 3169IFS=$as_save_IFS 3170 3171if test $ac_prog_rejected = yes; then 3172 # We found a bogon in the path, so make sure we never use it. 3173 set dummy $ac_cv_prog_CC 3174 shift 3175 if test $# != 0; then 3176 # We chose a different compiler from the bogus one. 3177 # However, it has the same basename, so the bogon will be chosen 3178 # first if we set CC to just the basename; use the full file name. 3179 shift 3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3181 fi 3182fi 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195fi 3196if test -z "$CC"; then 3197 if test -n "$ac_tool_prefix"; then 3198 for ac_prog in cl.exe 3199 do 3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3201set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203$as_echo_n "checking for $ac_word... " >&6; } 3204if ${ac_cv_prog_CC+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 if test -n "$CC"; then 3208 ac_cv_prog_CC="$CC" # Let the user override the test. 3209else 3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH 3212do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225fi 3226fi 3227CC=$ac_cv_prog_CC 3228if test -n "$CC"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3230$as_echo "$CC" >&6; } 3231else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233$as_echo "no" >&6; } 3234fi 3235 3236 3237 test -n "$CC" && break 3238 done 3239fi 3240if test -z "$CC"; then 3241 ac_ct_CC=$CC 3242 for ac_prog in cl.exe 3243do 3244 # Extract the first word of "$ac_prog", so it can be a program name with args. 3245set dummy $ac_prog; ac_word=$2 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247$as_echo_n "checking for $ac_word... " >&6; } 3248if ${ac_cv_prog_ac_ct_CC+:} false; then : 3249 $as_echo_n "(cached) " >&6 3250else 3251 if test -n "$ac_ct_CC"; then 3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3253else 3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH 3256do 3257 IFS=$as_save_IFS 3258 test -z "$as_dir" && as_dir=. 3259 for ac_exec_ext in '' $ac_executable_extensions; do 3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3261 ac_cv_prog_ac_ct_CC="$ac_prog" 3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3263 break 2 3264 fi 3265done 3266 done 3267IFS=$as_save_IFS 3268 3269fi 3270fi 3271ac_ct_CC=$ac_cv_prog_ac_ct_CC 3272if test -n "$ac_ct_CC"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3274$as_echo "$ac_ct_CC" >&6; } 3275else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277$as_echo "no" >&6; } 3278fi 3279 3280 3281 test -n "$ac_ct_CC" && break 3282done 3283 3284 if test "x$ac_ct_CC" = x; then 3285 CC="" 3286 else 3287 case $cross_compiling:$ac_tool_warned in 3288yes:) 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3291ac_tool_warned=yes ;; 3292esac 3293 CC=$ac_ct_CC 3294 fi 3295fi 3296 3297fi 3298 3299 3300test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3302as_fn_error $? "no acceptable C compiler found in \$PATH 3303See \`config.log' for more details" "$LINENO" 5; } 3304 3305# Provide some information about the compiler. 3306$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3307set X $ac_compile 3308ac_compiler=$2 3309for ac_option in --version -v -V -qversion; do 3310 { { ac_try="$ac_compiler $ac_option >&5" 3311case "(($ac_try" in 3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313 *) ac_try_echo=$ac_try;; 3314esac 3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3316$as_echo "$ac_try_echo"; } >&5 3317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3318 ac_status=$? 3319 if test -s conftest.err; then 3320 sed '10a\ 3321... rest of stderr output deleted ... 3322 10q' conftest.err >conftest.er1 3323 cat conftest.er1 >&5 3324 fi 3325 rm -f conftest.er1 conftest.err 3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3327 test $ac_status = 0; } 3328done 3329 3330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3331/* end confdefs.h. */ 3332 3333int 3334main () 3335{ 3336 3337 ; 3338 return 0; 3339} 3340_ACEOF 3341ac_clean_files_save=$ac_clean_files 3342ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3343# Try to create an executable without -o first, disregard a.out. 3344# It will help us diagnose broken compilers, and finding out an intuition 3345# of exeext. 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3347$as_echo_n "checking whether the C compiler works... " >&6; } 3348ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3349 3350# The possible output files: 3351ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3352 3353ac_rmfiles= 3354for ac_file in $ac_files 3355do 3356 case $ac_file in 3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3358 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3359 esac 3360done 3361rm -f $ac_rmfiles 3362 3363if { { ac_try="$ac_link_default" 3364case "(($ac_try" in 3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3366 *) ac_try_echo=$ac_try;; 3367esac 3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3369$as_echo "$ac_try_echo"; } >&5 3370 (eval "$ac_link_default") 2>&5 3371 ac_status=$? 3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3373 test $ac_status = 0; }; then : 3374 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3375# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3376# in a Makefile. We should not override ac_cv_exeext if it was cached, 3377# so that the user can short-circuit this test for compilers unknown to 3378# Autoconf. 3379for ac_file in $ac_files '' 3380do 3381 test -f "$ac_file" || continue 3382 case $ac_file in 3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3384 ;; 3385 [ab].out ) 3386 # We found the default executable, but exeext='' is most 3387 # certainly right. 3388 break;; 3389 *.* ) 3390 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3391 then :; else 3392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3393 fi 3394 # We set ac_cv_exeext here because the later test for it is not 3395 # safe: cross compilers may not add the suffix if given an `-o' 3396 # argument, so we may need to know it at that point already. 3397 # Even if this section looks crufty: it has the advantage of 3398 # actually working. 3399 break;; 3400 * ) 3401 break;; 3402 esac 3403done 3404test "$ac_cv_exeext" = no && ac_cv_exeext= 3405 3406else 3407 ac_file='' 3408fi 3409if test -z "$ac_file"; then : 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3411$as_echo "no" >&6; } 3412$as_echo "$as_me: failed program was:" >&5 3413sed 's/^/| /' conftest.$ac_ext >&5 3414 3415{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3417as_fn_error 77 "C compiler cannot create executables 3418See \`config.log' for more details" "$LINENO" 5; } 3419else 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3421$as_echo "yes" >&6; } 3422fi 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3424$as_echo_n "checking for C compiler default output file name... " >&6; } 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3426$as_echo "$ac_file" >&6; } 3427ac_exeext=$ac_cv_exeext 3428 3429rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3430ac_clean_files=$ac_clean_files_save 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3432$as_echo_n "checking for suffix of executables... " >&6; } 3433if { { ac_try="$ac_link" 3434case "(($ac_try" in 3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3436 *) ac_try_echo=$ac_try;; 3437esac 3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3439$as_echo "$ac_try_echo"; } >&5 3440 (eval "$ac_link") 2>&5 3441 ac_status=$? 3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3443 test $ac_status = 0; }; then : 3444 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3445# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3446# work properly (i.e., refer to `conftest.exe'), while it won't with 3447# `rm'. 3448for ac_file in conftest.exe conftest conftest.*; do 3449 test -f "$ac_file" || continue 3450 case $ac_file in 3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3453 break;; 3454 * ) break;; 3455 esac 3456done 3457else 3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3460as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3461See \`config.log' for more details" "$LINENO" 5; } 3462fi 3463rm -f conftest conftest$ac_cv_exeext 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3465$as_echo "$ac_cv_exeext" >&6; } 3466 3467rm -f conftest.$ac_ext 3468EXEEXT=$ac_cv_exeext 3469ac_exeext=$EXEEXT 3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3471/* end confdefs.h. */ 3472#include <stdio.h> 3473int 3474main () 3475{ 3476FILE *f = fopen ("conftest.out", "w"); 3477 return ferror (f) || fclose (f) != 0; 3478 3479 ; 3480 return 0; 3481} 3482_ACEOF 3483ac_clean_files="$ac_clean_files conftest.out" 3484# Check that the compiler produces executables we can run. If not, either 3485# the compiler is broken, or we cross compile. 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3487$as_echo_n "checking whether we are cross compiling... " >&6; } 3488if test "$cross_compiling" != yes; then 3489 { { ac_try="$ac_link" 3490case "(($ac_try" in 3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3492 *) ac_try_echo=$ac_try;; 3493esac 3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3495$as_echo "$ac_try_echo"; } >&5 3496 (eval "$ac_link") 2>&5 3497 ac_status=$? 3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3499 test $ac_status = 0; } 3500 if { ac_try='./conftest$ac_cv_exeext' 3501 { { case "(($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_try") 2>&5 3508 ac_status=$? 3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3510 test $ac_status = 0; }; }; then 3511 cross_compiling=no 3512 else 3513 if test "$cross_compiling" = maybe; then 3514 cross_compiling=yes 3515 else 3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3518as_fn_error $? "cannot run C compiled programs. 3519If you meant to cross compile, use \`--host'. 3520See \`config.log' for more details" "$LINENO" 5; } 3521 fi 3522 fi 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3525$as_echo "$cross_compiling" >&6; } 3526 3527rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3528ac_clean_files=$ac_clean_files_save 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3530$as_echo_n "checking for suffix of object files... " >&6; } 3531if ${ac_cv_objext+:} false; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536 3537int 3538main () 3539{ 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545rm -f conftest.o conftest.obj 3546if { { ac_try="$ac_compile" 3547case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3552$as_echo "$ac_try_echo"; } >&5 3553 (eval "$ac_compile") 2>&5 3554 ac_status=$? 3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3556 test $ac_status = 0; }; then : 3557 for ac_file in conftest.o conftest.obj conftest.*; do 3558 test -f "$ac_file" || continue; 3559 case $ac_file in 3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3561 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3562 break;; 3563 esac 3564done 3565else 3566 $as_echo "$as_me: failed program was:" >&5 3567sed 's/^/| /' conftest.$ac_ext >&5 3568 3569{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3571as_fn_error $? "cannot compute suffix of object files: cannot compile 3572See \`config.log' for more details" "$LINENO" 5; } 3573fi 3574rm -f conftest.$ac_cv_objext conftest.$ac_ext 3575fi 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3577$as_echo "$ac_cv_objext" >&6; } 3578OBJEXT=$ac_cv_objext 3579ac_objext=$OBJEXT 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3581$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3582if ${ac_cv_c_compiler_gnu+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584else 3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3586/* end confdefs.h. */ 3587 3588int 3589main () 3590{ 3591#ifndef __GNUC__ 3592 choke me 3593#endif 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599if ac_fn_c_try_compile "$LINENO"; then : 3600 ac_compiler_gnu=yes 3601else 3602 ac_compiler_gnu=no 3603fi 3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3605ac_cv_c_compiler_gnu=$ac_compiler_gnu 3606 3607fi 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3609$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3610if test $ac_compiler_gnu = yes; then 3611 GCC=yes 3612else 3613 GCC= 3614fi 3615ac_test_CFLAGS=${CFLAGS+set} 3616ac_save_CFLAGS=$CFLAGS 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3618$as_echo_n "checking whether $CC accepts -g... " >&6; } 3619if ${ac_cv_prog_cc_g+:} false; then : 3620 $as_echo_n "(cached) " >&6 3621else 3622 ac_save_c_werror_flag=$ac_c_werror_flag 3623 ac_c_werror_flag=yes 3624 ac_cv_prog_cc_g=no 3625 CFLAGS="-g" 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629int 3630main () 3631{ 3632 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637if ac_fn_c_try_compile "$LINENO"; then : 3638 ac_cv_prog_cc_g=yes 3639else 3640 CFLAGS="" 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642/* end confdefs.h. */ 3643 3644int 3645main () 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 3654else 3655 ac_c_werror_flag=$ac_save_c_werror_flag 3656 CFLAGS="-g" 3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658/* end confdefs.h. */ 3659 3660int 3661main () 3662{ 3663 3664 ; 3665 return 0; 3666} 3667_ACEOF 3668if ac_fn_c_try_compile "$LINENO"; then : 3669 ac_cv_prog_cc_g=yes 3670fi 3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3672fi 3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3674fi 3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3676 ac_c_werror_flag=$ac_save_c_werror_flag 3677fi 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3679$as_echo "$ac_cv_prog_cc_g" >&6; } 3680if test "$ac_test_CFLAGS" = set; then 3681 CFLAGS=$ac_save_CFLAGS 3682elif test $ac_cv_prog_cc_g = yes; then 3683 if test "$GCC" = yes; then 3684 CFLAGS="-g -O2" 3685 else 3686 CFLAGS="-g" 3687 fi 3688else 3689 if test "$GCC" = yes; then 3690 CFLAGS="-O2" 3691 else 3692 CFLAGS= 3693 fi 3694fi 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3696$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3697if ${ac_cv_prog_cc_c89+:} false; then : 3698 $as_echo_n "(cached) " >&6 3699else 3700 ac_cv_prog_cc_c89=no 3701ac_save_CC=$CC 3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3703/* end confdefs.h. */ 3704#include <stdarg.h> 3705#include <stdio.h> 3706#include <sys/types.h> 3707#include <sys/stat.h> 3708/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3709struct buf { int x; }; 3710FILE * (*rcsopen) (struct buf *, struct stat *, int); 3711static char *e (p, i) 3712 char **p; 3713 int i; 3714{ 3715 return p[i]; 3716} 3717static char *f (char * (*g) (char **, int), char **p, ...) 3718{ 3719 char *s; 3720 va_list v; 3721 va_start (v,p); 3722 s = g (p, va_arg (v,int)); 3723 va_end (v); 3724 return s; 3725} 3726 3727/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3728 function prototypes and stuff, but not '\xHH' hex character constants. 3729 These don't provoke an error unfortunately, instead are silently treated 3730 as 'x'. The following induces an error, until -std is added to get 3731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3732 array size at least. It's necessary to write '\x00'==0 to get something 3733 that's true only with -std. */ 3734int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3735 3736/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3737 inside strings and character constants. */ 3738#define FOO(x) 'x' 3739int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3740 3741int test (int i, double x); 3742struct s1 {int (*f) (int a);}; 3743struct s2 {int (*f) (double a);}; 3744int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3745int argc; 3746char **argv; 3747int 3748main () 3749{ 3750return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3757do 3758 CC="$ac_save_CC $ac_arg" 3759 if ac_fn_c_try_compile "$LINENO"; then : 3760 ac_cv_prog_cc_c89=$ac_arg 3761fi 3762rm -f core conftest.err conftest.$ac_objext 3763 test "x$ac_cv_prog_cc_c89" != "xno" && break 3764done 3765rm -f conftest.$ac_ext 3766CC=$ac_save_CC 3767 3768fi 3769# AC_CACHE_VAL 3770case "x$ac_cv_prog_cc_c89" in 3771 x) 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3773$as_echo "none needed" >&6; } ;; 3774 xno) 3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3776$as_echo "unsupported" >&6; } ;; 3777 *) 3778 CC="$CC $ac_cv_prog_cc_c89" 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3780$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3781esac 3782if test "x$ac_cv_prog_cc_c89" != xno; then : 3783 3784fi 3785 3786ac_ext=c 3787ac_cpp='$CPP $CPPFLAGS' 3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3790ac_compiler_gnu=$ac_cv_c_compiler_gnu 3791 3792depcc="$CC" am_compiler_list= 3793 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3795$as_echo_n "checking dependency style of $depcc... " >&6; } 3796if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3797 $as_echo_n "(cached) " >&6 3798else 3799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3800 # We make a subdir and do the tests there. Otherwise we can end up 3801 # making bogus files that we don't know about and never remove. For 3802 # instance it was reported that on HP-UX the gcc test will end up 3803 # making a dummy file named 'D' -- because '-MD' means "put the output 3804 # in D". 3805 rm -rf conftest.dir 3806 mkdir conftest.dir 3807 # Copy depcomp to subdir because otherwise we won't find it if we're 3808 # using a relative directory. 3809 cp "$am_depcomp" conftest.dir 3810 cd conftest.dir 3811 # We will build objects and dependencies in a subdirectory because 3812 # it helps to detect inapplicable dependency modes. For instance 3813 # both Tru64's cc and ICC support -MD to output dependencies as a 3814 # side effect of compilation, but ICC will put the dependencies in 3815 # the current directory while Tru64 will put them in the object 3816 # directory. 3817 mkdir sub 3818 3819 am_cv_CC_dependencies_compiler_type=none 3820 if test "$am_compiler_list" = ""; then 3821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3822 fi 3823 am__universal=false 3824 case " $depcc " in #( 3825 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3826 esac 3827 3828 for depmode in $am_compiler_list; do 3829 # Setup a source with many dependencies, because some compilers 3830 # like to wrap large dependency lists on column 80 (with \), and 3831 # we should not choose a depcomp mode which is confused by this. 3832 # 3833 # We need to recreate these files for each test, as the compiler may 3834 # overwrite some of them when testing with obscure command lines. 3835 # This happens at least with the AIX C compiler. 3836 : > sub/conftest.c 3837 for i in 1 2 3 4 5 6; do 3838 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3839 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3840 # Solaris 10 /bin/sh. 3841 echo '/* dummy */' > sub/conftst$i.h 3842 done 3843 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3844 3845 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3846 # mode. It turns out that the SunPro C++ compiler does not properly 3847 # handle '-M -o', and we need to detect this. Also, some Intel 3848 # versions had trouble with output in subdirs. 3849 am__obj=sub/conftest.${OBJEXT-o} 3850 am__minus_obj="-o $am__obj" 3851 case $depmode in 3852 gcc) 3853 # This depmode causes a compiler race in universal mode. 3854 test "$am__universal" = false || continue 3855 ;; 3856 nosideeffect) 3857 # After this tag, mechanisms are not by side-effect, so they'll 3858 # only be used when explicitly requested. 3859 if test "x$enable_dependency_tracking" = xyes; then 3860 continue 3861 else 3862 break 3863 fi 3864 ;; 3865 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3866 # This compiler won't grok '-c -o', but also, the minuso test has 3867 # not run yet. These depmodes are late enough in the game, and 3868 # so weak that their functioning should not be impacted. 3869 am__obj=conftest.${OBJEXT-o} 3870 am__minus_obj= 3871 ;; 3872 none) break ;; 3873 esac 3874 if depmode=$depmode \ 3875 source=sub/conftest.c object=$am__obj \ 3876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3877 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3878 >/dev/null 2>conftest.err && 3879 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3881 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3883 # icc doesn't choke on unknown options, it will just issue warnings 3884 # or remarks (even with -Werror). So we grep stderr for any message 3885 # that says an option was ignored or not supported. 3886 # When given -MP, icc 7.0 and 7.1 complain thusly: 3887 # icc: Command line warning: ignoring option '-M'; no argument required 3888 # The diagnosis changed in icc 8.0: 3889 # icc: Command line remark: option '-MP' not supported 3890 if (grep 'ignoring option' conftest.err || 3891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3892 am_cv_CC_dependencies_compiler_type=$depmode 3893 break 3894 fi 3895 fi 3896 done 3897 3898 cd .. 3899 rm -rf conftest.dir 3900else 3901 am_cv_CC_dependencies_compiler_type=none 3902fi 3903 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3906$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3907CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3908 3909 if 3910 test "x$enable_dependency_tracking" != xno \ 3911 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3912 am__fastdepCC_TRUE= 3913 am__fastdepCC_FALSE='#' 3914else 3915 am__fastdepCC_TRUE='#' 3916 am__fastdepCC_FALSE= 3917fi 3918 3919 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3921$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3922if ${ac_cv_path_SED+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924else 3925 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3926 for ac_i in 1 2 3 4 5 6 7; do 3927 ac_script="$ac_script$as_nl$ac_script" 3928 done 3929 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3930 { ac_script=; unset ac_script;} 3931 if test -z "$SED"; then 3932 ac_path_SED_found=false 3933 # Loop through the user's path and test for each of PROGNAME-LIST 3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3935for as_dir in $PATH 3936do 3937 IFS=$as_save_IFS 3938 test -z "$as_dir" && as_dir=. 3939 for ac_prog in sed gsed; do 3940 for ac_exec_ext in '' $ac_executable_extensions; do 3941 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3942 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3943# Check for GNU ac_path_SED and select it if it is found. 3944 # Check for GNU $ac_path_SED 3945case `"$ac_path_SED" --version 2>&1` in 3946*GNU*) 3947 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3948*) 3949 ac_count=0 3950 $as_echo_n 0123456789 >"conftest.in" 3951 while : 3952 do 3953 cat "conftest.in" "conftest.in" >"conftest.tmp" 3954 mv "conftest.tmp" "conftest.in" 3955 cp "conftest.in" "conftest.nl" 3956 $as_echo '' >> "conftest.nl" 3957 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3959 as_fn_arith $ac_count + 1 && ac_count=$as_val 3960 if test $ac_count -gt ${ac_path_SED_max-0}; then 3961 # Best one so far, save it but keep looking for a better one 3962 ac_cv_path_SED="$ac_path_SED" 3963 ac_path_SED_max=$ac_count 3964 fi 3965 # 10*(2^10) chars as input seems more than enough 3966 test $ac_count -gt 10 && break 3967 done 3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3969esac 3970 3971 $ac_path_SED_found && break 3 3972 done 3973 done 3974 done 3975IFS=$as_save_IFS 3976 if test -z "$ac_cv_path_SED"; then 3977 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3978 fi 3979else 3980 ac_cv_path_SED=$SED 3981fi 3982 3983fi 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3985$as_echo "$ac_cv_path_SED" >&6; } 3986 SED="$ac_cv_path_SED" 3987 rm -f conftest.sed 3988 3989test -z "$SED" && SED=sed 3990Xsed="$SED -e 1s/^X//" 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4003$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4004if ${ac_cv_path_GREP+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006else 4007 if test -z "$GREP"; then 4008 ac_path_GREP_found=false 4009 # Loop through the user's path and test for each of PROGNAME-LIST 4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4012do 4013 IFS=$as_save_IFS 4014 test -z "$as_dir" && as_dir=. 4015 for ac_prog in grep ggrep; do 4016 for ac_exec_ext in '' $ac_executable_extensions; do 4017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4019# Check for GNU ac_path_GREP and select it if it is found. 4020 # Check for GNU $ac_path_GREP 4021case `"$ac_path_GREP" --version 2>&1` in 4022*GNU*) 4023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4024*) 4025 ac_count=0 4026 $as_echo_n 0123456789 >"conftest.in" 4027 while : 4028 do 4029 cat "conftest.in" "conftest.in" >"conftest.tmp" 4030 mv "conftest.tmp" "conftest.in" 4031 cp "conftest.in" "conftest.nl" 4032 $as_echo 'GREP' >> "conftest.nl" 4033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4035 as_fn_arith $ac_count + 1 && ac_count=$as_val 4036 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4037 # Best one so far, save it but keep looking for a better one 4038 ac_cv_path_GREP="$ac_path_GREP" 4039 ac_path_GREP_max=$ac_count 4040 fi 4041 # 10*(2^10) chars as input seems more than enough 4042 test $ac_count -gt 10 && break 4043 done 4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4045esac 4046 4047 $ac_path_GREP_found && break 3 4048 done 4049 done 4050 done 4051IFS=$as_save_IFS 4052 if test -z "$ac_cv_path_GREP"; then 4053 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4054 fi 4055else 4056 ac_cv_path_GREP=$GREP 4057fi 4058 4059fi 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4061$as_echo "$ac_cv_path_GREP" >&6; } 4062 GREP="$ac_cv_path_GREP" 4063 4064 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4066$as_echo_n "checking for egrep... " >&6; } 4067if ${ac_cv_path_EGREP+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069else 4070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4071 then ac_cv_path_EGREP="$GREP -E" 4072 else 4073 if test -z "$EGREP"; then 4074 ac_path_EGREP_found=false 4075 # Loop through the user's path and test for each of PROGNAME-LIST 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_prog in egrep; do 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4085# Check for GNU ac_path_EGREP and select it if it is found. 4086 # Check for GNU $ac_path_EGREP 4087case `"$ac_path_EGREP" --version 2>&1` in 4088*GNU*) 4089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4090*) 4091 ac_count=0 4092 $as_echo_n 0123456789 >"conftest.in" 4093 while : 4094 do 4095 cat "conftest.in" "conftest.in" >"conftest.tmp" 4096 mv "conftest.tmp" "conftest.in" 4097 cp "conftest.in" "conftest.nl" 4098 $as_echo 'EGREP' >> "conftest.nl" 4099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4101 as_fn_arith $ac_count + 1 && ac_count=$as_val 4102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4103 # Best one so far, save it but keep looking for a better one 4104 ac_cv_path_EGREP="$ac_path_EGREP" 4105 ac_path_EGREP_max=$ac_count 4106 fi 4107 # 10*(2^10) chars as input seems more than enough 4108 test $ac_count -gt 10 && break 4109 done 4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4111esac 4112 4113 $ac_path_EGREP_found && break 3 4114 done 4115 done 4116 done 4117IFS=$as_save_IFS 4118 if test -z "$ac_cv_path_EGREP"; then 4119 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4120 fi 4121else 4122 ac_cv_path_EGREP=$EGREP 4123fi 4124 4125 fi 4126fi 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4128$as_echo "$ac_cv_path_EGREP" >&6; } 4129 EGREP="$ac_cv_path_EGREP" 4130 4131 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4133$as_echo_n "checking for fgrep... " >&6; } 4134if ${ac_cv_path_FGREP+:} false; then : 4135 $as_echo_n "(cached) " >&6 4136else 4137 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4138 then ac_cv_path_FGREP="$GREP -F" 4139 else 4140 if test -z "$FGREP"; then 4141 ac_path_FGREP_found=false 4142 # Loop through the user's path and test for each of PROGNAME-LIST 4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4144for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4145do 4146 IFS=$as_save_IFS 4147 test -z "$as_dir" && as_dir=. 4148 for ac_prog in fgrep; do 4149 for ac_exec_ext in '' $ac_executable_extensions; do 4150 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4151 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4152# Check for GNU ac_path_FGREP and select it if it is found. 4153 # Check for GNU $ac_path_FGREP 4154case `"$ac_path_FGREP" --version 2>&1` in 4155*GNU*) 4156 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4157*) 4158 ac_count=0 4159 $as_echo_n 0123456789 >"conftest.in" 4160 while : 4161 do 4162 cat "conftest.in" "conftest.in" >"conftest.tmp" 4163 mv "conftest.tmp" "conftest.in" 4164 cp "conftest.in" "conftest.nl" 4165 $as_echo 'FGREP' >> "conftest.nl" 4166 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4168 as_fn_arith $ac_count + 1 && ac_count=$as_val 4169 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4170 # Best one so far, save it but keep looking for a better one 4171 ac_cv_path_FGREP="$ac_path_FGREP" 4172 ac_path_FGREP_max=$ac_count 4173 fi 4174 # 10*(2^10) chars as input seems more than enough 4175 test $ac_count -gt 10 && break 4176 done 4177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4178esac 4179 4180 $ac_path_FGREP_found && break 3 4181 done 4182 done 4183 done 4184IFS=$as_save_IFS 4185 if test -z "$ac_cv_path_FGREP"; then 4186 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4187 fi 4188else 4189 ac_cv_path_FGREP=$FGREP 4190fi 4191 4192 fi 4193fi 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4195$as_echo "$ac_cv_path_FGREP" >&6; } 4196 FGREP="$ac_cv_path_FGREP" 4197 4198 4199test -z "$GREP" && GREP=grep 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219# Check whether --with-gnu-ld was given. 4220if test "${with_gnu_ld+set}" = set; then : 4221 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4222else 4223 with_gnu_ld=no 4224fi 4225 4226ac_prog=ld 4227if test "$GCC" = yes; then 4228 # Check if gcc -print-prog-name=ld gives a path. 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4230$as_echo_n "checking for ld used by $CC... " >&6; } 4231 case $host in 4232 *-*-mingw*) 4233 # gcc leaves a trailing carriage return which upsets mingw 4234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4235 *) 4236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4237 esac 4238 case $ac_prog in 4239 # Accept absolute paths. 4240 [\\/]* | ?:[\\/]*) 4241 re_direlt='/[^/][^/]*/\.\./' 4242 # Canonicalize the pathname of ld 4243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4246 done 4247 test -z "$LD" && LD="$ac_prog" 4248 ;; 4249 "") 4250 # If it fails, then pretend we aren't using GCC. 4251 ac_prog=ld 4252 ;; 4253 *) 4254 # If it is relative, then search for the first ld in PATH. 4255 with_gnu_ld=unknown 4256 ;; 4257 esac 4258elif test "$with_gnu_ld" = yes; then 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4260$as_echo_n "checking for GNU ld... " >&6; } 4261else 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4263$as_echo_n "checking for non-GNU ld... " >&6; } 4264fi 4265if ${lt_cv_path_LD+:} false; then : 4266 $as_echo_n "(cached) " >&6 4267else 4268 if test -z "$LD"; then 4269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4270 for ac_dir in $PATH; do 4271 IFS="$lt_save_ifs" 4272 test -z "$ac_dir" && ac_dir=. 4273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4274 lt_cv_path_LD="$ac_dir/$ac_prog" 4275 # Check to see if the program is GNU ld. I'd rather use --version, 4276 # but apparently some variants of GNU ld only accept -v. 4277 # Break only if it was the GNU/non-GNU ld that we prefer. 4278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4279 *GNU* | *'with BFD'*) 4280 test "$with_gnu_ld" != no && break 4281 ;; 4282 *) 4283 test "$with_gnu_ld" != yes && break 4284 ;; 4285 esac 4286 fi 4287 done 4288 IFS="$lt_save_ifs" 4289else 4290 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4291fi 4292fi 4293 4294LD="$lt_cv_path_LD" 4295if test -n "$LD"; then 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4297$as_echo "$LD" >&6; } 4298else 4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300$as_echo "no" >&6; } 4301fi 4302test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4304$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4305if ${lt_cv_prog_gnu_ld+:} false; then : 4306 $as_echo_n "(cached) " >&6 4307else 4308 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4309case `$LD -v 2>&1 </dev/null` in 4310*GNU* | *'with BFD'*) 4311 lt_cv_prog_gnu_ld=yes 4312 ;; 4313*) 4314 lt_cv_prog_gnu_ld=no 4315 ;; 4316esac 4317fi 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4319$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4320with_gnu_ld=$lt_cv_prog_gnu_ld 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4331$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4332if ${lt_cv_path_NM+:} false; then : 4333 $as_echo_n "(cached) " >&6 4334else 4335 if test -n "$NM"; then 4336 # Let the user override the test. 4337 lt_cv_path_NM="$NM" 4338else 4339 lt_nm_to_check="${ac_tool_prefix}nm" 4340 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4341 lt_nm_to_check="$lt_nm_to_check nm" 4342 fi 4343 for lt_tmp_nm in $lt_nm_to_check; do 4344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4345 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4346 IFS="$lt_save_ifs" 4347 test -z "$ac_dir" && ac_dir=. 4348 tmp_nm="$ac_dir/$lt_tmp_nm" 4349 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4350 # Check to see if the nm accepts a BSD-compat flag. 4351 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4352 # nm: unknown option "B" ignored 4353 # Tru64's nm complains that /dev/null is an invalid object file 4354 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4355 */dev/null* | *'Invalid file or object type'*) 4356 lt_cv_path_NM="$tmp_nm -B" 4357 break 4358 ;; 4359 *) 4360 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4361 */dev/null*) 4362 lt_cv_path_NM="$tmp_nm -p" 4363 break 4364 ;; 4365 *) 4366 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4367 continue # so that we can try to find one that supports BSD flags 4368 ;; 4369 esac 4370 ;; 4371 esac 4372 fi 4373 done 4374 IFS="$lt_save_ifs" 4375 done 4376 : ${lt_cv_path_NM=no} 4377fi 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4380$as_echo "$lt_cv_path_NM" >&6; } 4381if test "$lt_cv_path_NM" != "no"; then 4382 NM="$lt_cv_path_NM" 4383else 4384 # Didn't find any BSD compatible name lister, look for dumpbin. 4385 if test -n "$DUMPBIN"; then : 4386 # Let the user override the test. 4387 else 4388 if test -n "$ac_tool_prefix"; then 4389 for ac_prog in dumpbin "link -dump" 4390 do 4391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4392set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4394$as_echo_n "checking for $ac_word... " >&6; } 4395if ${ac_cv_prog_DUMPBIN+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -n "$DUMPBIN"; then 4399 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4400else 4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4408 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412done 4413 done 4414IFS=$as_save_IFS 4415 4416fi 4417fi 4418DUMPBIN=$ac_cv_prog_DUMPBIN 4419if test -n "$DUMPBIN"; then 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4421$as_echo "$DUMPBIN" >&6; } 4422else 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4424$as_echo "no" >&6; } 4425fi 4426 4427 4428 test -n "$DUMPBIN" && break 4429 done 4430fi 4431if test -z "$DUMPBIN"; then 4432 ac_ct_DUMPBIN=$DUMPBIN 4433 for ac_prog in dumpbin "link -dump" 4434do 4435 # Extract the first word of "$ac_prog", so it can be a program name with args. 4436set dummy $ac_prog; ac_word=$2 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4438$as_echo_n "checking for $ac_word... " >&6; } 4439if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4440 $as_echo_n "(cached) " >&6 4441else 4442 if test -n "$ac_ct_DUMPBIN"; then 4443 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4444else 4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4446for as_dir in $PATH 4447do 4448 IFS=$as_save_IFS 4449 test -z "$as_dir" && as_dir=. 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4454 break 2 4455 fi 4456done 4457 done 4458IFS=$as_save_IFS 4459 4460fi 4461fi 4462ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4463if test -n "$ac_ct_DUMPBIN"; then 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4465$as_echo "$ac_ct_DUMPBIN" >&6; } 4466else 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4468$as_echo "no" >&6; } 4469fi 4470 4471 4472 test -n "$ac_ct_DUMPBIN" && break 4473done 4474 4475 if test "x$ac_ct_DUMPBIN" = x; then 4476 DUMPBIN=":" 4477 else 4478 case $cross_compiling:$ac_tool_warned in 4479yes:) 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4482ac_tool_warned=yes ;; 4483esac 4484 DUMPBIN=$ac_ct_DUMPBIN 4485 fi 4486fi 4487 4488 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4489 *COFF*) 4490 DUMPBIN="$DUMPBIN -symbols" 4491 ;; 4492 *) 4493 DUMPBIN=: 4494 ;; 4495 esac 4496 fi 4497 4498 if test "$DUMPBIN" != ":"; then 4499 NM="$DUMPBIN" 4500 fi 4501fi 4502test -z "$NM" && NM=nm 4503 4504 4505 4506 4507 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4510$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4511if ${lt_cv_nm_interface+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 lt_cv_nm_interface="BSD nm" 4515 echo "int some_variable = 0;" > conftest.$ac_ext 4516 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4517 (eval "$ac_compile" 2>conftest.err) 4518 cat conftest.err >&5 4519 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4520 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4521 cat conftest.err >&5 4522 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4523 cat conftest.out >&5 4524 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4525 lt_cv_nm_interface="MS dumpbin" 4526 fi 4527 rm -f conftest* 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4530$as_echo "$lt_cv_nm_interface" >&6; } 4531 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4533$as_echo_n "checking whether ln -s works... " >&6; } 4534LN_S=$as_ln_s 4535if test "$LN_S" = "ln -s"; then 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4537$as_echo "yes" >&6; } 4538else 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4540$as_echo "no, using $LN_S" >&6; } 4541fi 4542 4543# find the maximum length of command line arguments 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4545$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4546if ${lt_cv_sys_max_cmd_len+:} false; then : 4547 $as_echo_n "(cached) " >&6 4548else 4549 i=0 4550 teststring="ABCD" 4551 4552 case $build_os in 4553 msdosdjgpp*) 4554 # On DJGPP, this test can blow up pretty badly due to problems in libc 4555 # (any single argument exceeding 2000 bytes causes a buffer overrun 4556 # during glob expansion). Even if it were fixed, the result of this 4557 # check would be larger than it should be. 4558 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4559 ;; 4560 4561 gnu*) 4562 # Under GNU Hurd, this test is not required because there is 4563 # no limit to the length of command line arguments. 4564 # Libtool will interpret -1 as no limit whatsoever 4565 lt_cv_sys_max_cmd_len=-1; 4566 ;; 4567 4568 cygwin* | mingw* | cegcc*) 4569 # On Win9x/ME, this test blows up -- it succeeds, but takes 4570 # about 5 minutes as the teststring grows exponentially. 4571 # Worse, since 9x/ME are not pre-emptively multitasking, 4572 # you end up with a "frozen" computer, even though with patience 4573 # the test eventually succeeds (with a max line length of 256k). 4574 # Instead, let's just punt: use the minimum linelength reported by 4575 # all of the supported platforms: 8192 (on NT/2K/XP). 4576 lt_cv_sys_max_cmd_len=8192; 4577 ;; 4578 4579 mint*) 4580 # On MiNT this can take a long time and run out of memory. 4581 lt_cv_sys_max_cmd_len=8192; 4582 ;; 4583 4584 amigaos*) 4585 # On AmigaOS with pdksh, this test takes hours, literally. 4586 # So we just punt and use a minimum line length of 8192. 4587 lt_cv_sys_max_cmd_len=8192; 4588 ;; 4589 4590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4591 # This has been around since 386BSD, at least. Likely further. 4592 if test -x /sbin/sysctl; then 4593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4594 elif test -x /usr/sbin/sysctl; then 4595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4596 else 4597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4598 fi 4599 # And add a safety zone 4600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4602 ;; 4603 4604 interix*) 4605 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4606 lt_cv_sys_max_cmd_len=196608 4607 ;; 4608 4609 os2*) 4610 # The test takes a long time on OS/2. 4611 lt_cv_sys_max_cmd_len=8192 4612 ;; 4613 4614 osf*) 4615 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4616 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4617 # nice to cause kernel panics so lets avoid the loop below. 4618 # First set a reasonable default. 4619 lt_cv_sys_max_cmd_len=16384 4620 # 4621 if test -x /sbin/sysconfig; then 4622 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4623 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4624 esac 4625 fi 4626 ;; 4627 sco3.2v5*) 4628 lt_cv_sys_max_cmd_len=102400 4629 ;; 4630 sysv5* | sco5v6* | sysv4.2uw2*) 4631 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4632 if test -n "$kargmax"; then 4633 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4634 else 4635 lt_cv_sys_max_cmd_len=32768 4636 fi 4637 ;; 4638 *) 4639 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4640 if test -n "$lt_cv_sys_max_cmd_len"; then 4641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4643 else 4644 # Make teststring a little bigger before we do anything with it. 4645 # a 1K string should be a reasonable start. 4646 for i in 1 2 3 4 5 6 7 8 ; do 4647 teststring=$teststring$teststring 4648 done 4649 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4650 # If test is not a shell built-in, we'll probably end up computing a 4651 # maximum length that is only half of the actual maximum length, but 4652 # we can't tell. 4653 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4654 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4655 test $i != 17 # 1/2 MB should be enough 4656 do 4657 i=`expr $i + 1` 4658 teststring=$teststring$teststring 4659 done 4660 # Only check the string length outside the loop. 4661 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4662 teststring= 4663 # Add a significant safety factor because C++ compilers can tack on 4664 # massive amounts of additional arguments before passing them to the 4665 # linker. It appears as though 1/2 is a usable value. 4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4667 fi 4668 ;; 4669 esac 4670 4671fi 4672 4673if test -n $lt_cv_sys_max_cmd_len ; then 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4675$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4676else 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4678$as_echo "none" >&6; } 4679fi 4680max_cmd_len=$lt_cv_sys_max_cmd_len 4681 4682 4683 4684 4685 4686 4687: ${CP="cp -f"} 4688: ${MV="mv -f"} 4689: ${RM="rm -f"} 4690 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4692$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4693# Try some XSI features 4694xsi_shell=no 4695( _lt_dummy="a/b/c" 4696 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4697 = c,a/b,b/c, \ 4698 && eval 'test $(( 1 + 1 )) -eq 2 \ 4699 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4700 && xsi_shell=yes 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4702$as_echo "$xsi_shell" >&6; } 4703 4704 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4706$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4707lt_shell_append=no 4708( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4709 >/dev/null 2>&1 \ 4710 && lt_shell_append=yes 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4712$as_echo "$lt_shell_append" >&6; } 4713 4714 4715if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4716 lt_unset=unset 4717else 4718 lt_unset=false 4719fi 4720 4721 4722 4723 4724 4725# test EBCDIC or ASCII 4726case `echo X|tr X '\101'` in 4727 A) # ASCII based system 4728 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4729 lt_SP2NL='tr \040 \012' 4730 lt_NL2SP='tr \015\012 \040\040' 4731 ;; 4732 *) # EBCDIC based system 4733 lt_SP2NL='tr \100 \n' 4734 lt_NL2SP='tr \r\n \100\100' 4735 ;; 4736esac 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4747$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4748if ${lt_cv_to_host_file_cmd+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 case $host in 4752 *-*-mingw* ) 4753 case $build in 4754 *-*-mingw* ) # actually msys 4755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4756 ;; 4757 *-*-cygwin* ) 4758 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4759 ;; 4760 * ) # otherwise, assume *nix 4761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4762 ;; 4763 esac 4764 ;; 4765 *-*-cygwin* ) 4766 case $build in 4767 *-*-mingw* ) # actually msys 4768 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4769 ;; 4770 *-*-cygwin* ) 4771 lt_cv_to_host_file_cmd=func_convert_file_noop 4772 ;; 4773 * ) # otherwise, assume *nix 4774 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4775 ;; 4776 esac 4777 ;; 4778 * ) # unhandled hosts (and "normal" native builds) 4779 lt_cv_to_host_file_cmd=func_convert_file_noop 4780 ;; 4781esac 4782 4783fi 4784 4785to_host_file_cmd=$lt_cv_to_host_file_cmd 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4787$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4788 4789 4790 4791 4792 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4794$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4795if ${lt_cv_to_tool_file_cmd+:} false; then : 4796 $as_echo_n "(cached) " >&6 4797else 4798 #assume ordinary cross tools, or native build. 4799lt_cv_to_tool_file_cmd=func_convert_file_noop 4800case $host in 4801 *-*-mingw* ) 4802 case $build in 4803 *-*-mingw* ) # actually msys 4804 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4805 ;; 4806 esac 4807 ;; 4808esac 4809 4810fi 4811 4812to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4814$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4815 4816 4817 4818 4819 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4821$as_echo_n "checking for $LD option to reload object files... " >&6; } 4822if ${lt_cv_ld_reload_flag+:} false; then : 4823 $as_echo_n "(cached) " >&6 4824else 4825 lt_cv_ld_reload_flag='-r' 4826fi 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4828$as_echo "$lt_cv_ld_reload_flag" >&6; } 4829reload_flag=$lt_cv_ld_reload_flag 4830case $reload_flag in 4831"" | " "*) ;; 4832*) reload_flag=" $reload_flag" ;; 4833esac 4834reload_cmds='$LD$reload_flag -o $output$reload_objs' 4835case $host_os in 4836 cygwin* | mingw* | pw32* | cegcc*) 4837 if test "$GCC" != yes; then 4838 reload_cmds=false 4839 fi 4840 ;; 4841 darwin*) 4842 if test "$GCC" = yes; then 4843 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4844 else 4845 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4846 fi 4847 ;; 4848esac 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858if test -n "$ac_tool_prefix"; then 4859 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4860set dummy ${ac_tool_prefix}objdump; ac_word=$2 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4862$as_echo_n "checking for $ac_word... " >&6; } 4863if ${ac_cv_prog_OBJDUMP+:} false; then : 4864 $as_echo_n "(cached) " >&6 4865else 4866 if test -n "$OBJDUMP"; then 4867 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4868else 4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4870for as_dir in $PATH 4871do 4872 IFS=$as_save_IFS 4873 test -z "$as_dir" && as_dir=. 4874 for ac_exec_ext in '' $ac_executable_extensions; do 4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4876 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4878 break 2 4879 fi 4880done 4881 done 4882IFS=$as_save_IFS 4883 4884fi 4885fi 4886OBJDUMP=$ac_cv_prog_OBJDUMP 4887if test -n "$OBJDUMP"; then 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4889$as_echo "$OBJDUMP" >&6; } 4890else 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892$as_echo "no" >&6; } 4893fi 4894 4895 4896fi 4897if test -z "$ac_cv_prog_OBJDUMP"; then 4898 ac_ct_OBJDUMP=$OBJDUMP 4899 # Extract the first word of "objdump", so it can be a program name with args. 4900set dummy objdump; ac_word=$2 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4902$as_echo_n "checking for $ac_word... " >&6; } 4903if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 if test -n "$ac_ct_OBJDUMP"; then 4907 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4908else 4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4910for as_dir in $PATH 4911do 4912 IFS=$as_save_IFS 4913 test -z "$as_dir" && as_dir=. 4914 for ac_exec_ext in '' $ac_executable_extensions; do 4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4916 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4918 break 2 4919 fi 4920done 4921 done 4922IFS=$as_save_IFS 4923 4924fi 4925fi 4926ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4927if test -n "$ac_ct_OBJDUMP"; then 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4929$as_echo "$ac_ct_OBJDUMP" >&6; } 4930else 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4932$as_echo "no" >&6; } 4933fi 4934 4935 if test "x$ac_ct_OBJDUMP" = x; then 4936 OBJDUMP="false" 4937 else 4938 case $cross_compiling:$ac_tool_warned in 4939yes:) 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4942ac_tool_warned=yes ;; 4943esac 4944 OBJDUMP=$ac_ct_OBJDUMP 4945 fi 4946else 4947 OBJDUMP="$ac_cv_prog_OBJDUMP" 4948fi 4949 4950test -z "$OBJDUMP" && OBJDUMP=objdump 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4961$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4962if ${lt_cv_deplibs_check_method+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 lt_cv_file_magic_cmd='$MAGIC_CMD' 4966lt_cv_file_magic_test_file= 4967lt_cv_deplibs_check_method='unknown' 4968# Need to set the preceding variable on all platforms that support 4969# interlibrary dependencies. 4970# 'none' -- dependencies not supported. 4971# `unknown' -- same as none, but documents that we really don't know. 4972# 'pass_all' -- all dependencies passed with no checks. 4973# 'test_compile' -- check by making test program. 4974# 'file_magic [[regex]]' -- check by looking for files in library path 4975# which responds to the $file_magic_cmd with a given extended regex. 4976# If you have `file' or equivalent on your system and you're not sure 4977# whether `pass_all' will *always* work, you probably want this one. 4978 4979case $host_os in 4980aix[4-9]*) 4981 lt_cv_deplibs_check_method=pass_all 4982 ;; 4983 4984beos*) 4985 lt_cv_deplibs_check_method=pass_all 4986 ;; 4987 4988bsdi[45]*) 4989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4990 lt_cv_file_magic_cmd='/usr/bin/file -L' 4991 lt_cv_file_magic_test_file=/shlib/libc.so 4992 ;; 4993 4994cygwin*) 4995 # func_win32_libid is a shell function defined in ltmain.sh 4996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4997 lt_cv_file_magic_cmd='func_win32_libid' 4998 ;; 4999 5000mingw* | pw32*) 5001 # Base MSYS/MinGW do not provide the 'file' command needed by 5002 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5003 # unless we find 'file', for example because we are cross-compiling. 5004 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5005 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5007 lt_cv_file_magic_cmd='func_win32_libid' 5008 else 5009 # Keep this pattern in sync with the one in func_win32_libid. 5010 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5011 lt_cv_file_magic_cmd='$OBJDUMP -f' 5012 fi 5013 ;; 5014 5015cegcc*) 5016 # use the weaker test based on 'objdump'. See mingw*. 5017 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5018 lt_cv_file_magic_cmd='$OBJDUMP -f' 5019 ;; 5020 5021darwin* | rhapsody*) 5022 lt_cv_deplibs_check_method=pass_all 5023 ;; 5024 5025freebsd* | dragonfly*) 5026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5027 case $host_cpu in 5028 i*86 ) 5029 # Not sure whether the presence of OpenBSD here was a mistake. 5030 # Let's accept both of them until this is cleared up. 5031 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5032 lt_cv_file_magic_cmd=/usr/bin/file 5033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5034 ;; 5035 esac 5036 else 5037 lt_cv_deplibs_check_method=pass_all 5038 fi 5039 ;; 5040 5041gnu*) 5042 lt_cv_deplibs_check_method=pass_all 5043 ;; 5044 5045haiku*) 5046 lt_cv_deplibs_check_method=pass_all 5047 ;; 5048 5049hpux10.20* | hpux11*) 5050 lt_cv_file_magic_cmd=/usr/bin/file 5051 case $host_cpu in 5052 ia64*) 5053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5054 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5055 ;; 5056 hppa*64*) 5057 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]' 5058 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5059 ;; 5060 *) 5061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5062 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5063 ;; 5064 esac 5065 ;; 5066 5067interix[3-9]*) 5068 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5070 ;; 5071 5072irix5* | irix6* | nonstopux*) 5073 case $LD in 5074 *-32|*"-32 ") libmagic=32-bit;; 5075 *-n32|*"-n32 ") libmagic=N32;; 5076 *-64|*"-64 ") libmagic=64-bit;; 5077 *) libmagic=never-match;; 5078 esac 5079 lt_cv_deplibs_check_method=pass_all 5080 ;; 5081 5082# This must be glibc/ELF. 5083linux* | k*bsd*-gnu | kopensolaris*-gnu) 5084 lt_cv_deplibs_check_method=pass_all 5085 ;; 5086 5087netbsd*) 5088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5090 else 5091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5092 fi 5093 ;; 5094 5095newos6*) 5096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5097 lt_cv_file_magic_cmd=/usr/bin/file 5098 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5099 ;; 5100 5101*nto* | *qnx*) 5102 lt_cv_deplibs_check_method=pass_all 5103 ;; 5104 5105openbsd*) 5106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5108 else 5109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5110 fi 5111 ;; 5112 5113osf3* | osf4* | osf5*) 5114 lt_cv_deplibs_check_method=pass_all 5115 ;; 5116 5117rdos*) 5118 lt_cv_deplibs_check_method=pass_all 5119 ;; 5120 5121solaris*) 5122 lt_cv_deplibs_check_method=pass_all 5123 ;; 5124 5125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5126 lt_cv_deplibs_check_method=pass_all 5127 ;; 5128 5129sysv4 | sysv4.3*) 5130 case $host_vendor in 5131 motorola) 5132 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]' 5133 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5134 ;; 5135 ncr) 5136 lt_cv_deplibs_check_method=pass_all 5137 ;; 5138 sequent) 5139 lt_cv_file_magic_cmd='/bin/file' 5140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5141 ;; 5142 sni) 5143 lt_cv_file_magic_cmd='/bin/file' 5144 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5145 lt_cv_file_magic_test_file=/lib/libc.so 5146 ;; 5147 siemens) 5148 lt_cv_deplibs_check_method=pass_all 5149 ;; 5150 pc) 5151 lt_cv_deplibs_check_method=pass_all 5152 ;; 5153 esac 5154 ;; 5155 5156tpf*) 5157 lt_cv_deplibs_check_method=pass_all 5158 ;; 5159esac 5160 5161fi 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5163$as_echo "$lt_cv_deplibs_check_method" >&6; } 5164 5165file_magic_glob= 5166want_nocaseglob=no 5167if test "$build" = "$host"; then 5168 case $host_os in 5169 mingw* | pw32*) 5170 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5171 want_nocaseglob=yes 5172 else 5173 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5174 fi 5175 ;; 5176 esac 5177fi 5178 5179file_magic_cmd=$lt_cv_file_magic_cmd 5180deplibs_check_method=$lt_cv_deplibs_check_method 5181test -z "$deplibs_check_method" && deplibs_check_method=unknown 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204if test -n "$ac_tool_prefix"; then 5205 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5206set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5208$as_echo_n "checking for $ac_word... " >&6; } 5209if ${ac_cv_prog_DLLTOOL+:} false; then : 5210 $as_echo_n "(cached) " >&6 5211else 5212 if test -n "$DLLTOOL"; then 5213 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5214else 5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5216for as_dir in $PATH 5217do 5218 IFS=$as_save_IFS 5219 test -z "$as_dir" && as_dir=. 5220 for ac_exec_ext in '' $ac_executable_extensions; do 5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5222 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5224 break 2 5225 fi 5226done 5227 done 5228IFS=$as_save_IFS 5229 5230fi 5231fi 5232DLLTOOL=$ac_cv_prog_DLLTOOL 5233if test -n "$DLLTOOL"; then 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5235$as_echo "$DLLTOOL" >&6; } 5236else 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5238$as_echo "no" >&6; } 5239fi 5240 5241 5242fi 5243if test -z "$ac_cv_prog_DLLTOOL"; then 5244 ac_ct_DLLTOOL=$DLLTOOL 5245 # Extract the first word of "dlltool", so it can be a program name with args. 5246set dummy dlltool; ac_word=$2 5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5248$as_echo_n "checking for $ac_word... " >&6; } 5249if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 if test -n "$ac_ct_DLLTOOL"; then 5253 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5254else 5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5256for as_dir in $PATH 5257do 5258 IFS=$as_save_IFS 5259 test -z "$as_dir" && as_dir=. 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5262 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266done 5267 done 5268IFS=$as_save_IFS 5269 5270fi 5271fi 5272ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5273if test -n "$ac_ct_DLLTOOL"; then 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5275$as_echo "$ac_ct_DLLTOOL" >&6; } 5276else 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5278$as_echo "no" >&6; } 5279fi 5280 5281 if test "x$ac_ct_DLLTOOL" = x; then 5282 DLLTOOL="false" 5283 else 5284 case $cross_compiling:$ac_tool_warned in 5285yes:) 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5288ac_tool_warned=yes ;; 5289esac 5290 DLLTOOL=$ac_ct_DLLTOOL 5291 fi 5292else 5293 DLLTOOL="$ac_cv_prog_DLLTOOL" 5294fi 5295 5296test -z "$DLLTOOL" && DLLTOOL=dlltool 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5308$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5309if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5310 $as_echo_n "(cached) " >&6 5311else 5312 lt_cv_sharedlib_from_linklib_cmd='unknown' 5313 5314case $host_os in 5315cygwin* | mingw* | pw32* | cegcc*) 5316 # two different shell functions defined in ltmain.sh 5317 # decide which to use based on capabilities of $DLLTOOL 5318 case `$DLLTOOL --help 2>&1` in 5319 *--identify-strict*) 5320 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5321 ;; 5322 *) 5323 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5324 ;; 5325 esac 5326 ;; 5327*) 5328 # fallback: assume linklib IS sharedlib 5329 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5330 ;; 5331esac 5332 5333fi 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5335$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5336sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5337test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5338 5339 5340 5341 5342 5343 5344 5345 5346if test -n "$ac_tool_prefix"; then 5347 for ac_prog in ar 5348 do 5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5350set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5352$as_echo_n "checking for $ac_word... " >&6; } 5353if ${ac_cv_prog_AR+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 if test -n "$AR"; then 5357 ac_cv_prog_AR="$AR" # Let the user override the test. 5358else 5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360for as_dir in $PATH 5361do 5362 IFS=$as_save_IFS 5363 test -z "$as_dir" && as_dir=. 5364 for ac_exec_ext in '' $ac_executable_extensions; do 5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5366 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5368 break 2 5369 fi 5370done 5371 done 5372IFS=$as_save_IFS 5373 5374fi 5375fi 5376AR=$ac_cv_prog_AR 5377if test -n "$AR"; then 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5379$as_echo "$AR" >&6; } 5380else 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382$as_echo "no" >&6; } 5383fi 5384 5385 5386 test -n "$AR" && break 5387 done 5388fi 5389if test -z "$AR"; then 5390 ac_ct_AR=$AR 5391 for ac_prog in ar 5392do 5393 # Extract the first word of "$ac_prog", so it can be a program name with args. 5394set dummy $ac_prog; ac_word=$2 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5396$as_echo_n "checking for $ac_word... " >&6; } 5397if ${ac_cv_prog_ac_ct_AR+:} false; then : 5398 $as_echo_n "(cached) " >&6 5399else 5400 if test -n "$ac_ct_AR"; then 5401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5402else 5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5404for as_dir in $PATH 5405do 5406 IFS=$as_save_IFS 5407 test -z "$as_dir" && as_dir=. 5408 for ac_exec_ext in '' $ac_executable_extensions; do 5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5410 ac_cv_prog_ac_ct_AR="$ac_prog" 5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5412 break 2 5413 fi 5414done 5415 done 5416IFS=$as_save_IFS 5417 5418fi 5419fi 5420ac_ct_AR=$ac_cv_prog_ac_ct_AR 5421if test -n "$ac_ct_AR"; then 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5423$as_echo "$ac_ct_AR" >&6; } 5424else 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5426$as_echo "no" >&6; } 5427fi 5428 5429 5430 test -n "$ac_ct_AR" && break 5431done 5432 5433 if test "x$ac_ct_AR" = x; then 5434 AR="false" 5435 else 5436 case $cross_compiling:$ac_tool_warned in 5437yes:) 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5440ac_tool_warned=yes ;; 5441esac 5442 AR=$ac_ct_AR 5443 fi 5444fi 5445 5446: ${AR=ar} 5447: ${AR_FLAGS=cru} 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5460$as_echo_n "checking for archiver @FILE support... " >&6; } 5461if ${lt_cv_ar_at_file+:} false; then : 5462 $as_echo_n "(cached) " >&6 5463else 5464 lt_cv_ar_at_file=no 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466/* end confdefs.h. */ 5467 5468int 5469main () 5470{ 5471 5472 ; 5473 return 0; 5474} 5475_ACEOF 5476if ac_fn_c_try_compile "$LINENO"; then : 5477 echo conftest.$ac_objext > conftest.lst 5478 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5480 (eval $lt_ar_try) 2>&5 5481 ac_status=$? 5482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5483 test $ac_status = 0; } 5484 if test "$ac_status" -eq 0; then 5485 # Ensure the archiver fails upon bogus file names. 5486 rm -f conftest.$ac_objext libconftest.a 5487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5488 (eval $lt_ar_try) 2>&5 5489 ac_status=$? 5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5491 test $ac_status = 0; } 5492 if test "$ac_status" -ne 0; then 5493 lt_cv_ar_at_file=@ 5494 fi 5495 fi 5496 rm -f conftest.* libconftest.a 5497 5498fi 5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5500 5501fi 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5503$as_echo "$lt_cv_ar_at_file" >&6; } 5504 5505if test "x$lt_cv_ar_at_file" = xno; then 5506 archiver_list_spec= 5507else 5508 archiver_list_spec=$lt_cv_ar_at_file 5509fi 5510 5511 5512 5513 5514 5515 5516 5517if test -n "$ac_tool_prefix"; then 5518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5519set dummy ${ac_tool_prefix}strip; ac_word=$2 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5521$as_echo_n "checking for $ac_word... " >&6; } 5522if ${ac_cv_prog_STRIP+:} false; then : 5523 $as_echo_n "(cached) " >&6 5524else 5525 if test -n "$STRIP"; then 5526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5527else 5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5529for as_dir in $PATH 5530do 5531 IFS=$as_save_IFS 5532 test -z "$as_dir" && as_dir=. 5533 for ac_exec_ext in '' $ac_executable_extensions; do 5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5535 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5537 break 2 5538 fi 5539done 5540 done 5541IFS=$as_save_IFS 5542 5543fi 5544fi 5545STRIP=$ac_cv_prog_STRIP 5546if test -n "$STRIP"; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5548$as_echo "$STRIP" >&6; } 5549else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5551$as_echo "no" >&6; } 5552fi 5553 5554 5555fi 5556if test -z "$ac_cv_prog_STRIP"; then 5557 ac_ct_STRIP=$STRIP 5558 # Extract the first word of "strip", so it can be a program name with args. 5559set dummy strip; ac_word=$2 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5561$as_echo_n "checking for $ac_word... " >&6; } 5562if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 if test -n "$ac_ct_STRIP"; then 5566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5567else 5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5569for as_dir in $PATH 5570do 5571 IFS=$as_save_IFS 5572 test -z "$as_dir" && as_dir=. 5573 for ac_exec_ext in '' $ac_executable_extensions; do 5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5575 ac_cv_prog_ac_ct_STRIP="strip" 5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5577 break 2 5578 fi 5579done 5580 done 5581IFS=$as_save_IFS 5582 5583fi 5584fi 5585ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5586if test -n "$ac_ct_STRIP"; then 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5588$as_echo "$ac_ct_STRIP" >&6; } 5589else 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5591$as_echo "no" >&6; } 5592fi 5593 5594 if test "x$ac_ct_STRIP" = x; then 5595 STRIP=":" 5596 else 5597 case $cross_compiling:$ac_tool_warned in 5598yes:) 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5601ac_tool_warned=yes ;; 5602esac 5603 STRIP=$ac_ct_STRIP 5604 fi 5605else 5606 STRIP="$ac_cv_prog_STRIP" 5607fi 5608 5609test -z "$STRIP" && STRIP=: 5610 5611 5612 5613 5614 5615 5616if test -n "$ac_tool_prefix"; then 5617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5618set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5620$as_echo_n "checking for $ac_word... " >&6; } 5621if ${ac_cv_prog_RANLIB+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 if test -n "$RANLIB"; then 5625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5626else 5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5628for as_dir in $PATH 5629do 5630 IFS=$as_save_IFS 5631 test -z "$as_dir" && as_dir=. 5632 for ac_exec_ext in '' $ac_executable_extensions; do 5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5636 break 2 5637 fi 5638done 5639 done 5640IFS=$as_save_IFS 5641 5642fi 5643fi 5644RANLIB=$ac_cv_prog_RANLIB 5645if test -n "$RANLIB"; then 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5647$as_echo "$RANLIB" >&6; } 5648else 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5650$as_echo "no" >&6; } 5651fi 5652 5653 5654fi 5655if test -z "$ac_cv_prog_RANLIB"; then 5656 ac_ct_RANLIB=$RANLIB 5657 # Extract the first word of "ranlib", so it can be a program name with args. 5658set dummy ranlib; ac_word=$2 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5660$as_echo_n "checking for $ac_word... " >&6; } 5661if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 if test -n "$ac_ct_RANLIB"; then 5665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5666else 5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5668for as_dir in $PATH 5669do 5670 IFS=$as_save_IFS 5671 test -z "$as_dir" && as_dir=. 5672 for ac_exec_ext in '' $ac_executable_extensions; do 5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5674 ac_cv_prog_ac_ct_RANLIB="ranlib" 5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5676 break 2 5677 fi 5678done 5679 done 5680IFS=$as_save_IFS 5681 5682fi 5683fi 5684ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5685if test -n "$ac_ct_RANLIB"; then 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5687$as_echo "$ac_ct_RANLIB" >&6; } 5688else 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690$as_echo "no" >&6; } 5691fi 5692 5693 if test "x$ac_ct_RANLIB" = x; then 5694 RANLIB=":" 5695 else 5696 case $cross_compiling:$ac_tool_warned in 5697yes:) 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5700ac_tool_warned=yes ;; 5701esac 5702 RANLIB=$ac_ct_RANLIB 5703 fi 5704else 5705 RANLIB="$ac_cv_prog_RANLIB" 5706fi 5707 5708test -z "$RANLIB" && RANLIB=: 5709 5710 5711 5712 5713 5714 5715# Determine commands to create old-style static archives. 5716old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5717old_postinstall_cmds='chmod 644 $oldlib' 5718old_postuninstall_cmds= 5719 5720if test -n "$RANLIB"; then 5721 case $host_os in 5722 openbsd*) 5723 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5724 ;; 5725 *) 5726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5727 ;; 5728 esac 5729 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5730fi 5731 5732case $host_os in 5733 darwin*) 5734 lock_old_archive_extraction=yes ;; 5735 *) 5736 lock_old_archive_extraction=no ;; 5737esac 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777# If no C compiler was specified, use CC. 5778LTCC=${LTCC-"$CC"} 5779 5780# If no C compiler flags were specified, use CFLAGS. 5781LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5782 5783# Allow CC to be a program name with arguments. 5784compiler=$CC 5785 5786 5787# Check for command to grab the raw symbol name followed by C symbol from nm. 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5789$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5790if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5791 $as_echo_n "(cached) " >&6 5792else 5793 5794# These are sane defaults that work on at least a few old systems. 5795# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5796 5797# Character class describing NM global symbol codes. 5798symcode='[BCDEGRST]' 5799 5800# Regexp to match symbols that can be accessed directly from C. 5801sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5802 5803# Define system-specific variables. 5804case $host_os in 5805aix*) 5806 symcode='[BCDT]' 5807 ;; 5808cygwin* | mingw* | pw32* | cegcc*) 5809 symcode='[ABCDGISTW]' 5810 ;; 5811hpux*) 5812 if test "$host_cpu" = ia64; then 5813 symcode='[ABCDEGRST]' 5814 fi 5815 ;; 5816irix* | nonstopux*) 5817 symcode='[BCDEGRST]' 5818 ;; 5819osf*) 5820 symcode='[BCDEGQRST]' 5821 ;; 5822solaris*) 5823 symcode='[BDRT]' 5824 ;; 5825sco3.2v5*) 5826 symcode='[DT]' 5827 ;; 5828sysv4.2uw2*) 5829 symcode='[DT]' 5830 ;; 5831sysv5* | sco5v6* | unixware* | OpenUNIX*) 5832 symcode='[ABDT]' 5833 ;; 5834sysv4) 5835 symcode='[DFNSTU]' 5836 ;; 5837esac 5838 5839# If we're using GNU nm, then use its standard symbol codes. 5840case `$NM -V 2>&1` in 5841*GNU* | *'with BFD'*) 5842 symcode='[ABCDGIRSTW]' ;; 5843esac 5844 5845# Transform an extracted symbol line into a proper C declaration. 5846# Some systems (esp. on ia64) link data and code symbols differently, 5847# so use this general approach. 5848lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5849 5850# Transform an extracted symbol line into symbol name and symbol address 5851lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5852lt_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'" 5853 5854# Handle CRLF in mingw tool chain 5855opt_cr= 5856case $build_os in 5857mingw*) 5858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5859 ;; 5860esac 5861 5862# Try without a prefix underscore, then with it. 5863for ac_symprfx in "" "_"; do 5864 5865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5866 symxfrm="\\1 $ac_symprfx\\2 \\2" 5867 5868 # Write the raw and C identifiers. 5869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5870 # Fake it for dumpbin and say T for any non-static function 5871 # and D for any global variable. 5872 # Also find C++ and __fastcall symbols from MSVC++, 5873 # which start with @ or ?. 5874 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5875" {last_section=section; section=\$ 3};"\ 5876" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5877" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5878" \$ 0!~/External *\|/{next};"\ 5879" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5880" {if(hide[section]) next};"\ 5881" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5882" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5883" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5884" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5885" ' prfx=^$ac_symprfx" 5886 else 5887 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5888 fi 5889 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5890 5891 # Check to see that the pipe works correctly. 5892 pipe_works=no 5893 5894 rm -f conftest* 5895 cat > conftest.$ac_ext <<_LT_EOF 5896#ifdef __cplusplus 5897extern "C" { 5898#endif 5899char nm_test_var; 5900void nm_test_func(void); 5901void nm_test_func(void){} 5902#ifdef __cplusplus 5903} 5904#endif 5905int main(){nm_test_var='a';nm_test_func();return(0);} 5906_LT_EOF 5907 5908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5909 (eval $ac_compile) 2>&5 5910 ac_status=$? 5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5912 test $ac_status = 0; }; then 5913 # Now try to grab the symbols. 5914 nlist=conftest.nm 5915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5916 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5917 ac_status=$? 5918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5919 test $ac_status = 0; } && test -s "$nlist"; then 5920 # Try sorting and uniquifying the output. 5921 if sort "$nlist" | uniq > "$nlist"T; then 5922 mv -f "$nlist"T "$nlist" 5923 else 5924 rm -f "$nlist"T 5925 fi 5926 5927 # Make sure that we snagged all the symbols we need. 5928 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5929 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5930 cat <<_LT_EOF > conftest.$ac_ext 5931/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5932#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5933/* DATA imports from DLLs on WIN32 con't be const, because runtime 5934 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5935# define LT_DLSYM_CONST 5936#elif defined(__osf__) 5937/* This system does not cope well with relocations in const data. */ 5938# define LT_DLSYM_CONST 5939#else 5940# define LT_DLSYM_CONST const 5941#endif 5942 5943#ifdef __cplusplus 5944extern "C" { 5945#endif 5946 5947_LT_EOF 5948 # Now generate the symbol file. 5949 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5950 5951 cat <<_LT_EOF >> conftest.$ac_ext 5952 5953/* The mapping between symbol names and symbols. */ 5954LT_DLSYM_CONST struct { 5955 const char *name; 5956 void *address; 5957} 5958lt__PROGRAM__LTX_preloaded_symbols[] = 5959{ 5960 { "@PROGRAM@", (void *) 0 }, 5961_LT_EOF 5962 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5963 cat <<\_LT_EOF >> conftest.$ac_ext 5964 {0, (void *) 0} 5965}; 5966 5967/* This works around a problem in FreeBSD linker */ 5968#ifdef FREEBSD_WORKAROUND 5969static const void *lt_preloaded_setup() { 5970 return lt__PROGRAM__LTX_preloaded_symbols; 5971} 5972#endif 5973 5974#ifdef __cplusplus 5975} 5976#endif 5977_LT_EOF 5978 # Now try linking the two files. 5979 mv conftest.$ac_objext conftstm.$ac_objext 5980 lt_globsym_save_LIBS=$LIBS 5981 lt_globsym_save_CFLAGS=$CFLAGS 5982 LIBS="conftstm.$ac_objext" 5983 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5985 (eval $ac_link) 2>&5 5986 ac_status=$? 5987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5988 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5989 pipe_works=yes 5990 fi 5991 LIBS=$lt_globsym_save_LIBS 5992 CFLAGS=$lt_globsym_save_CFLAGS 5993 else 5994 echo "cannot find nm_test_func in $nlist" >&5 5995 fi 5996 else 5997 echo "cannot find nm_test_var in $nlist" >&5 5998 fi 5999 else 6000 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6001 fi 6002 else 6003 echo "$progname: failed program was:" >&5 6004 cat conftest.$ac_ext >&5 6005 fi 6006 rm -rf conftest* conftst* 6007 6008 # Do not use the global_symbol_pipe unless it works. 6009 if test "$pipe_works" = yes; then 6010 break 6011 else 6012 lt_cv_sys_global_symbol_pipe= 6013 fi 6014done 6015 6016fi 6017 6018if test -z "$lt_cv_sys_global_symbol_pipe"; then 6019 lt_cv_sys_global_symbol_to_cdecl= 6020fi 6021if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6023$as_echo "failed" >&6; } 6024else 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6026$as_echo "ok" >&6; } 6027fi 6028 6029# Response file support. 6030if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6031 nm_file_list_spec='@' 6032elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6033 nm_file_list_spec='@' 6034fi 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6063$as_echo_n "checking for sysroot... " >&6; } 6064 6065# Check whether --with-sysroot was given. 6066if test "${with_sysroot+set}" = set; then : 6067 withval=$with_sysroot; 6068else 6069 with_sysroot=no 6070fi 6071 6072 6073lt_sysroot= 6074case ${with_sysroot} in #( 6075 yes) 6076 if test "$GCC" = yes; then 6077 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6078 fi 6079 ;; #( 6080 /*) 6081 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6082 ;; #( 6083 no|'') 6084 ;; #( 6085 *) 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6087$as_echo "${with_sysroot}" >&6; } 6088 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6089 ;; 6090esac 6091 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6093$as_echo "${lt_sysroot:-no}" >&6; } 6094 6095 6096 6097 6098 6099# Check whether --enable-libtool-lock was given. 6100if test "${enable_libtool_lock+set}" = set; then : 6101 enableval=$enable_libtool_lock; 6102fi 6103 6104test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6105 6106# Some flags need to be propagated to the compiler or linker for good 6107# libtool support. 6108case $host in 6109ia64-*-hpux*) 6110 # Find out which ABI we are using. 6111 echo 'int i;' > conftest.$ac_ext 6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6113 (eval $ac_compile) 2>&5 6114 ac_status=$? 6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6116 test $ac_status = 0; }; then 6117 case `/usr/bin/file conftest.$ac_objext` in 6118 *ELF-32*) 6119 HPUX_IA64_MODE="32" 6120 ;; 6121 *ELF-64*) 6122 HPUX_IA64_MODE="64" 6123 ;; 6124 esac 6125 fi 6126 rm -rf conftest* 6127 ;; 6128*-*-irix6*) 6129 # Find out which ABI we are using. 6130 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6132 (eval $ac_compile) 2>&5 6133 ac_status=$? 6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6135 test $ac_status = 0; }; then 6136 if test "$lt_cv_prog_gnu_ld" = yes; then 6137 case `/usr/bin/file conftest.$ac_objext` in 6138 *32-bit*) 6139 LD="${LD-ld} -melf32bsmip" 6140 ;; 6141 *N32*) 6142 LD="${LD-ld} -melf32bmipn32" 6143 ;; 6144 *64-bit*) 6145 LD="${LD-ld} -melf64bmip" 6146 ;; 6147 esac 6148 else 6149 case `/usr/bin/file conftest.$ac_objext` in 6150 *32-bit*) 6151 LD="${LD-ld} -32" 6152 ;; 6153 *N32*) 6154 LD="${LD-ld} -n32" 6155 ;; 6156 *64-bit*) 6157 LD="${LD-ld} -64" 6158 ;; 6159 esac 6160 fi 6161 fi 6162 rm -rf conftest* 6163 ;; 6164 6165x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6166s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6167 # Find out which ABI we are using. 6168 echo 'int i;' > conftest.$ac_ext 6169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6170 (eval $ac_compile) 2>&5 6171 ac_status=$? 6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6173 test $ac_status = 0; }; then 6174 case `/usr/bin/file conftest.o` in 6175 *32-bit*) 6176 case $host in 6177 x86_64-*kfreebsd*-gnu) 6178 LD="${LD-ld} -m elf_i386_fbsd" 6179 ;; 6180 x86_64-*linux*) 6181 LD="${LD-ld} -m elf_i386" 6182 ;; 6183 ppc64-*linux*|powerpc64-*linux*) 6184 LD="${LD-ld} -m elf32ppclinux" 6185 ;; 6186 s390x-*linux*) 6187 LD="${LD-ld} -m elf_s390" 6188 ;; 6189 sparc64-*linux*) 6190 LD="${LD-ld} -m elf32_sparc" 6191 ;; 6192 esac 6193 ;; 6194 *64-bit*) 6195 case $host in 6196 x86_64-*kfreebsd*-gnu) 6197 LD="${LD-ld} -m elf_x86_64_fbsd" 6198 ;; 6199 x86_64-*linux*) 6200 LD="${LD-ld} -m elf_x86_64" 6201 ;; 6202 ppc*-*linux*|powerpc*-*linux*) 6203 LD="${LD-ld} -m elf64ppc" 6204 ;; 6205 s390*-*linux*|s390*-*tpf*) 6206 LD="${LD-ld} -m elf64_s390" 6207 ;; 6208 sparc*-*linux*) 6209 LD="${LD-ld} -m elf64_sparc" 6210 ;; 6211 esac 6212 ;; 6213 esac 6214 fi 6215 rm -rf conftest* 6216 ;; 6217 6218*-*-sco3.2v5*) 6219 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6220 SAVE_CFLAGS="$CFLAGS" 6221 CFLAGS="$CFLAGS -belf" 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6223$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6224if ${lt_cv_cc_needs_belf+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 ac_ext=c 6228ac_cpp='$CPP $CPPFLAGS' 6229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6231ac_compiler_gnu=$ac_cv_c_compiler_gnu 6232 6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234/* end confdefs.h. */ 6235 6236int 6237main () 6238{ 6239 6240 ; 6241 return 0; 6242} 6243_ACEOF 6244if ac_fn_c_try_link "$LINENO"; then : 6245 lt_cv_cc_needs_belf=yes 6246else 6247 lt_cv_cc_needs_belf=no 6248fi 6249rm -f core conftest.err conftest.$ac_objext \ 6250 conftest$ac_exeext conftest.$ac_ext 6251 ac_ext=c 6252ac_cpp='$CPP $CPPFLAGS' 6253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6255ac_compiler_gnu=$ac_cv_c_compiler_gnu 6256 6257fi 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6259$as_echo "$lt_cv_cc_needs_belf" >&6; } 6260 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6261 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6262 CFLAGS="$SAVE_CFLAGS" 6263 fi 6264 ;; 6265*-*solaris*) 6266 # Find out which ABI we are using. 6267 echo 'int i;' > conftest.$ac_ext 6268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6269 (eval $ac_compile) 2>&5 6270 ac_status=$? 6271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6272 test $ac_status = 0; }; then 6273 case `/usr/bin/file conftest.o` in 6274 *64-bit*) 6275 case $lt_cv_prog_gnu_ld in 6276 yes*) 6277 case $host in 6278 i?86-*-solaris*) 6279 LD="${LD-ld} -m elf_x86_64" 6280 ;; 6281 sparc*-*-solaris*) 6282 LD="${LD-ld} -m elf64_sparc" 6283 ;; 6284 esac 6285 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6286 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6287 LD="${LD-ld}_sol2" 6288 fi 6289 ;; 6290 *) 6291 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6292 LD="${LD-ld} -64" 6293 fi 6294 ;; 6295 esac 6296 ;; 6297 esac 6298 fi 6299 rm -rf conftest* 6300 ;; 6301esac 6302 6303need_locks="$enable_libtool_lock" 6304 6305if test -n "$ac_tool_prefix"; then 6306 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6307set dummy ${ac_tool_prefix}mt; ac_word=$2 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6309$as_echo_n "checking for $ac_word... " >&6; } 6310if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 if test -n "$MANIFEST_TOOL"; then 6314 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6315else 6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6317for as_dir in $PATH 6318do 6319 IFS=$as_save_IFS 6320 test -z "$as_dir" && as_dir=. 6321 for ac_exec_ext in '' $ac_executable_extensions; do 6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6323 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6325 break 2 6326 fi 6327done 6328 done 6329IFS=$as_save_IFS 6330 6331fi 6332fi 6333MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6334if test -n "$MANIFEST_TOOL"; then 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6336$as_echo "$MANIFEST_TOOL" >&6; } 6337else 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6339$as_echo "no" >&6; } 6340fi 6341 6342 6343fi 6344if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6345 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6346 # Extract the first word of "mt", so it can be a program name with args. 6347set dummy mt; ac_word=$2 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6349$as_echo_n "checking for $ac_word... " >&6; } 6350if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 if test -n "$ac_ct_MANIFEST_TOOL"; then 6354 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6355else 6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6357for as_dir in $PATH 6358do 6359 IFS=$as_save_IFS 6360 test -z "$as_dir" && as_dir=. 6361 for ac_exec_ext in '' $ac_executable_extensions; do 6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6363 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6365 break 2 6366 fi 6367done 6368 done 6369IFS=$as_save_IFS 6370 6371fi 6372fi 6373ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6374if test -n "$ac_ct_MANIFEST_TOOL"; then 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6376$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6377else 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6379$as_echo "no" >&6; } 6380fi 6381 6382 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6383 MANIFEST_TOOL=":" 6384 else 6385 case $cross_compiling:$ac_tool_warned in 6386yes:) 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6389ac_tool_warned=yes ;; 6390esac 6391 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6392 fi 6393else 6394 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6395fi 6396 6397test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6399$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6400if ${lt_cv_path_mainfest_tool+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 lt_cv_path_mainfest_tool=no 6404 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6405 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6406 cat conftest.err >&5 6407 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6408 lt_cv_path_mainfest_tool=yes 6409 fi 6410 rm -f conftest* 6411fi 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6413$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6414if test "x$lt_cv_path_mainfest_tool" != xyes; then 6415 MANIFEST_TOOL=: 6416fi 6417 6418 6419 6420 6421 6422 6423 case $host_os in 6424 rhapsody* | darwin*) 6425 if test -n "$ac_tool_prefix"; then 6426 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6427set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6429$as_echo_n "checking for $ac_word... " >&6; } 6430if ${ac_cv_prog_DSYMUTIL+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432else 6433 if test -n "$DSYMUTIL"; then 6434 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6435else 6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6437for as_dir in $PATH 6438do 6439 IFS=$as_save_IFS 6440 test -z "$as_dir" && as_dir=. 6441 for ac_exec_ext in '' $ac_executable_extensions; do 6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6443 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6445 break 2 6446 fi 6447done 6448 done 6449IFS=$as_save_IFS 6450 6451fi 6452fi 6453DSYMUTIL=$ac_cv_prog_DSYMUTIL 6454if test -n "$DSYMUTIL"; then 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6456$as_echo "$DSYMUTIL" >&6; } 6457else 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6459$as_echo "no" >&6; } 6460fi 6461 6462 6463fi 6464if test -z "$ac_cv_prog_DSYMUTIL"; then 6465 ac_ct_DSYMUTIL=$DSYMUTIL 6466 # Extract the first word of "dsymutil", so it can be a program name with args. 6467set dummy dsymutil; ac_word=$2 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6469$as_echo_n "checking for $ac_word... " >&6; } 6470if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472else 6473 if test -n "$ac_ct_DSYMUTIL"; then 6474 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6475else 6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6477for as_dir in $PATH 6478do 6479 IFS=$as_save_IFS 6480 test -z "$as_dir" && as_dir=. 6481 for ac_exec_ext in '' $ac_executable_extensions; do 6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6483 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6485 break 2 6486 fi 6487done 6488 done 6489IFS=$as_save_IFS 6490 6491fi 6492fi 6493ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6494if test -n "$ac_ct_DSYMUTIL"; then 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6496$as_echo "$ac_ct_DSYMUTIL" >&6; } 6497else 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499$as_echo "no" >&6; } 6500fi 6501 6502 if test "x$ac_ct_DSYMUTIL" = x; then 6503 DSYMUTIL=":" 6504 else 6505 case $cross_compiling:$ac_tool_warned in 6506yes:) 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6509ac_tool_warned=yes ;; 6510esac 6511 DSYMUTIL=$ac_ct_DSYMUTIL 6512 fi 6513else 6514 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6515fi 6516 6517 if test -n "$ac_tool_prefix"; then 6518 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6519set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6521$as_echo_n "checking for $ac_word... " >&6; } 6522if ${ac_cv_prog_NMEDIT+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 if test -n "$NMEDIT"; then 6526 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6527else 6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6529for as_dir in $PATH 6530do 6531 IFS=$as_save_IFS 6532 test -z "$as_dir" && as_dir=. 6533 for ac_exec_ext in '' $ac_executable_extensions; do 6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6535 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6537 break 2 6538 fi 6539done 6540 done 6541IFS=$as_save_IFS 6542 6543fi 6544fi 6545NMEDIT=$ac_cv_prog_NMEDIT 6546if test -n "$NMEDIT"; then 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6548$as_echo "$NMEDIT" >&6; } 6549else 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6551$as_echo "no" >&6; } 6552fi 6553 6554 6555fi 6556if test -z "$ac_cv_prog_NMEDIT"; then 6557 ac_ct_NMEDIT=$NMEDIT 6558 # Extract the first word of "nmedit", so it can be a program name with args. 6559set dummy nmedit; ac_word=$2 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561$as_echo_n "checking for $ac_word... " >&6; } 6562if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 if test -n "$ac_ct_NMEDIT"; then 6566 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6567else 6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6575 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579done 6580 done 6581IFS=$as_save_IFS 6582 6583fi 6584fi 6585ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6586if test -n "$ac_ct_NMEDIT"; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6588$as_echo "$ac_ct_NMEDIT" >&6; } 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 6594 if test "x$ac_ct_NMEDIT" = x; then 6595 NMEDIT=":" 6596 else 6597 case $cross_compiling:$ac_tool_warned in 6598yes:) 6599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6601ac_tool_warned=yes ;; 6602esac 6603 NMEDIT=$ac_ct_NMEDIT 6604 fi 6605else 6606 NMEDIT="$ac_cv_prog_NMEDIT" 6607fi 6608 6609 if test -n "$ac_tool_prefix"; then 6610 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6611set dummy ${ac_tool_prefix}lipo; ac_word=$2 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613$as_echo_n "checking for $ac_word... " >&6; } 6614if ${ac_cv_prog_LIPO+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 if test -n "$LIPO"; then 6618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6627 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632 done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637LIPO=$ac_cv_prog_LIPO 6638if test -n "$LIPO"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6640$as_echo "$LIPO" >&6; } 6641else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643$as_echo "no" >&6; } 6644fi 6645 6646 6647fi 6648if test -z "$ac_cv_prog_LIPO"; then 6649 ac_ct_LIPO=$LIPO 6650 # Extract the first word of "lipo", so it can be a program name with args. 6651set dummy lipo; ac_word=$2 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6653$as_echo_n "checking for $ac_word... " >&6; } 6654if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 if test -n "$ac_ct_LIPO"; then 6658 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6659else 6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6661for as_dir in $PATH 6662do 6663 IFS=$as_save_IFS 6664 test -z "$as_dir" && as_dir=. 6665 for ac_exec_ext in '' $ac_executable_extensions; do 6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6667 ac_cv_prog_ac_ct_LIPO="lipo" 6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6669 break 2 6670 fi 6671done 6672 done 6673IFS=$as_save_IFS 6674 6675fi 6676fi 6677ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6678if test -n "$ac_ct_LIPO"; then 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6680$as_echo "$ac_ct_LIPO" >&6; } 6681else 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6683$as_echo "no" >&6; } 6684fi 6685 6686 if test "x$ac_ct_LIPO" = x; then 6687 LIPO=":" 6688 else 6689 case $cross_compiling:$ac_tool_warned in 6690yes:) 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6693ac_tool_warned=yes ;; 6694esac 6695 LIPO=$ac_ct_LIPO 6696 fi 6697else 6698 LIPO="$ac_cv_prog_LIPO" 6699fi 6700 6701 if test -n "$ac_tool_prefix"; then 6702 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6703set dummy ${ac_tool_prefix}otool; ac_word=$2 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6705$as_echo_n "checking for $ac_word... " >&6; } 6706if ${ac_cv_prog_OTOOL+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 if test -n "$OTOOL"; then 6710 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6711else 6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6713for as_dir in $PATH 6714do 6715 IFS=$as_save_IFS 6716 test -z "$as_dir" && as_dir=. 6717 for ac_exec_ext in '' $ac_executable_extensions; do 6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6719 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6721 break 2 6722 fi 6723done 6724 done 6725IFS=$as_save_IFS 6726 6727fi 6728fi 6729OTOOL=$ac_cv_prog_OTOOL 6730if test -n "$OTOOL"; then 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6732$as_echo "$OTOOL" >&6; } 6733else 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6735$as_echo "no" >&6; } 6736fi 6737 6738 6739fi 6740if test -z "$ac_cv_prog_OTOOL"; then 6741 ac_ct_OTOOL=$OTOOL 6742 # Extract the first word of "otool", so it can be a program name with args. 6743set dummy otool; ac_word=$2 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -n "$ac_ct_OTOOL"; then 6750 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6759 ac_cv_prog_ac_ct_OTOOL="otool" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764 done 6765IFS=$as_save_IFS 6766 6767fi 6768fi 6769ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6770if test -n "$ac_ct_OTOOL"; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6772$as_echo "$ac_ct_OTOOL" >&6; } 6773else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777 6778 if test "x$ac_ct_OTOOL" = x; then 6779 OTOOL=":" 6780 else 6781 case $cross_compiling:$ac_tool_warned in 6782yes:) 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6785ac_tool_warned=yes ;; 6786esac 6787 OTOOL=$ac_ct_OTOOL 6788 fi 6789else 6790 OTOOL="$ac_cv_prog_OTOOL" 6791fi 6792 6793 if test -n "$ac_tool_prefix"; then 6794 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6795set dummy ${ac_tool_prefix}otool64; ac_word=$2 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6797$as_echo_n "checking for $ac_word... " >&6; } 6798if ${ac_cv_prog_OTOOL64+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 if test -n "$OTOOL64"; then 6802 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6803else 6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6805for as_dir in $PATH 6806do 6807 IFS=$as_save_IFS 6808 test -z "$as_dir" && as_dir=. 6809 for ac_exec_ext in '' $ac_executable_extensions; do 6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6811 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6813 break 2 6814 fi 6815done 6816 done 6817IFS=$as_save_IFS 6818 6819fi 6820fi 6821OTOOL64=$ac_cv_prog_OTOOL64 6822if test -n "$OTOOL64"; then 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6824$as_echo "$OTOOL64" >&6; } 6825else 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6827$as_echo "no" >&6; } 6828fi 6829 6830 6831fi 6832if test -z "$ac_cv_prog_OTOOL64"; then 6833 ac_ct_OTOOL64=$OTOOL64 6834 # Extract the first word of "otool64", so it can be a program name with args. 6835set dummy otool64; ac_word=$2 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6837$as_echo_n "checking for $ac_word... " >&6; } 6838if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 if test -n "$ac_ct_OTOOL64"; then 6842 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6843else 6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845for as_dir in $PATH 6846do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6851 ac_cv_prog_ac_ct_OTOOL64="otool64" 6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855done 6856 done 6857IFS=$as_save_IFS 6858 6859fi 6860fi 6861ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6862if test -n "$ac_ct_OTOOL64"; then 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6864$as_echo "$ac_ct_OTOOL64" >&6; } 6865else 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6867$as_echo "no" >&6; } 6868fi 6869 6870 if test "x$ac_ct_OTOOL64" = x; then 6871 OTOOL64=":" 6872 else 6873 case $cross_compiling:$ac_tool_warned in 6874yes:) 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6877ac_tool_warned=yes ;; 6878esac 6879 OTOOL64=$ac_ct_OTOOL64 6880 fi 6881else 6882 OTOOL64="$ac_cv_prog_OTOOL64" 6883fi 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6912$as_echo_n "checking for -single_module linker flag... " >&6; } 6913if ${lt_cv_apple_cc_single_mod+:} false; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 lt_cv_apple_cc_single_mod=no 6917 if test -z "${LT_MULTI_MODULE}"; then 6918 # By default we will add the -single_module flag. You can override 6919 # by either setting the environment variable LT_MULTI_MODULE 6920 # non-empty at configure time, or by adding -multi_module to the 6921 # link flags. 6922 rm -rf libconftest.dylib* 6923 echo "int foo(void){return 1;}" > conftest.c 6924 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6925-dynamiclib -Wl,-single_module conftest.c" >&5 6926 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6927 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6928 _lt_result=$? 6929 # If there is a non-empty error log, and "single_module" 6930 # appears in it, assume the flag caused a linker warning 6931 if test -s conftest.err && $GREP single_module conftest.err; then 6932 cat conftest.err >&5 6933 # Otherwise, if the output was created with a 0 exit code from 6934 # the compiler, it worked. 6935 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6936 lt_cv_apple_cc_single_mod=yes 6937 else 6938 cat conftest.err >&5 6939 fi 6940 rm -rf libconftest.dylib* 6941 rm -f conftest.* 6942 fi 6943fi 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6945$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6946 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6948$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6949if ${lt_cv_ld_exported_symbols_list+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 lt_cv_ld_exported_symbols_list=no 6953 save_LDFLAGS=$LDFLAGS 6954 echo "_main" > conftest.sym 6955 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6957/* end confdefs.h. */ 6958 6959int 6960main () 6961{ 6962 6963 ; 6964 return 0; 6965} 6966_ACEOF 6967if ac_fn_c_try_link "$LINENO"; then : 6968 lt_cv_ld_exported_symbols_list=yes 6969else 6970 lt_cv_ld_exported_symbols_list=no 6971fi 6972rm -f core conftest.err conftest.$ac_objext \ 6973 conftest$ac_exeext conftest.$ac_ext 6974 LDFLAGS="$save_LDFLAGS" 6975 6976fi 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6978$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6979 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6981$as_echo_n "checking for -force_load linker flag... " >&6; } 6982if ${lt_cv_ld_force_load+:} false; then : 6983 $as_echo_n "(cached) " >&6 6984else 6985 lt_cv_ld_force_load=no 6986 cat > conftest.c << _LT_EOF 6987int forced_loaded() { return 2;} 6988_LT_EOF 6989 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6990 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6991 echo "$AR cru libconftest.a conftest.o" >&5 6992 $AR cru libconftest.a conftest.o 2>&5 6993 echo "$RANLIB libconftest.a" >&5 6994 $RANLIB libconftest.a 2>&5 6995 cat > conftest.c << _LT_EOF 6996int main() { return 0;} 6997_LT_EOF 6998 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6999 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7000 _lt_result=$? 7001 if test -s conftest.err && $GREP force_load conftest.err; then 7002 cat conftest.err >&5 7003 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7004 lt_cv_ld_force_load=yes 7005 else 7006 cat conftest.err >&5 7007 fi 7008 rm -f conftest.err libconftest.a conftest conftest.c 7009 rm -rf conftest.dSYM 7010 7011fi 7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7013$as_echo "$lt_cv_ld_force_load" >&6; } 7014 case $host_os in 7015 rhapsody* | darwin1.[012]) 7016 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7017 darwin1.*) 7018 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7019 darwin*) # darwin 5.x on 7020 # if running on 10.5 or later, the deployment target defaults 7021 # to the OS version, if on x86, and 10.4, the deployment 7022 # target defaults to 10.4. Don't you love it? 7023 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7024 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7025 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7026 10.[012]*) 7027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7028 10.*) 7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7030 esac 7031 ;; 7032 esac 7033 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7034 _lt_dar_single_mod='$single_module' 7035 fi 7036 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7037 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7038 else 7039 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7040 fi 7041 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7042 _lt_dsymutil='~$DSYMUTIL $lib || :' 7043 else 7044 _lt_dsymutil= 7045 fi 7046 ;; 7047 esac 7048 7049ac_ext=c 7050ac_cpp='$CPP $CPPFLAGS' 7051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7053ac_compiler_gnu=$ac_cv_c_compiler_gnu 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7055$as_echo_n "checking how to run the C preprocessor... " >&6; } 7056# On Suns, sometimes $CPP names a directory. 7057if test -n "$CPP" && test -d "$CPP"; then 7058 CPP= 7059fi 7060if test -z "$CPP"; then 7061 if ${ac_cv_prog_CPP+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 # Double quotes because CPP needs to be expanded 7065 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7066 do 7067 ac_preproc_ok=false 7068for ac_c_preproc_warn_flag in '' yes 7069do 7070 # Use a header file that comes with gcc, so configuring glibc 7071 # with a fresh cross-compiler works. 7072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7073 # <limits.h> exists even on freestanding compilers. 7074 # On the NeXT, cc -E runs the code through the compiler's parser, 7075 # not just through cpp. "Syntax error" is here to catch this case. 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078#ifdef __STDC__ 7079# include <limits.h> 7080#else 7081# include <assert.h> 7082#endif 7083 Syntax error 7084_ACEOF 7085if ac_fn_c_try_cpp "$LINENO"; then : 7086 7087else 7088 # Broken: fails on valid input. 7089continue 7090fi 7091rm -f conftest.err conftest.i conftest.$ac_ext 7092 7093 # OK, works on sane cases. Now check whether nonexistent headers 7094 # can be detected and how. 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097#include <ac_nonexistent.h> 7098_ACEOF 7099if ac_fn_c_try_cpp "$LINENO"; then : 7100 # Broken: success on invalid input. 7101continue 7102else 7103 # Passes both tests. 7104ac_preproc_ok=: 7105break 7106fi 7107rm -f conftest.err conftest.i conftest.$ac_ext 7108 7109done 7110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7111rm -f conftest.i conftest.err conftest.$ac_ext 7112if $ac_preproc_ok; then : 7113 break 7114fi 7115 7116 done 7117 ac_cv_prog_CPP=$CPP 7118 7119fi 7120 CPP=$ac_cv_prog_CPP 7121else 7122 ac_cv_prog_CPP=$CPP 7123fi 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7125$as_echo "$CPP" >&6; } 7126ac_preproc_ok=false 7127for ac_c_preproc_warn_flag in '' yes 7128do 7129 # Use a header file that comes with gcc, so configuring glibc 7130 # with a fresh cross-compiler works. 7131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7132 # <limits.h> exists even on freestanding compilers. 7133 # On the NeXT, cc -E runs the code through the compiler's parser, 7134 # not just through cpp. "Syntax error" is here to catch this case. 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137#ifdef __STDC__ 7138# include <limits.h> 7139#else 7140# include <assert.h> 7141#endif 7142 Syntax error 7143_ACEOF 7144if ac_fn_c_try_cpp "$LINENO"; then : 7145 7146else 7147 # Broken: fails on valid input. 7148continue 7149fi 7150rm -f conftest.err conftest.i conftest.$ac_ext 7151 7152 # OK, works on sane cases. Now check whether nonexistent headers 7153 # can be detected and how. 7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7155/* end confdefs.h. */ 7156#include <ac_nonexistent.h> 7157_ACEOF 7158if ac_fn_c_try_cpp "$LINENO"; then : 7159 # Broken: success on invalid input. 7160continue 7161else 7162 # Passes both tests. 7163ac_preproc_ok=: 7164break 7165fi 7166rm -f conftest.err conftest.i conftest.$ac_ext 7167 7168done 7169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7170rm -f conftest.i conftest.err conftest.$ac_ext 7171if $ac_preproc_ok; then : 7172 7173else 7174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7176as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7177See \`config.log' for more details" "$LINENO" 5; } 7178fi 7179 7180ac_ext=c 7181ac_cpp='$CPP $CPPFLAGS' 7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7184ac_compiler_gnu=$ac_cv_c_compiler_gnu 7185 7186 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7188$as_echo_n "checking for ANSI C header files... " >&6; } 7189if ${ac_cv_header_stdc+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191else 7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194#include <stdlib.h> 7195#include <stdarg.h> 7196#include <string.h> 7197#include <float.h> 7198 7199int 7200main () 7201{ 7202 7203 ; 7204 return 0; 7205} 7206_ACEOF 7207if ac_fn_c_try_compile "$LINENO"; then : 7208 ac_cv_header_stdc=yes 7209else 7210 ac_cv_header_stdc=no 7211fi 7212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7213 7214if test $ac_cv_header_stdc = yes; then 7215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218#include <string.h> 7219 7220_ACEOF 7221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7222 $EGREP "memchr" >/dev/null 2>&1; then : 7223 7224else 7225 ac_cv_header_stdc=no 7226fi 7227rm -f conftest* 7228 7229fi 7230 7231if test $ac_cv_header_stdc = yes; then 7232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235#include <stdlib.h> 7236 7237_ACEOF 7238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7239 $EGREP "free" >/dev/null 2>&1; then : 7240 7241else 7242 ac_cv_header_stdc=no 7243fi 7244rm -f conftest* 7245 7246fi 7247 7248if test $ac_cv_header_stdc = yes; then 7249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7250 if test "$cross_compiling" = yes; then : 7251 : 7252else 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7254/* end confdefs.h. */ 7255#include <ctype.h> 7256#include <stdlib.h> 7257#if ((' ' & 0x0FF) == 0x020) 7258# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7259# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7260#else 7261# define ISLOWER(c) \ 7262 (('a' <= (c) && (c) <= 'i') \ 7263 || ('j' <= (c) && (c) <= 'r') \ 7264 || ('s' <= (c) && (c) <= 'z')) 7265# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7266#endif 7267 7268#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7269int 7270main () 7271{ 7272 int i; 7273 for (i = 0; i < 256; i++) 7274 if (XOR (islower (i), ISLOWER (i)) 7275 || toupper (i) != TOUPPER (i)) 7276 return 2; 7277 return 0; 7278} 7279_ACEOF 7280if ac_fn_c_try_run "$LINENO"; then : 7281 7282else 7283 ac_cv_header_stdc=no 7284fi 7285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7286 conftest.$ac_objext conftest.beam conftest.$ac_ext 7287fi 7288 7289fi 7290fi 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7292$as_echo "$ac_cv_header_stdc" >&6; } 7293if test $ac_cv_header_stdc = yes; then 7294 7295$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7296 7297fi 7298 7299# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7300for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7301 inttypes.h stdint.h unistd.h 7302do : 7303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7304ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7305" 7306if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7307 cat >>confdefs.h <<_ACEOF 7308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7309_ACEOF 7310 7311fi 7312 7313done 7314 7315 7316for ac_header in dlfcn.h 7317do : 7318 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7319" 7320if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7321 cat >>confdefs.h <<_ACEOF 7322#define HAVE_DLFCN_H 1 7323_ACEOF 7324 7325fi 7326 7327done 7328 7329 7330 7331 7332 7333# Set options 7334 7335 7336 7337 enable_dlopen=no 7338 7339 7340 enable_win32_dll=no 7341 7342 7343 # Check whether --enable-shared was given. 7344if test "${enable_shared+set}" = set; then : 7345 enableval=$enable_shared; p=${PACKAGE-default} 7346 case $enableval in 7347 yes) enable_shared=yes ;; 7348 no) enable_shared=no ;; 7349 *) 7350 enable_shared=no 7351 # Look at the argument we got. We use all the common list separators. 7352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7353 for pkg in $enableval; do 7354 IFS="$lt_save_ifs" 7355 if test "X$pkg" = "X$p"; then 7356 enable_shared=yes 7357 fi 7358 done 7359 IFS="$lt_save_ifs" 7360 ;; 7361 esac 7362else 7363 enable_shared=yes 7364fi 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 # Check whether --enable-static was given. 7375if test "${enable_static+set}" = set; then : 7376 enableval=$enable_static; p=${PACKAGE-default} 7377 case $enableval in 7378 yes) enable_static=yes ;; 7379 no) enable_static=no ;; 7380 *) 7381 enable_static=no 7382 # Look at the argument we got. We use all the common list separators. 7383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7384 for pkg in $enableval; do 7385 IFS="$lt_save_ifs" 7386 if test "X$pkg" = "X$p"; then 7387 enable_static=yes 7388 fi 7389 done 7390 IFS="$lt_save_ifs" 7391 ;; 7392 esac 7393else 7394 enable_static=yes 7395fi 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406# Check whether --with-pic was given. 7407if test "${with_pic+set}" = set; then : 7408 withval=$with_pic; lt_p=${PACKAGE-default} 7409 case $withval in 7410 yes|no) pic_mode=$withval ;; 7411 *) 7412 pic_mode=default 7413 # Look at the argument we got. We use all the common list separators. 7414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7415 for lt_pkg in $withval; do 7416 IFS="$lt_save_ifs" 7417 if test "X$lt_pkg" = "X$lt_p"; then 7418 pic_mode=yes 7419 fi 7420 done 7421 IFS="$lt_save_ifs" 7422 ;; 7423 esac 7424else 7425 pic_mode=default 7426fi 7427 7428 7429test -z "$pic_mode" && pic_mode=default 7430 7431 7432 7433 7434 7435 7436 7437 # Check whether --enable-fast-install was given. 7438if test "${enable_fast_install+set}" = set; then : 7439 enableval=$enable_fast_install; p=${PACKAGE-default} 7440 case $enableval in 7441 yes) enable_fast_install=yes ;; 7442 no) enable_fast_install=no ;; 7443 *) 7444 enable_fast_install=no 7445 # Look at the argument we got. We use all the common list separators. 7446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7447 for pkg in $enableval; do 7448 IFS="$lt_save_ifs" 7449 if test "X$pkg" = "X$p"; then 7450 enable_fast_install=yes 7451 fi 7452 done 7453 IFS="$lt_save_ifs" 7454 ;; 7455 esac 7456else 7457 enable_fast_install=yes 7458fi 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470# This can be used to rebuild libtool when needed 7471LIBTOOL_DEPS="$ltmain" 7472 7473# Always use our own libtool. 7474LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505test -z "$LN_S" && LN_S="ln -s" 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520if test -n "${ZSH_VERSION+set}" ; then 7521 setopt NO_GLOB_SUBST 7522fi 7523 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7525$as_echo_n "checking for objdir... " >&6; } 7526if ${lt_cv_objdir+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 rm -f .libs 2>/dev/null 7530mkdir .libs 2>/dev/null 7531if test -d .libs; then 7532 lt_cv_objdir=.libs 7533else 7534 # MS-DOS does not allow filenames that begin with a dot. 7535 lt_cv_objdir=_libs 7536fi 7537rmdir .libs 2>/dev/null 7538fi 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7540$as_echo "$lt_cv_objdir" >&6; } 7541objdir=$lt_cv_objdir 7542 7543 7544 7545 7546 7547cat >>confdefs.h <<_ACEOF 7548#define LT_OBJDIR "$lt_cv_objdir/" 7549_ACEOF 7550 7551 7552 7553 7554case $host_os in 7555aix3*) 7556 # AIX sometimes has problems with the GCC collect2 program. For some 7557 # reason, if we set the COLLECT_NAMES environment variable, the problems 7558 # vanish in a puff of smoke. 7559 if test "X${COLLECT_NAMES+set}" != Xset; then 7560 COLLECT_NAMES= 7561 export COLLECT_NAMES 7562 fi 7563 ;; 7564esac 7565 7566# Global variables: 7567ofile=libtool 7568can_build_shared=yes 7569 7570# All known linkers require a `.a' archive for static linking (except MSVC, 7571# which needs '.lib'). 7572libext=a 7573 7574with_gnu_ld="$lt_cv_prog_gnu_ld" 7575 7576old_CC="$CC" 7577old_CFLAGS="$CFLAGS" 7578 7579# Set sane defaults for various variables 7580test -z "$CC" && CC=cc 7581test -z "$LTCC" && LTCC=$CC 7582test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7583test -z "$LD" && LD=ld 7584test -z "$ac_objext" && ac_objext=o 7585 7586for cc_temp in $compiler""; do 7587 case $cc_temp in 7588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7590 \-*) ;; 7591 *) break;; 7592 esac 7593done 7594cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7595 7596 7597# Only perform the check for file, if the check method requires it 7598test -z "$MAGIC_CMD" && MAGIC_CMD=file 7599case $deplibs_check_method in 7600file_magic*) 7601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7603$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7604if ${lt_cv_path_MAGIC_CMD+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 case $MAGIC_CMD in 7608[\\/*] | ?:[\\/]*) 7609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7610 ;; 7611*) 7612 lt_save_MAGIC_CMD="$MAGIC_CMD" 7613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7615 for ac_dir in $ac_dummy; do 7616 IFS="$lt_save_ifs" 7617 test -z "$ac_dir" && ac_dir=. 7618 if test -f $ac_dir/${ac_tool_prefix}file; then 7619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7620 if test -n "$file_magic_test_file"; then 7621 case $deplibs_check_method in 7622 "file_magic "*) 7623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7626 $EGREP "$file_magic_regex" > /dev/null; then 7627 : 7628 else 7629 cat <<_LT_EOF 1>&2 7630 7631*** Warning: the command libtool uses to detect shared libraries, 7632*** $file_magic_cmd, produces output that libtool cannot recognize. 7633*** The result is that libtool may fail to recognize shared libraries 7634*** as such. This will affect the creation of libtool libraries that 7635*** depend on shared libraries, but programs linked with such libtool 7636*** libraries will work regardless of this problem. Nevertheless, you 7637*** may want to report the problem to your system manager and/or to 7638*** bug-libtool@gnu.org 7639 7640_LT_EOF 7641 fi ;; 7642 esac 7643 fi 7644 break 7645 fi 7646 done 7647 IFS="$lt_save_ifs" 7648 MAGIC_CMD="$lt_save_MAGIC_CMD" 7649 ;; 7650esac 7651fi 7652 7653MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7654if test -n "$MAGIC_CMD"; then 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7656$as_echo "$MAGIC_CMD" >&6; } 7657else 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7659$as_echo "no" >&6; } 7660fi 7661 7662 7663 7664 7665 7666if test -z "$lt_cv_path_MAGIC_CMD"; then 7667 if test -n "$ac_tool_prefix"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7669$as_echo_n "checking for file... " >&6; } 7670if ${lt_cv_path_MAGIC_CMD+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 case $MAGIC_CMD in 7674[\\/*] | ?:[\\/]*) 7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7676 ;; 7677*) 7678 lt_save_MAGIC_CMD="$MAGIC_CMD" 7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7681 for ac_dir in $ac_dummy; do 7682 IFS="$lt_save_ifs" 7683 test -z "$ac_dir" && ac_dir=. 7684 if test -f $ac_dir/file; then 7685 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7686 if test -n "$file_magic_test_file"; then 7687 case $deplibs_check_method in 7688 "file_magic "*) 7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7692 $EGREP "$file_magic_regex" > /dev/null; then 7693 : 7694 else 7695 cat <<_LT_EOF 1>&2 7696 7697*** Warning: the command libtool uses to detect shared libraries, 7698*** $file_magic_cmd, produces output that libtool cannot recognize. 7699*** The result is that libtool may fail to recognize shared libraries 7700*** as such. This will affect the creation of libtool libraries that 7701*** depend on shared libraries, but programs linked with such libtool 7702*** libraries will work regardless of this problem. Nevertheless, you 7703*** may want to report the problem to your system manager and/or to 7704*** bug-libtool@gnu.org 7705 7706_LT_EOF 7707 fi ;; 7708 esac 7709 fi 7710 break 7711 fi 7712 done 7713 IFS="$lt_save_ifs" 7714 MAGIC_CMD="$lt_save_MAGIC_CMD" 7715 ;; 7716esac 7717fi 7718 7719MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7720if test -n "$MAGIC_CMD"; then 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7722$as_echo "$MAGIC_CMD" >&6; } 7723else 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725$as_echo "no" >&6; } 7726fi 7727 7728 7729 else 7730 MAGIC_CMD=: 7731 fi 7732fi 7733 7734 fi 7735 ;; 7736esac 7737 7738# Use C for the default configuration in the libtool script 7739 7740lt_save_CC="$CC" 7741ac_ext=c 7742ac_cpp='$CPP $CPPFLAGS' 7743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7745ac_compiler_gnu=$ac_cv_c_compiler_gnu 7746 7747 7748# Source file extension for C test sources. 7749ac_ext=c 7750 7751# Object file extension for compiled C test sources. 7752objext=o 7753objext=$objext 7754 7755# Code to be used in simple compile tests 7756lt_simple_compile_test_code="int some_variable = 0;" 7757 7758# Code to be used in simple link tests 7759lt_simple_link_test_code='int main(){return(0);}' 7760 7761 7762 7763 7764 7765 7766 7767# If no C compiler was specified, use CC. 7768LTCC=${LTCC-"$CC"} 7769 7770# If no C compiler flags were specified, use CFLAGS. 7771LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7772 7773# Allow CC to be a program name with arguments. 7774compiler=$CC 7775 7776# Save the default compiler, since it gets overwritten when the other 7777# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7778compiler_DEFAULT=$CC 7779 7780# save warnings/boilerplate of simple test code 7781ac_outfile=conftest.$ac_objext 7782echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7783eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7784_lt_compiler_boilerplate=`cat conftest.err` 7785$RM conftest* 7786 7787ac_outfile=conftest.$ac_objext 7788echo "$lt_simple_link_test_code" >conftest.$ac_ext 7789eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7790_lt_linker_boilerplate=`cat conftest.err` 7791$RM -r conftest* 7792 7793 7794if test -n "$compiler"; then 7795 7796lt_prog_compiler_no_builtin_flag= 7797 7798if test "$GCC" = yes; then 7799 case $cc_basename in 7800 nvcc*) 7801 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7802 *) 7803 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7804 esac 7805 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7807$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7808if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 lt_cv_prog_compiler_rtti_exceptions=no 7812 ac_outfile=conftest.$ac_objext 7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7814 lt_compiler_flag="-fno-rtti -fno-exceptions" 7815 # Insert the option either (1) after the last *FLAGS variable, or 7816 # (2) before a word containing "conftest.", or (3) at the end. 7817 # Note that $ac_compile itself does not contain backslashes and begins 7818 # with a dollar sign (not a hyphen), so the echo should work correctly. 7819 # The option is referenced via a variable to avoid confusing sed. 7820 lt_compile=`echo "$ac_compile" | $SED \ 7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7823 -e 's:$: $lt_compiler_flag:'` 7824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7825 (eval "$lt_compile" 2>conftest.err) 7826 ac_status=$? 7827 cat conftest.err >&5 7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7829 if (exit $ac_status) && test -s "$ac_outfile"; then 7830 # The compiler can only warn and ignore the option if not recognized 7831 # So say no if there are warnings other than the usual output. 7832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7835 lt_cv_prog_compiler_rtti_exceptions=yes 7836 fi 7837 fi 7838 $RM conftest* 7839 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7842$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7843 7844if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7846else 7847 : 7848fi 7849 7850fi 7851 7852 7853 7854 7855 7856 7857 lt_prog_compiler_wl= 7858lt_prog_compiler_pic= 7859lt_prog_compiler_static= 7860 7861 7862 if test "$GCC" = yes; then 7863 lt_prog_compiler_wl='-Wl,' 7864 lt_prog_compiler_static='-static' 7865 7866 case $host_os in 7867 aix*) 7868 # All AIX code is PIC. 7869 if test "$host_cpu" = ia64; then 7870 # AIX 5 now supports IA64 processor 7871 lt_prog_compiler_static='-Bstatic' 7872 fi 7873 ;; 7874 7875 amigaos*) 7876 case $host_cpu in 7877 powerpc) 7878 # see comment about AmigaOS4 .so support 7879 lt_prog_compiler_pic='-fPIC' 7880 ;; 7881 m68k) 7882 # FIXME: we need at least 68020 code to build shared libraries, but 7883 # adding the `-m68020' flag to GCC prevents building anything better, 7884 # like `-m68040'. 7885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7886 ;; 7887 esac 7888 ;; 7889 7890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7891 # PIC is the default for these OSes. 7892 ;; 7893 7894 mingw* | cygwin* | pw32* | os2* | cegcc*) 7895 # This hack is so that the source file can tell whether it is being 7896 # built for inclusion in a dll (and should export symbols for example). 7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7898 # (--disable-auto-import) libraries 7899 lt_prog_compiler_pic='-DDLL_EXPORT' 7900 ;; 7901 7902 darwin* | rhapsody*) 7903 # PIC is the default on this platform 7904 # Common symbols not allowed in MH_DYLIB files 7905 lt_prog_compiler_pic='-fno-common' 7906 ;; 7907 7908 haiku*) 7909 # PIC is the default for Haiku. 7910 # The "-static" flag exists, but is broken. 7911 lt_prog_compiler_static= 7912 ;; 7913 7914 hpux*) 7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7917 # sets the default TLS model and affects inlining. 7918 case $host_cpu in 7919 hppa*64*) 7920 # +Z the default 7921 ;; 7922 *) 7923 lt_prog_compiler_pic='-fPIC' 7924 ;; 7925 esac 7926 ;; 7927 7928 interix[3-9]*) 7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7930 # Instead, we relocate shared libraries at runtime. 7931 ;; 7932 7933 msdosdjgpp*) 7934 # Just because we use GCC doesn't mean we suddenly get shared libraries 7935 # on systems that don't support them. 7936 lt_prog_compiler_can_build_shared=no 7937 enable_shared=no 7938 ;; 7939 7940 *nto* | *qnx*) 7941 # QNX uses GNU C++, but need to define -shared option too, otherwise 7942 # it will coredump. 7943 lt_prog_compiler_pic='-fPIC -shared' 7944 ;; 7945 7946 sysv4*MP*) 7947 if test -d /usr/nec; then 7948 lt_prog_compiler_pic=-Kconform_pic 7949 fi 7950 ;; 7951 7952 *) 7953 lt_prog_compiler_pic='-fPIC' 7954 ;; 7955 esac 7956 7957 case $cc_basename in 7958 nvcc*) # Cuda Compiler Driver 2.2 7959 lt_prog_compiler_wl='-Xlinker ' 7960 if test -n "$lt_prog_compiler_pic"; then 7961 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7962 fi 7963 ;; 7964 esac 7965 else 7966 # PORTME Check for flag to pass linker flags through the system compiler. 7967 case $host_os in 7968 aix*) 7969 lt_prog_compiler_wl='-Wl,' 7970 if test "$host_cpu" = ia64; then 7971 # AIX 5 now supports IA64 processor 7972 lt_prog_compiler_static='-Bstatic' 7973 else 7974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7975 fi 7976 ;; 7977 7978 mingw* | cygwin* | pw32* | os2* | cegcc*) 7979 # This hack is so that the source file can tell whether it is being 7980 # built for inclusion in a dll (and should export symbols for example). 7981 lt_prog_compiler_pic='-DDLL_EXPORT' 7982 ;; 7983 7984 hpux9* | hpux10* | hpux11*) 7985 lt_prog_compiler_wl='-Wl,' 7986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7987 # not for PA HP-UX. 7988 case $host_cpu in 7989 hppa*64*|ia64*) 7990 # +Z the default 7991 ;; 7992 *) 7993 lt_prog_compiler_pic='+Z' 7994 ;; 7995 esac 7996 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7997 lt_prog_compiler_static='${wl}-a ${wl}archive' 7998 ;; 7999 8000 irix5* | irix6* | nonstopux*) 8001 lt_prog_compiler_wl='-Wl,' 8002 # PIC (with -KPIC) is the default. 8003 lt_prog_compiler_static='-non_shared' 8004 ;; 8005 8006 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8007 case $cc_basename in 8008 # old Intel for x86_64 which still supported -KPIC. 8009 ecc*) 8010 lt_prog_compiler_wl='-Wl,' 8011 lt_prog_compiler_pic='-KPIC' 8012 lt_prog_compiler_static='-static' 8013 ;; 8014 # icc used to be incompatible with GCC. 8015 # ICC 10 doesn't accept -KPIC any more. 8016 icc* | ifort*) 8017 lt_prog_compiler_wl='-Wl,' 8018 lt_prog_compiler_pic='-fPIC' 8019 lt_prog_compiler_static='-static' 8020 ;; 8021 # Lahey Fortran 8.1. 8022 lf95*) 8023 lt_prog_compiler_wl='-Wl,' 8024 lt_prog_compiler_pic='--shared' 8025 lt_prog_compiler_static='--static' 8026 ;; 8027 nagfor*) 8028 # NAG Fortran compiler 8029 lt_prog_compiler_wl='-Wl,-Wl,,' 8030 lt_prog_compiler_pic='-PIC' 8031 lt_prog_compiler_static='-Bstatic' 8032 ;; 8033 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8034 # Portland Group compilers (*not* the Pentium gcc compiler, 8035 # which looks to be a dead project) 8036 lt_prog_compiler_wl='-Wl,' 8037 lt_prog_compiler_pic='-fpic' 8038 lt_prog_compiler_static='-Bstatic' 8039 ;; 8040 ccc*) 8041 lt_prog_compiler_wl='-Wl,' 8042 # All Alpha code is PIC. 8043 lt_prog_compiler_static='-non_shared' 8044 ;; 8045 xl* | bgxl* | bgf* | mpixl*) 8046 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8047 lt_prog_compiler_wl='-Wl,' 8048 lt_prog_compiler_pic='-qpic' 8049 lt_prog_compiler_static='-qstaticlink' 8050 ;; 8051 *) 8052 case `$CC -V 2>&1 | sed 5q` in 8053 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8054 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8055 lt_prog_compiler_pic='-KPIC' 8056 lt_prog_compiler_static='-Bstatic' 8057 lt_prog_compiler_wl='' 8058 ;; 8059 *Sun\ F* | *Sun*Fortran*) 8060 lt_prog_compiler_pic='-KPIC' 8061 lt_prog_compiler_static='-Bstatic' 8062 lt_prog_compiler_wl='-Qoption ld ' 8063 ;; 8064 *Sun\ C*) 8065 # Sun C 5.9 8066 lt_prog_compiler_pic='-KPIC' 8067 lt_prog_compiler_static='-Bstatic' 8068 lt_prog_compiler_wl='-Wl,' 8069 ;; 8070 *Intel*\ [CF]*Compiler*) 8071 lt_prog_compiler_wl='-Wl,' 8072 lt_prog_compiler_pic='-fPIC' 8073 lt_prog_compiler_static='-static' 8074 ;; 8075 *Portland\ Group*) 8076 lt_prog_compiler_wl='-Wl,' 8077 lt_prog_compiler_pic='-fpic' 8078 lt_prog_compiler_static='-Bstatic' 8079 ;; 8080 esac 8081 ;; 8082 esac 8083 ;; 8084 8085 newsos6) 8086 lt_prog_compiler_pic='-KPIC' 8087 lt_prog_compiler_static='-Bstatic' 8088 ;; 8089 8090 *nto* | *qnx*) 8091 # QNX uses GNU C++, but need to define -shared option too, otherwise 8092 # it will coredump. 8093 lt_prog_compiler_pic='-fPIC -shared' 8094 ;; 8095 8096 osf3* | osf4* | osf5*) 8097 lt_prog_compiler_wl='-Wl,' 8098 # All OSF/1 code is PIC. 8099 lt_prog_compiler_static='-non_shared' 8100 ;; 8101 8102 rdos*) 8103 lt_prog_compiler_static='-non_shared' 8104 ;; 8105 8106 solaris*) 8107 lt_prog_compiler_pic='-KPIC' 8108 lt_prog_compiler_static='-Bstatic' 8109 case $cc_basename in 8110 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8111 lt_prog_compiler_wl='-Qoption ld ';; 8112 *) 8113 lt_prog_compiler_wl='-Wl,';; 8114 esac 8115 ;; 8116 8117 sunos4*) 8118 lt_prog_compiler_wl='-Qoption ld ' 8119 lt_prog_compiler_pic='-PIC' 8120 lt_prog_compiler_static='-Bstatic' 8121 ;; 8122 8123 sysv4 | sysv4.2uw2* | sysv4.3*) 8124 lt_prog_compiler_wl='-Wl,' 8125 lt_prog_compiler_pic='-KPIC' 8126 lt_prog_compiler_static='-Bstatic' 8127 ;; 8128 8129 sysv4*MP*) 8130 if test -d /usr/nec ;then 8131 lt_prog_compiler_pic='-Kconform_pic' 8132 lt_prog_compiler_static='-Bstatic' 8133 fi 8134 ;; 8135 8136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8137 lt_prog_compiler_wl='-Wl,' 8138 lt_prog_compiler_pic='-KPIC' 8139 lt_prog_compiler_static='-Bstatic' 8140 ;; 8141 8142 unicos*) 8143 lt_prog_compiler_wl='-Wl,' 8144 lt_prog_compiler_can_build_shared=no 8145 ;; 8146 8147 uts4*) 8148 lt_prog_compiler_pic='-pic' 8149 lt_prog_compiler_static='-Bstatic' 8150 ;; 8151 8152 *) 8153 lt_prog_compiler_can_build_shared=no 8154 ;; 8155 esac 8156 fi 8157 8158case $host_os in 8159 # For platforms which do not support PIC, -DPIC is meaningless: 8160 *djgpp*) 8161 lt_prog_compiler_pic= 8162 ;; 8163 *) 8164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8165 ;; 8166esac 8167 8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8169$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8170if ${lt_cv_prog_compiler_pic+:} false; then : 8171 $as_echo_n "(cached) " >&6 8172else 8173 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8174fi 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8176$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8177lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8178 8179# 8180# Check to make sure the PIC flag actually works. 8181# 8182if test -n "$lt_prog_compiler_pic"; then 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8184$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8185if ${lt_cv_prog_compiler_pic_works+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 lt_cv_prog_compiler_pic_works=no 8189 ac_outfile=conftest.$ac_objext 8190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8191 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8192 # Insert the option either (1) after the last *FLAGS variable, or 8193 # (2) before a word containing "conftest.", or (3) at the end. 8194 # Note that $ac_compile itself does not contain backslashes and begins 8195 # with a dollar sign (not a hyphen), so the echo should work correctly. 8196 # The option is referenced via a variable to avoid confusing sed. 8197 lt_compile=`echo "$ac_compile" | $SED \ 8198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8200 -e 's:$: $lt_compiler_flag:'` 8201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8202 (eval "$lt_compile" 2>conftest.err) 8203 ac_status=$? 8204 cat conftest.err >&5 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206 if (exit $ac_status) && test -s "$ac_outfile"; then 8207 # The compiler can only warn and ignore the option if not recognized 8208 # So say no if there are warnings other than the usual output. 8209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8212 lt_cv_prog_compiler_pic_works=yes 8213 fi 8214 fi 8215 $RM conftest* 8216 8217fi 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8219$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8220 8221if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8222 case $lt_prog_compiler_pic in 8223 "" | " "*) ;; 8224 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8225 esac 8226else 8227 lt_prog_compiler_pic= 8228 lt_prog_compiler_can_build_shared=no 8229fi 8230 8231fi 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243# 8244# Check to make sure the static flag actually works. 8245# 8246wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8248$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8249if ${lt_cv_prog_compiler_static_works+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 lt_cv_prog_compiler_static_works=no 8253 save_LDFLAGS="$LDFLAGS" 8254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8255 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8257 # The linker can only warn and ignore the option if not recognized 8258 # So say no if there are warnings 8259 if test -s conftest.err; then 8260 # Append any errors to the config.log. 8261 cat conftest.err 1>&5 8262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8264 if diff conftest.exp conftest.er2 >/dev/null; then 8265 lt_cv_prog_compiler_static_works=yes 8266 fi 8267 else 8268 lt_cv_prog_compiler_static_works=yes 8269 fi 8270 fi 8271 $RM -r conftest* 8272 LDFLAGS="$save_LDFLAGS" 8273 8274fi 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8276$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8277 8278if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8279 : 8280else 8281 lt_prog_compiler_static= 8282fi 8283 8284 8285 8286 8287 8288 8289 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8291$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8292if ${lt_cv_prog_compiler_c_o+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 lt_cv_prog_compiler_c_o=no 8296 $RM -r conftest 2>/dev/null 8297 mkdir conftest 8298 cd conftest 8299 mkdir out 8300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8301 8302 lt_compiler_flag="-o out/conftest2.$ac_objext" 8303 # Insert the option either (1) after the last *FLAGS variable, or 8304 # (2) before a word containing "conftest.", or (3) at the end. 8305 # Note that $ac_compile itself does not contain backslashes and begins 8306 # with a dollar sign (not a hyphen), so the echo should work correctly. 8307 lt_compile=`echo "$ac_compile" | $SED \ 8308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8310 -e 's:$: $lt_compiler_flag:'` 8311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8312 (eval "$lt_compile" 2>out/conftest.err) 8313 ac_status=$? 8314 cat out/conftest.err >&5 8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8316 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8317 then 8318 # The compiler can only warn and ignore the option if not recognized 8319 # So say no if there are warnings 8320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8323 lt_cv_prog_compiler_c_o=yes 8324 fi 8325 fi 8326 chmod u+w . 2>&5 8327 $RM conftest* 8328 # SGI C++ compiler will create directory out/ii_files/ for 8329 # template instantiation 8330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8331 $RM out/* && rmdir out 8332 cd .. 8333 $RM -r conftest 8334 $RM conftest* 8335 8336fi 8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8338$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8339 8340 8341 8342 8343 8344 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8346$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8347if ${lt_cv_prog_compiler_c_o+:} false; then : 8348 $as_echo_n "(cached) " >&6 8349else 8350 lt_cv_prog_compiler_c_o=no 8351 $RM -r conftest 2>/dev/null 8352 mkdir conftest 8353 cd conftest 8354 mkdir out 8355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8356 8357 lt_compiler_flag="-o out/conftest2.$ac_objext" 8358 # Insert the option either (1) after the last *FLAGS variable, or 8359 # (2) before a word containing "conftest.", or (3) at the end. 8360 # Note that $ac_compile itself does not contain backslashes and begins 8361 # with a dollar sign (not a hyphen), so the echo should work correctly. 8362 lt_compile=`echo "$ac_compile" | $SED \ 8363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8365 -e 's:$: $lt_compiler_flag:'` 8366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8367 (eval "$lt_compile" 2>out/conftest.err) 8368 ac_status=$? 8369 cat out/conftest.err >&5 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8372 then 8373 # The compiler can only warn and ignore the option if not recognized 8374 # So say no if there are warnings 8375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8378 lt_cv_prog_compiler_c_o=yes 8379 fi 8380 fi 8381 chmod u+w . 2>&5 8382 $RM conftest* 8383 # SGI C++ compiler will create directory out/ii_files/ for 8384 # template instantiation 8385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8386 $RM out/* && rmdir out 8387 cd .. 8388 $RM -r conftest 8389 $RM conftest* 8390 8391fi 8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8393$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8394 8395 8396 8397 8398hard_links="nottested" 8399if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8400 # do not overwrite the value of need_locks provided by the user 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8402$as_echo_n "checking if we can lock with hard links... " >&6; } 8403 hard_links=yes 8404 $RM conftest* 8405 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8406 touch conftest.a 8407 ln conftest.a conftest.b 2>&5 || hard_links=no 8408 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8410$as_echo "$hard_links" >&6; } 8411 if test "$hard_links" = no; then 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8413$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8414 need_locks=warn 8415 fi 8416else 8417 need_locks=no 8418fi 8419 8420 8421 8422 8423 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8426$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8427 8428 runpath_var= 8429 allow_undefined_flag= 8430 always_export_symbols=no 8431 archive_cmds= 8432 archive_expsym_cmds= 8433 compiler_needs_object=no 8434 enable_shared_with_static_runtimes=no 8435 export_dynamic_flag_spec= 8436 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8437 hardcode_automatic=no 8438 hardcode_direct=no 8439 hardcode_direct_absolute=no 8440 hardcode_libdir_flag_spec= 8441 hardcode_libdir_separator= 8442 hardcode_minus_L=no 8443 hardcode_shlibpath_var=unsupported 8444 inherit_rpath=no 8445 link_all_deplibs=unknown 8446 module_cmds= 8447 module_expsym_cmds= 8448 old_archive_from_new_cmds= 8449 old_archive_from_expsyms_cmds= 8450 thread_safe_flag_spec= 8451 whole_archive_flag_spec= 8452 # include_expsyms should be a list of space-separated symbols to be *always* 8453 # included in the symbol list 8454 include_expsyms= 8455 # exclude_expsyms can be an extended regexp of symbols to exclude 8456 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8458 # as well as any symbol that contains `d'. 8459 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8461 # platforms (ab)use it in PIC code, but their linkers get confused if 8462 # the symbol is explicitly referenced. Since portable code cannot 8463 # rely on this symbol name, it's probably fine to never include it in 8464 # preloaded symbol tables. 8465 # Exclude shared library initialization/finalization symbols. 8466 extract_expsyms_cmds= 8467 8468 case $host_os in 8469 cygwin* | mingw* | pw32* | cegcc*) 8470 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8471 # When not using gcc, we currently assume that we are using 8472 # Microsoft Visual C++. 8473 if test "$GCC" != yes; then 8474 with_gnu_ld=no 8475 fi 8476 ;; 8477 interix*) 8478 # we just hope/assume this is gcc and not c89 (= MSVC++) 8479 with_gnu_ld=yes 8480 ;; 8481 openbsd*) 8482 with_gnu_ld=no 8483 ;; 8484 esac 8485 8486 ld_shlibs=yes 8487 8488 # On some targets, GNU ld is compatible enough with the native linker 8489 # that we're better off using the native interface for both. 8490 lt_use_gnu_ld_interface=no 8491 if test "$with_gnu_ld" = yes; then 8492 case $host_os in 8493 aix*) 8494 # The AIX port of GNU ld has always aspired to compatibility 8495 # with the native linker. However, as the warning in the GNU ld 8496 # block says, versions before 2.19.5* couldn't really create working 8497 # shared libraries, regardless of the interface used. 8498 case `$LD -v 2>&1` in 8499 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8500 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8501 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8502 *) 8503 lt_use_gnu_ld_interface=yes 8504 ;; 8505 esac 8506 ;; 8507 *) 8508 lt_use_gnu_ld_interface=yes 8509 ;; 8510 esac 8511 fi 8512 8513 if test "$lt_use_gnu_ld_interface" = yes; then 8514 # If archive_cmds runs LD, not CC, wlarc should be empty 8515 wlarc='${wl}' 8516 8517 # Set some defaults for GNU ld with shared library support. These 8518 # are reset later if shared libraries are not supported. Putting them 8519 # here allows them to be overridden if necessary. 8520 runpath_var=LD_RUN_PATH 8521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8522 export_dynamic_flag_spec='${wl}--export-dynamic' 8523 # ancient GNU ld didn't support --whole-archive et. al. 8524 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8525 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8526 else 8527 whole_archive_flag_spec= 8528 fi 8529 supports_anon_versioning=no 8530 case `$LD -v 2>&1` in 8531 *GNU\ gold*) supports_anon_versioning=yes ;; 8532 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8533 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8534 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8535 *\ 2.11.*) ;; # other 2.11 versions 8536 *) supports_anon_versioning=yes ;; 8537 esac 8538 8539 # See if GNU ld supports shared libraries. 8540 case $host_os in 8541 aix[3-9]*) 8542 # On AIX/PPC, the GNU linker is very broken 8543 if test "$host_cpu" != ia64; then 8544 ld_shlibs=no 8545 cat <<_LT_EOF 1>&2 8546 8547*** Warning: the GNU linker, at least up to release 2.19, is reported 8548*** to be unable to reliably create shared libraries on AIX. 8549*** Therefore, libtool is disabling shared libraries support. If you 8550*** really care for shared libraries, you may want to install binutils 8551*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8552*** You will then need to restart the configuration process. 8553 8554_LT_EOF 8555 fi 8556 ;; 8557 8558 amigaos*) 8559 case $host_cpu in 8560 powerpc) 8561 # see comment about AmigaOS4 .so support 8562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8563 archive_expsym_cmds='' 8564 ;; 8565 m68k) 8566 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)' 8567 hardcode_libdir_flag_spec='-L$libdir' 8568 hardcode_minus_L=yes 8569 ;; 8570 esac 8571 ;; 8572 8573 beos*) 8574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8575 allow_undefined_flag=unsupported 8576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8577 # support --undefined. This deserves some investigation. FIXME 8578 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8579 else 8580 ld_shlibs=no 8581 fi 8582 ;; 8583 8584 cygwin* | mingw* | pw32* | cegcc*) 8585 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8586 # as there is no search path for DLLs. 8587 hardcode_libdir_flag_spec='-L$libdir' 8588 export_dynamic_flag_spec='${wl}--export-all-symbols' 8589 allow_undefined_flag=unsupported 8590 always_export_symbols=no 8591 enable_shared_with_static_runtimes=yes 8592 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' 8593 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8594 8595 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8597 # If the export-symbols file already is a .def file (1st line 8598 # is EXPORTS), use it as is; otherwise, prepend... 8599 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8600 cp $export_symbols $output_objdir/$soname.def; 8601 else 8602 echo EXPORTS > $output_objdir/$soname.def; 8603 cat $export_symbols >> $output_objdir/$soname.def; 8604 fi~ 8605 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8606 else 8607 ld_shlibs=no 8608 fi 8609 ;; 8610 8611 haiku*) 8612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8613 link_all_deplibs=yes 8614 ;; 8615 8616 interix[3-9]*) 8617 hardcode_direct=no 8618 hardcode_shlibpath_var=no 8619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8620 export_dynamic_flag_spec='${wl}-E' 8621 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8622 # Instead, shared libraries are loaded at an image base (0x10000000 by 8623 # default) and relocated if they conflict, which is a slow very memory 8624 # consuming and fragmenting process. To avoid this, we pick a random, 8625 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8626 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8628 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' 8629 ;; 8630 8631 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8632 tmp_diet=no 8633 if test "$host_os" = linux-dietlibc; then 8634 case $cc_basename in 8635 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8636 esac 8637 fi 8638 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8639 && test "$tmp_diet" = no 8640 then 8641 tmp_addflag=' $pic_flag' 8642 tmp_sharedflag='-shared' 8643 case $cc_basename,$host_cpu in 8644 pgcc*) # Portland Group C compiler 8645 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' 8646 tmp_addflag=' $pic_flag' 8647 ;; 8648 pgf77* | pgf90* | pgf95* | pgfortran*) 8649 # Portland Group f77 and f90 compilers 8650 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' 8651 tmp_addflag=' $pic_flag -Mnomain' ;; 8652 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8653 tmp_addflag=' -i_dynamic' ;; 8654 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8655 tmp_addflag=' -i_dynamic -nofor_main' ;; 8656 ifc* | ifort*) # Intel Fortran compiler 8657 tmp_addflag=' -nofor_main' ;; 8658 lf95*) # Lahey Fortran 8.1 8659 whole_archive_flag_spec= 8660 tmp_sharedflag='--shared' ;; 8661 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8662 tmp_sharedflag='-qmkshrobj' 8663 tmp_addflag= ;; 8664 nvcc*) # Cuda Compiler Driver 2.2 8665 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' 8666 compiler_needs_object=yes 8667 ;; 8668 esac 8669 case `$CC -V 2>&1 | sed 5q` in 8670 *Sun\ C*) # Sun C 5.9 8671 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' 8672 compiler_needs_object=yes 8673 tmp_sharedflag='-G' ;; 8674 *Sun\ F*) # Sun Fortran 8.3 8675 tmp_sharedflag='-G' ;; 8676 esac 8677 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8678 8679 if test "x$supports_anon_versioning" = xyes; then 8680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8682 echo "local: *; };" >> $output_objdir/$libname.ver~ 8683 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8684 fi 8685 8686 case $cc_basename in 8687 xlf* | bgf* | bgxlf* | mpixlf*) 8688 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8689 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8691 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8692 if test "x$supports_anon_versioning" = xyes; then 8693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8695 echo "local: *; };" >> $output_objdir/$libname.ver~ 8696 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8697 fi 8698 ;; 8699 esac 8700 else 8701 ld_shlibs=no 8702 fi 8703 ;; 8704 8705 netbsd*) 8706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8708 wlarc= 8709 else 8710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8712 fi 8713 ;; 8714 8715 solaris*) 8716 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8717 ld_shlibs=no 8718 cat <<_LT_EOF 1>&2 8719 8720*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8721*** create shared libraries on Solaris systems. Therefore, libtool 8722*** is disabling shared libraries support. We urge you to upgrade GNU 8723*** binutils to release 2.9.1 or newer. Another option is to modify 8724*** your PATH or compiler configuration so that the native linker is 8725*** used, and then restart. 8726 8727_LT_EOF 8728 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8729 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8730 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8731 else 8732 ld_shlibs=no 8733 fi 8734 ;; 8735 8736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8737 case `$LD -v 2>&1` in 8738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8739 ld_shlibs=no 8740 cat <<_LT_EOF 1>&2 8741 8742*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8743*** reliably create shared libraries on SCO systems. Therefore, libtool 8744*** is disabling shared libraries support. We urge you to upgrade GNU 8745*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8746*** your PATH or compiler configuration so that the native linker is 8747*** used, and then restart. 8748 8749_LT_EOF 8750 ;; 8751 *) 8752 # For security reasons, it is highly recommended that you always 8753 # use absolute paths for naming shared libraries, and exclude the 8754 # DT_RUNPATH tag from executables and libraries. But doing so 8755 # requires that you compile everything twice, which is a pain. 8756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8760 else 8761 ld_shlibs=no 8762 fi 8763 ;; 8764 esac 8765 ;; 8766 8767 sunos4*) 8768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8769 wlarc= 8770 hardcode_direct=yes 8771 hardcode_shlibpath_var=no 8772 ;; 8773 8774 *) 8775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8778 else 8779 ld_shlibs=no 8780 fi 8781 ;; 8782 esac 8783 8784 if test "$ld_shlibs" = no; then 8785 runpath_var= 8786 hardcode_libdir_flag_spec= 8787 export_dynamic_flag_spec= 8788 whole_archive_flag_spec= 8789 fi 8790 else 8791 # PORTME fill in a description of your system's linker (not GNU ld) 8792 case $host_os in 8793 aix3*) 8794 allow_undefined_flag=unsupported 8795 always_export_symbols=yes 8796 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' 8797 # Note: this linker hardcodes the directories in LIBPATH if there 8798 # are no directories specified by -L. 8799 hardcode_minus_L=yes 8800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8801 # Neither direct hardcoding nor static linking is supported with a 8802 # broken collect2. 8803 hardcode_direct=unsupported 8804 fi 8805 ;; 8806 8807 aix[4-9]*) 8808 if test "$host_cpu" = ia64; then 8809 # On IA64, the linker does run time linking by default, so we don't 8810 # have to do anything special. 8811 aix_use_runtimelinking=no 8812 exp_sym_flag='-Bexport' 8813 no_entry_flag="" 8814 else 8815 # If we're using GNU nm, then we don't want the "-C" option. 8816 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8817 # Also, AIX nm treats weak defined symbols like other global 8818 # defined symbols, whereas GNU nm marks them as "W". 8819 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8820 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' 8821 else 8822 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' 8823 fi 8824 aix_use_runtimelinking=no 8825 8826 # Test if we are trying to use run time linking or normal 8827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8828 # need to do runtime linking. 8829 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8830 for ld_flag in $LDFLAGS; do 8831 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8832 aix_use_runtimelinking=yes 8833 break 8834 fi 8835 done 8836 ;; 8837 esac 8838 8839 exp_sym_flag='-bexport' 8840 no_entry_flag='-bnoentry' 8841 fi 8842 8843 # When large executables or shared objects are built, AIX ld can 8844 # have problems creating the table of contents. If linking a library 8845 # or program results in "error TOC overflow" add -mminimal-toc to 8846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8848 8849 archive_cmds='' 8850 hardcode_direct=yes 8851 hardcode_direct_absolute=yes 8852 hardcode_libdir_separator=':' 8853 link_all_deplibs=yes 8854 file_list_spec='${wl}-f,' 8855 8856 if test "$GCC" = yes; then 8857 case $host_os in aix4.[012]|aix4.[012].*) 8858 # We only want to do this on AIX 4.2 and lower, the check 8859 # below for broken collect2 doesn't work under 4.3+ 8860 collect2name=`${CC} -print-prog-name=collect2` 8861 if test -f "$collect2name" && 8862 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8863 then 8864 # We have reworked collect2 8865 : 8866 else 8867 # We have old collect2 8868 hardcode_direct=unsupported 8869 # It fails to find uninstalled libraries when the uninstalled 8870 # path is not listed in the libpath. Setting hardcode_minus_L 8871 # to unsupported forces relinking 8872 hardcode_minus_L=yes 8873 hardcode_libdir_flag_spec='-L$libdir' 8874 hardcode_libdir_separator= 8875 fi 8876 ;; 8877 esac 8878 shared_flag='-shared' 8879 if test "$aix_use_runtimelinking" = yes; then 8880 shared_flag="$shared_flag "'${wl}-G' 8881 fi 8882 else 8883 # not using gcc 8884 if test "$host_cpu" = ia64; then 8885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8886 # chokes on -Wl,-G. The following line is correct: 8887 shared_flag='-G' 8888 else 8889 if test "$aix_use_runtimelinking" = yes; then 8890 shared_flag='${wl}-G' 8891 else 8892 shared_flag='${wl}-bM:SRE' 8893 fi 8894 fi 8895 fi 8896 8897 export_dynamic_flag_spec='${wl}-bexpall' 8898 # It seems that -bexpall does not export symbols beginning with 8899 # underscore (_), so it is better to generate a list of symbols to export. 8900 always_export_symbols=yes 8901 if test "$aix_use_runtimelinking" = yes; then 8902 # Warning - without using the other runtime loading flags (-brtl), 8903 # -berok will link without error, but may produce a broken library. 8904 allow_undefined_flag='-berok' 8905 # Determine the default libpath from the value encoded in an 8906 # empty executable. 8907 if test "${lt_cv_aix_libpath+set}" = set; then 8908 aix_libpath=$lt_cv_aix_libpath 8909else 8910 if ${lt_cv_aix_libpath_+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8914/* end confdefs.h. */ 8915 8916int 8917main () 8918{ 8919 8920 ; 8921 return 0; 8922} 8923_ACEOF 8924if ac_fn_c_try_link "$LINENO"; then : 8925 8926 lt_aix_libpath_sed=' 8927 /Import File Strings/,/^$/ { 8928 /^0/ { 8929 s/^0 *\([^ ]*\) *$/\1/ 8930 p 8931 } 8932 }' 8933 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8934 # Check for a 64-bit object if we didn't find anything. 8935 if test -z "$lt_cv_aix_libpath_"; then 8936 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8937 fi 8938fi 8939rm -f core conftest.err conftest.$ac_objext \ 8940 conftest$ac_exeext conftest.$ac_ext 8941 if test -z "$lt_cv_aix_libpath_"; then 8942 lt_cv_aix_libpath_="/usr/lib:/lib" 8943 fi 8944 8945fi 8946 8947 aix_libpath=$lt_cv_aix_libpath_ 8948fi 8949 8950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8951 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" 8952 else 8953 if test "$host_cpu" = ia64; then 8954 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8955 allow_undefined_flag="-z nodefs" 8956 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" 8957 else 8958 # Determine the default libpath from the value encoded in an 8959 # empty executable. 8960 if test "${lt_cv_aix_libpath+set}" = set; then 8961 aix_libpath=$lt_cv_aix_libpath 8962else 8963 if ${lt_cv_aix_libpath_+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8967/* end confdefs.h. */ 8968 8969int 8970main () 8971{ 8972 8973 ; 8974 return 0; 8975} 8976_ACEOF 8977if ac_fn_c_try_link "$LINENO"; then : 8978 8979 lt_aix_libpath_sed=' 8980 /Import File Strings/,/^$/ { 8981 /^0/ { 8982 s/^0 *\([^ ]*\) *$/\1/ 8983 p 8984 } 8985 }' 8986 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8987 # Check for a 64-bit object if we didn't find anything. 8988 if test -z "$lt_cv_aix_libpath_"; then 8989 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8990 fi 8991fi 8992rm -f core conftest.err conftest.$ac_objext \ 8993 conftest$ac_exeext conftest.$ac_ext 8994 if test -z "$lt_cv_aix_libpath_"; then 8995 lt_cv_aix_libpath_="/usr/lib:/lib" 8996 fi 8997 8998fi 8999 9000 aix_libpath=$lt_cv_aix_libpath_ 9001fi 9002 9003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9004 # Warning - without using the other run time loading flags, 9005 # -berok will link without error, but may produce a broken library. 9006 no_undefined_flag=' ${wl}-bernotok' 9007 allow_undefined_flag=' ${wl}-berok' 9008 if test "$with_gnu_ld" = yes; then 9009 # We only use this code for GNU lds that support --whole-archive. 9010 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9011 else 9012 # Exported symbols can be pulled into shared objects from archives 9013 whole_archive_flag_spec='$convenience' 9014 fi 9015 archive_cmds_need_lc=yes 9016 # This is similar to how AIX traditionally builds its shared libraries. 9017 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' 9018 fi 9019 fi 9020 ;; 9021 9022 amigaos*) 9023 case $host_cpu in 9024 powerpc) 9025 # see comment about AmigaOS4 .so support 9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9027 archive_expsym_cmds='' 9028 ;; 9029 m68k) 9030 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)' 9031 hardcode_libdir_flag_spec='-L$libdir' 9032 hardcode_minus_L=yes 9033 ;; 9034 esac 9035 ;; 9036 9037 bsdi[45]*) 9038 export_dynamic_flag_spec=-rdynamic 9039 ;; 9040 9041 cygwin* | mingw* | pw32* | cegcc*) 9042 # When not using gcc, we currently assume that we are using 9043 # Microsoft Visual C++. 9044 # hardcode_libdir_flag_spec is actually meaningless, as there is 9045 # no search path for DLLs. 9046 case $cc_basename in 9047 cl*) 9048 # Native MSVC 9049 hardcode_libdir_flag_spec=' ' 9050 allow_undefined_flag=unsupported 9051 always_export_symbols=yes 9052 file_list_spec='@' 9053 # Tell ltmain to make .lib files, not .a files. 9054 libext=lib 9055 # Tell ltmain to make .dll files, not .so files. 9056 shrext_cmds=".dll" 9057 # FIXME: Setting linknames here is a bad hack. 9058 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9059 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9060 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9061 else 9062 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9063 fi~ 9064 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9065 linknames=' 9066 # The linker will not automatically build a static lib if we build a DLL. 9067 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9068 enable_shared_with_static_runtimes=yes 9069 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9071 # Don't use ranlib 9072 old_postinstall_cmds='chmod 644 $oldlib' 9073 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9074 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9075 case $lt_outputfile in 9076 *.exe|*.EXE) ;; 9077 *) 9078 lt_outputfile="$lt_outputfile.exe" 9079 lt_tool_outputfile="$lt_tool_outputfile.exe" 9080 ;; 9081 esac~ 9082 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9084 $RM "$lt_outputfile.manifest"; 9085 fi' 9086 ;; 9087 *) 9088 # Assume MSVC wrapper 9089 hardcode_libdir_flag_spec=' ' 9090 allow_undefined_flag=unsupported 9091 # Tell ltmain to make .lib files, not .a files. 9092 libext=lib 9093 # Tell ltmain to make .dll files, not .so files. 9094 shrext_cmds=".dll" 9095 # FIXME: Setting linknames here is a bad hack. 9096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9097 # The linker will automatically build a .lib file if we build a DLL. 9098 old_archive_from_new_cmds='true' 9099 # FIXME: Should let the user specify the lib program. 9100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9101 enable_shared_with_static_runtimes=yes 9102 ;; 9103 esac 9104 ;; 9105 9106 darwin* | rhapsody*) 9107 9108 9109 archive_cmds_need_lc=no 9110 hardcode_direct=no 9111 hardcode_automatic=yes 9112 hardcode_shlibpath_var=unsupported 9113 if test "$lt_cv_ld_force_load" = "yes"; then 9114 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\"`' 9115 9116 else 9117 whole_archive_flag_spec='' 9118 fi 9119 link_all_deplibs=yes 9120 allow_undefined_flag="$_lt_dar_allow_undefined" 9121 case $cc_basename in 9122 ifort*) _lt_dar_can_shared=yes ;; 9123 *) _lt_dar_can_shared=$GCC ;; 9124 esac 9125 if test "$_lt_dar_can_shared" = "yes"; then 9126 output_verbose_link_cmd=func_echo_all 9127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9129 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}" 9130 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}" 9131 9132 else 9133 ld_shlibs=no 9134 fi 9135 9136 ;; 9137 9138 dgux*) 9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9140 hardcode_libdir_flag_spec='-L$libdir' 9141 hardcode_shlibpath_var=no 9142 ;; 9143 9144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9145 # support. Future versions do this automatically, but an explicit c++rt0.o 9146 # does not break anything, and helps significantly (at the cost of a little 9147 # extra space). 9148 freebsd2.2*) 9149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9150 hardcode_libdir_flag_spec='-R$libdir' 9151 hardcode_direct=yes 9152 hardcode_shlibpath_var=no 9153 ;; 9154 9155 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9156 freebsd2.*) 9157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9158 hardcode_direct=yes 9159 hardcode_minus_L=yes 9160 hardcode_shlibpath_var=no 9161 ;; 9162 9163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9164 freebsd* | dragonfly*) 9165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9166 hardcode_libdir_flag_spec='-R$libdir' 9167 hardcode_direct=yes 9168 hardcode_shlibpath_var=no 9169 ;; 9170 9171 hpux9*) 9172 if test "$GCC" = yes; then 9173 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' 9174 else 9175 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' 9176 fi 9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9178 hardcode_libdir_separator=: 9179 hardcode_direct=yes 9180 9181 # hardcode_minus_L: Not really in the search PATH, 9182 # but as the default location of the library. 9183 hardcode_minus_L=yes 9184 export_dynamic_flag_spec='${wl}-E' 9185 ;; 9186 9187 hpux10*) 9188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9189 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9190 else 9191 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9192 fi 9193 if test "$with_gnu_ld" = no; then 9194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9195 hardcode_libdir_separator=: 9196 hardcode_direct=yes 9197 hardcode_direct_absolute=yes 9198 export_dynamic_flag_spec='${wl}-E' 9199 # hardcode_minus_L: Not really in the search PATH, 9200 # but as the default location of the library. 9201 hardcode_minus_L=yes 9202 fi 9203 ;; 9204 9205 hpux11*) 9206 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9207 case $host_cpu in 9208 hppa*64*) 9209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9210 ;; 9211 ia64*) 9212 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9213 ;; 9214 *) 9215 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9216 ;; 9217 esac 9218 else 9219 case $host_cpu in 9220 hppa*64*) 9221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9222 ;; 9223 ia64*) 9224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9225 ;; 9226 *) 9227 9228 # Older versions of the 11.00 compiler do not understand -b yet 9229 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9231$as_echo_n "checking if $CC understands -b... " >&6; } 9232if ${lt_cv_prog_compiler__b+:} false; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 lt_cv_prog_compiler__b=no 9236 save_LDFLAGS="$LDFLAGS" 9237 LDFLAGS="$LDFLAGS -b" 9238 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9240 # The linker can only warn and ignore the option if not recognized 9241 # So say no if there are warnings 9242 if test -s conftest.err; then 9243 # Append any errors to the config.log. 9244 cat conftest.err 1>&5 9245 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9247 if diff conftest.exp conftest.er2 >/dev/null; then 9248 lt_cv_prog_compiler__b=yes 9249 fi 9250 else 9251 lt_cv_prog_compiler__b=yes 9252 fi 9253 fi 9254 $RM -r conftest* 9255 LDFLAGS="$save_LDFLAGS" 9256 9257fi 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9259$as_echo "$lt_cv_prog_compiler__b" >&6; } 9260 9261if test x"$lt_cv_prog_compiler__b" = xyes; then 9262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9263else 9264 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9265fi 9266 9267 ;; 9268 esac 9269 fi 9270 if test "$with_gnu_ld" = no; then 9271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9272 hardcode_libdir_separator=: 9273 9274 case $host_cpu in 9275 hppa*64*|ia64*) 9276 hardcode_direct=no 9277 hardcode_shlibpath_var=no 9278 ;; 9279 *) 9280 hardcode_direct=yes 9281 hardcode_direct_absolute=yes 9282 export_dynamic_flag_spec='${wl}-E' 9283 9284 # hardcode_minus_L: Not really in the search PATH, 9285 # but as the default location of the library. 9286 hardcode_minus_L=yes 9287 ;; 9288 esac 9289 fi 9290 ;; 9291 9292 irix5* | irix6* | nonstopux*) 9293 if test "$GCC" = yes; then 9294 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' 9295 # Try to use the -exported_symbol ld option, if it does not 9296 # work, assume that -exports_file does not work either and 9297 # implicitly export all symbols. 9298 # This should be the same for all languages, so no per-tag cache variable. 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9300$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9301if ${lt_cv_irix_exported_symbol+:} false; then : 9302 $as_echo_n "(cached) " >&6 9303else 9304 save_LDFLAGS="$LDFLAGS" 9305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9307/* end confdefs.h. */ 9308int foo (void) { return 0; } 9309_ACEOF 9310if ac_fn_c_try_link "$LINENO"; then : 9311 lt_cv_irix_exported_symbol=yes 9312else 9313 lt_cv_irix_exported_symbol=no 9314fi 9315rm -f core conftest.err conftest.$ac_objext \ 9316 conftest$ac_exeext conftest.$ac_ext 9317 LDFLAGS="$save_LDFLAGS" 9318fi 9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9320$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9321 if test "$lt_cv_irix_exported_symbol" = yes; then 9322 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' 9323 fi 9324 else 9325 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' 9326 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' 9327 fi 9328 archive_cmds_need_lc='no' 9329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9330 hardcode_libdir_separator=: 9331 inherit_rpath=yes 9332 link_all_deplibs=yes 9333 ;; 9334 9335 netbsd*) 9336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9338 else 9339 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9340 fi 9341 hardcode_libdir_flag_spec='-R$libdir' 9342 hardcode_direct=yes 9343 hardcode_shlibpath_var=no 9344 ;; 9345 9346 newsos6) 9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9348 hardcode_direct=yes 9349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9350 hardcode_libdir_separator=: 9351 hardcode_shlibpath_var=no 9352 ;; 9353 9354 *nto* | *qnx*) 9355 ;; 9356 9357 openbsd*) 9358 if test -f /usr/libexec/ld.so; then 9359 hardcode_direct=yes 9360 hardcode_shlibpath_var=no 9361 hardcode_direct_absolute=yes 9362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9364 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9366 export_dynamic_flag_spec='${wl}-E' 9367 else 9368 case $host_os in 9369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9371 hardcode_libdir_flag_spec='-R$libdir' 9372 ;; 9373 *) 9374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9376 ;; 9377 esac 9378 fi 9379 else 9380 ld_shlibs=no 9381 fi 9382 ;; 9383 9384 os2*) 9385 hardcode_libdir_flag_spec='-L$libdir' 9386 hardcode_minus_L=yes 9387 allow_undefined_flag=unsupported 9388 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' 9389 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9390 ;; 9391 9392 osf3*) 9393 if test "$GCC" = yes; then 9394 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9395 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' 9396 else 9397 allow_undefined_flag=' -expect_unresolved \*' 9398 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' 9399 fi 9400 archive_cmds_need_lc='no' 9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9402 hardcode_libdir_separator=: 9403 ;; 9404 9405 osf4* | osf5*) # as osf3* with the addition of -msym flag 9406 if test "$GCC" = yes; then 9407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9408 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' 9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9410 else 9411 allow_undefined_flag=' -expect_unresolved \*' 9412 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' 9413 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~ 9414 $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' 9415 9416 # Both c and cxx compiler support -rpath directly 9417 hardcode_libdir_flag_spec='-rpath $libdir' 9418 fi 9419 archive_cmds_need_lc='no' 9420 hardcode_libdir_separator=: 9421 ;; 9422 9423 solaris*) 9424 no_undefined_flag=' -z defs' 9425 if test "$GCC" = yes; then 9426 wlarc='${wl}' 9427 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9429 $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' 9430 else 9431 case `$CC -V 2>&1` in 9432 *"Compilers 5.0"*) 9433 wlarc='' 9434 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9436 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9437 ;; 9438 *) 9439 wlarc='${wl}' 9440 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9441 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9442 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9443 ;; 9444 esac 9445 fi 9446 hardcode_libdir_flag_spec='-R$libdir' 9447 hardcode_shlibpath_var=no 9448 case $host_os in 9449 solaris2.[0-5] | solaris2.[0-5].*) ;; 9450 *) 9451 # The compiler driver will combine and reorder linker options, 9452 # but understands `-z linker_flag'. GCC discards it without `$wl', 9453 # but is careful enough not to reorder. 9454 # Supported since Solaris 2.6 (maybe 2.5.1?) 9455 if test "$GCC" = yes; then 9456 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9457 else 9458 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9459 fi 9460 ;; 9461 esac 9462 link_all_deplibs=yes 9463 ;; 9464 9465 sunos4*) 9466 if test "x$host_vendor" = xsequent; then 9467 # Use $CC to link under sequent, because it throws in some extra .o 9468 # files that make .init and .fini sections work. 9469 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9470 else 9471 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9472 fi 9473 hardcode_libdir_flag_spec='-L$libdir' 9474 hardcode_direct=yes 9475 hardcode_minus_L=yes 9476 hardcode_shlibpath_var=no 9477 ;; 9478 9479 sysv4) 9480 case $host_vendor in 9481 sni) 9482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9483 hardcode_direct=yes # is this really true??? 9484 ;; 9485 siemens) 9486 ## LD is ld it makes a PLAMLIB 9487 ## CC just makes a GrossModule. 9488 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9489 reload_cmds='$CC -r -o $output$reload_objs' 9490 hardcode_direct=no 9491 ;; 9492 motorola) 9493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9494 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9495 ;; 9496 esac 9497 runpath_var='LD_RUN_PATH' 9498 hardcode_shlibpath_var=no 9499 ;; 9500 9501 sysv4.3*) 9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9503 hardcode_shlibpath_var=no 9504 export_dynamic_flag_spec='-Bexport' 9505 ;; 9506 9507 sysv4*MP*) 9508 if test -d /usr/nec; then 9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9510 hardcode_shlibpath_var=no 9511 runpath_var=LD_RUN_PATH 9512 hardcode_runpath_var=yes 9513 ld_shlibs=yes 9514 fi 9515 ;; 9516 9517 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9518 no_undefined_flag='${wl}-z,text' 9519 archive_cmds_need_lc=no 9520 hardcode_shlibpath_var=no 9521 runpath_var='LD_RUN_PATH' 9522 9523 if test "$GCC" = yes; then 9524 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9526 else 9527 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9529 fi 9530 ;; 9531 9532 sysv5* | sco3.2v5* | sco5v6*) 9533 # Note: We can NOT use -z defs as we might desire, because we do not 9534 # link with -lc, and that would cause any symbols used from libc to 9535 # always be unresolved, which means just about no library would 9536 # ever link correctly. If we're not using GNU ld we use -z text 9537 # though, which does catch some bad symbols but isn't as heavy-handed 9538 # as -z defs. 9539 no_undefined_flag='${wl}-z,text' 9540 allow_undefined_flag='${wl}-z,nodefs' 9541 archive_cmds_need_lc=no 9542 hardcode_shlibpath_var=no 9543 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9544 hardcode_libdir_separator=':' 9545 link_all_deplibs=yes 9546 export_dynamic_flag_spec='${wl}-Bexport' 9547 runpath_var='LD_RUN_PATH' 9548 9549 if test "$GCC" = yes; then 9550 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9551 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9552 else 9553 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9554 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9555 fi 9556 ;; 9557 9558 uts4*) 9559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9560 hardcode_libdir_flag_spec='-L$libdir' 9561 hardcode_shlibpath_var=no 9562 ;; 9563 9564 *) 9565 ld_shlibs=no 9566 ;; 9567 esac 9568 9569 if test x$host_vendor = xsni; then 9570 case $host in 9571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9572 export_dynamic_flag_spec='${wl}-Blargedynsym' 9573 ;; 9574 esac 9575 fi 9576 fi 9577 9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9579$as_echo "$ld_shlibs" >&6; } 9580test "$ld_shlibs" = no && can_build_shared=no 9581 9582with_gnu_ld=$with_gnu_ld 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598# 9599# Do we need to explicitly link libc? 9600# 9601case "x$archive_cmds_need_lc" in 9602x|xyes) 9603 # Assume -lc should be added 9604 archive_cmds_need_lc=yes 9605 9606 if test "$enable_shared" = yes && test "$GCC" = yes; then 9607 case $archive_cmds in 9608 *'~'*) 9609 # FIXME: we may have to deal with multi-command sequences. 9610 ;; 9611 '$CC '*) 9612 # Test whether the compiler implicitly links with -lc since on some 9613 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9614 # to ld, don't add -lc before -lgcc. 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9616$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9617if ${lt_cv_archive_cmds_need_lc+:} false; then : 9618 $as_echo_n "(cached) " >&6 9619else 9620 $RM conftest* 9621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9622 9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9624 (eval $ac_compile) 2>&5 9625 ac_status=$? 9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9627 test $ac_status = 0; } 2>conftest.err; then 9628 soname=conftest 9629 lib=conftest 9630 libobjs=conftest.$ac_objext 9631 deplibs= 9632 wl=$lt_prog_compiler_wl 9633 pic_flag=$lt_prog_compiler_pic 9634 compiler_flags=-v 9635 linker_flags=-v 9636 verstring= 9637 output_objdir=. 9638 libname=conftest 9639 lt_save_allow_undefined_flag=$allow_undefined_flag 9640 allow_undefined_flag= 9641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9642 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9643 ac_status=$? 9644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9645 test $ac_status = 0; } 9646 then 9647 lt_cv_archive_cmds_need_lc=no 9648 else 9649 lt_cv_archive_cmds_need_lc=yes 9650 fi 9651 allow_undefined_flag=$lt_save_allow_undefined_flag 9652 else 9653 cat conftest.err 1>&5 9654 fi 9655 $RM conftest* 9656 9657fi 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9659$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9660 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9661 ;; 9662 esac 9663 fi 9664 ;; 9665esac 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9819$as_echo_n "checking dynamic linker characteristics... " >&6; } 9820 9821if test "$GCC" = yes; then 9822 case $host_os in 9823 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9824 *) lt_awk_arg="/^libraries:/" ;; 9825 esac 9826 case $host_os in 9827 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9828 *) lt_sed_strip_eq="s,=/,/,g" ;; 9829 esac 9830 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9831 case $lt_search_path_spec in 9832 *\;*) 9833 # if the path contains ";" then we assume it to be the separator 9834 # otherwise default to the standard path separator (i.e. ":") - it is 9835 # assumed that no part of a normal pathname contains ";" but that should 9836 # okay in the real world where ";" in dirpaths is itself problematic. 9837 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9838 ;; 9839 *) 9840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9841 ;; 9842 esac 9843 # Ok, now we have the path, separated by spaces, we can step through it 9844 # and add multilib dir if necessary. 9845 lt_tmp_lt_search_path_spec= 9846 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9847 for lt_sys_path in $lt_search_path_spec; do 9848 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9849 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9850 else 9851 test -d "$lt_sys_path" && \ 9852 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9853 fi 9854 done 9855 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9856BEGIN {RS=" "; FS="/|\n";} { 9857 lt_foo=""; 9858 lt_count=0; 9859 for (lt_i = NF; lt_i > 0; lt_i--) { 9860 if ($lt_i != "" && $lt_i != ".") { 9861 if ($lt_i == "..") { 9862 lt_count++; 9863 } else { 9864 if (lt_count == 0) { 9865 lt_foo="/" $lt_i lt_foo; 9866 } else { 9867 lt_count--; 9868 } 9869 } 9870 } 9871 } 9872 if (lt_foo != "") { lt_freq[lt_foo]++; } 9873 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9874}'` 9875 # AWK program above erroneously prepends '/' to C:/dos/paths 9876 # for these hosts. 9877 case $host_os in 9878 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9879 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9880 esac 9881 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9882else 9883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9884fi 9885library_names_spec= 9886libname_spec='lib$name' 9887soname_spec= 9888shrext_cmds=".so" 9889postinstall_cmds= 9890postuninstall_cmds= 9891finish_cmds= 9892finish_eval= 9893shlibpath_var= 9894shlibpath_overrides_runpath=unknown 9895version_type=none 9896dynamic_linker="$host_os ld.so" 9897sys_lib_dlsearch_path_spec="/lib /usr/lib" 9898need_lib_prefix=unknown 9899hardcode_into_libs=no 9900 9901# when you set need_version to no, make sure it does not cause -set_version 9902# flags to be left without arguments 9903need_version=unknown 9904 9905case $host_os in 9906aix3*) 9907 version_type=linux # correct to gnu/linux during the next big refactor 9908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9909 shlibpath_var=LIBPATH 9910 9911 # AIX 3 has no versioning support, so we append a major version to the name. 9912 soname_spec='${libname}${release}${shared_ext}$major' 9913 ;; 9914 9915aix[4-9]*) 9916 version_type=linux # correct to gnu/linux during the next big refactor 9917 need_lib_prefix=no 9918 need_version=no 9919 hardcode_into_libs=yes 9920 if test "$host_cpu" = ia64; then 9921 # AIX 5 supports IA64 9922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9923 shlibpath_var=LD_LIBRARY_PATH 9924 else 9925 # With GCC up to 2.95.x, collect2 would create an import file 9926 # for dependence libraries. The import file would start with 9927 # the line `#! .'. This would cause the generated library to 9928 # depend on `.', always an invalid library. This was fixed in 9929 # development snapshots of GCC prior to 3.0. 9930 case $host_os in 9931 aix4 | aix4.[01] | aix4.[01].*) 9932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9933 echo ' yes ' 9934 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9935 : 9936 else 9937 can_build_shared=no 9938 fi 9939 ;; 9940 esac 9941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9942 # soname into executable. Probably we can add versioning support to 9943 # collect2, so additional links can be useful in future. 9944 if test "$aix_use_runtimelinking" = yes; then 9945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9946 # instead of lib<name>.a to let people know that these are not 9947 # typical AIX shared libraries. 9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9949 else 9950 # We preserve .a as extension for shared libraries through AIX4.2 9951 # and later when we are not doing run time linking. 9952 library_names_spec='${libname}${release}.a $libname.a' 9953 soname_spec='${libname}${release}${shared_ext}$major' 9954 fi 9955 shlibpath_var=LIBPATH 9956 fi 9957 ;; 9958 9959amigaos*) 9960 case $host_cpu in 9961 powerpc) 9962 # Since July 2007 AmigaOS4 officially supports .so libraries. 9963 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9965 ;; 9966 m68k) 9967 library_names_spec='$libname.ixlibrary $libname.a' 9968 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9969 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' 9970 ;; 9971 esac 9972 ;; 9973 9974beos*) 9975 library_names_spec='${libname}${shared_ext}' 9976 dynamic_linker="$host_os ld.so" 9977 shlibpath_var=LIBRARY_PATH 9978 ;; 9979 9980bsdi[45]*) 9981 version_type=linux # correct to gnu/linux during the next big refactor 9982 need_version=no 9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9984 soname_spec='${libname}${release}${shared_ext}$major' 9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9986 shlibpath_var=LD_LIBRARY_PATH 9987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9989 # the default ld.so.conf also contains /usr/contrib/lib and 9990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9991 # libtool to hard-code these into programs 9992 ;; 9993 9994cygwin* | mingw* | pw32* | cegcc*) 9995 version_type=windows 9996 shrext_cmds=".dll" 9997 need_version=no 9998 need_lib_prefix=no 9999 10000 case $GCC,$cc_basename in 10001 yes,*) 10002 # gcc 10003 library_names_spec='$libname.dll.a' 10004 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10005 postinstall_cmds='base_file=`basename \${file}`~ 10006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10007 dldir=$destdir/`dirname \$dlpath`~ 10008 test -d \$dldir || mkdir -p \$dldir~ 10009 $install_prog $dir/$dlname \$dldir/$dlname~ 10010 chmod a+x \$dldir/$dlname~ 10011 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10012 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10013 fi' 10014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10015 dlpath=$dir/\$dldll~ 10016 $RM \$dlpath' 10017 shlibpath_overrides_runpath=yes 10018 10019 case $host_os in 10020 cygwin*) 10021 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10023 10024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10025 ;; 10026 mingw* | cegcc*) 10027 # MinGW DLLs use traditional 'lib' prefix 10028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10029 ;; 10030 pw32*) 10031 # pw32 DLLs use 'pw' prefix rather than 'lib' 10032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10033 ;; 10034 esac 10035 dynamic_linker='Win32 ld.exe' 10036 ;; 10037 10038 *,cl*) 10039 # Native MSVC 10040 libname_spec='$name' 10041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10042 library_names_spec='${libname}.dll.lib' 10043 10044 case $build_os in 10045 mingw*) 10046 sys_lib_search_path_spec= 10047 lt_save_ifs=$IFS 10048 IFS=';' 10049 for lt_path in $LIB 10050 do 10051 IFS=$lt_save_ifs 10052 # Let DOS variable expansion print the short 8.3 style file name. 10053 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10054 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10055 done 10056 IFS=$lt_save_ifs 10057 # Convert to MSYS style. 10058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10059 ;; 10060 cygwin*) 10061 # Convert to unix form, then to dos form, then back to unix form 10062 # but this time dos style (no spaces!) so that the unix form looks 10063 # like /cygdrive/c/PROGRA~1:/cygdr... 10064 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10065 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10066 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10067 ;; 10068 *) 10069 sys_lib_search_path_spec="$LIB" 10070 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10071 # It is most probably a Windows format PATH. 10072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10073 else 10074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10075 fi 10076 # FIXME: find the short name or the path components, as spaces are 10077 # common. (e.g. "Program Files" -> "PROGRA~1") 10078 ;; 10079 esac 10080 10081 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10082 postinstall_cmds='base_file=`basename \${file}`~ 10083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10084 dldir=$destdir/`dirname \$dlpath`~ 10085 test -d \$dldir || mkdir -p \$dldir~ 10086 $install_prog $dir/$dlname \$dldir/$dlname' 10087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10088 dlpath=$dir/\$dldll~ 10089 $RM \$dlpath' 10090 shlibpath_overrides_runpath=yes 10091 dynamic_linker='Win32 link.exe' 10092 ;; 10093 10094 *) 10095 # Assume MSVC wrapper 10096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10097 dynamic_linker='Win32 ld.exe' 10098 ;; 10099 esac 10100 # FIXME: first we should search . and the directory the executable is in 10101 shlibpath_var=PATH 10102 ;; 10103 10104darwin* | rhapsody*) 10105 dynamic_linker="$host_os dyld" 10106 version_type=darwin 10107 need_lib_prefix=no 10108 need_version=no 10109 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10110 soname_spec='${libname}${release}${major}$shared_ext' 10111 shlibpath_overrides_runpath=yes 10112 shlibpath_var=DYLD_LIBRARY_PATH 10113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10114 10115 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10117 ;; 10118 10119dgux*) 10120 version_type=linux # correct to gnu/linux during the next big refactor 10121 need_lib_prefix=no 10122 need_version=no 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10124 soname_spec='${libname}${release}${shared_ext}$major' 10125 shlibpath_var=LD_LIBRARY_PATH 10126 ;; 10127 10128freebsd* | dragonfly*) 10129 # DragonFly does not have aout. When/if they implement a new 10130 # versioning mechanism, adjust this. 10131 if test -x /usr/bin/objformat; then 10132 objformat=`/usr/bin/objformat` 10133 else 10134 case $host_os in 10135 freebsd[23].*) objformat=aout ;; 10136 *) objformat=elf ;; 10137 esac 10138 fi 10139 version_type=freebsd-$objformat 10140 case $version_type in 10141 freebsd-elf*) 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10143 need_version=no 10144 need_lib_prefix=no 10145 ;; 10146 freebsd-*) 10147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10148 need_version=yes 10149 ;; 10150 esac 10151 shlibpath_var=LD_LIBRARY_PATH 10152 case $host_os in 10153 freebsd2.*) 10154 shlibpath_overrides_runpath=yes 10155 ;; 10156 freebsd3.[01]* | freebsdelf3.[01]*) 10157 shlibpath_overrides_runpath=yes 10158 hardcode_into_libs=yes 10159 ;; 10160 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10161 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10162 shlibpath_overrides_runpath=no 10163 hardcode_into_libs=yes 10164 ;; 10165 *) # from 4.6 on, and DragonFly 10166 shlibpath_overrides_runpath=yes 10167 hardcode_into_libs=yes 10168 ;; 10169 esac 10170 ;; 10171 10172gnu*) 10173 version_type=linux # correct to gnu/linux during the next big refactor 10174 need_lib_prefix=no 10175 need_version=no 10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10177 soname_spec='${libname}${release}${shared_ext}$major' 10178 shlibpath_var=LD_LIBRARY_PATH 10179 shlibpath_overrides_runpath=no 10180 hardcode_into_libs=yes 10181 ;; 10182 10183haiku*) 10184 version_type=linux # correct to gnu/linux during the next big refactor 10185 need_lib_prefix=no 10186 need_version=no 10187 dynamic_linker="$host_os runtime_loader" 10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10189 soname_spec='${libname}${release}${shared_ext}$major' 10190 shlibpath_var=LIBRARY_PATH 10191 shlibpath_overrides_runpath=yes 10192 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10193 hardcode_into_libs=yes 10194 ;; 10195 10196hpux9* | hpux10* | hpux11*) 10197 # Give a soname corresponding to the major version so that dld.sl refuses to 10198 # link against other versions. 10199 version_type=sunos 10200 need_lib_prefix=no 10201 need_version=no 10202 case $host_cpu in 10203 ia64*) 10204 shrext_cmds='.so' 10205 hardcode_into_libs=yes 10206 dynamic_linker="$host_os dld.so" 10207 shlibpath_var=LD_LIBRARY_PATH 10208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10210 soname_spec='${libname}${release}${shared_ext}$major' 10211 if test "X$HPUX_IA64_MODE" = X32; then 10212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10213 else 10214 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10215 fi 10216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10217 ;; 10218 hppa*64*) 10219 shrext_cmds='.sl' 10220 hardcode_into_libs=yes 10221 dynamic_linker="$host_os dld.sl" 10222 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10225 soname_spec='${libname}${release}${shared_ext}$major' 10226 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10228 ;; 10229 *) 10230 shrext_cmds='.sl' 10231 dynamic_linker="$host_os dld.sl" 10232 shlibpath_var=SHLIB_PATH 10233 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10235 soname_spec='${libname}${release}${shared_ext}$major' 10236 ;; 10237 esac 10238 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10239 postinstall_cmds='chmod 555 $lib' 10240 # or fails outright, so override atomically: 10241 install_override_mode=555 10242 ;; 10243 10244interix[3-9]*) 10245 version_type=linux # correct to gnu/linux during the next big refactor 10246 need_lib_prefix=no 10247 need_version=no 10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10249 soname_spec='${libname}${release}${shared_ext}$major' 10250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10251 shlibpath_var=LD_LIBRARY_PATH 10252 shlibpath_overrides_runpath=no 10253 hardcode_into_libs=yes 10254 ;; 10255 10256irix5* | irix6* | nonstopux*) 10257 case $host_os in 10258 nonstopux*) version_type=nonstopux ;; 10259 *) 10260 if test "$lt_cv_prog_gnu_ld" = yes; then 10261 version_type=linux # correct to gnu/linux during the next big refactor 10262 else 10263 version_type=irix 10264 fi ;; 10265 esac 10266 need_lib_prefix=no 10267 need_version=no 10268 soname_spec='${libname}${release}${shared_ext}$major' 10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10270 case $host_os in 10271 irix5* | nonstopux*) 10272 libsuff= shlibsuff= 10273 ;; 10274 *) 10275 case $LD in # libtool.m4 will add one of these switches to LD 10276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10277 libsuff= shlibsuff= libmagic=32-bit;; 10278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10279 libsuff=32 shlibsuff=N32 libmagic=N32;; 10280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10281 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10282 *) libsuff= shlibsuff= libmagic=never-match;; 10283 esac 10284 ;; 10285 esac 10286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10287 shlibpath_overrides_runpath=no 10288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10290 hardcode_into_libs=yes 10291 ;; 10292 10293# No shared lib support for Linux oldld, aout, or coff. 10294linux*oldld* | linux*aout* | linux*coff*) 10295 dynamic_linker=no 10296 ;; 10297 10298# This must be glibc/ELF. 10299linux* | k*bsd*-gnu | kopensolaris*-gnu) 10300 version_type=linux # correct to gnu/linux during the next big refactor 10301 need_lib_prefix=no 10302 need_version=no 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10306 shlibpath_var=LD_LIBRARY_PATH 10307 shlibpath_overrides_runpath=no 10308 10309 # Some binutils ld are patched to set DT_RUNPATH 10310 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10311 $as_echo_n "(cached) " >&6 10312else 10313 lt_cv_shlibpath_overrides_runpath=no 10314 save_LDFLAGS=$LDFLAGS 10315 save_libdir=$libdir 10316 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10317 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319/* end confdefs.h. */ 10320 10321int 10322main () 10323{ 10324 10325 ; 10326 return 0; 10327} 10328_ACEOF 10329if ac_fn_c_try_link "$LINENO"; then : 10330 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10331 lt_cv_shlibpath_overrides_runpath=yes 10332fi 10333fi 10334rm -f core conftest.err conftest.$ac_objext \ 10335 conftest$ac_exeext conftest.$ac_ext 10336 LDFLAGS=$save_LDFLAGS 10337 libdir=$save_libdir 10338 10339fi 10340 10341 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10342 10343 # This implies no fast_install, which is unacceptable. 10344 # Some rework will be needed to allow for fast_install 10345 # before this can be enabled. 10346 hardcode_into_libs=yes 10347 10348 # Append ld.so.conf contents to the search path 10349 if test -f /etc/ld.so.conf; then 10350 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' ' '` 10351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10352 fi 10353 10354 # We used to test for /lib/ld.so.1 and disable shared libraries on 10355 # powerpc, because MkLinux only supported shared libraries with the 10356 # GNU dynamic linker. Since this was broken with cross compilers, 10357 # most powerpc-linux boxes support dynamic linking these days and 10358 # people can always --disable-shared, the test was removed, and we 10359 # assume the GNU/Linux dynamic linker is in use. 10360 dynamic_linker='GNU/Linux ld.so' 10361 ;; 10362 10363netbsd*) 10364 version_type=sunos 10365 need_lib_prefix=no 10366 need_version=no 10367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10370 dynamic_linker='NetBSD (a.out) ld.so' 10371 else 10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10373 soname_spec='${libname}${release}${shared_ext}$major' 10374 dynamic_linker='NetBSD ld.elf_so' 10375 fi 10376 shlibpath_var=LD_LIBRARY_PATH 10377 shlibpath_overrides_runpath=yes 10378 hardcode_into_libs=yes 10379 ;; 10380 10381newsos6) 10382 version_type=linux # correct to gnu/linux during the next big refactor 10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10384 shlibpath_var=LD_LIBRARY_PATH 10385 shlibpath_overrides_runpath=yes 10386 ;; 10387 10388*nto* | *qnx*) 10389 version_type=qnx 10390 need_lib_prefix=no 10391 need_version=no 10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10393 soname_spec='${libname}${release}${shared_ext}$major' 10394 shlibpath_var=LD_LIBRARY_PATH 10395 shlibpath_overrides_runpath=no 10396 hardcode_into_libs=yes 10397 dynamic_linker='ldqnx.so' 10398 ;; 10399 10400openbsd*) 10401 version_type=sunos 10402 sys_lib_dlsearch_path_spec="/usr/lib" 10403 need_lib_prefix=no 10404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10405 case $host_os in 10406 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10407 *) need_version=no ;; 10408 esac 10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10411 shlibpath_var=LD_LIBRARY_PATH 10412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10413 case $host_os in 10414 openbsd2.[89] | openbsd2.[89].*) 10415 shlibpath_overrides_runpath=no 10416 ;; 10417 *) 10418 shlibpath_overrides_runpath=yes 10419 ;; 10420 esac 10421 else 10422 shlibpath_overrides_runpath=yes 10423 fi 10424 ;; 10425 10426os2*) 10427 libname_spec='$name' 10428 shrext_cmds=".dll" 10429 need_lib_prefix=no 10430 library_names_spec='$libname${shared_ext} $libname.a' 10431 dynamic_linker='OS/2 ld.exe' 10432 shlibpath_var=LIBPATH 10433 ;; 10434 10435osf3* | osf4* | osf5*) 10436 version_type=osf 10437 need_lib_prefix=no 10438 need_version=no 10439 soname_spec='${libname}${release}${shared_ext}$major' 10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10441 shlibpath_var=LD_LIBRARY_PATH 10442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10444 ;; 10445 10446rdos*) 10447 dynamic_linker=no 10448 ;; 10449 10450solaris*) 10451 version_type=linux # correct to gnu/linux during the next big refactor 10452 need_lib_prefix=no 10453 need_version=no 10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10455 soname_spec='${libname}${release}${shared_ext}$major' 10456 shlibpath_var=LD_LIBRARY_PATH 10457 shlibpath_overrides_runpath=yes 10458 hardcode_into_libs=yes 10459 # ldd complains unless libraries are executable 10460 postinstall_cmds='chmod +x $lib' 10461 ;; 10462 10463sunos4*) 10464 version_type=sunos 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10467 shlibpath_var=LD_LIBRARY_PATH 10468 shlibpath_overrides_runpath=yes 10469 if test "$with_gnu_ld" = yes; then 10470 need_lib_prefix=no 10471 fi 10472 need_version=yes 10473 ;; 10474 10475sysv4 | sysv4.3*) 10476 version_type=linux # correct to gnu/linux during the next big refactor 10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10478 soname_spec='${libname}${release}${shared_ext}$major' 10479 shlibpath_var=LD_LIBRARY_PATH 10480 case $host_vendor in 10481 sni) 10482 shlibpath_overrides_runpath=no 10483 need_lib_prefix=no 10484 runpath_var=LD_RUN_PATH 10485 ;; 10486 siemens) 10487 need_lib_prefix=no 10488 ;; 10489 motorola) 10490 need_lib_prefix=no 10491 need_version=no 10492 shlibpath_overrides_runpath=no 10493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10494 ;; 10495 esac 10496 ;; 10497 10498sysv4*MP*) 10499 if test -d /usr/nec ;then 10500 version_type=linux # correct to gnu/linux during the next big refactor 10501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10502 soname_spec='$libname${shared_ext}.$major' 10503 shlibpath_var=LD_LIBRARY_PATH 10504 fi 10505 ;; 10506 10507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10508 version_type=freebsd-elf 10509 need_lib_prefix=no 10510 need_version=no 10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10512 soname_spec='${libname}${release}${shared_ext}$major' 10513 shlibpath_var=LD_LIBRARY_PATH 10514 shlibpath_overrides_runpath=yes 10515 hardcode_into_libs=yes 10516 if test "$with_gnu_ld" = yes; then 10517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10518 else 10519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10520 case $host_os in 10521 sco3.2v5*) 10522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10523 ;; 10524 esac 10525 fi 10526 sys_lib_dlsearch_path_spec='/usr/lib' 10527 ;; 10528 10529tpf*) 10530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10531 version_type=linux # correct to gnu/linux during the next big refactor 10532 need_lib_prefix=no 10533 need_version=no 10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10535 shlibpath_var=LD_LIBRARY_PATH 10536 shlibpath_overrides_runpath=no 10537 hardcode_into_libs=yes 10538 ;; 10539 10540uts4*) 10541 version_type=linux # correct to gnu/linux during the next big refactor 10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10543 soname_spec='${libname}${release}${shared_ext}$major' 10544 shlibpath_var=LD_LIBRARY_PATH 10545 ;; 10546 10547*) 10548 dynamic_linker=no 10549 ;; 10550esac 10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10552$as_echo "$dynamic_linker" >&6; } 10553test "$dynamic_linker" = no && can_build_shared=no 10554 10555variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10556if test "$GCC" = yes; then 10557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10558fi 10559 10560if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10561 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10562fi 10563if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10565fi 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10659$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10660hardcode_action= 10661if test -n "$hardcode_libdir_flag_spec" || 10662 test -n "$runpath_var" || 10663 test "X$hardcode_automatic" = "Xyes" ; then 10664 10665 # We can hardcode non-existent directories. 10666 if test "$hardcode_direct" != no && 10667 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10668 # have to relink, otherwise we might link with an installed library 10669 # when we should be linking with a yet-to-be-installed one 10670 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10671 test "$hardcode_minus_L" != no; then 10672 # Linking always hardcodes the temporary library directory. 10673 hardcode_action=relink 10674 else 10675 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10676 hardcode_action=immediate 10677 fi 10678else 10679 # We cannot hardcode anything, or else we can only hardcode existing 10680 # directories. 10681 hardcode_action=unsupported 10682fi 10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10684$as_echo "$hardcode_action" >&6; } 10685 10686if test "$hardcode_action" = relink || 10687 test "$inherit_rpath" = yes; then 10688 # Fast installation is not supported 10689 enable_fast_install=no 10690elif test "$shlibpath_overrides_runpath" = yes || 10691 test "$enable_shared" = no; then 10692 # Fast installation is not necessary 10693 enable_fast_install=needless 10694fi 10695 10696 10697 10698 10699 10700 10701 if test "x$enable_dlopen" != xyes; then 10702 enable_dlopen=unknown 10703 enable_dlopen_self=unknown 10704 enable_dlopen_self_static=unknown 10705else 10706 lt_cv_dlopen=no 10707 lt_cv_dlopen_libs= 10708 10709 case $host_os in 10710 beos*) 10711 lt_cv_dlopen="load_add_on" 10712 lt_cv_dlopen_libs= 10713 lt_cv_dlopen_self=yes 10714 ;; 10715 10716 mingw* | pw32* | cegcc*) 10717 lt_cv_dlopen="LoadLibrary" 10718 lt_cv_dlopen_libs= 10719 ;; 10720 10721 cygwin*) 10722 lt_cv_dlopen="dlopen" 10723 lt_cv_dlopen_libs= 10724 ;; 10725 10726 darwin*) 10727 # if libdl is installed we need to link against it 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10729$as_echo_n "checking for dlopen in -ldl... " >&6; } 10730if ${ac_cv_lib_dl_dlopen+:} false; then : 10731 $as_echo_n "(cached) " >&6 10732else 10733 ac_check_lib_save_LIBS=$LIBS 10734LIBS="-ldl $LIBS" 10735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10736/* end confdefs.h. */ 10737 10738/* Override any GCC internal prototype to avoid an error. 10739 Use char because int might match the return type of a GCC 10740 builtin and then its argument prototype would still apply. */ 10741#ifdef __cplusplus 10742extern "C" 10743#endif 10744char dlopen (); 10745int 10746main () 10747{ 10748return dlopen (); 10749 ; 10750 return 0; 10751} 10752_ACEOF 10753if ac_fn_c_try_link "$LINENO"; then : 10754 ac_cv_lib_dl_dlopen=yes 10755else 10756 ac_cv_lib_dl_dlopen=no 10757fi 10758rm -f core conftest.err conftest.$ac_objext \ 10759 conftest$ac_exeext conftest.$ac_ext 10760LIBS=$ac_check_lib_save_LIBS 10761fi 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10763$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10764if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10766else 10767 10768 lt_cv_dlopen="dyld" 10769 lt_cv_dlopen_libs= 10770 lt_cv_dlopen_self=yes 10771 10772fi 10773 10774 ;; 10775 10776 *) 10777 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10778if test "x$ac_cv_func_shl_load" = xyes; then : 10779 lt_cv_dlopen="shl_load" 10780else 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10782$as_echo_n "checking for shl_load in -ldld... " >&6; } 10783if ${ac_cv_lib_dld_shl_load+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785else 10786 ac_check_lib_save_LIBS=$LIBS 10787LIBS="-ldld $LIBS" 10788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10789/* end confdefs.h. */ 10790 10791/* Override any GCC internal prototype to avoid an error. 10792 Use char because int might match the return type of a GCC 10793 builtin and then its argument prototype would still apply. */ 10794#ifdef __cplusplus 10795extern "C" 10796#endif 10797char shl_load (); 10798int 10799main () 10800{ 10801return shl_load (); 10802 ; 10803 return 0; 10804} 10805_ACEOF 10806if ac_fn_c_try_link "$LINENO"; then : 10807 ac_cv_lib_dld_shl_load=yes 10808else 10809 ac_cv_lib_dld_shl_load=no 10810fi 10811rm -f core conftest.err conftest.$ac_objext \ 10812 conftest$ac_exeext conftest.$ac_ext 10813LIBS=$ac_check_lib_save_LIBS 10814fi 10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10816$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10817if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10819else 10820 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10821if test "x$ac_cv_func_dlopen" = xyes; then : 10822 lt_cv_dlopen="dlopen" 10823else 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10825$as_echo_n "checking for dlopen in -ldl... " >&6; } 10826if ${ac_cv_lib_dl_dlopen+:} false; then : 10827 $as_echo_n "(cached) " >&6 10828else 10829 ac_check_lib_save_LIBS=$LIBS 10830LIBS="-ldl $LIBS" 10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833 10834/* Override any GCC internal prototype to avoid an error. 10835 Use char because int might match the return type of a GCC 10836 builtin and then its argument prototype would still apply. */ 10837#ifdef __cplusplus 10838extern "C" 10839#endif 10840char dlopen (); 10841int 10842main () 10843{ 10844return dlopen (); 10845 ; 10846 return 0; 10847} 10848_ACEOF 10849if ac_fn_c_try_link "$LINENO"; then : 10850 ac_cv_lib_dl_dlopen=yes 10851else 10852 ac_cv_lib_dl_dlopen=no 10853fi 10854rm -f core conftest.err conftest.$ac_objext \ 10855 conftest$ac_exeext conftest.$ac_ext 10856LIBS=$ac_check_lib_save_LIBS 10857fi 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10859$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10860if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10862else 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10864$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10865if ${ac_cv_lib_svld_dlopen+:} false; then : 10866 $as_echo_n "(cached) " >&6 10867else 10868 ac_check_lib_save_LIBS=$LIBS 10869LIBS="-lsvld $LIBS" 10870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10871/* end confdefs.h. */ 10872 10873/* Override any GCC internal prototype to avoid an error. 10874 Use char because int might match the return type of a GCC 10875 builtin and then its argument prototype would still apply. */ 10876#ifdef __cplusplus 10877extern "C" 10878#endif 10879char dlopen (); 10880int 10881main () 10882{ 10883return dlopen (); 10884 ; 10885 return 0; 10886} 10887_ACEOF 10888if ac_fn_c_try_link "$LINENO"; then : 10889 ac_cv_lib_svld_dlopen=yes 10890else 10891 ac_cv_lib_svld_dlopen=no 10892fi 10893rm -f core conftest.err conftest.$ac_objext \ 10894 conftest$ac_exeext conftest.$ac_ext 10895LIBS=$ac_check_lib_save_LIBS 10896fi 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10898$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10899if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10901else 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10903$as_echo_n "checking for dld_link in -ldld... " >&6; } 10904if ${ac_cv_lib_dld_dld_link+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906else 10907 ac_check_lib_save_LIBS=$LIBS 10908LIBS="-ldld $LIBS" 10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10910/* end confdefs.h. */ 10911 10912/* Override any GCC internal prototype to avoid an error. 10913 Use char because int might match the return type of a GCC 10914 builtin and then its argument prototype would still apply. */ 10915#ifdef __cplusplus 10916extern "C" 10917#endif 10918char dld_link (); 10919int 10920main () 10921{ 10922return dld_link (); 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_c_try_link "$LINENO"; then : 10928 ac_cv_lib_dld_dld_link=yes 10929else 10930 ac_cv_lib_dld_dld_link=no 10931fi 10932rm -f core conftest.err conftest.$ac_objext \ 10933 conftest$ac_exeext conftest.$ac_ext 10934LIBS=$ac_check_lib_save_LIBS 10935fi 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10937$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10938if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10939 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10940fi 10941 10942 10943fi 10944 10945 10946fi 10947 10948 10949fi 10950 10951 10952fi 10953 10954 10955fi 10956 10957 ;; 10958 esac 10959 10960 if test "x$lt_cv_dlopen" != xno; then 10961 enable_dlopen=yes 10962 else 10963 enable_dlopen=no 10964 fi 10965 10966 case $lt_cv_dlopen in 10967 dlopen) 10968 save_CPPFLAGS="$CPPFLAGS" 10969 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10970 10971 save_LDFLAGS="$LDFLAGS" 10972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10973 10974 save_LIBS="$LIBS" 10975 LIBS="$lt_cv_dlopen_libs $LIBS" 10976 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10978$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10979if ${lt_cv_dlopen_self+:} false; then : 10980 $as_echo_n "(cached) " >&6 10981else 10982 if test "$cross_compiling" = yes; then : 10983 lt_cv_dlopen_self=cross 10984else 10985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10986 lt_status=$lt_dlunknown 10987 cat > conftest.$ac_ext <<_LT_EOF 10988#line $LINENO "configure" 10989#include "confdefs.h" 10990 10991#if HAVE_DLFCN_H 10992#include <dlfcn.h> 10993#endif 10994 10995#include <stdio.h> 10996 10997#ifdef RTLD_GLOBAL 10998# define LT_DLGLOBAL RTLD_GLOBAL 10999#else 11000# ifdef DL_GLOBAL 11001# define LT_DLGLOBAL DL_GLOBAL 11002# else 11003# define LT_DLGLOBAL 0 11004# endif 11005#endif 11006 11007/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11008 find out it does not work in some platform. */ 11009#ifndef LT_DLLAZY_OR_NOW 11010# ifdef RTLD_LAZY 11011# define LT_DLLAZY_OR_NOW RTLD_LAZY 11012# else 11013# ifdef DL_LAZY 11014# define LT_DLLAZY_OR_NOW DL_LAZY 11015# else 11016# ifdef RTLD_NOW 11017# define LT_DLLAZY_OR_NOW RTLD_NOW 11018# else 11019# ifdef DL_NOW 11020# define LT_DLLAZY_OR_NOW DL_NOW 11021# else 11022# define LT_DLLAZY_OR_NOW 0 11023# endif 11024# endif 11025# endif 11026# endif 11027#endif 11028 11029/* When -fvisbility=hidden is used, assume the code has been annotated 11030 correspondingly for the symbols needed. */ 11031#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11032int fnord () __attribute__((visibility("default"))); 11033#endif 11034 11035int fnord () { return 42; } 11036int main () 11037{ 11038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11039 int status = $lt_dlunknown; 11040 11041 if (self) 11042 { 11043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11044 else 11045 { 11046 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11047 else puts (dlerror ()); 11048 } 11049 /* dlclose (self); */ 11050 } 11051 else 11052 puts (dlerror ()); 11053 11054 return status; 11055} 11056_LT_EOF 11057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11058 (eval $ac_link) 2>&5 11059 ac_status=$? 11060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11061 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11062 (./conftest; exit; ) >&5 2>/dev/null 11063 lt_status=$? 11064 case x$lt_status in 11065 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11066 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11067 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11068 esac 11069 else : 11070 # compilation failed 11071 lt_cv_dlopen_self=no 11072 fi 11073fi 11074rm -fr conftest* 11075 11076 11077fi 11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11079$as_echo "$lt_cv_dlopen_self" >&6; } 11080 11081 if test "x$lt_cv_dlopen_self" = xyes; then 11082 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11084$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11085if ${lt_cv_dlopen_self_static+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087else 11088 if test "$cross_compiling" = yes; then : 11089 lt_cv_dlopen_self_static=cross 11090else 11091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11092 lt_status=$lt_dlunknown 11093 cat > conftest.$ac_ext <<_LT_EOF 11094#line $LINENO "configure" 11095#include "confdefs.h" 11096 11097#if HAVE_DLFCN_H 11098#include <dlfcn.h> 11099#endif 11100 11101#include <stdio.h> 11102 11103#ifdef RTLD_GLOBAL 11104# define LT_DLGLOBAL RTLD_GLOBAL 11105#else 11106# ifdef DL_GLOBAL 11107# define LT_DLGLOBAL DL_GLOBAL 11108# else 11109# define LT_DLGLOBAL 0 11110# endif 11111#endif 11112 11113/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11114 find out it does not work in some platform. */ 11115#ifndef LT_DLLAZY_OR_NOW 11116# ifdef RTLD_LAZY 11117# define LT_DLLAZY_OR_NOW RTLD_LAZY 11118# else 11119# ifdef DL_LAZY 11120# define LT_DLLAZY_OR_NOW DL_LAZY 11121# else 11122# ifdef RTLD_NOW 11123# define LT_DLLAZY_OR_NOW RTLD_NOW 11124# else 11125# ifdef DL_NOW 11126# define LT_DLLAZY_OR_NOW DL_NOW 11127# else 11128# define LT_DLLAZY_OR_NOW 0 11129# endif 11130# endif 11131# endif 11132# endif 11133#endif 11134 11135/* When -fvisbility=hidden is used, assume the code has been annotated 11136 correspondingly for the symbols needed. */ 11137#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11138int fnord () __attribute__((visibility("default"))); 11139#endif 11140 11141int fnord () { return 42; } 11142int main () 11143{ 11144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11145 int status = $lt_dlunknown; 11146 11147 if (self) 11148 { 11149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11150 else 11151 { 11152 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11153 else puts (dlerror ()); 11154 } 11155 /* dlclose (self); */ 11156 } 11157 else 11158 puts (dlerror ()); 11159 11160 return status; 11161} 11162_LT_EOF 11163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11164 (eval $ac_link) 2>&5 11165 ac_status=$? 11166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11167 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11168 (./conftest; exit; ) >&5 2>/dev/null 11169 lt_status=$? 11170 case x$lt_status in 11171 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11172 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11173 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11174 esac 11175 else : 11176 # compilation failed 11177 lt_cv_dlopen_self_static=no 11178 fi 11179fi 11180rm -fr conftest* 11181 11182 11183fi 11184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11185$as_echo "$lt_cv_dlopen_self_static" >&6; } 11186 fi 11187 11188 CPPFLAGS="$save_CPPFLAGS" 11189 LDFLAGS="$save_LDFLAGS" 11190 LIBS="$save_LIBS" 11191 ;; 11192 esac 11193 11194 case $lt_cv_dlopen_self in 11195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11196 *) enable_dlopen_self=unknown ;; 11197 esac 11198 11199 case $lt_cv_dlopen_self_static in 11200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11201 *) enable_dlopen_self_static=unknown ;; 11202 esac 11203fi 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221striplib= 11222old_striplib= 11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11224$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11225if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11226 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11227 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11229$as_echo "yes" >&6; } 11230else 11231# FIXME - insert some real tests, host_os isn't really good enough 11232 case $host_os in 11233 darwin*) 11234 if test -n "$STRIP" ; then 11235 striplib="$STRIP -x" 11236 old_striplib="$STRIP -S" 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11238$as_echo "yes" >&6; } 11239 else 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11241$as_echo "no" >&6; } 11242 fi 11243 ;; 11244 *) 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11246$as_echo "no" >&6; } 11247 ;; 11248 esac 11249fi 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 # Report which library types will actually be built 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11264$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11266$as_echo "$can_build_shared" >&6; } 11267 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11269$as_echo_n "checking whether to build shared libraries... " >&6; } 11270 test "$can_build_shared" = "no" && enable_shared=no 11271 11272 # On AIX, shared libraries and static libraries use the same namespace, and 11273 # are all built from PIC. 11274 case $host_os in 11275 aix3*) 11276 test "$enable_shared" = yes && enable_static=no 11277 if test -n "$RANLIB"; then 11278 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11279 postinstall_cmds='$RANLIB $lib' 11280 fi 11281 ;; 11282 11283 aix[4-9]*) 11284 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11285 test "$enable_shared" = yes && enable_static=no 11286 fi 11287 ;; 11288 esac 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11290$as_echo "$enable_shared" >&6; } 11291 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11293$as_echo_n "checking whether to build static libraries... " >&6; } 11294 # Make sure either enable_shared or enable_static is yes. 11295 test "$enable_shared" = yes || enable_static=yes 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11297$as_echo "$enable_static" >&6; } 11298 11299 11300 11301 11302fi 11303ac_ext=c 11304ac_cpp='$CPP $CPPFLAGS' 11305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11307ac_compiler_gnu=$ac_cv_c_compiler_gnu 11308 11309CC="$lt_save_CC" 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 ac_config_commands="$ac_config_commands libtool" 11326 11327 11328 11329 11330# Only expand once: 11331 11332 11333 11334# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11347$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11348if ${ac_cv_prog_cc_c99+:} false; then : 11349 $as_echo_n "(cached) " >&6 11350else 11351 ac_cv_prog_cc_c99=no 11352ac_save_CC=$CC 11353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354/* end confdefs.h. */ 11355#include <stdarg.h> 11356#include <stdbool.h> 11357#include <stdlib.h> 11358#include <wchar.h> 11359#include <stdio.h> 11360 11361// Check varargs macros. These examples are taken from C99 6.10.3.5. 11362#define debug(...) fprintf (stderr, __VA_ARGS__) 11363#define showlist(...) puts (#__VA_ARGS__) 11364#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11365static void 11366test_varargs_macros (void) 11367{ 11368 int x = 1234; 11369 int y = 5678; 11370 debug ("Flag"); 11371 debug ("X = %d\n", x); 11372 showlist (The first, second, and third items.); 11373 report (x>y, "x is %d but y is %d", x, y); 11374} 11375 11376// Check long long types. 11377#define BIG64 18446744073709551615ull 11378#define BIG32 4294967295ul 11379#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11380#if !BIG_OK 11381 your preprocessor is broken; 11382#endif 11383#if BIG_OK 11384#else 11385 your preprocessor is broken; 11386#endif 11387static long long int bignum = -9223372036854775807LL; 11388static unsigned long long int ubignum = BIG64; 11389 11390struct incomplete_array 11391{ 11392 int datasize; 11393 double data[]; 11394}; 11395 11396struct named_init { 11397 int number; 11398 const wchar_t *name; 11399 double average; 11400}; 11401 11402typedef const char *ccp; 11403 11404static inline int 11405test_restrict (ccp restrict text) 11406{ 11407 // See if C++-style comments work. 11408 // Iterate through items via the restricted pointer. 11409 // Also check for declarations in for loops. 11410 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11411 continue; 11412 return 0; 11413} 11414 11415// Check varargs and va_copy. 11416static void 11417test_varargs (const char *format, ...) 11418{ 11419 va_list args; 11420 va_start (args, format); 11421 va_list args_copy; 11422 va_copy (args_copy, args); 11423 11424 const char *str; 11425 int number; 11426 float fnumber; 11427 11428 while (*format) 11429 { 11430 switch (*format++) 11431 { 11432 case 's': // string 11433 str = va_arg (args_copy, const char *); 11434 break; 11435 case 'd': // int 11436 number = va_arg (args_copy, int); 11437 break; 11438 case 'f': // float 11439 fnumber = va_arg (args_copy, double); 11440 break; 11441 default: 11442 break; 11443 } 11444 } 11445 va_end (args_copy); 11446 va_end (args); 11447} 11448 11449int 11450main () 11451{ 11452 11453 // Check bool. 11454 _Bool success = false; 11455 11456 // Check restrict. 11457 if (test_restrict ("String literal") == 0) 11458 success = true; 11459 char *restrict newvar = "Another string"; 11460 11461 // Check varargs. 11462 test_varargs ("s, d' f .", "string", 65, 34.234); 11463 test_varargs_macros (); 11464 11465 // Check flexible array members. 11466 struct incomplete_array *ia = 11467 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11468 ia->datasize = 10; 11469 for (int i = 0; i < ia->datasize; ++i) 11470 ia->data[i] = i * 1.234; 11471 11472 // Check named initializers. 11473 struct named_init ni = { 11474 .number = 34, 11475 .name = L"Test wide string", 11476 .average = 543.34343, 11477 }; 11478 11479 ni.number = 58; 11480 11481 int dynamic_array[ni.number]; 11482 dynamic_array[ni.number - 1] = 543; 11483 11484 // work around unused variable warnings 11485 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11486 || dynamic_array[ni.number - 1] != 543); 11487 11488 ; 11489 return 0; 11490} 11491_ACEOF 11492for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11493do 11494 CC="$ac_save_CC $ac_arg" 11495 if ac_fn_c_try_compile "$LINENO"; then : 11496 ac_cv_prog_cc_c99=$ac_arg 11497fi 11498rm -f core conftest.err conftest.$ac_objext 11499 test "x$ac_cv_prog_cc_c99" != "xno" && break 11500done 11501rm -f conftest.$ac_ext 11502CC=$ac_save_CC 11503 11504fi 11505# AC_CACHE_VAL 11506case "x$ac_cv_prog_cc_c99" in 11507 x) 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11509$as_echo "none needed" >&6; } ;; 11510 xno) 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11512$as_echo "unsupported" >&6; } ;; 11513 *) 11514 CC="$CC $ac_cv_prog_cc_c99" 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11516$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11517esac 11518if test "x$ac_cv_prog_cc_c99" != xno; then : 11519 11520fi 11521 11522 11523 11524 11525 11526 11527ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11528if test "x$ac_cv_have_decl___clang__" = xyes; then : 11529 CLANGCC="yes" 11530else 11531 CLANGCC="no" 11532fi 11533 11534ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11535if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11536 INTELCC="yes" 11537else 11538 INTELCC="no" 11539fi 11540 11541ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11542if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11543 SUNCC="yes" 11544else 11545 SUNCC="no" 11546fi 11547 11548 11549 11550 11551if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11552 if test -n "$ac_tool_prefix"; then 11553 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11554set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11556$as_echo_n "checking for $ac_word... " >&6; } 11557if ${ac_cv_path_PKG_CONFIG+:} false; then : 11558 $as_echo_n "(cached) " >&6 11559else 11560 case $PKG_CONFIG in 11561 [\\/]* | ?:[\\/]*) 11562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11563 ;; 11564 *) 11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11566for as_dir in $PATH 11567do 11568 IFS=$as_save_IFS 11569 test -z "$as_dir" && as_dir=. 11570 for ac_exec_ext in '' $ac_executable_extensions; do 11571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11574 break 2 11575 fi 11576done 11577 done 11578IFS=$as_save_IFS 11579 11580 ;; 11581esac 11582fi 11583PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11584if test -n "$PKG_CONFIG"; then 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11586$as_echo "$PKG_CONFIG" >&6; } 11587else 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11589$as_echo "no" >&6; } 11590fi 11591 11592 11593fi 11594if test -z "$ac_cv_path_PKG_CONFIG"; then 11595 ac_pt_PKG_CONFIG=$PKG_CONFIG 11596 # Extract the first word of "pkg-config", so it can be a program name with args. 11597set dummy pkg-config; ac_word=$2 11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11599$as_echo_n "checking for $ac_word... " >&6; } 11600if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11601 $as_echo_n "(cached) " >&6 11602else 11603 case $ac_pt_PKG_CONFIG in 11604 [\\/]* | ?:[\\/]*) 11605 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11606 ;; 11607 *) 11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11609for as_dir in $PATH 11610do 11611 IFS=$as_save_IFS 11612 test -z "$as_dir" && as_dir=. 11613 for ac_exec_ext in '' $ac_executable_extensions; do 11614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11615 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11617 break 2 11618 fi 11619done 11620 done 11621IFS=$as_save_IFS 11622 11623 ;; 11624esac 11625fi 11626ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11627if test -n "$ac_pt_PKG_CONFIG"; then 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11629$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11630else 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11632$as_echo "no" >&6; } 11633fi 11634 11635 if test "x$ac_pt_PKG_CONFIG" = x; then 11636 PKG_CONFIG="" 11637 else 11638 case $cross_compiling:$ac_tool_warned in 11639yes:) 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11642ac_tool_warned=yes ;; 11643esac 11644 PKG_CONFIG=$ac_pt_PKG_CONFIG 11645 fi 11646else 11647 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11648fi 11649 11650fi 11651if test -n "$PKG_CONFIG"; then 11652 _pkg_min_version=0.9.0 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11654$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11655 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11657$as_echo "yes" >&6; } 11658 else 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11660$as_echo "no" >&6; } 11661 PKG_CONFIG="" 11662 fi 11663 11664fi 11665 11666 11667 11668 11669 11670# Check whether --enable-selective-werror was given. 11671if test "${enable_selective_werror+set}" = set; then : 11672 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11673else 11674 SELECTIVE_WERROR=yes 11675fi 11676 11677 11678 11679 11680 11681# -v is too short to test reliably with XORG_TESTSET_CFLAG 11682if test "x$SUNCC" = "xyes"; then 11683 BASE_CFLAGS="-v" 11684else 11685 BASE_CFLAGS="" 11686fi 11687 11688# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702xorg_testset_save_CFLAGS="$CFLAGS" 11703 11704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11709 $as_echo_n "(cached) " >&6 11710else 11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11712/* end confdefs.h. */ 11713int i; 11714_ACEOF 11715if ac_fn_c_try_compile "$LINENO"; then : 11716 xorg_cv_cc_flag_unknown_warning_option=yes 11717else 11718 xorg_cv_cc_flag_unknown_warning_option=no 11719fi 11720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11721fi 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11725 CFLAGS="$xorg_testset_save_CFLAGS" 11726fi 11727 11728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11731 fi 11732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11736 $as_echo_n "(cached) " >&6 11737else 11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11739/* end confdefs.h. */ 11740int i; 11741_ACEOF 11742if ac_fn_c_try_compile "$LINENO"; then : 11743 xorg_cv_cc_flag_unused_command_line_argument=yes 11744else 11745 xorg_cv_cc_flag_unused_command_line_argument=no 11746fi 11747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11748fi 11749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11752 CFLAGS="$xorg_testset_save_CFLAGS" 11753fi 11754 11755found="no" 11756 11757 if test $found = "no" ; then 11758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11760 fi 11761 11762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11764 fi 11765 11766 CFLAGS="$CFLAGS -Wall" 11767 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11769$as_echo_n "checking if $CC supports -Wall... " >&6; } 11770 cacheid=xorg_cv_cc_flag__Wall 11771 if eval \${$cacheid+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773else 11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11775/* end confdefs.h. */ 11776int i; 11777int 11778main () 11779{ 11780 11781 ; 11782 return 0; 11783} 11784_ACEOF 11785if ac_fn_c_try_link "$LINENO"; then : 11786 eval $cacheid=yes 11787else 11788 eval $cacheid=no 11789fi 11790rm -f core conftest.err conftest.$ac_objext \ 11791 conftest$ac_exeext conftest.$ac_ext 11792fi 11793 11794 11795 CFLAGS="$xorg_testset_save_CFLAGS" 11796 11797 eval supported=\$$cacheid 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11799$as_echo "$supported" >&6; } 11800 if test "$supported" = "yes" ; then 11801 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11802 found="yes" 11803 fi 11804 fi 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820xorg_testset_save_CFLAGS="$CFLAGS" 11821 11822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11827 $as_echo_n "(cached) " >&6 11828else 11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11830/* end confdefs.h. */ 11831int i; 11832_ACEOF 11833if ac_fn_c_try_compile "$LINENO"; then : 11834 xorg_cv_cc_flag_unknown_warning_option=yes 11835else 11836 xorg_cv_cc_flag_unknown_warning_option=no 11837fi 11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11839fi 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11843 CFLAGS="$xorg_testset_save_CFLAGS" 11844fi 11845 11846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11849 fi 11850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11854 $as_echo_n "(cached) " >&6 11855else 11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11857/* end confdefs.h. */ 11858int i; 11859_ACEOF 11860if ac_fn_c_try_compile "$LINENO"; then : 11861 xorg_cv_cc_flag_unused_command_line_argument=yes 11862else 11863 xorg_cv_cc_flag_unused_command_line_argument=no 11864fi 11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11866fi 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11870 CFLAGS="$xorg_testset_save_CFLAGS" 11871fi 11872 11873found="no" 11874 11875 if test $found = "no" ; then 11876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11878 fi 11879 11880 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11882 fi 11883 11884 CFLAGS="$CFLAGS -Wpointer-arith" 11885 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11887$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11888 cacheid=xorg_cv_cc_flag__Wpointer_arith 11889 if eval \${$cacheid+:} false; then : 11890 $as_echo_n "(cached) " >&6 11891else 11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11893/* end confdefs.h. */ 11894int i; 11895int 11896main () 11897{ 11898 11899 ; 11900 return 0; 11901} 11902_ACEOF 11903if ac_fn_c_try_link "$LINENO"; then : 11904 eval $cacheid=yes 11905else 11906 eval $cacheid=no 11907fi 11908rm -f core conftest.err conftest.$ac_objext \ 11909 conftest$ac_exeext conftest.$ac_ext 11910fi 11911 11912 11913 CFLAGS="$xorg_testset_save_CFLAGS" 11914 11915 eval supported=\$$cacheid 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11917$as_echo "$supported" >&6; } 11918 if test "$supported" = "yes" ; then 11919 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 11920 found="yes" 11921 fi 11922 fi 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938xorg_testset_save_CFLAGS="$CFLAGS" 11939 11940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11948/* end confdefs.h. */ 11949int i; 11950_ACEOF 11951if ac_fn_c_try_compile "$LINENO"; then : 11952 xorg_cv_cc_flag_unknown_warning_option=yes 11953else 11954 xorg_cv_cc_flag_unknown_warning_option=no 11955fi 11956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11957fi 11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11961 CFLAGS="$xorg_testset_save_CFLAGS" 11962fi 11963 11964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11967 fi 11968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11972 $as_echo_n "(cached) " >&6 11973else 11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11975/* end confdefs.h. */ 11976int i; 11977_ACEOF 11978if ac_fn_c_try_compile "$LINENO"; then : 11979 xorg_cv_cc_flag_unused_command_line_argument=yes 11980else 11981 xorg_cv_cc_flag_unused_command_line_argument=no 11982fi 11983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11984fi 11985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11988 CFLAGS="$xorg_testset_save_CFLAGS" 11989fi 11990 11991found="no" 11992 11993 if test $found = "no" ; then 11994 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11996 fi 11997 11998 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12000 fi 12001 12002 CFLAGS="$CFLAGS -Wmissing-declarations" 12003 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12005$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12006 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12007 if eval \${$cacheid+:} false; then : 12008 $as_echo_n "(cached) " >&6 12009else 12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12011/* end confdefs.h. */ 12012int i; 12013int 12014main () 12015{ 12016 12017 ; 12018 return 0; 12019} 12020_ACEOF 12021if ac_fn_c_try_link "$LINENO"; then : 12022 eval $cacheid=yes 12023else 12024 eval $cacheid=no 12025fi 12026rm -f core conftest.err conftest.$ac_objext \ 12027 conftest$ac_exeext conftest.$ac_ext 12028fi 12029 12030 12031 CFLAGS="$xorg_testset_save_CFLAGS" 12032 12033 eval supported=\$$cacheid 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12035$as_echo "$supported" >&6; } 12036 if test "$supported" = "yes" ; then 12037 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12038 found="yes" 12039 fi 12040 fi 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056xorg_testset_save_CFLAGS="$CFLAGS" 12057 12058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12063 $as_echo_n "(cached) " >&6 12064else 12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12066/* end confdefs.h. */ 12067int i; 12068_ACEOF 12069if ac_fn_c_try_compile "$LINENO"; then : 12070 xorg_cv_cc_flag_unknown_warning_option=yes 12071else 12072 xorg_cv_cc_flag_unknown_warning_option=no 12073fi 12074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12075fi 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12079 CFLAGS="$xorg_testset_save_CFLAGS" 12080fi 12081 12082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12085 fi 12086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12090 $as_echo_n "(cached) " >&6 12091else 12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12093/* end confdefs.h. */ 12094int i; 12095_ACEOF 12096if ac_fn_c_try_compile "$LINENO"; then : 12097 xorg_cv_cc_flag_unused_command_line_argument=yes 12098else 12099 xorg_cv_cc_flag_unused_command_line_argument=no 12100fi 12101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12102fi 12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12106 CFLAGS="$xorg_testset_save_CFLAGS" 12107fi 12108 12109found="no" 12110 12111 if test $found = "no" ; then 12112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12114 fi 12115 12116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12118 fi 12119 12120 CFLAGS="$CFLAGS -Wformat=2" 12121 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12123$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12124 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12125 if eval \${$cacheid+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12129/* end confdefs.h. */ 12130int i; 12131int 12132main () 12133{ 12134 12135 ; 12136 return 0; 12137} 12138_ACEOF 12139if ac_fn_c_try_link "$LINENO"; then : 12140 eval $cacheid=yes 12141else 12142 eval $cacheid=no 12143fi 12144rm -f core conftest.err conftest.$ac_objext \ 12145 conftest$ac_exeext conftest.$ac_ext 12146fi 12147 12148 12149 CFLAGS="$xorg_testset_save_CFLAGS" 12150 12151 eval supported=\$$cacheid 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12153$as_echo "$supported" >&6; } 12154 if test "$supported" = "yes" ; then 12155 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12156 found="yes" 12157 fi 12158 fi 12159 12160 if test $found = "no" ; then 12161 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12163 fi 12164 12165 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12167 fi 12168 12169 CFLAGS="$CFLAGS -Wformat" 12170 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12172$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12173 cacheid=xorg_cv_cc_flag__Wformat 12174 if eval \${$cacheid+:} false; then : 12175 $as_echo_n "(cached) " >&6 12176else 12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178/* end confdefs.h. */ 12179int i; 12180int 12181main () 12182{ 12183 12184 ; 12185 return 0; 12186} 12187_ACEOF 12188if ac_fn_c_try_link "$LINENO"; then : 12189 eval $cacheid=yes 12190else 12191 eval $cacheid=no 12192fi 12193rm -f core conftest.err conftest.$ac_objext \ 12194 conftest$ac_exeext conftest.$ac_ext 12195fi 12196 12197 12198 CFLAGS="$xorg_testset_save_CFLAGS" 12199 12200 eval supported=\$$cacheid 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12202$as_echo "$supported" >&6; } 12203 if test "$supported" = "yes" ; then 12204 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12205 found="yes" 12206 fi 12207 fi 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225xorg_testset_save_CFLAGS="$CFLAGS" 12226 12227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233else 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12235/* end confdefs.h. */ 12236int i; 12237_ACEOF 12238if ac_fn_c_try_compile "$LINENO"; then : 12239 xorg_cv_cc_flag_unknown_warning_option=yes 12240else 12241 xorg_cv_cc_flag_unknown_warning_option=no 12242fi 12243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12244fi 12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12248 CFLAGS="$xorg_testset_save_CFLAGS" 12249fi 12250 12251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12254 fi 12255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12259 $as_echo_n "(cached) " >&6 12260else 12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12262/* end confdefs.h. */ 12263int i; 12264_ACEOF 12265if ac_fn_c_try_compile "$LINENO"; then : 12266 xorg_cv_cc_flag_unused_command_line_argument=yes 12267else 12268 xorg_cv_cc_flag_unused_command_line_argument=no 12269fi 12270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12271fi 12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12275 CFLAGS="$xorg_testset_save_CFLAGS" 12276fi 12277 12278found="no" 12279 12280 if test $found = "no" ; then 12281 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12283 fi 12284 12285 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12287 fi 12288 12289 CFLAGS="$CFLAGS -Wstrict-prototypes" 12290 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12292$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12293 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12294 if eval \${$cacheid+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299int i; 12300int 12301main () 12302{ 12303 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308if ac_fn_c_try_link "$LINENO"; then : 12309 eval $cacheid=yes 12310else 12311 eval $cacheid=no 12312fi 12313rm -f core conftest.err conftest.$ac_objext \ 12314 conftest$ac_exeext conftest.$ac_ext 12315fi 12316 12317 12318 CFLAGS="$xorg_testset_save_CFLAGS" 12319 12320 eval supported=\$$cacheid 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12322$as_echo "$supported" >&6; } 12323 if test "$supported" = "yes" ; then 12324 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12325 found="yes" 12326 fi 12327 fi 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343xorg_testset_save_CFLAGS="$CFLAGS" 12344 12345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12350 $as_echo_n "(cached) " >&6 12351else 12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12353/* end confdefs.h. */ 12354int i; 12355_ACEOF 12356if ac_fn_c_try_compile "$LINENO"; then : 12357 xorg_cv_cc_flag_unknown_warning_option=yes 12358else 12359 xorg_cv_cc_flag_unknown_warning_option=no 12360fi 12361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12362fi 12363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12366 CFLAGS="$xorg_testset_save_CFLAGS" 12367fi 12368 12369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12372 fi 12373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12377 $as_echo_n "(cached) " >&6 12378else 12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12380/* end confdefs.h. */ 12381int i; 12382_ACEOF 12383if ac_fn_c_try_compile "$LINENO"; then : 12384 xorg_cv_cc_flag_unused_command_line_argument=yes 12385else 12386 xorg_cv_cc_flag_unused_command_line_argument=no 12387fi 12388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12389fi 12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12393 CFLAGS="$xorg_testset_save_CFLAGS" 12394fi 12395 12396found="no" 12397 12398 if test $found = "no" ; then 12399 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12401 fi 12402 12403 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12405 fi 12406 12407 CFLAGS="$CFLAGS -Wmissing-prototypes" 12408 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12410$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12411 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12412 if eval \${$cacheid+:} false; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417int i; 12418int 12419main () 12420{ 12421 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426if ac_fn_c_try_link "$LINENO"; then : 12427 eval $cacheid=yes 12428else 12429 eval $cacheid=no 12430fi 12431rm -f core conftest.err conftest.$ac_objext \ 12432 conftest$ac_exeext conftest.$ac_ext 12433fi 12434 12435 12436 CFLAGS="$xorg_testset_save_CFLAGS" 12437 12438 eval supported=\$$cacheid 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12440$as_echo "$supported" >&6; } 12441 if test "$supported" = "yes" ; then 12442 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12443 found="yes" 12444 fi 12445 fi 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461xorg_testset_save_CFLAGS="$CFLAGS" 12462 12463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12471/* end confdefs.h. */ 12472int i; 12473_ACEOF 12474if ac_fn_c_try_compile "$LINENO"; then : 12475 xorg_cv_cc_flag_unknown_warning_option=yes 12476else 12477 xorg_cv_cc_flag_unknown_warning_option=no 12478fi 12479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12480fi 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12484 CFLAGS="$xorg_testset_save_CFLAGS" 12485fi 12486 12487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12490 fi 12491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12495 $as_echo_n "(cached) " >&6 12496else 12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12498/* end confdefs.h. */ 12499int i; 12500_ACEOF 12501if ac_fn_c_try_compile "$LINENO"; then : 12502 xorg_cv_cc_flag_unused_command_line_argument=yes 12503else 12504 xorg_cv_cc_flag_unused_command_line_argument=no 12505fi 12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12507fi 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12511 CFLAGS="$xorg_testset_save_CFLAGS" 12512fi 12513 12514found="no" 12515 12516 if test $found = "no" ; then 12517 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12519 fi 12520 12521 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12523 fi 12524 12525 CFLAGS="$CFLAGS -Wnested-externs" 12526 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12528$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12529 cacheid=xorg_cv_cc_flag__Wnested_externs 12530 if eval \${$cacheid+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12534/* end confdefs.h. */ 12535int i; 12536int 12537main () 12538{ 12539 12540 ; 12541 return 0; 12542} 12543_ACEOF 12544if ac_fn_c_try_link "$LINENO"; then : 12545 eval $cacheid=yes 12546else 12547 eval $cacheid=no 12548fi 12549rm -f core conftest.err conftest.$ac_objext \ 12550 conftest$ac_exeext conftest.$ac_ext 12551fi 12552 12553 12554 CFLAGS="$xorg_testset_save_CFLAGS" 12555 12556 eval supported=\$$cacheid 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12558$as_echo "$supported" >&6; } 12559 if test "$supported" = "yes" ; then 12560 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12561 found="yes" 12562 fi 12563 fi 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579xorg_testset_save_CFLAGS="$CFLAGS" 12580 12581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12586 $as_echo_n "(cached) " >&6 12587else 12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12589/* end confdefs.h. */ 12590int i; 12591_ACEOF 12592if ac_fn_c_try_compile "$LINENO"; then : 12593 xorg_cv_cc_flag_unknown_warning_option=yes 12594else 12595 xorg_cv_cc_flag_unknown_warning_option=no 12596fi 12597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12598fi 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12602 CFLAGS="$xorg_testset_save_CFLAGS" 12603fi 12604 12605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12608 fi 12609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12613 $as_echo_n "(cached) " >&6 12614else 12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12616/* end confdefs.h. */ 12617int i; 12618_ACEOF 12619if ac_fn_c_try_compile "$LINENO"; then : 12620 xorg_cv_cc_flag_unused_command_line_argument=yes 12621else 12622 xorg_cv_cc_flag_unused_command_line_argument=no 12623fi 12624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12625fi 12626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12629 CFLAGS="$xorg_testset_save_CFLAGS" 12630fi 12631 12632found="no" 12633 12634 if test $found = "no" ; then 12635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12637 fi 12638 12639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12641 fi 12642 12643 CFLAGS="$CFLAGS -Wbad-function-cast" 12644 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12646$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12647 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12648 if eval \${$cacheid+:} false; then : 12649 $as_echo_n "(cached) " >&6 12650else 12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12652/* end confdefs.h. */ 12653int i; 12654int 12655main () 12656{ 12657 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662if ac_fn_c_try_link "$LINENO"; then : 12663 eval $cacheid=yes 12664else 12665 eval $cacheid=no 12666fi 12667rm -f core conftest.err conftest.$ac_objext \ 12668 conftest$ac_exeext conftest.$ac_ext 12669fi 12670 12671 12672 CFLAGS="$xorg_testset_save_CFLAGS" 12673 12674 eval supported=\$$cacheid 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12676$as_echo "$supported" >&6; } 12677 if test "$supported" = "yes" ; then 12678 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12679 found="yes" 12680 fi 12681 fi 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697xorg_testset_save_CFLAGS="$CFLAGS" 12698 12699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12704 $as_echo_n "(cached) " >&6 12705else 12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12707/* end confdefs.h. */ 12708int i; 12709_ACEOF 12710if ac_fn_c_try_compile "$LINENO"; then : 12711 xorg_cv_cc_flag_unknown_warning_option=yes 12712else 12713 xorg_cv_cc_flag_unknown_warning_option=no 12714fi 12715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12716fi 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12720 CFLAGS="$xorg_testset_save_CFLAGS" 12721fi 12722 12723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12726 fi 12727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12734/* end confdefs.h. */ 12735int i; 12736_ACEOF 12737if ac_fn_c_try_compile "$LINENO"; then : 12738 xorg_cv_cc_flag_unused_command_line_argument=yes 12739else 12740 xorg_cv_cc_flag_unused_command_line_argument=no 12741fi 12742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12743fi 12744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12747 CFLAGS="$xorg_testset_save_CFLAGS" 12748fi 12749 12750found="no" 12751 12752 if test $found = "no" ; then 12753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12755 fi 12756 12757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12759 fi 12760 12761 CFLAGS="$CFLAGS -Wold-style-definition" 12762 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12764$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12765 cacheid=xorg_cv_cc_flag__Wold_style_definition 12766 if eval \${$cacheid+:} false; then : 12767 $as_echo_n "(cached) " >&6 12768else 12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12770/* end confdefs.h. */ 12771int i; 12772int 12773main () 12774{ 12775 12776 ; 12777 return 0; 12778} 12779_ACEOF 12780if ac_fn_c_try_link "$LINENO"; then : 12781 eval $cacheid=yes 12782else 12783 eval $cacheid=no 12784fi 12785rm -f core conftest.err conftest.$ac_objext \ 12786 conftest$ac_exeext conftest.$ac_ext 12787fi 12788 12789 12790 CFLAGS="$xorg_testset_save_CFLAGS" 12791 12792 eval supported=\$$cacheid 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12794$as_echo "$supported" >&6; } 12795 if test "$supported" = "yes" ; then 12796 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12797 found="yes" 12798 fi 12799 fi 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815xorg_testset_save_CFLAGS="$CFLAGS" 12816 12817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12822 $as_echo_n "(cached) " >&6 12823else 12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12825/* end confdefs.h. */ 12826int i; 12827_ACEOF 12828if ac_fn_c_try_compile "$LINENO"; then : 12829 xorg_cv_cc_flag_unknown_warning_option=yes 12830else 12831 xorg_cv_cc_flag_unknown_warning_option=no 12832fi 12833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12834fi 12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12838 CFLAGS="$xorg_testset_save_CFLAGS" 12839fi 12840 12841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12844 fi 12845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12849 $as_echo_n "(cached) " >&6 12850else 12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12852/* end confdefs.h. */ 12853int i; 12854_ACEOF 12855if ac_fn_c_try_compile "$LINENO"; then : 12856 xorg_cv_cc_flag_unused_command_line_argument=yes 12857else 12858 xorg_cv_cc_flag_unused_command_line_argument=no 12859fi 12860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12861fi 12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12865 CFLAGS="$xorg_testset_save_CFLAGS" 12866fi 12867 12868found="no" 12869 12870 if test $found = "no" ; then 12871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12873 fi 12874 12875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12877 fi 12878 12879 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12880 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12882$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12883 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12884 if eval \${$cacheid+:} false; then : 12885 $as_echo_n "(cached) " >&6 12886else 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889int i; 12890int 12891main () 12892{ 12893 12894 ; 12895 return 0; 12896} 12897_ACEOF 12898if ac_fn_c_try_link "$LINENO"; then : 12899 eval $cacheid=yes 12900else 12901 eval $cacheid=no 12902fi 12903rm -f core conftest.err conftest.$ac_objext \ 12904 conftest$ac_exeext conftest.$ac_ext 12905fi 12906 12907 12908 CFLAGS="$xorg_testset_save_CFLAGS" 12909 12910 eval supported=\$$cacheid 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12912$as_echo "$supported" >&6; } 12913 if test "$supported" = "yes" ; then 12914 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 12915 found="yes" 12916 fi 12917 fi 12918 12919 12920 12921 12922 12923# This chunk adds additional warnings that could catch undesired effects. 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937xorg_testset_save_CFLAGS="$CFLAGS" 12938 12939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12944 $as_echo_n "(cached) " >&6 12945else 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948int i; 12949_ACEOF 12950if ac_fn_c_try_compile "$LINENO"; then : 12951 xorg_cv_cc_flag_unknown_warning_option=yes 12952else 12953 xorg_cv_cc_flag_unknown_warning_option=no 12954fi 12955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12956fi 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12960 CFLAGS="$xorg_testset_save_CFLAGS" 12961fi 12962 12963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12966 fi 12967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12971 $as_echo_n "(cached) " >&6 12972else 12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12974/* end confdefs.h. */ 12975int i; 12976_ACEOF 12977if ac_fn_c_try_compile "$LINENO"; then : 12978 xorg_cv_cc_flag_unused_command_line_argument=yes 12979else 12980 xorg_cv_cc_flag_unused_command_line_argument=no 12981fi 12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12983fi 12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12987 CFLAGS="$xorg_testset_save_CFLAGS" 12988fi 12989 12990found="no" 12991 12992 if test $found = "no" ; then 12993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12995 fi 12996 12997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12999 fi 13000 13001 CFLAGS="$CFLAGS -Wunused" 13002 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13004$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13005 cacheid=xorg_cv_cc_flag__Wunused 13006 if eval \${$cacheid+:} false; then : 13007 $as_echo_n "(cached) " >&6 13008else 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010/* end confdefs.h. */ 13011int i; 13012int 13013main () 13014{ 13015 13016 ; 13017 return 0; 13018} 13019_ACEOF 13020if ac_fn_c_try_link "$LINENO"; then : 13021 eval $cacheid=yes 13022else 13023 eval $cacheid=no 13024fi 13025rm -f core conftest.err conftest.$ac_objext \ 13026 conftest$ac_exeext conftest.$ac_ext 13027fi 13028 13029 13030 CFLAGS="$xorg_testset_save_CFLAGS" 13031 13032 eval supported=\$$cacheid 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13034$as_echo "$supported" >&6; } 13035 if test "$supported" = "yes" ; then 13036 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13037 found="yes" 13038 fi 13039 fi 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055xorg_testset_save_CFLAGS="$CFLAGS" 13056 13057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13062 $as_echo_n "(cached) " >&6 13063else 13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13065/* end confdefs.h. */ 13066int i; 13067_ACEOF 13068if ac_fn_c_try_compile "$LINENO"; then : 13069 xorg_cv_cc_flag_unknown_warning_option=yes 13070else 13071 xorg_cv_cc_flag_unknown_warning_option=no 13072fi 13073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13074fi 13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13078 CFLAGS="$xorg_testset_save_CFLAGS" 13079fi 13080 13081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13084 fi 13085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13089 $as_echo_n "(cached) " >&6 13090else 13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13092/* end confdefs.h. */ 13093int i; 13094_ACEOF 13095if ac_fn_c_try_compile "$LINENO"; then : 13096 xorg_cv_cc_flag_unused_command_line_argument=yes 13097else 13098 xorg_cv_cc_flag_unused_command_line_argument=no 13099fi 13100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13101fi 13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13105 CFLAGS="$xorg_testset_save_CFLAGS" 13106fi 13107 13108found="no" 13109 13110 if test $found = "no" ; then 13111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13113 fi 13114 13115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13117 fi 13118 13119 CFLAGS="$CFLAGS -Wuninitialized" 13120 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13122$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13123 cacheid=xorg_cv_cc_flag__Wuninitialized 13124 if eval \${$cacheid+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129int i; 13130int 13131main () 13132{ 13133 13134 ; 13135 return 0; 13136} 13137_ACEOF 13138if ac_fn_c_try_link "$LINENO"; then : 13139 eval $cacheid=yes 13140else 13141 eval $cacheid=no 13142fi 13143rm -f core conftest.err conftest.$ac_objext \ 13144 conftest$ac_exeext conftest.$ac_ext 13145fi 13146 13147 13148 CFLAGS="$xorg_testset_save_CFLAGS" 13149 13150 eval supported=\$$cacheid 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13152$as_echo "$supported" >&6; } 13153 if test "$supported" = "yes" ; then 13154 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13155 found="yes" 13156 fi 13157 fi 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173xorg_testset_save_CFLAGS="$CFLAGS" 13174 13175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13180 $as_echo_n "(cached) " >&6 13181else 13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13183/* end confdefs.h. */ 13184int i; 13185_ACEOF 13186if ac_fn_c_try_compile "$LINENO"; then : 13187 xorg_cv_cc_flag_unknown_warning_option=yes 13188else 13189 xorg_cv_cc_flag_unknown_warning_option=no 13190fi 13191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13192fi 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13196 CFLAGS="$xorg_testset_save_CFLAGS" 13197fi 13198 13199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13202 fi 13203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13207 $as_echo_n "(cached) " >&6 13208else 13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13210/* end confdefs.h. */ 13211int i; 13212_ACEOF 13213if ac_fn_c_try_compile "$LINENO"; then : 13214 xorg_cv_cc_flag_unused_command_line_argument=yes 13215else 13216 xorg_cv_cc_flag_unused_command_line_argument=no 13217fi 13218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13219fi 13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13223 CFLAGS="$xorg_testset_save_CFLAGS" 13224fi 13225 13226found="no" 13227 13228 if test $found = "no" ; then 13229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13231 fi 13232 13233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13235 fi 13236 13237 CFLAGS="$CFLAGS -Wshadow" 13238 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13240$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13241 cacheid=xorg_cv_cc_flag__Wshadow 13242 if eval \${$cacheid+:} false; then : 13243 $as_echo_n "(cached) " >&6 13244else 13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246/* end confdefs.h. */ 13247int i; 13248int 13249main () 13250{ 13251 13252 ; 13253 return 0; 13254} 13255_ACEOF 13256if ac_fn_c_try_link "$LINENO"; then : 13257 eval $cacheid=yes 13258else 13259 eval $cacheid=no 13260fi 13261rm -f core conftest.err conftest.$ac_objext \ 13262 conftest$ac_exeext conftest.$ac_ext 13263fi 13264 13265 13266 CFLAGS="$xorg_testset_save_CFLAGS" 13267 13268 eval supported=\$$cacheid 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13270$as_echo "$supported" >&6; } 13271 if test "$supported" = "yes" ; then 13272 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13273 found="yes" 13274 fi 13275 fi 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291xorg_testset_save_CFLAGS="$CFLAGS" 13292 13293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13298 $as_echo_n "(cached) " >&6 13299else 13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13301/* end confdefs.h. */ 13302int i; 13303_ACEOF 13304if ac_fn_c_try_compile "$LINENO"; then : 13305 xorg_cv_cc_flag_unknown_warning_option=yes 13306else 13307 xorg_cv_cc_flag_unknown_warning_option=no 13308fi 13309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13310fi 13311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13314 CFLAGS="$xorg_testset_save_CFLAGS" 13315fi 13316 13317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13320 fi 13321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13325 $as_echo_n "(cached) " >&6 13326else 13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13328/* end confdefs.h. */ 13329int i; 13330_ACEOF 13331if ac_fn_c_try_compile "$LINENO"; then : 13332 xorg_cv_cc_flag_unused_command_line_argument=yes 13333else 13334 xorg_cv_cc_flag_unused_command_line_argument=no 13335fi 13336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13337fi 13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13341 CFLAGS="$xorg_testset_save_CFLAGS" 13342fi 13343 13344found="no" 13345 13346 if test $found = "no" ; then 13347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13349 fi 13350 13351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13353 fi 13354 13355 CFLAGS="$CFLAGS -Wcast-qual" 13356 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13358$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13359 cacheid=xorg_cv_cc_flag__Wcast_qual 13360 if eval \${$cacheid+:} false; then : 13361 $as_echo_n "(cached) " >&6 13362else 13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364/* end confdefs.h. */ 13365int i; 13366int 13367main () 13368{ 13369 13370 ; 13371 return 0; 13372} 13373_ACEOF 13374if ac_fn_c_try_link "$LINENO"; then : 13375 eval $cacheid=yes 13376else 13377 eval $cacheid=no 13378fi 13379rm -f core conftest.err conftest.$ac_objext \ 13380 conftest$ac_exeext conftest.$ac_ext 13381fi 13382 13383 13384 CFLAGS="$xorg_testset_save_CFLAGS" 13385 13386 eval supported=\$$cacheid 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13388$as_echo "$supported" >&6; } 13389 if test "$supported" = "yes" ; then 13390 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13391 found="yes" 13392 fi 13393 fi 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409xorg_testset_save_CFLAGS="$CFLAGS" 13410 13411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13416 $as_echo_n "(cached) " >&6 13417else 13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13419/* end confdefs.h. */ 13420int i; 13421_ACEOF 13422if ac_fn_c_try_compile "$LINENO"; then : 13423 xorg_cv_cc_flag_unknown_warning_option=yes 13424else 13425 xorg_cv_cc_flag_unknown_warning_option=no 13426fi 13427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13428fi 13429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13432 CFLAGS="$xorg_testset_save_CFLAGS" 13433fi 13434 13435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13438 fi 13439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13443 $as_echo_n "(cached) " >&6 13444else 13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13446/* end confdefs.h. */ 13447int i; 13448_ACEOF 13449if ac_fn_c_try_compile "$LINENO"; then : 13450 xorg_cv_cc_flag_unused_command_line_argument=yes 13451else 13452 xorg_cv_cc_flag_unused_command_line_argument=no 13453fi 13454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13455fi 13456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13459 CFLAGS="$xorg_testset_save_CFLAGS" 13460fi 13461 13462found="no" 13463 13464 if test $found = "no" ; then 13465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13467 fi 13468 13469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13471 fi 13472 13473 CFLAGS="$CFLAGS -Wmissing-noreturn" 13474 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13476$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13477 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13478 if eval \${$cacheid+:} false; then : 13479 $as_echo_n "(cached) " >&6 13480else 13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13482/* end confdefs.h. */ 13483int i; 13484int 13485main () 13486{ 13487 13488 ; 13489 return 0; 13490} 13491_ACEOF 13492if ac_fn_c_try_link "$LINENO"; then : 13493 eval $cacheid=yes 13494else 13495 eval $cacheid=no 13496fi 13497rm -f core conftest.err conftest.$ac_objext \ 13498 conftest$ac_exeext conftest.$ac_ext 13499fi 13500 13501 13502 CFLAGS="$xorg_testset_save_CFLAGS" 13503 13504 eval supported=\$$cacheid 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13506$as_echo "$supported" >&6; } 13507 if test "$supported" = "yes" ; then 13508 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13509 found="yes" 13510 fi 13511 fi 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527xorg_testset_save_CFLAGS="$CFLAGS" 13528 13529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13534 $as_echo_n "(cached) " >&6 13535else 13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13537/* end confdefs.h. */ 13538int i; 13539_ACEOF 13540if ac_fn_c_try_compile "$LINENO"; then : 13541 xorg_cv_cc_flag_unknown_warning_option=yes 13542else 13543 xorg_cv_cc_flag_unknown_warning_option=no 13544fi 13545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13546fi 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13550 CFLAGS="$xorg_testset_save_CFLAGS" 13551fi 13552 13553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13556 fi 13557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13561 $as_echo_n "(cached) " >&6 13562else 13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13564/* end confdefs.h. */ 13565int i; 13566_ACEOF 13567if ac_fn_c_try_compile "$LINENO"; then : 13568 xorg_cv_cc_flag_unused_command_line_argument=yes 13569else 13570 xorg_cv_cc_flag_unused_command_line_argument=no 13571fi 13572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13573fi 13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13577 CFLAGS="$xorg_testset_save_CFLAGS" 13578fi 13579 13580found="no" 13581 13582 if test $found = "no" ; then 13583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13585 fi 13586 13587 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13589 fi 13590 13591 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13592 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13594$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13595 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13596 if eval \${$cacheid+:} false; then : 13597 $as_echo_n "(cached) " >&6 13598else 13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13600/* end confdefs.h. */ 13601int i; 13602int 13603main () 13604{ 13605 13606 ; 13607 return 0; 13608} 13609_ACEOF 13610if ac_fn_c_try_link "$LINENO"; then : 13611 eval $cacheid=yes 13612else 13613 eval $cacheid=no 13614fi 13615rm -f core conftest.err conftest.$ac_objext \ 13616 conftest$ac_exeext conftest.$ac_ext 13617fi 13618 13619 13620 CFLAGS="$xorg_testset_save_CFLAGS" 13621 13622 eval supported=\$$cacheid 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13624$as_echo "$supported" >&6; } 13625 if test "$supported" = "yes" ; then 13626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13627 found="yes" 13628 fi 13629 fi 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645xorg_testset_save_CFLAGS="$CFLAGS" 13646 13647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13652 $as_echo_n "(cached) " >&6 13653else 13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13655/* end confdefs.h. */ 13656int i; 13657_ACEOF 13658if ac_fn_c_try_compile "$LINENO"; then : 13659 xorg_cv_cc_flag_unknown_warning_option=yes 13660else 13661 xorg_cv_cc_flag_unknown_warning_option=no 13662fi 13663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13664fi 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13668 CFLAGS="$xorg_testset_save_CFLAGS" 13669fi 13670 13671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13674 fi 13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13679 $as_echo_n "(cached) " >&6 13680else 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13682/* end confdefs.h. */ 13683int i; 13684_ACEOF 13685if ac_fn_c_try_compile "$LINENO"; then : 13686 xorg_cv_cc_flag_unused_command_line_argument=yes 13687else 13688 xorg_cv_cc_flag_unused_command_line_argument=no 13689fi 13690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13691fi 13692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13695 CFLAGS="$xorg_testset_save_CFLAGS" 13696fi 13697 13698found="no" 13699 13700 if test $found = "no" ; then 13701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13703 fi 13704 13705 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13707 fi 13708 13709 CFLAGS="$CFLAGS -Wredundant-decls" 13710 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13712$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13713 cacheid=xorg_cv_cc_flag__Wredundant_decls 13714 if eval \${$cacheid+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716else 13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13718/* end confdefs.h. */ 13719int i; 13720int 13721main () 13722{ 13723 13724 ; 13725 return 0; 13726} 13727_ACEOF 13728if ac_fn_c_try_link "$LINENO"; then : 13729 eval $cacheid=yes 13730else 13731 eval $cacheid=no 13732fi 13733rm -f core conftest.err conftest.$ac_objext \ 13734 conftest$ac_exeext conftest.$ac_ext 13735fi 13736 13737 13738 CFLAGS="$xorg_testset_save_CFLAGS" 13739 13740 eval supported=\$$cacheid 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13742$as_echo "$supported" >&6; } 13743 if test "$supported" = "yes" ; then 13744 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13745 found="yes" 13746 fi 13747 fi 13748 13749 13750 13751# These are currently disabled because they are noisy. They will be enabled 13752# in the future once the codebase is sufficiently modernized to silence 13753# them. For now, I don't want them to drown out the other warnings. 13754# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13755# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13756# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13757 13758# Turn some warnings into errors, so we don't accidently get successful builds 13759# when there are problems that should be fixed. 13760 13761if test "x$SELECTIVE_WERROR" = "xyes" ; then 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775xorg_testset_save_CFLAGS="$CFLAGS" 13776 13777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13782 $as_echo_n "(cached) " >&6 13783else 13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13785/* end confdefs.h. */ 13786int i; 13787_ACEOF 13788if ac_fn_c_try_compile "$LINENO"; then : 13789 xorg_cv_cc_flag_unknown_warning_option=yes 13790else 13791 xorg_cv_cc_flag_unknown_warning_option=no 13792fi 13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13794fi 13795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13798 CFLAGS="$xorg_testset_save_CFLAGS" 13799fi 13800 13801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13804 fi 13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13809 $as_echo_n "(cached) " >&6 13810else 13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13812/* end confdefs.h. */ 13813int i; 13814_ACEOF 13815if ac_fn_c_try_compile "$LINENO"; then : 13816 xorg_cv_cc_flag_unused_command_line_argument=yes 13817else 13818 xorg_cv_cc_flag_unused_command_line_argument=no 13819fi 13820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13821fi 13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13825 CFLAGS="$xorg_testset_save_CFLAGS" 13826fi 13827 13828found="no" 13829 13830 if test $found = "no" ; then 13831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13833 fi 13834 13835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13837 fi 13838 13839 CFLAGS="$CFLAGS -Werror=implicit" 13840 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13842$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13843 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13844 if eval \${$cacheid+:} false; then : 13845 $as_echo_n "(cached) " >&6 13846else 13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13848/* end confdefs.h. */ 13849int i; 13850int 13851main () 13852{ 13853 13854 ; 13855 return 0; 13856} 13857_ACEOF 13858if ac_fn_c_try_link "$LINENO"; then : 13859 eval $cacheid=yes 13860else 13861 eval $cacheid=no 13862fi 13863rm -f core conftest.err conftest.$ac_objext \ 13864 conftest$ac_exeext conftest.$ac_ext 13865fi 13866 13867 13868 CFLAGS="$xorg_testset_save_CFLAGS" 13869 13870 eval supported=\$$cacheid 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13872$as_echo "$supported" >&6; } 13873 if test "$supported" = "yes" ; then 13874 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13875 found="yes" 13876 fi 13877 fi 13878 13879 if test $found = "no" ; then 13880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13882 fi 13883 13884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13886 fi 13887 13888 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13889 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13891$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13892 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13893 if eval \${$cacheid+:} false; then : 13894 $as_echo_n "(cached) " >&6 13895else 13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13897/* end confdefs.h. */ 13898int i; 13899int 13900main () 13901{ 13902 13903 ; 13904 return 0; 13905} 13906_ACEOF 13907if ac_fn_c_try_link "$LINENO"; then : 13908 eval $cacheid=yes 13909else 13910 eval $cacheid=no 13911fi 13912rm -f core conftest.err conftest.$ac_objext \ 13913 conftest$ac_exeext conftest.$ac_ext 13914fi 13915 13916 13917 CFLAGS="$xorg_testset_save_CFLAGS" 13918 13919 eval supported=\$$cacheid 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13921$as_echo "$supported" >&6; } 13922 if test "$supported" = "yes" ; then 13923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13924 found="yes" 13925 fi 13926 fi 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942xorg_testset_save_CFLAGS="$CFLAGS" 13943 13944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13949 $as_echo_n "(cached) " >&6 13950else 13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13952/* end confdefs.h. */ 13953int i; 13954_ACEOF 13955if ac_fn_c_try_compile "$LINENO"; then : 13956 xorg_cv_cc_flag_unknown_warning_option=yes 13957else 13958 xorg_cv_cc_flag_unknown_warning_option=no 13959fi 13960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13961fi 13962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13965 CFLAGS="$xorg_testset_save_CFLAGS" 13966fi 13967 13968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13971 fi 13972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13976 $as_echo_n "(cached) " >&6 13977else 13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13979/* end confdefs.h. */ 13980int i; 13981_ACEOF 13982if ac_fn_c_try_compile "$LINENO"; then : 13983 xorg_cv_cc_flag_unused_command_line_argument=yes 13984else 13985 xorg_cv_cc_flag_unused_command_line_argument=no 13986fi 13987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13988fi 13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13992 CFLAGS="$xorg_testset_save_CFLAGS" 13993fi 13994 13995found="no" 13996 13997 if test $found = "no" ; then 13998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14000 fi 14001 14002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14004 fi 14005 14006 CFLAGS="$CFLAGS -Werror=nonnull" 14007 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14009$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14010 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14011 if eval \${$cacheid+:} false; then : 14012 $as_echo_n "(cached) " >&6 14013else 14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14015/* end confdefs.h. */ 14016int i; 14017int 14018main () 14019{ 14020 14021 ; 14022 return 0; 14023} 14024_ACEOF 14025if ac_fn_c_try_link "$LINENO"; then : 14026 eval $cacheid=yes 14027else 14028 eval $cacheid=no 14029fi 14030rm -f core conftest.err conftest.$ac_objext \ 14031 conftest$ac_exeext conftest.$ac_ext 14032fi 14033 14034 14035 CFLAGS="$xorg_testset_save_CFLAGS" 14036 14037 eval supported=\$$cacheid 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14039$as_echo "$supported" >&6; } 14040 if test "$supported" = "yes" ; then 14041 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14042 found="yes" 14043 fi 14044 fi 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060xorg_testset_save_CFLAGS="$CFLAGS" 14061 14062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14067 $as_echo_n "(cached) " >&6 14068else 14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14070/* end confdefs.h. */ 14071int i; 14072_ACEOF 14073if ac_fn_c_try_compile "$LINENO"; then : 14074 xorg_cv_cc_flag_unknown_warning_option=yes 14075else 14076 xorg_cv_cc_flag_unknown_warning_option=no 14077fi 14078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14079fi 14080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14083 CFLAGS="$xorg_testset_save_CFLAGS" 14084fi 14085 14086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14089 fi 14090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14094 $as_echo_n "(cached) " >&6 14095else 14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14097/* end confdefs.h. */ 14098int i; 14099_ACEOF 14100if ac_fn_c_try_compile "$LINENO"; then : 14101 xorg_cv_cc_flag_unused_command_line_argument=yes 14102else 14103 xorg_cv_cc_flag_unused_command_line_argument=no 14104fi 14105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14106fi 14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14110 CFLAGS="$xorg_testset_save_CFLAGS" 14111fi 14112 14113found="no" 14114 14115 if test $found = "no" ; then 14116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14118 fi 14119 14120 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14122 fi 14123 14124 CFLAGS="$CFLAGS -Werror=init-self" 14125 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14127$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14128 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14129 if eval \${$cacheid+:} false; then : 14130 $as_echo_n "(cached) " >&6 14131else 14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14133/* end confdefs.h. */ 14134int i; 14135int 14136main () 14137{ 14138 14139 ; 14140 return 0; 14141} 14142_ACEOF 14143if ac_fn_c_try_link "$LINENO"; then : 14144 eval $cacheid=yes 14145else 14146 eval $cacheid=no 14147fi 14148rm -f core conftest.err conftest.$ac_objext \ 14149 conftest$ac_exeext conftest.$ac_ext 14150fi 14151 14152 14153 CFLAGS="$xorg_testset_save_CFLAGS" 14154 14155 eval supported=\$$cacheid 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14157$as_echo "$supported" >&6; } 14158 if test "$supported" = "yes" ; then 14159 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14160 found="yes" 14161 fi 14162 fi 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178xorg_testset_save_CFLAGS="$CFLAGS" 14179 14180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14185 $as_echo_n "(cached) " >&6 14186else 14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14188/* end confdefs.h. */ 14189int i; 14190_ACEOF 14191if ac_fn_c_try_compile "$LINENO"; then : 14192 xorg_cv_cc_flag_unknown_warning_option=yes 14193else 14194 xorg_cv_cc_flag_unknown_warning_option=no 14195fi 14196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14197fi 14198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14201 CFLAGS="$xorg_testset_save_CFLAGS" 14202fi 14203 14204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14207 fi 14208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14212 $as_echo_n "(cached) " >&6 14213else 14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14215/* end confdefs.h. */ 14216int i; 14217_ACEOF 14218if ac_fn_c_try_compile "$LINENO"; then : 14219 xorg_cv_cc_flag_unused_command_line_argument=yes 14220else 14221 xorg_cv_cc_flag_unused_command_line_argument=no 14222fi 14223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14224fi 14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14228 CFLAGS="$xorg_testset_save_CFLAGS" 14229fi 14230 14231found="no" 14232 14233 if test $found = "no" ; then 14234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14236 fi 14237 14238 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14240 fi 14241 14242 CFLAGS="$CFLAGS -Werror=main" 14243 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14245$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14246 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14247 if eval \${$cacheid+:} false; then : 14248 $as_echo_n "(cached) " >&6 14249else 14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14251/* end confdefs.h. */ 14252int i; 14253int 14254main () 14255{ 14256 14257 ; 14258 return 0; 14259} 14260_ACEOF 14261if ac_fn_c_try_link "$LINENO"; then : 14262 eval $cacheid=yes 14263else 14264 eval $cacheid=no 14265fi 14266rm -f core conftest.err conftest.$ac_objext \ 14267 conftest$ac_exeext conftest.$ac_ext 14268fi 14269 14270 14271 CFLAGS="$xorg_testset_save_CFLAGS" 14272 14273 eval supported=\$$cacheid 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14275$as_echo "$supported" >&6; } 14276 if test "$supported" = "yes" ; then 14277 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14278 found="yes" 14279 fi 14280 fi 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296xorg_testset_save_CFLAGS="$CFLAGS" 14297 14298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14303 $as_echo_n "(cached) " >&6 14304else 14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306/* end confdefs.h. */ 14307int i; 14308_ACEOF 14309if ac_fn_c_try_compile "$LINENO"; then : 14310 xorg_cv_cc_flag_unknown_warning_option=yes 14311else 14312 xorg_cv_cc_flag_unknown_warning_option=no 14313fi 14314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14315fi 14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14319 CFLAGS="$xorg_testset_save_CFLAGS" 14320fi 14321 14322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14325 fi 14326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14330 $as_echo_n "(cached) " >&6 14331else 14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14333/* end confdefs.h. */ 14334int i; 14335_ACEOF 14336if ac_fn_c_try_compile "$LINENO"; then : 14337 xorg_cv_cc_flag_unused_command_line_argument=yes 14338else 14339 xorg_cv_cc_flag_unused_command_line_argument=no 14340fi 14341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14342fi 14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14346 CFLAGS="$xorg_testset_save_CFLAGS" 14347fi 14348 14349found="no" 14350 14351 if test $found = "no" ; then 14352 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14354 fi 14355 14356 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14358 fi 14359 14360 CFLAGS="$CFLAGS -Werror=missing-braces" 14361 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14363$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14364 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14365 if eval \${$cacheid+:} false; then : 14366 $as_echo_n "(cached) " >&6 14367else 14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14369/* end confdefs.h. */ 14370int i; 14371int 14372main () 14373{ 14374 14375 ; 14376 return 0; 14377} 14378_ACEOF 14379if ac_fn_c_try_link "$LINENO"; then : 14380 eval $cacheid=yes 14381else 14382 eval $cacheid=no 14383fi 14384rm -f core conftest.err conftest.$ac_objext \ 14385 conftest$ac_exeext conftest.$ac_ext 14386fi 14387 14388 14389 CFLAGS="$xorg_testset_save_CFLAGS" 14390 14391 eval supported=\$$cacheid 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14393$as_echo "$supported" >&6; } 14394 if test "$supported" = "yes" ; then 14395 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14396 found="yes" 14397 fi 14398 fi 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414xorg_testset_save_CFLAGS="$CFLAGS" 14415 14416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14421 $as_echo_n "(cached) " >&6 14422else 14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14424/* end confdefs.h. */ 14425int i; 14426_ACEOF 14427if ac_fn_c_try_compile "$LINENO"; then : 14428 xorg_cv_cc_flag_unknown_warning_option=yes 14429else 14430 xorg_cv_cc_flag_unknown_warning_option=no 14431fi 14432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14433fi 14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14437 CFLAGS="$xorg_testset_save_CFLAGS" 14438fi 14439 14440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14443 fi 14444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14448 $as_echo_n "(cached) " >&6 14449else 14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14451/* end confdefs.h. */ 14452int i; 14453_ACEOF 14454if ac_fn_c_try_compile "$LINENO"; then : 14455 xorg_cv_cc_flag_unused_command_line_argument=yes 14456else 14457 xorg_cv_cc_flag_unused_command_line_argument=no 14458fi 14459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14460fi 14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14464 CFLAGS="$xorg_testset_save_CFLAGS" 14465fi 14466 14467found="no" 14468 14469 if test $found = "no" ; then 14470 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14472 fi 14473 14474 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14476 fi 14477 14478 CFLAGS="$CFLAGS -Werror=sequence-point" 14479 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14481$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14482 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14483 if eval \${$cacheid+:} false; then : 14484 $as_echo_n "(cached) " >&6 14485else 14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14487/* end confdefs.h. */ 14488int i; 14489int 14490main () 14491{ 14492 14493 ; 14494 return 0; 14495} 14496_ACEOF 14497if ac_fn_c_try_link "$LINENO"; then : 14498 eval $cacheid=yes 14499else 14500 eval $cacheid=no 14501fi 14502rm -f core conftest.err conftest.$ac_objext \ 14503 conftest$ac_exeext conftest.$ac_ext 14504fi 14505 14506 14507 CFLAGS="$xorg_testset_save_CFLAGS" 14508 14509 eval supported=\$$cacheid 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14511$as_echo "$supported" >&6; } 14512 if test "$supported" = "yes" ; then 14513 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14514 found="yes" 14515 fi 14516 fi 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532xorg_testset_save_CFLAGS="$CFLAGS" 14533 14534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14539 $as_echo_n "(cached) " >&6 14540else 14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14542/* end confdefs.h. */ 14543int i; 14544_ACEOF 14545if ac_fn_c_try_compile "$LINENO"; then : 14546 xorg_cv_cc_flag_unknown_warning_option=yes 14547else 14548 xorg_cv_cc_flag_unknown_warning_option=no 14549fi 14550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14551fi 14552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14555 CFLAGS="$xorg_testset_save_CFLAGS" 14556fi 14557 14558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14561 fi 14562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14566 $as_echo_n "(cached) " >&6 14567else 14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14569/* end confdefs.h. */ 14570int i; 14571_ACEOF 14572if ac_fn_c_try_compile "$LINENO"; then : 14573 xorg_cv_cc_flag_unused_command_line_argument=yes 14574else 14575 xorg_cv_cc_flag_unused_command_line_argument=no 14576fi 14577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14578fi 14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14582 CFLAGS="$xorg_testset_save_CFLAGS" 14583fi 14584 14585found="no" 14586 14587 if test $found = "no" ; then 14588 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14590 fi 14591 14592 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14594 fi 14595 14596 CFLAGS="$CFLAGS -Werror=return-type" 14597 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14599$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14600 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14601 if eval \${$cacheid+:} false; then : 14602 $as_echo_n "(cached) " >&6 14603else 14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14605/* end confdefs.h. */ 14606int i; 14607int 14608main () 14609{ 14610 14611 ; 14612 return 0; 14613} 14614_ACEOF 14615if ac_fn_c_try_link "$LINENO"; then : 14616 eval $cacheid=yes 14617else 14618 eval $cacheid=no 14619fi 14620rm -f core conftest.err conftest.$ac_objext \ 14621 conftest$ac_exeext conftest.$ac_ext 14622fi 14623 14624 14625 CFLAGS="$xorg_testset_save_CFLAGS" 14626 14627 eval supported=\$$cacheid 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14629$as_echo "$supported" >&6; } 14630 if test "$supported" = "yes" ; then 14631 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14632 found="yes" 14633 fi 14634 fi 14635 14636 if test $found = "no" ; then 14637 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14639 fi 14640 14641 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14643 fi 14644 14645 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14646 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14648$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14649 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14650 if eval \${$cacheid+:} false; then : 14651 $as_echo_n "(cached) " >&6 14652else 14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14654/* end confdefs.h. */ 14655int i; 14656int 14657main () 14658{ 14659 14660 ; 14661 return 0; 14662} 14663_ACEOF 14664if ac_fn_c_try_link "$LINENO"; then : 14665 eval $cacheid=yes 14666else 14667 eval $cacheid=no 14668fi 14669rm -f core conftest.err conftest.$ac_objext \ 14670 conftest$ac_exeext conftest.$ac_ext 14671fi 14672 14673 14674 CFLAGS="$xorg_testset_save_CFLAGS" 14675 14676 eval supported=\$$cacheid 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14678$as_echo "$supported" >&6; } 14679 if test "$supported" = "yes" ; then 14680 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14681 found="yes" 14682 fi 14683 fi 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699xorg_testset_save_CFLAGS="$CFLAGS" 14700 14701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14709/* end confdefs.h. */ 14710int i; 14711_ACEOF 14712if ac_fn_c_try_compile "$LINENO"; then : 14713 xorg_cv_cc_flag_unknown_warning_option=yes 14714else 14715 xorg_cv_cc_flag_unknown_warning_option=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14718fi 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14722 CFLAGS="$xorg_testset_save_CFLAGS" 14723fi 14724 14725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14728 fi 14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736/* end confdefs.h. */ 14737int i; 14738_ACEOF 14739if ac_fn_c_try_compile "$LINENO"; then : 14740 xorg_cv_cc_flag_unused_command_line_argument=yes 14741else 14742 xorg_cv_cc_flag_unused_command_line_argument=no 14743fi 14744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14745fi 14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14749 CFLAGS="$xorg_testset_save_CFLAGS" 14750fi 14751 14752found="no" 14753 14754 if test $found = "no" ; then 14755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14757 fi 14758 14759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14761 fi 14762 14763 CFLAGS="$CFLAGS -Werror=trigraphs" 14764 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14766$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14767 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14768 if eval \${$cacheid+:} false; then : 14769 $as_echo_n "(cached) " >&6 14770else 14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14772/* end confdefs.h. */ 14773int i; 14774int 14775main () 14776{ 14777 14778 ; 14779 return 0; 14780} 14781_ACEOF 14782if ac_fn_c_try_link "$LINENO"; then : 14783 eval $cacheid=yes 14784else 14785 eval $cacheid=no 14786fi 14787rm -f core conftest.err conftest.$ac_objext \ 14788 conftest$ac_exeext conftest.$ac_ext 14789fi 14790 14791 14792 CFLAGS="$xorg_testset_save_CFLAGS" 14793 14794 eval supported=\$$cacheid 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14796$as_echo "$supported" >&6; } 14797 if test "$supported" = "yes" ; then 14798 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14799 found="yes" 14800 fi 14801 fi 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817xorg_testset_save_CFLAGS="$CFLAGS" 14818 14819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14824 $as_echo_n "(cached) " >&6 14825else 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827/* end confdefs.h. */ 14828int i; 14829_ACEOF 14830if ac_fn_c_try_compile "$LINENO"; then : 14831 xorg_cv_cc_flag_unknown_warning_option=yes 14832else 14833 xorg_cv_cc_flag_unknown_warning_option=no 14834fi 14835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14836fi 14837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14840 CFLAGS="$xorg_testset_save_CFLAGS" 14841fi 14842 14843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14846 fi 14847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14851 $as_echo_n "(cached) " >&6 14852else 14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14854/* end confdefs.h. */ 14855int i; 14856_ACEOF 14857if ac_fn_c_try_compile "$LINENO"; then : 14858 xorg_cv_cc_flag_unused_command_line_argument=yes 14859else 14860 xorg_cv_cc_flag_unused_command_line_argument=no 14861fi 14862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14863fi 14864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14867 CFLAGS="$xorg_testset_save_CFLAGS" 14868fi 14869 14870found="no" 14871 14872 if test $found = "no" ; then 14873 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14875 fi 14876 14877 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14879 fi 14880 14881 CFLAGS="$CFLAGS -Werror=array-bounds" 14882 14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14884$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14885 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14886 if eval \${$cacheid+:} false; then : 14887 $as_echo_n "(cached) " >&6 14888else 14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14890/* end confdefs.h. */ 14891int i; 14892int 14893main () 14894{ 14895 14896 ; 14897 return 0; 14898} 14899_ACEOF 14900if ac_fn_c_try_link "$LINENO"; then : 14901 eval $cacheid=yes 14902else 14903 eval $cacheid=no 14904fi 14905rm -f core conftest.err conftest.$ac_objext \ 14906 conftest$ac_exeext conftest.$ac_ext 14907fi 14908 14909 14910 CFLAGS="$xorg_testset_save_CFLAGS" 14911 14912 eval supported=\$$cacheid 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14914$as_echo "$supported" >&6; } 14915 if test "$supported" = "yes" ; then 14916 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14917 found="yes" 14918 fi 14919 fi 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935xorg_testset_save_CFLAGS="$CFLAGS" 14936 14937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14942 $as_echo_n "(cached) " >&6 14943else 14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945/* end confdefs.h. */ 14946int i; 14947_ACEOF 14948if ac_fn_c_try_compile "$LINENO"; then : 14949 xorg_cv_cc_flag_unknown_warning_option=yes 14950else 14951 xorg_cv_cc_flag_unknown_warning_option=no 14952fi 14953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14954fi 14955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14958 CFLAGS="$xorg_testset_save_CFLAGS" 14959fi 14960 14961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14964 fi 14965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14969 $as_echo_n "(cached) " >&6 14970else 14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14972/* end confdefs.h. */ 14973int i; 14974_ACEOF 14975if ac_fn_c_try_compile "$LINENO"; then : 14976 xorg_cv_cc_flag_unused_command_line_argument=yes 14977else 14978 xorg_cv_cc_flag_unused_command_line_argument=no 14979fi 14980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14981fi 14982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14985 CFLAGS="$xorg_testset_save_CFLAGS" 14986fi 14987 14988found="no" 14989 14990 if test $found = "no" ; then 14991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14993 fi 14994 14995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14997 fi 14998 14999 CFLAGS="$CFLAGS -Werror=write-strings" 15000 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15002$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15003 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15004 if eval \${$cacheid+:} false; then : 15005 $as_echo_n "(cached) " >&6 15006else 15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15008/* end confdefs.h. */ 15009int i; 15010int 15011main () 15012{ 15013 15014 ; 15015 return 0; 15016} 15017_ACEOF 15018if ac_fn_c_try_link "$LINENO"; then : 15019 eval $cacheid=yes 15020else 15021 eval $cacheid=no 15022fi 15023rm -f core conftest.err conftest.$ac_objext \ 15024 conftest$ac_exeext conftest.$ac_ext 15025fi 15026 15027 15028 CFLAGS="$xorg_testset_save_CFLAGS" 15029 15030 eval supported=\$$cacheid 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15032$as_echo "$supported" >&6; } 15033 if test "$supported" = "yes" ; then 15034 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15035 found="yes" 15036 fi 15037 fi 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053xorg_testset_save_CFLAGS="$CFLAGS" 15054 15055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15060 $as_echo_n "(cached) " >&6 15061else 15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15063/* end confdefs.h. */ 15064int i; 15065_ACEOF 15066if ac_fn_c_try_compile "$LINENO"; then : 15067 xorg_cv_cc_flag_unknown_warning_option=yes 15068else 15069 xorg_cv_cc_flag_unknown_warning_option=no 15070fi 15071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15072fi 15073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15076 CFLAGS="$xorg_testset_save_CFLAGS" 15077fi 15078 15079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15082 fi 15083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15087 $as_echo_n "(cached) " >&6 15088else 15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15090/* end confdefs.h. */ 15091int i; 15092_ACEOF 15093if ac_fn_c_try_compile "$LINENO"; then : 15094 xorg_cv_cc_flag_unused_command_line_argument=yes 15095else 15096 xorg_cv_cc_flag_unused_command_line_argument=no 15097fi 15098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15099fi 15100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15103 CFLAGS="$xorg_testset_save_CFLAGS" 15104fi 15105 15106found="no" 15107 15108 if test $found = "no" ; then 15109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15111 fi 15112 15113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15115 fi 15116 15117 CFLAGS="$CFLAGS -Werror=address" 15118 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15120$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15121 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15122 if eval \${$cacheid+:} false; then : 15123 $as_echo_n "(cached) " >&6 15124else 15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15126/* end confdefs.h. */ 15127int i; 15128int 15129main () 15130{ 15131 15132 ; 15133 return 0; 15134} 15135_ACEOF 15136if ac_fn_c_try_link "$LINENO"; then : 15137 eval $cacheid=yes 15138else 15139 eval $cacheid=no 15140fi 15141rm -f core conftest.err conftest.$ac_objext \ 15142 conftest$ac_exeext conftest.$ac_ext 15143fi 15144 15145 15146 CFLAGS="$xorg_testset_save_CFLAGS" 15147 15148 eval supported=\$$cacheid 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15150$as_echo "$supported" >&6; } 15151 if test "$supported" = "yes" ; then 15152 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15153 found="yes" 15154 fi 15155 fi 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171xorg_testset_save_CFLAGS="$CFLAGS" 15172 15173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15178 $as_echo_n "(cached) " >&6 15179else 15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15181/* end confdefs.h. */ 15182int i; 15183_ACEOF 15184if ac_fn_c_try_compile "$LINENO"; then : 15185 xorg_cv_cc_flag_unknown_warning_option=yes 15186else 15187 xorg_cv_cc_flag_unknown_warning_option=no 15188fi 15189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15190fi 15191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15194 CFLAGS="$xorg_testset_save_CFLAGS" 15195fi 15196 15197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15200 fi 15201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15205 $as_echo_n "(cached) " >&6 15206else 15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15208/* end confdefs.h. */ 15209int i; 15210_ACEOF 15211if ac_fn_c_try_compile "$LINENO"; then : 15212 xorg_cv_cc_flag_unused_command_line_argument=yes 15213else 15214 xorg_cv_cc_flag_unused_command_line_argument=no 15215fi 15216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15217fi 15218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15221 CFLAGS="$xorg_testset_save_CFLAGS" 15222fi 15223 15224found="no" 15225 15226 if test $found = "no" ; then 15227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15229 fi 15230 15231 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15233 fi 15234 15235 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15236 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15238$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15239 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15240 if eval \${$cacheid+:} false; then : 15241 $as_echo_n "(cached) " >&6 15242else 15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15244/* end confdefs.h. */ 15245int i; 15246int 15247main () 15248{ 15249 15250 ; 15251 return 0; 15252} 15253_ACEOF 15254if ac_fn_c_try_link "$LINENO"; then : 15255 eval $cacheid=yes 15256else 15257 eval $cacheid=no 15258fi 15259rm -f core conftest.err conftest.$ac_objext \ 15260 conftest$ac_exeext conftest.$ac_ext 15261fi 15262 15263 15264 CFLAGS="$xorg_testset_save_CFLAGS" 15265 15266 eval supported=\$$cacheid 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15268$as_echo "$supported" >&6; } 15269 if test "$supported" = "yes" ; then 15270 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15271 found="yes" 15272 fi 15273 fi 15274 15275 if test $found = "no" ; then 15276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15278 fi 15279 15280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15282 fi 15283 15284 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15285 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15287$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15288 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15289 if eval \${$cacheid+:} false; then : 15290 $as_echo_n "(cached) " >&6 15291else 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293/* end confdefs.h. */ 15294int i; 15295int 15296main () 15297{ 15298 15299 ; 15300 return 0; 15301} 15302_ACEOF 15303if ac_fn_c_try_link "$LINENO"; then : 15304 eval $cacheid=yes 15305else 15306 eval $cacheid=no 15307fi 15308rm -f core conftest.err conftest.$ac_objext \ 15309 conftest$ac_exeext conftest.$ac_ext 15310fi 15311 15312 15313 CFLAGS="$xorg_testset_save_CFLAGS" 15314 15315 eval supported=\$$cacheid 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15317$as_echo "$supported" >&6; } 15318 if test "$supported" = "yes" ; then 15319 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15320 found="yes" 15321 fi 15322 fi 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338xorg_testset_save_CFLAGS="$CFLAGS" 15339 15340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15345 $as_echo_n "(cached) " >&6 15346else 15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348/* end confdefs.h. */ 15349int i; 15350_ACEOF 15351if ac_fn_c_try_compile "$LINENO"; then : 15352 xorg_cv_cc_flag_unknown_warning_option=yes 15353else 15354 xorg_cv_cc_flag_unknown_warning_option=no 15355fi 15356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15357fi 15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15361 CFLAGS="$xorg_testset_save_CFLAGS" 15362fi 15363 15364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15367 fi 15368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15372 $as_echo_n "(cached) " >&6 15373else 15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15375/* end confdefs.h. */ 15376int i; 15377_ACEOF 15378if ac_fn_c_try_compile "$LINENO"; then : 15379 xorg_cv_cc_flag_unused_command_line_argument=yes 15380else 15381 xorg_cv_cc_flag_unused_command_line_argument=no 15382fi 15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15384fi 15385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15388 CFLAGS="$xorg_testset_save_CFLAGS" 15389fi 15390 15391found="no" 15392 15393 if test $found = "no" ; then 15394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15396 fi 15397 15398 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15400 fi 15401 15402 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15403 15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15405$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15406 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15407 if eval \${$cacheid+:} false; then : 15408 $as_echo_n "(cached) " >&6 15409else 15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15411/* end confdefs.h. */ 15412int i; 15413int 15414main () 15415{ 15416 15417 ; 15418 return 0; 15419} 15420_ACEOF 15421if ac_fn_c_try_link "$LINENO"; then : 15422 eval $cacheid=yes 15423else 15424 eval $cacheid=no 15425fi 15426rm -f core conftest.err conftest.$ac_objext \ 15427 conftest$ac_exeext conftest.$ac_ext 15428fi 15429 15430 15431 CFLAGS="$xorg_testset_save_CFLAGS" 15432 15433 eval supported=\$$cacheid 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15435$as_echo "$supported" >&6; } 15436 if test "$supported" = "yes" ; then 15437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15438 found="yes" 15439 fi 15440 fi 15441 15442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15443else 15444{ $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 15445$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;} 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459xorg_testset_save_CFLAGS="$CFLAGS" 15460 15461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15466 $as_echo_n "(cached) " >&6 15467else 15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15469/* end confdefs.h. */ 15470int i; 15471_ACEOF 15472if ac_fn_c_try_compile "$LINENO"; then : 15473 xorg_cv_cc_flag_unknown_warning_option=yes 15474else 15475 xorg_cv_cc_flag_unknown_warning_option=no 15476fi 15477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15478fi 15479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15482 CFLAGS="$xorg_testset_save_CFLAGS" 15483fi 15484 15485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15488 fi 15489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15493 $as_echo_n "(cached) " >&6 15494else 15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15496/* end confdefs.h. */ 15497int i; 15498_ACEOF 15499if ac_fn_c_try_compile "$LINENO"; then : 15500 xorg_cv_cc_flag_unused_command_line_argument=yes 15501else 15502 xorg_cv_cc_flag_unused_command_line_argument=no 15503fi 15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15505fi 15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15509 CFLAGS="$xorg_testset_save_CFLAGS" 15510fi 15511 15512found="no" 15513 15514 if test $found = "no" ; then 15515 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15517 fi 15518 15519 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15521 fi 15522 15523 CFLAGS="$CFLAGS -Wimplicit" 15524 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15526$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15527 cacheid=xorg_cv_cc_flag__Wimplicit 15528 if eval \${$cacheid+:} false; then : 15529 $as_echo_n "(cached) " >&6 15530else 15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15532/* end confdefs.h. */ 15533int i; 15534int 15535main () 15536{ 15537 15538 ; 15539 return 0; 15540} 15541_ACEOF 15542if ac_fn_c_try_link "$LINENO"; then : 15543 eval $cacheid=yes 15544else 15545 eval $cacheid=no 15546fi 15547rm -f core conftest.err conftest.$ac_objext \ 15548 conftest$ac_exeext conftest.$ac_ext 15549fi 15550 15551 15552 CFLAGS="$xorg_testset_save_CFLAGS" 15553 15554 eval supported=\$$cacheid 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15556$as_echo "$supported" >&6; } 15557 if test "$supported" = "yes" ; then 15558 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15559 found="yes" 15560 fi 15561 fi 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577xorg_testset_save_CFLAGS="$CFLAGS" 15578 15579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15584 $as_echo_n "(cached) " >&6 15585else 15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15587/* end confdefs.h. */ 15588int i; 15589_ACEOF 15590if ac_fn_c_try_compile "$LINENO"; then : 15591 xorg_cv_cc_flag_unknown_warning_option=yes 15592else 15593 xorg_cv_cc_flag_unknown_warning_option=no 15594fi 15595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15596fi 15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15600 CFLAGS="$xorg_testset_save_CFLAGS" 15601fi 15602 15603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15606 fi 15607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15611 $as_echo_n "(cached) " >&6 15612else 15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15614/* end confdefs.h. */ 15615int i; 15616_ACEOF 15617if ac_fn_c_try_compile "$LINENO"; then : 15618 xorg_cv_cc_flag_unused_command_line_argument=yes 15619else 15620 xorg_cv_cc_flag_unused_command_line_argument=no 15621fi 15622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15623fi 15624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15627 CFLAGS="$xorg_testset_save_CFLAGS" 15628fi 15629 15630found="no" 15631 15632 if test $found = "no" ; then 15633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15635 fi 15636 15637 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15639 fi 15640 15641 CFLAGS="$CFLAGS -Wnonnull" 15642 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15644$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15645 cacheid=xorg_cv_cc_flag__Wnonnull 15646 if eval \${$cacheid+:} false; then : 15647 $as_echo_n "(cached) " >&6 15648else 15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650/* end confdefs.h. */ 15651int i; 15652int 15653main () 15654{ 15655 15656 ; 15657 return 0; 15658} 15659_ACEOF 15660if ac_fn_c_try_link "$LINENO"; then : 15661 eval $cacheid=yes 15662else 15663 eval $cacheid=no 15664fi 15665rm -f core conftest.err conftest.$ac_objext \ 15666 conftest$ac_exeext conftest.$ac_ext 15667fi 15668 15669 15670 CFLAGS="$xorg_testset_save_CFLAGS" 15671 15672 eval supported=\$$cacheid 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15674$as_echo "$supported" >&6; } 15675 if test "$supported" = "yes" ; then 15676 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15677 found="yes" 15678 fi 15679 fi 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695xorg_testset_save_CFLAGS="$CFLAGS" 15696 15697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15702 $as_echo_n "(cached) " >&6 15703else 15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15705/* end confdefs.h. */ 15706int i; 15707_ACEOF 15708if ac_fn_c_try_compile "$LINENO"; then : 15709 xorg_cv_cc_flag_unknown_warning_option=yes 15710else 15711 xorg_cv_cc_flag_unknown_warning_option=no 15712fi 15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15714fi 15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15718 CFLAGS="$xorg_testset_save_CFLAGS" 15719fi 15720 15721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15724 fi 15725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15729 $as_echo_n "(cached) " >&6 15730else 15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15732/* end confdefs.h. */ 15733int i; 15734_ACEOF 15735if ac_fn_c_try_compile "$LINENO"; then : 15736 xorg_cv_cc_flag_unused_command_line_argument=yes 15737else 15738 xorg_cv_cc_flag_unused_command_line_argument=no 15739fi 15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15741fi 15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15745 CFLAGS="$xorg_testset_save_CFLAGS" 15746fi 15747 15748found="no" 15749 15750 if test $found = "no" ; then 15751 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15753 fi 15754 15755 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15757 fi 15758 15759 CFLAGS="$CFLAGS -Winit-self" 15760 15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15762$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15763 cacheid=xorg_cv_cc_flag__Winit_self 15764 if eval \${$cacheid+:} false; then : 15765 $as_echo_n "(cached) " >&6 15766else 15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15768/* end confdefs.h. */ 15769int i; 15770int 15771main () 15772{ 15773 15774 ; 15775 return 0; 15776} 15777_ACEOF 15778if ac_fn_c_try_link "$LINENO"; then : 15779 eval $cacheid=yes 15780else 15781 eval $cacheid=no 15782fi 15783rm -f core conftest.err conftest.$ac_objext \ 15784 conftest$ac_exeext conftest.$ac_ext 15785fi 15786 15787 15788 CFLAGS="$xorg_testset_save_CFLAGS" 15789 15790 eval supported=\$$cacheid 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15792$as_echo "$supported" >&6; } 15793 if test "$supported" = "yes" ; then 15794 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15795 found="yes" 15796 fi 15797 fi 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813xorg_testset_save_CFLAGS="$CFLAGS" 15814 15815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15820 $as_echo_n "(cached) " >&6 15821else 15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15823/* end confdefs.h. */ 15824int i; 15825_ACEOF 15826if ac_fn_c_try_compile "$LINENO"; then : 15827 xorg_cv_cc_flag_unknown_warning_option=yes 15828else 15829 xorg_cv_cc_flag_unknown_warning_option=no 15830fi 15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15832fi 15833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15836 CFLAGS="$xorg_testset_save_CFLAGS" 15837fi 15838 15839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15842 fi 15843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15847 $as_echo_n "(cached) " >&6 15848else 15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15850/* end confdefs.h. */ 15851int i; 15852_ACEOF 15853if ac_fn_c_try_compile "$LINENO"; then : 15854 xorg_cv_cc_flag_unused_command_line_argument=yes 15855else 15856 xorg_cv_cc_flag_unused_command_line_argument=no 15857fi 15858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15859fi 15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15863 CFLAGS="$xorg_testset_save_CFLAGS" 15864fi 15865 15866found="no" 15867 15868 if test $found = "no" ; then 15869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15871 fi 15872 15873 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15875 fi 15876 15877 CFLAGS="$CFLAGS -Wmain" 15878 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15880$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15881 cacheid=xorg_cv_cc_flag__Wmain 15882 if eval \${$cacheid+:} false; then : 15883 $as_echo_n "(cached) " >&6 15884else 15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15886/* end confdefs.h. */ 15887int i; 15888int 15889main () 15890{ 15891 15892 ; 15893 return 0; 15894} 15895_ACEOF 15896if ac_fn_c_try_link "$LINENO"; then : 15897 eval $cacheid=yes 15898else 15899 eval $cacheid=no 15900fi 15901rm -f core conftest.err conftest.$ac_objext \ 15902 conftest$ac_exeext conftest.$ac_ext 15903fi 15904 15905 15906 CFLAGS="$xorg_testset_save_CFLAGS" 15907 15908 eval supported=\$$cacheid 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15910$as_echo "$supported" >&6; } 15911 if test "$supported" = "yes" ; then 15912 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15913 found="yes" 15914 fi 15915 fi 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931xorg_testset_save_CFLAGS="$CFLAGS" 15932 15933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15938 $as_echo_n "(cached) " >&6 15939else 15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15941/* end confdefs.h. */ 15942int i; 15943_ACEOF 15944if ac_fn_c_try_compile "$LINENO"; then : 15945 xorg_cv_cc_flag_unknown_warning_option=yes 15946else 15947 xorg_cv_cc_flag_unknown_warning_option=no 15948fi 15949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15950fi 15951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15954 CFLAGS="$xorg_testset_save_CFLAGS" 15955fi 15956 15957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15960 fi 15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15965 $as_echo_n "(cached) " >&6 15966else 15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968/* end confdefs.h. */ 15969int i; 15970_ACEOF 15971if ac_fn_c_try_compile "$LINENO"; then : 15972 xorg_cv_cc_flag_unused_command_line_argument=yes 15973else 15974 xorg_cv_cc_flag_unused_command_line_argument=no 15975fi 15976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15977fi 15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15981 CFLAGS="$xorg_testset_save_CFLAGS" 15982fi 15983 15984found="no" 15985 15986 if test $found = "no" ; then 15987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15989 fi 15990 15991 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15993 fi 15994 15995 CFLAGS="$CFLAGS -Wmissing-braces" 15996 15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 15998$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 15999 cacheid=xorg_cv_cc_flag__Wmissing_braces 16000 if eval \${$cacheid+:} false; then : 16001 $as_echo_n "(cached) " >&6 16002else 16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16004/* end confdefs.h. */ 16005int i; 16006int 16007main () 16008{ 16009 16010 ; 16011 return 0; 16012} 16013_ACEOF 16014if ac_fn_c_try_link "$LINENO"; then : 16015 eval $cacheid=yes 16016else 16017 eval $cacheid=no 16018fi 16019rm -f core conftest.err conftest.$ac_objext \ 16020 conftest$ac_exeext conftest.$ac_ext 16021fi 16022 16023 16024 CFLAGS="$xorg_testset_save_CFLAGS" 16025 16026 eval supported=\$$cacheid 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16028$as_echo "$supported" >&6; } 16029 if test "$supported" = "yes" ; then 16030 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16031 found="yes" 16032 fi 16033 fi 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049xorg_testset_save_CFLAGS="$CFLAGS" 16050 16051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16056 $as_echo_n "(cached) " >&6 16057else 16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16059/* end confdefs.h. */ 16060int i; 16061_ACEOF 16062if ac_fn_c_try_compile "$LINENO"; then : 16063 xorg_cv_cc_flag_unknown_warning_option=yes 16064else 16065 xorg_cv_cc_flag_unknown_warning_option=no 16066fi 16067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16068fi 16069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16072 CFLAGS="$xorg_testset_save_CFLAGS" 16073fi 16074 16075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16078 fi 16079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16083 $as_echo_n "(cached) " >&6 16084else 16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087int i; 16088_ACEOF 16089if ac_fn_c_try_compile "$LINENO"; then : 16090 xorg_cv_cc_flag_unused_command_line_argument=yes 16091else 16092 xorg_cv_cc_flag_unused_command_line_argument=no 16093fi 16094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16095fi 16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16099 CFLAGS="$xorg_testset_save_CFLAGS" 16100fi 16101 16102found="no" 16103 16104 if test $found = "no" ; then 16105 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16107 fi 16108 16109 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16111 fi 16112 16113 CFLAGS="$CFLAGS -Wsequence-point" 16114 16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16116$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16117 cacheid=xorg_cv_cc_flag__Wsequence_point 16118 if eval \${$cacheid+:} false; then : 16119 $as_echo_n "(cached) " >&6 16120else 16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16122/* end confdefs.h. */ 16123int i; 16124int 16125main () 16126{ 16127 16128 ; 16129 return 0; 16130} 16131_ACEOF 16132if ac_fn_c_try_link "$LINENO"; then : 16133 eval $cacheid=yes 16134else 16135 eval $cacheid=no 16136fi 16137rm -f core conftest.err conftest.$ac_objext \ 16138 conftest$ac_exeext conftest.$ac_ext 16139fi 16140 16141 16142 CFLAGS="$xorg_testset_save_CFLAGS" 16143 16144 eval supported=\$$cacheid 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16146$as_echo "$supported" >&6; } 16147 if test "$supported" = "yes" ; then 16148 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16149 found="yes" 16150 fi 16151 fi 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167xorg_testset_save_CFLAGS="$CFLAGS" 16168 16169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16174 $as_echo_n "(cached) " >&6 16175else 16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16177/* end confdefs.h. */ 16178int i; 16179_ACEOF 16180if ac_fn_c_try_compile "$LINENO"; then : 16181 xorg_cv_cc_flag_unknown_warning_option=yes 16182else 16183 xorg_cv_cc_flag_unknown_warning_option=no 16184fi 16185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16186fi 16187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16190 CFLAGS="$xorg_testset_save_CFLAGS" 16191fi 16192 16193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 fi 16197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16201 $as_echo_n "(cached) " >&6 16202else 16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16204/* end confdefs.h. */ 16205int i; 16206_ACEOF 16207if ac_fn_c_try_compile "$LINENO"; then : 16208 xorg_cv_cc_flag_unused_command_line_argument=yes 16209else 16210 xorg_cv_cc_flag_unused_command_line_argument=no 16211fi 16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16213fi 16214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16217 CFLAGS="$xorg_testset_save_CFLAGS" 16218fi 16219 16220found="no" 16221 16222 if test $found = "no" ; then 16223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16225 fi 16226 16227 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16229 fi 16230 16231 CFLAGS="$CFLAGS -Wreturn-type" 16232 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16234$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16235 cacheid=xorg_cv_cc_flag__Wreturn_type 16236 if eval \${$cacheid+:} false; then : 16237 $as_echo_n "(cached) " >&6 16238else 16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16240/* end confdefs.h. */ 16241int i; 16242int 16243main () 16244{ 16245 16246 ; 16247 return 0; 16248} 16249_ACEOF 16250if ac_fn_c_try_link "$LINENO"; then : 16251 eval $cacheid=yes 16252else 16253 eval $cacheid=no 16254fi 16255rm -f core conftest.err conftest.$ac_objext \ 16256 conftest$ac_exeext conftest.$ac_ext 16257fi 16258 16259 16260 CFLAGS="$xorg_testset_save_CFLAGS" 16261 16262 eval supported=\$$cacheid 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16264$as_echo "$supported" >&6; } 16265 if test "$supported" = "yes" ; then 16266 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16267 found="yes" 16268 fi 16269 fi 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285xorg_testset_save_CFLAGS="$CFLAGS" 16286 16287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16292 $as_echo_n "(cached) " >&6 16293else 16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16295/* end confdefs.h. */ 16296int i; 16297_ACEOF 16298if ac_fn_c_try_compile "$LINENO"; then : 16299 xorg_cv_cc_flag_unknown_warning_option=yes 16300else 16301 xorg_cv_cc_flag_unknown_warning_option=no 16302fi 16303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16304fi 16305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16308 CFLAGS="$xorg_testset_save_CFLAGS" 16309fi 16310 16311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16314 fi 16315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16319 $as_echo_n "(cached) " >&6 16320else 16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16322/* end confdefs.h. */ 16323int i; 16324_ACEOF 16325if ac_fn_c_try_compile "$LINENO"; then : 16326 xorg_cv_cc_flag_unused_command_line_argument=yes 16327else 16328 xorg_cv_cc_flag_unused_command_line_argument=no 16329fi 16330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16331fi 16332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16335 CFLAGS="$xorg_testset_save_CFLAGS" 16336fi 16337 16338found="no" 16339 16340 if test $found = "no" ; then 16341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16343 fi 16344 16345 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16347 fi 16348 16349 CFLAGS="$CFLAGS -Wtrigraphs" 16350 16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16352$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16353 cacheid=xorg_cv_cc_flag__Wtrigraphs 16354 if eval \${$cacheid+:} false; then : 16355 $as_echo_n "(cached) " >&6 16356else 16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16358/* end confdefs.h. */ 16359int i; 16360int 16361main () 16362{ 16363 16364 ; 16365 return 0; 16366} 16367_ACEOF 16368if ac_fn_c_try_link "$LINENO"; then : 16369 eval $cacheid=yes 16370else 16371 eval $cacheid=no 16372fi 16373rm -f core conftest.err conftest.$ac_objext \ 16374 conftest$ac_exeext conftest.$ac_ext 16375fi 16376 16377 16378 CFLAGS="$xorg_testset_save_CFLAGS" 16379 16380 eval supported=\$$cacheid 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16382$as_echo "$supported" >&6; } 16383 if test "$supported" = "yes" ; then 16384 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16385 found="yes" 16386 fi 16387 fi 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403xorg_testset_save_CFLAGS="$CFLAGS" 16404 16405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16410 $as_echo_n "(cached) " >&6 16411else 16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16413/* end confdefs.h. */ 16414int i; 16415_ACEOF 16416if ac_fn_c_try_compile "$LINENO"; then : 16417 xorg_cv_cc_flag_unknown_warning_option=yes 16418else 16419 xorg_cv_cc_flag_unknown_warning_option=no 16420fi 16421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16422fi 16423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16426 CFLAGS="$xorg_testset_save_CFLAGS" 16427fi 16428 16429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16432 fi 16433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16437 $as_echo_n "(cached) " >&6 16438else 16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16440/* end confdefs.h. */ 16441int i; 16442_ACEOF 16443if ac_fn_c_try_compile "$LINENO"; then : 16444 xorg_cv_cc_flag_unused_command_line_argument=yes 16445else 16446 xorg_cv_cc_flag_unused_command_line_argument=no 16447fi 16448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16449fi 16450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16453 CFLAGS="$xorg_testset_save_CFLAGS" 16454fi 16455 16456found="no" 16457 16458 if test $found = "no" ; then 16459 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16461 fi 16462 16463 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16465 fi 16466 16467 CFLAGS="$CFLAGS -Warray-bounds" 16468 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16470$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16471 cacheid=xorg_cv_cc_flag__Warray_bounds 16472 if eval \${$cacheid+:} false; then : 16473 $as_echo_n "(cached) " >&6 16474else 16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16476/* end confdefs.h. */ 16477int i; 16478int 16479main () 16480{ 16481 16482 ; 16483 return 0; 16484} 16485_ACEOF 16486if ac_fn_c_try_link "$LINENO"; then : 16487 eval $cacheid=yes 16488else 16489 eval $cacheid=no 16490fi 16491rm -f core conftest.err conftest.$ac_objext \ 16492 conftest$ac_exeext conftest.$ac_ext 16493fi 16494 16495 16496 CFLAGS="$xorg_testset_save_CFLAGS" 16497 16498 eval supported=\$$cacheid 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16500$as_echo "$supported" >&6; } 16501 if test "$supported" = "yes" ; then 16502 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16503 found="yes" 16504 fi 16505 fi 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521xorg_testset_save_CFLAGS="$CFLAGS" 16522 16523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16528 $as_echo_n "(cached) " >&6 16529else 16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16531/* end confdefs.h. */ 16532int i; 16533_ACEOF 16534if ac_fn_c_try_compile "$LINENO"; then : 16535 xorg_cv_cc_flag_unknown_warning_option=yes 16536else 16537 xorg_cv_cc_flag_unknown_warning_option=no 16538fi 16539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16540fi 16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16544 CFLAGS="$xorg_testset_save_CFLAGS" 16545fi 16546 16547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16550 fi 16551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16555 $as_echo_n "(cached) " >&6 16556else 16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16558/* end confdefs.h. */ 16559int i; 16560_ACEOF 16561if ac_fn_c_try_compile "$LINENO"; then : 16562 xorg_cv_cc_flag_unused_command_line_argument=yes 16563else 16564 xorg_cv_cc_flag_unused_command_line_argument=no 16565fi 16566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16567fi 16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16571 CFLAGS="$xorg_testset_save_CFLAGS" 16572fi 16573 16574found="no" 16575 16576 if test $found = "no" ; then 16577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16579 fi 16580 16581 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16583 fi 16584 16585 CFLAGS="$CFLAGS -Wwrite-strings" 16586 16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16588$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16589 cacheid=xorg_cv_cc_flag__Wwrite_strings 16590 if eval \${$cacheid+:} false; then : 16591 $as_echo_n "(cached) " >&6 16592else 16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16594/* end confdefs.h. */ 16595int i; 16596int 16597main () 16598{ 16599 16600 ; 16601 return 0; 16602} 16603_ACEOF 16604if ac_fn_c_try_link "$LINENO"; then : 16605 eval $cacheid=yes 16606else 16607 eval $cacheid=no 16608fi 16609rm -f core conftest.err conftest.$ac_objext \ 16610 conftest$ac_exeext conftest.$ac_ext 16611fi 16612 16613 16614 CFLAGS="$xorg_testset_save_CFLAGS" 16615 16616 eval supported=\$$cacheid 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16618$as_echo "$supported" >&6; } 16619 if test "$supported" = "yes" ; then 16620 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16621 found="yes" 16622 fi 16623 fi 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639xorg_testset_save_CFLAGS="$CFLAGS" 16640 16641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16646 $as_echo_n "(cached) " >&6 16647else 16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16649/* end confdefs.h. */ 16650int i; 16651_ACEOF 16652if ac_fn_c_try_compile "$LINENO"; then : 16653 xorg_cv_cc_flag_unknown_warning_option=yes 16654else 16655 xorg_cv_cc_flag_unknown_warning_option=no 16656fi 16657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16658fi 16659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16662 CFLAGS="$xorg_testset_save_CFLAGS" 16663fi 16664 16665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16668 fi 16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16673 $as_echo_n "(cached) " >&6 16674else 16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16676/* end confdefs.h. */ 16677int i; 16678_ACEOF 16679if ac_fn_c_try_compile "$LINENO"; then : 16680 xorg_cv_cc_flag_unused_command_line_argument=yes 16681else 16682 xorg_cv_cc_flag_unused_command_line_argument=no 16683fi 16684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16685fi 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16689 CFLAGS="$xorg_testset_save_CFLAGS" 16690fi 16691 16692found="no" 16693 16694 if test $found = "no" ; then 16695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16697 fi 16698 16699 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16701 fi 16702 16703 CFLAGS="$CFLAGS -Waddress" 16704 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16706$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16707 cacheid=xorg_cv_cc_flag__Waddress 16708 if eval \${$cacheid+:} false; then : 16709 $as_echo_n "(cached) " >&6 16710else 16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16712/* end confdefs.h. */ 16713int i; 16714int 16715main () 16716{ 16717 16718 ; 16719 return 0; 16720} 16721_ACEOF 16722if ac_fn_c_try_link "$LINENO"; then : 16723 eval $cacheid=yes 16724else 16725 eval $cacheid=no 16726fi 16727rm -f core conftest.err conftest.$ac_objext \ 16728 conftest$ac_exeext conftest.$ac_ext 16729fi 16730 16731 16732 CFLAGS="$xorg_testset_save_CFLAGS" 16733 16734 eval supported=\$$cacheid 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16736$as_echo "$supported" >&6; } 16737 if test "$supported" = "yes" ; then 16738 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16739 found="yes" 16740 fi 16741 fi 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757xorg_testset_save_CFLAGS="$CFLAGS" 16758 16759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16764 $as_echo_n "(cached) " >&6 16765else 16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16767/* end confdefs.h. */ 16768int i; 16769_ACEOF 16770if ac_fn_c_try_compile "$LINENO"; then : 16771 xorg_cv_cc_flag_unknown_warning_option=yes 16772else 16773 xorg_cv_cc_flag_unknown_warning_option=no 16774fi 16775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16776fi 16777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16780 CFLAGS="$xorg_testset_save_CFLAGS" 16781fi 16782 16783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16786 fi 16787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16791 $as_echo_n "(cached) " >&6 16792else 16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16794/* end confdefs.h. */ 16795int i; 16796_ACEOF 16797if ac_fn_c_try_compile "$LINENO"; then : 16798 xorg_cv_cc_flag_unused_command_line_argument=yes 16799else 16800 xorg_cv_cc_flag_unused_command_line_argument=no 16801fi 16802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16803fi 16804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16807 CFLAGS="$xorg_testset_save_CFLAGS" 16808fi 16809 16810found="no" 16811 16812 if test $found = "no" ; then 16813 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16815 fi 16816 16817 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16819 fi 16820 16821 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16822 16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16824$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16825 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16826 if eval \${$cacheid+:} false; then : 16827 $as_echo_n "(cached) " >&6 16828else 16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16830/* end confdefs.h. */ 16831int i; 16832int 16833main () 16834{ 16835 16836 ; 16837 return 0; 16838} 16839_ACEOF 16840if ac_fn_c_try_link "$LINENO"; then : 16841 eval $cacheid=yes 16842else 16843 eval $cacheid=no 16844fi 16845rm -f core conftest.err conftest.$ac_objext \ 16846 conftest$ac_exeext conftest.$ac_ext 16847fi 16848 16849 16850 CFLAGS="$xorg_testset_save_CFLAGS" 16851 16852 eval supported=\$$cacheid 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16854$as_echo "$supported" >&6; } 16855 if test "$supported" = "yes" ; then 16856 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16857 found="yes" 16858 fi 16859 fi 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875xorg_testset_save_CFLAGS="$CFLAGS" 16876 16877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16882 $as_echo_n "(cached) " >&6 16883else 16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16885/* end confdefs.h. */ 16886int i; 16887_ACEOF 16888if ac_fn_c_try_compile "$LINENO"; then : 16889 xorg_cv_cc_flag_unknown_warning_option=yes 16890else 16891 xorg_cv_cc_flag_unknown_warning_option=no 16892fi 16893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16894fi 16895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16898 CFLAGS="$xorg_testset_save_CFLAGS" 16899fi 16900 16901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16904 fi 16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16909 $as_echo_n "(cached) " >&6 16910else 16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16912/* end confdefs.h. */ 16913int i; 16914_ACEOF 16915if ac_fn_c_try_compile "$LINENO"; then : 16916 xorg_cv_cc_flag_unused_command_line_argument=yes 16917else 16918 xorg_cv_cc_flag_unused_command_line_argument=no 16919fi 16920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16921fi 16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16925 CFLAGS="$xorg_testset_save_CFLAGS" 16926fi 16927 16928found="no" 16929 16930 if test $found = "no" ; then 16931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16933 fi 16934 16935 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16937 fi 16938 16939 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16940 16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16942$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16943 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 16944 if eval \${$cacheid+:} false; then : 16945 $as_echo_n "(cached) " >&6 16946else 16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16948/* end confdefs.h. */ 16949int i; 16950int 16951main () 16952{ 16953 16954 ; 16955 return 0; 16956} 16957_ACEOF 16958if ac_fn_c_try_link "$LINENO"; then : 16959 eval $cacheid=yes 16960else 16961 eval $cacheid=no 16962fi 16963rm -f core conftest.err conftest.$ac_objext \ 16964 conftest$ac_exeext conftest.$ac_ext 16965fi 16966 16967 16968 CFLAGS="$xorg_testset_save_CFLAGS" 16969 16970 eval supported=\$$cacheid 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16972$as_echo "$supported" >&6; } 16973 if test "$supported" = "yes" ; then 16974 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 16975 found="yes" 16976 fi 16977 fi 16978 16979 16980fi 16981 16982 16983 16984 16985 16986 16987 16988 CWARNFLAGS="$BASE_CFLAGS" 16989 if test "x$GCC" = xyes ; then 16990 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 16991 fi 16992 16993 16994 16995 16996 16997 16998 16999 17000# Check whether --enable-strict-compilation was given. 17001if test "${enable_strict_compilation+set}" = set; then : 17002 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17003else 17004 STRICT_COMPILE=no 17005fi 17006 17007 17008 17009 17010 17011 17012STRICT_CFLAGS="" 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026xorg_testset_save_CFLAGS="$CFLAGS" 17027 17028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17033 $as_echo_n "(cached) " >&6 17034else 17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17036/* end confdefs.h. */ 17037int i; 17038_ACEOF 17039if ac_fn_c_try_compile "$LINENO"; then : 17040 xorg_cv_cc_flag_unknown_warning_option=yes 17041else 17042 xorg_cv_cc_flag_unknown_warning_option=no 17043fi 17044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17045fi 17046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17049 CFLAGS="$xorg_testset_save_CFLAGS" 17050fi 17051 17052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17055 fi 17056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17060 $as_echo_n "(cached) " >&6 17061else 17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17063/* end confdefs.h. */ 17064int i; 17065_ACEOF 17066if ac_fn_c_try_compile "$LINENO"; then : 17067 xorg_cv_cc_flag_unused_command_line_argument=yes 17068else 17069 xorg_cv_cc_flag_unused_command_line_argument=no 17070fi 17071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17072fi 17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17076 CFLAGS="$xorg_testset_save_CFLAGS" 17077fi 17078 17079found="no" 17080 17081 if test $found = "no" ; then 17082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17084 fi 17085 17086 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17088 fi 17089 17090 CFLAGS="$CFLAGS -pedantic" 17091 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17093$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17094 cacheid=xorg_cv_cc_flag__pedantic 17095 if eval \${$cacheid+:} false; then : 17096 $as_echo_n "(cached) " >&6 17097else 17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17099/* end confdefs.h. */ 17100int i; 17101int 17102main () 17103{ 17104 17105 ; 17106 return 0; 17107} 17108_ACEOF 17109if ac_fn_c_try_link "$LINENO"; then : 17110 eval $cacheid=yes 17111else 17112 eval $cacheid=no 17113fi 17114rm -f core conftest.err conftest.$ac_objext \ 17115 conftest$ac_exeext conftest.$ac_ext 17116fi 17117 17118 17119 CFLAGS="$xorg_testset_save_CFLAGS" 17120 17121 eval supported=\$$cacheid 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17123$as_echo "$supported" >&6; } 17124 if test "$supported" = "yes" ; then 17125 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17126 found="yes" 17127 fi 17128 fi 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144xorg_testset_save_CFLAGS="$CFLAGS" 17145 17146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17151 $as_echo_n "(cached) " >&6 17152else 17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154/* end confdefs.h. */ 17155int i; 17156_ACEOF 17157if ac_fn_c_try_compile "$LINENO"; then : 17158 xorg_cv_cc_flag_unknown_warning_option=yes 17159else 17160 xorg_cv_cc_flag_unknown_warning_option=no 17161fi 17162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17163fi 17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17167 CFLAGS="$xorg_testset_save_CFLAGS" 17168fi 17169 17170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17173 fi 17174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17178 $as_echo_n "(cached) " >&6 17179else 17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17181/* end confdefs.h. */ 17182int i; 17183_ACEOF 17184if ac_fn_c_try_compile "$LINENO"; then : 17185 xorg_cv_cc_flag_unused_command_line_argument=yes 17186else 17187 xorg_cv_cc_flag_unused_command_line_argument=no 17188fi 17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17190fi 17191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17194 CFLAGS="$xorg_testset_save_CFLAGS" 17195fi 17196 17197found="no" 17198 17199 if test $found = "no" ; then 17200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17202 fi 17203 17204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17206 fi 17207 17208 CFLAGS="$CFLAGS -Werror" 17209 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17211$as_echo_n "checking if $CC supports -Werror... " >&6; } 17212 cacheid=xorg_cv_cc_flag__Werror 17213 if eval \${$cacheid+:} false; then : 17214 $as_echo_n "(cached) " >&6 17215else 17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17217/* end confdefs.h. */ 17218int i; 17219int 17220main () 17221{ 17222 17223 ; 17224 return 0; 17225} 17226_ACEOF 17227if ac_fn_c_try_link "$LINENO"; then : 17228 eval $cacheid=yes 17229else 17230 eval $cacheid=no 17231fi 17232rm -f core conftest.err conftest.$ac_objext \ 17233 conftest$ac_exeext conftest.$ac_ext 17234fi 17235 17236 17237 CFLAGS="$xorg_testset_save_CFLAGS" 17238 17239 eval supported=\$$cacheid 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17241$as_echo "$supported" >&6; } 17242 if test "$supported" = "yes" ; then 17243 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17244 found="yes" 17245 fi 17246 fi 17247 17248 if test $found = "no" ; then 17249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17251 fi 17252 17253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17255 fi 17256 17257 CFLAGS="$CFLAGS -errwarn" 17258 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17260$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17261 cacheid=xorg_cv_cc_flag__errwarn 17262 if eval \${$cacheid+:} false; then : 17263 $as_echo_n "(cached) " >&6 17264else 17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17266/* end confdefs.h. */ 17267int i; 17268int 17269main () 17270{ 17271 17272 ; 17273 return 0; 17274} 17275_ACEOF 17276if ac_fn_c_try_link "$LINENO"; then : 17277 eval $cacheid=yes 17278else 17279 eval $cacheid=no 17280fi 17281rm -f core conftest.err conftest.$ac_objext \ 17282 conftest$ac_exeext conftest.$ac_ext 17283fi 17284 17285 17286 CFLAGS="$xorg_testset_save_CFLAGS" 17287 17288 eval supported=\$$cacheid 17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17290$as_echo "$supported" >&6; } 17291 if test "$supported" = "yes" ; then 17292 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17293 found="yes" 17294 fi 17295 fi 17296 17297 17298 17299# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17300# activate it with -Werror, so we add it here explicitly. 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314xorg_testset_save_CFLAGS="$CFLAGS" 17315 17316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17321 $as_echo_n "(cached) " >&6 17322else 17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17324/* end confdefs.h. */ 17325int i; 17326_ACEOF 17327if ac_fn_c_try_compile "$LINENO"; then : 17328 xorg_cv_cc_flag_unknown_warning_option=yes 17329else 17330 xorg_cv_cc_flag_unknown_warning_option=no 17331fi 17332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17333fi 17334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17337 CFLAGS="$xorg_testset_save_CFLAGS" 17338fi 17339 17340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17343 fi 17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17348 $as_echo_n "(cached) " >&6 17349else 17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17351/* end confdefs.h. */ 17352int i; 17353_ACEOF 17354if ac_fn_c_try_compile "$LINENO"; then : 17355 xorg_cv_cc_flag_unused_command_line_argument=yes 17356else 17357 xorg_cv_cc_flag_unused_command_line_argument=no 17358fi 17359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17360fi 17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17364 CFLAGS="$xorg_testset_save_CFLAGS" 17365fi 17366 17367found="no" 17368 17369 if test $found = "no" ; then 17370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17372 fi 17373 17374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17376 fi 17377 17378 CFLAGS="$CFLAGS -Werror=attributes" 17379 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17381$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17382 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17383 if eval \${$cacheid+:} false; then : 17384 $as_echo_n "(cached) " >&6 17385else 17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17387/* end confdefs.h. */ 17388int i; 17389int 17390main () 17391{ 17392 17393 ; 17394 return 0; 17395} 17396_ACEOF 17397if ac_fn_c_try_link "$LINENO"; then : 17398 eval $cacheid=yes 17399else 17400 eval $cacheid=no 17401fi 17402rm -f core conftest.err conftest.$ac_objext \ 17403 conftest$ac_exeext conftest.$ac_ext 17404fi 17405 17406 17407 CFLAGS="$xorg_testset_save_CFLAGS" 17408 17409 eval supported=\$$cacheid 17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17411$as_echo "$supported" >&6; } 17412 if test "$supported" = "yes" ; then 17413 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17414 found="yes" 17415 fi 17416 fi 17417 17418 17419 17420if test "x$STRICT_COMPILE" = "xyes"; then 17421 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17422 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17423fi 17424 17425 17426 17427 17428 17429 17430cat >>confdefs.h <<_ACEOF 17431#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17432_ACEOF 17433 17434 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17435 if test "x$PVM" = "x"; then 17436 PVM="0" 17437 fi 17438 17439cat >>confdefs.h <<_ACEOF 17440#define PACKAGE_VERSION_MINOR $PVM 17441_ACEOF 17442 17443 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17444 if test "x$PVP" = "x"; then 17445 PVP="0" 17446 fi 17447 17448cat >>confdefs.h <<_ACEOF 17449#define PACKAGE_VERSION_PATCHLEVEL $PVP 17450_ACEOF 17451 17452 17453 17454CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17455mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17456|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17457echo 'git directory not found: installing possibly empty changelog.' >&2)" 17458 17459 17460 17461 17462macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17463INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17464mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17465|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17466echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17467 17468 17469 17470 17471 17472 17473if test x$APP_MAN_SUFFIX = x ; then 17474 APP_MAN_SUFFIX=1 17475fi 17476if test x$APP_MAN_DIR = x ; then 17477 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17478fi 17479 17480if test x$LIB_MAN_SUFFIX = x ; then 17481 LIB_MAN_SUFFIX=3 17482fi 17483if test x$LIB_MAN_DIR = x ; then 17484 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17485fi 17486 17487if test x$FILE_MAN_SUFFIX = x ; then 17488 case $host_os in 17489 solaris*) FILE_MAN_SUFFIX=4 ;; 17490 *) FILE_MAN_SUFFIX=5 ;; 17491 esac 17492fi 17493if test x$FILE_MAN_DIR = x ; then 17494 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17495fi 17496 17497if test x$MISC_MAN_SUFFIX = x ; then 17498 case $host_os in 17499 solaris*) MISC_MAN_SUFFIX=5 ;; 17500 *) MISC_MAN_SUFFIX=7 ;; 17501 esac 17502fi 17503if test x$MISC_MAN_DIR = x ; then 17504 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17505fi 17506 17507if test x$DRIVER_MAN_SUFFIX = x ; then 17508 case $host_os in 17509 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17510 *) DRIVER_MAN_SUFFIX=4 ;; 17511 esac 17512fi 17513if test x$DRIVER_MAN_DIR = x ; then 17514 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17515fi 17516 17517if test x$ADMIN_MAN_SUFFIX = x ; then 17518 case $host_os in 17519 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17520 *) ADMIN_MAN_SUFFIX=8 ;; 17521 esac 17522fi 17523if test x$ADMIN_MAN_DIR = x ; then 17524 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17525fi 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541XORG_MAN_PAGE="X Version 11" 17542 17543MAN_SUBSTS="\ 17544 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17545 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17546 -e 's|__xservername__|Xorg|g' \ 17547 -e 's|__xconfigfile__|xorg.conf|g' \ 17548 -e 's|__projectroot__|\$(prefix)|g' \ 17549 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17550 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17551 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17552 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17553 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17554 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17555 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17556 17557 17558 17559# Check whether --enable-silent-rules was given. 17560if test "${enable_silent_rules+set}" = set; then : 17561 enableval=$enable_silent_rules; 17562fi 17563 17564case $enable_silent_rules in # ((( 17565 yes) AM_DEFAULT_VERBOSITY=0;; 17566 no) AM_DEFAULT_VERBOSITY=1;; 17567 *) AM_DEFAULT_VERBOSITY=0;; 17568esac 17569am_make=${MAKE-make} 17570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17571$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17572if ${am_cv_make_support_nested_variables+:} false; then : 17573 $as_echo_n "(cached) " >&6 17574else 17575 if $as_echo 'TRUE=$(BAR$(V)) 17576BAR0=false 17577BAR1=true 17578V=1 17579am__doit: 17580 @$(TRUE) 17581.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17582 am_cv_make_support_nested_variables=yes 17583else 17584 am_cv_make_support_nested_variables=no 17585fi 17586fi 17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17588$as_echo "$am_cv_make_support_nested_variables" >&6; } 17589if test $am_cv_make_support_nested_variables = yes; then 17590 AM_V='$(V)' 17591 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17592else 17593 AM_V=$AM_DEFAULT_VERBOSITY 17594 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17595fi 17596AM_BACKSLASH='\' 17597 17598 17599 17600# Check whether --enable-malloc0returnsnull was given. 17601if test "${enable_malloc0returnsnull+set}" = set; then : 17602 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17603else 17604 MALLOC_ZERO_RETURNS_NULL=auto 17605fi 17606 17607 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17609$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17610if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17611 if test "$cross_compiling" = yes; then : 17612 MALLOC_ZERO_RETURNS_NULL=yes 17613else 17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17615/* end confdefs.h. */ 17616 17617#include <stdlib.h> 17618 17619int 17620main () 17621{ 17622 17623 char *m0, *r0, *c0, *p; 17624 m0 = malloc(0); 17625 p = malloc(10); 17626 r0 = realloc(p,0); 17627 c0 = calloc(0,10); 17628 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17629 17630 ; 17631 return 0; 17632} 17633_ACEOF 17634if ac_fn_c_try_run "$LINENO"; then : 17635 MALLOC_ZERO_RETURNS_NULL=yes 17636else 17637 MALLOC_ZERO_RETURNS_NULL=no 17638fi 17639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17640 conftest.$ac_objext conftest.beam conftest.$ac_ext 17641fi 17642 17643fi 17644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17645$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17646 17647if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17648 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17649 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17650 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17651else 17652 MALLOC_ZERO_CFLAGS="" 17653 XMALLOC_ZERO_CFLAGS="" 17654 XTMALLOC_ZERO_CFLAGS="" 17655fi 17656 17657 17658 17659 17660 17661 17662# Obtain compiler/linker options for depedencies 17663 17664pkg_failed=no 17665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5 17666$as_echo_n "checking for XV... " >&6; } 17667 17668if test -n "$XV_CFLAGS"; then 17669 pkg_cv_XV_CFLAGS="$XV_CFLAGS" 17670 elif test -n "$PKG_CONFIG"; then 17671 if test -n "$PKG_CONFIG" && \ 17672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5 17673 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5 17674 ac_status=$? 17675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17676 test $ac_status = 0; }; then 17677 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto videoproto" 2>/dev/null` 17678else 17679 pkg_failed=yes 17680fi 17681 else 17682 pkg_failed=untried 17683fi 17684if test -n "$XV_LIBS"; then 17685 pkg_cv_XV_LIBS="$XV_LIBS" 17686 elif test -n "$PKG_CONFIG"; then 17687 if test -n "$PKG_CONFIG" && \ 17688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5 17689 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5 17690 ac_status=$? 17691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17692 test $ac_status = 0; }; then 17693 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto videoproto" 2>/dev/null` 17694else 17695 pkg_failed=yes 17696fi 17697 else 17698 pkg_failed=untried 17699fi 17700 17701 17702 17703if test $pkg_failed = yes; then 17704 17705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17706 _pkg_short_errors_supported=yes 17707else 17708 _pkg_short_errors_supported=no 17709fi 17710 if test $_pkg_short_errors_supported = yes; then 17711 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto videoproto" 2>&1` 17712 else 17713 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto videoproto" 2>&1` 17714 fi 17715 # Put the nasty error message in config.log where it belongs 17716 echo "$XV_PKG_ERRORS" >&5 17717 17718 as_fn_error $? "Package requirements (x11 xext xextproto videoproto) were not met: 17719 17720$XV_PKG_ERRORS 17721 17722Consider adjusting the PKG_CONFIG_PATH environment variable if you 17723installed software in a non-standard prefix. 17724 17725Alternatively, you may set the environment variables XV_CFLAGS 17726and XV_LIBS to avoid the need to call pkg-config. 17727See the pkg-config man page for more details. 17728" "$LINENO" 5 17729elif test $pkg_failed = untried; then 17730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17732as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17733is in your PATH or set the PKG_CONFIG environment variable to the full 17734path to pkg-config. 17735 17736Alternatively, you may set the environment variables XV_CFLAGS 17737and XV_LIBS to avoid the need to call pkg-config. 17738See the pkg-config man page for more details. 17739 17740To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17741See \`config.log' for more details" "$LINENO" 5; } 17742else 17743 XV_CFLAGS=$pkg_cv_XV_CFLAGS 17744 XV_LIBS=$pkg_cv_XV_LIBS 17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17746$as_echo "yes" >&6; } 17747 : 17748fi 17749 17750# Check for _XEatDataWords function that may be patched into older Xlib release 17751SAVE_LIBS="$LIBS" 17752LIBS="$XV_LIBS" 17753for ac_func in _XEatDataWords 17754do : 17755 ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords" 17756if test "x$ac_cv_func__XEatDataWords" = xyes; then : 17757 cat >>confdefs.h <<_ACEOF 17758#define HAVE__XEATDATAWORDS 1 17759_ACEOF 17760 17761fi 17762done 17763 17764LIBS="$SAVE_LIBS" 17765 17766# Allow checking code with lint, sparse, etc. 17767 17768 17769 17770 17771 17772# Check whether --with-lint was given. 17773if test "${with_lint+set}" = set; then : 17774 withval=$with_lint; use_lint=$withval 17775else 17776 use_lint=no 17777fi 17778 17779 17780# Obtain platform specific info like program name and options 17781# The lint program on FreeBSD and NetBSD is different from the one on Solaris 17782case $host_os in 17783 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 17784 lint_name=splint 17785 lint_options="-badflag" 17786 ;; 17787 *freebsd* | *netbsd*) 17788 lint_name=lint 17789 lint_options="-u -b" 17790 ;; 17791 *solaris*) 17792 lint_name=lint 17793 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 17794 ;; 17795esac 17796 17797# Test for the presence of the program (either guessed by the code or spelled out by the user) 17798if test "x$use_lint" = x"yes" ; then 17799 # Extract the first word of "$lint_name", so it can be a program name with args. 17800set dummy $lint_name; ac_word=$2 17801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17802$as_echo_n "checking for $ac_word... " >&6; } 17803if ${ac_cv_path_LINT+:} false; then : 17804 $as_echo_n "(cached) " >&6 17805else 17806 case $LINT in 17807 [\\/]* | ?:[\\/]*) 17808 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 17809 ;; 17810 *) 17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17812for as_dir in $PATH 17813do 17814 IFS=$as_save_IFS 17815 test -z "$as_dir" && as_dir=. 17816 for ac_exec_ext in '' $ac_executable_extensions; do 17817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17818 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 17819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17820 break 2 17821 fi 17822done 17823 done 17824IFS=$as_save_IFS 17825 17826 ;; 17827esac 17828fi 17829LINT=$ac_cv_path_LINT 17830if test -n "$LINT"; then 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 17832$as_echo "$LINT" >&6; } 17833else 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17835$as_echo "no" >&6; } 17836fi 17837 17838 17839 if test "x$LINT" = "x"; then 17840 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 17841 fi 17842elif test "x$use_lint" = x"no" ; then 17843 if test "x$LINT" != "x"; then 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 17845$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 17846 fi 17847else 17848 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 17849fi 17850 17851# User supplied flags override default flags 17852if test "x$LINT_FLAGS" != "x"; then 17853 lint_options=$LINT_FLAGS 17854fi 17855 17856LINT_FLAGS=$lint_options 17857 17858 if test "x$LINT" != x; then 17859 LINT_TRUE= 17860 LINT_FALSE='#' 17861else 17862 LINT_TRUE='#' 17863 LINT_FALSE= 17864fi 17865 17866 17867 17868 17869 17870# Check whether --enable-lint-library was given. 17871if test "${enable_lint_library+set}" = set; then : 17872 enableval=$enable_lint_library; make_lint_lib=$enableval 17873else 17874 make_lint_lib=no 17875fi 17876 17877 17878if test "x$make_lint_lib" = x"yes" ; then 17879 LINTLIB=llib-lXv.ln 17880 if test "x$LINT" = "x"; then 17881 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 17882 fi 17883elif test "x$make_lint_lib" != x"no" ; then 17884 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 17885fi 17886 17887 17888 if test x$make_lint_lib != xno; then 17889 MAKE_LINT_LIB_TRUE= 17890 MAKE_LINT_LIB_FALSE='#' 17891else 17892 MAKE_LINT_LIB_TRUE='#' 17893 MAKE_LINT_LIB_FALSE= 17894fi 17895 17896 17897 17898 17899ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc" 17900 17901cat >confcache <<\_ACEOF 17902# This file is a shell script that caches the results of configure 17903# tests run on this system so they can be shared between configure 17904# scripts and configure runs, see configure's option --config-cache. 17905# It is not useful on other systems. If it contains results you don't 17906# want to keep, you may remove or edit it. 17907# 17908# config.status only pays attention to the cache file if you give it 17909# the --recheck option to rerun configure. 17910# 17911# `ac_cv_env_foo' variables (set or unset) will be overridden when 17912# loading this file, other *unset* `ac_cv_foo' will be assigned the 17913# following values. 17914 17915_ACEOF 17916 17917# The following way of writing the cache mishandles newlines in values, 17918# but we know of no workaround that is simple, portable, and efficient. 17919# So, we kill variables containing newlines. 17920# Ultrix sh set writes to stderr and can't be redirected directly, 17921# and sets the high bit in the cache file unless we assign to the vars. 17922( 17923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17924 eval ac_val=\$$ac_var 17925 case $ac_val in #( 17926 *${as_nl}*) 17927 case $ac_var in #( 17928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17929$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17930 esac 17931 case $ac_var in #( 17932 _ | IFS | as_nl) ;; #( 17933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17934 *) { eval $ac_var=; unset $ac_var;} ;; 17935 esac ;; 17936 esac 17937 done 17938 17939 (set) 2>&1 | 17940 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17941 *${as_nl}ac_space=\ *) 17942 # `set' does not quote correctly, so add quotes: double-quote 17943 # substitution turns \\\\ into \\, and sed turns \\ into \. 17944 sed -n \ 17945 "s/'/'\\\\''/g; 17946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17947 ;; #( 17948 *) 17949 # `set' quotes correctly as required by POSIX, so do not add quotes. 17950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17951 ;; 17952 esac | 17953 sort 17954) | 17955 sed ' 17956 /^ac_cv_env_/b end 17957 t clear 17958 :clear 17959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17960 t end 17961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17962 :end' >>confcache 17963if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17964 if test -w "$cache_file"; then 17965 if test "x$cache_file" != "x/dev/null"; then 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17967$as_echo "$as_me: updating cache $cache_file" >&6;} 17968 if test ! -f "$cache_file" || test -h "$cache_file"; then 17969 cat confcache >"$cache_file" 17970 else 17971 case $cache_file in #( 17972 */* | ?:*) 17973 mv -f confcache "$cache_file"$$ && 17974 mv -f "$cache_file"$$ "$cache_file" ;; #( 17975 *) 17976 mv -f confcache "$cache_file" ;; 17977 esac 17978 fi 17979 fi 17980 else 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17982$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17983 fi 17984fi 17985rm -f confcache 17986 17987test "x$prefix" = xNONE && prefix=$ac_default_prefix 17988# Let make expand exec_prefix. 17989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17990 17991DEFS=-DHAVE_CONFIG_H 17992 17993ac_libobjs= 17994ac_ltlibobjs= 17995U= 17996for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17997 # 1. Remove the extension, and $U if already installed. 17998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18001 # will be set to the directory where LIBOBJS objects are built. 18002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18004done 18005LIBOBJS=$ac_libobjs 18006 18007LTLIBOBJS=$ac_ltlibobjs 18008 18009 18010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18011$as_echo_n "checking that generated files are newer than configure... " >&6; } 18012 if test -n "$am_sleep_pid"; then 18013 # Hide warnings about reused PIDs. 18014 wait $am_sleep_pid 2>/dev/null 18015 fi 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18017$as_echo "done" >&6; } 18018 if test -n "$EXEEXT"; then 18019 am__EXEEXT_TRUE= 18020 am__EXEEXT_FALSE='#' 18021else 18022 am__EXEEXT_TRUE='#' 18023 am__EXEEXT_FALSE= 18024fi 18025 18026if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18027 as_fn_error $? "conditional \"AMDEP\" was never defined. 18028Usually this means the macro was only invoked conditionally." "$LINENO" 5 18029fi 18030if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18032Usually this means the macro was only invoked conditionally." "$LINENO" 5 18033fi 18034if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18035 as_fn_error $? "conditional \"LINT\" was never defined. 18036Usually this means the macro was only invoked conditionally." "$LINENO" 5 18037fi 18038if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18039 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18040Usually this means the macro was only invoked conditionally." "$LINENO" 5 18041fi 18042 18043: "${CONFIG_STATUS=./config.status}" 18044ac_write_fail=0 18045ac_clean_files_save=$ac_clean_files 18046ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18047{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18048$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18049as_write_fail=0 18050cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18051#! $SHELL 18052# Generated by $as_me. 18053# Run this file to recreate the current configuration. 18054# Compiler output produced by configure, useful for debugging 18055# configure, is in config.log if it exists. 18056 18057debug=false 18058ac_cs_recheck=false 18059ac_cs_silent=false 18060 18061SHELL=\${CONFIG_SHELL-$SHELL} 18062export SHELL 18063_ASEOF 18064cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18065## -------------------- ## 18066## M4sh Initialization. ## 18067## -------------------- ## 18068 18069# Be more Bourne compatible 18070DUALCASE=1; export DUALCASE # for MKS sh 18071if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18072 emulate sh 18073 NULLCMD=: 18074 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18075 # is contrary to our usage. Disable this feature. 18076 alias -g '${1+"$@"}'='"$@"' 18077 setopt NO_GLOB_SUBST 18078else 18079 case `(set -o) 2>/dev/null` in #( 18080 *posix*) : 18081 set -o posix ;; #( 18082 *) : 18083 ;; 18084esac 18085fi 18086 18087 18088as_nl=' 18089' 18090export as_nl 18091# Printing a long string crashes Solaris 7 /usr/bin/printf. 18092as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18093as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18094as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18095# Prefer a ksh shell builtin over an external printf program on Solaris, 18096# but without wasting forks for bash or zsh. 18097if test -z "$BASH_VERSION$ZSH_VERSION" \ 18098 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18099 as_echo='print -r --' 18100 as_echo_n='print -rn --' 18101elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18102 as_echo='printf %s\n' 18103 as_echo_n='printf %s' 18104else 18105 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18106 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18107 as_echo_n='/usr/ucb/echo -n' 18108 else 18109 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18110 as_echo_n_body='eval 18111 arg=$1; 18112 case $arg in #( 18113 *"$as_nl"*) 18114 expr "X$arg" : "X\\(.*\\)$as_nl"; 18115 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18116 esac; 18117 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18118 ' 18119 export as_echo_n_body 18120 as_echo_n='sh -c $as_echo_n_body as_echo' 18121 fi 18122 export as_echo_body 18123 as_echo='sh -c $as_echo_body as_echo' 18124fi 18125 18126# The user is always right. 18127if test "${PATH_SEPARATOR+set}" != set; then 18128 PATH_SEPARATOR=: 18129 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18130 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18131 PATH_SEPARATOR=';' 18132 } 18133fi 18134 18135 18136# IFS 18137# We need space, tab and new line, in precisely that order. Quoting is 18138# there to prevent editors from complaining about space-tab. 18139# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18140# splitting by setting IFS to empty value.) 18141IFS=" "" $as_nl" 18142 18143# Find who we are. Look in the path if we contain no directory separator. 18144as_myself= 18145case $0 in #(( 18146 *[\\/]* ) as_myself=$0 ;; 18147 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18148for as_dir in $PATH 18149do 18150 IFS=$as_save_IFS 18151 test -z "$as_dir" && as_dir=. 18152 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18153 done 18154IFS=$as_save_IFS 18155 18156 ;; 18157esac 18158# We did not find ourselves, most probably we were run as `sh COMMAND' 18159# in which case we are not to be found in the path. 18160if test "x$as_myself" = x; then 18161 as_myself=$0 18162fi 18163if test ! -f "$as_myself"; then 18164 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18165 exit 1 18166fi 18167 18168# Unset variables that we do not need and which cause bugs (e.g. in 18169# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18170# suppresses any "Segmentation fault" message there. '((' could 18171# trigger a bug in pdksh 5.2.14. 18172for as_var in BASH_ENV ENV MAIL MAILPATH 18173do eval test x\${$as_var+set} = xset \ 18174 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18175done 18176PS1='$ ' 18177PS2='> ' 18178PS4='+ ' 18179 18180# NLS nuisances. 18181LC_ALL=C 18182export LC_ALL 18183LANGUAGE=C 18184export LANGUAGE 18185 18186# CDPATH. 18187(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18188 18189 18190# as_fn_error STATUS ERROR [LINENO LOG_FD] 18191# ---------------------------------------- 18192# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18193# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18194# script with STATUS, using 1 if that was 0. 18195as_fn_error () 18196{ 18197 as_status=$1; test $as_status -eq 0 && as_status=1 18198 if test "$4"; then 18199 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18200 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18201 fi 18202 $as_echo "$as_me: error: $2" >&2 18203 as_fn_exit $as_status 18204} # as_fn_error 18205 18206 18207# as_fn_set_status STATUS 18208# ----------------------- 18209# Set $? to STATUS, without forking. 18210as_fn_set_status () 18211{ 18212 return $1 18213} # as_fn_set_status 18214 18215# as_fn_exit STATUS 18216# ----------------- 18217# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18218as_fn_exit () 18219{ 18220 set +e 18221 as_fn_set_status $1 18222 exit $1 18223} # as_fn_exit 18224 18225# as_fn_unset VAR 18226# --------------- 18227# Portably unset VAR. 18228as_fn_unset () 18229{ 18230 { eval $1=; unset $1;} 18231} 18232as_unset=as_fn_unset 18233# as_fn_append VAR VALUE 18234# ---------------------- 18235# Append the text in VALUE to the end of the definition contained in VAR. Take 18236# advantage of any shell optimizations that allow amortized linear growth over 18237# repeated appends, instead of the typical quadratic growth present in naive 18238# implementations. 18239if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18240 eval 'as_fn_append () 18241 { 18242 eval $1+=\$2 18243 }' 18244else 18245 as_fn_append () 18246 { 18247 eval $1=\$$1\$2 18248 } 18249fi # as_fn_append 18250 18251# as_fn_arith ARG... 18252# ------------------ 18253# Perform arithmetic evaluation on the ARGs, and store the result in the 18254# global $as_val. Take advantage of shells that can avoid forks. The arguments 18255# must be portable across $(()) and expr. 18256if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18257 eval 'as_fn_arith () 18258 { 18259 as_val=$(( $* )) 18260 }' 18261else 18262 as_fn_arith () 18263 { 18264 as_val=`expr "$@" || test $? -eq 1` 18265 } 18266fi # as_fn_arith 18267 18268 18269if expr a : '\(a\)' >/dev/null 2>&1 && 18270 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18271 as_expr=expr 18272else 18273 as_expr=false 18274fi 18275 18276if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18277 as_basename=basename 18278else 18279 as_basename=false 18280fi 18281 18282if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18283 as_dirname=dirname 18284else 18285 as_dirname=false 18286fi 18287 18288as_me=`$as_basename -- "$0" || 18289$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18290 X"$0" : 'X\(//\)$' \| \ 18291 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18292$as_echo X/"$0" | 18293 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18294 s//\1/ 18295 q 18296 } 18297 /^X\/\(\/\/\)$/{ 18298 s//\1/ 18299 q 18300 } 18301 /^X\/\(\/\).*/{ 18302 s//\1/ 18303 q 18304 } 18305 s/.*/./; q'` 18306 18307# Avoid depending upon Character Ranges. 18308as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18309as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18310as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18311as_cr_digits='0123456789' 18312as_cr_alnum=$as_cr_Letters$as_cr_digits 18313 18314ECHO_C= ECHO_N= ECHO_T= 18315case `echo -n x` in #((((( 18316-n*) 18317 case `echo 'xy\c'` in 18318 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18319 xy) ECHO_C='\c';; 18320 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18321 ECHO_T=' ';; 18322 esac;; 18323*) 18324 ECHO_N='-n';; 18325esac 18326 18327rm -f conf$$ conf$$.exe conf$$.file 18328if test -d conf$$.dir; then 18329 rm -f conf$$.dir/conf$$.file 18330else 18331 rm -f conf$$.dir 18332 mkdir conf$$.dir 2>/dev/null 18333fi 18334if (echo >conf$$.file) 2>/dev/null; then 18335 if ln -s conf$$.file conf$$ 2>/dev/null; then 18336 as_ln_s='ln -s' 18337 # ... but there are two gotchas: 18338 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18339 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18340 # In both cases, we have to default to `cp -p'. 18341 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18342 as_ln_s='cp -p' 18343 elif ln conf$$.file conf$$ 2>/dev/null; then 18344 as_ln_s=ln 18345 else 18346 as_ln_s='cp -p' 18347 fi 18348else 18349 as_ln_s='cp -p' 18350fi 18351rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18352rmdir conf$$.dir 2>/dev/null 18353 18354 18355# as_fn_mkdir_p 18356# ------------- 18357# Create "$as_dir" as a directory, including parents if necessary. 18358as_fn_mkdir_p () 18359{ 18360 18361 case $as_dir in #( 18362 -*) as_dir=./$as_dir;; 18363 esac 18364 test -d "$as_dir" || eval $as_mkdir_p || { 18365 as_dirs= 18366 while :; do 18367 case $as_dir in #( 18368 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18369 *) as_qdir=$as_dir;; 18370 esac 18371 as_dirs="'$as_qdir' $as_dirs" 18372 as_dir=`$as_dirname -- "$as_dir" || 18373$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18374 X"$as_dir" : 'X\(//\)[^/]' \| \ 18375 X"$as_dir" : 'X\(//\)$' \| \ 18376 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18377$as_echo X"$as_dir" | 18378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18379 s//\1/ 18380 q 18381 } 18382 /^X\(\/\/\)[^/].*/{ 18383 s//\1/ 18384 q 18385 } 18386 /^X\(\/\/\)$/{ 18387 s//\1/ 18388 q 18389 } 18390 /^X\(\/\).*/{ 18391 s//\1/ 18392 q 18393 } 18394 s/.*/./; q'` 18395 test -d "$as_dir" && break 18396 done 18397 test -z "$as_dirs" || eval "mkdir $as_dirs" 18398 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18399 18400 18401} # as_fn_mkdir_p 18402if mkdir -p . 2>/dev/null; then 18403 as_mkdir_p='mkdir -p "$as_dir"' 18404else 18405 test -d ./-p && rmdir ./-p 18406 as_mkdir_p=false 18407fi 18408 18409if test -x / >/dev/null 2>&1; then 18410 as_test_x='test -x' 18411else 18412 if ls -dL / >/dev/null 2>&1; then 18413 as_ls_L_option=L 18414 else 18415 as_ls_L_option= 18416 fi 18417 as_test_x=' 18418 eval sh -c '\'' 18419 if test -d "$1"; then 18420 test -d "$1/."; 18421 else 18422 case $1 in #( 18423 -*)set "./$1";; 18424 esac; 18425 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18426 ???[sx]*):;;*)false;;esac;fi 18427 '\'' sh 18428 ' 18429fi 18430as_executable_p=$as_test_x 18431 18432# Sed expression to map a string onto a valid CPP name. 18433as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18434 18435# Sed expression to map a string onto a valid variable name. 18436as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18437 18438 18439exec 6>&1 18440## ----------------------------------- ## 18441## Main body of $CONFIG_STATUS script. ## 18442## ----------------------------------- ## 18443_ASEOF 18444test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18445 18446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18447# Save the log message, to keep $0 and so on meaningful, and to 18448# report actual input values of CONFIG_FILES etc. instead of their 18449# values after options handling. 18450ac_log=" 18451This file was extended by libXv $as_me 1.0.8, which was 18452generated by GNU Autoconf 2.68. Invocation command line was 18453 18454 CONFIG_FILES = $CONFIG_FILES 18455 CONFIG_HEADERS = $CONFIG_HEADERS 18456 CONFIG_LINKS = $CONFIG_LINKS 18457 CONFIG_COMMANDS = $CONFIG_COMMANDS 18458 $ $0 $@ 18459 18460on `(hostname || uname -n) 2>/dev/null | sed 1q` 18461" 18462 18463_ACEOF 18464 18465case $ac_config_files in *" 18466"*) set x $ac_config_files; shift; ac_config_files=$*;; 18467esac 18468 18469case $ac_config_headers in *" 18470"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18471esac 18472 18473 18474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18475# Files that config.status was made for. 18476config_files="$ac_config_files" 18477config_headers="$ac_config_headers" 18478config_commands="$ac_config_commands" 18479 18480_ACEOF 18481 18482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18483ac_cs_usage="\ 18484\`$as_me' instantiates files and other configuration actions 18485from templates according to the current configuration. Unless the files 18486and actions are specified as TAGs, all are instantiated by default. 18487 18488Usage: $0 [OPTION]... [TAG]... 18489 18490 -h, --help print this help, then exit 18491 -V, --version print version number and configuration settings, then exit 18492 --config print configuration, then exit 18493 -q, --quiet, --silent 18494 do not print progress messages 18495 -d, --debug don't remove temporary files 18496 --recheck update $as_me by reconfiguring in the same conditions 18497 --file=FILE[:TEMPLATE] 18498 instantiate the configuration file FILE 18499 --header=FILE[:TEMPLATE] 18500 instantiate the configuration header FILE 18501 18502Configuration files: 18503$config_files 18504 18505Configuration headers: 18506$config_headers 18507 18508Configuration commands: 18509$config_commands 18510 18511Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18512 18513_ACEOF 18514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18515ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18516ac_cs_version="\\ 18517libXv config.status 1.0.8 18518configured by $0, generated by GNU Autoconf 2.68, 18519 with options \\"\$ac_cs_config\\" 18520 18521Copyright (C) 2010 Free Software Foundation, Inc. 18522This config.status script is free software; the Free Software Foundation 18523gives unlimited permission to copy, distribute and modify it." 18524 18525ac_pwd='$ac_pwd' 18526srcdir='$srcdir' 18527INSTALL='$INSTALL' 18528MKDIR_P='$MKDIR_P' 18529AWK='$AWK' 18530test -n "\$AWK" || AWK=awk 18531_ACEOF 18532 18533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18534# The default lists apply if the user does not specify any file. 18535ac_need_defaults=: 18536while test $# != 0 18537do 18538 case $1 in 18539 --*=?*) 18540 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18542 ac_shift=: 18543 ;; 18544 --*=) 18545 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18546 ac_optarg= 18547 ac_shift=: 18548 ;; 18549 *) 18550 ac_option=$1 18551 ac_optarg=$2 18552 ac_shift=shift 18553 ;; 18554 esac 18555 18556 case $ac_option in 18557 # Handling of the options. 18558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18559 ac_cs_recheck=: ;; 18560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18561 $as_echo "$ac_cs_version"; exit ;; 18562 --config | --confi | --conf | --con | --co | --c ) 18563 $as_echo "$ac_cs_config"; exit ;; 18564 --debug | --debu | --deb | --de | --d | -d ) 18565 debug=: ;; 18566 --file | --fil | --fi | --f ) 18567 $ac_shift 18568 case $ac_optarg in 18569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18570 '') as_fn_error $? "missing file argument" ;; 18571 esac 18572 as_fn_append CONFIG_FILES " '$ac_optarg'" 18573 ac_need_defaults=false;; 18574 --header | --heade | --head | --hea ) 18575 $ac_shift 18576 case $ac_optarg in 18577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18578 esac 18579 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18580 ac_need_defaults=false;; 18581 --he | --h) 18582 # Conflict between --help and --header 18583 as_fn_error $? "ambiguous option: \`$1' 18584Try \`$0 --help' for more information.";; 18585 --help | --hel | -h ) 18586 $as_echo "$ac_cs_usage"; exit ;; 18587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18588 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18589 ac_cs_silent=: ;; 18590 18591 # This is an error. 18592 -*) as_fn_error $? "unrecognized option: \`$1' 18593Try \`$0 --help' for more information." ;; 18594 18595 *) as_fn_append ac_config_targets " $1" 18596 ac_need_defaults=false ;; 18597 18598 esac 18599 shift 18600done 18601 18602ac_configure_extra_args= 18603 18604if $ac_cs_silent; then 18605 exec 6>/dev/null 18606 ac_configure_extra_args="$ac_configure_extra_args --silent" 18607fi 18608 18609_ACEOF 18610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18611if \$ac_cs_recheck; then 18612 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18613 shift 18614 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18615 CONFIG_SHELL='$SHELL' 18616 export CONFIG_SHELL 18617 exec "\$@" 18618fi 18619 18620_ACEOF 18621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18622exec 5>>config.log 18623{ 18624 echo 18625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18626## Running $as_me. ## 18627_ASBOX 18628 $as_echo "$ac_log" 18629} >&5 18630 18631_ACEOF 18632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18633# 18634# INIT-COMMANDS 18635# 18636AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18637 18638 18639# The HP-UX ksh and POSIX shell print the target directory to stdout 18640# if CDPATH is set. 18641(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18642 18643sed_quote_subst='$sed_quote_subst' 18644double_quote_subst='$double_quote_subst' 18645delay_variable_subst='$delay_variable_subst' 18646macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18647macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18648enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18649enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18650pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18651enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18652SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18653ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18654PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18655host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18656host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18657host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18658build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18659build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18660build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18661SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18662Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18663GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18664EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18665FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18666LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18667NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18668LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18669max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18670ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18671exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18672lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18673lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18674lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18675lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18676lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18677reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18678reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18679OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18680deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18681file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18682file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18683want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18684DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18685sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18686AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18687AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18688archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18689STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18690RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18691old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18692old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18693old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18694lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18695CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18696CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18697compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18698GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18699lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18700lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18701lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18702lt_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"`' 18703nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18704lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18705objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18706MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18707lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18708lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18709lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18710lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18711lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18712need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18713MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18714DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18715NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18716LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18717OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18718OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18719libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18720shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18721extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18722archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18723enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18724export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18725whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18726compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18727old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18728old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18729archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18730archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18731module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18732module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18733with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18734allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18735no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18736hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18737hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18738hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18739hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18740hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18741hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18742hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18743inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18744link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18745always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18746export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18747exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18748include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18749prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18750postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18751file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18752variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18753need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18754need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18755version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18756runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18757shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18758shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18759libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18760library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18761soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18762install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18763postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18764postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18765finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18766finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18767hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18768sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18769sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18770hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18771enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18772enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18773enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18774old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18775striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18776 18777LTCC='$LTCC' 18778LTCFLAGS='$LTCFLAGS' 18779compiler='$compiler_DEFAULT' 18780 18781# A function that is used when there is no print builtin or printf. 18782func_fallback_echo () 18783{ 18784 eval 'cat <<_LTECHO_EOF 18785\$1 18786_LTECHO_EOF' 18787} 18788 18789# Quote evaled strings. 18790for var in SHELL \ 18791ECHO \ 18792PATH_SEPARATOR \ 18793SED \ 18794GREP \ 18795EGREP \ 18796FGREP \ 18797LD \ 18798NM \ 18799LN_S \ 18800lt_SP2NL \ 18801lt_NL2SP \ 18802reload_flag \ 18803OBJDUMP \ 18804deplibs_check_method \ 18805file_magic_cmd \ 18806file_magic_glob \ 18807want_nocaseglob \ 18808DLLTOOL \ 18809sharedlib_from_linklib_cmd \ 18810AR \ 18811AR_FLAGS \ 18812archiver_list_spec \ 18813STRIP \ 18814RANLIB \ 18815CC \ 18816CFLAGS \ 18817compiler \ 18818lt_cv_sys_global_symbol_pipe \ 18819lt_cv_sys_global_symbol_to_cdecl \ 18820lt_cv_sys_global_symbol_to_c_name_address \ 18821lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18822nm_file_list_spec \ 18823lt_prog_compiler_no_builtin_flag \ 18824lt_prog_compiler_pic \ 18825lt_prog_compiler_wl \ 18826lt_prog_compiler_static \ 18827lt_cv_prog_compiler_c_o \ 18828need_locks \ 18829MANIFEST_TOOL \ 18830DSYMUTIL \ 18831NMEDIT \ 18832LIPO \ 18833OTOOL \ 18834OTOOL64 \ 18835shrext_cmds \ 18836export_dynamic_flag_spec \ 18837whole_archive_flag_spec \ 18838compiler_needs_object \ 18839with_gnu_ld \ 18840allow_undefined_flag \ 18841no_undefined_flag \ 18842hardcode_libdir_flag_spec \ 18843hardcode_libdir_separator \ 18844exclude_expsyms \ 18845include_expsyms \ 18846file_list_spec \ 18847variables_saved_for_relink \ 18848libname_spec \ 18849library_names_spec \ 18850soname_spec \ 18851install_override_mode \ 18852finish_eval \ 18853old_striplib \ 18854striplib; do 18855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18856 *[\\\\\\\`\\"\\\$]*) 18857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18858 ;; 18859 *) 18860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18861 ;; 18862 esac 18863done 18864 18865# Double-quote double-evaled strings. 18866for var in reload_cmds \ 18867old_postinstall_cmds \ 18868old_postuninstall_cmds \ 18869old_archive_cmds \ 18870extract_expsyms_cmds \ 18871old_archive_from_new_cmds \ 18872old_archive_from_expsyms_cmds \ 18873archive_cmds \ 18874archive_expsym_cmds \ 18875module_cmds \ 18876module_expsym_cmds \ 18877export_symbols_cmds \ 18878prelink_cmds \ 18879postlink_cmds \ 18880postinstall_cmds \ 18881postuninstall_cmds \ 18882finish_cmds \ 18883sys_lib_search_path_spec \ 18884sys_lib_dlsearch_path_spec; do 18885 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18886 *[\\\\\\\`\\"\\\$]*) 18887 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18888 ;; 18889 *) 18890 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18891 ;; 18892 esac 18893done 18894 18895ac_aux_dir='$ac_aux_dir' 18896xsi_shell='$xsi_shell' 18897lt_shell_append='$lt_shell_append' 18898 18899# See if we are running on zsh, and set the options which allow our 18900# commands through without removal of \ escapes INIT. 18901if test -n "\${ZSH_VERSION+set}" ; then 18902 setopt NO_GLOB_SUBST 18903fi 18904 18905 18906 PACKAGE='$PACKAGE' 18907 VERSION='$VERSION' 18908 TIMESTAMP='$TIMESTAMP' 18909 RM='$RM' 18910 ofile='$ofile' 18911 18912 18913 18914 18915_ACEOF 18916 18917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18918 18919# Handling of arguments. 18920for ac_config_target in $ac_config_targets 18921do 18922 case $ac_config_target in 18923 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18927 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18928 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;; 18929 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;; 18930 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18931 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18932 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;; 18933 18934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18935 esac 18936done 18937 18938 18939# If the user did not use the arguments to specify the items to instantiate, 18940# then the envvar interface is used. Set only those that are not. 18941# We use the long form for the default assignment because of an extremely 18942# bizarre bug on SunOS 4.1.3. 18943if $ac_need_defaults; then 18944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18947fi 18948 18949# Have a temporary directory for convenience. Make it in the build tree 18950# simply because there is no reason against having it here, and in addition, 18951# creating and moving files from /tmp can sometimes cause problems. 18952# Hook for its removal unless debugging. 18953# Note that there is a small window in which the directory will not be cleaned: 18954# after its creation but before its name has been assigned to `$tmp'. 18955$debug || 18956{ 18957 tmp= ac_tmp= 18958 trap 'exit_status=$? 18959 : "${ac_tmp:=$tmp}" 18960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18961' 0 18962 trap 'as_fn_exit 1' 1 2 13 15 18963} 18964# Create a (secure) tmp directory for tmp files. 18965 18966{ 18967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18968 test -d "$tmp" 18969} || 18970{ 18971 tmp=./conf$$-$RANDOM 18972 (umask 077 && mkdir "$tmp") 18973} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18974ac_tmp=$tmp 18975 18976# Set up the scripts for CONFIG_FILES section. 18977# No need to generate them if there are no CONFIG_FILES. 18978# This happens for instance with `./config.status config.h'. 18979if test -n "$CONFIG_FILES"; then 18980 18981 18982ac_cr=`echo X | tr X '\015'` 18983# On cygwin, bash can eat \r inside `` if the user requested igncr. 18984# But we know of no other shell where ac_cr would be empty at this 18985# point, so we can use a bashism as a fallback. 18986if test "x$ac_cr" = x; then 18987 eval ac_cr=\$\'\\r\' 18988fi 18989ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18990if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18991 ac_cs_awk_cr='\\r' 18992else 18993 ac_cs_awk_cr=$ac_cr 18994fi 18995 18996echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18997_ACEOF 18998 18999 19000{ 19001 echo "cat >conf$$subs.awk <<_ACEOF" && 19002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19003 echo "_ACEOF" 19004} >conf$$subs.sh || 19005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19006ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19007ac_delim='%!_!# ' 19008for ac_last_try in false false false false false :; do 19009 . ./conf$$subs.sh || 19010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19011 19012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19013 if test $ac_delim_n = $ac_delim_num; then 19014 break 19015 elif $ac_last_try; then 19016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19017 else 19018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19019 fi 19020done 19021rm -f conf$$subs.sh 19022 19023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19024cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19025_ACEOF 19026sed -n ' 19027h 19028s/^/S["/; s/!.*/"]=/ 19029p 19030g 19031s/^[^!]*!// 19032:repl 19033t repl 19034s/'"$ac_delim"'$// 19035t delim 19036:nl 19037h 19038s/\(.\{148\}\)..*/\1/ 19039t more1 19040s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19041p 19042n 19043b repl 19044:more1 19045s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19046p 19047g 19048s/.\{148\}// 19049t nl 19050:delim 19051h 19052s/\(.\{148\}\)..*/\1/ 19053t more2 19054s/["\\]/\\&/g; s/^/"/; s/$/"/ 19055p 19056b 19057:more2 19058s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19059p 19060g 19061s/.\{148\}// 19062t delim 19063' <conf$$subs.awk | sed ' 19064/^[^""]/{ 19065 N 19066 s/\n// 19067} 19068' >>$CONFIG_STATUS || ac_write_fail=1 19069rm -f conf$$subs.awk 19070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19071_ACAWK 19072cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19073 for (key in S) S_is_set[key] = 1 19074 FS = "" 19075 19076} 19077{ 19078 line = $ 0 19079 nfields = split(line, field, "@") 19080 substed = 0 19081 len = length(field[1]) 19082 for (i = 2; i < nfields; i++) { 19083 key = field[i] 19084 keylen = length(key) 19085 if (S_is_set[key]) { 19086 value = S[key] 19087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19088 len += length(value) + length(field[++i]) 19089 substed = 1 19090 } else 19091 len += 1 + keylen 19092 } 19093 19094 print line 19095} 19096 19097_ACAWK 19098_ACEOF 19099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19100if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19102else 19103 cat 19104fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19106_ACEOF 19107 19108# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19109# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19110# trailing colons and then remove the whole line if VPATH becomes empty 19111# (actually we leave an empty line to preserve line numbers). 19112if test "x$srcdir" = x.; then 19113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19114h 19115s/// 19116s/^/:/ 19117s/[ ]*$/:/ 19118s/:\$(srcdir):/:/g 19119s/:\${srcdir}:/:/g 19120s/:@srcdir@:/:/g 19121s/^:*// 19122s/:*$// 19123x 19124s/\(=[ ]*\).*/\1/ 19125G 19126s/\n// 19127s/^[^=]*=[ ]*$// 19128}' 19129fi 19130 19131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19132fi # test -n "$CONFIG_FILES" 19133 19134# Set up the scripts for CONFIG_HEADERS section. 19135# No need to generate them if there are no CONFIG_HEADERS. 19136# This happens for instance with `./config.status Makefile'. 19137if test -n "$CONFIG_HEADERS"; then 19138cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19139BEGIN { 19140_ACEOF 19141 19142# Transform confdefs.h into an awk script `defines.awk', embedded as 19143# here-document in config.status, that substitutes the proper values into 19144# config.h.in to produce config.h. 19145 19146# Create a delimiter string that does not exist in confdefs.h, to ease 19147# handling of long lines. 19148ac_delim='%!_!# ' 19149for ac_last_try in false false :; do 19150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19151 if test -z "$ac_tt"; then 19152 break 19153 elif $ac_last_try; then 19154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19155 else 19156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19157 fi 19158done 19159 19160# For the awk script, D is an array of macro values keyed by name, 19161# likewise P contains macro parameters if any. Preserve backslash 19162# newline sequences. 19163 19164ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19165sed -n ' 19166s/.\{148\}/&'"$ac_delim"'/g 19167t rset 19168:rset 19169s/^[ ]*#[ ]*define[ ][ ]*/ / 19170t def 19171d 19172:def 19173s/\\$// 19174t bsnl 19175s/["\\]/\\&/g 19176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19177D["\1"]=" \3"/p 19178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19179d 19180:bsnl 19181s/["\\]/\\&/g 19182s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19183D["\1"]=" \3\\\\\\n"\\/p 19184t cont 19185s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19186t cont 19187d 19188:cont 19189n 19190s/.\{148\}/&'"$ac_delim"'/g 19191t clear 19192:clear 19193s/\\$// 19194t bsnlc 19195s/["\\]/\\&/g; s/^/"/; s/$/"/p 19196d 19197:bsnlc 19198s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19199b cont 19200' <confdefs.h | sed ' 19201s/'"$ac_delim"'/"\\\ 19202"/g' >>$CONFIG_STATUS || ac_write_fail=1 19203 19204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19205 for (key in D) D_is_set[key] = 1 19206 FS = "" 19207} 19208/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19209 line = \$ 0 19210 split(line, arg, " ") 19211 if (arg[1] == "#") { 19212 defundef = arg[2] 19213 mac1 = arg[3] 19214 } else { 19215 defundef = substr(arg[1], 2) 19216 mac1 = arg[2] 19217 } 19218 split(mac1, mac2, "(") #) 19219 macro = mac2[1] 19220 prefix = substr(line, 1, index(line, defundef) - 1) 19221 if (D_is_set[macro]) { 19222 # Preserve the white space surrounding the "#". 19223 print prefix "define", macro P[macro] D[macro] 19224 next 19225 } else { 19226 # Replace #undef with comments. This is necessary, for example, 19227 # in the case of _POSIX_SOURCE, which is predefined and required 19228 # on some systems where configure will not decide to define it. 19229 if (defundef == "undef") { 19230 print "/*", prefix defundef, macro, "*/" 19231 next 19232 } 19233 } 19234} 19235{ print } 19236_ACAWK 19237_ACEOF 19238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19240fi # test -n "$CONFIG_HEADERS" 19241 19242 19243eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19244shift 19245for ac_tag 19246do 19247 case $ac_tag in 19248 :[FHLC]) ac_mode=$ac_tag; continue;; 19249 esac 19250 case $ac_mode$ac_tag in 19251 :[FHL]*:*);; 19252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19253 :[FH]-) ac_tag=-:-;; 19254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19255 esac 19256 ac_save_IFS=$IFS 19257 IFS=: 19258 set x $ac_tag 19259 IFS=$ac_save_IFS 19260 shift 19261 ac_file=$1 19262 shift 19263 19264 case $ac_mode in 19265 :L) ac_source=$1;; 19266 :[FH]) 19267 ac_file_inputs= 19268 for ac_f 19269 do 19270 case $ac_f in 19271 -) ac_f="$ac_tmp/stdin";; 19272 *) # Look for the file first in the build tree, then in the source tree 19273 # (if the path is not absolute). The absolute path cannot be DOS-style, 19274 # because $ac_f cannot contain `:'. 19275 test -f "$ac_f" || 19276 case $ac_f in 19277 [\\/$]*) false;; 19278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19279 esac || 19280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19281 esac 19282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19283 as_fn_append ac_file_inputs " '$ac_f'" 19284 done 19285 19286 # Let's still pretend it is `configure' which instantiates (i.e., don't 19287 # use $as_me), people would be surprised to read: 19288 # /* config.h. Generated by config.status. */ 19289 configure_input='Generated from '` 19290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19291 `' by configure.' 19292 if test x"$ac_file" != x-; then 19293 configure_input="$ac_file. $configure_input" 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19295$as_echo "$as_me: creating $ac_file" >&6;} 19296 fi 19297 # Neutralize special characters interpreted by sed in replacement strings. 19298 case $configure_input in #( 19299 *\&* | *\|* | *\\* ) 19300 ac_sed_conf_input=`$as_echo "$configure_input" | 19301 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19302 *) ac_sed_conf_input=$configure_input;; 19303 esac 19304 19305 case $ac_tag in 19306 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19308 esac 19309 ;; 19310 esac 19311 19312 ac_dir=`$as_dirname -- "$ac_file" || 19313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19314 X"$ac_file" : 'X\(//\)[^/]' \| \ 19315 X"$ac_file" : 'X\(//\)$' \| \ 19316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19317$as_echo X"$ac_file" | 19318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19319 s//\1/ 19320 q 19321 } 19322 /^X\(\/\/\)[^/].*/{ 19323 s//\1/ 19324 q 19325 } 19326 /^X\(\/\/\)$/{ 19327 s//\1/ 19328 q 19329 } 19330 /^X\(\/\).*/{ 19331 s//\1/ 19332 q 19333 } 19334 s/.*/./; q'` 19335 as_dir="$ac_dir"; as_fn_mkdir_p 19336 ac_builddir=. 19337 19338case "$ac_dir" in 19339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19340*) 19341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19342 # A ".." for each directory in $ac_dir_suffix. 19343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19344 case $ac_top_builddir_sub in 19345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19347 esac ;; 19348esac 19349ac_abs_top_builddir=$ac_pwd 19350ac_abs_builddir=$ac_pwd$ac_dir_suffix 19351# for backward compatibility: 19352ac_top_builddir=$ac_top_build_prefix 19353 19354case $srcdir in 19355 .) # We are building in place. 19356 ac_srcdir=. 19357 ac_top_srcdir=$ac_top_builddir_sub 19358 ac_abs_top_srcdir=$ac_pwd ;; 19359 [\\/]* | ?:[\\/]* ) # Absolute name. 19360 ac_srcdir=$srcdir$ac_dir_suffix; 19361 ac_top_srcdir=$srcdir 19362 ac_abs_top_srcdir=$srcdir ;; 19363 *) # Relative name. 19364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19365 ac_top_srcdir=$ac_top_build_prefix$srcdir 19366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19367esac 19368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19369 19370 19371 case $ac_mode in 19372 :F) 19373 # 19374 # CONFIG_FILE 19375 # 19376 19377 case $INSTALL in 19378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19380 esac 19381 ac_MKDIR_P=$MKDIR_P 19382 case $MKDIR_P in 19383 [\\/$]* | ?:[\\/]* ) ;; 19384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19385 esac 19386_ACEOF 19387 19388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19389# If the template does not know about datarootdir, expand it. 19390# FIXME: This hack should be removed a few years after 2.60. 19391ac_datarootdir_hack=; ac_datarootdir_seen= 19392ac_sed_dataroot=' 19393/datarootdir/ { 19394 p 19395 q 19396} 19397/@datadir@/p 19398/@docdir@/p 19399/@infodir@/p 19400/@localedir@/p 19401/@mandir@/p' 19402case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19403*datarootdir*) ac_datarootdir_seen=yes;; 19404*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19406$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19407_ACEOF 19408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19409 ac_datarootdir_hack=' 19410 s&@datadir@&$datadir&g 19411 s&@docdir@&$docdir&g 19412 s&@infodir@&$infodir&g 19413 s&@localedir@&$localedir&g 19414 s&@mandir@&$mandir&g 19415 s&\\\${datarootdir}&$datarootdir&g' ;; 19416esac 19417_ACEOF 19418 19419# Neutralize VPATH when `$srcdir' = `.'. 19420# Shell code in configure.ac might set extrasub. 19421# FIXME: do we really want to maintain this feature? 19422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19423ac_sed_extra="$ac_vpsub 19424$extrasub 19425_ACEOF 19426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19427:t 19428/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19429s|@configure_input@|$ac_sed_conf_input|;t t 19430s&@top_builddir@&$ac_top_builddir_sub&;t t 19431s&@top_build_prefix@&$ac_top_build_prefix&;t t 19432s&@srcdir@&$ac_srcdir&;t t 19433s&@abs_srcdir@&$ac_abs_srcdir&;t t 19434s&@top_srcdir@&$ac_top_srcdir&;t t 19435s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19436s&@builddir@&$ac_builddir&;t t 19437s&@abs_builddir@&$ac_abs_builddir&;t t 19438s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19439s&@INSTALL@&$ac_INSTALL&;t t 19440s&@MKDIR_P@&$ac_MKDIR_P&;t t 19441$ac_datarootdir_hack 19442" 19443eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19445 19446test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19449 "$ac_tmp/out"`; test -z "$ac_out"; } && 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19451which seems to be undefined. Please make sure it is defined" >&5 19452$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19453which seems to be undefined. Please make sure it is defined" >&2;} 19454 19455 rm -f "$ac_tmp/stdin" 19456 case $ac_file in 19457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19459 esac \ 19460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19461 ;; 19462 :H) 19463 # 19464 # CONFIG_HEADER 19465 # 19466 if test x"$ac_file" != x-; then 19467 { 19468 $as_echo "/* $configure_input */" \ 19469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19470 } >"$ac_tmp/config.h" \ 19471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19474$as_echo "$as_me: $ac_file is unchanged" >&6;} 19475 else 19476 rm -f "$ac_file" 19477 mv "$ac_tmp/config.h" "$ac_file" \ 19478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19479 fi 19480 else 19481 $as_echo "/* $configure_input */" \ 19482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19483 || as_fn_error $? "could not create -" "$LINENO" 5 19484 fi 19485# Compute "$ac_file"'s index in $config_headers. 19486_am_arg="$ac_file" 19487_am_stamp_count=1 19488for _am_header in $config_headers :; do 19489 case $_am_header in 19490 $_am_arg | $_am_arg:* ) 19491 break ;; 19492 * ) 19493 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19494 esac 19495done 19496echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19497$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19498 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19499 X"$_am_arg" : 'X\(//\)$' \| \ 19500 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19501$as_echo X"$_am_arg" | 19502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19503 s//\1/ 19504 q 19505 } 19506 /^X\(\/\/\)[^/].*/{ 19507 s//\1/ 19508 q 19509 } 19510 /^X\(\/\/\)$/{ 19511 s//\1/ 19512 q 19513 } 19514 /^X\(\/\).*/{ 19515 s//\1/ 19516 q 19517 } 19518 s/.*/./; q'`/stamp-h$_am_stamp_count 19519 ;; 19520 19521 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19522$as_echo "$as_me: executing $ac_file commands" >&6;} 19523 ;; 19524 esac 19525 19526 19527 case $ac_file$ac_mode in 19528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19529 # Older Autoconf quotes --file arguments for eval, but not when files 19530 # are listed without --file. Let's play safe and only enable the eval 19531 # if we detect the quoting. 19532 case $CONFIG_FILES in 19533 *\'*) eval set x "$CONFIG_FILES" ;; 19534 *) set x $CONFIG_FILES ;; 19535 esac 19536 shift 19537 for mf 19538 do 19539 # Strip MF so we end up with the name of the file. 19540 mf=`echo "$mf" | sed -e 's/:.*$//'` 19541 # Check whether this is an Automake generated Makefile or not. 19542 # We used to match only the files named 'Makefile.in', but 19543 # some people rename them; so instead we look at the file content. 19544 # Grep'ing the first line is not enough: some people post-process 19545 # each Makefile.in and add a new line on top of each file to say so. 19546 # Grep'ing the whole file is not good either: AIX grep has a line 19547 # limit of 2048, but all sed's we know have understand at least 4000. 19548 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19549 dirpart=`$as_dirname -- "$mf" || 19550$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19551 X"$mf" : 'X\(//\)[^/]' \| \ 19552 X"$mf" : 'X\(//\)$' \| \ 19553 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19554$as_echo X"$mf" | 19555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19556 s//\1/ 19557 q 19558 } 19559 /^X\(\/\/\)[^/].*/{ 19560 s//\1/ 19561 q 19562 } 19563 /^X\(\/\/\)$/{ 19564 s//\1/ 19565 q 19566 } 19567 /^X\(\/\).*/{ 19568 s//\1/ 19569 q 19570 } 19571 s/.*/./; q'` 19572 else 19573 continue 19574 fi 19575 # Extract the definition of DEPDIR, am__include, and am__quote 19576 # from the Makefile without running 'make'. 19577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19578 test -z "$DEPDIR" && continue 19579 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19580 test -z "$am__include" && continue 19581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19582 # Find all dependency output files, they are included files with 19583 # $(DEPDIR) in their names. We invoke sed twice because it is the 19584 # simplest approach to changing $(DEPDIR) to its actual value in the 19585 # expansion. 19586 for file in `sed -n " 19587 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19588 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19589 # Make sure the directory exists. 19590 test -f "$dirpart/$file" && continue 19591 fdir=`$as_dirname -- "$file" || 19592$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19593 X"$file" : 'X\(//\)[^/]' \| \ 19594 X"$file" : 'X\(//\)$' \| \ 19595 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19596$as_echo X"$file" | 19597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19598 s//\1/ 19599 q 19600 } 19601 /^X\(\/\/\)[^/].*/{ 19602 s//\1/ 19603 q 19604 } 19605 /^X\(\/\/\)$/{ 19606 s//\1/ 19607 q 19608 } 19609 /^X\(\/\).*/{ 19610 s//\1/ 19611 q 19612 } 19613 s/.*/./; q'` 19614 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19615 # echo "creating $dirpart/$file" 19616 echo '# dummy' > "$dirpart/$file" 19617 done 19618 done 19619} 19620 ;; 19621 "libtool":C) 19622 19623 # See if we are running on zsh, and set the options which allow our 19624 # commands through without removal of \ escapes. 19625 if test -n "${ZSH_VERSION+set}" ; then 19626 setopt NO_GLOB_SUBST 19627 fi 19628 19629 cfgfile="${ofile}T" 19630 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19631 $RM "$cfgfile" 19632 19633 cat <<_LT_EOF >> "$cfgfile" 19634#! $SHELL 19635 19636# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19637# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19638# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19639# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19640# 19641# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19642# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19643# Foundation, Inc. 19644# Written by Gordon Matzigkeit, 1996 19645# 19646# This file is part of GNU Libtool. 19647# 19648# GNU Libtool is free software; you can redistribute it and/or 19649# modify it under the terms of the GNU General Public License as 19650# published by the Free Software Foundation; either version 2 of 19651# the License, or (at your option) any later version. 19652# 19653# As a special exception to the GNU General Public License, 19654# if you distribute this file as part of a program or library that 19655# is built using GNU Libtool, you may include this file under the 19656# same distribution terms that you use for the rest of that program. 19657# 19658# GNU Libtool is distributed in the hope that it will be useful, 19659# but WITHOUT ANY WARRANTY; without even the implied warranty of 19660# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19661# GNU General Public License for more details. 19662# 19663# You should have received a copy of the GNU General Public License 19664# along with GNU Libtool; see the file COPYING. If not, a copy 19665# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19666# obtained by writing to the Free Software Foundation, Inc., 19667# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19668 19669 19670# The names of the tagged configurations supported by this script. 19671available_tags="" 19672 19673# ### BEGIN LIBTOOL CONFIG 19674 19675# Which release of libtool.m4 was used? 19676macro_version=$macro_version 19677macro_revision=$macro_revision 19678 19679# Whether or not to build shared libraries. 19680build_libtool_libs=$enable_shared 19681 19682# Whether or not to build static libraries. 19683build_old_libs=$enable_static 19684 19685# What type of objects to build. 19686pic_mode=$pic_mode 19687 19688# Whether or not to optimize for fast installation. 19689fast_install=$enable_fast_install 19690 19691# Shell to use when invoking shell scripts. 19692SHELL=$lt_SHELL 19693 19694# An echo program that protects backslashes. 19695ECHO=$lt_ECHO 19696 19697# The PATH separator for the build system. 19698PATH_SEPARATOR=$lt_PATH_SEPARATOR 19699 19700# The host system. 19701host_alias=$host_alias 19702host=$host 19703host_os=$host_os 19704 19705# The build system. 19706build_alias=$build_alias 19707build=$build 19708build_os=$build_os 19709 19710# A sed program that does not truncate output. 19711SED=$lt_SED 19712 19713# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19714Xsed="\$SED -e 1s/^X//" 19715 19716# A grep program that handles long lines. 19717GREP=$lt_GREP 19718 19719# An ERE matcher. 19720EGREP=$lt_EGREP 19721 19722# A literal string matcher. 19723FGREP=$lt_FGREP 19724 19725# A BSD- or MS-compatible name lister. 19726NM=$lt_NM 19727 19728# Whether we need soft or hard links. 19729LN_S=$lt_LN_S 19730 19731# What is the maximum length of a command? 19732max_cmd_len=$max_cmd_len 19733 19734# Object file suffix (normally "o"). 19735objext=$ac_objext 19736 19737# Executable file suffix (normally ""). 19738exeext=$exeext 19739 19740# whether the shell understands "unset". 19741lt_unset=$lt_unset 19742 19743# turn spaces into newlines. 19744SP2NL=$lt_lt_SP2NL 19745 19746# turn newlines into spaces. 19747NL2SP=$lt_lt_NL2SP 19748 19749# convert \$build file names to \$host format. 19750to_host_file_cmd=$lt_cv_to_host_file_cmd 19751 19752# convert \$build files to toolchain format. 19753to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19754 19755# An object symbol dumper. 19756OBJDUMP=$lt_OBJDUMP 19757 19758# Method to check whether dependent libraries are shared objects. 19759deplibs_check_method=$lt_deplibs_check_method 19760 19761# Command to use when deplibs_check_method = "file_magic". 19762file_magic_cmd=$lt_file_magic_cmd 19763 19764# How to find potential files when deplibs_check_method = "file_magic". 19765file_magic_glob=$lt_file_magic_glob 19766 19767# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19768want_nocaseglob=$lt_want_nocaseglob 19769 19770# DLL creation program. 19771DLLTOOL=$lt_DLLTOOL 19772 19773# Command to associate shared and link libraries. 19774sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19775 19776# The archiver. 19777AR=$lt_AR 19778 19779# Flags to create an archive. 19780AR_FLAGS=$lt_AR_FLAGS 19781 19782# How to feed a file listing to the archiver. 19783archiver_list_spec=$lt_archiver_list_spec 19784 19785# A symbol stripping program. 19786STRIP=$lt_STRIP 19787 19788# Commands used to install an old-style archive. 19789RANLIB=$lt_RANLIB 19790old_postinstall_cmds=$lt_old_postinstall_cmds 19791old_postuninstall_cmds=$lt_old_postuninstall_cmds 19792 19793# Whether to use a lock for old archive extraction. 19794lock_old_archive_extraction=$lock_old_archive_extraction 19795 19796# A C compiler. 19797LTCC=$lt_CC 19798 19799# LTCC compiler flags. 19800LTCFLAGS=$lt_CFLAGS 19801 19802# Take the output of nm and produce a listing of raw symbols and C names. 19803global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19804 19805# Transform the output of nm in a proper C declaration. 19806global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19807 19808# Transform the output of nm in a C name address pair. 19809global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19810 19811# Transform the output of nm in a C name address pair when lib prefix is needed. 19812global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19813 19814# Specify filename containing input files for \$NM. 19815nm_file_list_spec=$lt_nm_file_list_spec 19816 19817# The root where to search for dependent libraries,and in which our libraries should be installed. 19818lt_sysroot=$lt_sysroot 19819 19820# The name of the directory that contains temporary libtool files. 19821objdir=$objdir 19822 19823# Used to examine libraries when file_magic_cmd begins with "file". 19824MAGIC_CMD=$MAGIC_CMD 19825 19826# Must we lock files when doing compilation? 19827need_locks=$lt_need_locks 19828 19829# Manifest tool. 19830MANIFEST_TOOL=$lt_MANIFEST_TOOL 19831 19832# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19833DSYMUTIL=$lt_DSYMUTIL 19834 19835# Tool to change global to local symbols on Mac OS X. 19836NMEDIT=$lt_NMEDIT 19837 19838# Tool to manipulate fat objects and archives on Mac OS X. 19839LIPO=$lt_LIPO 19840 19841# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19842OTOOL=$lt_OTOOL 19843 19844# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19845OTOOL64=$lt_OTOOL64 19846 19847# Old archive suffix (normally "a"). 19848libext=$libext 19849 19850# Shared library suffix (normally ".so"). 19851shrext_cmds=$lt_shrext_cmds 19852 19853# The commands to extract the exported symbol list from a shared archive. 19854extract_expsyms_cmds=$lt_extract_expsyms_cmds 19855 19856# Variables whose values should be saved in libtool wrapper scripts and 19857# restored at link time. 19858variables_saved_for_relink=$lt_variables_saved_for_relink 19859 19860# Do we need the "lib" prefix for modules? 19861need_lib_prefix=$need_lib_prefix 19862 19863# Do we need a version for libraries? 19864need_version=$need_version 19865 19866# Library versioning type. 19867version_type=$version_type 19868 19869# Shared library runtime path variable. 19870runpath_var=$runpath_var 19871 19872# Shared library path variable. 19873shlibpath_var=$shlibpath_var 19874 19875# Is shlibpath searched before the hard-coded library search path? 19876shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19877 19878# Format of library name prefix. 19879libname_spec=$lt_libname_spec 19880 19881# List of archive names. First name is the real one, the rest are links. 19882# The last name is the one that the linker finds with -lNAME 19883library_names_spec=$lt_library_names_spec 19884 19885# The coded name of the library, if different from the real name. 19886soname_spec=$lt_soname_spec 19887 19888# Permission mode override for installation of shared libraries. 19889install_override_mode=$lt_install_override_mode 19890 19891# Command to use after installation of a shared archive. 19892postinstall_cmds=$lt_postinstall_cmds 19893 19894# Command to use after uninstallation of a shared archive. 19895postuninstall_cmds=$lt_postuninstall_cmds 19896 19897# Commands used to finish a libtool library installation in a directory. 19898finish_cmds=$lt_finish_cmds 19899 19900# As "finish_cmds", except a single script fragment to be evaled but 19901# not shown. 19902finish_eval=$lt_finish_eval 19903 19904# Whether we should hardcode library paths into libraries. 19905hardcode_into_libs=$hardcode_into_libs 19906 19907# Compile-time system search path for libraries. 19908sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19909 19910# Run-time system search path for libraries. 19911sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19912 19913# Whether dlopen is supported. 19914dlopen_support=$enable_dlopen 19915 19916# Whether dlopen of programs is supported. 19917dlopen_self=$enable_dlopen_self 19918 19919# Whether dlopen of statically linked programs is supported. 19920dlopen_self_static=$enable_dlopen_self_static 19921 19922# Commands to strip libraries. 19923old_striplib=$lt_old_striplib 19924striplib=$lt_striplib 19925 19926 19927# The linker used to build libraries. 19928LD=$lt_LD 19929 19930# How to create reloadable object files. 19931reload_flag=$lt_reload_flag 19932reload_cmds=$lt_reload_cmds 19933 19934# Commands used to build an old-style archive. 19935old_archive_cmds=$lt_old_archive_cmds 19936 19937# A language specific compiler. 19938CC=$lt_compiler 19939 19940# Is the compiler the GNU compiler? 19941with_gcc=$GCC 19942 19943# Compiler flag to turn off builtin functions. 19944no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19945 19946# Additional compiler flags for building library objects. 19947pic_flag=$lt_lt_prog_compiler_pic 19948 19949# How to pass a linker flag through the compiler. 19950wl=$lt_lt_prog_compiler_wl 19951 19952# Compiler flag to prevent dynamic linking. 19953link_static_flag=$lt_lt_prog_compiler_static 19954 19955# Does compiler simultaneously support -c and -o options? 19956compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19957 19958# Whether or not to add -lc for building shared libraries. 19959build_libtool_need_lc=$archive_cmds_need_lc 19960 19961# Whether or not to disallow shared libs when runtime libs are static. 19962allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19963 19964# Compiler flag to allow reflexive dlopens. 19965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19966 19967# Compiler flag to generate shared objects directly from archives. 19968whole_archive_flag_spec=$lt_whole_archive_flag_spec 19969 19970# Whether the compiler copes with passing no objects directly. 19971compiler_needs_object=$lt_compiler_needs_object 19972 19973# Create an old-style archive from a shared archive. 19974old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19975 19976# Create a temporary old-style archive to link instead of a shared archive. 19977old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19978 19979# Commands used to build a shared archive. 19980archive_cmds=$lt_archive_cmds 19981archive_expsym_cmds=$lt_archive_expsym_cmds 19982 19983# Commands used to build a loadable module if different from building 19984# a shared archive. 19985module_cmds=$lt_module_cmds 19986module_expsym_cmds=$lt_module_expsym_cmds 19987 19988# Whether we are building with GNU ld or not. 19989with_gnu_ld=$lt_with_gnu_ld 19990 19991# Flag that allows shared libraries with undefined symbols to be built. 19992allow_undefined_flag=$lt_allow_undefined_flag 19993 19994# Flag that enforces no undefined symbols. 19995no_undefined_flag=$lt_no_undefined_flag 19996 19997# Flag to hardcode \$libdir into a binary during linking. 19998# This must work even if \$libdir does not exist 19999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20000 20001# Whether we need a single "-rpath" flag with a separated argument. 20002hardcode_libdir_separator=$lt_hardcode_libdir_separator 20003 20004# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20005# DIR into the resulting binary. 20006hardcode_direct=$hardcode_direct 20007 20008# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20009# DIR into the resulting binary and the resulting library dependency is 20010# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20011# library is relocated. 20012hardcode_direct_absolute=$hardcode_direct_absolute 20013 20014# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20015# into the resulting binary. 20016hardcode_minus_L=$hardcode_minus_L 20017 20018# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20019# into the resulting binary. 20020hardcode_shlibpath_var=$hardcode_shlibpath_var 20021 20022# Set to "yes" if building a shared library automatically hardcodes DIR 20023# into the library and all subsequent libraries and executables linked 20024# against it. 20025hardcode_automatic=$hardcode_automatic 20026 20027# Set to yes if linker adds runtime paths of dependent libraries 20028# to runtime path list. 20029inherit_rpath=$inherit_rpath 20030 20031# Whether libtool must link a program against all its dependency libraries. 20032link_all_deplibs=$link_all_deplibs 20033 20034# Set to "yes" if exported symbols are required. 20035always_export_symbols=$always_export_symbols 20036 20037# The commands to list exported symbols. 20038export_symbols_cmds=$lt_export_symbols_cmds 20039 20040# Symbols that should not be listed in the preloaded symbols. 20041exclude_expsyms=$lt_exclude_expsyms 20042 20043# Symbols that must always be exported. 20044include_expsyms=$lt_include_expsyms 20045 20046# Commands necessary for linking programs (against libraries) with templates. 20047prelink_cmds=$lt_prelink_cmds 20048 20049# Commands necessary for finishing linking programs. 20050postlink_cmds=$lt_postlink_cmds 20051 20052# Specify filename containing input files. 20053file_list_spec=$lt_file_list_spec 20054 20055# How to hardcode a shared library path into an executable. 20056hardcode_action=$hardcode_action 20057 20058# ### END LIBTOOL CONFIG 20059 20060_LT_EOF 20061 20062 case $host_os in 20063 aix3*) 20064 cat <<\_LT_EOF >> "$cfgfile" 20065# AIX sometimes has problems with the GCC collect2 program. For some 20066# reason, if we set the COLLECT_NAMES environment variable, the problems 20067# vanish in a puff of smoke. 20068if test "X${COLLECT_NAMES+set}" != Xset; then 20069 COLLECT_NAMES= 20070 export COLLECT_NAMES 20071fi 20072_LT_EOF 20073 ;; 20074 esac 20075 20076 20077ltmain="$ac_aux_dir/ltmain.sh" 20078 20079 20080 # We use sed instead of cat because bash on DJGPP gets confused if 20081 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20082 # text mode, it properly converts lines to CR/LF. This bash problem 20083 # is reportedly fixed, but why not run on old versions too? 20084 sed '$q' "$ltmain" >> "$cfgfile" \ 20085 || (rm -f "$cfgfile"; exit 1) 20086 20087 if test x"$xsi_shell" = xyes; then 20088 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20089func_dirname ()\ 20090{\ 20091\ case ${1} in\ 20092\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20093\ * ) func_dirname_result="${3}" ;;\ 20094\ esac\ 20095} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20096 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20098test 0 -eq $? || _lt_function_replace_fail=: 20099 20100 20101 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20102func_basename ()\ 20103{\ 20104\ func_basename_result="${1##*/}"\ 20105} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20106 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20108test 0 -eq $? || _lt_function_replace_fail=: 20109 20110 20111 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20112func_dirname_and_basename ()\ 20113{\ 20114\ case ${1} in\ 20115\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20116\ * ) func_dirname_result="${3}" ;;\ 20117\ esac\ 20118\ func_basename_result="${1##*/}"\ 20119} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20120 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20122test 0 -eq $? || _lt_function_replace_fail=: 20123 20124 20125 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20126func_stripname ()\ 20127{\ 20128\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20129\ # positional parameters, so assign one to ordinary parameter first.\ 20130\ func_stripname_result=${3}\ 20131\ func_stripname_result=${func_stripname_result#"${1}"}\ 20132\ func_stripname_result=${func_stripname_result%"${2}"}\ 20133} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20134 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20136test 0 -eq $? || _lt_function_replace_fail=: 20137 20138 20139 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20140func_split_long_opt ()\ 20141{\ 20142\ func_split_long_opt_name=${1%%=*}\ 20143\ func_split_long_opt_arg=${1#*=}\ 20144} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20145 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20147test 0 -eq $? || _lt_function_replace_fail=: 20148 20149 20150 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20151func_split_short_opt ()\ 20152{\ 20153\ func_split_short_opt_arg=${1#??}\ 20154\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20155} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20156 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20158test 0 -eq $? || _lt_function_replace_fail=: 20159 20160 20161 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20162func_lo2o ()\ 20163{\ 20164\ case ${1} in\ 20165\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20166\ *) func_lo2o_result=${1} ;;\ 20167\ esac\ 20168} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20169 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20171test 0 -eq $? || _lt_function_replace_fail=: 20172 20173 20174 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20175func_xform ()\ 20176{\ 20177 func_xform_result=${1%.*}.lo\ 20178} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20179 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20181test 0 -eq $? || _lt_function_replace_fail=: 20182 20183 20184 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20185func_arith ()\ 20186{\ 20187 func_arith_result=$(( $* ))\ 20188} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20189 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20191test 0 -eq $? || _lt_function_replace_fail=: 20192 20193 20194 sed -e '/^func_len ()$/,/^} # func_len /c\ 20195func_len ()\ 20196{\ 20197 func_len_result=${#1}\ 20198} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20199 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20201test 0 -eq $? || _lt_function_replace_fail=: 20202 20203fi 20204 20205if test x"$lt_shell_append" = xyes; then 20206 sed -e '/^func_append ()$/,/^} # func_append /c\ 20207func_append ()\ 20208{\ 20209 eval "${1}+=\\${2}"\ 20210} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20211 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20213test 0 -eq $? || _lt_function_replace_fail=: 20214 20215 20216 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20217func_append_quoted ()\ 20218{\ 20219\ func_quote_for_eval "${2}"\ 20220\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20221} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20222 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20224test 0 -eq $? || _lt_function_replace_fail=: 20225 20226 20227 # Save a `func_append' function call where possible by direct use of '+=' 20228 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20229 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20231 test 0 -eq $? || _lt_function_replace_fail=: 20232else 20233 # Save a `func_append' function call even when '+=' is not available 20234 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20235 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20237 test 0 -eq $? || _lt_function_replace_fail=: 20238fi 20239 20240if test x"$_lt_function_replace_fail" = x":"; then 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20242$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20243fi 20244 20245 20246 mv -f "$cfgfile" "$ofile" || 20247 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20248 chmod +x "$ofile" 20249 20250 ;; 20251 20252 esac 20253done # for ac_tag 20254 20255 20256as_fn_exit 0 20257_ACEOF 20258ac_clean_files=$ac_clean_files_save 20259 20260test $ac_write_fail = 0 || 20261 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20262 20263 20264# configure is writing to config.log, and then calls config.status. 20265# config.status does its own redirection, appending to config.log. 20266# Unfortunately, on DOS this fails, as config.log is still kept open 20267# by configure, so config.status won't be able to write to it; its 20268# output is simply discarded. So we exec the FD to /dev/null, 20269# effectively closing config.log, so it can be properly (re)opened and 20270# appended to by config.status. When coming back to configure, we 20271# need to make the FD available again. 20272if test "$no_create" != yes; then 20273 ac_cs_success=: 20274 ac_config_status_args= 20275 test "$silent" = yes && 20276 ac_config_status_args="$ac_config_status_args --quiet" 20277 exec 5>/dev/null 20278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20279 exec 5>>config.log 20280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20281 # would make configure fail if this is the last instruction. 20282 $ac_cs_success || as_fn_exit 1 20283fi 20284if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20286$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20287fi 20288 20289