configure revision fef5d1ff
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXv 1.0.10. 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.10' 575PACKAGE_STRING='libXv 1.0.10' 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.10 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.10:";; 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.10 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.10, 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.14' 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.10' 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# POSIX will say in a future version that running "rm -f" with no argument 2773# is OK; and we want to be able to make that assumption in our Makefile 2774# recipes. So use an aggressive probe to check that the usage we want is 2775# actually supported "in the wild" to an acceptable degree. 2776# See automake bug#10828. 2777# To make any issue more visible, cause the running configure to be aborted 2778# by default if the 'rm' program in use doesn't match our expectations; the 2779# user can still override this though. 2780if rm -f && rm -fr && rm -rf; then : OK; else 2781 cat >&2 <<'END' 2782Oops! 2783 2784Your 'rm' program seems unable to run without file operands specified 2785on the command line, even when the '-f' option is present. This is contrary 2786to the behaviour of most rm programs out there, and not conforming with 2787the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2788 2789Please tell bug-automake@gnu.org about your system, including the value 2790of your $PATH and any error possibly output before this message. This 2791can help us improve future automake versions. 2792 2793END 2794 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2795 echo 'Configuration will proceed anyway, since you have set the' >&2 2796 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2797 echo >&2 2798 else 2799 cat >&2 <<'END' 2800Aborting the configuration process, to ensure you take notice of the issue. 2801 2802You can download and install GNU coreutils to get an 'rm' implementation 2803that behaves properly: <http://www.gnu.org/software/coreutils/>. 2804 2805If you want to complete the configuration process using your problematic 2806'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2807to "yes", and re-run configure. 2808 2809END 2810 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2811 fi 2812fi 2813 2814# Initialize libtool 2815case `pwd` in 2816 *\ * | *\ *) 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2818$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2819esac 2820 2821 2822 2823macro_version='2.4.2' 2824macro_revision='1.3337' 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838ltmain="$ac_aux_dir/ltmain.sh" 2839 2840# Make sure we can run config.sub. 2841$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2842 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2843 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2845$as_echo_n "checking build system type... " >&6; } 2846if ${ac_cv_build+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 ac_build_alias=$build_alias 2850test "x$ac_build_alias" = x && 2851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2852test "x$ac_build_alias" = x && 2853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2854ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2856 2857fi 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2859$as_echo "$ac_cv_build" >&6; } 2860case $ac_cv_build in 2861*-*-*) ;; 2862*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2863esac 2864build=$ac_cv_build 2865ac_save_IFS=$IFS; IFS='-' 2866set x $ac_cv_build 2867shift 2868build_cpu=$1 2869build_vendor=$2 2870shift; shift 2871# Remember, the first character of IFS is used to create $*, 2872# except with old shells: 2873build_os=$* 2874IFS=$ac_save_IFS 2875case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2876 2877 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2879$as_echo_n "checking host system type... " >&6; } 2880if ${ac_cv_host+:} false; then : 2881 $as_echo_n "(cached) " >&6 2882else 2883 if test "x$host_alias" = x; then 2884 ac_cv_host=$ac_cv_build 2885else 2886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2888fi 2889 2890fi 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2892$as_echo "$ac_cv_host" >&6; } 2893case $ac_cv_host in 2894*-*-*) ;; 2895*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2896esac 2897host=$ac_cv_host 2898ac_save_IFS=$IFS; IFS='-' 2899set x $ac_cv_host 2900shift 2901host_cpu=$1 2902host_vendor=$2 2903shift; shift 2904# Remember, the first character of IFS is used to create $*, 2905# except with old shells: 2906host_os=$* 2907IFS=$ac_save_IFS 2908case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2909 2910 2911# Backslashify metacharacters that are still active within 2912# double-quoted strings. 2913sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2914 2915# Same as above, but do not quote variable references. 2916double_quote_subst='s/\(["`\\]\)/\\\1/g' 2917 2918# Sed substitution to delay expansion of an escaped shell variable in a 2919# double_quote_subst'ed string. 2920delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2921 2922# Sed substitution to delay expansion of an escaped single quote. 2923delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2924 2925# Sed substitution to avoid accidental globbing in evaled expressions 2926no_glob_subst='s/\*/\\\*/g' 2927 2928ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2929ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2930ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2931 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2933$as_echo_n "checking how to print strings... " >&6; } 2934# Test print first, because it will be a builtin if present. 2935if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2936 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2937 ECHO='print -r --' 2938elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2939 ECHO='printf %s\n' 2940else 2941 # Use this function as a fallback that always works. 2942 func_fallback_echo () 2943 { 2944 eval 'cat <<_LTECHO_EOF 2945$1 2946_LTECHO_EOF' 2947 } 2948 ECHO='func_fallback_echo' 2949fi 2950 2951# func_echo_all arg... 2952# Invoke $ECHO with all args, space-separated. 2953func_echo_all () 2954{ 2955 $ECHO "" 2956} 2957 2958case "$ECHO" in 2959 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2960$as_echo "printf" >&6; } ;; 2961 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2962$as_echo "print -r" >&6; } ;; 2963 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2964$as_echo "cat" >&6; } ;; 2965esac 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980DEPDIR="${am__leading_dot}deps" 2981 2982ac_config_commands="$ac_config_commands depfiles" 2983 2984 2985am_make=${MAKE-make} 2986cat > confinc << 'END' 2987am__doit: 2988 @echo this is the am__doit target 2989.PHONY: am__doit 2990END 2991# If we don't find an include directive, just comment out the code. 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2993$as_echo_n "checking for style of include used by $am_make... " >&6; } 2994am__include="#" 2995am__quote= 2996_am_result=none 2997# First try GNU make style include. 2998echo "include confinc" > confmf 2999# Ignore all kinds of additional output from 'make'. 3000case `$am_make -s -f confmf 2> /dev/null` in #( 3001*the\ am__doit\ target*) 3002 am__include=include 3003 am__quote= 3004 _am_result=GNU 3005 ;; 3006esac 3007# Now try BSD make style include. 3008if test "$am__include" = "#"; then 3009 echo '.include "confinc"' > confmf 3010 case `$am_make -s -f confmf 2> /dev/null` in #( 3011 *the\ am__doit\ target*) 3012 am__include=.include 3013 am__quote="\"" 3014 _am_result=BSD 3015 ;; 3016 esac 3017fi 3018 3019 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3021$as_echo "$_am_result" >&6; } 3022rm -f confinc confmf 3023 3024# Check whether --enable-dependency-tracking was given. 3025if test "${enable_dependency_tracking+set}" = set; then : 3026 enableval=$enable_dependency_tracking; 3027fi 3028 3029if test "x$enable_dependency_tracking" != xno; then 3030 am_depcomp="$ac_aux_dir/depcomp" 3031 AMDEPBACKSLASH='\' 3032 am__nodep='_no' 3033fi 3034 if test "x$enable_dependency_tracking" != xno; then 3035 AMDEP_TRUE= 3036 AMDEP_FALSE='#' 3037else 3038 AMDEP_TRUE='#' 3039 AMDEP_FALSE= 3040fi 3041 3042 3043ac_ext=c 3044ac_cpp='$CPP $CPPFLAGS' 3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3047ac_compiler_gnu=$ac_cv_c_compiler_gnu 3048if test -n "$ac_tool_prefix"; then 3049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3050set dummy ${ac_tool_prefix}gcc; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if ${ac_cv_prog_CC+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$CC"; then 3057 ac_cv_prog_CC="$CC" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 test -z "$as_dir" && as_dir=. 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3066 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3068 break 2 3069 fi 3070done 3071 done 3072IFS=$as_save_IFS 3073 3074fi 3075fi 3076CC=$ac_cv_prog_CC 3077if test -n "$CC"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3079$as_echo "$CC" >&6; } 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083fi 3084 3085 3086fi 3087if test -z "$ac_cv_prog_CC"; then 3088 ac_ct_CC=$CC 3089 # Extract the first word of "gcc", so it can be a program name with args. 3090set dummy gcc; ac_word=$2 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092$as_echo_n "checking for $ac_word... " >&6; } 3093if ${ac_cv_prog_ac_ct_CC+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$ac_ct_CC"; then 3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3098else 3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH 3101do 3102 IFS=$as_save_IFS 3103 test -z "$as_dir" && as_dir=. 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3106 ac_cv_prog_ac_ct_CC="gcc" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115fi 3116ac_ct_CC=$ac_cv_prog_ac_ct_CC 3117if test -n "$ac_ct_CC"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3119$as_echo "$ac_ct_CC" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 if test "x$ac_ct_CC" = x; then 3126 CC="" 3127 else 3128 case $cross_compiling:$ac_tool_warned in 3129yes:) 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3132ac_tool_warned=yes ;; 3133esac 3134 CC=$ac_ct_CC 3135 fi 3136else 3137 CC="$ac_cv_prog_CC" 3138fi 3139 3140if test -z "$CC"; then 3141 if test -n "$ac_tool_prefix"; then 3142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3143set dummy ${ac_tool_prefix}cc; ac_word=$2 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145$as_echo_n "checking for $ac_word... " >&6; } 3146if ${ac_cv_prog_CC+:} false; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 if test -n "$CC"; then 3150 ac_cv_prog_CC="$CC" # Let the user override the test. 3151else 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 ac_cv_prog_CC="${ac_tool_prefix}cc" 3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3161 break 2 3162 fi 3163done 3164 done 3165IFS=$as_save_IFS 3166 3167fi 3168fi 3169CC=$ac_cv_prog_CC 3170if test -n "$CC"; then 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3172$as_echo "$CC" >&6; } 3173else 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3175$as_echo "no" >&6; } 3176fi 3177 3178 3179 fi 3180fi 3181if test -z "$CC"; then 3182 # Extract the first word of "cc", so it can be a program name with args. 3183set dummy cc; ac_word=$2 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3185$as_echo_n "checking for $ac_word... " >&6; } 3186if ${ac_cv_prog_CC+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 if test -n "$CC"; then 3190 ac_cv_prog_CC="$CC" # Let the user override the test. 3191else 3192 ac_prog_rejected=no 3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3194for as_dir in $PATH 3195do 3196 IFS=$as_save_IFS 3197 test -z "$as_dir" && as_dir=. 3198 for ac_exec_ext in '' $ac_executable_extensions; do 3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3201 ac_prog_rejected=yes 3202 continue 3203 fi 3204 ac_cv_prog_CC="cc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212if test $ac_prog_rejected = yes; then 3213 # We found a bogon in the path, so make sure we never use it. 3214 set dummy $ac_cv_prog_CC 3215 shift 3216 if test $# != 0; then 3217 # We chose a different compiler from the bogus one. 3218 # However, it has the same basename, so the bogon will be chosen 3219 # first if we set CC to just the basename; use the full file name. 3220 shift 3221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3222 fi 3223fi 3224fi 3225fi 3226CC=$ac_cv_prog_CC 3227if test -n "$CC"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3229$as_echo "$CC" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236fi 3237if test -z "$CC"; then 3238 if test -n "$ac_tool_prefix"; then 3239 for ac_prog in cl.exe 3240 do 3241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3242set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244$as_echo_n "checking for $ac_word... " >&6; } 3245if ${ac_cv_prog_CC+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 if test -n "$CC"; then 3249 ac_cv_prog_CC="$CC" # Let the user override the test. 3250else 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252for as_dir in $PATH 3253do 3254 IFS=$as_save_IFS 3255 test -z "$as_dir" && as_dir=. 3256 for ac_exec_ext in '' $ac_executable_extensions; do 3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3260 break 2 3261 fi 3262done 3263 done 3264IFS=$as_save_IFS 3265 3266fi 3267fi 3268CC=$ac_cv_prog_CC 3269if test -n "$CC"; then 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3271$as_echo "$CC" >&6; } 3272else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3274$as_echo "no" >&6; } 3275fi 3276 3277 3278 test -n "$CC" && break 3279 done 3280fi 3281if test -z "$CC"; then 3282 ac_ct_CC=$CC 3283 for ac_prog in cl.exe 3284do 3285 # Extract the first word of "$ac_prog", so it can be a program name with args. 3286set dummy $ac_prog; ac_word=$2 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288$as_echo_n "checking for $ac_word... " >&6; } 3289if ${ac_cv_prog_ac_ct_CC+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 if test -n "$ac_ct_CC"; then 3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3294else 3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3302 ac_cv_prog_ac_ct_CC="$ac_prog" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306done 3307 done 3308IFS=$as_save_IFS 3309 3310fi 3311fi 3312ac_ct_CC=$ac_cv_prog_ac_ct_CC 3313if test -n "$ac_ct_CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3315$as_echo "$ac_ct_CC" >&6; } 3316else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319fi 3320 3321 3322 test -n "$ac_ct_CC" && break 3323done 3324 3325 if test "x$ac_ct_CC" = x; then 3326 CC="" 3327 else 3328 case $cross_compiling:$ac_tool_warned in 3329yes:) 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3332ac_tool_warned=yes ;; 3333esac 3334 CC=$ac_ct_CC 3335 fi 3336fi 3337 3338fi 3339 3340 3341test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343as_fn_error $? "no acceptable C compiler found in \$PATH 3344See \`config.log' for more details" "$LINENO" 5; } 3345 3346# Provide some information about the compiler. 3347$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3348set X $ac_compile 3349ac_compiler=$2 3350for ac_option in --version -v -V -qversion; do 3351 { { ac_try="$ac_compiler $ac_option >&5" 3352case "(($ac_try" in 3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3354 *) ac_try_echo=$ac_try;; 3355esac 3356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3357$as_echo "$ac_try_echo"; } >&5 3358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3359 ac_status=$? 3360 if test -s conftest.err; then 3361 sed '10a\ 3362... rest of stderr output deleted ... 3363 10q' conftest.err >conftest.er1 3364 cat conftest.er1 >&5 3365 fi 3366 rm -f conftest.er1 conftest.err 3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; } 3369done 3370 3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372/* end confdefs.h. */ 3373 3374int 3375main () 3376{ 3377 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382ac_clean_files_save=$ac_clean_files 3383ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3384# Try to create an executable without -o first, disregard a.out. 3385# It will help us diagnose broken compilers, and finding out an intuition 3386# of exeext. 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3388$as_echo_n "checking whether the C compiler works... " >&6; } 3389ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3390 3391# The possible output files: 3392ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3393 3394ac_rmfiles= 3395for ac_file in $ac_files 3396do 3397 case $ac_file in 3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3400 esac 3401done 3402rm -f $ac_rmfiles 3403 3404if { { ac_try="$ac_link_default" 3405case "(($ac_try" in 3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *) ac_try_echo=$ac_try;; 3408esac 3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3410$as_echo "$ac_try_echo"; } >&5 3411 (eval "$ac_link_default") 2>&5 3412 ac_status=$? 3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3414 test $ac_status = 0; }; then : 3415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3416# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3417# in a Makefile. We should not override ac_cv_exeext if it was cached, 3418# so that the user can short-circuit this test for compilers unknown to 3419# Autoconf. 3420for ac_file in $ac_files '' 3421do 3422 test -f "$ac_file" || continue 3423 case $ac_file in 3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3425 ;; 3426 [ab].out ) 3427 # We found the default executable, but exeext='' is most 3428 # certainly right. 3429 break;; 3430 *.* ) 3431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3432 then :; else 3433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3434 fi 3435 # We set ac_cv_exeext here because the later test for it is not 3436 # safe: cross compilers may not add the suffix if given an `-o' 3437 # argument, so we may need to know it at that point already. 3438 # Even if this section looks crufty: it has the advantage of 3439 # actually working. 3440 break;; 3441 * ) 3442 break;; 3443 esac 3444done 3445test "$ac_cv_exeext" = no && ac_cv_exeext= 3446 3447else 3448 ac_file='' 3449fi 3450if test -z "$ac_file"; then : 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452$as_echo "no" >&6; } 3453$as_echo "$as_me: failed program was:" >&5 3454sed 's/^/| /' conftest.$ac_ext >&5 3455 3456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3458as_fn_error 77 "C compiler cannot create executables 3459See \`config.log' for more details" "$LINENO" 5; } 3460else 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3462$as_echo "yes" >&6; } 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3465$as_echo_n "checking for C compiler default output file name... " >&6; } 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3467$as_echo "$ac_file" >&6; } 3468ac_exeext=$ac_cv_exeext 3469 3470rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3471ac_clean_files=$ac_clean_files_save 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3473$as_echo_n "checking for suffix of executables... " >&6; } 3474if { { ac_try="$ac_link" 3475case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478esac 3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3480$as_echo "$ac_try_echo"; } >&5 3481 (eval "$ac_link") 2>&5 3482 ac_status=$? 3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3484 test $ac_status = 0; }; then : 3485 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3486# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3487# work properly (i.e., refer to `conftest.exe'), while it won't with 3488# `rm'. 3489for ac_file in conftest.exe conftest conftest.*; do 3490 test -f "$ac_file" || continue 3491 case $ac_file in 3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3494 break;; 3495 * ) break;; 3496 esac 3497done 3498else 3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3501as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3502See \`config.log' for more details" "$LINENO" 5; } 3503fi 3504rm -f conftest conftest$ac_cv_exeext 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3506$as_echo "$ac_cv_exeext" >&6; } 3507 3508rm -f conftest.$ac_ext 3509EXEEXT=$ac_cv_exeext 3510ac_exeext=$EXEEXT 3511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3512/* end confdefs.h. */ 3513#include <stdio.h> 3514int 3515main () 3516{ 3517FILE *f = fopen ("conftest.out", "w"); 3518 return ferror (f) || fclose (f) != 0; 3519 3520 ; 3521 return 0; 3522} 3523_ACEOF 3524ac_clean_files="$ac_clean_files conftest.out" 3525# Check that the compiler produces executables we can run. If not, either 3526# the compiler is broken, or we cross compile. 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3528$as_echo_n "checking whether we are cross compiling... " >&6; } 3529if test "$cross_compiling" != yes; then 3530 { { ac_try="$ac_link" 3531case "(($ac_try" in 3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3533 *) ac_try_echo=$ac_try;; 3534esac 3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3536$as_echo "$ac_try_echo"; } >&5 3537 (eval "$ac_link") 2>&5 3538 ac_status=$? 3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3540 test $ac_status = 0; } 3541 if { ac_try='./conftest$ac_cv_exeext' 3542 { { case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_try") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; }; }; then 3552 cross_compiling=no 3553 else 3554 if test "$cross_compiling" = maybe; then 3555 cross_compiling=yes 3556 else 3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3559as_fn_error $? "cannot run C compiled programs. 3560If you meant to cross compile, use \`--host'. 3561See \`config.log' for more details" "$LINENO" 5; } 3562 fi 3563 fi 3564fi 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3566$as_echo "$cross_compiling" >&6; } 3567 3568rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3569ac_clean_files=$ac_clean_files_save 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3571$as_echo_n "checking for suffix of object files... " >&6; } 3572if ${ac_cv_objext+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578int 3579main () 3580{ 3581 3582 ; 3583 return 0; 3584} 3585_ACEOF 3586rm -f conftest.o conftest.obj 3587if { { ac_try="$ac_compile" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3593$as_echo "$ac_try_echo"; } >&5 3594 (eval "$ac_compile") 2>&5 3595 ac_status=$? 3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3597 test $ac_status = 0; }; then : 3598 for ac_file in conftest.o conftest.obj conftest.*; do 3599 test -f "$ac_file" || continue; 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3603 break;; 3604 esac 3605done 3606else 3607 $as_echo "$as_me: failed program was:" >&5 3608sed 's/^/| /' conftest.$ac_ext >&5 3609 3610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612as_fn_error $? "cannot compute suffix of object files: cannot compile 3613See \`config.log' for more details" "$LINENO" 5; } 3614fi 3615rm -f conftest.$ac_cv_objext conftest.$ac_ext 3616fi 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3618$as_echo "$ac_cv_objext" >&6; } 3619OBJEXT=$ac_cv_objext 3620ac_objext=$OBJEXT 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3623if ${ac_cv_c_compiler_gnu+:} false; then : 3624 $as_echo_n "(cached) " >&6 3625else 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629int 3630main () 3631{ 3632#ifndef __GNUC__ 3633 choke me 3634#endif 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640if ac_fn_c_try_compile "$LINENO"; then : 3641 ac_compiler_gnu=yes 3642else 3643 ac_compiler_gnu=no 3644fi 3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3646ac_cv_c_compiler_gnu=$ac_compiler_gnu 3647 3648fi 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3650$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3651if test $ac_compiler_gnu = yes; then 3652 GCC=yes 3653else 3654 GCC= 3655fi 3656ac_test_CFLAGS=${CFLAGS+set} 3657ac_save_CFLAGS=$CFLAGS 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3659$as_echo_n "checking whether $CC accepts -g... " >&6; } 3660if ${ac_cv_prog_cc_g+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 ac_save_c_werror_flag=$ac_c_werror_flag 3664 ac_c_werror_flag=yes 3665 ac_cv_prog_cc_g=no 3666 CFLAGS="-g" 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678if ac_fn_c_try_compile "$LINENO"; then : 3679 ac_cv_prog_cc_g=yes 3680else 3681 CFLAGS="" 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693if ac_fn_c_try_compile "$LINENO"; then : 3694 3695else 3696 ac_c_werror_flag=$ac_save_c_werror_flag 3697 CFLAGS="-g" 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709if ac_fn_c_try_compile "$LINENO"; then : 3710 ac_cv_prog_cc_g=yes 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713fi 3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715fi 3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3717 ac_c_werror_flag=$ac_save_c_werror_flag 3718fi 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3720$as_echo "$ac_cv_prog_cc_g" >&6; } 3721if test "$ac_test_CFLAGS" = set; then 3722 CFLAGS=$ac_save_CFLAGS 3723elif test $ac_cv_prog_cc_g = yes; then 3724 if test "$GCC" = yes; then 3725 CFLAGS="-g -O2" 3726 else 3727 CFLAGS="-g" 3728 fi 3729else 3730 if test "$GCC" = yes; then 3731 CFLAGS="-O2" 3732 else 3733 CFLAGS= 3734 fi 3735fi 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3737$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3738if ${ac_cv_prog_cc_c89+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740else 3741 ac_cv_prog_cc_c89=no 3742ac_save_CC=$CC 3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744/* end confdefs.h. */ 3745#include <stdarg.h> 3746#include <stdio.h> 3747#include <sys/types.h> 3748#include <sys/stat.h> 3749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3750struct buf { int x; }; 3751FILE * (*rcsopen) (struct buf *, struct stat *, int); 3752static char *e (p, i) 3753 char **p; 3754 int i; 3755{ 3756 return p[i]; 3757} 3758static char *f (char * (*g) (char **, int), char **p, ...) 3759{ 3760 char *s; 3761 va_list v; 3762 va_start (v,p); 3763 s = g (p, va_arg (v,int)); 3764 va_end (v); 3765 return s; 3766} 3767 3768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3769 function prototypes and stuff, but not '\xHH' hex character constants. 3770 These don't provoke an error unfortunately, instead are silently treated 3771 as 'x'. The following induces an error, until -std is added to get 3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3773 array size at least. It's necessary to write '\x00'==0 to get something 3774 that's true only with -std. */ 3775int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3776 3777/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3778 inside strings and character constants. */ 3779#define FOO(x) 'x' 3780int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3781 3782int test (int i, double x); 3783struct s1 {int (*f) (int a);}; 3784struct s2 {int (*f) (double a);}; 3785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3786int argc; 3787char **argv; 3788int 3789main () 3790{ 3791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3798do 3799 CC="$ac_save_CC $ac_arg" 3800 if ac_fn_c_try_compile "$LINENO"; then : 3801 ac_cv_prog_cc_c89=$ac_arg 3802fi 3803rm -f core conftest.err conftest.$ac_objext 3804 test "x$ac_cv_prog_cc_c89" != "xno" && break 3805done 3806rm -f conftest.$ac_ext 3807CC=$ac_save_CC 3808 3809fi 3810# AC_CACHE_VAL 3811case "x$ac_cv_prog_cc_c89" in 3812 x) 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3814$as_echo "none needed" >&6; } ;; 3815 xno) 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3817$as_echo "unsupported" >&6; } ;; 3818 *) 3819 CC="$CC $ac_cv_prog_cc_c89" 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3821$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3822esac 3823if test "x$ac_cv_prog_cc_c89" != xno; then : 3824 3825fi 3826 3827ac_ext=c 3828ac_cpp='$CPP $CPPFLAGS' 3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3831ac_compiler_gnu=$ac_cv_c_compiler_gnu 3832 3833ac_ext=c 3834ac_cpp='$CPP $CPPFLAGS' 3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3837ac_compiler_gnu=$ac_cv_c_compiler_gnu 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3839$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3840if ${am_cv_prog_cc_c_o+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854 # Make sure it works both with $CC and with simple cc. 3855 # Following AC_PROG_CC_C_O, we do the test twice because some 3856 # compilers refuse to overwrite an existing .o file with -o, 3857 # though they will create one. 3858 am_cv_prog_cc_c_o=yes 3859 for am_i in 1 2; do 3860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); } \ 3865 && test -f conftest2.$ac_objext; then 3866 : OK 3867 else 3868 am_cv_prog_cc_c_o=no 3869 break 3870 fi 3871 done 3872 rm -f core conftest* 3873 unset am_i 3874fi 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3876$as_echo "$am_cv_prog_cc_c_o" >&6; } 3877if test "$am_cv_prog_cc_c_o" != yes; then 3878 # Losing compiler, so override with the script. 3879 # FIXME: It is wrong to rewrite CC. 3880 # But if we don't then we get into trouble of one sort or another. 3881 # A longer-term fix would be to have automake use am__CC in this case, 3882 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3883 CC="$am_aux_dir/compile $CC" 3884fi 3885ac_ext=c 3886ac_cpp='$CPP $CPPFLAGS' 3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3889ac_compiler_gnu=$ac_cv_c_compiler_gnu 3890 3891 3892depcc="$CC" am_compiler_list= 3893 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3895$as_echo_n "checking dependency style of $depcc... " >&6; } 3896if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3900 # We make a subdir and do the tests there. Otherwise we can end up 3901 # making bogus files that we don't know about and never remove. For 3902 # instance it was reported that on HP-UX the gcc test will end up 3903 # making a dummy file named 'D' -- because '-MD' means "put the output 3904 # in D". 3905 rm -rf conftest.dir 3906 mkdir conftest.dir 3907 # Copy depcomp to subdir because otherwise we won't find it if we're 3908 # using a relative directory. 3909 cp "$am_depcomp" conftest.dir 3910 cd conftest.dir 3911 # We will build objects and dependencies in a subdirectory because 3912 # it helps to detect inapplicable dependency modes. For instance 3913 # both Tru64's cc and ICC support -MD to output dependencies as a 3914 # side effect of compilation, but ICC will put the dependencies in 3915 # the current directory while Tru64 will put them in the object 3916 # directory. 3917 mkdir sub 3918 3919 am_cv_CC_dependencies_compiler_type=none 3920 if test "$am_compiler_list" = ""; then 3921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3922 fi 3923 am__universal=false 3924 case " $depcc " in #( 3925 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3926 esac 3927 3928 for depmode in $am_compiler_list; do 3929 # Setup a source with many dependencies, because some compilers 3930 # like to wrap large dependency lists on column 80 (with \), and 3931 # we should not choose a depcomp mode which is confused by this. 3932 # 3933 # We need to recreate these files for each test, as the compiler may 3934 # overwrite some of them when testing with obscure command lines. 3935 # This happens at least with the AIX C compiler. 3936 : > sub/conftest.c 3937 for i in 1 2 3 4 5 6; do 3938 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3940 # Solaris 10 /bin/sh. 3941 echo '/* dummy */' > sub/conftst$i.h 3942 done 3943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3944 3945 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3946 # mode. It turns out that the SunPro C++ compiler does not properly 3947 # handle '-M -o', and we need to detect this. Also, some Intel 3948 # versions had trouble with output in subdirs. 3949 am__obj=sub/conftest.${OBJEXT-o} 3950 am__minus_obj="-o $am__obj" 3951 case $depmode in 3952 gcc) 3953 # This depmode causes a compiler race in universal mode. 3954 test "$am__universal" = false || continue 3955 ;; 3956 nosideeffect) 3957 # After this tag, mechanisms are not by side-effect, so they'll 3958 # only be used when explicitly requested. 3959 if test "x$enable_dependency_tracking" = xyes; then 3960 continue 3961 else 3962 break 3963 fi 3964 ;; 3965 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3966 # This compiler won't grok '-c -o', but also, the minuso test has 3967 # not run yet. These depmodes are late enough in the game, and 3968 # so weak that their functioning should not be impacted. 3969 am__obj=conftest.${OBJEXT-o} 3970 am__minus_obj= 3971 ;; 3972 none) break ;; 3973 esac 3974 if depmode=$depmode \ 3975 source=sub/conftest.c object=$am__obj \ 3976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3978 >/dev/null 2>conftest.err && 3979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3983 # icc doesn't choke on unknown options, it will just issue warnings 3984 # or remarks (even with -Werror). So we grep stderr for any message 3985 # that says an option was ignored or not supported. 3986 # When given -MP, icc 7.0 and 7.1 complain thusly: 3987 # icc: Command line warning: ignoring option '-M'; no argument required 3988 # The diagnosis changed in icc 8.0: 3989 # icc: Command line remark: option '-MP' not supported 3990 if (grep 'ignoring option' conftest.err || 3991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3992 am_cv_CC_dependencies_compiler_type=$depmode 3993 break 3994 fi 3995 fi 3996 done 3997 3998 cd .. 3999 rm -rf conftest.dir 4000else 4001 am_cv_CC_dependencies_compiler_type=none 4002fi 4003 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4006$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4007CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4008 4009 if 4010 test "x$enable_dependency_tracking" != xno \ 4011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4012 am__fastdepCC_TRUE= 4013 am__fastdepCC_FALSE='#' 4014else 4015 am__fastdepCC_TRUE='#' 4016 am__fastdepCC_FALSE= 4017fi 4018 4019 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4021$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4022if ${ac_cv_path_SED+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024else 4025 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4026 for ac_i in 1 2 3 4 5 6 7; do 4027 ac_script="$ac_script$as_nl$ac_script" 4028 done 4029 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4030 { ac_script=; unset ac_script;} 4031 if test -z "$SED"; then 4032 ac_path_SED_found=false 4033 # Loop through the user's path and test for each of PROGNAME-LIST 4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4035for as_dir in $PATH 4036do 4037 IFS=$as_save_IFS 4038 test -z "$as_dir" && as_dir=. 4039 for ac_prog in sed gsed; do 4040 for ac_exec_ext in '' $ac_executable_extensions; do 4041 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4042 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4043# Check for GNU ac_path_SED and select it if it is found. 4044 # Check for GNU $ac_path_SED 4045case `"$ac_path_SED" --version 2>&1` in 4046*GNU*) 4047 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4048*) 4049 ac_count=0 4050 $as_echo_n 0123456789 >"conftest.in" 4051 while : 4052 do 4053 cat "conftest.in" "conftest.in" >"conftest.tmp" 4054 mv "conftest.tmp" "conftest.in" 4055 cp "conftest.in" "conftest.nl" 4056 $as_echo '' >> "conftest.nl" 4057 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4059 as_fn_arith $ac_count + 1 && ac_count=$as_val 4060 if test $ac_count -gt ${ac_path_SED_max-0}; then 4061 # Best one so far, save it but keep looking for a better one 4062 ac_cv_path_SED="$ac_path_SED" 4063 ac_path_SED_max=$ac_count 4064 fi 4065 # 10*(2^10) chars as input seems more than enough 4066 test $ac_count -gt 10 && break 4067 done 4068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4069esac 4070 4071 $ac_path_SED_found && break 3 4072 done 4073 done 4074 done 4075IFS=$as_save_IFS 4076 if test -z "$ac_cv_path_SED"; then 4077 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4078 fi 4079else 4080 ac_cv_path_SED=$SED 4081fi 4082 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4085$as_echo "$ac_cv_path_SED" >&6; } 4086 SED="$ac_cv_path_SED" 4087 rm -f conftest.sed 4088 4089test -z "$SED" && SED=sed 4090Xsed="$SED -e 1s/^X//" 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4103$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4104if ${ac_cv_path_GREP+:} false; then : 4105 $as_echo_n "(cached) " >&6 4106else 4107 if test -z "$GREP"; then 4108 ac_path_GREP_found=false 4109 # Loop through the user's path and test for each of PROGNAME-LIST 4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4112do 4113 IFS=$as_save_IFS 4114 test -z "$as_dir" && as_dir=. 4115 for ac_prog in grep ggrep; do 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4119# Check for GNU ac_path_GREP and select it if it is found. 4120 # Check for GNU $ac_path_GREP 4121case `"$ac_path_GREP" --version 2>&1` in 4122*GNU*) 4123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4124*) 4125 ac_count=0 4126 $as_echo_n 0123456789 >"conftest.in" 4127 while : 4128 do 4129 cat "conftest.in" "conftest.in" >"conftest.tmp" 4130 mv "conftest.tmp" "conftest.in" 4131 cp "conftest.in" "conftest.nl" 4132 $as_echo 'GREP' >> "conftest.nl" 4133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4135 as_fn_arith $ac_count + 1 && ac_count=$as_val 4136 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4137 # Best one so far, save it but keep looking for a better one 4138 ac_cv_path_GREP="$ac_path_GREP" 4139 ac_path_GREP_max=$ac_count 4140 fi 4141 # 10*(2^10) chars as input seems more than enough 4142 test $ac_count -gt 10 && break 4143 done 4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4145esac 4146 4147 $ac_path_GREP_found && break 3 4148 done 4149 done 4150 done 4151IFS=$as_save_IFS 4152 if test -z "$ac_cv_path_GREP"; then 4153 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4154 fi 4155else 4156 ac_cv_path_GREP=$GREP 4157fi 4158 4159fi 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4161$as_echo "$ac_cv_path_GREP" >&6; } 4162 GREP="$ac_cv_path_GREP" 4163 4164 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4166$as_echo_n "checking for egrep... " >&6; } 4167if ${ac_cv_path_EGREP+:} false; then : 4168 $as_echo_n "(cached) " >&6 4169else 4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4171 then ac_cv_path_EGREP="$GREP -E" 4172 else 4173 if test -z "$EGREP"; then 4174 ac_path_EGREP_found=false 4175 # Loop through the user's path and test for each of PROGNAME-LIST 4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4178do 4179 IFS=$as_save_IFS 4180 test -z "$as_dir" && as_dir=. 4181 for ac_prog in egrep; do 4182 for ac_exec_ext in '' $ac_executable_extensions; do 4183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4185# Check for GNU ac_path_EGREP and select it if it is found. 4186 # Check for GNU $ac_path_EGREP 4187case `"$ac_path_EGREP" --version 2>&1` in 4188*GNU*) 4189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4190*) 4191 ac_count=0 4192 $as_echo_n 0123456789 >"conftest.in" 4193 while : 4194 do 4195 cat "conftest.in" "conftest.in" >"conftest.tmp" 4196 mv "conftest.tmp" "conftest.in" 4197 cp "conftest.in" "conftest.nl" 4198 $as_echo 'EGREP' >> "conftest.nl" 4199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4201 as_fn_arith $ac_count + 1 && ac_count=$as_val 4202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4203 # Best one so far, save it but keep looking for a better one 4204 ac_cv_path_EGREP="$ac_path_EGREP" 4205 ac_path_EGREP_max=$ac_count 4206 fi 4207 # 10*(2^10) chars as input seems more than enough 4208 test $ac_count -gt 10 && break 4209 done 4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4211esac 4212 4213 $ac_path_EGREP_found && break 3 4214 done 4215 done 4216 done 4217IFS=$as_save_IFS 4218 if test -z "$ac_cv_path_EGREP"; then 4219 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4220 fi 4221else 4222 ac_cv_path_EGREP=$EGREP 4223fi 4224 4225 fi 4226fi 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4228$as_echo "$ac_cv_path_EGREP" >&6; } 4229 EGREP="$ac_cv_path_EGREP" 4230 4231 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4233$as_echo_n "checking for fgrep... " >&6; } 4234if ${ac_cv_path_FGREP+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4238 then ac_cv_path_FGREP="$GREP -F" 4239 else 4240 if test -z "$FGREP"; then 4241 ac_path_FGREP_found=false 4242 # Loop through the user's path and test for each of PROGNAME-LIST 4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4245do 4246 IFS=$as_save_IFS 4247 test -z "$as_dir" && as_dir=. 4248 for ac_prog in fgrep; do 4249 for ac_exec_ext in '' $ac_executable_extensions; do 4250 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4251 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4252# Check for GNU ac_path_FGREP and select it if it is found. 4253 # Check for GNU $ac_path_FGREP 4254case `"$ac_path_FGREP" --version 2>&1` in 4255*GNU*) 4256 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4257*) 4258 ac_count=0 4259 $as_echo_n 0123456789 >"conftest.in" 4260 while : 4261 do 4262 cat "conftest.in" "conftest.in" >"conftest.tmp" 4263 mv "conftest.tmp" "conftest.in" 4264 cp "conftest.in" "conftest.nl" 4265 $as_echo 'FGREP' >> "conftest.nl" 4266 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4268 as_fn_arith $ac_count + 1 && ac_count=$as_val 4269 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4270 # Best one so far, save it but keep looking for a better one 4271 ac_cv_path_FGREP="$ac_path_FGREP" 4272 ac_path_FGREP_max=$ac_count 4273 fi 4274 # 10*(2^10) chars as input seems more than enough 4275 test $ac_count -gt 10 && break 4276 done 4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4278esac 4279 4280 $ac_path_FGREP_found && break 3 4281 done 4282 done 4283 done 4284IFS=$as_save_IFS 4285 if test -z "$ac_cv_path_FGREP"; then 4286 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4287 fi 4288else 4289 ac_cv_path_FGREP=$FGREP 4290fi 4291 4292 fi 4293fi 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4295$as_echo "$ac_cv_path_FGREP" >&6; } 4296 FGREP="$ac_cv_path_FGREP" 4297 4298 4299test -z "$GREP" && GREP=grep 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319# Check whether --with-gnu-ld was given. 4320if test "${with_gnu_ld+set}" = set; then : 4321 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4322else 4323 with_gnu_ld=no 4324fi 4325 4326ac_prog=ld 4327if test "$GCC" = yes; then 4328 # Check if gcc -print-prog-name=ld gives a path. 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4330$as_echo_n "checking for ld used by $CC... " >&6; } 4331 case $host in 4332 *-*-mingw*) 4333 # gcc leaves a trailing carriage return which upsets mingw 4334 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4335 *) 4336 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4337 esac 4338 case $ac_prog in 4339 # Accept absolute paths. 4340 [\\/]* | ?:[\\/]*) 4341 re_direlt='/[^/][^/]*/\.\./' 4342 # Canonicalize the pathname of ld 4343 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4344 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4345 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4346 done 4347 test -z "$LD" && LD="$ac_prog" 4348 ;; 4349 "") 4350 # If it fails, then pretend we aren't using GCC. 4351 ac_prog=ld 4352 ;; 4353 *) 4354 # If it is relative, then search for the first ld in PATH. 4355 with_gnu_ld=unknown 4356 ;; 4357 esac 4358elif test "$with_gnu_ld" = yes; then 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4360$as_echo_n "checking for GNU ld... " >&6; } 4361else 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4363$as_echo_n "checking for non-GNU ld... " >&6; } 4364fi 4365if ${lt_cv_path_LD+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367else 4368 if test -z "$LD"; then 4369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4370 for ac_dir in $PATH; do 4371 IFS="$lt_save_ifs" 4372 test -z "$ac_dir" && ac_dir=. 4373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4374 lt_cv_path_LD="$ac_dir/$ac_prog" 4375 # Check to see if the program is GNU ld. I'd rather use --version, 4376 # but apparently some variants of GNU ld only accept -v. 4377 # Break only if it was the GNU/non-GNU ld that we prefer. 4378 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4379 *GNU* | *'with BFD'*) 4380 test "$with_gnu_ld" != no && break 4381 ;; 4382 *) 4383 test "$with_gnu_ld" != yes && break 4384 ;; 4385 esac 4386 fi 4387 done 4388 IFS="$lt_save_ifs" 4389else 4390 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4391fi 4392fi 4393 4394LD="$lt_cv_path_LD" 4395if test -n "$LD"; then 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4397$as_echo "$LD" >&6; } 4398else 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4400$as_echo "no" >&6; } 4401fi 4402test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4404$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4405if ${lt_cv_prog_gnu_ld+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4409case `$LD -v 2>&1 </dev/null` in 4410*GNU* | *'with BFD'*) 4411 lt_cv_prog_gnu_ld=yes 4412 ;; 4413*) 4414 lt_cv_prog_gnu_ld=no 4415 ;; 4416esac 4417fi 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4419$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4420with_gnu_ld=$lt_cv_prog_gnu_ld 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4431$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4432if ${lt_cv_path_NM+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 if test -n "$NM"; then 4436 # Let the user override the test. 4437 lt_cv_path_NM="$NM" 4438else 4439 lt_nm_to_check="${ac_tool_prefix}nm" 4440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4441 lt_nm_to_check="$lt_nm_to_check nm" 4442 fi 4443 for lt_tmp_nm in $lt_nm_to_check; do 4444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4446 IFS="$lt_save_ifs" 4447 test -z "$ac_dir" && ac_dir=. 4448 tmp_nm="$ac_dir/$lt_tmp_nm" 4449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4450 # Check to see if the nm accepts a BSD-compat flag. 4451 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4452 # nm: unknown option "B" ignored 4453 # Tru64's nm complains that /dev/null is an invalid object file 4454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4455 */dev/null* | *'Invalid file or object type'*) 4456 lt_cv_path_NM="$tmp_nm -B" 4457 break 4458 ;; 4459 *) 4460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4461 */dev/null*) 4462 lt_cv_path_NM="$tmp_nm -p" 4463 break 4464 ;; 4465 *) 4466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4467 continue # so that we can try to find one that supports BSD flags 4468 ;; 4469 esac 4470 ;; 4471 esac 4472 fi 4473 done 4474 IFS="$lt_save_ifs" 4475 done 4476 : ${lt_cv_path_NM=no} 4477fi 4478fi 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4480$as_echo "$lt_cv_path_NM" >&6; } 4481if test "$lt_cv_path_NM" != "no"; then 4482 NM="$lt_cv_path_NM" 4483else 4484 # Didn't find any BSD compatible name lister, look for dumpbin. 4485 if test -n "$DUMPBIN"; then : 4486 # Let the user override the test. 4487 else 4488 if test -n "$ac_tool_prefix"; then 4489 for ac_prog in dumpbin "link -dump" 4490 do 4491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4492set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4494$as_echo_n "checking for $ac_word... " >&6; } 4495if ${ac_cv_prog_DUMPBIN+:} false; then : 4496 $as_echo_n "(cached) " >&6 4497else 4498 if test -n "$DUMPBIN"; then 4499 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4500else 4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502for as_dir in $PATH 4503do 4504 IFS=$as_save_IFS 4505 test -z "$as_dir" && as_dir=. 4506 for ac_exec_ext in '' $ac_executable_extensions; do 4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4508 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4510 break 2 4511 fi 4512done 4513 done 4514IFS=$as_save_IFS 4515 4516fi 4517fi 4518DUMPBIN=$ac_cv_prog_DUMPBIN 4519if test -n "$DUMPBIN"; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4521$as_echo "$DUMPBIN" >&6; } 4522else 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4524$as_echo "no" >&6; } 4525fi 4526 4527 4528 test -n "$DUMPBIN" && break 4529 done 4530fi 4531if test -z "$DUMPBIN"; then 4532 ac_ct_DUMPBIN=$DUMPBIN 4533 for ac_prog in dumpbin "link -dump" 4534do 4535 # Extract the first word of "$ac_prog", so it can be a program name with args. 4536set dummy $ac_prog; ac_word=$2 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4538$as_echo_n "checking for $ac_word... " >&6; } 4539if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4540 $as_echo_n "(cached) " >&6 4541else 4542 if test -n "$ac_ct_DUMPBIN"; then 4543 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4544else 4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4552 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4554 break 2 4555 fi 4556done 4557 done 4558IFS=$as_save_IFS 4559 4560fi 4561fi 4562ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4563if test -n "$ac_ct_DUMPBIN"; then 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4565$as_echo "$ac_ct_DUMPBIN" >&6; } 4566else 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4568$as_echo "no" >&6; } 4569fi 4570 4571 4572 test -n "$ac_ct_DUMPBIN" && break 4573done 4574 4575 if test "x$ac_ct_DUMPBIN" = x; then 4576 DUMPBIN=":" 4577 else 4578 case $cross_compiling:$ac_tool_warned in 4579yes:) 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4582ac_tool_warned=yes ;; 4583esac 4584 DUMPBIN=$ac_ct_DUMPBIN 4585 fi 4586fi 4587 4588 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4589 *COFF*) 4590 DUMPBIN="$DUMPBIN -symbols" 4591 ;; 4592 *) 4593 DUMPBIN=: 4594 ;; 4595 esac 4596 fi 4597 4598 if test "$DUMPBIN" != ":"; then 4599 NM="$DUMPBIN" 4600 fi 4601fi 4602test -z "$NM" && NM=nm 4603 4604 4605 4606 4607 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4610$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4611if ${lt_cv_nm_interface+:} false; then : 4612 $as_echo_n "(cached) " >&6 4613else 4614 lt_cv_nm_interface="BSD nm" 4615 echo "int some_variable = 0;" > conftest.$ac_ext 4616 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4617 (eval "$ac_compile" 2>conftest.err) 4618 cat conftest.err >&5 4619 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4620 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4621 cat conftest.err >&5 4622 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4623 cat conftest.out >&5 4624 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4625 lt_cv_nm_interface="MS dumpbin" 4626 fi 4627 rm -f conftest* 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4630$as_echo "$lt_cv_nm_interface" >&6; } 4631 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4633$as_echo_n "checking whether ln -s works... " >&6; } 4634LN_S=$as_ln_s 4635if test "$LN_S" = "ln -s"; then 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4637$as_echo "yes" >&6; } 4638else 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4640$as_echo "no, using $LN_S" >&6; } 4641fi 4642 4643# find the maximum length of command line arguments 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4645$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4646if ${lt_cv_sys_max_cmd_len+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 i=0 4650 teststring="ABCD" 4651 4652 case $build_os in 4653 msdosdjgpp*) 4654 # On DJGPP, this test can blow up pretty badly due to problems in libc 4655 # (any single argument exceeding 2000 bytes causes a buffer overrun 4656 # during glob expansion). Even if it were fixed, the result of this 4657 # check would be larger than it should be. 4658 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4659 ;; 4660 4661 gnu*) 4662 # Under GNU Hurd, this test is not required because there is 4663 # no limit to the length of command line arguments. 4664 # Libtool will interpret -1 as no limit whatsoever 4665 lt_cv_sys_max_cmd_len=-1; 4666 ;; 4667 4668 cygwin* | mingw* | cegcc*) 4669 # On Win9x/ME, this test blows up -- it succeeds, but takes 4670 # about 5 minutes as the teststring grows exponentially. 4671 # Worse, since 9x/ME are not pre-emptively multitasking, 4672 # you end up with a "frozen" computer, even though with patience 4673 # the test eventually succeeds (with a max line length of 256k). 4674 # Instead, let's just punt: use the minimum linelength reported by 4675 # all of the supported platforms: 8192 (on NT/2K/XP). 4676 lt_cv_sys_max_cmd_len=8192; 4677 ;; 4678 4679 mint*) 4680 # On MiNT this can take a long time and run out of memory. 4681 lt_cv_sys_max_cmd_len=8192; 4682 ;; 4683 4684 amigaos*) 4685 # On AmigaOS with pdksh, this test takes hours, literally. 4686 # So we just punt and use a minimum line length of 8192. 4687 lt_cv_sys_max_cmd_len=8192; 4688 ;; 4689 4690 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4691 # This has been around since 386BSD, at least. Likely further. 4692 if test -x /sbin/sysctl; then 4693 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4694 elif test -x /usr/sbin/sysctl; then 4695 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4696 else 4697 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4698 fi 4699 # And add a safety zone 4700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4702 ;; 4703 4704 interix*) 4705 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4706 lt_cv_sys_max_cmd_len=196608 4707 ;; 4708 4709 os2*) 4710 # The test takes a long time on OS/2. 4711 lt_cv_sys_max_cmd_len=8192 4712 ;; 4713 4714 osf*) 4715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4717 # nice to cause kernel panics so lets avoid the loop below. 4718 # First set a reasonable default. 4719 lt_cv_sys_max_cmd_len=16384 4720 # 4721 if test -x /sbin/sysconfig; then 4722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4723 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4724 esac 4725 fi 4726 ;; 4727 sco3.2v5*) 4728 lt_cv_sys_max_cmd_len=102400 4729 ;; 4730 sysv5* | sco5v6* | sysv4.2uw2*) 4731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4732 if test -n "$kargmax"; then 4733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4734 else 4735 lt_cv_sys_max_cmd_len=32768 4736 fi 4737 ;; 4738 *) 4739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4740 if test -n "$lt_cv_sys_max_cmd_len"; then 4741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4743 else 4744 # Make teststring a little bigger before we do anything with it. 4745 # a 1K string should be a reasonable start. 4746 for i in 1 2 3 4 5 6 7 8 ; do 4747 teststring=$teststring$teststring 4748 done 4749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4750 # If test is not a shell built-in, we'll probably end up computing a 4751 # maximum length that is only half of the actual maximum length, but 4752 # we can't tell. 4753 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4754 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4755 test $i != 17 # 1/2 MB should be enough 4756 do 4757 i=`expr $i + 1` 4758 teststring=$teststring$teststring 4759 done 4760 # Only check the string length outside the loop. 4761 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4762 teststring= 4763 # Add a significant safety factor because C++ compilers can tack on 4764 # massive amounts of additional arguments before passing them to the 4765 # linker. It appears as though 1/2 is a usable value. 4766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4767 fi 4768 ;; 4769 esac 4770 4771fi 4772 4773if test -n $lt_cv_sys_max_cmd_len ; then 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4775$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4776else 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4778$as_echo "none" >&6; } 4779fi 4780max_cmd_len=$lt_cv_sys_max_cmd_len 4781 4782 4783 4784 4785 4786 4787: ${CP="cp -f"} 4788: ${MV="mv -f"} 4789: ${RM="rm -f"} 4790 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4792$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4793# Try some XSI features 4794xsi_shell=no 4795( _lt_dummy="a/b/c" 4796 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4797 = c,a/b,b/c, \ 4798 && eval 'test $(( 1 + 1 )) -eq 2 \ 4799 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4800 && xsi_shell=yes 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4802$as_echo "$xsi_shell" >&6; } 4803 4804 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4806$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4807lt_shell_append=no 4808( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4809 >/dev/null 2>&1 \ 4810 && lt_shell_append=yes 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4812$as_echo "$lt_shell_append" >&6; } 4813 4814 4815if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4816 lt_unset=unset 4817else 4818 lt_unset=false 4819fi 4820 4821 4822 4823 4824 4825# test EBCDIC or ASCII 4826case `echo X|tr X '\101'` in 4827 A) # ASCII based system 4828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4829 lt_SP2NL='tr \040 \012' 4830 lt_NL2SP='tr \015\012 \040\040' 4831 ;; 4832 *) # EBCDIC based system 4833 lt_SP2NL='tr \100 \n' 4834 lt_NL2SP='tr \r\n \100\100' 4835 ;; 4836esac 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4847$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4848if ${lt_cv_to_host_file_cmd+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 case $host in 4852 *-*-mingw* ) 4853 case $build in 4854 *-*-mingw* ) # actually msys 4855 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4856 ;; 4857 *-*-cygwin* ) 4858 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4859 ;; 4860 * ) # otherwise, assume *nix 4861 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4862 ;; 4863 esac 4864 ;; 4865 *-*-cygwin* ) 4866 case $build in 4867 *-*-mingw* ) # actually msys 4868 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4869 ;; 4870 *-*-cygwin* ) 4871 lt_cv_to_host_file_cmd=func_convert_file_noop 4872 ;; 4873 * ) # otherwise, assume *nix 4874 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4875 ;; 4876 esac 4877 ;; 4878 * ) # unhandled hosts (and "normal" native builds) 4879 lt_cv_to_host_file_cmd=func_convert_file_noop 4880 ;; 4881esac 4882 4883fi 4884 4885to_host_file_cmd=$lt_cv_to_host_file_cmd 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4887$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4888 4889 4890 4891 4892 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4894$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4895if ${lt_cv_to_tool_file_cmd+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 #assume ordinary cross tools, or native build. 4899lt_cv_to_tool_file_cmd=func_convert_file_noop 4900case $host in 4901 *-*-mingw* ) 4902 case $build in 4903 *-*-mingw* ) # actually msys 4904 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4905 ;; 4906 esac 4907 ;; 4908esac 4909 4910fi 4911 4912to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4914$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4915 4916 4917 4918 4919 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4921$as_echo_n "checking for $LD option to reload object files... " >&6; } 4922if ${lt_cv_ld_reload_flag+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 lt_cv_ld_reload_flag='-r' 4926fi 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4928$as_echo "$lt_cv_ld_reload_flag" >&6; } 4929reload_flag=$lt_cv_ld_reload_flag 4930case $reload_flag in 4931"" | " "*) ;; 4932*) reload_flag=" $reload_flag" ;; 4933esac 4934reload_cmds='$LD$reload_flag -o $output$reload_objs' 4935case $host_os in 4936 cygwin* | mingw* | pw32* | cegcc*) 4937 if test "$GCC" != yes; then 4938 reload_cmds=false 4939 fi 4940 ;; 4941 darwin*) 4942 if test "$GCC" = yes; then 4943 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4944 else 4945 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4946 fi 4947 ;; 4948esac 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958if test -n "$ac_tool_prefix"; then 4959 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4960set dummy ${ac_tool_prefix}objdump; ac_word=$2 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4962$as_echo_n "checking for $ac_word... " >&6; } 4963if ${ac_cv_prog_OBJDUMP+:} false; then : 4964 $as_echo_n "(cached) " >&6 4965else 4966 if test -n "$OBJDUMP"; then 4967 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4968else 4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4970for as_dir in $PATH 4971do 4972 IFS=$as_save_IFS 4973 test -z "$as_dir" && as_dir=. 4974 for ac_exec_ext in '' $ac_executable_extensions; do 4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4976 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4978 break 2 4979 fi 4980done 4981 done 4982IFS=$as_save_IFS 4983 4984fi 4985fi 4986OBJDUMP=$ac_cv_prog_OBJDUMP 4987if test -n "$OBJDUMP"; then 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4989$as_echo "$OBJDUMP" >&6; } 4990else 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992$as_echo "no" >&6; } 4993fi 4994 4995 4996fi 4997if test -z "$ac_cv_prog_OBJDUMP"; then 4998 ac_ct_OBJDUMP=$OBJDUMP 4999 # Extract the first word of "objdump", so it can be a program name with args. 5000set dummy objdump; ac_word=$2 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5002$as_echo_n "checking for $ac_word... " >&6; } 5003if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 if test -n "$ac_ct_OBJDUMP"; then 5007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5008else 5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5010for as_dir in $PATH 5011do 5012 IFS=$as_save_IFS 5013 test -z "$as_dir" && as_dir=. 5014 for ac_exec_ext in '' $ac_executable_extensions; do 5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5016 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5018 break 2 5019 fi 5020done 5021 done 5022IFS=$as_save_IFS 5023 5024fi 5025fi 5026ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5027if test -n "$ac_ct_OBJDUMP"; then 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5029$as_echo "$ac_ct_OBJDUMP" >&6; } 5030else 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5032$as_echo "no" >&6; } 5033fi 5034 5035 if test "x$ac_ct_OBJDUMP" = x; then 5036 OBJDUMP="false" 5037 else 5038 case $cross_compiling:$ac_tool_warned in 5039yes:) 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5042ac_tool_warned=yes ;; 5043esac 5044 OBJDUMP=$ac_ct_OBJDUMP 5045 fi 5046else 5047 OBJDUMP="$ac_cv_prog_OBJDUMP" 5048fi 5049 5050test -z "$OBJDUMP" && OBJDUMP=objdump 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5061$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5062if ${lt_cv_deplibs_check_method+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 lt_cv_file_magic_cmd='$MAGIC_CMD' 5066lt_cv_file_magic_test_file= 5067lt_cv_deplibs_check_method='unknown' 5068# Need to set the preceding variable on all platforms that support 5069# interlibrary dependencies. 5070# 'none' -- dependencies not supported. 5071# `unknown' -- same as none, but documents that we really don't know. 5072# 'pass_all' -- all dependencies passed with no checks. 5073# 'test_compile' -- check by making test program. 5074# 'file_magic [[regex]]' -- check by looking for files in library path 5075# which responds to the $file_magic_cmd with a given extended regex. 5076# If you have `file' or equivalent on your system and you're not sure 5077# whether `pass_all' will *always* work, you probably want this one. 5078 5079case $host_os in 5080aix[4-9]*) 5081 lt_cv_deplibs_check_method=pass_all 5082 ;; 5083 5084beos*) 5085 lt_cv_deplibs_check_method=pass_all 5086 ;; 5087 5088bsdi[45]*) 5089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5090 lt_cv_file_magic_cmd='/usr/bin/file -L' 5091 lt_cv_file_magic_test_file=/shlib/libc.so 5092 ;; 5093 5094cygwin*) 5095 # func_win32_libid is a shell function defined in ltmain.sh 5096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5097 lt_cv_file_magic_cmd='func_win32_libid' 5098 ;; 5099 5100mingw* | pw32*) 5101 # Base MSYS/MinGW do not provide the 'file' command needed by 5102 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5103 # unless we find 'file', for example because we are cross-compiling. 5104 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5105 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5106 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5107 lt_cv_file_magic_cmd='func_win32_libid' 5108 else 5109 # Keep this pattern in sync with the one in func_win32_libid. 5110 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5111 lt_cv_file_magic_cmd='$OBJDUMP -f' 5112 fi 5113 ;; 5114 5115cegcc*) 5116 # use the weaker test based on 'objdump'. See mingw*. 5117 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5118 lt_cv_file_magic_cmd='$OBJDUMP -f' 5119 ;; 5120 5121darwin* | rhapsody*) 5122 lt_cv_deplibs_check_method=pass_all 5123 ;; 5124 5125freebsd* | dragonfly*) 5126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5127 case $host_cpu in 5128 i*86 ) 5129 # Not sure whether the presence of OpenBSD here was a mistake. 5130 # Let's accept both of them until this is cleared up. 5131 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5132 lt_cv_file_magic_cmd=/usr/bin/file 5133 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5134 ;; 5135 esac 5136 else 5137 lt_cv_deplibs_check_method=pass_all 5138 fi 5139 ;; 5140 5141gnu*) 5142 lt_cv_deplibs_check_method=pass_all 5143 ;; 5144 5145haiku*) 5146 lt_cv_deplibs_check_method=pass_all 5147 ;; 5148 5149hpux10.20* | hpux11*) 5150 lt_cv_file_magic_cmd=/usr/bin/file 5151 case $host_cpu in 5152 ia64*) 5153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5155 ;; 5156 hppa*64*) 5157 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]' 5158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5159 ;; 5160 *) 5161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5162 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5163 ;; 5164 esac 5165 ;; 5166 5167interix[3-9]*) 5168 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5170 ;; 5171 5172irix5* | irix6* | nonstopux*) 5173 case $LD in 5174 *-32|*"-32 ") libmagic=32-bit;; 5175 *-n32|*"-n32 ") libmagic=N32;; 5176 *-64|*"-64 ") libmagic=64-bit;; 5177 *) libmagic=never-match;; 5178 esac 5179 lt_cv_deplibs_check_method=pass_all 5180 ;; 5181 5182# This must be glibc/ELF. 5183linux* | k*bsd*-gnu | kopensolaris*-gnu) 5184 lt_cv_deplibs_check_method=pass_all 5185 ;; 5186 5187netbsd*) 5188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5190 else 5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5192 fi 5193 ;; 5194 5195newos6*) 5196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5197 lt_cv_file_magic_cmd=/usr/bin/file 5198 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5199 ;; 5200 5201*nto* | *qnx*) 5202 lt_cv_deplibs_check_method=pass_all 5203 ;; 5204 5205openbsd*) 5206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5208 else 5209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5210 fi 5211 ;; 5212 5213osf3* | osf4* | osf5*) 5214 lt_cv_deplibs_check_method=pass_all 5215 ;; 5216 5217rdos*) 5218 lt_cv_deplibs_check_method=pass_all 5219 ;; 5220 5221solaris*) 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5226 lt_cv_deplibs_check_method=pass_all 5227 ;; 5228 5229sysv4 | sysv4.3*) 5230 case $host_vendor in 5231 motorola) 5232 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]' 5233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5234 ;; 5235 ncr) 5236 lt_cv_deplibs_check_method=pass_all 5237 ;; 5238 sequent) 5239 lt_cv_file_magic_cmd='/bin/file' 5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5241 ;; 5242 sni) 5243 lt_cv_file_magic_cmd='/bin/file' 5244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5245 lt_cv_file_magic_test_file=/lib/libc.so 5246 ;; 5247 siemens) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 pc) 5251 lt_cv_deplibs_check_method=pass_all 5252 ;; 5253 esac 5254 ;; 5255 5256tpf*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259esac 5260 5261fi 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5263$as_echo "$lt_cv_deplibs_check_method" >&6; } 5264 5265file_magic_glob= 5266want_nocaseglob=no 5267if test "$build" = "$host"; then 5268 case $host_os in 5269 mingw* | pw32*) 5270 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5271 want_nocaseglob=yes 5272 else 5273 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5274 fi 5275 ;; 5276 esac 5277fi 5278 5279file_magic_cmd=$lt_cv_file_magic_cmd 5280deplibs_check_method=$lt_cv_deplibs_check_method 5281test -z "$deplibs_check_method" && deplibs_check_method=unknown 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304if test -n "$ac_tool_prefix"; then 5305 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5306set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5308$as_echo_n "checking for $ac_word... " >&6; } 5309if ${ac_cv_prog_DLLTOOL+:} false; then : 5310 $as_echo_n "(cached) " >&6 5311else 5312 if test -n "$DLLTOOL"; then 5313 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5314else 5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316for as_dir in $PATH 5317do 5318 IFS=$as_save_IFS 5319 test -z "$as_dir" && as_dir=. 5320 for ac_exec_ext in '' $ac_executable_extensions; do 5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5322 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5324 break 2 5325 fi 5326done 5327 done 5328IFS=$as_save_IFS 5329 5330fi 5331fi 5332DLLTOOL=$ac_cv_prog_DLLTOOL 5333if test -n "$DLLTOOL"; then 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5335$as_echo "$DLLTOOL" >&6; } 5336else 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5338$as_echo "no" >&6; } 5339fi 5340 5341 5342fi 5343if test -z "$ac_cv_prog_DLLTOOL"; then 5344 ac_ct_DLLTOOL=$DLLTOOL 5345 # Extract the first word of "dlltool", so it can be a program name with args. 5346set dummy dlltool; ac_word=$2 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5348$as_echo_n "checking for $ac_word... " >&6; } 5349if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 if test -n "$ac_ct_DLLTOOL"; then 5353 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5354else 5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $PATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5362 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370fi 5371fi 5372ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5373if test -n "$ac_ct_DLLTOOL"; then 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5375$as_echo "$ac_ct_DLLTOOL" >&6; } 5376else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379fi 5380 5381 if test "x$ac_ct_DLLTOOL" = x; then 5382 DLLTOOL="false" 5383 else 5384 case $cross_compiling:$ac_tool_warned in 5385yes:) 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5388ac_tool_warned=yes ;; 5389esac 5390 DLLTOOL=$ac_ct_DLLTOOL 5391 fi 5392else 5393 DLLTOOL="$ac_cv_prog_DLLTOOL" 5394fi 5395 5396test -z "$DLLTOOL" && DLLTOOL=dlltool 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5408$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5409if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 lt_cv_sharedlib_from_linklib_cmd='unknown' 5413 5414case $host_os in 5415cygwin* | mingw* | pw32* | cegcc*) 5416 # two different shell functions defined in ltmain.sh 5417 # decide which to use based on capabilities of $DLLTOOL 5418 case `$DLLTOOL --help 2>&1` in 5419 *--identify-strict*) 5420 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5421 ;; 5422 *) 5423 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5424 ;; 5425 esac 5426 ;; 5427*) 5428 # fallback: assume linklib IS sharedlib 5429 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5430 ;; 5431esac 5432 5433fi 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5435$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5436sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5437test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5438 5439 5440 5441 5442 5443 5444 5445 5446if test -n "$ac_tool_prefix"; then 5447 for ac_prog in ar 5448 do 5449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5450set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5452$as_echo_n "checking for $ac_word... " >&6; } 5453if ${ac_cv_prog_AR+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 if test -n "$AR"; then 5457 ac_cv_prog_AR="$AR" # Let the user override the test. 5458else 5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5466 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471 done 5472IFS=$as_save_IFS 5473 5474fi 5475fi 5476AR=$ac_cv_prog_AR 5477if test -n "$AR"; then 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5479$as_echo "$AR" >&6; } 5480else 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5482$as_echo "no" >&6; } 5483fi 5484 5485 5486 test -n "$AR" && break 5487 done 5488fi 5489if test -z "$AR"; then 5490 ac_ct_AR=$AR 5491 for ac_prog in ar 5492do 5493 # Extract the first word of "$ac_prog", so it can be a program name with args. 5494set dummy $ac_prog; ac_word=$2 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5496$as_echo_n "checking for $ac_word... " >&6; } 5497if ${ac_cv_prog_ac_ct_AR+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 if test -n "$ac_ct_AR"; then 5501 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5502else 5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5504for as_dir in $PATH 5505do 5506 IFS=$as_save_IFS 5507 test -z "$as_dir" && as_dir=. 5508 for ac_exec_ext in '' $ac_executable_extensions; do 5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5510 ac_cv_prog_ac_ct_AR="$ac_prog" 5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5512 break 2 5513 fi 5514done 5515 done 5516IFS=$as_save_IFS 5517 5518fi 5519fi 5520ac_ct_AR=$ac_cv_prog_ac_ct_AR 5521if test -n "$ac_ct_AR"; then 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5523$as_echo "$ac_ct_AR" >&6; } 5524else 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5526$as_echo "no" >&6; } 5527fi 5528 5529 5530 test -n "$ac_ct_AR" && break 5531done 5532 5533 if test "x$ac_ct_AR" = x; then 5534 AR="false" 5535 else 5536 case $cross_compiling:$ac_tool_warned in 5537yes:) 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5540ac_tool_warned=yes ;; 5541esac 5542 AR=$ac_ct_AR 5543 fi 5544fi 5545 5546: ${AR=ar} 5547: ${AR_FLAGS=cru} 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5560$as_echo_n "checking for archiver @FILE support... " >&6; } 5561if ${lt_cv_ar_at_file+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 lt_cv_ar_at_file=no 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5566/* end confdefs.h. */ 5567 5568int 5569main () 5570{ 5571 5572 ; 5573 return 0; 5574} 5575_ACEOF 5576if ac_fn_c_try_compile "$LINENO"; then : 5577 echo conftest.$ac_objext > conftest.lst 5578 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5580 (eval $lt_ar_try) 2>&5 5581 ac_status=$? 5582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5583 test $ac_status = 0; } 5584 if test "$ac_status" -eq 0; then 5585 # Ensure the archiver fails upon bogus file names. 5586 rm -f conftest.$ac_objext libconftest.a 5587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5588 (eval $lt_ar_try) 2>&5 5589 ac_status=$? 5590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5591 test $ac_status = 0; } 5592 if test "$ac_status" -ne 0; then 5593 lt_cv_ar_at_file=@ 5594 fi 5595 fi 5596 rm -f conftest.* libconftest.a 5597 5598fi 5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5600 5601fi 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5603$as_echo "$lt_cv_ar_at_file" >&6; } 5604 5605if test "x$lt_cv_ar_at_file" = xno; then 5606 archiver_list_spec= 5607else 5608 archiver_list_spec=$lt_cv_ar_at_file 5609fi 5610 5611 5612 5613 5614 5615 5616 5617if test -n "$ac_tool_prefix"; then 5618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5619set dummy ${ac_tool_prefix}strip; ac_word=$2 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5621$as_echo_n "checking for $ac_word... " >&6; } 5622if ${ac_cv_prog_STRIP+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624else 5625 if test -n "$STRIP"; then 5626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5627else 5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5629for as_dir in $PATH 5630do 5631 IFS=$as_save_IFS 5632 test -z "$as_dir" && as_dir=. 5633 for ac_exec_ext in '' $ac_executable_extensions; do 5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5635 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5637 break 2 5638 fi 5639done 5640 done 5641IFS=$as_save_IFS 5642 5643fi 5644fi 5645STRIP=$ac_cv_prog_STRIP 5646if test -n "$STRIP"; then 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5648$as_echo "$STRIP" >&6; } 5649else 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651$as_echo "no" >&6; } 5652fi 5653 5654 5655fi 5656if test -z "$ac_cv_prog_STRIP"; then 5657 ac_ct_STRIP=$STRIP 5658 # Extract the first word of "strip", so it can be a program name with args. 5659set dummy strip; ac_word=$2 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5661$as_echo_n "checking for $ac_word... " >&6; } 5662if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$ac_ct_STRIP"; then 5666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5675 ac_cv_prog_ac_ct_STRIP="strip" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680 done 5681IFS=$as_save_IFS 5682 5683fi 5684fi 5685ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5686if test -n "$ac_ct_STRIP"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5688$as_echo "$ac_ct_STRIP" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 if test "x$ac_ct_STRIP" = x; then 5695 STRIP=":" 5696 else 5697 case $cross_compiling:$ac_tool_warned in 5698yes:) 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5701ac_tool_warned=yes ;; 5702esac 5703 STRIP=$ac_ct_STRIP 5704 fi 5705else 5706 STRIP="$ac_cv_prog_STRIP" 5707fi 5708 5709test -z "$STRIP" && STRIP=: 5710 5711 5712 5713 5714 5715 5716if test -n "$ac_tool_prefix"; then 5717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5718set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5720$as_echo_n "checking for $ac_word... " >&6; } 5721if ${ac_cv_prog_RANLIB+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 if test -n "$RANLIB"; then 5725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5726else 5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5728for as_dir in $PATH 5729do 5730 IFS=$as_save_IFS 5731 test -z "$as_dir" && as_dir=. 5732 for ac_exec_ext in '' $ac_executable_extensions; do 5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5736 break 2 5737 fi 5738done 5739 done 5740IFS=$as_save_IFS 5741 5742fi 5743fi 5744RANLIB=$ac_cv_prog_RANLIB 5745if test -n "$RANLIB"; then 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5747$as_echo "$RANLIB" >&6; } 5748else 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5750$as_echo "no" >&6; } 5751fi 5752 5753 5754fi 5755if test -z "$ac_cv_prog_RANLIB"; then 5756 ac_ct_RANLIB=$RANLIB 5757 # Extract the first word of "ranlib", so it can be a program name with args. 5758set dummy ranlib; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$ac_ct_RANLIB"; then 5765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5774 ac_cv_prog_ac_ct_RANLIB="ranlib" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5785if test -n "$ac_ct_RANLIB"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5787$as_echo "$ac_ct_RANLIB" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 if test "x$ac_ct_RANLIB" = x; then 5794 RANLIB=":" 5795 else 5796 case $cross_compiling:$ac_tool_warned in 5797yes:) 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5800ac_tool_warned=yes ;; 5801esac 5802 RANLIB=$ac_ct_RANLIB 5803 fi 5804else 5805 RANLIB="$ac_cv_prog_RANLIB" 5806fi 5807 5808test -z "$RANLIB" && RANLIB=: 5809 5810 5811 5812 5813 5814 5815# Determine commands to create old-style static archives. 5816old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5817old_postinstall_cmds='chmod 644 $oldlib' 5818old_postuninstall_cmds= 5819 5820if test -n "$RANLIB"; then 5821 case $host_os in 5822 openbsd*) 5823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5824 ;; 5825 *) 5826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5827 ;; 5828 esac 5829 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5830fi 5831 5832case $host_os in 5833 darwin*) 5834 lock_old_archive_extraction=yes ;; 5835 *) 5836 lock_old_archive_extraction=no ;; 5837esac 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877# If no C compiler was specified, use CC. 5878LTCC=${LTCC-"$CC"} 5879 5880# If no C compiler flags were specified, use CFLAGS. 5881LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5882 5883# Allow CC to be a program name with arguments. 5884compiler=$CC 5885 5886 5887# Check for command to grab the raw symbol name followed by C symbol from nm. 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5889$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5890if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 5894# These are sane defaults that work on at least a few old systems. 5895# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5896 5897# Character class describing NM global symbol codes. 5898symcode='[BCDEGRST]' 5899 5900# Regexp to match symbols that can be accessed directly from C. 5901sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5902 5903# Define system-specific variables. 5904case $host_os in 5905aix*) 5906 symcode='[BCDT]' 5907 ;; 5908cygwin* | mingw* | pw32* | cegcc*) 5909 symcode='[ABCDGISTW]' 5910 ;; 5911hpux*) 5912 if test "$host_cpu" = ia64; then 5913 symcode='[ABCDEGRST]' 5914 fi 5915 ;; 5916irix* | nonstopux*) 5917 symcode='[BCDEGRST]' 5918 ;; 5919osf*) 5920 symcode='[BCDEGQRST]' 5921 ;; 5922solaris*) 5923 symcode='[BDRT]' 5924 ;; 5925sco3.2v5*) 5926 symcode='[DT]' 5927 ;; 5928sysv4.2uw2*) 5929 symcode='[DT]' 5930 ;; 5931sysv5* | sco5v6* | unixware* | OpenUNIX*) 5932 symcode='[ABDT]' 5933 ;; 5934sysv4) 5935 symcode='[DFNSTU]' 5936 ;; 5937esac 5938 5939# If we're using GNU nm, then use its standard symbol codes. 5940case `$NM -V 2>&1` in 5941*GNU* | *'with BFD'*) 5942 symcode='[ABCDGIRSTW]' ;; 5943esac 5944 5945# Transform an extracted symbol line into a proper C declaration. 5946# Some systems (esp. on ia64) link data and code symbols differently, 5947# so use this general approach. 5948lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5949 5950# Transform an extracted symbol line into symbol name and symbol address 5951lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5952lt_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'" 5953 5954# Handle CRLF in mingw tool chain 5955opt_cr= 5956case $build_os in 5957mingw*) 5958 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5959 ;; 5960esac 5961 5962# Try without a prefix underscore, then with it. 5963for ac_symprfx in "" "_"; do 5964 5965 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5966 symxfrm="\\1 $ac_symprfx\\2 \\2" 5967 5968 # Write the raw and C identifiers. 5969 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5970 # Fake it for dumpbin and say T for any non-static function 5971 # and D for any global variable. 5972 # Also find C++ and __fastcall symbols from MSVC++, 5973 # which start with @ or ?. 5974 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5975" {last_section=section; section=\$ 3};"\ 5976" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5977" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5978" \$ 0!~/External *\|/{next};"\ 5979" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5980" {if(hide[section]) next};"\ 5981" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5982" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5983" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5984" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5985" ' prfx=^$ac_symprfx" 5986 else 5987 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5988 fi 5989 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5990 5991 # Check to see that the pipe works correctly. 5992 pipe_works=no 5993 5994 rm -f conftest* 5995 cat > conftest.$ac_ext <<_LT_EOF 5996#ifdef __cplusplus 5997extern "C" { 5998#endif 5999char nm_test_var; 6000void nm_test_func(void); 6001void nm_test_func(void){} 6002#ifdef __cplusplus 6003} 6004#endif 6005int main(){nm_test_var='a';nm_test_func();return(0);} 6006_LT_EOF 6007 6008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6009 (eval $ac_compile) 2>&5 6010 ac_status=$? 6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6012 test $ac_status = 0; }; then 6013 # Now try to grab the symbols. 6014 nlist=conftest.nm 6015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6016 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6017 ac_status=$? 6018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6019 test $ac_status = 0; } && test -s "$nlist"; then 6020 # Try sorting and uniquifying the output. 6021 if sort "$nlist" | uniq > "$nlist"T; then 6022 mv -f "$nlist"T "$nlist" 6023 else 6024 rm -f "$nlist"T 6025 fi 6026 6027 # Make sure that we snagged all the symbols we need. 6028 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6029 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6030 cat <<_LT_EOF > conftest.$ac_ext 6031/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6032#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6033/* DATA imports from DLLs on WIN32 con't be const, because runtime 6034 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6035# define LT_DLSYM_CONST 6036#elif defined(__osf__) 6037/* This system does not cope well with relocations in const data. */ 6038# define LT_DLSYM_CONST 6039#else 6040# define LT_DLSYM_CONST const 6041#endif 6042 6043#ifdef __cplusplus 6044extern "C" { 6045#endif 6046 6047_LT_EOF 6048 # Now generate the symbol file. 6049 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6050 6051 cat <<_LT_EOF >> conftest.$ac_ext 6052 6053/* The mapping between symbol names and symbols. */ 6054LT_DLSYM_CONST struct { 6055 const char *name; 6056 void *address; 6057} 6058lt__PROGRAM__LTX_preloaded_symbols[] = 6059{ 6060 { "@PROGRAM@", (void *) 0 }, 6061_LT_EOF 6062 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6063 cat <<\_LT_EOF >> conftest.$ac_ext 6064 {0, (void *) 0} 6065}; 6066 6067/* This works around a problem in FreeBSD linker */ 6068#ifdef FREEBSD_WORKAROUND 6069static const void *lt_preloaded_setup() { 6070 return lt__PROGRAM__LTX_preloaded_symbols; 6071} 6072#endif 6073 6074#ifdef __cplusplus 6075} 6076#endif 6077_LT_EOF 6078 # Now try linking the two files. 6079 mv conftest.$ac_objext conftstm.$ac_objext 6080 lt_globsym_save_LIBS=$LIBS 6081 lt_globsym_save_CFLAGS=$CFLAGS 6082 LIBS="conftstm.$ac_objext" 6083 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6085 (eval $ac_link) 2>&5 6086 ac_status=$? 6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6088 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6089 pipe_works=yes 6090 fi 6091 LIBS=$lt_globsym_save_LIBS 6092 CFLAGS=$lt_globsym_save_CFLAGS 6093 else 6094 echo "cannot find nm_test_func in $nlist" >&5 6095 fi 6096 else 6097 echo "cannot find nm_test_var in $nlist" >&5 6098 fi 6099 else 6100 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6101 fi 6102 else 6103 echo "$progname: failed program was:" >&5 6104 cat conftest.$ac_ext >&5 6105 fi 6106 rm -rf conftest* conftst* 6107 6108 # Do not use the global_symbol_pipe unless it works. 6109 if test "$pipe_works" = yes; then 6110 break 6111 else 6112 lt_cv_sys_global_symbol_pipe= 6113 fi 6114done 6115 6116fi 6117 6118if test -z "$lt_cv_sys_global_symbol_pipe"; then 6119 lt_cv_sys_global_symbol_to_cdecl= 6120fi 6121if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6123$as_echo "failed" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6126$as_echo "ok" >&6; } 6127fi 6128 6129# Response file support. 6130if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6131 nm_file_list_spec='@' 6132elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6133 nm_file_list_spec='@' 6134fi 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6163$as_echo_n "checking for sysroot... " >&6; } 6164 6165# Check whether --with-sysroot was given. 6166if test "${with_sysroot+set}" = set; then : 6167 withval=$with_sysroot; 6168else 6169 with_sysroot=no 6170fi 6171 6172 6173lt_sysroot= 6174case ${with_sysroot} in #( 6175 yes) 6176 if test "$GCC" = yes; then 6177 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6178 fi 6179 ;; #( 6180 /*) 6181 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6182 ;; #( 6183 no|'') 6184 ;; #( 6185 *) 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6187$as_echo "${with_sysroot}" >&6; } 6188 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6189 ;; 6190esac 6191 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6193$as_echo "${lt_sysroot:-no}" >&6; } 6194 6195 6196 6197 6198 6199# Check whether --enable-libtool-lock was given. 6200if test "${enable_libtool_lock+set}" = set; then : 6201 enableval=$enable_libtool_lock; 6202fi 6203 6204test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6205 6206# Some flags need to be propagated to the compiler or linker for good 6207# libtool support. 6208case $host in 6209ia64-*-hpux*) 6210 # Find out which ABI we are using. 6211 echo 'int i;' > conftest.$ac_ext 6212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6213 (eval $ac_compile) 2>&5 6214 ac_status=$? 6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6216 test $ac_status = 0; }; then 6217 case `/usr/bin/file conftest.$ac_objext` in 6218 *ELF-32*) 6219 HPUX_IA64_MODE="32" 6220 ;; 6221 *ELF-64*) 6222 HPUX_IA64_MODE="64" 6223 ;; 6224 esac 6225 fi 6226 rm -rf conftest* 6227 ;; 6228*-*-irix6*) 6229 # Find out which ABI we are using. 6230 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6232 (eval $ac_compile) 2>&5 6233 ac_status=$? 6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6235 test $ac_status = 0; }; then 6236 if test "$lt_cv_prog_gnu_ld" = yes; then 6237 case `/usr/bin/file conftest.$ac_objext` in 6238 *32-bit*) 6239 LD="${LD-ld} -melf32bsmip" 6240 ;; 6241 *N32*) 6242 LD="${LD-ld} -melf32bmipn32" 6243 ;; 6244 *64-bit*) 6245 LD="${LD-ld} -melf64bmip" 6246 ;; 6247 esac 6248 else 6249 case `/usr/bin/file conftest.$ac_objext` in 6250 *32-bit*) 6251 LD="${LD-ld} -32" 6252 ;; 6253 *N32*) 6254 LD="${LD-ld} -n32" 6255 ;; 6256 *64-bit*) 6257 LD="${LD-ld} -64" 6258 ;; 6259 esac 6260 fi 6261 fi 6262 rm -rf conftest* 6263 ;; 6264 6265x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6266s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6267 # Find out which ABI we are using. 6268 echo 'int i;' > conftest.$ac_ext 6269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6270 (eval $ac_compile) 2>&5 6271 ac_status=$? 6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6273 test $ac_status = 0; }; then 6274 case `/usr/bin/file conftest.o` in 6275 *32-bit*) 6276 case $host in 6277 x86_64-*kfreebsd*-gnu) 6278 LD="${LD-ld} -m elf_i386_fbsd" 6279 ;; 6280 x86_64-*linux*) 6281 LD="${LD-ld} -m elf_i386" 6282 ;; 6283 ppc64-*linux*|powerpc64-*linux*) 6284 LD="${LD-ld} -m elf32ppclinux" 6285 ;; 6286 s390x-*linux*) 6287 LD="${LD-ld} -m elf_s390" 6288 ;; 6289 sparc64-*linux*) 6290 LD="${LD-ld} -m elf32_sparc" 6291 ;; 6292 esac 6293 ;; 6294 *64-bit*) 6295 case $host in 6296 x86_64-*kfreebsd*-gnu) 6297 LD="${LD-ld} -m elf_x86_64_fbsd" 6298 ;; 6299 x86_64-*linux*) 6300 LD="${LD-ld} -m elf_x86_64" 6301 ;; 6302 ppc*-*linux*|powerpc*-*linux*) 6303 LD="${LD-ld} -m elf64ppc" 6304 ;; 6305 s390*-*linux*|s390*-*tpf*) 6306 LD="${LD-ld} -m elf64_s390" 6307 ;; 6308 sparc*-*linux*) 6309 LD="${LD-ld} -m elf64_sparc" 6310 ;; 6311 esac 6312 ;; 6313 esac 6314 fi 6315 rm -rf conftest* 6316 ;; 6317 6318*-*-sco3.2v5*) 6319 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6320 SAVE_CFLAGS="$CFLAGS" 6321 CFLAGS="$CFLAGS -belf" 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6323$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6324if ${lt_cv_cc_needs_belf+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 ac_ext=c 6328ac_cpp='$CPP $CPPFLAGS' 6329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6331ac_compiler_gnu=$ac_cv_c_compiler_gnu 6332 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335 6336int 6337main () 6338{ 6339 6340 ; 6341 return 0; 6342} 6343_ACEOF 6344if ac_fn_c_try_link "$LINENO"; then : 6345 lt_cv_cc_needs_belf=yes 6346else 6347 lt_cv_cc_needs_belf=no 6348fi 6349rm -f core conftest.err conftest.$ac_objext \ 6350 conftest$ac_exeext conftest.$ac_ext 6351 ac_ext=c 6352ac_cpp='$CPP $CPPFLAGS' 6353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6355ac_compiler_gnu=$ac_cv_c_compiler_gnu 6356 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6359$as_echo "$lt_cv_cc_needs_belf" >&6; } 6360 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6361 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6362 CFLAGS="$SAVE_CFLAGS" 6363 fi 6364 ;; 6365*-*solaris*) 6366 # Find out which ABI we are using. 6367 echo 'int i;' > conftest.$ac_ext 6368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6369 (eval $ac_compile) 2>&5 6370 ac_status=$? 6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6372 test $ac_status = 0; }; then 6373 case `/usr/bin/file conftest.o` in 6374 *64-bit*) 6375 case $lt_cv_prog_gnu_ld in 6376 yes*) 6377 case $host in 6378 i?86-*-solaris*) 6379 LD="${LD-ld} -m elf_x86_64" 6380 ;; 6381 sparc*-*-solaris*) 6382 LD="${LD-ld} -m elf64_sparc" 6383 ;; 6384 esac 6385 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6386 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6387 LD="${LD-ld}_sol2" 6388 fi 6389 ;; 6390 *) 6391 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6392 LD="${LD-ld} -64" 6393 fi 6394 ;; 6395 esac 6396 ;; 6397 esac 6398 fi 6399 rm -rf conftest* 6400 ;; 6401esac 6402 6403need_locks="$enable_libtool_lock" 6404 6405if test -n "$ac_tool_prefix"; then 6406 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6407set dummy ${ac_tool_prefix}mt; ac_word=$2 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6409$as_echo_n "checking for $ac_word... " >&6; } 6410if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 if test -n "$MANIFEST_TOOL"; then 6414 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6415else 6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6417for as_dir in $PATH 6418do 6419 IFS=$as_save_IFS 6420 test -z "$as_dir" && as_dir=. 6421 for ac_exec_ext in '' $ac_executable_extensions; do 6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6423 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6425 break 2 6426 fi 6427done 6428 done 6429IFS=$as_save_IFS 6430 6431fi 6432fi 6433MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6434if test -n "$MANIFEST_TOOL"; then 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6436$as_echo "$MANIFEST_TOOL" >&6; } 6437else 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6439$as_echo "no" >&6; } 6440fi 6441 6442 6443fi 6444if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6445 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6446 # Extract the first word of "mt", so it can be a program name with args. 6447set dummy mt; ac_word=$2 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449$as_echo_n "checking for $ac_word... " >&6; } 6450if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 if test -n "$ac_ct_MANIFEST_TOOL"; then 6454 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6455else 6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6457for as_dir in $PATH 6458do 6459 IFS=$as_save_IFS 6460 test -z "$as_dir" && as_dir=. 6461 for ac_exec_ext in '' $ac_executable_extensions; do 6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6463 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6465 break 2 6466 fi 6467done 6468 done 6469IFS=$as_save_IFS 6470 6471fi 6472fi 6473ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6474if test -n "$ac_ct_MANIFEST_TOOL"; then 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6476$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6477else 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479$as_echo "no" >&6; } 6480fi 6481 6482 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6483 MANIFEST_TOOL=":" 6484 else 6485 case $cross_compiling:$ac_tool_warned in 6486yes:) 6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6489ac_tool_warned=yes ;; 6490esac 6491 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6492 fi 6493else 6494 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6495fi 6496 6497test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6499$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6500if ${lt_cv_path_mainfest_tool+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 lt_cv_path_mainfest_tool=no 6504 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6505 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6506 cat conftest.err >&5 6507 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6508 lt_cv_path_mainfest_tool=yes 6509 fi 6510 rm -f conftest* 6511fi 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6513$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6514if test "x$lt_cv_path_mainfest_tool" != xyes; then 6515 MANIFEST_TOOL=: 6516fi 6517 6518 6519 6520 6521 6522 6523 case $host_os in 6524 rhapsody* | darwin*) 6525 if test -n "$ac_tool_prefix"; then 6526 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6527set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6529$as_echo_n "checking for $ac_word... " >&6; } 6530if ${ac_cv_prog_DSYMUTIL+:} false; then : 6531 $as_echo_n "(cached) " >&6 6532else 6533 if test -n "$DSYMUTIL"; then 6534 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6535else 6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6537for as_dir in $PATH 6538do 6539 IFS=$as_save_IFS 6540 test -z "$as_dir" && as_dir=. 6541 for ac_exec_ext in '' $ac_executable_extensions; do 6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6543 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6545 break 2 6546 fi 6547done 6548 done 6549IFS=$as_save_IFS 6550 6551fi 6552fi 6553DSYMUTIL=$ac_cv_prog_DSYMUTIL 6554if test -n "$DSYMUTIL"; then 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6556$as_echo "$DSYMUTIL" >&6; } 6557else 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6559$as_echo "no" >&6; } 6560fi 6561 6562 6563fi 6564if test -z "$ac_cv_prog_DSYMUTIL"; then 6565 ac_ct_DSYMUTIL=$DSYMUTIL 6566 # Extract the first word of "dsymutil", so it can be a program name with args. 6567set dummy dsymutil; ac_word=$2 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6569$as_echo_n "checking for $ac_word... " >&6; } 6570if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 if test -n "$ac_ct_DSYMUTIL"; then 6574 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6575else 6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH 6578do 6579 IFS=$as_save_IFS 6580 test -z "$as_dir" && as_dir=. 6581 for ac_exec_ext in '' $ac_executable_extensions; do 6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6583 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6585 break 2 6586 fi 6587done 6588 done 6589IFS=$as_save_IFS 6590 6591fi 6592fi 6593ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6594if test -n "$ac_ct_DSYMUTIL"; then 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6596$as_echo "$ac_ct_DSYMUTIL" >&6; } 6597else 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6599$as_echo "no" >&6; } 6600fi 6601 6602 if test "x$ac_ct_DSYMUTIL" = x; then 6603 DSYMUTIL=":" 6604 else 6605 case $cross_compiling:$ac_tool_warned in 6606yes:) 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6609ac_tool_warned=yes ;; 6610esac 6611 DSYMUTIL=$ac_ct_DSYMUTIL 6612 fi 6613else 6614 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6615fi 6616 6617 if test -n "$ac_tool_prefix"; then 6618 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6619set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6621$as_echo_n "checking for $ac_word... " >&6; } 6622if ${ac_cv_prog_NMEDIT+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 if test -n "$NMEDIT"; then 6626 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6627else 6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6629for as_dir in $PATH 6630do 6631 IFS=$as_save_IFS 6632 test -z "$as_dir" && as_dir=. 6633 for ac_exec_ext in '' $ac_executable_extensions; do 6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6635 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6637 break 2 6638 fi 6639done 6640 done 6641IFS=$as_save_IFS 6642 6643fi 6644fi 6645NMEDIT=$ac_cv_prog_NMEDIT 6646if test -n "$NMEDIT"; then 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6648$as_echo "$NMEDIT" >&6; } 6649else 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6651$as_echo "no" >&6; } 6652fi 6653 6654 6655fi 6656if test -z "$ac_cv_prog_NMEDIT"; then 6657 ac_ct_NMEDIT=$NMEDIT 6658 # Extract the first word of "nmedit", so it can be a program name with args. 6659set dummy nmedit; ac_word=$2 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6661$as_echo_n "checking for $ac_word... " >&6; } 6662if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6663 $as_echo_n "(cached) " >&6 6664else 6665 if test -n "$ac_ct_NMEDIT"; then 6666 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6667else 6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6669for as_dir in $PATH 6670do 6671 IFS=$as_save_IFS 6672 test -z "$as_dir" && as_dir=. 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6675 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679done 6680 done 6681IFS=$as_save_IFS 6682 6683fi 6684fi 6685ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6686if test -n "$ac_ct_NMEDIT"; then 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6688$as_echo "$ac_ct_NMEDIT" >&6; } 6689else 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6691$as_echo "no" >&6; } 6692fi 6693 6694 if test "x$ac_ct_NMEDIT" = x; then 6695 NMEDIT=":" 6696 else 6697 case $cross_compiling:$ac_tool_warned in 6698yes:) 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6701ac_tool_warned=yes ;; 6702esac 6703 NMEDIT=$ac_ct_NMEDIT 6704 fi 6705else 6706 NMEDIT="$ac_cv_prog_NMEDIT" 6707fi 6708 6709 if test -n "$ac_tool_prefix"; then 6710 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6711set dummy ${ac_tool_prefix}lipo; ac_word=$2 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6713$as_echo_n "checking for $ac_word... " >&6; } 6714if ${ac_cv_prog_LIPO+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 if test -n "$LIPO"; then 6718 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6719else 6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721for as_dir in $PATH 6722do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6727 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731done 6732 done 6733IFS=$as_save_IFS 6734 6735fi 6736fi 6737LIPO=$ac_cv_prog_LIPO 6738if test -n "$LIPO"; then 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6740$as_echo "$LIPO" >&6; } 6741else 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743$as_echo "no" >&6; } 6744fi 6745 6746 6747fi 6748if test -z "$ac_cv_prog_LIPO"; then 6749 ac_ct_LIPO=$LIPO 6750 # Extract the first word of "lipo", so it can be a program name with args. 6751set dummy lipo; ac_word=$2 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6753$as_echo_n "checking for $ac_word... " >&6; } 6754if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 if test -n "$ac_ct_LIPO"; then 6758 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6759else 6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6761for as_dir in $PATH 6762do 6763 IFS=$as_save_IFS 6764 test -z "$as_dir" && as_dir=. 6765 for ac_exec_ext in '' $ac_executable_extensions; do 6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6767 ac_cv_prog_ac_ct_LIPO="lipo" 6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6769 break 2 6770 fi 6771done 6772 done 6773IFS=$as_save_IFS 6774 6775fi 6776fi 6777ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6778if test -n "$ac_ct_LIPO"; then 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6780$as_echo "$ac_ct_LIPO" >&6; } 6781else 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6783$as_echo "no" >&6; } 6784fi 6785 6786 if test "x$ac_ct_LIPO" = x; then 6787 LIPO=":" 6788 else 6789 case $cross_compiling:$ac_tool_warned in 6790yes:) 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6793ac_tool_warned=yes ;; 6794esac 6795 LIPO=$ac_ct_LIPO 6796 fi 6797else 6798 LIPO="$ac_cv_prog_LIPO" 6799fi 6800 6801 if test -n "$ac_tool_prefix"; then 6802 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6803set dummy ${ac_tool_prefix}otool; ac_word=$2 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if ${ac_cv_prog_OTOOL+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 if test -n "$OTOOL"; then 6810 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6811else 6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813for as_dir in $PATH 6814do 6815 IFS=$as_save_IFS 6816 test -z "$as_dir" && as_dir=. 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6819 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823done 6824 done 6825IFS=$as_save_IFS 6826 6827fi 6828fi 6829OTOOL=$ac_cv_prog_OTOOL 6830if test -n "$OTOOL"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6832$as_echo "$OTOOL" >&6; } 6833else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6835$as_echo "no" >&6; } 6836fi 6837 6838 6839fi 6840if test -z "$ac_cv_prog_OTOOL"; then 6841 ac_ct_OTOOL=$OTOOL 6842 # Extract the first word of "otool", so it can be a program name with args. 6843set dummy otool; ac_word=$2 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$ac_ct_OTOOL"; then 6850 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6851else 6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853for as_dir in $PATH 6854do 6855 IFS=$as_save_IFS 6856 test -z "$as_dir" && as_dir=. 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6859 ac_cv_prog_ac_ct_OTOOL="otool" 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864 done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6870if test -n "$ac_ct_OTOOL"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6872$as_echo "$ac_ct_OTOOL" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 if test "x$ac_ct_OTOOL" = x; then 6879 OTOOL=":" 6880 else 6881 case $cross_compiling:$ac_tool_warned in 6882yes:) 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6885ac_tool_warned=yes ;; 6886esac 6887 OTOOL=$ac_ct_OTOOL 6888 fi 6889else 6890 OTOOL="$ac_cv_prog_OTOOL" 6891fi 6892 6893 if test -n "$ac_tool_prefix"; then 6894 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6895set dummy ${ac_tool_prefix}otool64; ac_word=$2 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6897$as_echo_n "checking for $ac_word... " >&6; } 6898if ${ac_cv_prog_OTOOL64+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 if test -n "$OTOOL64"; then 6902 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916 done 6917IFS=$as_save_IFS 6918 6919fi 6920fi 6921OTOOL64=$ac_cv_prog_OTOOL64 6922if test -n "$OTOOL64"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6924$as_echo "$OTOOL64" >&6; } 6925else 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6927$as_echo "no" >&6; } 6928fi 6929 6930 6931fi 6932if test -z "$ac_cv_prog_OTOOL64"; then 6933 ac_ct_OTOOL64=$OTOOL64 6934 # Extract the first word of "otool64", so it can be a program name with args. 6935set dummy otool64; ac_word=$2 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6937$as_echo_n "checking for $ac_word... " >&6; } 6938if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 if test -n "$ac_ct_OTOOL64"; then 6942 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_prog_ac_ct_OTOOL64="otool64" 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956 done 6957IFS=$as_save_IFS 6958 6959fi 6960fi 6961ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6962if test -n "$ac_ct_OTOOL64"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6964$as_echo "$ac_ct_OTOOL64" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 if test "x$ac_ct_OTOOL64" = x; then 6971 OTOOL64=":" 6972 else 6973 case $cross_compiling:$ac_tool_warned in 6974yes:) 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6977ac_tool_warned=yes ;; 6978esac 6979 OTOOL64=$ac_ct_OTOOL64 6980 fi 6981else 6982 OTOOL64="$ac_cv_prog_OTOOL64" 6983fi 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7012$as_echo_n "checking for -single_module linker flag... " >&6; } 7013if ${lt_cv_apple_cc_single_mod+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 lt_cv_apple_cc_single_mod=no 7017 if test -z "${LT_MULTI_MODULE}"; then 7018 # By default we will add the -single_module flag. You can override 7019 # by either setting the environment variable LT_MULTI_MODULE 7020 # non-empty at configure time, or by adding -multi_module to the 7021 # link flags. 7022 rm -rf libconftest.dylib* 7023 echo "int foo(void){return 1;}" > conftest.c 7024 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7025-dynamiclib -Wl,-single_module conftest.c" >&5 7026 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7027 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7028 _lt_result=$? 7029 # If there is a non-empty error log, and "single_module" 7030 # appears in it, assume the flag caused a linker warning 7031 if test -s conftest.err && $GREP single_module conftest.err; then 7032 cat conftest.err >&5 7033 # Otherwise, if the output was created with a 0 exit code from 7034 # the compiler, it worked. 7035 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7036 lt_cv_apple_cc_single_mod=yes 7037 else 7038 cat conftest.err >&5 7039 fi 7040 rm -rf libconftest.dylib* 7041 rm -f conftest.* 7042 fi 7043fi 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7045$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7046 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7048$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7049if ${lt_cv_ld_exported_symbols_list+:} false; then : 7050 $as_echo_n "(cached) " >&6 7051else 7052 lt_cv_ld_exported_symbols_list=no 7053 save_LDFLAGS=$LDFLAGS 7054 echo "_main" > conftest.sym 7055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058 7059int 7060main () 7061{ 7062 7063 ; 7064 return 0; 7065} 7066_ACEOF 7067if ac_fn_c_try_link "$LINENO"; then : 7068 lt_cv_ld_exported_symbols_list=yes 7069else 7070 lt_cv_ld_exported_symbols_list=no 7071fi 7072rm -f core conftest.err conftest.$ac_objext \ 7073 conftest$ac_exeext conftest.$ac_ext 7074 LDFLAGS="$save_LDFLAGS" 7075 7076fi 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7078$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7079 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7081$as_echo_n "checking for -force_load linker flag... " >&6; } 7082if ${lt_cv_ld_force_load+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 lt_cv_ld_force_load=no 7086 cat > conftest.c << _LT_EOF 7087int forced_loaded() { return 2;} 7088_LT_EOF 7089 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7090 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7091 echo "$AR cru libconftest.a conftest.o" >&5 7092 $AR cru libconftest.a conftest.o 2>&5 7093 echo "$RANLIB libconftest.a" >&5 7094 $RANLIB libconftest.a 2>&5 7095 cat > conftest.c << _LT_EOF 7096int main() { return 0;} 7097_LT_EOF 7098 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7099 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7100 _lt_result=$? 7101 if test -s conftest.err && $GREP force_load conftest.err; then 7102 cat conftest.err >&5 7103 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7104 lt_cv_ld_force_load=yes 7105 else 7106 cat conftest.err >&5 7107 fi 7108 rm -f conftest.err libconftest.a conftest conftest.c 7109 rm -rf conftest.dSYM 7110 7111fi 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7113$as_echo "$lt_cv_ld_force_load" >&6; } 7114 case $host_os in 7115 rhapsody* | darwin1.[012]) 7116 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7117 darwin1.*) 7118 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7119 darwin*) # darwin 5.x on 7120 # if running on 10.5 or later, the deployment target defaults 7121 # to the OS version, if on x86, and 10.4, the deployment 7122 # target defaults to 10.4. Don't you love it? 7123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7124 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7125 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7126 10.[012]*) 7127 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7128 10.*) 7129 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7130 esac 7131 ;; 7132 esac 7133 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7134 _lt_dar_single_mod='$single_module' 7135 fi 7136 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7137 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7138 else 7139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7140 fi 7141 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7142 _lt_dsymutil='~$DSYMUTIL $lib || :' 7143 else 7144 _lt_dsymutil= 7145 fi 7146 ;; 7147 esac 7148 7149ac_ext=c 7150ac_cpp='$CPP $CPPFLAGS' 7151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7153ac_compiler_gnu=$ac_cv_c_compiler_gnu 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7155$as_echo_n "checking how to run the C preprocessor... " >&6; } 7156# On Suns, sometimes $CPP names a directory. 7157if test -n "$CPP" && test -d "$CPP"; then 7158 CPP= 7159fi 7160if test -z "$CPP"; then 7161 if ${ac_cv_prog_CPP+:} false; then : 7162 $as_echo_n "(cached) " >&6 7163else 7164 # Double quotes because CPP needs to be expanded 7165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7166 do 7167 ac_preproc_ok=false 7168for ac_c_preproc_warn_flag in '' yes 7169do 7170 # Use a header file that comes with gcc, so configuring glibc 7171 # with a fresh cross-compiler works. 7172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7173 # <limits.h> exists even on freestanding compilers. 7174 # On the NeXT, cc -E runs the code through the compiler's parser, 7175 # not just through cpp. "Syntax error" is here to catch this case. 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178#ifdef __STDC__ 7179# include <limits.h> 7180#else 7181# include <assert.h> 7182#endif 7183 Syntax error 7184_ACEOF 7185if ac_fn_c_try_cpp "$LINENO"; then : 7186 7187else 7188 # Broken: fails on valid input. 7189continue 7190fi 7191rm -f conftest.err conftest.i conftest.$ac_ext 7192 7193 # OK, works on sane cases. Now check whether nonexistent headers 7194 # can be detected and how. 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197#include <ac_nonexistent.h> 7198_ACEOF 7199if ac_fn_c_try_cpp "$LINENO"; then : 7200 # Broken: success on invalid input. 7201continue 7202else 7203 # Passes both tests. 7204ac_preproc_ok=: 7205break 7206fi 7207rm -f conftest.err conftest.i conftest.$ac_ext 7208 7209done 7210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7211rm -f conftest.i conftest.err conftest.$ac_ext 7212if $ac_preproc_ok; then : 7213 break 7214fi 7215 7216 done 7217 ac_cv_prog_CPP=$CPP 7218 7219fi 7220 CPP=$ac_cv_prog_CPP 7221else 7222 ac_cv_prog_CPP=$CPP 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7225$as_echo "$CPP" >&6; } 7226ac_preproc_ok=false 7227for ac_c_preproc_warn_flag in '' yes 7228do 7229 # Use a header file that comes with gcc, so configuring glibc 7230 # with a fresh cross-compiler works. 7231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7232 # <limits.h> exists even on freestanding compilers. 7233 # On the NeXT, cc -E runs the code through the compiler's parser, 7234 # not just through cpp. "Syntax error" is here to catch this case. 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237#ifdef __STDC__ 7238# include <limits.h> 7239#else 7240# include <assert.h> 7241#endif 7242 Syntax error 7243_ACEOF 7244if ac_fn_c_try_cpp "$LINENO"; then : 7245 7246else 7247 # Broken: fails on valid input. 7248continue 7249fi 7250rm -f conftest.err conftest.i conftest.$ac_ext 7251 7252 # OK, works on sane cases. Now check whether nonexistent headers 7253 # can be detected and how. 7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7255/* end confdefs.h. */ 7256#include <ac_nonexistent.h> 7257_ACEOF 7258if ac_fn_c_try_cpp "$LINENO"; then : 7259 # Broken: success on invalid input. 7260continue 7261else 7262 # Passes both tests. 7263ac_preproc_ok=: 7264break 7265fi 7266rm -f conftest.err conftest.i conftest.$ac_ext 7267 7268done 7269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7270rm -f conftest.i conftest.err conftest.$ac_ext 7271if $ac_preproc_ok; then : 7272 7273else 7274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7276as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7277See \`config.log' for more details" "$LINENO" 5; } 7278fi 7279 7280ac_ext=c 7281ac_cpp='$CPP $CPPFLAGS' 7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7284ac_compiler_gnu=$ac_cv_c_compiler_gnu 7285 7286 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7288$as_echo_n "checking for ANSI C header files... " >&6; } 7289if ${ac_cv_header_stdc+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294#include <stdlib.h> 7295#include <stdarg.h> 7296#include <string.h> 7297#include <float.h> 7298 7299int 7300main () 7301{ 7302 7303 ; 7304 return 0; 7305} 7306_ACEOF 7307if ac_fn_c_try_compile "$LINENO"; then : 7308 ac_cv_header_stdc=yes 7309else 7310 ac_cv_header_stdc=no 7311fi 7312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7313 7314if test $ac_cv_header_stdc = yes; then 7315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7317/* end confdefs.h. */ 7318#include <string.h> 7319 7320_ACEOF 7321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7322 $EGREP "memchr" >/dev/null 2>&1; then : 7323 7324else 7325 ac_cv_header_stdc=no 7326fi 7327rm -f conftest* 7328 7329fi 7330 7331if test $ac_cv_header_stdc = yes; then 7332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7334/* end confdefs.h. */ 7335#include <stdlib.h> 7336 7337_ACEOF 7338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7339 $EGREP "free" >/dev/null 2>&1; then : 7340 7341else 7342 ac_cv_header_stdc=no 7343fi 7344rm -f conftest* 7345 7346fi 7347 7348if test $ac_cv_header_stdc = yes; then 7349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7350 if test "$cross_compiling" = yes; then : 7351 : 7352else 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355#include <ctype.h> 7356#include <stdlib.h> 7357#if ((' ' & 0x0FF) == 0x020) 7358# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7359# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7360#else 7361# define ISLOWER(c) \ 7362 (('a' <= (c) && (c) <= 'i') \ 7363 || ('j' <= (c) && (c) <= 'r') \ 7364 || ('s' <= (c) && (c) <= 'z')) 7365# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7366#endif 7367 7368#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7369int 7370main () 7371{ 7372 int i; 7373 for (i = 0; i < 256; i++) 7374 if (XOR (islower (i), ISLOWER (i)) 7375 || toupper (i) != TOUPPER (i)) 7376 return 2; 7377 return 0; 7378} 7379_ACEOF 7380if ac_fn_c_try_run "$LINENO"; then : 7381 7382else 7383 ac_cv_header_stdc=no 7384fi 7385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7386 conftest.$ac_objext conftest.beam conftest.$ac_ext 7387fi 7388 7389fi 7390fi 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7392$as_echo "$ac_cv_header_stdc" >&6; } 7393if test $ac_cv_header_stdc = yes; then 7394 7395$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7396 7397fi 7398 7399# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7400for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7401 inttypes.h stdint.h unistd.h 7402do : 7403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7404ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7405" 7406if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7407 cat >>confdefs.h <<_ACEOF 7408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7409_ACEOF 7410 7411fi 7412 7413done 7414 7415 7416for ac_header in dlfcn.h 7417do : 7418 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7419" 7420if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7421 cat >>confdefs.h <<_ACEOF 7422#define HAVE_DLFCN_H 1 7423_ACEOF 7424 7425fi 7426 7427done 7428 7429 7430 7431 7432 7433# Set options 7434 7435 7436 7437 enable_dlopen=no 7438 7439 7440 enable_win32_dll=no 7441 7442 7443 # Check whether --enable-shared was given. 7444if test "${enable_shared+set}" = set; then : 7445 enableval=$enable_shared; p=${PACKAGE-default} 7446 case $enableval in 7447 yes) enable_shared=yes ;; 7448 no) enable_shared=no ;; 7449 *) 7450 enable_shared=no 7451 # Look at the argument we got. We use all the common list separators. 7452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7453 for pkg in $enableval; do 7454 IFS="$lt_save_ifs" 7455 if test "X$pkg" = "X$p"; then 7456 enable_shared=yes 7457 fi 7458 done 7459 IFS="$lt_save_ifs" 7460 ;; 7461 esac 7462else 7463 enable_shared=yes 7464fi 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 # Check whether --enable-static was given. 7475if test "${enable_static+set}" = set; then : 7476 enableval=$enable_static; p=${PACKAGE-default} 7477 case $enableval in 7478 yes) enable_static=yes ;; 7479 no) enable_static=no ;; 7480 *) 7481 enable_static=no 7482 # Look at the argument we got. We use all the common list separators. 7483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7484 for pkg in $enableval; do 7485 IFS="$lt_save_ifs" 7486 if test "X$pkg" = "X$p"; then 7487 enable_static=yes 7488 fi 7489 done 7490 IFS="$lt_save_ifs" 7491 ;; 7492 esac 7493else 7494 enable_static=yes 7495fi 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506# Check whether --with-pic was given. 7507if test "${with_pic+set}" = set; then : 7508 withval=$with_pic; lt_p=${PACKAGE-default} 7509 case $withval in 7510 yes|no) pic_mode=$withval ;; 7511 *) 7512 pic_mode=default 7513 # Look at the argument we got. We use all the common list separators. 7514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7515 for lt_pkg in $withval; do 7516 IFS="$lt_save_ifs" 7517 if test "X$lt_pkg" = "X$lt_p"; then 7518 pic_mode=yes 7519 fi 7520 done 7521 IFS="$lt_save_ifs" 7522 ;; 7523 esac 7524else 7525 pic_mode=default 7526fi 7527 7528 7529test -z "$pic_mode" && pic_mode=default 7530 7531 7532 7533 7534 7535 7536 7537 # Check whether --enable-fast-install was given. 7538if test "${enable_fast_install+set}" = set; then : 7539 enableval=$enable_fast_install; p=${PACKAGE-default} 7540 case $enableval in 7541 yes) enable_fast_install=yes ;; 7542 no) enable_fast_install=no ;; 7543 *) 7544 enable_fast_install=no 7545 # Look at the argument we got. We use all the common list separators. 7546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7547 for pkg in $enableval; do 7548 IFS="$lt_save_ifs" 7549 if test "X$pkg" = "X$p"; then 7550 enable_fast_install=yes 7551 fi 7552 done 7553 IFS="$lt_save_ifs" 7554 ;; 7555 esac 7556else 7557 enable_fast_install=yes 7558fi 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570# This can be used to rebuild libtool when needed 7571LIBTOOL_DEPS="$ltmain" 7572 7573# Always use our own libtool. 7574LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605test -z "$LN_S" && LN_S="ln -s" 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620if test -n "${ZSH_VERSION+set}" ; then 7621 setopt NO_GLOB_SUBST 7622fi 7623 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7625$as_echo_n "checking for objdir... " >&6; } 7626if ${lt_cv_objdir+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 rm -f .libs 2>/dev/null 7630mkdir .libs 2>/dev/null 7631if test -d .libs; then 7632 lt_cv_objdir=.libs 7633else 7634 # MS-DOS does not allow filenames that begin with a dot. 7635 lt_cv_objdir=_libs 7636fi 7637rmdir .libs 2>/dev/null 7638fi 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7640$as_echo "$lt_cv_objdir" >&6; } 7641objdir=$lt_cv_objdir 7642 7643 7644 7645 7646 7647cat >>confdefs.h <<_ACEOF 7648#define LT_OBJDIR "$lt_cv_objdir/" 7649_ACEOF 7650 7651 7652 7653 7654case $host_os in 7655aix3*) 7656 # AIX sometimes has problems with the GCC collect2 program. For some 7657 # reason, if we set the COLLECT_NAMES environment variable, the problems 7658 # vanish in a puff of smoke. 7659 if test "X${COLLECT_NAMES+set}" != Xset; then 7660 COLLECT_NAMES= 7661 export COLLECT_NAMES 7662 fi 7663 ;; 7664esac 7665 7666# Global variables: 7667ofile=libtool 7668can_build_shared=yes 7669 7670# All known linkers require a `.a' archive for static linking (except MSVC, 7671# which needs '.lib'). 7672libext=a 7673 7674with_gnu_ld="$lt_cv_prog_gnu_ld" 7675 7676old_CC="$CC" 7677old_CFLAGS="$CFLAGS" 7678 7679# Set sane defaults for various variables 7680test -z "$CC" && CC=cc 7681test -z "$LTCC" && LTCC=$CC 7682test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7683test -z "$LD" && LD=ld 7684test -z "$ac_objext" && ac_objext=o 7685 7686for cc_temp in $compiler""; do 7687 case $cc_temp in 7688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7690 \-*) ;; 7691 *) break;; 7692 esac 7693done 7694cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7695 7696 7697# Only perform the check for file, if the check method requires it 7698test -z "$MAGIC_CMD" && MAGIC_CMD=file 7699case $deplibs_check_method in 7700file_magic*) 7701 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7703$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7704if ${lt_cv_path_MAGIC_CMD+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706else 7707 case $MAGIC_CMD in 7708[\\/*] | ?:[\\/]*) 7709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7710 ;; 7711*) 7712 lt_save_MAGIC_CMD="$MAGIC_CMD" 7713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7715 for ac_dir in $ac_dummy; do 7716 IFS="$lt_save_ifs" 7717 test -z "$ac_dir" && ac_dir=. 7718 if test -f $ac_dir/${ac_tool_prefix}file; then 7719 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7720 if test -n "$file_magic_test_file"; then 7721 case $deplibs_check_method in 7722 "file_magic "*) 7723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7726 $EGREP "$file_magic_regex" > /dev/null; then 7727 : 7728 else 7729 cat <<_LT_EOF 1>&2 7730 7731*** Warning: the command libtool uses to detect shared libraries, 7732*** $file_magic_cmd, produces output that libtool cannot recognize. 7733*** The result is that libtool may fail to recognize shared libraries 7734*** as such. This will affect the creation of libtool libraries that 7735*** depend on shared libraries, but programs linked with such libtool 7736*** libraries will work regardless of this problem. Nevertheless, you 7737*** may want to report the problem to your system manager and/or to 7738*** bug-libtool@gnu.org 7739 7740_LT_EOF 7741 fi ;; 7742 esac 7743 fi 7744 break 7745 fi 7746 done 7747 IFS="$lt_save_ifs" 7748 MAGIC_CMD="$lt_save_MAGIC_CMD" 7749 ;; 7750esac 7751fi 7752 7753MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7754if test -n "$MAGIC_CMD"; then 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7756$as_echo "$MAGIC_CMD" >&6; } 7757else 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7759$as_echo "no" >&6; } 7760fi 7761 7762 7763 7764 7765 7766if test -z "$lt_cv_path_MAGIC_CMD"; then 7767 if test -n "$ac_tool_prefix"; then 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7769$as_echo_n "checking for file... " >&6; } 7770if ${lt_cv_path_MAGIC_CMD+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 case $MAGIC_CMD in 7774[\\/*] | ?:[\\/]*) 7775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7776 ;; 7777*) 7778 lt_save_MAGIC_CMD="$MAGIC_CMD" 7779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7781 for ac_dir in $ac_dummy; do 7782 IFS="$lt_save_ifs" 7783 test -z "$ac_dir" && ac_dir=. 7784 if test -f $ac_dir/file; then 7785 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7786 if test -n "$file_magic_test_file"; then 7787 case $deplibs_check_method in 7788 "file_magic "*) 7789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7792 $EGREP "$file_magic_regex" > /dev/null; then 7793 : 7794 else 7795 cat <<_LT_EOF 1>&2 7796 7797*** Warning: the command libtool uses to detect shared libraries, 7798*** $file_magic_cmd, produces output that libtool cannot recognize. 7799*** The result is that libtool may fail to recognize shared libraries 7800*** as such. This will affect the creation of libtool libraries that 7801*** depend on shared libraries, but programs linked with such libtool 7802*** libraries will work regardless of this problem. Nevertheless, you 7803*** may want to report the problem to your system manager and/or to 7804*** bug-libtool@gnu.org 7805 7806_LT_EOF 7807 fi ;; 7808 esac 7809 fi 7810 break 7811 fi 7812 done 7813 IFS="$lt_save_ifs" 7814 MAGIC_CMD="$lt_save_MAGIC_CMD" 7815 ;; 7816esac 7817fi 7818 7819MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7820if test -n "$MAGIC_CMD"; then 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7822$as_echo "$MAGIC_CMD" >&6; } 7823else 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7825$as_echo "no" >&6; } 7826fi 7827 7828 7829 else 7830 MAGIC_CMD=: 7831 fi 7832fi 7833 7834 fi 7835 ;; 7836esac 7837 7838# Use C for the default configuration in the libtool script 7839 7840lt_save_CC="$CC" 7841ac_ext=c 7842ac_cpp='$CPP $CPPFLAGS' 7843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7845ac_compiler_gnu=$ac_cv_c_compiler_gnu 7846 7847 7848# Source file extension for C test sources. 7849ac_ext=c 7850 7851# Object file extension for compiled C test sources. 7852objext=o 7853objext=$objext 7854 7855# Code to be used in simple compile tests 7856lt_simple_compile_test_code="int some_variable = 0;" 7857 7858# Code to be used in simple link tests 7859lt_simple_link_test_code='int main(){return(0);}' 7860 7861 7862 7863 7864 7865 7866 7867# If no C compiler was specified, use CC. 7868LTCC=${LTCC-"$CC"} 7869 7870# If no C compiler flags were specified, use CFLAGS. 7871LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7872 7873# Allow CC to be a program name with arguments. 7874compiler=$CC 7875 7876# Save the default compiler, since it gets overwritten when the other 7877# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7878compiler_DEFAULT=$CC 7879 7880# save warnings/boilerplate of simple test code 7881ac_outfile=conftest.$ac_objext 7882echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7883eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7884_lt_compiler_boilerplate=`cat conftest.err` 7885$RM conftest* 7886 7887ac_outfile=conftest.$ac_objext 7888echo "$lt_simple_link_test_code" >conftest.$ac_ext 7889eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7890_lt_linker_boilerplate=`cat conftest.err` 7891$RM -r conftest* 7892 7893 7894if test -n "$compiler"; then 7895 7896lt_prog_compiler_no_builtin_flag= 7897 7898if test "$GCC" = yes; then 7899 case $cc_basename in 7900 nvcc*) 7901 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7902 *) 7903 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7904 esac 7905 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7907$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7908if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7909 $as_echo_n "(cached) " >&6 7910else 7911 lt_cv_prog_compiler_rtti_exceptions=no 7912 ac_outfile=conftest.$ac_objext 7913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7914 lt_compiler_flag="-fno-rtti -fno-exceptions" 7915 # Insert the option either (1) after the last *FLAGS variable, or 7916 # (2) before a word containing "conftest.", or (3) at the end. 7917 # Note that $ac_compile itself does not contain backslashes and begins 7918 # with a dollar sign (not a hyphen), so the echo should work correctly. 7919 # The option is referenced via a variable to avoid confusing sed. 7920 lt_compile=`echo "$ac_compile" | $SED \ 7921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7923 -e 's:$: $lt_compiler_flag:'` 7924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7925 (eval "$lt_compile" 2>conftest.err) 7926 ac_status=$? 7927 cat conftest.err >&5 7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7929 if (exit $ac_status) && test -s "$ac_outfile"; then 7930 # The compiler can only warn and ignore the option if not recognized 7931 # So say no if there are warnings other than the usual output. 7932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7935 lt_cv_prog_compiler_rtti_exceptions=yes 7936 fi 7937 fi 7938 $RM conftest* 7939 7940fi 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7942$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7943 7944if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7945 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7946else 7947 : 7948fi 7949 7950fi 7951 7952 7953 7954 7955 7956 7957 lt_prog_compiler_wl= 7958lt_prog_compiler_pic= 7959lt_prog_compiler_static= 7960 7961 7962 if test "$GCC" = yes; then 7963 lt_prog_compiler_wl='-Wl,' 7964 lt_prog_compiler_static='-static' 7965 7966 case $host_os in 7967 aix*) 7968 # All AIX code is PIC. 7969 if test "$host_cpu" = ia64; then 7970 # AIX 5 now supports IA64 processor 7971 lt_prog_compiler_static='-Bstatic' 7972 fi 7973 ;; 7974 7975 amigaos*) 7976 case $host_cpu in 7977 powerpc) 7978 # see comment about AmigaOS4 .so support 7979 lt_prog_compiler_pic='-fPIC' 7980 ;; 7981 m68k) 7982 # FIXME: we need at least 68020 code to build shared libraries, but 7983 # adding the `-m68020' flag to GCC prevents building anything better, 7984 # like `-m68040'. 7985 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7986 ;; 7987 esac 7988 ;; 7989 7990 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7991 # PIC is the default for these OSes. 7992 ;; 7993 7994 mingw* | cygwin* | pw32* | os2* | cegcc*) 7995 # This hack is so that the source file can tell whether it is being 7996 # built for inclusion in a dll (and should export symbols for example). 7997 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7998 # (--disable-auto-import) libraries 7999 lt_prog_compiler_pic='-DDLL_EXPORT' 8000 ;; 8001 8002 darwin* | rhapsody*) 8003 # PIC is the default on this platform 8004 # Common symbols not allowed in MH_DYLIB files 8005 lt_prog_compiler_pic='-fno-common' 8006 ;; 8007 8008 haiku*) 8009 # PIC is the default for Haiku. 8010 # The "-static" flag exists, but is broken. 8011 lt_prog_compiler_static= 8012 ;; 8013 8014 hpux*) 8015 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8016 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8017 # sets the default TLS model and affects inlining. 8018 case $host_cpu in 8019 hppa*64*) 8020 # +Z the default 8021 ;; 8022 *) 8023 lt_prog_compiler_pic='-fPIC' 8024 ;; 8025 esac 8026 ;; 8027 8028 interix[3-9]*) 8029 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8030 # Instead, we relocate shared libraries at runtime. 8031 ;; 8032 8033 msdosdjgpp*) 8034 # Just because we use GCC doesn't mean we suddenly get shared libraries 8035 # on systems that don't support them. 8036 lt_prog_compiler_can_build_shared=no 8037 enable_shared=no 8038 ;; 8039 8040 *nto* | *qnx*) 8041 # QNX uses GNU C++, but need to define -shared option too, otherwise 8042 # it will coredump. 8043 lt_prog_compiler_pic='-fPIC -shared' 8044 ;; 8045 8046 sysv4*MP*) 8047 if test -d /usr/nec; then 8048 lt_prog_compiler_pic=-Kconform_pic 8049 fi 8050 ;; 8051 8052 *) 8053 lt_prog_compiler_pic='-fPIC' 8054 ;; 8055 esac 8056 8057 case $cc_basename in 8058 nvcc*) # Cuda Compiler Driver 2.2 8059 lt_prog_compiler_wl='-Xlinker ' 8060 if test -n "$lt_prog_compiler_pic"; then 8061 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8062 fi 8063 ;; 8064 esac 8065 else 8066 # PORTME Check for flag to pass linker flags through the system compiler. 8067 case $host_os in 8068 aix*) 8069 lt_prog_compiler_wl='-Wl,' 8070 if test "$host_cpu" = ia64; then 8071 # AIX 5 now supports IA64 processor 8072 lt_prog_compiler_static='-Bstatic' 8073 else 8074 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8075 fi 8076 ;; 8077 8078 mingw* | cygwin* | pw32* | os2* | cegcc*) 8079 # This hack is so that the source file can tell whether it is being 8080 # built for inclusion in a dll (and should export symbols for example). 8081 lt_prog_compiler_pic='-DDLL_EXPORT' 8082 ;; 8083 8084 hpux9* | hpux10* | hpux11*) 8085 lt_prog_compiler_wl='-Wl,' 8086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8087 # not for PA HP-UX. 8088 case $host_cpu in 8089 hppa*64*|ia64*) 8090 # +Z the default 8091 ;; 8092 *) 8093 lt_prog_compiler_pic='+Z' 8094 ;; 8095 esac 8096 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8097 lt_prog_compiler_static='${wl}-a ${wl}archive' 8098 ;; 8099 8100 irix5* | irix6* | nonstopux*) 8101 lt_prog_compiler_wl='-Wl,' 8102 # PIC (with -KPIC) is the default. 8103 lt_prog_compiler_static='-non_shared' 8104 ;; 8105 8106 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8107 case $cc_basename in 8108 # old Intel for x86_64 which still supported -KPIC. 8109 ecc*) 8110 lt_prog_compiler_wl='-Wl,' 8111 lt_prog_compiler_pic='-KPIC' 8112 lt_prog_compiler_static='-static' 8113 ;; 8114 # icc used to be incompatible with GCC. 8115 # ICC 10 doesn't accept -KPIC any more. 8116 icc* | ifort*) 8117 lt_prog_compiler_wl='-Wl,' 8118 lt_prog_compiler_pic='-fPIC' 8119 lt_prog_compiler_static='-static' 8120 ;; 8121 # Lahey Fortran 8.1. 8122 lf95*) 8123 lt_prog_compiler_wl='-Wl,' 8124 lt_prog_compiler_pic='--shared' 8125 lt_prog_compiler_static='--static' 8126 ;; 8127 nagfor*) 8128 # NAG Fortran compiler 8129 lt_prog_compiler_wl='-Wl,-Wl,,' 8130 lt_prog_compiler_pic='-PIC' 8131 lt_prog_compiler_static='-Bstatic' 8132 ;; 8133 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8134 # Portland Group compilers (*not* the Pentium gcc compiler, 8135 # which looks to be a dead project) 8136 lt_prog_compiler_wl='-Wl,' 8137 lt_prog_compiler_pic='-fpic' 8138 lt_prog_compiler_static='-Bstatic' 8139 ;; 8140 ccc*) 8141 lt_prog_compiler_wl='-Wl,' 8142 # All Alpha code is PIC. 8143 lt_prog_compiler_static='-non_shared' 8144 ;; 8145 xl* | bgxl* | bgf* | mpixl*) 8146 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8147 lt_prog_compiler_wl='-Wl,' 8148 lt_prog_compiler_pic='-qpic' 8149 lt_prog_compiler_static='-qstaticlink' 8150 ;; 8151 *) 8152 case `$CC -V 2>&1 | sed 5q` in 8153 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8154 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8155 lt_prog_compiler_pic='-KPIC' 8156 lt_prog_compiler_static='-Bstatic' 8157 lt_prog_compiler_wl='' 8158 ;; 8159 *Sun\ F* | *Sun*Fortran*) 8160 lt_prog_compiler_pic='-KPIC' 8161 lt_prog_compiler_static='-Bstatic' 8162 lt_prog_compiler_wl='-Qoption ld ' 8163 ;; 8164 *Sun\ C*) 8165 # Sun C 5.9 8166 lt_prog_compiler_pic='-KPIC' 8167 lt_prog_compiler_static='-Bstatic' 8168 lt_prog_compiler_wl='-Wl,' 8169 ;; 8170 *Intel*\ [CF]*Compiler*) 8171 lt_prog_compiler_wl='-Wl,' 8172 lt_prog_compiler_pic='-fPIC' 8173 lt_prog_compiler_static='-static' 8174 ;; 8175 *Portland\ Group*) 8176 lt_prog_compiler_wl='-Wl,' 8177 lt_prog_compiler_pic='-fpic' 8178 lt_prog_compiler_static='-Bstatic' 8179 ;; 8180 esac 8181 ;; 8182 esac 8183 ;; 8184 8185 newsos6) 8186 lt_prog_compiler_pic='-KPIC' 8187 lt_prog_compiler_static='-Bstatic' 8188 ;; 8189 8190 *nto* | *qnx*) 8191 # QNX uses GNU C++, but need to define -shared option too, otherwise 8192 # it will coredump. 8193 lt_prog_compiler_pic='-fPIC -shared' 8194 ;; 8195 8196 osf3* | osf4* | osf5*) 8197 lt_prog_compiler_wl='-Wl,' 8198 # All OSF/1 code is PIC. 8199 lt_prog_compiler_static='-non_shared' 8200 ;; 8201 8202 rdos*) 8203 lt_prog_compiler_static='-non_shared' 8204 ;; 8205 8206 solaris*) 8207 lt_prog_compiler_pic='-KPIC' 8208 lt_prog_compiler_static='-Bstatic' 8209 case $cc_basename in 8210 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8211 lt_prog_compiler_wl='-Qoption ld ';; 8212 *) 8213 lt_prog_compiler_wl='-Wl,';; 8214 esac 8215 ;; 8216 8217 sunos4*) 8218 lt_prog_compiler_wl='-Qoption ld ' 8219 lt_prog_compiler_pic='-PIC' 8220 lt_prog_compiler_static='-Bstatic' 8221 ;; 8222 8223 sysv4 | sysv4.2uw2* | sysv4.3*) 8224 lt_prog_compiler_wl='-Wl,' 8225 lt_prog_compiler_pic='-KPIC' 8226 lt_prog_compiler_static='-Bstatic' 8227 ;; 8228 8229 sysv4*MP*) 8230 if test -d /usr/nec ;then 8231 lt_prog_compiler_pic='-Kconform_pic' 8232 lt_prog_compiler_static='-Bstatic' 8233 fi 8234 ;; 8235 8236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8237 lt_prog_compiler_wl='-Wl,' 8238 lt_prog_compiler_pic='-KPIC' 8239 lt_prog_compiler_static='-Bstatic' 8240 ;; 8241 8242 unicos*) 8243 lt_prog_compiler_wl='-Wl,' 8244 lt_prog_compiler_can_build_shared=no 8245 ;; 8246 8247 uts4*) 8248 lt_prog_compiler_pic='-pic' 8249 lt_prog_compiler_static='-Bstatic' 8250 ;; 8251 8252 *) 8253 lt_prog_compiler_can_build_shared=no 8254 ;; 8255 esac 8256 fi 8257 8258case $host_os in 8259 # For platforms which do not support PIC, -DPIC is meaningless: 8260 *djgpp*) 8261 lt_prog_compiler_pic= 8262 ;; 8263 *) 8264 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8265 ;; 8266esac 8267 8268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8269$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8270if ${lt_cv_prog_compiler_pic+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272else 8273 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8274fi 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8276$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8277lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8278 8279# 8280# Check to make sure the PIC flag actually works. 8281# 8282if test -n "$lt_prog_compiler_pic"; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8284$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8285if ${lt_cv_prog_compiler_pic_works+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 lt_cv_prog_compiler_pic_works=no 8289 ac_outfile=conftest.$ac_objext 8290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8291 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8292 # Insert the option either (1) after the last *FLAGS variable, or 8293 # (2) before a word containing "conftest.", or (3) at the end. 8294 # Note that $ac_compile itself does not contain backslashes and begins 8295 # with a dollar sign (not a hyphen), so the echo should work correctly. 8296 # The option is referenced via a variable to avoid confusing sed. 8297 lt_compile=`echo "$ac_compile" | $SED \ 8298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8300 -e 's:$: $lt_compiler_flag:'` 8301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8302 (eval "$lt_compile" 2>conftest.err) 8303 ac_status=$? 8304 cat conftest.err >&5 8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8306 if (exit $ac_status) && test -s "$ac_outfile"; then 8307 # The compiler can only warn and ignore the option if not recognized 8308 # So say no if there are warnings other than the usual output. 8309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8311 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8312 lt_cv_prog_compiler_pic_works=yes 8313 fi 8314 fi 8315 $RM conftest* 8316 8317fi 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8319$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8320 8321if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8322 case $lt_prog_compiler_pic in 8323 "" | " "*) ;; 8324 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8325 esac 8326else 8327 lt_prog_compiler_pic= 8328 lt_prog_compiler_can_build_shared=no 8329fi 8330 8331fi 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343# 8344# Check to make sure the static flag actually works. 8345# 8346wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8348$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8349if ${lt_cv_prog_compiler_static_works+:} false; then : 8350 $as_echo_n "(cached) " >&6 8351else 8352 lt_cv_prog_compiler_static_works=no 8353 save_LDFLAGS="$LDFLAGS" 8354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8355 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8357 # The linker can only warn and ignore the option if not recognized 8358 # So say no if there are warnings 8359 if test -s conftest.err; then 8360 # Append any errors to the config.log. 8361 cat conftest.err 1>&5 8362 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8364 if diff conftest.exp conftest.er2 >/dev/null; then 8365 lt_cv_prog_compiler_static_works=yes 8366 fi 8367 else 8368 lt_cv_prog_compiler_static_works=yes 8369 fi 8370 fi 8371 $RM -r conftest* 8372 LDFLAGS="$save_LDFLAGS" 8373 8374fi 8375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8376$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8377 8378if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8379 : 8380else 8381 lt_prog_compiler_static= 8382fi 8383 8384 8385 8386 8387 8388 8389 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8391$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8392if ${lt_cv_prog_compiler_c_o+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 lt_cv_prog_compiler_c_o=no 8396 $RM -r conftest 2>/dev/null 8397 mkdir conftest 8398 cd conftest 8399 mkdir out 8400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8401 8402 lt_compiler_flag="-o out/conftest2.$ac_objext" 8403 # Insert the option either (1) after the last *FLAGS variable, or 8404 # (2) before a word containing "conftest.", or (3) at the end. 8405 # Note that $ac_compile itself does not contain backslashes and begins 8406 # with a dollar sign (not a hyphen), so the echo should work correctly. 8407 lt_compile=`echo "$ac_compile" | $SED \ 8408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8410 -e 's:$: $lt_compiler_flag:'` 8411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8412 (eval "$lt_compile" 2>out/conftest.err) 8413 ac_status=$? 8414 cat out/conftest.err >&5 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8417 then 8418 # The compiler can only warn and ignore the option if not recognized 8419 # So say no if there are warnings 8420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8423 lt_cv_prog_compiler_c_o=yes 8424 fi 8425 fi 8426 chmod u+w . 2>&5 8427 $RM conftest* 8428 # SGI C++ compiler will create directory out/ii_files/ for 8429 # template instantiation 8430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8431 $RM out/* && rmdir out 8432 cd .. 8433 $RM -r conftest 8434 $RM conftest* 8435 8436fi 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8438$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8439 8440 8441 8442 8443 8444 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8446$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8447if ${lt_cv_prog_compiler_c_o+:} false; then : 8448 $as_echo_n "(cached) " >&6 8449else 8450 lt_cv_prog_compiler_c_o=no 8451 $RM -r conftest 2>/dev/null 8452 mkdir conftest 8453 cd conftest 8454 mkdir out 8455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8456 8457 lt_compiler_flag="-o out/conftest2.$ac_objext" 8458 # Insert the option either (1) after the last *FLAGS variable, or 8459 # (2) before a word containing "conftest.", or (3) at the end. 8460 # Note that $ac_compile itself does not contain backslashes and begins 8461 # with a dollar sign (not a hyphen), so the echo should work correctly. 8462 lt_compile=`echo "$ac_compile" | $SED \ 8463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8465 -e 's:$: $lt_compiler_flag:'` 8466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8467 (eval "$lt_compile" 2>out/conftest.err) 8468 ac_status=$? 8469 cat out/conftest.err >&5 8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8471 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8472 then 8473 # The compiler can only warn and ignore the option if not recognized 8474 # So say no if there are warnings 8475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8478 lt_cv_prog_compiler_c_o=yes 8479 fi 8480 fi 8481 chmod u+w . 2>&5 8482 $RM conftest* 8483 # SGI C++ compiler will create directory out/ii_files/ for 8484 # template instantiation 8485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8486 $RM out/* && rmdir out 8487 cd .. 8488 $RM -r conftest 8489 $RM conftest* 8490 8491fi 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8493$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8494 8495 8496 8497 8498hard_links="nottested" 8499if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8500 # do not overwrite the value of need_locks provided by the user 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8502$as_echo_n "checking if we can lock with hard links... " >&6; } 8503 hard_links=yes 8504 $RM conftest* 8505 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8506 touch conftest.a 8507 ln conftest.a conftest.b 2>&5 || hard_links=no 8508 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8510$as_echo "$hard_links" >&6; } 8511 if test "$hard_links" = no; then 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8513$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8514 need_locks=warn 8515 fi 8516else 8517 need_locks=no 8518fi 8519 8520 8521 8522 8523 8524 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8526$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8527 8528 runpath_var= 8529 allow_undefined_flag= 8530 always_export_symbols=no 8531 archive_cmds= 8532 archive_expsym_cmds= 8533 compiler_needs_object=no 8534 enable_shared_with_static_runtimes=no 8535 export_dynamic_flag_spec= 8536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8537 hardcode_automatic=no 8538 hardcode_direct=no 8539 hardcode_direct_absolute=no 8540 hardcode_libdir_flag_spec= 8541 hardcode_libdir_separator= 8542 hardcode_minus_L=no 8543 hardcode_shlibpath_var=unsupported 8544 inherit_rpath=no 8545 link_all_deplibs=unknown 8546 module_cmds= 8547 module_expsym_cmds= 8548 old_archive_from_new_cmds= 8549 old_archive_from_expsyms_cmds= 8550 thread_safe_flag_spec= 8551 whole_archive_flag_spec= 8552 # include_expsyms should be a list of space-separated symbols to be *always* 8553 # included in the symbol list 8554 include_expsyms= 8555 # exclude_expsyms can be an extended regexp of symbols to exclude 8556 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8557 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8558 # as well as any symbol that contains `d'. 8559 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8561 # platforms (ab)use it in PIC code, but their linkers get confused if 8562 # the symbol is explicitly referenced. Since portable code cannot 8563 # rely on this symbol name, it's probably fine to never include it in 8564 # preloaded symbol tables. 8565 # Exclude shared library initialization/finalization symbols. 8566 extract_expsyms_cmds= 8567 8568 case $host_os in 8569 cygwin* | mingw* | pw32* | cegcc*) 8570 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8571 # When not using gcc, we currently assume that we are using 8572 # Microsoft Visual C++. 8573 if test "$GCC" != yes; then 8574 with_gnu_ld=no 8575 fi 8576 ;; 8577 interix*) 8578 # we just hope/assume this is gcc and not c89 (= MSVC++) 8579 with_gnu_ld=yes 8580 ;; 8581 openbsd*) 8582 with_gnu_ld=no 8583 ;; 8584 esac 8585 8586 ld_shlibs=yes 8587 8588 # On some targets, GNU ld is compatible enough with the native linker 8589 # that we're better off using the native interface for both. 8590 lt_use_gnu_ld_interface=no 8591 if test "$with_gnu_ld" = yes; then 8592 case $host_os in 8593 aix*) 8594 # The AIX port of GNU ld has always aspired to compatibility 8595 # with the native linker. However, as the warning in the GNU ld 8596 # block says, versions before 2.19.5* couldn't really create working 8597 # shared libraries, regardless of the interface used. 8598 case `$LD -v 2>&1` in 8599 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8600 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8601 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8602 *) 8603 lt_use_gnu_ld_interface=yes 8604 ;; 8605 esac 8606 ;; 8607 *) 8608 lt_use_gnu_ld_interface=yes 8609 ;; 8610 esac 8611 fi 8612 8613 if test "$lt_use_gnu_ld_interface" = yes; then 8614 # If archive_cmds runs LD, not CC, wlarc should be empty 8615 wlarc='${wl}' 8616 8617 # Set some defaults for GNU ld with shared library support. These 8618 # are reset later if shared libraries are not supported. Putting them 8619 # here allows them to be overridden if necessary. 8620 runpath_var=LD_RUN_PATH 8621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8622 export_dynamic_flag_spec='${wl}--export-dynamic' 8623 # ancient GNU ld didn't support --whole-archive et. al. 8624 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8625 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8626 else 8627 whole_archive_flag_spec= 8628 fi 8629 supports_anon_versioning=no 8630 case `$LD -v 2>&1` in 8631 *GNU\ gold*) supports_anon_versioning=yes ;; 8632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8635 *\ 2.11.*) ;; # other 2.11 versions 8636 *) supports_anon_versioning=yes ;; 8637 esac 8638 8639 # See if GNU ld supports shared libraries. 8640 case $host_os in 8641 aix[3-9]*) 8642 # On AIX/PPC, the GNU linker is very broken 8643 if test "$host_cpu" != ia64; then 8644 ld_shlibs=no 8645 cat <<_LT_EOF 1>&2 8646 8647*** Warning: the GNU linker, at least up to release 2.19, is reported 8648*** to be unable to reliably create shared libraries on AIX. 8649*** Therefore, libtool is disabling shared libraries support. If you 8650*** really care for shared libraries, you may want to install binutils 8651*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8652*** You will then need to restart the configuration process. 8653 8654_LT_EOF 8655 fi 8656 ;; 8657 8658 amigaos*) 8659 case $host_cpu in 8660 powerpc) 8661 # see comment about AmigaOS4 .so support 8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8663 archive_expsym_cmds='' 8664 ;; 8665 m68k) 8666 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)' 8667 hardcode_libdir_flag_spec='-L$libdir' 8668 hardcode_minus_L=yes 8669 ;; 8670 esac 8671 ;; 8672 8673 beos*) 8674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8675 allow_undefined_flag=unsupported 8676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8677 # support --undefined. This deserves some investigation. FIXME 8678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8679 else 8680 ld_shlibs=no 8681 fi 8682 ;; 8683 8684 cygwin* | mingw* | pw32* | cegcc*) 8685 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8686 # as there is no search path for DLLs. 8687 hardcode_libdir_flag_spec='-L$libdir' 8688 export_dynamic_flag_spec='${wl}--export-all-symbols' 8689 allow_undefined_flag=unsupported 8690 always_export_symbols=no 8691 enable_shared_with_static_runtimes=yes 8692 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' 8693 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8694 8695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8697 # If the export-symbols file already is a .def file (1st line 8698 # is EXPORTS), use it as is; otherwise, prepend... 8699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8700 cp $export_symbols $output_objdir/$soname.def; 8701 else 8702 echo EXPORTS > $output_objdir/$soname.def; 8703 cat $export_symbols >> $output_objdir/$soname.def; 8704 fi~ 8705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8706 else 8707 ld_shlibs=no 8708 fi 8709 ;; 8710 8711 haiku*) 8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8713 link_all_deplibs=yes 8714 ;; 8715 8716 interix[3-9]*) 8717 hardcode_direct=no 8718 hardcode_shlibpath_var=no 8719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8720 export_dynamic_flag_spec='${wl}-E' 8721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8722 # Instead, shared libraries are loaded at an image base (0x10000000 by 8723 # default) and relocated if they conflict, which is a slow very memory 8724 # consuming and fragmenting process. To avoid this, we pick a random, 8725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8726 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8728 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' 8729 ;; 8730 8731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8732 tmp_diet=no 8733 if test "$host_os" = linux-dietlibc; then 8734 case $cc_basename in 8735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8736 esac 8737 fi 8738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8739 && test "$tmp_diet" = no 8740 then 8741 tmp_addflag=' $pic_flag' 8742 tmp_sharedflag='-shared' 8743 case $cc_basename,$host_cpu in 8744 pgcc*) # Portland Group C compiler 8745 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' 8746 tmp_addflag=' $pic_flag' 8747 ;; 8748 pgf77* | pgf90* | pgf95* | pgfortran*) 8749 # Portland Group f77 and f90 compilers 8750 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' 8751 tmp_addflag=' $pic_flag -Mnomain' ;; 8752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8753 tmp_addflag=' -i_dynamic' ;; 8754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8755 tmp_addflag=' -i_dynamic -nofor_main' ;; 8756 ifc* | ifort*) # Intel Fortran compiler 8757 tmp_addflag=' -nofor_main' ;; 8758 lf95*) # Lahey Fortran 8.1 8759 whole_archive_flag_spec= 8760 tmp_sharedflag='--shared' ;; 8761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8762 tmp_sharedflag='-qmkshrobj' 8763 tmp_addflag= ;; 8764 nvcc*) # Cuda Compiler Driver 2.2 8765 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' 8766 compiler_needs_object=yes 8767 ;; 8768 esac 8769 case `$CC -V 2>&1 | sed 5q` in 8770 *Sun\ C*) # Sun C 5.9 8771 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' 8772 compiler_needs_object=yes 8773 tmp_sharedflag='-G' ;; 8774 *Sun\ F*) # Sun Fortran 8.3 8775 tmp_sharedflag='-G' ;; 8776 esac 8777 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8778 8779 if test "x$supports_anon_versioning" = xyes; then 8780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8782 echo "local: *; };" >> $output_objdir/$libname.ver~ 8783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8784 fi 8785 8786 case $cc_basename in 8787 xlf* | bgf* | bgxlf* | mpixlf*) 8788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8789 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8791 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8792 if test "x$supports_anon_versioning" = xyes; then 8793 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8795 echo "local: *; };" >> $output_objdir/$libname.ver~ 8796 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8797 fi 8798 ;; 8799 esac 8800 else 8801 ld_shlibs=no 8802 fi 8803 ;; 8804 8805 netbsd*) 8806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8807 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8808 wlarc= 8809 else 8810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8811 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8812 fi 8813 ;; 8814 8815 solaris*) 8816 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8817 ld_shlibs=no 8818 cat <<_LT_EOF 1>&2 8819 8820*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8821*** create shared libraries on Solaris systems. Therefore, libtool 8822*** is disabling shared libraries support. We urge you to upgrade GNU 8823*** binutils to release 2.9.1 or newer. Another option is to modify 8824*** your PATH or compiler configuration so that the native linker is 8825*** used, and then restart. 8826 8827_LT_EOF 8828 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8829 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8830 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8831 else 8832 ld_shlibs=no 8833 fi 8834 ;; 8835 8836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8837 case `$LD -v 2>&1` in 8838 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8839 ld_shlibs=no 8840 cat <<_LT_EOF 1>&2 8841 8842*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8843*** reliably create shared libraries on SCO systems. Therefore, libtool 8844*** is disabling shared libraries support. We urge you to upgrade GNU 8845*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8846*** your PATH or compiler configuration so that the native linker is 8847*** used, and then restart. 8848 8849_LT_EOF 8850 ;; 8851 *) 8852 # For security reasons, it is highly recommended that you always 8853 # use absolute paths for naming shared libraries, and exclude the 8854 # DT_RUNPATH tag from executables and libraries. But doing so 8855 # requires that you compile everything twice, which is a pain. 8856 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8859 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8860 else 8861 ld_shlibs=no 8862 fi 8863 ;; 8864 esac 8865 ;; 8866 8867 sunos4*) 8868 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8869 wlarc= 8870 hardcode_direct=yes 8871 hardcode_shlibpath_var=no 8872 ;; 8873 8874 *) 8875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8877 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8878 else 8879 ld_shlibs=no 8880 fi 8881 ;; 8882 esac 8883 8884 if test "$ld_shlibs" = no; then 8885 runpath_var= 8886 hardcode_libdir_flag_spec= 8887 export_dynamic_flag_spec= 8888 whole_archive_flag_spec= 8889 fi 8890 else 8891 # PORTME fill in a description of your system's linker (not GNU ld) 8892 case $host_os in 8893 aix3*) 8894 allow_undefined_flag=unsupported 8895 always_export_symbols=yes 8896 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' 8897 # Note: this linker hardcodes the directories in LIBPATH if there 8898 # are no directories specified by -L. 8899 hardcode_minus_L=yes 8900 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8901 # Neither direct hardcoding nor static linking is supported with a 8902 # broken collect2. 8903 hardcode_direct=unsupported 8904 fi 8905 ;; 8906 8907 aix[4-9]*) 8908 if test "$host_cpu" = ia64; then 8909 # On IA64, the linker does run time linking by default, so we don't 8910 # have to do anything special. 8911 aix_use_runtimelinking=no 8912 exp_sym_flag='-Bexport' 8913 no_entry_flag="" 8914 else 8915 # If we're using GNU nm, then we don't want the "-C" option. 8916 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8917 # Also, AIX nm treats weak defined symbols like other global 8918 # defined symbols, whereas GNU nm marks them as "W". 8919 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8920 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' 8921 else 8922 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' 8923 fi 8924 aix_use_runtimelinking=no 8925 8926 # Test if we are trying to use run time linking or normal 8927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8928 # need to do runtime linking. 8929 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8930 for ld_flag in $LDFLAGS; do 8931 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8932 aix_use_runtimelinking=yes 8933 break 8934 fi 8935 done 8936 ;; 8937 esac 8938 8939 exp_sym_flag='-bexport' 8940 no_entry_flag='-bnoentry' 8941 fi 8942 8943 # When large executables or shared objects are built, AIX ld can 8944 # have problems creating the table of contents. If linking a library 8945 # or program results in "error TOC overflow" add -mminimal-toc to 8946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8948 8949 archive_cmds='' 8950 hardcode_direct=yes 8951 hardcode_direct_absolute=yes 8952 hardcode_libdir_separator=':' 8953 link_all_deplibs=yes 8954 file_list_spec='${wl}-f,' 8955 8956 if test "$GCC" = yes; then 8957 case $host_os in aix4.[012]|aix4.[012].*) 8958 # We only want to do this on AIX 4.2 and lower, the check 8959 # below for broken collect2 doesn't work under 4.3+ 8960 collect2name=`${CC} -print-prog-name=collect2` 8961 if test -f "$collect2name" && 8962 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8963 then 8964 # We have reworked collect2 8965 : 8966 else 8967 # We have old collect2 8968 hardcode_direct=unsupported 8969 # It fails to find uninstalled libraries when the uninstalled 8970 # path is not listed in the libpath. Setting hardcode_minus_L 8971 # to unsupported forces relinking 8972 hardcode_minus_L=yes 8973 hardcode_libdir_flag_spec='-L$libdir' 8974 hardcode_libdir_separator= 8975 fi 8976 ;; 8977 esac 8978 shared_flag='-shared' 8979 if test "$aix_use_runtimelinking" = yes; then 8980 shared_flag="$shared_flag "'${wl}-G' 8981 fi 8982 else 8983 # not using gcc 8984 if test "$host_cpu" = ia64; then 8985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8986 # chokes on -Wl,-G. The following line is correct: 8987 shared_flag='-G' 8988 else 8989 if test "$aix_use_runtimelinking" = yes; then 8990 shared_flag='${wl}-G' 8991 else 8992 shared_flag='${wl}-bM:SRE' 8993 fi 8994 fi 8995 fi 8996 8997 export_dynamic_flag_spec='${wl}-bexpall' 8998 # It seems that -bexpall does not export symbols beginning with 8999 # underscore (_), so it is better to generate a list of symbols to export. 9000 always_export_symbols=yes 9001 if test "$aix_use_runtimelinking" = yes; then 9002 # Warning - without using the other runtime loading flags (-brtl), 9003 # -berok will link without error, but may produce a broken library. 9004 allow_undefined_flag='-berok' 9005 # Determine the default libpath from the value encoded in an 9006 # empty executable. 9007 if test "${lt_cv_aix_libpath+set}" = set; then 9008 aix_libpath=$lt_cv_aix_libpath 9009else 9010 if ${lt_cv_aix_libpath_+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015 9016int 9017main () 9018{ 9019 9020 ; 9021 return 0; 9022} 9023_ACEOF 9024if ac_fn_c_try_link "$LINENO"; then : 9025 9026 lt_aix_libpath_sed=' 9027 /Import File Strings/,/^$/ { 9028 /^0/ { 9029 s/^0 *\([^ ]*\) *$/\1/ 9030 p 9031 } 9032 }' 9033 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9034 # Check for a 64-bit object if we didn't find anything. 9035 if test -z "$lt_cv_aix_libpath_"; then 9036 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9037 fi 9038fi 9039rm -f core conftest.err conftest.$ac_objext \ 9040 conftest$ac_exeext conftest.$ac_ext 9041 if test -z "$lt_cv_aix_libpath_"; then 9042 lt_cv_aix_libpath_="/usr/lib:/lib" 9043 fi 9044 9045fi 9046 9047 aix_libpath=$lt_cv_aix_libpath_ 9048fi 9049 9050 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9051 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" 9052 else 9053 if test "$host_cpu" = ia64; then 9054 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9055 allow_undefined_flag="-z nodefs" 9056 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" 9057 else 9058 # Determine the default libpath from the value encoded in an 9059 # empty executable. 9060 if test "${lt_cv_aix_libpath+set}" = set; then 9061 aix_libpath=$lt_cv_aix_libpath 9062else 9063 if ${lt_cv_aix_libpath_+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065else 9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9067/* end confdefs.h. */ 9068 9069int 9070main () 9071{ 9072 9073 ; 9074 return 0; 9075} 9076_ACEOF 9077if ac_fn_c_try_link "$LINENO"; then : 9078 9079 lt_aix_libpath_sed=' 9080 /Import File Strings/,/^$/ { 9081 /^0/ { 9082 s/^0 *\([^ ]*\) *$/\1/ 9083 p 9084 } 9085 }' 9086 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9087 # Check for a 64-bit object if we didn't find anything. 9088 if test -z "$lt_cv_aix_libpath_"; then 9089 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9090 fi 9091fi 9092rm -f core conftest.err conftest.$ac_objext \ 9093 conftest$ac_exeext conftest.$ac_ext 9094 if test -z "$lt_cv_aix_libpath_"; then 9095 lt_cv_aix_libpath_="/usr/lib:/lib" 9096 fi 9097 9098fi 9099 9100 aix_libpath=$lt_cv_aix_libpath_ 9101fi 9102 9103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9104 # Warning - without using the other run time loading flags, 9105 # -berok will link without error, but may produce a broken library. 9106 no_undefined_flag=' ${wl}-bernotok' 9107 allow_undefined_flag=' ${wl}-berok' 9108 if test "$with_gnu_ld" = yes; then 9109 # We only use this code for GNU lds that support --whole-archive. 9110 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9111 else 9112 # Exported symbols can be pulled into shared objects from archives 9113 whole_archive_flag_spec='$convenience' 9114 fi 9115 archive_cmds_need_lc=yes 9116 # This is similar to how AIX traditionally builds its shared libraries. 9117 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' 9118 fi 9119 fi 9120 ;; 9121 9122 amigaos*) 9123 case $host_cpu in 9124 powerpc) 9125 # see comment about AmigaOS4 .so support 9126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9127 archive_expsym_cmds='' 9128 ;; 9129 m68k) 9130 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)' 9131 hardcode_libdir_flag_spec='-L$libdir' 9132 hardcode_minus_L=yes 9133 ;; 9134 esac 9135 ;; 9136 9137 bsdi[45]*) 9138 export_dynamic_flag_spec=-rdynamic 9139 ;; 9140 9141 cygwin* | mingw* | pw32* | cegcc*) 9142 # When not using gcc, we currently assume that we are using 9143 # Microsoft Visual C++. 9144 # hardcode_libdir_flag_spec is actually meaningless, as there is 9145 # no search path for DLLs. 9146 case $cc_basename in 9147 cl*) 9148 # Native MSVC 9149 hardcode_libdir_flag_spec=' ' 9150 allow_undefined_flag=unsupported 9151 always_export_symbols=yes 9152 file_list_spec='@' 9153 # Tell ltmain to make .lib files, not .a files. 9154 libext=lib 9155 # Tell ltmain to make .dll files, not .so files. 9156 shrext_cmds=".dll" 9157 # FIXME: Setting linknames here is a bad hack. 9158 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9159 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9160 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9161 else 9162 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9163 fi~ 9164 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9165 linknames=' 9166 # The linker will not automatically build a static lib if we build a DLL. 9167 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9168 enable_shared_with_static_runtimes=yes 9169 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9171 # Don't use ranlib 9172 old_postinstall_cmds='chmod 644 $oldlib' 9173 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9174 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9175 case $lt_outputfile in 9176 *.exe|*.EXE) ;; 9177 *) 9178 lt_outputfile="$lt_outputfile.exe" 9179 lt_tool_outputfile="$lt_tool_outputfile.exe" 9180 ;; 9181 esac~ 9182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9184 $RM "$lt_outputfile.manifest"; 9185 fi' 9186 ;; 9187 *) 9188 # Assume MSVC wrapper 9189 hardcode_libdir_flag_spec=' ' 9190 allow_undefined_flag=unsupported 9191 # Tell ltmain to make .lib files, not .a files. 9192 libext=lib 9193 # Tell ltmain to make .dll files, not .so files. 9194 shrext_cmds=".dll" 9195 # FIXME: Setting linknames here is a bad hack. 9196 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9197 # The linker will automatically build a .lib file if we build a DLL. 9198 old_archive_from_new_cmds='true' 9199 # FIXME: Should let the user specify the lib program. 9200 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9201 enable_shared_with_static_runtimes=yes 9202 ;; 9203 esac 9204 ;; 9205 9206 darwin* | rhapsody*) 9207 9208 9209 archive_cmds_need_lc=no 9210 hardcode_direct=no 9211 hardcode_automatic=yes 9212 hardcode_shlibpath_var=unsupported 9213 if test "$lt_cv_ld_force_load" = "yes"; then 9214 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\"`' 9215 9216 else 9217 whole_archive_flag_spec='' 9218 fi 9219 link_all_deplibs=yes 9220 allow_undefined_flag="$_lt_dar_allow_undefined" 9221 case $cc_basename in 9222 ifort*) _lt_dar_can_shared=yes ;; 9223 *) _lt_dar_can_shared=$GCC ;; 9224 esac 9225 if test "$_lt_dar_can_shared" = "yes"; then 9226 output_verbose_link_cmd=func_echo_all 9227 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9228 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9229 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}" 9230 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}" 9231 9232 else 9233 ld_shlibs=no 9234 fi 9235 9236 ;; 9237 9238 dgux*) 9239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9240 hardcode_libdir_flag_spec='-L$libdir' 9241 hardcode_shlibpath_var=no 9242 ;; 9243 9244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9245 # support. Future versions do this automatically, but an explicit c++rt0.o 9246 # does not break anything, and helps significantly (at the cost of a little 9247 # extra space). 9248 freebsd2.2*) 9249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9250 hardcode_libdir_flag_spec='-R$libdir' 9251 hardcode_direct=yes 9252 hardcode_shlibpath_var=no 9253 ;; 9254 9255 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9256 freebsd2.*) 9257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9258 hardcode_direct=yes 9259 hardcode_minus_L=yes 9260 hardcode_shlibpath_var=no 9261 ;; 9262 9263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9264 freebsd* | dragonfly*) 9265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9266 hardcode_libdir_flag_spec='-R$libdir' 9267 hardcode_direct=yes 9268 hardcode_shlibpath_var=no 9269 ;; 9270 9271 hpux9*) 9272 if test "$GCC" = yes; then 9273 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' 9274 else 9275 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' 9276 fi 9277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9278 hardcode_libdir_separator=: 9279 hardcode_direct=yes 9280 9281 # hardcode_minus_L: Not really in the search PATH, 9282 # but as the default location of the library. 9283 hardcode_minus_L=yes 9284 export_dynamic_flag_spec='${wl}-E' 9285 ;; 9286 9287 hpux10*) 9288 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9289 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9290 else 9291 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9292 fi 9293 if test "$with_gnu_ld" = no; then 9294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9295 hardcode_libdir_separator=: 9296 hardcode_direct=yes 9297 hardcode_direct_absolute=yes 9298 export_dynamic_flag_spec='${wl}-E' 9299 # hardcode_minus_L: Not really in the search PATH, 9300 # but as the default location of the library. 9301 hardcode_minus_L=yes 9302 fi 9303 ;; 9304 9305 hpux11*) 9306 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9307 case $host_cpu in 9308 hppa*64*) 9309 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9310 ;; 9311 ia64*) 9312 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9313 ;; 9314 *) 9315 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9316 ;; 9317 esac 9318 else 9319 case $host_cpu in 9320 hppa*64*) 9321 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9322 ;; 9323 ia64*) 9324 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9325 ;; 9326 *) 9327 9328 # Older versions of the 11.00 compiler do not understand -b yet 9329 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9331$as_echo_n "checking if $CC understands -b... " >&6; } 9332if ${lt_cv_prog_compiler__b+:} false; then : 9333 $as_echo_n "(cached) " >&6 9334else 9335 lt_cv_prog_compiler__b=no 9336 save_LDFLAGS="$LDFLAGS" 9337 LDFLAGS="$LDFLAGS -b" 9338 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9340 # The linker can only warn and ignore the option if not recognized 9341 # So say no if there are warnings 9342 if test -s conftest.err; then 9343 # Append any errors to the config.log. 9344 cat conftest.err 1>&5 9345 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9347 if diff conftest.exp conftest.er2 >/dev/null; then 9348 lt_cv_prog_compiler__b=yes 9349 fi 9350 else 9351 lt_cv_prog_compiler__b=yes 9352 fi 9353 fi 9354 $RM -r conftest* 9355 LDFLAGS="$save_LDFLAGS" 9356 9357fi 9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9359$as_echo "$lt_cv_prog_compiler__b" >&6; } 9360 9361if test x"$lt_cv_prog_compiler__b" = xyes; then 9362 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9363else 9364 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9365fi 9366 9367 ;; 9368 esac 9369 fi 9370 if test "$with_gnu_ld" = no; then 9371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9372 hardcode_libdir_separator=: 9373 9374 case $host_cpu in 9375 hppa*64*|ia64*) 9376 hardcode_direct=no 9377 hardcode_shlibpath_var=no 9378 ;; 9379 *) 9380 hardcode_direct=yes 9381 hardcode_direct_absolute=yes 9382 export_dynamic_flag_spec='${wl}-E' 9383 9384 # hardcode_minus_L: Not really in the search PATH, 9385 # but as the default location of the library. 9386 hardcode_minus_L=yes 9387 ;; 9388 esac 9389 fi 9390 ;; 9391 9392 irix5* | irix6* | nonstopux*) 9393 if test "$GCC" = yes; then 9394 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' 9395 # Try to use the -exported_symbol ld option, if it does not 9396 # work, assume that -exports_file does not work either and 9397 # implicitly export all symbols. 9398 # This should be the same for all languages, so no per-tag cache variable. 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9400$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9401if ${lt_cv_irix_exported_symbol+:} false; then : 9402 $as_echo_n "(cached) " >&6 9403else 9404 save_LDFLAGS="$LDFLAGS" 9405 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9407/* end confdefs.h. */ 9408int foo (void) { return 0; } 9409_ACEOF 9410if ac_fn_c_try_link "$LINENO"; then : 9411 lt_cv_irix_exported_symbol=yes 9412else 9413 lt_cv_irix_exported_symbol=no 9414fi 9415rm -f core conftest.err conftest.$ac_objext \ 9416 conftest$ac_exeext conftest.$ac_ext 9417 LDFLAGS="$save_LDFLAGS" 9418fi 9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9420$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9421 if test "$lt_cv_irix_exported_symbol" = yes; then 9422 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' 9423 fi 9424 else 9425 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' 9426 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' 9427 fi 9428 archive_cmds_need_lc='no' 9429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9430 hardcode_libdir_separator=: 9431 inherit_rpath=yes 9432 link_all_deplibs=yes 9433 ;; 9434 9435 netbsd*) 9436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9438 else 9439 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9440 fi 9441 hardcode_libdir_flag_spec='-R$libdir' 9442 hardcode_direct=yes 9443 hardcode_shlibpath_var=no 9444 ;; 9445 9446 newsos6) 9447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9448 hardcode_direct=yes 9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9450 hardcode_libdir_separator=: 9451 hardcode_shlibpath_var=no 9452 ;; 9453 9454 *nto* | *qnx*) 9455 ;; 9456 9457 openbsd*) 9458 if test -f /usr/libexec/ld.so; then 9459 hardcode_direct=yes 9460 hardcode_shlibpath_var=no 9461 hardcode_direct_absolute=yes 9462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9464 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9465 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9466 export_dynamic_flag_spec='${wl}-E' 9467 else 9468 case $host_os in 9469 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9471 hardcode_libdir_flag_spec='-R$libdir' 9472 ;; 9473 *) 9474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9475 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9476 ;; 9477 esac 9478 fi 9479 else 9480 ld_shlibs=no 9481 fi 9482 ;; 9483 9484 os2*) 9485 hardcode_libdir_flag_spec='-L$libdir' 9486 hardcode_minus_L=yes 9487 allow_undefined_flag=unsupported 9488 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' 9489 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9490 ;; 9491 9492 osf3*) 9493 if test "$GCC" = yes; then 9494 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9495 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' 9496 else 9497 allow_undefined_flag=' -expect_unresolved \*' 9498 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' 9499 fi 9500 archive_cmds_need_lc='no' 9501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9502 hardcode_libdir_separator=: 9503 ;; 9504 9505 osf4* | osf5*) # as osf3* with the addition of -msym flag 9506 if test "$GCC" = yes; then 9507 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9508 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' 9509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9510 else 9511 allow_undefined_flag=' -expect_unresolved \*' 9512 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' 9513 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~ 9514 $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' 9515 9516 # Both c and cxx compiler support -rpath directly 9517 hardcode_libdir_flag_spec='-rpath $libdir' 9518 fi 9519 archive_cmds_need_lc='no' 9520 hardcode_libdir_separator=: 9521 ;; 9522 9523 solaris*) 9524 no_undefined_flag=' -z defs' 9525 if test "$GCC" = yes; then 9526 wlarc='${wl}' 9527 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9528 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9529 $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' 9530 else 9531 case `$CC -V 2>&1` in 9532 *"Compilers 5.0"*) 9533 wlarc='' 9534 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9537 ;; 9538 *) 9539 wlarc='${wl}' 9540 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9541 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9542 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9543 ;; 9544 esac 9545 fi 9546 hardcode_libdir_flag_spec='-R$libdir' 9547 hardcode_shlibpath_var=no 9548 case $host_os in 9549 solaris2.[0-5] | solaris2.[0-5].*) ;; 9550 *) 9551 # The compiler driver will combine and reorder linker options, 9552 # but understands `-z linker_flag'. GCC discards it without `$wl', 9553 # but is careful enough not to reorder. 9554 # Supported since Solaris 2.6 (maybe 2.5.1?) 9555 if test "$GCC" = yes; then 9556 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9557 else 9558 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9559 fi 9560 ;; 9561 esac 9562 link_all_deplibs=yes 9563 ;; 9564 9565 sunos4*) 9566 if test "x$host_vendor" = xsequent; then 9567 # Use $CC to link under sequent, because it throws in some extra .o 9568 # files that make .init and .fini sections work. 9569 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9570 else 9571 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9572 fi 9573 hardcode_libdir_flag_spec='-L$libdir' 9574 hardcode_direct=yes 9575 hardcode_minus_L=yes 9576 hardcode_shlibpath_var=no 9577 ;; 9578 9579 sysv4) 9580 case $host_vendor in 9581 sni) 9582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9583 hardcode_direct=yes # is this really true??? 9584 ;; 9585 siemens) 9586 ## LD is ld it makes a PLAMLIB 9587 ## CC just makes a GrossModule. 9588 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9589 reload_cmds='$CC -r -o $output$reload_objs' 9590 hardcode_direct=no 9591 ;; 9592 motorola) 9593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9594 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9595 ;; 9596 esac 9597 runpath_var='LD_RUN_PATH' 9598 hardcode_shlibpath_var=no 9599 ;; 9600 9601 sysv4.3*) 9602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9603 hardcode_shlibpath_var=no 9604 export_dynamic_flag_spec='-Bexport' 9605 ;; 9606 9607 sysv4*MP*) 9608 if test -d /usr/nec; then 9609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9610 hardcode_shlibpath_var=no 9611 runpath_var=LD_RUN_PATH 9612 hardcode_runpath_var=yes 9613 ld_shlibs=yes 9614 fi 9615 ;; 9616 9617 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9618 no_undefined_flag='${wl}-z,text' 9619 archive_cmds_need_lc=no 9620 hardcode_shlibpath_var=no 9621 runpath_var='LD_RUN_PATH' 9622 9623 if test "$GCC" = yes; then 9624 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9625 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9626 else 9627 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9628 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9629 fi 9630 ;; 9631 9632 sysv5* | sco3.2v5* | sco5v6*) 9633 # Note: We can NOT use -z defs as we might desire, because we do not 9634 # link with -lc, and that would cause any symbols used from libc to 9635 # always be unresolved, which means just about no library would 9636 # ever link correctly. If we're not using GNU ld we use -z text 9637 # though, which does catch some bad symbols but isn't as heavy-handed 9638 # as -z defs. 9639 no_undefined_flag='${wl}-z,text' 9640 allow_undefined_flag='${wl}-z,nodefs' 9641 archive_cmds_need_lc=no 9642 hardcode_shlibpath_var=no 9643 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9644 hardcode_libdir_separator=':' 9645 link_all_deplibs=yes 9646 export_dynamic_flag_spec='${wl}-Bexport' 9647 runpath_var='LD_RUN_PATH' 9648 9649 if test "$GCC" = yes; then 9650 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9651 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9652 else 9653 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9654 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9655 fi 9656 ;; 9657 9658 uts4*) 9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9660 hardcode_libdir_flag_spec='-L$libdir' 9661 hardcode_shlibpath_var=no 9662 ;; 9663 9664 *) 9665 ld_shlibs=no 9666 ;; 9667 esac 9668 9669 if test x$host_vendor = xsni; then 9670 case $host in 9671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9672 export_dynamic_flag_spec='${wl}-Blargedynsym' 9673 ;; 9674 esac 9675 fi 9676 fi 9677 9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9679$as_echo "$ld_shlibs" >&6; } 9680test "$ld_shlibs" = no && can_build_shared=no 9681 9682with_gnu_ld=$with_gnu_ld 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698# 9699# Do we need to explicitly link libc? 9700# 9701case "x$archive_cmds_need_lc" in 9702x|xyes) 9703 # Assume -lc should be added 9704 archive_cmds_need_lc=yes 9705 9706 if test "$enable_shared" = yes && test "$GCC" = yes; then 9707 case $archive_cmds in 9708 *'~'*) 9709 # FIXME: we may have to deal with multi-command sequences. 9710 ;; 9711 '$CC '*) 9712 # Test whether the compiler implicitly links with -lc since on some 9713 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9714 # to ld, don't add -lc before -lgcc. 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9716$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9717if ${lt_cv_archive_cmds_need_lc+:} false; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 $RM conftest* 9721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9722 9723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9724 (eval $ac_compile) 2>&5 9725 ac_status=$? 9726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9727 test $ac_status = 0; } 2>conftest.err; then 9728 soname=conftest 9729 lib=conftest 9730 libobjs=conftest.$ac_objext 9731 deplibs= 9732 wl=$lt_prog_compiler_wl 9733 pic_flag=$lt_prog_compiler_pic 9734 compiler_flags=-v 9735 linker_flags=-v 9736 verstring= 9737 output_objdir=. 9738 libname=conftest 9739 lt_save_allow_undefined_flag=$allow_undefined_flag 9740 allow_undefined_flag= 9741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9742 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9743 ac_status=$? 9744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9745 test $ac_status = 0; } 9746 then 9747 lt_cv_archive_cmds_need_lc=no 9748 else 9749 lt_cv_archive_cmds_need_lc=yes 9750 fi 9751 allow_undefined_flag=$lt_save_allow_undefined_flag 9752 else 9753 cat conftest.err 1>&5 9754 fi 9755 $RM conftest* 9756 9757fi 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9759$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9760 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9761 ;; 9762 esac 9763 fi 9764 ;; 9765esac 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 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9919$as_echo_n "checking dynamic linker characteristics... " >&6; } 9920 9921if test "$GCC" = yes; then 9922 case $host_os in 9923 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9924 *) lt_awk_arg="/^libraries:/" ;; 9925 esac 9926 case $host_os in 9927 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9928 *) lt_sed_strip_eq="s,=/,/,g" ;; 9929 esac 9930 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9931 case $lt_search_path_spec in 9932 *\;*) 9933 # if the path contains ";" then we assume it to be the separator 9934 # otherwise default to the standard path separator (i.e. ":") - it is 9935 # assumed that no part of a normal pathname contains ";" but that should 9936 # okay in the real world where ";" in dirpaths is itself problematic. 9937 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9938 ;; 9939 *) 9940 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9941 ;; 9942 esac 9943 # Ok, now we have the path, separated by spaces, we can step through it 9944 # and add multilib dir if necessary. 9945 lt_tmp_lt_search_path_spec= 9946 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9947 for lt_sys_path in $lt_search_path_spec; do 9948 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9949 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9950 else 9951 test -d "$lt_sys_path" && \ 9952 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9953 fi 9954 done 9955 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9956BEGIN {RS=" "; FS="/|\n";} { 9957 lt_foo=""; 9958 lt_count=0; 9959 for (lt_i = NF; lt_i > 0; lt_i--) { 9960 if ($lt_i != "" && $lt_i != ".") { 9961 if ($lt_i == "..") { 9962 lt_count++; 9963 } else { 9964 if (lt_count == 0) { 9965 lt_foo="/" $lt_i lt_foo; 9966 } else { 9967 lt_count--; 9968 } 9969 } 9970 } 9971 } 9972 if (lt_foo != "") { lt_freq[lt_foo]++; } 9973 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9974}'` 9975 # AWK program above erroneously prepends '/' to C:/dos/paths 9976 # for these hosts. 9977 case $host_os in 9978 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9979 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9980 esac 9981 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9982else 9983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9984fi 9985library_names_spec= 9986libname_spec='lib$name' 9987soname_spec= 9988shrext_cmds=".so" 9989postinstall_cmds= 9990postuninstall_cmds= 9991finish_cmds= 9992finish_eval= 9993shlibpath_var= 9994shlibpath_overrides_runpath=unknown 9995version_type=none 9996dynamic_linker="$host_os ld.so" 9997sys_lib_dlsearch_path_spec="/lib /usr/lib" 9998need_lib_prefix=unknown 9999hardcode_into_libs=no 10000 10001# when you set need_version to no, make sure it does not cause -set_version 10002# flags to be left without arguments 10003need_version=unknown 10004 10005case $host_os in 10006aix3*) 10007 version_type=linux # correct to gnu/linux during the next big refactor 10008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10009 shlibpath_var=LIBPATH 10010 10011 # AIX 3 has no versioning support, so we append a major version to the name. 10012 soname_spec='${libname}${release}${shared_ext}$major' 10013 ;; 10014 10015aix[4-9]*) 10016 version_type=linux # correct to gnu/linux during the next big refactor 10017 need_lib_prefix=no 10018 need_version=no 10019 hardcode_into_libs=yes 10020 if test "$host_cpu" = ia64; then 10021 # AIX 5 supports IA64 10022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10023 shlibpath_var=LD_LIBRARY_PATH 10024 else 10025 # With GCC up to 2.95.x, collect2 would create an import file 10026 # for dependence libraries. The import file would start with 10027 # the line `#! .'. This would cause the generated library to 10028 # depend on `.', always an invalid library. This was fixed in 10029 # development snapshots of GCC prior to 3.0. 10030 case $host_os in 10031 aix4 | aix4.[01] | aix4.[01].*) 10032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10033 echo ' yes ' 10034 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10035 : 10036 else 10037 can_build_shared=no 10038 fi 10039 ;; 10040 esac 10041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10042 # soname into executable. Probably we can add versioning support to 10043 # collect2, so additional links can be useful in future. 10044 if test "$aix_use_runtimelinking" = yes; then 10045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10046 # instead of lib<name>.a to let people know that these are not 10047 # typical AIX shared libraries. 10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10049 else 10050 # We preserve .a as extension for shared libraries through AIX4.2 10051 # and later when we are not doing run time linking. 10052 library_names_spec='${libname}${release}.a $libname.a' 10053 soname_spec='${libname}${release}${shared_ext}$major' 10054 fi 10055 shlibpath_var=LIBPATH 10056 fi 10057 ;; 10058 10059amigaos*) 10060 case $host_cpu in 10061 powerpc) 10062 # Since July 2007 AmigaOS4 officially supports .so libraries. 10063 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10065 ;; 10066 m68k) 10067 library_names_spec='$libname.ixlibrary $libname.a' 10068 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10069 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' 10070 ;; 10071 esac 10072 ;; 10073 10074beos*) 10075 library_names_spec='${libname}${shared_ext}' 10076 dynamic_linker="$host_os ld.so" 10077 shlibpath_var=LIBRARY_PATH 10078 ;; 10079 10080bsdi[45]*) 10081 version_type=linux # correct to gnu/linux during the next big refactor 10082 need_version=no 10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10084 soname_spec='${libname}${release}${shared_ext}$major' 10085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10086 shlibpath_var=LD_LIBRARY_PATH 10087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10089 # the default ld.so.conf also contains /usr/contrib/lib and 10090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10091 # libtool to hard-code these into programs 10092 ;; 10093 10094cygwin* | mingw* | pw32* | cegcc*) 10095 version_type=windows 10096 shrext_cmds=".dll" 10097 need_version=no 10098 need_lib_prefix=no 10099 10100 case $GCC,$cc_basename in 10101 yes,*) 10102 # gcc 10103 library_names_spec='$libname.dll.a' 10104 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10105 postinstall_cmds='base_file=`basename \${file}`~ 10106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10107 dldir=$destdir/`dirname \$dlpath`~ 10108 test -d \$dldir || mkdir -p \$dldir~ 10109 $install_prog $dir/$dlname \$dldir/$dlname~ 10110 chmod a+x \$dldir/$dlname~ 10111 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10112 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10113 fi' 10114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10115 dlpath=$dir/\$dldll~ 10116 $RM \$dlpath' 10117 shlibpath_overrides_runpath=yes 10118 10119 case $host_os in 10120 cygwin*) 10121 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10122 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10123 10124 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10125 ;; 10126 mingw* | cegcc*) 10127 # MinGW DLLs use traditional 'lib' prefix 10128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10129 ;; 10130 pw32*) 10131 # pw32 DLLs use 'pw' prefix rather than 'lib' 10132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10133 ;; 10134 esac 10135 dynamic_linker='Win32 ld.exe' 10136 ;; 10137 10138 *,cl*) 10139 # Native MSVC 10140 libname_spec='$name' 10141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10142 library_names_spec='${libname}.dll.lib' 10143 10144 case $build_os in 10145 mingw*) 10146 sys_lib_search_path_spec= 10147 lt_save_ifs=$IFS 10148 IFS=';' 10149 for lt_path in $LIB 10150 do 10151 IFS=$lt_save_ifs 10152 # Let DOS variable expansion print the short 8.3 style file name. 10153 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10154 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10155 done 10156 IFS=$lt_save_ifs 10157 # Convert to MSYS style. 10158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10159 ;; 10160 cygwin*) 10161 # Convert to unix form, then to dos form, then back to unix form 10162 # but this time dos style (no spaces!) so that the unix form looks 10163 # like /cygdrive/c/PROGRA~1:/cygdr... 10164 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10165 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10166 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10167 ;; 10168 *) 10169 sys_lib_search_path_spec="$LIB" 10170 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10171 # It is most probably a Windows format PATH. 10172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10173 else 10174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10175 fi 10176 # FIXME: find the short name or the path components, as spaces are 10177 # common. (e.g. "Program Files" -> "PROGRA~1") 10178 ;; 10179 esac 10180 10181 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10182 postinstall_cmds='base_file=`basename \${file}`~ 10183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10184 dldir=$destdir/`dirname \$dlpath`~ 10185 test -d \$dldir || mkdir -p \$dldir~ 10186 $install_prog $dir/$dlname \$dldir/$dlname' 10187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10188 dlpath=$dir/\$dldll~ 10189 $RM \$dlpath' 10190 shlibpath_overrides_runpath=yes 10191 dynamic_linker='Win32 link.exe' 10192 ;; 10193 10194 *) 10195 # Assume MSVC wrapper 10196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10197 dynamic_linker='Win32 ld.exe' 10198 ;; 10199 esac 10200 # FIXME: first we should search . and the directory the executable is in 10201 shlibpath_var=PATH 10202 ;; 10203 10204darwin* | rhapsody*) 10205 dynamic_linker="$host_os dyld" 10206 version_type=darwin 10207 need_lib_prefix=no 10208 need_version=no 10209 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10210 soname_spec='${libname}${release}${major}$shared_ext' 10211 shlibpath_overrides_runpath=yes 10212 shlibpath_var=DYLD_LIBRARY_PATH 10213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10214 10215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10216 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10217 ;; 10218 10219dgux*) 10220 version_type=linux # correct to gnu/linux during the next big refactor 10221 need_lib_prefix=no 10222 need_version=no 10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10224 soname_spec='${libname}${release}${shared_ext}$major' 10225 shlibpath_var=LD_LIBRARY_PATH 10226 ;; 10227 10228freebsd* | dragonfly*) 10229 # DragonFly does not have aout. When/if they implement a new 10230 # versioning mechanism, adjust this. 10231 if test -x /usr/bin/objformat; then 10232 objformat=`/usr/bin/objformat` 10233 else 10234 case $host_os in 10235 freebsd[23].*) objformat=aout ;; 10236 *) objformat=elf ;; 10237 esac 10238 fi 10239 version_type=freebsd-$objformat 10240 case $version_type in 10241 freebsd-elf*) 10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10243 need_version=no 10244 need_lib_prefix=no 10245 ;; 10246 freebsd-*) 10247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10248 need_version=yes 10249 ;; 10250 esac 10251 shlibpath_var=LD_LIBRARY_PATH 10252 case $host_os in 10253 freebsd2.*) 10254 shlibpath_overrides_runpath=yes 10255 ;; 10256 freebsd3.[01]* | freebsdelf3.[01]*) 10257 shlibpath_overrides_runpath=yes 10258 hardcode_into_libs=yes 10259 ;; 10260 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10261 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10262 shlibpath_overrides_runpath=no 10263 hardcode_into_libs=yes 10264 ;; 10265 *) # from 4.6 on, and DragonFly 10266 shlibpath_overrides_runpath=yes 10267 hardcode_into_libs=yes 10268 ;; 10269 esac 10270 ;; 10271 10272gnu*) 10273 version_type=linux # correct to gnu/linux during the next big refactor 10274 need_lib_prefix=no 10275 need_version=no 10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10277 soname_spec='${libname}${release}${shared_ext}$major' 10278 shlibpath_var=LD_LIBRARY_PATH 10279 shlibpath_overrides_runpath=no 10280 hardcode_into_libs=yes 10281 ;; 10282 10283haiku*) 10284 version_type=linux # correct to gnu/linux during the next big refactor 10285 need_lib_prefix=no 10286 need_version=no 10287 dynamic_linker="$host_os runtime_loader" 10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10289 soname_spec='${libname}${release}${shared_ext}$major' 10290 shlibpath_var=LIBRARY_PATH 10291 shlibpath_overrides_runpath=yes 10292 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10293 hardcode_into_libs=yes 10294 ;; 10295 10296hpux9* | hpux10* | hpux11*) 10297 # Give a soname corresponding to the major version so that dld.sl refuses to 10298 # link against other versions. 10299 version_type=sunos 10300 need_lib_prefix=no 10301 need_version=no 10302 case $host_cpu in 10303 ia64*) 10304 shrext_cmds='.so' 10305 hardcode_into_libs=yes 10306 dynamic_linker="$host_os dld.so" 10307 shlibpath_var=LD_LIBRARY_PATH 10308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10310 soname_spec='${libname}${release}${shared_ext}$major' 10311 if test "X$HPUX_IA64_MODE" = X32; then 10312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10313 else 10314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10315 fi 10316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10317 ;; 10318 hppa*64*) 10319 shrext_cmds='.sl' 10320 hardcode_into_libs=yes 10321 dynamic_linker="$host_os dld.sl" 10322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10325 soname_spec='${libname}${release}${shared_ext}$major' 10326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10328 ;; 10329 *) 10330 shrext_cmds='.sl' 10331 dynamic_linker="$host_os dld.sl" 10332 shlibpath_var=SHLIB_PATH 10333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10335 soname_spec='${libname}${release}${shared_ext}$major' 10336 ;; 10337 esac 10338 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10339 postinstall_cmds='chmod 555 $lib' 10340 # or fails outright, so override atomically: 10341 install_override_mode=555 10342 ;; 10343 10344interix[3-9]*) 10345 version_type=linux # correct to gnu/linux during the next big refactor 10346 need_lib_prefix=no 10347 need_version=no 10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10349 soname_spec='${libname}${release}${shared_ext}$major' 10350 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10351 shlibpath_var=LD_LIBRARY_PATH 10352 shlibpath_overrides_runpath=no 10353 hardcode_into_libs=yes 10354 ;; 10355 10356irix5* | irix6* | nonstopux*) 10357 case $host_os in 10358 nonstopux*) version_type=nonstopux ;; 10359 *) 10360 if test "$lt_cv_prog_gnu_ld" = yes; then 10361 version_type=linux # correct to gnu/linux during the next big refactor 10362 else 10363 version_type=irix 10364 fi ;; 10365 esac 10366 need_lib_prefix=no 10367 need_version=no 10368 soname_spec='${libname}${release}${shared_ext}$major' 10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10370 case $host_os in 10371 irix5* | nonstopux*) 10372 libsuff= shlibsuff= 10373 ;; 10374 *) 10375 case $LD in # libtool.m4 will add one of these switches to LD 10376 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10377 libsuff= shlibsuff= libmagic=32-bit;; 10378 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10379 libsuff=32 shlibsuff=N32 libmagic=N32;; 10380 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10381 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10382 *) libsuff= shlibsuff= libmagic=never-match;; 10383 esac 10384 ;; 10385 esac 10386 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10387 shlibpath_overrides_runpath=no 10388 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10389 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10390 hardcode_into_libs=yes 10391 ;; 10392 10393# No shared lib support for Linux oldld, aout, or coff. 10394linux*oldld* | linux*aout* | linux*coff*) 10395 dynamic_linker=no 10396 ;; 10397 10398# This must be glibc/ELF. 10399linux* | k*bsd*-gnu | kopensolaris*-gnu) 10400 version_type=linux # correct to gnu/linux during the next big refactor 10401 need_lib_prefix=no 10402 need_version=no 10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10404 soname_spec='${libname}${release}${shared_ext}$major' 10405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10406 shlibpath_var=LD_LIBRARY_PATH 10407 shlibpath_overrides_runpath=no 10408 10409 # Some binutils ld are patched to set DT_RUNPATH 10410 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 lt_cv_shlibpath_overrides_runpath=no 10414 save_LDFLAGS=$LDFLAGS 10415 save_libdir=$libdir 10416 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10417 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420 10421int 10422main () 10423{ 10424 10425 ; 10426 return 0; 10427} 10428_ACEOF 10429if ac_fn_c_try_link "$LINENO"; then : 10430 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10431 lt_cv_shlibpath_overrides_runpath=yes 10432fi 10433fi 10434rm -f core conftest.err conftest.$ac_objext \ 10435 conftest$ac_exeext conftest.$ac_ext 10436 LDFLAGS=$save_LDFLAGS 10437 libdir=$save_libdir 10438 10439fi 10440 10441 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10442 10443 # This implies no fast_install, which is unacceptable. 10444 # Some rework will be needed to allow for fast_install 10445 # before this can be enabled. 10446 hardcode_into_libs=yes 10447 10448 # Append ld.so.conf contents to the search path 10449 if test -f /etc/ld.so.conf; then 10450 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' ' '` 10451 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10452 fi 10453 10454 # We used to test for /lib/ld.so.1 and disable shared libraries on 10455 # powerpc, because MkLinux only supported shared libraries with the 10456 # GNU dynamic linker. Since this was broken with cross compilers, 10457 # most powerpc-linux boxes support dynamic linking these days and 10458 # people can always --disable-shared, the test was removed, and we 10459 # assume the GNU/Linux dynamic linker is in use. 10460 dynamic_linker='GNU/Linux ld.so' 10461 ;; 10462 10463netbsd*) 10464 version_type=sunos 10465 need_lib_prefix=no 10466 need_version=no 10467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10470 dynamic_linker='NetBSD (a.out) ld.so' 10471 else 10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10473 soname_spec='${libname}${release}${shared_ext}$major' 10474 dynamic_linker='NetBSD ld.elf_so' 10475 fi 10476 shlibpath_var=LD_LIBRARY_PATH 10477 shlibpath_overrides_runpath=yes 10478 hardcode_into_libs=yes 10479 ;; 10480 10481newsos6) 10482 version_type=linux # correct to gnu/linux during the next big refactor 10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10484 shlibpath_var=LD_LIBRARY_PATH 10485 shlibpath_overrides_runpath=yes 10486 ;; 10487 10488*nto* | *qnx*) 10489 version_type=qnx 10490 need_lib_prefix=no 10491 need_version=no 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 shlibpath_var=LD_LIBRARY_PATH 10495 shlibpath_overrides_runpath=no 10496 hardcode_into_libs=yes 10497 dynamic_linker='ldqnx.so' 10498 ;; 10499 10500openbsd*) 10501 version_type=sunos 10502 sys_lib_dlsearch_path_spec="/usr/lib" 10503 need_lib_prefix=no 10504 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10505 case $host_os in 10506 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10507 *) need_version=no ;; 10508 esac 10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10511 shlibpath_var=LD_LIBRARY_PATH 10512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10513 case $host_os in 10514 openbsd2.[89] | openbsd2.[89].*) 10515 shlibpath_overrides_runpath=no 10516 ;; 10517 *) 10518 shlibpath_overrides_runpath=yes 10519 ;; 10520 esac 10521 else 10522 shlibpath_overrides_runpath=yes 10523 fi 10524 ;; 10525 10526os2*) 10527 libname_spec='$name' 10528 shrext_cmds=".dll" 10529 need_lib_prefix=no 10530 library_names_spec='$libname${shared_ext} $libname.a' 10531 dynamic_linker='OS/2 ld.exe' 10532 shlibpath_var=LIBPATH 10533 ;; 10534 10535osf3* | osf4* | osf5*) 10536 version_type=osf 10537 need_lib_prefix=no 10538 need_version=no 10539 soname_spec='${libname}${release}${shared_ext}$major' 10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10541 shlibpath_var=LD_LIBRARY_PATH 10542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10543 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10544 ;; 10545 10546rdos*) 10547 dynamic_linker=no 10548 ;; 10549 10550solaris*) 10551 version_type=linux # correct to gnu/linux during the next big refactor 10552 need_lib_prefix=no 10553 need_version=no 10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10555 soname_spec='${libname}${release}${shared_ext}$major' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 shlibpath_overrides_runpath=yes 10558 hardcode_into_libs=yes 10559 # ldd complains unless libraries are executable 10560 postinstall_cmds='chmod +x $lib' 10561 ;; 10562 10563sunos4*) 10564 version_type=sunos 10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10567 shlibpath_var=LD_LIBRARY_PATH 10568 shlibpath_overrides_runpath=yes 10569 if test "$with_gnu_ld" = yes; then 10570 need_lib_prefix=no 10571 fi 10572 need_version=yes 10573 ;; 10574 10575sysv4 | sysv4.3*) 10576 version_type=linux # correct to gnu/linux during the next big refactor 10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10578 soname_spec='${libname}${release}${shared_ext}$major' 10579 shlibpath_var=LD_LIBRARY_PATH 10580 case $host_vendor in 10581 sni) 10582 shlibpath_overrides_runpath=no 10583 need_lib_prefix=no 10584 runpath_var=LD_RUN_PATH 10585 ;; 10586 siemens) 10587 need_lib_prefix=no 10588 ;; 10589 motorola) 10590 need_lib_prefix=no 10591 need_version=no 10592 shlibpath_overrides_runpath=no 10593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10594 ;; 10595 esac 10596 ;; 10597 10598sysv4*MP*) 10599 if test -d /usr/nec ;then 10600 version_type=linux # correct to gnu/linux during the next big refactor 10601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10602 soname_spec='$libname${shared_ext}.$major' 10603 shlibpath_var=LD_LIBRARY_PATH 10604 fi 10605 ;; 10606 10607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10608 version_type=freebsd-elf 10609 need_lib_prefix=no 10610 need_version=no 10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10612 soname_spec='${libname}${release}${shared_ext}$major' 10613 shlibpath_var=LD_LIBRARY_PATH 10614 shlibpath_overrides_runpath=yes 10615 hardcode_into_libs=yes 10616 if test "$with_gnu_ld" = yes; then 10617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10618 else 10619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10620 case $host_os in 10621 sco3.2v5*) 10622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10623 ;; 10624 esac 10625 fi 10626 sys_lib_dlsearch_path_spec='/usr/lib' 10627 ;; 10628 10629tpf*) 10630 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10631 version_type=linux # correct to gnu/linux during the next big refactor 10632 need_lib_prefix=no 10633 need_version=no 10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10635 shlibpath_var=LD_LIBRARY_PATH 10636 shlibpath_overrides_runpath=no 10637 hardcode_into_libs=yes 10638 ;; 10639 10640uts4*) 10641 version_type=linux # correct to gnu/linux during the next big refactor 10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10643 soname_spec='${libname}${release}${shared_ext}$major' 10644 shlibpath_var=LD_LIBRARY_PATH 10645 ;; 10646 10647*) 10648 dynamic_linker=no 10649 ;; 10650esac 10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10652$as_echo "$dynamic_linker" >&6; } 10653test "$dynamic_linker" = no && can_build_shared=no 10654 10655variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10656if test "$GCC" = yes; then 10657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10658fi 10659 10660if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10661 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10662fi 10663if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10664 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10665fi 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10759$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10760hardcode_action= 10761if test -n "$hardcode_libdir_flag_spec" || 10762 test -n "$runpath_var" || 10763 test "X$hardcode_automatic" = "Xyes" ; then 10764 10765 # We can hardcode non-existent directories. 10766 if test "$hardcode_direct" != no && 10767 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10768 # have to relink, otherwise we might link with an installed library 10769 # when we should be linking with a yet-to-be-installed one 10770 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10771 test "$hardcode_minus_L" != no; then 10772 # Linking always hardcodes the temporary library directory. 10773 hardcode_action=relink 10774 else 10775 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10776 hardcode_action=immediate 10777 fi 10778else 10779 # We cannot hardcode anything, or else we can only hardcode existing 10780 # directories. 10781 hardcode_action=unsupported 10782fi 10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10784$as_echo "$hardcode_action" >&6; } 10785 10786if test "$hardcode_action" = relink || 10787 test "$inherit_rpath" = yes; then 10788 # Fast installation is not supported 10789 enable_fast_install=no 10790elif test "$shlibpath_overrides_runpath" = yes || 10791 test "$enable_shared" = no; then 10792 # Fast installation is not necessary 10793 enable_fast_install=needless 10794fi 10795 10796 10797 10798 10799 10800 10801 if test "x$enable_dlopen" != xyes; then 10802 enable_dlopen=unknown 10803 enable_dlopen_self=unknown 10804 enable_dlopen_self_static=unknown 10805else 10806 lt_cv_dlopen=no 10807 lt_cv_dlopen_libs= 10808 10809 case $host_os in 10810 beos*) 10811 lt_cv_dlopen="load_add_on" 10812 lt_cv_dlopen_libs= 10813 lt_cv_dlopen_self=yes 10814 ;; 10815 10816 mingw* | pw32* | cegcc*) 10817 lt_cv_dlopen="LoadLibrary" 10818 lt_cv_dlopen_libs= 10819 ;; 10820 10821 cygwin*) 10822 lt_cv_dlopen="dlopen" 10823 lt_cv_dlopen_libs= 10824 ;; 10825 10826 darwin*) 10827 # if libdl is installed we need to link against it 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10829$as_echo_n "checking for dlopen in -ldl... " >&6; } 10830if ${ac_cv_lib_dl_dlopen+:} false; then : 10831 $as_echo_n "(cached) " >&6 10832else 10833 ac_check_lib_save_LIBS=$LIBS 10834LIBS="-ldl $LIBS" 10835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10836/* end confdefs.h. */ 10837 10838/* Override any GCC internal prototype to avoid an error. 10839 Use char because int might match the return type of a GCC 10840 builtin and then its argument prototype would still apply. */ 10841#ifdef __cplusplus 10842extern "C" 10843#endif 10844char dlopen (); 10845int 10846main () 10847{ 10848return dlopen (); 10849 ; 10850 return 0; 10851} 10852_ACEOF 10853if ac_fn_c_try_link "$LINENO"; then : 10854 ac_cv_lib_dl_dlopen=yes 10855else 10856 ac_cv_lib_dl_dlopen=no 10857fi 10858rm -f core conftest.err conftest.$ac_objext \ 10859 conftest$ac_exeext conftest.$ac_ext 10860LIBS=$ac_check_lib_save_LIBS 10861fi 10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10863$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10864if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10866else 10867 10868 lt_cv_dlopen="dyld" 10869 lt_cv_dlopen_libs= 10870 lt_cv_dlopen_self=yes 10871 10872fi 10873 10874 ;; 10875 10876 *) 10877 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10878if test "x$ac_cv_func_shl_load" = xyes; then : 10879 lt_cv_dlopen="shl_load" 10880else 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10882$as_echo_n "checking for shl_load in -ldld... " >&6; } 10883if ${ac_cv_lib_dld_shl_load+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885else 10886 ac_check_lib_save_LIBS=$LIBS 10887LIBS="-ldld $LIBS" 10888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889/* end confdefs.h. */ 10890 10891/* Override any GCC internal prototype to avoid an error. 10892 Use char because int might match the return type of a GCC 10893 builtin and then its argument prototype would still apply. */ 10894#ifdef __cplusplus 10895extern "C" 10896#endif 10897char shl_load (); 10898int 10899main () 10900{ 10901return shl_load (); 10902 ; 10903 return 0; 10904} 10905_ACEOF 10906if ac_fn_c_try_link "$LINENO"; then : 10907 ac_cv_lib_dld_shl_load=yes 10908else 10909 ac_cv_lib_dld_shl_load=no 10910fi 10911rm -f core conftest.err conftest.$ac_objext \ 10912 conftest$ac_exeext conftest.$ac_ext 10913LIBS=$ac_check_lib_save_LIBS 10914fi 10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10916$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10917if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10918 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10919else 10920 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10921if test "x$ac_cv_func_dlopen" = xyes; then : 10922 lt_cv_dlopen="dlopen" 10923else 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10925$as_echo_n "checking for dlopen in -ldl... " >&6; } 10926if ${ac_cv_lib_dl_dlopen+:} false; then : 10927 $as_echo_n "(cached) " >&6 10928else 10929 ac_check_lib_save_LIBS=$LIBS 10930LIBS="-ldl $LIBS" 10931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10932/* end confdefs.h. */ 10933 10934/* Override any GCC internal prototype to avoid an error. 10935 Use char because int might match the return type of a GCC 10936 builtin and then its argument prototype would still apply. */ 10937#ifdef __cplusplus 10938extern "C" 10939#endif 10940char dlopen (); 10941int 10942main () 10943{ 10944return dlopen (); 10945 ; 10946 return 0; 10947} 10948_ACEOF 10949if ac_fn_c_try_link "$LINENO"; then : 10950 ac_cv_lib_dl_dlopen=yes 10951else 10952 ac_cv_lib_dl_dlopen=no 10953fi 10954rm -f core conftest.err conftest.$ac_objext \ 10955 conftest$ac_exeext conftest.$ac_ext 10956LIBS=$ac_check_lib_save_LIBS 10957fi 10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10959$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10960if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10962else 10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10964$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10965if ${ac_cv_lib_svld_dlopen+:} false; then : 10966 $as_echo_n "(cached) " >&6 10967else 10968 ac_check_lib_save_LIBS=$LIBS 10969LIBS="-lsvld $LIBS" 10970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10971/* end confdefs.h. */ 10972 10973/* Override any GCC internal prototype to avoid an error. 10974 Use char because int might match the return type of a GCC 10975 builtin and then its argument prototype would still apply. */ 10976#ifdef __cplusplus 10977extern "C" 10978#endif 10979char dlopen (); 10980int 10981main () 10982{ 10983return dlopen (); 10984 ; 10985 return 0; 10986} 10987_ACEOF 10988if ac_fn_c_try_link "$LINENO"; then : 10989 ac_cv_lib_svld_dlopen=yes 10990else 10991 ac_cv_lib_svld_dlopen=no 10992fi 10993rm -f core conftest.err conftest.$ac_objext \ 10994 conftest$ac_exeext conftest.$ac_ext 10995LIBS=$ac_check_lib_save_LIBS 10996fi 10997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10998$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10999if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11000 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11001else 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11003$as_echo_n "checking for dld_link in -ldld... " >&6; } 11004if ${ac_cv_lib_dld_dld_link+:} false; then : 11005 $as_echo_n "(cached) " >&6 11006else 11007 ac_check_lib_save_LIBS=$LIBS 11008LIBS="-ldld $LIBS" 11009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11010/* end confdefs.h. */ 11011 11012/* Override any GCC internal prototype to avoid an error. 11013 Use char because int might match the return type of a GCC 11014 builtin and then its argument prototype would still apply. */ 11015#ifdef __cplusplus 11016extern "C" 11017#endif 11018char dld_link (); 11019int 11020main () 11021{ 11022return dld_link (); 11023 ; 11024 return 0; 11025} 11026_ACEOF 11027if ac_fn_c_try_link "$LINENO"; then : 11028 ac_cv_lib_dld_dld_link=yes 11029else 11030 ac_cv_lib_dld_dld_link=no 11031fi 11032rm -f core conftest.err conftest.$ac_objext \ 11033 conftest$ac_exeext conftest.$ac_ext 11034LIBS=$ac_check_lib_save_LIBS 11035fi 11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11037$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11038if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11039 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11040fi 11041 11042 11043fi 11044 11045 11046fi 11047 11048 11049fi 11050 11051 11052fi 11053 11054 11055fi 11056 11057 ;; 11058 esac 11059 11060 if test "x$lt_cv_dlopen" != xno; then 11061 enable_dlopen=yes 11062 else 11063 enable_dlopen=no 11064 fi 11065 11066 case $lt_cv_dlopen in 11067 dlopen) 11068 save_CPPFLAGS="$CPPFLAGS" 11069 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11070 11071 save_LDFLAGS="$LDFLAGS" 11072 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11073 11074 save_LIBS="$LIBS" 11075 LIBS="$lt_cv_dlopen_libs $LIBS" 11076 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11078$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11079if ${lt_cv_dlopen_self+:} false; then : 11080 $as_echo_n "(cached) " >&6 11081else 11082 if test "$cross_compiling" = yes; then : 11083 lt_cv_dlopen_self=cross 11084else 11085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11086 lt_status=$lt_dlunknown 11087 cat > conftest.$ac_ext <<_LT_EOF 11088#line $LINENO "configure" 11089#include "confdefs.h" 11090 11091#if HAVE_DLFCN_H 11092#include <dlfcn.h> 11093#endif 11094 11095#include <stdio.h> 11096 11097#ifdef RTLD_GLOBAL 11098# define LT_DLGLOBAL RTLD_GLOBAL 11099#else 11100# ifdef DL_GLOBAL 11101# define LT_DLGLOBAL DL_GLOBAL 11102# else 11103# define LT_DLGLOBAL 0 11104# endif 11105#endif 11106 11107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11108 find out it does not work in some platform. */ 11109#ifndef LT_DLLAZY_OR_NOW 11110# ifdef RTLD_LAZY 11111# define LT_DLLAZY_OR_NOW RTLD_LAZY 11112# else 11113# ifdef DL_LAZY 11114# define LT_DLLAZY_OR_NOW DL_LAZY 11115# else 11116# ifdef RTLD_NOW 11117# define LT_DLLAZY_OR_NOW RTLD_NOW 11118# else 11119# ifdef DL_NOW 11120# define LT_DLLAZY_OR_NOW DL_NOW 11121# else 11122# define LT_DLLAZY_OR_NOW 0 11123# endif 11124# endif 11125# endif 11126# endif 11127#endif 11128 11129/* When -fvisbility=hidden is used, assume the code has been annotated 11130 correspondingly for the symbols needed. */ 11131#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11132int fnord () __attribute__((visibility("default"))); 11133#endif 11134 11135int fnord () { return 42; } 11136int main () 11137{ 11138 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11139 int status = $lt_dlunknown; 11140 11141 if (self) 11142 { 11143 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11144 else 11145 { 11146 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11147 else puts (dlerror ()); 11148 } 11149 /* dlclose (self); */ 11150 } 11151 else 11152 puts (dlerror ()); 11153 11154 return status; 11155} 11156_LT_EOF 11157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11158 (eval $ac_link) 2>&5 11159 ac_status=$? 11160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11161 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11162 (./conftest; exit; ) >&5 2>/dev/null 11163 lt_status=$? 11164 case x$lt_status in 11165 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11166 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11167 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11168 esac 11169 else : 11170 # compilation failed 11171 lt_cv_dlopen_self=no 11172 fi 11173fi 11174rm -fr conftest* 11175 11176 11177fi 11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11179$as_echo "$lt_cv_dlopen_self" >&6; } 11180 11181 if test "x$lt_cv_dlopen_self" = xyes; then 11182 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11184$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11185if ${lt_cv_dlopen_self_static+:} false; then : 11186 $as_echo_n "(cached) " >&6 11187else 11188 if test "$cross_compiling" = yes; then : 11189 lt_cv_dlopen_self_static=cross 11190else 11191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11192 lt_status=$lt_dlunknown 11193 cat > conftest.$ac_ext <<_LT_EOF 11194#line $LINENO "configure" 11195#include "confdefs.h" 11196 11197#if HAVE_DLFCN_H 11198#include <dlfcn.h> 11199#endif 11200 11201#include <stdio.h> 11202 11203#ifdef RTLD_GLOBAL 11204# define LT_DLGLOBAL RTLD_GLOBAL 11205#else 11206# ifdef DL_GLOBAL 11207# define LT_DLGLOBAL DL_GLOBAL 11208# else 11209# define LT_DLGLOBAL 0 11210# endif 11211#endif 11212 11213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11214 find out it does not work in some platform. */ 11215#ifndef LT_DLLAZY_OR_NOW 11216# ifdef RTLD_LAZY 11217# define LT_DLLAZY_OR_NOW RTLD_LAZY 11218# else 11219# ifdef DL_LAZY 11220# define LT_DLLAZY_OR_NOW DL_LAZY 11221# else 11222# ifdef RTLD_NOW 11223# define LT_DLLAZY_OR_NOW RTLD_NOW 11224# else 11225# ifdef DL_NOW 11226# define LT_DLLAZY_OR_NOW DL_NOW 11227# else 11228# define LT_DLLAZY_OR_NOW 0 11229# endif 11230# endif 11231# endif 11232# endif 11233#endif 11234 11235/* When -fvisbility=hidden is used, assume the code has been annotated 11236 correspondingly for the symbols needed. */ 11237#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11238int fnord () __attribute__((visibility("default"))); 11239#endif 11240 11241int fnord () { return 42; } 11242int main () 11243{ 11244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11245 int status = $lt_dlunknown; 11246 11247 if (self) 11248 { 11249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11250 else 11251 { 11252 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11253 else puts (dlerror ()); 11254 } 11255 /* dlclose (self); */ 11256 } 11257 else 11258 puts (dlerror ()); 11259 11260 return status; 11261} 11262_LT_EOF 11263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11264 (eval $ac_link) 2>&5 11265 ac_status=$? 11266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11267 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11268 (./conftest; exit; ) >&5 2>/dev/null 11269 lt_status=$? 11270 case x$lt_status in 11271 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11272 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11273 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11274 esac 11275 else : 11276 # compilation failed 11277 lt_cv_dlopen_self_static=no 11278 fi 11279fi 11280rm -fr conftest* 11281 11282 11283fi 11284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11285$as_echo "$lt_cv_dlopen_self_static" >&6; } 11286 fi 11287 11288 CPPFLAGS="$save_CPPFLAGS" 11289 LDFLAGS="$save_LDFLAGS" 11290 LIBS="$save_LIBS" 11291 ;; 11292 esac 11293 11294 case $lt_cv_dlopen_self in 11295 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11296 *) enable_dlopen_self=unknown ;; 11297 esac 11298 11299 case $lt_cv_dlopen_self_static in 11300 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11301 *) enable_dlopen_self_static=unknown ;; 11302 esac 11303fi 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321striplib= 11322old_striplib= 11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11324$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11325if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11326 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11327 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11329$as_echo "yes" >&6; } 11330else 11331# FIXME - insert some real tests, host_os isn't really good enough 11332 case $host_os in 11333 darwin*) 11334 if test -n "$STRIP" ; then 11335 striplib="$STRIP -x" 11336 old_striplib="$STRIP -S" 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11338$as_echo "yes" >&6; } 11339 else 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11341$as_echo "no" >&6; } 11342 fi 11343 ;; 11344 *) 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11346$as_echo "no" >&6; } 11347 ;; 11348 esac 11349fi 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 # Report which library types will actually be built 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11364$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11366$as_echo "$can_build_shared" >&6; } 11367 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11369$as_echo_n "checking whether to build shared libraries... " >&6; } 11370 test "$can_build_shared" = "no" && enable_shared=no 11371 11372 # On AIX, shared libraries and static libraries use the same namespace, and 11373 # are all built from PIC. 11374 case $host_os in 11375 aix3*) 11376 test "$enable_shared" = yes && enable_static=no 11377 if test -n "$RANLIB"; then 11378 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11379 postinstall_cmds='$RANLIB $lib' 11380 fi 11381 ;; 11382 11383 aix[4-9]*) 11384 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11385 test "$enable_shared" = yes && enable_static=no 11386 fi 11387 ;; 11388 esac 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11390$as_echo "$enable_shared" >&6; } 11391 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11393$as_echo_n "checking whether to build static libraries... " >&6; } 11394 # Make sure either enable_shared or enable_static is yes. 11395 test "$enable_shared" = yes || enable_static=yes 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11397$as_echo "$enable_static" >&6; } 11398 11399 11400 11401 11402fi 11403ac_ext=c 11404ac_cpp='$CPP $CPPFLAGS' 11405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11407ac_compiler_gnu=$ac_cv_c_compiler_gnu 11408 11409CC="$lt_save_CC" 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 ac_config_commands="$ac_config_commands libtool" 11426 11427 11428 11429 11430# Only expand once: 11431 11432 11433 11434# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11447$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11448if ${ac_cv_prog_cc_c99+:} false; then : 11449 $as_echo_n "(cached) " >&6 11450else 11451 ac_cv_prog_cc_c99=no 11452ac_save_CC=$CC 11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11454/* end confdefs.h. */ 11455#include <stdarg.h> 11456#include <stdbool.h> 11457#include <stdlib.h> 11458#include <wchar.h> 11459#include <stdio.h> 11460 11461// Check varargs macros. These examples are taken from C99 6.10.3.5. 11462#define debug(...) fprintf (stderr, __VA_ARGS__) 11463#define showlist(...) puts (#__VA_ARGS__) 11464#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11465static void 11466test_varargs_macros (void) 11467{ 11468 int x = 1234; 11469 int y = 5678; 11470 debug ("Flag"); 11471 debug ("X = %d\n", x); 11472 showlist (The first, second, and third items.); 11473 report (x>y, "x is %d but y is %d", x, y); 11474} 11475 11476// Check long long types. 11477#define BIG64 18446744073709551615ull 11478#define BIG32 4294967295ul 11479#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11480#if !BIG_OK 11481 your preprocessor is broken; 11482#endif 11483#if BIG_OK 11484#else 11485 your preprocessor is broken; 11486#endif 11487static long long int bignum = -9223372036854775807LL; 11488static unsigned long long int ubignum = BIG64; 11489 11490struct incomplete_array 11491{ 11492 int datasize; 11493 double data[]; 11494}; 11495 11496struct named_init { 11497 int number; 11498 const wchar_t *name; 11499 double average; 11500}; 11501 11502typedef const char *ccp; 11503 11504static inline int 11505test_restrict (ccp restrict text) 11506{ 11507 // See if C++-style comments work. 11508 // Iterate through items via the restricted pointer. 11509 // Also check for declarations in for loops. 11510 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11511 continue; 11512 return 0; 11513} 11514 11515// Check varargs and va_copy. 11516static void 11517test_varargs (const char *format, ...) 11518{ 11519 va_list args; 11520 va_start (args, format); 11521 va_list args_copy; 11522 va_copy (args_copy, args); 11523 11524 const char *str; 11525 int number; 11526 float fnumber; 11527 11528 while (*format) 11529 { 11530 switch (*format++) 11531 { 11532 case 's': // string 11533 str = va_arg (args_copy, const char *); 11534 break; 11535 case 'd': // int 11536 number = va_arg (args_copy, int); 11537 break; 11538 case 'f': // float 11539 fnumber = va_arg (args_copy, double); 11540 break; 11541 default: 11542 break; 11543 } 11544 } 11545 va_end (args_copy); 11546 va_end (args); 11547} 11548 11549int 11550main () 11551{ 11552 11553 // Check bool. 11554 _Bool success = false; 11555 11556 // Check restrict. 11557 if (test_restrict ("String literal") == 0) 11558 success = true; 11559 char *restrict newvar = "Another string"; 11560 11561 // Check varargs. 11562 test_varargs ("s, d' f .", "string", 65, 34.234); 11563 test_varargs_macros (); 11564 11565 // Check flexible array members. 11566 struct incomplete_array *ia = 11567 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11568 ia->datasize = 10; 11569 for (int i = 0; i < ia->datasize; ++i) 11570 ia->data[i] = i * 1.234; 11571 11572 // Check named initializers. 11573 struct named_init ni = { 11574 .number = 34, 11575 .name = L"Test wide string", 11576 .average = 543.34343, 11577 }; 11578 11579 ni.number = 58; 11580 11581 int dynamic_array[ni.number]; 11582 dynamic_array[ni.number - 1] = 543; 11583 11584 // work around unused variable warnings 11585 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11586 || dynamic_array[ni.number - 1] != 543); 11587 11588 ; 11589 return 0; 11590} 11591_ACEOF 11592for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11593do 11594 CC="$ac_save_CC $ac_arg" 11595 if ac_fn_c_try_compile "$LINENO"; then : 11596 ac_cv_prog_cc_c99=$ac_arg 11597fi 11598rm -f core conftest.err conftest.$ac_objext 11599 test "x$ac_cv_prog_cc_c99" != "xno" && break 11600done 11601rm -f conftest.$ac_ext 11602CC=$ac_save_CC 11603 11604fi 11605# AC_CACHE_VAL 11606case "x$ac_cv_prog_cc_c99" in 11607 x) 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11609$as_echo "none needed" >&6; } ;; 11610 xno) 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11612$as_echo "unsupported" >&6; } ;; 11613 *) 11614 CC="$CC $ac_cv_prog_cc_c99" 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11616$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11617esac 11618if test "x$ac_cv_prog_cc_c99" != xno; then : 11619 11620fi 11621 11622 11623 11624 11625 11626 11627ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11628if test "x$ac_cv_have_decl___clang__" = xyes; then : 11629 CLANGCC="yes" 11630else 11631 CLANGCC="no" 11632fi 11633 11634ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11635if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11636 INTELCC="yes" 11637else 11638 INTELCC="no" 11639fi 11640 11641ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11642if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11643 SUNCC="yes" 11644else 11645 SUNCC="no" 11646fi 11647 11648 11649 11650 11651if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11652 if test -n "$ac_tool_prefix"; then 11653 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11654set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11656$as_echo_n "checking for $ac_word... " >&6; } 11657if ${ac_cv_path_PKG_CONFIG+:} false; then : 11658 $as_echo_n "(cached) " >&6 11659else 11660 case $PKG_CONFIG in 11661 [\\/]* | ?:[\\/]*) 11662 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11663 ;; 11664 *) 11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11666for as_dir in $PATH 11667do 11668 IFS=$as_save_IFS 11669 test -z "$as_dir" && as_dir=. 11670 for ac_exec_ext in '' $ac_executable_extensions; do 11671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11672 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11674 break 2 11675 fi 11676done 11677 done 11678IFS=$as_save_IFS 11679 11680 ;; 11681esac 11682fi 11683PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11684if test -n "$PKG_CONFIG"; then 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11686$as_echo "$PKG_CONFIG" >&6; } 11687else 11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11689$as_echo "no" >&6; } 11690fi 11691 11692 11693fi 11694if test -z "$ac_cv_path_PKG_CONFIG"; then 11695 ac_pt_PKG_CONFIG=$PKG_CONFIG 11696 # Extract the first word of "pkg-config", so it can be a program name with args. 11697set dummy pkg-config; ac_word=$2 11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11699$as_echo_n "checking for $ac_word... " >&6; } 11700if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11701 $as_echo_n "(cached) " >&6 11702else 11703 case $ac_pt_PKG_CONFIG in 11704 [\\/]* | ?:[\\/]*) 11705 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11706 ;; 11707 *) 11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11709for as_dir in $PATH 11710do 11711 IFS=$as_save_IFS 11712 test -z "$as_dir" && as_dir=. 11713 for ac_exec_ext in '' $ac_executable_extensions; do 11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11715 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11717 break 2 11718 fi 11719done 11720 done 11721IFS=$as_save_IFS 11722 11723 ;; 11724esac 11725fi 11726ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11727if test -n "$ac_pt_PKG_CONFIG"; then 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11729$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11730else 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11732$as_echo "no" >&6; } 11733fi 11734 11735 if test "x$ac_pt_PKG_CONFIG" = x; then 11736 PKG_CONFIG="" 11737 else 11738 case $cross_compiling:$ac_tool_warned in 11739yes:) 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11742ac_tool_warned=yes ;; 11743esac 11744 PKG_CONFIG=$ac_pt_PKG_CONFIG 11745 fi 11746else 11747 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11748fi 11749 11750fi 11751if test -n "$PKG_CONFIG"; then 11752 _pkg_min_version=0.9.0 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11754$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11755 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11757$as_echo "yes" >&6; } 11758 else 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11760$as_echo "no" >&6; } 11761 PKG_CONFIG="" 11762 fi 11763 11764fi 11765 11766 11767 11768 11769 11770# Check whether --enable-selective-werror was given. 11771if test "${enable_selective_werror+set}" = set; then : 11772 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11773else 11774 SELECTIVE_WERROR=yes 11775fi 11776 11777 11778 11779 11780 11781# -v is too short to test reliably with XORG_TESTSET_CFLAG 11782if test "x$SUNCC" = "xyes"; then 11783 BASE_CFLAGS="-v" 11784else 11785 BASE_CFLAGS="" 11786fi 11787 11788# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802xorg_testset_save_CFLAGS="$CFLAGS" 11803 11804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11812/* end confdefs.h. */ 11813int i; 11814_ACEOF 11815if ac_fn_c_try_compile "$LINENO"; then : 11816 xorg_cv_cc_flag_unknown_warning_option=yes 11817else 11818 xorg_cv_cc_flag_unknown_warning_option=no 11819fi 11820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11821fi 11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11825 CFLAGS="$xorg_testset_save_CFLAGS" 11826fi 11827 11828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11831 fi 11832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837else 11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11839/* end confdefs.h. */ 11840int i; 11841_ACEOF 11842if ac_fn_c_try_compile "$LINENO"; then : 11843 xorg_cv_cc_flag_unused_command_line_argument=yes 11844else 11845 xorg_cv_cc_flag_unused_command_line_argument=no 11846fi 11847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11848fi 11849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11852 CFLAGS="$xorg_testset_save_CFLAGS" 11853fi 11854 11855found="no" 11856 11857 if test $found = "no" ; then 11858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11860 fi 11861 11862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11864 fi 11865 11866 CFLAGS="$CFLAGS -Wall" 11867 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11869$as_echo_n "checking if $CC supports -Wall... " >&6; } 11870 cacheid=xorg_cv_cc_flag__Wall 11871 if eval \${$cacheid+:} false; then : 11872 $as_echo_n "(cached) " >&6 11873else 11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11875/* end confdefs.h. */ 11876int i; 11877int 11878main () 11879{ 11880 11881 ; 11882 return 0; 11883} 11884_ACEOF 11885if ac_fn_c_try_link "$LINENO"; then : 11886 eval $cacheid=yes 11887else 11888 eval $cacheid=no 11889fi 11890rm -f core conftest.err conftest.$ac_objext \ 11891 conftest$ac_exeext conftest.$ac_ext 11892fi 11893 11894 11895 CFLAGS="$xorg_testset_save_CFLAGS" 11896 11897 eval supported=\$$cacheid 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11899$as_echo "$supported" >&6; } 11900 if test "$supported" = "yes" ; then 11901 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11902 found="yes" 11903 fi 11904 fi 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920xorg_testset_save_CFLAGS="$CFLAGS" 11921 11922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11927 $as_echo_n "(cached) " >&6 11928else 11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11930/* end confdefs.h. */ 11931int i; 11932_ACEOF 11933if ac_fn_c_try_compile "$LINENO"; then : 11934 xorg_cv_cc_flag_unknown_warning_option=yes 11935else 11936 xorg_cv_cc_flag_unknown_warning_option=no 11937fi 11938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11939fi 11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11943 CFLAGS="$xorg_testset_save_CFLAGS" 11944fi 11945 11946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11949 fi 11950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11957/* end confdefs.h. */ 11958int i; 11959_ACEOF 11960if ac_fn_c_try_compile "$LINENO"; then : 11961 xorg_cv_cc_flag_unused_command_line_argument=yes 11962else 11963 xorg_cv_cc_flag_unused_command_line_argument=no 11964fi 11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11966fi 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11970 CFLAGS="$xorg_testset_save_CFLAGS" 11971fi 11972 11973found="no" 11974 11975 if test $found = "no" ; then 11976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11978 fi 11979 11980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11982 fi 11983 11984 CFLAGS="$CFLAGS -Wpointer-arith" 11985 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11987$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11988 cacheid=xorg_cv_cc_flag__Wpointer_arith 11989 if eval \${$cacheid+:} false; then : 11990 $as_echo_n "(cached) " >&6 11991else 11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11993/* end confdefs.h. */ 11994int i; 11995int 11996main () 11997{ 11998 11999 ; 12000 return 0; 12001} 12002_ACEOF 12003if ac_fn_c_try_link "$LINENO"; then : 12004 eval $cacheid=yes 12005else 12006 eval $cacheid=no 12007fi 12008rm -f core conftest.err conftest.$ac_objext \ 12009 conftest$ac_exeext conftest.$ac_ext 12010fi 12011 12012 12013 CFLAGS="$xorg_testset_save_CFLAGS" 12014 12015 eval supported=\$$cacheid 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12017$as_echo "$supported" >&6; } 12018 if test "$supported" = "yes" ; then 12019 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12020 found="yes" 12021 fi 12022 fi 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038xorg_testset_save_CFLAGS="$CFLAGS" 12039 12040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12048/* end confdefs.h. */ 12049int i; 12050_ACEOF 12051if ac_fn_c_try_compile "$LINENO"; then : 12052 xorg_cv_cc_flag_unknown_warning_option=yes 12053else 12054 xorg_cv_cc_flag_unknown_warning_option=no 12055fi 12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12057fi 12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12061 CFLAGS="$xorg_testset_save_CFLAGS" 12062fi 12063 12064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12067 fi 12068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12072 $as_echo_n "(cached) " >&6 12073else 12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12075/* end confdefs.h. */ 12076int i; 12077_ACEOF 12078if ac_fn_c_try_compile "$LINENO"; then : 12079 xorg_cv_cc_flag_unused_command_line_argument=yes 12080else 12081 xorg_cv_cc_flag_unused_command_line_argument=no 12082fi 12083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12084fi 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12088 CFLAGS="$xorg_testset_save_CFLAGS" 12089fi 12090 12091found="no" 12092 12093 if test $found = "no" ; then 12094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12096 fi 12097 12098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12100 fi 12101 12102 CFLAGS="$CFLAGS -Wmissing-declarations" 12103 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12105$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12106 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12107 if eval \${$cacheid+:} false; then : 12108 $as_echo_n "(cached) " >&6 12109else 12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12111/* end confdefs.h. */ 12112int i; 12113int 12114main () 12115{ 12116 12117 ; 12118 return 0; 12119} 12120_ACEOF 12121if ac_fn_c_try_link "$LINENO"; then : 12122 eval $cacheid=yes 12123else 12124 eval $cacheid=no 12125fi 12126rm -f core conftest.err conftest.$ac_objext \ 12127 conftest$ac_exeext conftest.$ac_ext 12128fi 12129 12130 12131 CFLAGS="$xorg_testset_save_CFLAGS" 12132 12133 eval supported=\$$cacheid 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12135$as_echo "$supported" >&6; } 12136 if test "$supported" = "yes" ; then 12137 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12138 found="yes" 12139 fi 12140 fi 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156xorg_testset_save_CFLAGS="$CFLAGS" 12157 12158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166/* end confdefs.h. */ 12167int i; 12168_ACEOF 12169if ac_fn_c_try_compile "$LINENO"; then : 12170 xorg_cv_cc_flag_unknown_warning_option=yes 12171else 12172 xorg_cv_cc_flag_unknown_warning_option=no 12173fi 12174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12175fi 12176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12179 CFLAGS="$xorg_testset_save_CFLAGS" 12180fi 12181 12182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12185 fi 12186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12190 $as_echo_n "(cached) " >&6 12191else 12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12193/* end confdefs.h. */ 12194int i; 12195_ACEOF 12196if ac_fn_c_try_compile "$LINENO"; then : 12197 xorg_cv_cc_flag_unused_command_line_argument=yes 12198else 12199 xorg_cv_cc_flag_unused_command_line_argument=no 12200fi 12201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12202fi 12203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12206 CFLAGS="$xorg_testset_save_CFLAGS" 12207fi 12208 12209found="no" 12210 12211 if test $found = "no" ; then 12212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12214 fi 12215 12216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12218 fi 12219 12220 CFLAGS="$CFLAGS -Wformat=2" 12221 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12223$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12224 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12225 if eval \${$cacheid+:} false; then : 12226 $as_echo_n "(cached) " >&6 12227else 12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12229/* end confdefs.h. */ 12230int i; 12231int 12232main () 12233{ 12234 12235 ; 12236 return 0; 12237} 12238_ACEOF 12239if ac_fn_c_try_link "$LINENO"; then : 12240 eval $cacheid=yes 12241else 12242 eval $cacheid=no 12243fi 12244rm -f core conftest.err conftest.$ac_objext \ 12245 conftest$ac_exeext conftest.$ac_ext 12246fi 12247 12248 12249 CFLAGS="$xorg_testset_save_CFLAGS" 12250 12251 eval supported=\$$cacheid 12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12253$as_echo "$supported" >&6; } 12254 if test "$supported" = "yes" ; then 12255 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12256 found="yes" 12257 fi 12258 fi 12259 12260 if test $found = "no" ; then 12261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12263 fi 12264 12265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12267 fi 12268 12269 CFLAGS="$CFLAGS -Wformat" 12270 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12272$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12273 cacheid=xorg_cv_cc_flag__Wformat 12274 if eval \${$cacheid+:} false; then : 12275 $as_echo_n "(cached) " >&6 12276else 12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12278/* end confdefs.h. */ 12279int i; 12280int 12281main () 12282{ 12283 12284 ; 12285 return 0; 12286} 12287_ACEOF 12288if ac_fn_c_try_link "$LINENO"; then : 12289 eval $cacheid=yes 12290else 12291 eval $cacheid=no 12292fi 12293rm -f core conftest.err conftest.$ac_objext \ 12294 conftest$ac_exeext conftest.$ac_ext 12295fi 12296 12297 12298 CFLAGS="$xorg_testset_save_CFLAGS" 12299 12300 eval supported=\$$cacheid 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12302$as_echo "$supported" >&6; } 12303 if test "$supported" = "yes" ; then 12304 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12305 found="yes" 12306 fi 12307 fi 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325xorg_testset_save_CFLAGS="$CFLAGS" 12326 12327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12332 $as_echo_n "(cached) " >&6 12333else 12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336int i; 12337_ACEOF 12338if ac_fn_c_try_compile "$LINENO"; then : 12339 xorg_cv_cc_flag_unknown_warning_option=yes 12340else 12341 xorg_cv_cc_flag_unknown_warning_option=no 12342fi 12343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12344fi 12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12348 CFLAGS="$xorg_testset_save_CFLAGS" 12349fi 12350 12351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12354 fi 12355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12359 $as_echo_n "(cached) " >&6 12360else 12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12362/* end confdefs.h. */ 12363int i; 12364_ACEOF 12365if ac_fn_c_try_compile "$LINENO"; then : 12366 xorg_cv_cc_flag_unused_command_line_argument=yes 12367else 12368 xorg_cv_cc_flag_unused_command_line_argument=no 12369fi 12370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12371fi 12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12375 CFLAGS="$xorg_testset_save_CFLAGS" 12376fi 12377 12378found="no" 12379 12380 if test $found = "no" ; then 12381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12383 fi 12384 12385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12387 fi 12388 12389 CFLAGS="$CFLAGS -Wstrict-prototypes" 12390 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12392$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12393 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12394 if eval \${$cacheid+:} false; then : 12395 $as_echo_n "(cached) " >&6 12396else 12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12398/* end confdefs.h. */ 12399int i; 12400int 12401main () 12402{ 12403 12404 ; 12405 return 0; 12406} 12407_ACEOF 12408if ac_fn_c_try_link "$LINENO"; then : 12409 eval $cacheid=yes 12410else 12411 eval $cacheid=no 12412fi 12413rm -f core conftest.err conftest.$ac_objext \ 12414 conftest$ac_exeext conftest.$ac_ext 12415fi 12416 12417 12418 CFLAGS="$xorg_testset_save_CFLAGS" 12419 12420 eval supported=\$$cacheid 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12422$as_echo "$supported" >&6; } 12423 if test "$supported" = "yes" ; then 12424 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12425 found="yes" 12426 fi 12427 fi 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443xorg_testset_save_CFLAGS="$CFLAGS" 12444 12445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12450 $as_echo_n "(cached) " >&6 12451else 12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12453/* end confdefs.h. */ 12454int i; 12455_ACEOF 12456if ac_fn_c_try_compile "$LINENO"; then : 12457 xorg_cv_cc_flag_unknown_warning_option=yes 12458else 12459 xorg_cv_cc_flag_unknown_warning_option=no 12460fi 12461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12462fi 12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12466 CFLAGS="$xorg_testset_save_CFLAGS" 12467fi 12468 12469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12472 fi 12473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12477 $as_echo_n "(cached) " >&6 12478else 12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12480/* end confdefs.h. */ 12481int i; 12482_ACEOF 12483if ac_fn_c_try_compile "$LINENO"; then : 12484 xorg_cv_cc_flag_unused_command_line_argument=yes 12485else 12486 xorg_cv_cc_flag_unused_command_line_argument=no 12487fi 12488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12489fi 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12493 CFLAGS="$xorg_testset_save_CFLAGS" 12494fi 12495 12496found="no" 12497 12498 if test $found = "no" ; then 12499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12501 fi 12502 12503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12505 fi 12506 12507 CFLAGS="$CFLAGS -Wmissing-prototypes" 12508 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12510$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12511 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12512 if eval \${$cacheid+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514else 12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12516/* end confdefs.h. */ 12517int i; 12518int 12519main () 12520{ 12521 12522 ; 12523 return 0; 12524} 12525_ACEOF 12526if ac_fn_c_try_link "$LINENO"; then : 12527 eval $cacheid=yes 12528else 12529 eval $cacheid=no 12530fi 12531rm -f core conftest.err conftest.$ac_objext \ 12532 conftest$ac_exeext conftest.$ac_ext 12533fi 12534 12535 12536 CFLAGS="$xorg_testset_save_CFLAGS" 12537 12538 eval supported=\$$cacheid 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12540$as_echo "$supported" >&6; } 12541 if test "$supported" = "yes" ; then 12542 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12543 found="yes" 12544 fi 12545 fi 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561xorg_testset_save_CFLAGS="$CFLAGS" 12562 12563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12568 $as_echo_n "(cached) " >&6 12569else 12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12571/* end confdefs.h. */ 12572int i; 12573_ACEOF 12574if ac_fn_c_try_compile "$LINENO"; then : 12575 xorg_cv_cc_flag_unknown_warning_option=yes 12576else 12577 xorg_cv_cc_flag_unknown_warning_option=no 12578fi 12579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12580fi 12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12584 CFLAGS="$xorg_testset_save_CFLAGS" 12585fi 12586 12587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12590 fi 12591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12595 $as_echo_n "(cached) " >&6 12596else 12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12598/* end confdefs.h. */ 12599int i; 12600_ACEOF 12601if ac_fn_c_try_compile "$LINENO"; then : 12602 xorg_cv_cc_flag_unused_command_line_argument=yes 12603else 12604 xorg_cv_cc_flag_unused_command_line_argument=no 12605fi 12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12607fi 12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12611 CFLAGS="$xorg_testset_save_CFLAGS" 12612fi 12613 12614found="no" 12615 12616 if test $found = "no" ; then 12617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12619 fi 12620 12621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12623 fi 12624 12625 CFLAGS="$CFLAGS -Wnested-externs" 12626 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12628$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12629 cacheid=xorg_cv_cc_flag__Wnested_externs 12630 if eval \${$cacheid+:} false; then : 12631 $as_echo_n "(cached) " >&6 12632else 12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12634/* end confdefs.h. */ 12635int i; 12636int 12637main () 12638{ 12639 12640 ; 12641 return 0; 12642} 12643_ACEOF 12644if ac_fn_c_try_link "$LINENO"; then : 12645 eval $cacheid=yes 12646else 12647 eval $cacheid=no 12648fi 12649rm -f core conftest.err conftest.$ac_objext \ 12650 conftest$ac_exeext conftest.$ac_ext 12651fi 12652 12653 12654 CFLAGS="$xorg_testset_save_CFLAGS" 12655 12656 eval supported=\$$cacheid 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12658$as_echo "$supported" >&6; } 12659 if test "$supported" = "yes" ; then 12660 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12661 found="yes" 12662 fi 12663 fi 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679xorg_testset_save_CFLAGS="$CFLAGS" 12680 12681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12686 $as_echo_n "(cached) " >&6 12687else 12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12689/* end confdefs.h. */ 12690int i; 12691_ACEOF 12692if ac_fn_c_try_compile "$LINENO"; then : 12693 xorg_cv_cc_flag_unknown_warning_option=yes 12694else 12695 xorg_cv_cc_flag_unknown_warning_option=no 12696fi 12697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12698fi 12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12702 CFLAGS="$xorg_testset_save_CFLAGS" 12703fi 12704 12705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12708 fi 12709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12713 $as_echo_n "(cached) " >&6 12714else 12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12716/* end confdefs.h. */ 12717int i; 12718_ACEOF 12719if ac_fn_c_try_compile "$LINENO"; then : 12720 xorg_cv_cc_flag_unused_command_line_argument=yes 12721else 12722 xorg_cv_cc_flag_unused_command_line_argument=no 12723fi 12724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12725fi 12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12729 CFLAGS="$xorg_testset_save_CFLAGS" 12730fi 12731 12732found="no" 12733 12734 if test $found = "no" ; then 12735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12737 fi 12738 12739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12741 fi 12742 12743 CFLAGS="$CFLAGS -Wbad-function-cast" 12744 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12746$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12747 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12748 if eval \${$cacheid+:} false; then : 12749 $as_echo_n "(cached) " >&6 12750else 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12752/* end confdefs.h. */ 12753int i; 12754int 12755main () 12756{ 12757 12758 ; 12759 return 0; 12760} 12761_ACEOF 12762if ac_fn_c_try_link "$LINENO"; then : 12763 eval $cacheid=yes 12764else 12765 eval $cacheid=no 12766fi 12767rm -f core conftest.err conftest.$ac_objext \ 12768 conftest$ac_exeext conftest.$ac_ext 12769fi 12770 12771 12772 CFLAGS="$xorg_testset_save_CFLAGS" 12773 12774 eval supported=\$$cacheid 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12776$as_echo "$supported" >&6; } 12777 if test "$supported" = "yes" ; then 12778 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12779 found="yes" 12780 fi 12781 fi 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797xorg_testset_save_CFLAGS="$CFLAGS" 12798 12799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12804 $as_echo_n "(cached) " >&6 12805else 12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12807/* end confdefs.h. */ 12808int i; 12809_ACEOF 12810if ac_fn_c_try_compile "$LINENO"; then : 12811 xorg_cv_cc_flag_unknown_warning_option=yes 12812else 12813 xorg_cv_cc_flag_unknown_warning_option=no 12814fi 12815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12816fi 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12820 CFLAGS="$xorg_testset_save_CFLAGS" 12821fi 12822 12823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12826 fi 12827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12831 $as_echo_n "(cached) " >&6 12832else 12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12834/* end confdefs.h. */ 12835int i; 12836_ACEOF 12837if ac_fn_c_try_compile "$LINENO"; then : 12838 xorg_cv_cc_flag_unused_command_line_argument=yes 12839else 12840 xorg_cv_cc_flag_unused_command_line_argument=no 12841fi 12842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12843fi 12844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12847 CFLAGS="$xorg_testset_save_CFLAGS" 12848fi 12849 12850found="no" 12851 12852 if test $found = "no" ; then 12853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12855 fi 12856 12857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12859 fi 12860 12861 CFLAGS="$CFLAGS -Wold-style-definition" 12862 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12864$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12865 cacheid=xorg_cv_cc_flag__Wold_style_definition 12866 if eval \${$cacheid+:} false; then : 12867 $as_echo_n "(cached) " >&6 12868else 12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12870/* end confdefs.h. */ 12871int i; 12872int 12873main () 12874{ 12875 12876 ; 12877 return 0; 12878} 12879_ACEOF 12880if ac_fn_c_try_link "$LINENO"; then : 12881 eval $cacheid=yes 12882else 12883 eval $cacheid=no 12884fi 12885rm -f core conftest.err conftest.$ac_objext \ 12886 conftest$ac_exeext conftest.$ac_ext 12887fi 12888 12889 12890 CFLAGS="$xorg_testset_save_CFLAGS" 12891 12892 eval supported=\$$cacheid 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12894$as_echo "$supported" >&6; } 12895 if test "$supported" = "yes" ; then 12896 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12897 found="yes" 12898 fi 12899 fi 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915xorg_testset_save_CFLAGS="$CFLAGS" 12916 12917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12922 $as_echo_n "(cached) " >&6 12923else 12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12925/* end confdefs.h. */ 12926int i; 12927_ACEOF 12928if ac_fn_c_try_compile "$LINENO"; then : 12929 xorg_cv_cc_flag_unknown_warning_option=yes 12930else 12931 xorg_cv_cc_flag_unknown_warning_option=no 12932fi 12933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12934fi 12935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12938 CFLAGS="$xorg_testset_save_CFLAGS" 12939fi 12940 12941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12944 fi 12945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12949 $as_echo_n "(cached) " >&6 12950else 12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12952/* end confdefs.h. */ 12953int i; 12954_ACEOF 12955if ac_fn_c_try_compile "$LINENO"; then : 12956 xorg_cv_cc_flag_unused_command_line_argument=yes 12957else 12958 xorg_cv_cc_flag_unused_command_line_argument=no 12959fi 12960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12961fi 12962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12965 CFLAGS="$xorg_testset_save_CFLAGS" 12966fi 12967 12968found="no" 12969 12970 if test $found = "no" ; then 12971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12973 fi 12974 12975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12977 fi 12978 12979 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12980 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12982$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12983 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12984 if eval \${$cacheid+:} false; then : 12985 $as_echo_n "(cached) " >&6 12986else 12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12988/* end confdefs.h. */ 12989int i; 12990int 12991main () 12992{ 12993 12994 ; 12995 return 0; 12996} 12997_ACEOF 12998if ac_fn_c_try_link "$LINENO"; then : 12999 eval $cacheid=yes 13000else 13001 eval $cacheid=no 13002fi 13003rm -f core conftest.err conftest.$ac_objext \ 13004 conftest$ac_exeext conftest.$ac_ext 13005fi 13006 13007 13008 CFLAGS="$xorg_testset_save_CFLAGS" 13009 13010 eval supported=\$$cacheid 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13012$as_echo "$supported" >&6; } 13013 if test "$supported" = "yes" ; then 13014 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13015 found="yes" 13016 fi 13017 fi 13018 13019 13020 13021 13022 13023# This chunk adds additional warnings that could catch undesired effects. 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037xorg_testset_save_CFLAGS="$CFLAGS" 13038 13039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13044 $as_echo_n "(cached) " >&6 13045else 13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13047/* end confdefs.h. */ 13048int i; 13049_ACEOF 13050if ac_fn_c_try_compile "$LINENO"; then : 13051 xorg_cv_cc_flag_unknown_warning_option=yes 13052else 13053 xorg_cv_cc_flag_unknown_warning_option=no 13054fi 13055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13056fi 13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13060 CFLAGS="$xorg_testset_save_CFLAGS" 13061fi 13062 13063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13066 fi 13067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13071 $as_echo_n "(cached) " >&6 13072else 13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13074/* end confdefs.h. */ 13075int i; 13076_ACEOF 13077if ac_fn_c_try_compile "$LINENO"; then : 13078 xorg_cv_cc_flag_unused_command_line_argument=yes 13079else 13080 xorg_cv_cc_flag_unused_command_line_argument=no 13081fi 13082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13083fi 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13087 CFLAGS="$xorg_testset_save_CFLAGS" 13088fi 13089 13090found="no" 13091 13092 if test $found = "no" ; then 13093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13095 fi 13096 13097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13099 fi 13100 13101 CFLAGS="$CFLAGS -Wunused" 13102 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13104$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13105 cacheid=xorg_cv_cc_flag__Wunused 13106 if eval \${$cacheid+:} false; then : 13107 $as_echo_n "(cached) " >&6 13108else 13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13110/* end confdefs.h. */ 13111int i; 13112int 13113main () 13114{ 13115 13116 ; 13117 return 0; 13118} 13119_ACEOF 13120if ac_fn_c_try_link "$LINENO"; then : 13121 eval $cacheid=yes 13122else 13123 eval $cacheid=no 13124fi 13125rm -f core conftest.err conftest.$ac_objext \ 13126 conftest$ac_exeext conftest.$ac_ext 13127fi 13128 13129 13130 CFLAGS="$xorg_testset_save_CFLAGS" 13131 13132 eval supported=\$$cacheid 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13134$as_echo "$supported" >&6; } 13135 if test "$supported" = "yes" ; then 13136 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13137 found="yes" 13138 fi 13139 fi 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155xorg_testset_save_CFLAGS="$CFLAGS" 13156 13157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13162 $as_echo_n "(cached) " >&6 13163else 13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13165/* end confdefs.h. */ 13166int i; 13167_ACEOF 13168if ac_fn_c_try_compile "$LINENO"; then : 13169 xorg_cv_cc_flag_unknown_warning_option=yes 13170else 13171 xorg_cv_cc_flag_unknown_warning_option=no 13172fi 13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13174fi 13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13178 CFLAGS="$xorg_testset_save_CFLAGS" 13179fi 13180 13181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13184 fi 13185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13189 $as_echo_n "(cached) " >&6 13190else 13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13192/* end confdefs.h. */ 13193int i; 13194_ACEOF 13195if ac_fn_c_try_compile "$LINENO"; then : 13196 xorg_cv_cc_flag_unused_command_line_argument=yes 13197else 13198 xorg_cv_cc_flag_unused_command_line_argument=no 13199fi 13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13201fi 13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13205 CFLAGS="$xorg_testset_save_CFLAGS" 13206fi 13207 13208found="no" 13209 13210 if test $found = "no" ; then 13211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13213 fi 13214 13215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13217 fi 13218 13219 CFLAGS="$CFLAGS -Wuninitialized" 13220 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13222$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13223 cacheid=xorg_cv_cc_flag__Wuninitialized 13224 if eval \${$cacheid+:} false; then : 13225 $as_echo_n "(cached) " >&6 13226else 13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13228/* end confdefs.h. */ 13229int i; 13230int 13231main () 13232{ 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_link "$LINENO"; then : 13239 eval $cacheid=yes 13240else 13241 eval $cacheid=no 13242fi 13243rm -f core conftest.err conftest.$ac_objext \ 13244 conftest$ac_exeext conftest.$ac_ext 13245fi 13246 13247 13248 CFLAGS="$xorg_testset_save_CFLAGS" 13249 13250 eval supported=\$$cacheid 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13252$as_echo "$supported" >&6; } 13253 if test "$supported" = "yes" ; then 13254 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13255 found="yes" 13256 fi 13257 fi 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273xorg_testset_save_CFLAGS="$CFLAGS" 13274 13275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281else 13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13283/* end confdefs.h. */ 13284int i; 13285_ACEOF 13286if ac_fn_c_try_compile "$LINENO"; then : 13287 xorg_cv_cc_flag_unknown_warning_option=yes 13288else 13289 xorg_cv_cc_flag_unknown_warning_option=no 13290fi 13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13292fi 13293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13296 CFLAGS="$xorg_testset_save_CFLAGS" 13297fi 13298 13299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13302 fi 13303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13307 $as_echo_n "(cached) " >&6 13308else 13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13310/* end confdefs.h. */ 13311int i; 13312_ACEOF 13313if ac_fn_c_try_compile "$LINENO"; then : 13314 xorg_cv_cc_flag_unused_command_line_argument=yes 13315else 13316 xorg_cv_cc_flag_unused_command_line_argument=no 13317fi 13318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13319fi 13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13323 CFLAGS="$xorg_testset_save_CFLAGS" 13324fi 13325 13326found="no" 13327 13328 if test $found = "no" ; then 13329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13331 fi 13332 13333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13335 fi 13336 13337 CFLAGS="$CFLAGS -Wshadow" 13338 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13340$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13341 cacheid=xorg_cv_cc_flag__Wshadow 13342 if eval \${$cacheid+:} false; then : 13343 $as_echo_n "(cached) " >&6 13344else 13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13346/* end confdefs.h. */ 13347int i; 13348int 13349main () 13350{ 13351 13352 ; 13353 return 0; 13354} 13355_ACEOF 13356if ac_fn_c_try_link "$LINENO"; then : 13357 eval $cacheid=yes 13358else 13359 eval $cacheid=no 13360fi 13361rm -f core conftest.err conftest.$ac_objext \ 13362 conftest$ac_exeext conftest.$ac_ext 13363fi 13364 13365 13366 CFLAGS="$xorg_testset_save_CFLAGS" 13367 13368 eval supported=\$$cacheid 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13370$as_echo "$supported" >&6; } 13371 if test "$supported" = "yes" ; then 13372 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13373 found="yes" 13374 fi 13375 fi 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391xorg_testset_save_CFLAGS="$CFLAGS" 13392 13393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13398 $as_echo_n "(cached) " >&6 13399else 13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13401/* end confdefs.h. */ 13402int i; 13403_ACEOF 13404if ac_fn_c_try_compile "$LINENO"; then : 13405 xorg_cv_cc_flag_unknown_warning_option=yes 13406else 13407 xorg_cv_cc_flag_unknown_warning_option=no 13408fi 13409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13410fi 13411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13414 CFLAGS="$xorg_testset_save_CFLAGS" 13415fi 13416 13417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13420 fi 13421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13425 $as_echo_n "(cached) " >&6 13426else 13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13428/* end confdefs.h. */ 13429int i; 13430_ACEOF 13431if ac_fn_c_try_compile "$LINENO"; then : 13432 xorg_cv_cc_flag_unused_command_line_argument=yes 13433else 13434 xorg_cv_cc_flag_unused_command_line_argument=no 13435fi 13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13437fi 13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13441 CFLAGS="$xorg_testset_save_CFLAGS" 13442fi 13443 13444found="no" 13445 13446 if test $found = "no" ; then 13447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13449 fi 13450 13451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13453 fi 13454 13455 CFLAGS="$CFLAGS -Wcast-qual" 13456 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13458$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13459 cacheid=xorg_cv_cc_flag__Wcast_qual 13460 if eval \${$cacheid+:} false; then : 13461 $as_echo_n "(cached) " >&6 13462else 13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13464/* end confdefs.h. */ 13465int i; 13466int 13467main () 13468{ 13469 13470 ; 13471 return 0; 13472} 13473_ACEOF 13474if ac_fn_c_try_link "$LINENO"; then : 13475 eval $cacheid=yes 13476else 13477 eval $cacheid=no 13478fi 13479rm -f core conftest.err conftest.$ac_objext \ 13480 conftest$ac_exeext conftest.$ac_ext 13481fi 13482 13483 13484 CFLAGS="$xorg_testset_save_CFLAGS" 13485 13486 eval supported=\$$cacheid 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13488$as_echo "$supported" >&6; } 13489 if test "$supported" = "yes" ; then 13490 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13491 found="yes" 13492 fi 13493 fi 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509xorg_testset_save_CFLAGS="$CFLAGS" 13510 13511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13516 $as_echo_n "(cached) " >&6 13517else 13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13519/* end confdefs.h. */ 13520int i; 13521_ACEOF 13522if ac_fn_c_try_compile "$LINENO"; then : 13523 xorg_cv_cc_flag_unknown_warning_option=yes 13524else 13525 xorg_cv_cc_flag_unknown_warning_option=no 13526fi 13527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13528fi 13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13532 CFLAGS="$xorg_testset_save_CFLAGS" 13533fi 13534 13535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13538 fi 13539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13543 $as_echo_n "(cached) " >&6 13544else 13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13546/* end confdefs.h. */ 13547int i; 13548_ACEOF 13549if ac_fn_c_try_compile "$LINENO"; then : 13550 xorg_cv_cc_flag_unused_command_line_argument=yes 13551else 13552 xorg_cv_cc_flag_unused_command_line_argument=no 13553fi 13554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13555fi 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13559 CFLAGS="$xorg_testset_save_CFLAGS" 13560fi 13561 13562found="no" 13563 13564 if test $found = "no" ; then 13565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13567 fi 13568 13569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13571 fi 13572 13573 CFLAGS="$CFLAGS -Wmissing-noreturn" 13574 13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13576$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13577 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13578 if eval \${$cacheid+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580else 13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13582/* end confdefs.h. */ 13583int i; 13584int 13585main () 13586{ 13587 13588 ; 13589 return 0; 13590} 13591_ACEOF 13592if ac_fn_c_try_link "$LINENO"; then : 13593 eval $cacheid=yes 13594else 13595 eval $cacheid=no 13596fi 13597rm -f core conftest.err conftest.$ac_objext \ 13598 conftest$ac_exeext conftest.$ac_ext 13599fi 13600 13601 13602 CFLAGS="$xorg_testset_save_CFLAGS" 13603 13604 eval supported=\$$cacheid 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13606$as_echo "$supported" >&6; } 13607 if test "$supported" = "yes" ; then 13608 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13609 found="yes" 13610 fi 13611 fi 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627xorg_testset_save_CFLAGS="$CFLAGS" 13628 13629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13634 $as_echo_n "(cached) " >&6 13635else 13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13637/* end confdefs.h. */ 13638int i; 13639_ACEOF 13640if ac_fn_c_try_compile "$LINENO"; then : 13641 xorg_cv_cc_flag_unknown_warning_option=yes 13642else 13643 xorg_cv_cc_flag_unknown_warning_option=no 13644fi 13645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13646fi 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13650 CFLAGS="$xorg_testset_save_CFLAGS" 13651fi 13652 13653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13656 fi 13657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13661 $as_echo_n "(cached) " >&6 13662else 13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13664/* end confdefs.h. */ 13665int i; 13666_ACEOF 13667if ac_fn_c_try_compile "$LINENO"; then : 13668 xorg_cv_cc_flag_unused_command_line_argument=yes 13669else 13670 xorg_cv_cc_flag_unused_command_line_argument=no 13671fi 13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13673fi 13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13677 CFLAGS="$xorg_testset_save_CFLAGS" 13678fi 13679 13680found="no" 13681 13682 if test $found = "no" ; then 13683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13685 fi 13686 13687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13689 fi 13690 13691 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13692 13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13694$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13695 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13696 if eval \${$cacheid+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698else 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701int i; 13702int 13703main () 13704{ 13705 13706 ; 13707 return 0; 13708} 13709_ACEOF 13710if ac_fn_c_try_link "$LINENO"; then : 13711 eval $cacheid=yes 13712else 13713 eval $cacheid=no 13714fi 13715rm -f core conftest.err conftest.$ac_objext \ 13716 conftest$ac_exeext conftest.$ac_ext 13717fi 13718 13719 13720 CFLAGS="$xorg_testset_save_CFLAGS" 13721 13722 eval supported=\$$cacheid 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13724$as_echo "$supported" >&6; } 13725 if test "$supported" = "yes" ; then 13726 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13727 found="yes" 13728 fi 13729 fi 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745xorg_testset_save_CFLAGS="$CFLAGS" 13746 13747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13752 $as_echo_n "(cached) " >&6 13753else 13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13755/* end confdefs.h. */ 13756int i; 13757_ACEOF 13758if ac_fn_c_try_compile "$LINENO"; then : 13759 xorg_cv_cc_flag_unknown_warning_option=yes 13760else 13761 xorg_cv_cc_flag_unknown_warning_option=no 13762fi 13763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13764fi 13765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13768 CFLAGS="$xorg_testset_save_CFLAGS" 13769fi 13770 13771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13774 fi 13775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13779 $as_echo_n "(cached) " >&6 13780else 13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13782/* end confdefs.h. */ 13783int i; 13784_ACEOF 13785if ac_fn_c_try_compile "$LINENO"; then : 13786 xorg_cv_cc_flag_unused_command_line_argument=yes 13787else 13788 xorg_cv_cc_flag_unused_command_line_argument=no 13789fi 13790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13791fi 13792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13795 CFLAGS="$xorg_testset_save_CFLAGS" 13796fi 13797 13798found="no" 13799 13800 if test $found = "no" ; then 13801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13803 fi 13804 13805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13807 fi 13808 13809 CFLAGS="$CFLAGS -Wredundant-decls" 13810 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13812$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13813 cacheid=xorg_cv_cc_flag__Wredundant_decls 13814 if eval \${$cacheid+:} false; then : 13815 $as_echo_n "(cached) " >&6 13816else 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819int i; 13820int 13821main () 13822{ 13823 13824 ; 13825 return 0; 13826} 13827_ACEOF 13828if ac_fn_c_try_link "$LINENO"; then : 13829 eval $cacheid=yes 13830else 13831 eval $cacheid=no 13832fi 13833rm -f core conftest.err conftest.$ac_objext \ 13834 conftest$ac_exeext conftest.$ac_ext 13835fi 13836 13837 13838 CFLAGS="$xorg_testset_save_CFLAGS" 13839 13840 eval supported=\$$cacheid 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13842$as_echo "$supported" >&6; } 13843 if test "$supported" = "yes" ; then 13844 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13845 found="yes" 13846 fi 13847 fi 13848 13849 13850 13851# These are currently disabled because they are noisy. They will be enabled 13852# in the future once the codebase is sufficiently modernized to silence 13853# them. For now, I don't want them to drown out the other warnings. 13854# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13855# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13856# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13857 13858# Turn some warnings into errors, so we don't accidently get successful builds 13859# when there are problems that should be fixed. 13860 13861if test "x$SELECTIVE_WERROR" = "xyes" ; then 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875xorg_testset_save_CFLAGS="$CFLAGS" 13876 13877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13882 $as_echo_n "(cached) " >&6 13883else 13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13885/* end confdefs.h. */ 13886int i; 13887_ACEOF 13888if ac_fn_c_try_compile "$LINENO"; then : 13889 xorg_cv_cc_flag_unknown_warning_option=yes 13890else 13891 xorg_cv_cc_flag_unknown_warning_option=no 13892fi 13893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13894fi 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13898 CFLAGS="$xorg_testset_save_CFLAGS" 13899fi 13900 13901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13904 fi 13905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13909 $as_echo_n "(cached) " >&6 13910else 13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13912/* end confdefs.h. */ 13913int i; 13914_ACEOF 13915if ac_fn_c_try_compile "$LINENO"; then : 13916 xorg_cv_cc_flag_unused_command_line_argument=yes 13917else 13918 xorg_cv_cc_flag_unused_command_line_argument=no 13919fi 13920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13921fi 13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13925 CFLAGS="$xorg_testset_save_CFLAGS" 13926fi 13927 13928found="no" 13929 13930 if test $found = "no" ; then 13931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13933 fi 13934 13935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13937 fi 13938 13939 CFLAGS="$CFLAGS -Werror=implicit" 13940 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13942$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13943 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13944 if eval \${$cacheid+:} false; then : 13945 $as_echo_n "(cached) " >&6 13946else 13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13948/* end confdefs.h. */ 13949int i; 13950int 13951main () 13952{ 13953 13954 ; 13955 return 0; 13956} 13957_ACEOF 13958if ac_fn_c_try_link "$LINENO"; then : 13959 eval $cacheid=yes 13960else 13961 eval $cacheid=no 13962fi 13963rm -f core conftest.err conftest.$ac_objext \ 13964 conftest$ac_exeext conftest.$ac_ext 13965fi 13966 13967 13968 CFLAGS="$xorg_testset_save_CFLAGS" 13969 13970 eval supported=\$$cacheid 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13972$as_echo "$supported" >&6; } 13973 if test "$supported" = "yes" ; then 13974 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13975 found="yes" 13976 fi 13977 fi 13978 13979 if test $found = "no" ; then 13980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13982 fi 13983 13984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13986 fi 13987 13988 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13989 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13991$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13992 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13993 if eval \${$cacheid+:} false; then : 13994 $as_echo_n "(cached) " >&6 13995else 13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13997/* end confdefs.h. */ 13998int i; 13999int 14000main () 14001{ 14002 14003 ; 14004 return 0; 14005} 14006_ACEOF 14007if ac_fn_c_try_link "$LINENO"; then : 14008 eval $cacheid=yes 14009else 14010 eval $cacheid=no 14011fi 14012rm -f core conftest.err conftest.$ac_objext \ 14013 conftest$ac_exeext conftest.$ac_ext 14014fi 14015 14016 14017 CFLAGS="$xorg_testset_save_CFLAGS" 14018 14019 eval supported=\$$cacheid 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14021$as_echo "$supported" >&6; } 14022 if test "$supported" = "yes" ; then 14023 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14024 found="yes" 14025 fi 14026 fi 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042xorg_testset_save_CFLAGS="$CFLAGS" 14043 14044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053int i; 14054_ACEOF 14055if ac_fn_c_try_compile "$LINENO"; then : 14056 xorg_cv_cc_flag_unknown_warning_option=yes 14057else 14058 xorg_cv_cc_flag_unknown_warning_option=no 14059fi 14060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14061fi 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14065 CFLAGS="$xorg_testset_save_CFLAGS" 14066fi 14067 14068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14071 fi 14072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14076 $as_echo_n "(cached) " >&6 14077else 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079/* end confdefs.h. */ 14080int i; 14081_ACEOF 14082if ac_fn_c_try_compile "$LINENO"; then : 14083 xorg_cv_cc_flag_unused_command_line_argument=yes 14084else 14085 xorg_cv_cc_flag_unused_command_line_argument=no 14086fi 14087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14088fi 14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14092 CFLAGS="$xorg_testset_save_CFLAGS" 14093fi 14094 14095found="no" 14096 14097 if test $found = "no" ; then 14098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14100 fi 14101 14102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14104 fi 14105 14106 CFLAGS="$CFLAGS -Werror=nonnull" 14107 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14109$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14110 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14111 if eval \${$cacheid+:} false; then : 14112 $as_echo_n "(cached) " >&6 14113else 14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14115/* end confdefs.h. */ 14116int i; 14117int 14118main () 14119{ 14120 14121 ; 14122 return 0; 14123} 14124_ACEOF 14125if ac_fn_c_try_link "$LINENO"; then : 14126 eval $cacheid=yes 14127else 14128 eval $cacheid=no 14129fi 14130rm -f core conftest.err conftest.$ac_objext \ 14131 conftest$ac_exeext conftest.$ac_ext 14132fi 14133 14134 14135 CFLAGS="$xorg_testset_save_CFLAGS" 14136 14137 eval supported=\$$cacheid 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14139$as_echo "$supported" >&6; } 14140 if test "$supported" = "yes" ; then 14141 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14142 found="yes" 14143 fi 14144 fi 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160xorg_testset_save_CFLAGS="$CFLAGS" 14161 14162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14167 $as_echo_n "(cached) " >&6 14168else 14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14170/* end confdefs.h. */ 14171int i; 14172_ACEOF 14173if ac_fn_c_try_compile "$LINENO"; then : 14174 xorg_cv_cc_flag_unknown_warning_option=yes 14175else 14176 xorg_cv_cc_flag_unknown_warning_option=no 14177fi 14178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14179fi 14180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14183 CFLAGS="$xorg_testset_save_CFLAGS" 14184fi 14185 14186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14189 fi 14190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14194 $as_echo_n "(cached) " >&6 14195else 14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14197/* end confdefs.h. */ 14198int i; 14199_ACEOF 14200if ac_fn_c_try_compile "$LINENO"; then : 14201 xorg_cv_cc_flag_unused_command_line_argument=yes 14202else 14203 xorg_cv_cc_flag_unused_command_line_argument=no 14204fi 14205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14206fi 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14210 CFLAGS="$xorg_testset_save_CFLAGS" 14211fi 14212 14213found="no" 14214 14215 if test $found = "no" ; then 14216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14218 fi 14219 14220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14222 fi 14223 14224 CFLAGS="$CFLAGS -Werror=init-self" 14225 14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14227$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14228 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14229 if eval \${$cacheid+:} false; then : 14230 $as_echo_n "(cached) " >&6 14231else 14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14233/* end confdefs.h. */ 14234int i; 14235int 14236main () 14237{ 14238 14239 ; 14240 return 0; 14241} 14242_ACEOF 14243if ac_fn_c_try_link "$LINENO"; then : 14244 eval $cacheid=yes 14245else 14246 eval $cacheid=no 14247fi 14248rm -f core conftest.err conftest.$ac_objext \ 14249 conftest$ac_exeext conftest.$ac_ext 14250fi 14251 14252 14253 CFLAGS="$xorg_testset_save_CFLAGS" 14254 14255 eval supported=\$$cacheid 14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14257$as_echo "$supported" >&6; } 14258 if test "$supported" = "yes" ; then 14259 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14260 found="yes" 14261 fi 14262 fi 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278xorg_testset_save_CFLAGS="$CFLAGS" 14279 14280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14285 $as_echo_n "(cached) " >&6 14286else 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288/* end confdefs.h. */ 14289int i; 14290_ACEOF 14291if ac_fn_c_try_compile "$LINENO"; then : 14292 xorg_cv_cc_flag_unknown_warning_option=yes 14293else 14294 xorg_cv_cc_flag_unknown_warning_option=no 14295fi 14296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14297fi 14298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14301 CFLAGS="$xorg_testset_save_CFLAGS" 14302fi 14303 14304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14307 fi 14308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14312 $as_echo_n "(cached) " >&6 14313else 14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14315/* end confdefs.h. */ 14316int i; 14317_ACEOF 14318if ac_fn_c_try_compile "$LINENO"; then : 14319 xorg_cv_cc_flag_unused_command_line_argument=yes 14320else 14321 xorg_cv_cc_flag_unused_command_line_argument=no 14322fi 14323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14324fi 14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14328 CFLAGS="$xorg_testset_save_CFLAGS" 14329fi 14330 14331found="no" 14332 14333 if test $found = "no" ; then 14334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14336 fi 14337 14338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14340 fi 14341 14342 CFLAGS="$CFLAGS -Werror=main" 14343 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14345$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14346 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14347 if eval \${$cacheid+:} false; then : 14348 $as_echo_n "(cached) " >&6 14349else 14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14351/* end confdefs.h. */ 14352int i; 14353int 14354main () 14355{ 14356 14357 ; 14358 return 0; 14359} 14360_ACEOF 14361if ac_fn_c_try_link "$LINENO"; then : 14362 eval $cacheid=yes 14363else 14364 eval $cacheid=no 14365fi 14366rm -f core conftest.err conftest.$ac_objext \ 14367 conftest$ac_exeext conftest.$ac_ext 14368fi 14369 14370 14371 CFLAGS="$xorg_testset_save_CFLAGS" 14372 14373 eval supported=\$$cacheid 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14375$as_echo "$supported" >&6; } 14376 if test "$supported" = "yes" ; then 14377 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14378 found="yes" 14379 fi 14380 fi 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396xorg_testset_save_CFLAGS="$CFLAGS" 14397 14398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14403 $as_echo_n "(cached) " >&6 14404else 14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14406/* end confdefs.h. */ 14407int i; 14408_ACEOF 14409if ac_fn_c_try_compile "$LINENO"; then : 14410 xorg_cv_cc_flag_unknown_warning_option=yes 14411else 14412 xorg_cv_cc_flag_unknown_warning_option=no 14413fi 14414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14415fi 14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14419 CFLAGS="$xorg_testset_save_CFLAGS" 14420fi 14421 14422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14425 fi 14426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14430 $as_echo_n "(cached) " >&6 14431else 14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14433/* end confdefs.h. */ 14434int i; 14435_ACEOF 14436if ac_fn_c_try_compile "$LINENO"; then : 14437 xorg_cv_cc_flag_unused_command_line_argument=yes 14438else 14439 xorg_cv_cc_flag_unused_command_line_argument=no 14440fi 14441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14442fi 14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14446 CFLAGS="$xorg_testset_save_CFLAGS" 14447fi 14448 14449found="no" 14450 14451 if test $found = "no" ; then 14452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14454 fi 14455 14456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14458 fi 14459 14460 CFLAGS="$CFLAGS -Werror=missing-braces" 14461 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14463$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14464 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14465 if eval \${$cacheid+:} false; then : 14466 $as_echo_n "(cached) " >&6 14467else 14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14469/* end confdefs.h. */ 14470int i; 14471int 14472main () 14473{ 14474 14475 ; 14476 return 0; 14477} 14478_ACEOF 14479if ac_fn_c_try_link "$LINENO"; then : 14480 eval $cacheid=yes 14481else 14482 eval $cacheid=no 14483fi 14484rm -f core conftest.err conftest.$ac_objext \ 14485 conftest$ac_exeext conftest.$ac_ext 14486fi 14487 14488 14489 CFLAGS="$xorg_testset_save_CFLAGS" 14490 14491 eval supported=\$$cacheid 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14493$as_echo "$supported" >&6; } 14494 if test "$supported" = "yes" ; then 14495 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14496 found="yes" 14497 fi 14498 fi 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514xorg_testset_save_CFLAGS="$CFLAGS" 14515 14516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14521 $as_echo_n "(cached) " >&6 14522else 14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14524/* end confdefs.h. */ 14525int i; 14526_ACEOF 14527if ac_fn_c_try_compile "$LINENO"; then : 14528 xorg_cv_cc_flag_unknown_warning_option=yes 14529else 14530 xorg_cv_cc_flag_unknown_warning_option=no 14531fi 14532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14533fi 14534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14537 CFLAGS="$xorg_testset_save_CFLAGS" 14538fi 14539 14540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14543 fi 14544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14548 $as_echo_n "(cached) " >&6 14549else 14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14551/* end confdefs.h. */ 14552int i; 14553_ACEOF 14554if ac_fn_c_try_compile "$LINENO"; then : 14555 xorg_cv_cc_flag_unused_command_line_argument=yes 14556else 14557 xorg_cv_cc_flag_unused_command_line_argument=no 14558fi 14559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14560fi 14561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14564 CFLAGS="$xorg_testset_save_CFLAGS" 14565fi 14566 14567found="no" 14568 14569 if test $found = "no" ; then 14570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14572 fi 14573 14574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14576 fi 14577 14578 CFLAGS="$CFLAGS -Werror=sequence-point" 14579 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14581$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14582 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14583 if eval \${$cacheid+:} false; then : 14584 $as_echo_n "(cached) " >&6 14585else 14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14587/* end confdefs.h. */ 14588int i; 14589int 14590main () 14591{ 14592 14593 ; 14594 return 0; 14595} 14596_ACEOF 14597if ac_fn_c_try_link "$LINENO"; then : 14598 eval $cacheid=yes 14599else 14600 eval $cacheid=no 14601fi 14602rm -f core conftest.err conftest.$ac_objext \ 14603 conftest$ac_exeext conftest.$ac_ext 14604fi 14605 14606 14607 CFLAGS="$xorg_testset_save_CFLAGS" 14608 14609 eval supported=\$$cacheid 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14611$as_echo "$supported" >&6; } 14612 if test "$supported" = "yes" ; then 14613 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14614 found="yes" 14615 fi 14616 fi 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632xorg_testset_save_CFLAGS="$CFLAGS" 14633 14634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14639 $as_echo_n "(cached) " >&6 14640else 14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14642/* end confdefs.h. */ 14643int i; 14644_ACEOF 14645if ac_fn_c_try_compile "$LINENO"; then : 14646 xorg_cv_cc_flag_unknown_warning_option=yes 14647else 14648 xorg_cv_cc_flag_unknown_warning_option=no 14649fi 14650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14651fi 14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14655 CFLAGS="$xorg_testset_save_CFLAGS" 14656fi 14657 14658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14661 fi 14662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14666 $as_echo_n "(cached) " >&6 14667else 14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14669/* end confdefs.h. */ 14670int i; 14671_ACEOF 14672if ac_fn_c_try_compile "$LINENO"; then : 14673 xorg_cv_cc_flag_unused_command_line_argument=yes 14674else 14675 xorg_cv_cc_flag_unused_command_line_argument=no 14676fi 14677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14678fi 14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14682 CFLAGS="$xorg_testset_save_CFLAGS" 14683fi 14684 14685found="no" 14686 14687 if test $found = "no" ; then 14688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14690 fi 14691 14692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14694 fi 14695 14696 CFLAGS="$CFLAGS -Werror=return-type" 14697 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14699$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14700 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14701 if eval \${$cacheid+:} false; then : 14702 $as_echo_n "(cached) " >&6 14703else 14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14705/* end confdefs.h. */ 14706int i; 14707int 14708main () 14709{ 14710 14711 ; 14712 return 0; 14713} 14714_ACEOF 14715if ac_fn_c_try_link "$LINENO"; then : 14716 eval $cacheid=yes 14717else 14718 eval $cacheid=no 14719fi 14720rm -f core conftest.err conftest.$ac_objext \ 14721 conftest$ac_exeext conftest.$ac_ext 14722fi 14723 14724 14725 CFLAGS="$xorg_testset_save_CFLAGS" 14726 14727 eval supported=\$$cacheid 14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14729$as_echo "$supported" >&6; } 14730 if test "$supported" = "yes" ; then 14731 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14732 found="yes" 14733 fi 14734 fi 14735 14736 if test $found = "no" ; then 14737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14739 fi 14740 14741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14743 fi 14744 14745 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14746 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14748$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14749 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14750 if eval \${$cacheid+:} false; then : 14751 $as_echo_n "(cached) " >&6 14752else 14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14754/* end confdefs.h. */ 14755int i; 14756int 14757main () 14758{ 14759 14760 ; 14761 return 0; 14762} 14763_ACEOF 14764if ac_fn_c_try_link "$LINENO"; then : 14765 eval $cacheid=yes 14766else 14767 eval $cacheid=no 14768fi 14769rm -f core conftest.err conftest.$ac_objext \ 14770 conftest$ac_exeext conftest.$ac_ext 14771fi 14772 14773 14774 CFLAGS="$xorg_testset_save_CFLAGS" 14775 14776 eval supported=\$$cacheid 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14778$as_echo "$supported" >&6; } 14779 if test "$supported" = "yes" ; then 14780 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14781 found="yes" 14782 fi 14783 fi 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799xorg_testset_save_CFLAGS="$CFLAGS" 14800 14801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14806 $as_echo_n "(cached) " >&6 14807else 14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14809/* end confdefs.h. */ 14810int i; 14811_ACEOF 14812if ac_fn_c_try_compile "$LINENO"; then : 14813 xorg_cv_cc_flag_unknown_warning_option=yes 14814else 14815 xorg_cv_cc_flag_unknown_warning_option=no 14816fi 14817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14818fi 14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14822 CFLAGS="$xorg_testset_save_CFLAGS" 14823fi 14824 14825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14828 fi 14829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14833 $as_echo_n "(cached) " >&6 14834else 14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14836/* end confdefs.h. */ 14837int i; 14838_ACEOF 14839if ac_fn_c_try_compile "$LINENO"; then : 14840 xorg_cv_cc_flag_unused_command_line_argument=yes 14841else 14842 xorg_cv_cc_flag_unused_command_line_argument=no 14843fi 14844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14845fi 14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14849 CFLAGS="$xorg_testset_save_CFLAGS" 14850fi 14851 14852found="no" 14853 14854 if test $found = "no" ; then 14855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14857 fi 14858 14859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14861 fi 14862 14863 CFLAGS="$CFLAGS -Werror=trigraphs" 14864 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14866$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14867 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14868 if eval \${$cacheid+:} false; then : 14869 $as_echo_n "(cached) " >&6 14870else 14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14872/* end confdefs.h. */ 14873int i; 14874int 14875main () 14876{ 14877 14878 ; 14879 return 0; 14880} 14881_ACEOF 14882if ac_fn_c_try_link "$LINENO"; then : 14883 eval $cacheid=yes 14884else 14885 eval $cacheid=no 14886fi 14887rm -f core conftest.err conftest.$ac_objext \ 14888 conftest$ac_exeext conftest.$ac_ext 14889fi 14890 14891 14892 CFLAGS="$xorg_testset_save_CFLAGS" 14893 14894 eval supported=\$$cacheid 14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14896$as_echo "$supported" >&6; } 14897 if test "$supported" = "yes" ; then 14898 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14899 found="yes" 14900 fi 14901 fi 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917xorg_testset_save_CFLAGS="$CFLAGS" 14918 14919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14924 $as_echo_n "(cached) " >&6 14925else 14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14927/* end confdefs.h. */ 14928int i; 14929_ACEOF 14930if ac_fn_c_try_compile "$LINENO"; then : 14931 xorg_cv_cc_flag_unknown_warning_option=yes 14932else 14933 xorg_cv_cc_flag_unknown_warning_option=no 14934fi 14935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14936fi 14937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14940 CFLAGS="$xorg_testset_save_CFLAGS" 14941fi 14942 14943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14946 fi 14947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14951 $as_echo_n "(cached) " >&6 14952else 14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14954/* end confdefs.h. */ 14955int i; 14956_ACEOF 14957if ac_fn_c_try_compile "$LINENO"; then : 14958 xorg_cv_cc_flag_unused_command_line_argument=yes 14959else 14960 xorg_cv_cc_flag_unused_command_line_argument=no 14961fi 14962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14963fi 14964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14967 CFLAGS="$xorg_testset_save_CFLAGS" 14968fi 14969 14970found="no" 14971 14972 if test $found = "no" ; then 14973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14975 fi 14976 14977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14979 fi 14980 14981 CFLAGS="$CFLAGS -Werror=array-bounds" 14982 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14984$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14985 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14986 if eval \${$cacheid+:} false; then : 14987 $as_echo_n "(cached) " >&6 14988else 14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14990/* end confdefs.h. */ 14991int i; 14992int 14993main () 14994{ 14995 14996 ; 14997 return 0; 14998} 14999_ACEOF 15000if ac_fn_c_try_link "$LINENO"; then : 15001 eval $cacheid=yes 15002else 15003 eval $cacheid=no 15004fi 15005rm -f core conftest.err conftest.$ac_objext \ 15006 conftest$ac_exeext conftest.$ac_ext 15007fi 15008 15009 15010 CFLAGS="$xorg_testset_save_CFLAGS" 15011 15012 eval supported=\$$cacheid 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15014$as_echo "$supported" >&6; } 15015 if test "$supported" = "yes" ; then 15016 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15017 found="yes" 15018 fi 15019 fi 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035xorg_testset_save_CFLAGS="$CFLAGS" 15036 15037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15042 $as_echo_n "(cached) " >&6 15043else 15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15045/* end confdefs.h. */ 15046int i; 15047_ACEOF 15048if ac_fn_c_try_compile "$LINENO"; then : 15049 xorg_cv_cc_flag_unknown_warning_option=yes 15050else 15051 xorg_cv_cc_flag_unknown_warning_option=no 15052fi 15053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15054fi 15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15058 CFLAGS="$xorg_testset_save_CFLAGS" 15059fi 15060 15061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15064 fi 15065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15069 $as_echo_n "(cached) " >&6 15070else 15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15072/* end confdefs.h. */ 15073int i; 15074_ACEOF 15075if ac_fn_c_try_compile "$LINENO"; then : 15076 xorg_cv_cc_flag_unused_command_line_argument=yes 15077else 15078 xorg_cv_cc_flag_unused_command_line_argument=no 15079fi 15080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15081fi 15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15085 CFLAGS="$xorg_testset_save_CFLAGS" 15086fi 15087 15088found="no" 15089 15090 if test $found = "no" ; then 15091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15093 fi 15094 15095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15097 fi 15098 15099 CFLAGS="$CFLAGS -Werror=write-strings" 15100 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15102$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15103 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15104 if eval \${$cacheid+:} false; then : 15105 $as_echo_n "(cached) " >&6 15106else 15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109int i; 15110int 15111main () 15112{ 15113 15114 ; 15115 return 0; 15116} 15117_ACEOF 15118if ac_fn_c_try_link "$LINENO"; then : 15119 eval $cacheid=yes 15120else 15121 eval $cacheid=no 15122fi 15123rm -f core conftest.err conftest.$ac_objext \ 15124 conftest$ac_exeext conftest.$ac_ext 15125fi 15126 15127 15128 CFLAGS="$xorg_testset_save_CFLAGS" 15129 15130 eval supported=\$$cacheid 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15132$as_echo "$supported" >&6; } 15133 if test "$supported" = "yes" ; then 15134 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15135 found="yes" 15136 fi 15137 fi 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153xorg_testset_save_CFLAGS="$CFLAGS" 15154 15155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15160 $as_echo_n "(cached) " >&6 15161else 15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15163/* end confdefs.h. */ 15164int i; 15165_ACEOF 15166if ac_fn_c_try_compile "$LINENO"; then : 15167 xorg_cv_cc_flag_unknown_warning_option=yes 15168else 15169 xorg_cv_cc_flag_unknown_warning_option=no 15170fi 15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15172fi 15173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15176 CFLAGS="$xorg_testset_save_CFLAGS" 15177fi 15178 15179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15182 fi 15183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15187 $as_echo_n "(cached) " >&6 15188else 15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15190/* end confdefs.h. */ 15191int i; 15192_ACEOF 15193if ac_fn_c_try_compile "$LINENO"; then : 15194 xorg_cv_cc_flag_unused_command_line_argument=yes 15195else 15196 xorg_cv_cc_flag_unused_command_line_argument=no 15197fi 15198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15199fi 15200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15203 CFLAGS="$xorg_testset_save_CFLAGS" 15204fi 15205 15206found="no" 15207 15208 if test $found = "no" ; then 15209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15211 fi 15212 15213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15215 fi 15216 15217 CFLAGS="$CFLAGS -Werror=address" 15218 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15220$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15221 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15222 if eval \${$cacheid+:} false; then : 15223 $as_echo_n "(cached) " >&6 15224else 15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15226/* end confdefs.h. */ 15227int i; 15228int 15229main () 15230{ 15231 15232 ; 15233 return 0; 15234} 15235_ACEOF 15236if ac_fn_c_try_link "$LINENO"; then : 15237 eval $cacheid=yes 15238else 15239 eval $cacheid=no 15240fi 15241rm -f core conftest.err conftest.$ac_objext \ 15242 conftest$ac_exeext conftest.$ac_ext 15243fi 15244 15245 15246 CFLAGS="$xorg_testset_save_CFLAGS" 15247 15248 eval supported=\$$cacheid 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15250$as_echo "$supported" >&6; } 15251 if test "$supported" = "yes" ; then 15252 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15253 found="yes" 15254 fi 15255 fi 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271xorg_testset_save_CFLAGS="$CFLAGS" 15272 15273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15278 $as_echo_n "(cached) " >&6 15279else 15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15281/* end confdefs.h. */ 15282int i; 15283_ACEOF 15284if ac_fn_c_try_compile "$LINENO"; then : 15285 xorg_cv_cc_flag_unknown_warning_option=yes 15286else 15287 xorg_cv_cc_flag_unknown_warning_option=no 15288fi 15289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15290fi 15291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15294 CFLAGS="$xorg_testset_save_CFLAGS" 15295fi 15296 15297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15300 fi 15301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15305 $as_echo_n "(cached) " >&6 15306else 15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15308/* end confdefs.h. */ 15309int i; 15310_ACEOF 15311if ac_fn_c_try_compile "$LINENO"; then : 15312 xorg_cv_cc_flag_unused_command_line_argument=yes 15313else 15314 xorg_cv_cc_flag_unused_command_line_argument=no 15315fi 15316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15317fi 15318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15321 CFLAGS="$xorg_testset_save_CFLAGS" 15322fi 15323 15324found="no" 15325 15326 if test $found = "no" ; then 15327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15329 fi 15330 15331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15333 fi 15334 15335 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15336 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15338$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15339 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15340 if eval \${$cacheid+:} false; then : 15341 $as_echo_n "(cached) " >&6 15342else 15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15344/* end confdefs.h. */ 15345int i; 15346int 15347main () 15348{ 15349 15350 ; 15351 return 0; 15352} 15353_ACEOF 15354if ac_fn_c_try_link "$LINENO"; then : 15355 eval $cacheid=yes 15356else 15357 eval $cacheid=no 15358fi 15359rm -f core conftest.err conftest.$ac_objext \ 15360 conftest$ac_exeext conftest.$ac_ext 15361fi 15362 15363 15364 CFLAGS="$xorg_testset_save_CFLAGS" 15365 15366 eval supported=\$$cacheid 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15368$as_echo "$supported" >&6; } 15369 if test "$supported" = "yes" ; then 15370 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15371 found="yes" 15372 fi 15373 fi 15374 15375 if test $found = "no" ; then 15376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15378 fi 15379 15380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15382 fi 15383 15384 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15385 15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15387$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15388 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15389 if eval \${$cacheid+:} false; then : 15390 $as_echo_n "(cached) " >&6 15391else 15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15393/* end confdefs.h. */ 15394int i; 15395int 15396main () 15397{ 15398 15399 ; 15400 return 0; 15401} 15402_ACEOF 15403if ac_fn_c_try_link "$LINENO"; then : 15404 eval $cacheid=yes 15405else 15406 eval $cacheid=no 15407fi 15408rm -f core conftest.err conftest.$ac_objext \ 15409 conftest$ac_exeext conftest.$ac_ext 15410fi 15411 15412 15413 CFLAGS="$xorg_testset_save_CFLAGS" 15414 15415 eval supported=\$$cacheid 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15417$as_echo "$supported" >&6; } 15418 if test "$supported" = "yes" ; then 15419 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15420 found="yes" 15421 fi 15422 fi 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438xorg_testset_save_CFLAGS="$CFLAGS" 15439 15440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15445 $as_echo_n "(cached) " >&6 15446else 15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15448/* end confdefs.h. */ 15449int i; 15450_ACEOF 15451if ac_fn_c_try_compile "$LINENO"; then : 15452 xorg_cv_cc_flag_unknown_warning_option=yes 15453else 15454 xorg_cv_cc_flag_unknown_warning_option=no 15455fi 15456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15457fi 15458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15461 CFLAGS="$xorg_testset_save_CFLAGS" 15462fi 15463 15464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15467 fi 15468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15472 $as_echo_n "(cached) " >&6 15473else 15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15475/* end confdefs.h. */ 15476int i; 15477_ACEOF 15478if ac_fn_c_try_compile "$LINENO"; then : 15479 xorg_cv_cc_flag_unused_command_line_argument=yes 15480else 15481 xorg_cv_cc_flag_unused_command_line_argument=no 15482fi 15483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15484fi 15485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15488 CFLAGS="$xorg_testset_save_CFLAGS" 15489fi 15490 15491found="no" 15492 15493 if test $found = "no" ; then 15494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15496 fi 15497 15498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15500 fi 15501 15502 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15503 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15505$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15506 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15507 if eval \${$cacheid+:} false; then : 15508 $as_echo_n "(cached) " >&6 15509else 15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15511/* end confdefs.h. */ 15512int i; 15513int 15514main () 15515{ 15516 15517 ; 15518 return 0; 15519} 15520_ACEOF 15521if ac_fn_c_try_link "$LINENO"; then : 15522 eval $cacheid=yes 15523else 15524 eval $cacheid=no 15525fi 15526rm -f core conftest.err conftest.$ac_objext \ 15527 conftest$ac_exeext conftest.$ac_ext 15528fi 15529 15530 15531 CFLAGS="$xorg_testset_save_CFLAGS" 15532 15533 eval supported=\$$cacheid 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15535$as_echo "$supported" >&6; } 15536 if test "$supported" = "yes" ; then 15537 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15538 found="yes" 15539 fi 15540 fi 15541 15542 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15543else 15544{ $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 15545$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;} 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559xorg_testset_save_CFLAGS="$CFLAGS" 15560 15561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15566 $as_echo_n "(cached) " >&6 15567else 15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15569/* end confdefs.h. */ 15570int i; 15571_ACEOF 15572if ac_fn_c_try_compile "$LINENO"; then : 15573 xorg_cv_cc_flag_unknown_warning_option=yes 15574else 15575 xorg_cv_cc_flag_unknown_warning_option=no 15576fi 15577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15578fi 15579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15582 CFLAGS="$xorg_testset_save_CFLAGS" 15583fi 15584 15585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15588 fi 15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15593 $as_echo_n "(cached) " >&6 15594else 15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15596/* end confdefs.h. */ 15597int i; 15598_ACEOF 15599if ac_fn_c_try_compile "$LINENO"; then : 15600 xorg_cv_cc_flag_unused_command_line_argument=yes 15601else 15602 xorg_cv_cc_flag_unused_command_line_argument=no 15603fi 15604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15605fi 15606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15609 CFLAGS="$xorg_testset_save_CFLAGS" 15610fi 15611 15612found="no" 15613 15614 if test $found = "no" ; then 15615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15617 fi 15618 15619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15621 fi 15622 15623 CFLAGS="$CFLAGS -Wimplicit" 15624 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15626$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15627 cacheid=xorg_cv_cc_flag__Wimplicit 15628 if eval \${$cacheid+:} false; then : 15629 $as_echo_n "(cached) " >&6 15630else 15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15632/* end confdefs.h. */ 15633int i; 15634int 15635main () 15636{ 15637 15638 ; 15639 return 0; 15640} 15641_ACEOF 15642if ac_fn_c_try_link "$LINENO"; then : 15643 eval $cacheid=yes 15644else 15645 eval $cacheid=no 15646fi 15647rm -f core conftest.err conftest.$ac_objext \ 15648 conftest$ac_exeext conftest.$ac_ext 15649fi 15650 15651 15652 CFLAGS="$xorg_testset_save_CFLAGS" 15653 15654 eval supported=\$$cacheid 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15656$as_echo "$supported" >&6; } 15657 if test "$supported" = "yes" ; then 15658 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15659 found="yes" 15660 fi 15661 fi 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677xorg_testset_save_CFLAGS="$CFLAGS" 15678 15679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15684 $as_echo_n "(cached) " >&6 15685else 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688int i; 15689_ACEOF 15690if ac_fn_c_try_compile "$LINENO"; then : 15691 xorg_cv_cc_flag_unknown_warning_option=yes 15692else 15693 xorg_cv_cc_flag_unknown_warning_option=no 15694fi 15695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15696fi 15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15700 CFLAGS="$xorg_testset_save_CFLAGS" 15701fi 15702 15703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15706 fi 15707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15711 $as_echo_n "(cached) " >&6 15712else 15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15714/* end confdefs.h. */ 15715int i; 15716_ACEOF 15717if ac_fn_c_try_compile "$LINENO"; then : 15718 xorg_cv_cc_flag_unused_command_line_argument=yes 15719else 15720 xorg_cv_cc_flag_unused_command_line_argument=no 15721fi 15722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15723fi 15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15727 CFLAGS="$xorg_testset_save_CFLAGS" 15728fi 15729 15730found="no" 15731 15732 if test $found = "no" ; then 15733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15735 fi 15736 15737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15739 fi 15740 15741 CFLAGS="$CFLAGS -Wnonnull" 15742 15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15744$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15745 cacheid=xorg_cv_cc_flag__Wnonnull 15746 if eval \${$cacheid+:} false; then : 15747 $as_echo_n "(cached) " >&6 15748else 15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750/* end confdefs.h. */ 15751int i; 15752int 15753main () 15754{ 15755 15756 ; 15757 return 0; 15758} 15759_ACEOF 15760if ac_fn_c_try_link "$LINENO"; then : 15761 eval $cacheid=yes 15762else 15763 eval $cacheid=no 15764fi 15765rm -f core conftest.err conftest.$ac_objext \ 15766 conftest$ac_exeext conftest.$ac_ext 15767fi 15768 15769 15770 CFLAGS="$xorg_testset_save_CFLAGS" 15771 15772 eval supported=\$$cacheid 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15774$as_echo "$supported" >&6; } 15775 if test "$supported" = "yes" ; then 15776 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15777 found="yes" 15778 fi 15779 fi 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795xorg_testset_save_CFLAGS="$CFLAGS" 15796 15797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15805/* end confdefs.h. */ 15806int i; 15807_ACEOF 15808if ac_fn_c_try_compile "$LINENO"; then : 15809 xorg_cv_cc_flag_unknown_warning_option=yes 15810else 15811 xorg_cv_cc_flag_unknown_warning_option=no 15812fi 15813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15814fi 15815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15818 CFLAGS="$xorg_testset_save_CFLAGS" 15819fi 15820 15821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15824 fi 15825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15829 $as_echo_n "(cached) " >&6 15830else 15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15832/* end confdefs.h. */ 15833int i; 15834_ACEOF 15835if ac_fn_c_try_compile "$LINENO"; then : 15836 xorg_cv_cc_flag_unused_command_line_argument=yes 15837else 15838 xorg_cv_cc_flag_unused_command_line_argument=no 15839fi 15840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15841fi 15842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15845 CFLAGS="$xorg_testset_save_CFLAGS" 15846fi 15847 15848found="no" 15849 15850 if test $found = "no" ; then 15851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15853 fi 15854 15855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15857 fi 15858 15859 CFLAGS="$CFLAGS -Winit-self" 15860 15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15862$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15863 cacheid=xorg_cv_cc_flag__Winit_self 15864 if eval \${$cacheid+:} false; then : 15865 $as_echo_n "(cached) " >&6 15866else 15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15868/* end confdefs.h. */ 15869int i; 15870int 15871main () 15872{ 15873 15874 ; 15875 return 0; 15876} 15877_ACEOF 15878if ac_fn_c_try_link "$LINENO"; then : 15879 eval $cacheid=yes 15880else 15881 eval $cacheid=no 15882fi 15883rm -f core conftest.err conftest.$ac_objext \ 15884 conftest$ac_exeext conftest.$ac_ext 15885fi 15886 15887 15888 CFLAGS="$xorg_testset_save_CFLAGS" 15889 15890 eval supported=\$$cacheid 15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15892$as_echo "$supported" >&6; } 15893 if test "$supported" = "yes" ; then 15894 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15895 found="yes" 15896 fi 15897 fi 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913xorg_testset_save_CFLAGS="$CFLAGS" 15914 15915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15920 $as_echo_n "(cached) " >&6 15921else 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923/* end confdefs.h. */ 15924int i; 15925_ACEOF 15926if ac_fn_c_try_compile "$LINENO"; then : 15927 xorg_cv_cc_flag_unknown_warning_option=yes 15928else 15929 xorg_cv_cc_flag_unknown_warning_option=no 15930fi 15931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15932fi 15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15936 CFLAGS="$xorg_testset_save_CFLAGS" 15937fi 15938 15939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15942 fi 15943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15947 $as_echo_n "(cached) " >&6 15948else 15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15950/* end confdefs.h. */ 15951int i; 15952_ACEOF 15953if ac_fn_c_try_compile "$LINENO"; then : 15954 xorg_cv_cc_flag_unused_command_line_argument=yes 15955else 15956 xorg_cv_cc_flag_unused_command_line_argument=no 15957fi 15958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15959fi 15960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15963 CFLAGS="$xorg_testset_save_CFLAGS" 15964fi 15965 15966found="no" 15967 15968 if test $found = "no" ; then 15969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15971 fi 15972 15973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15975 fi 15976 15977 CFLAGS="$CFLAGS -Wmain" 15978 15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15980$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15981 cacheid=xorg_cv_cc_flag__Wmain 15982 if eval \${$cacheid+:} false; then : 15983 $as_echo_n "(cached) " >&6 15984else 15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15986/* end confdefs.h. */ 15987int i; 15988int 15989main () 15990{ 15991 15992 ; 15993 return 0; 15994} 15995_ACEOF 15996if ac_fn_c_try_link "$LINENO"; then : 15997 eval $cacheid=yes 15998else 15999 eval $cacheid=no 16000fi 16001rm -f core conftest.err conftest.$ac_objext \ 16002 conftest$ac_exeext conftest.$ac_ext 16003fi 16004 16005 16006 CFLAGS="$xorg_testset_save_CFLAGS" 16007 16008 eval supported=\$$cacheid 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16010$as_echo "$supported" >&6; } 16011 if test "$supported" = "yes" ; then 16012 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16013 found="yes" 16014 fi 16015 fi 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031xorg_testset_save_CFLAGS="$CFLAGS" 16032 16033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16038 $as_echo_n "(cached) " >&6 16039else 16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16041/* end confdefs.h. */ 16042int i; 16043_ACEOF 16044if ac_fn_c_try_compile "$LINENO"; then : 16045 xorg_cv_cc_flag_unknown_warning_option=yes 16046else 16047 xorg_cv_cc_flag_unknown_warning_option=no 16048fi 16049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16050fi 16051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16054 CFLAGS="$xorg_testset_save_CFLAGS" 16055fi 16056 16057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16060 fi 16061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16065 $as_echo_n "(cached) " >&6 16066else 16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16068/* end confdefs.h. */ 16069int i; 16070_ACEOF 16071if ac_fn_c_try_compile "$LINENO"; then : 16072 xorg_cv_cc_flag_unused_command_line_argument=yes 16073else 16074 xorg_cv_cc_flag_unused_command_line_argument=no 16075fi 16076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16077fi 16078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16081 CFLAGS="$xorg_testset_save_CFLAGS" 16082fi 16083 16084found="no" 16085 16086 if test $found = "no" ; then 16087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16089 fi 16090 16091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16093 fi 16094 16095 CFLAGS="$CFLAGS -Wmissing-braces" 16096 16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16098$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16099 cacheid=xorg_cv_cc_flag__Wmissing_braces 16100 if eval \${$cacheid+:} false; then : 16101 $as_echo_n "(cached) " >&6 16102else 16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16104/* end confdefs.h. */ 16105int i; 16106int 16107main () 16108{ 16109 16110 ; 16111 return 0; 16112} 16113_ACEOF 16114if ac_fn_c_try_link "$LINENO"; then : 16115 eval $cacheid=yes 16116else 16117 eval $cacheid=no 16118fi 16119rm -f core conftest.err conftest.$ac_objext \ 16120 conftest$ac_exeext conftest.$ac_ext 16121fi 16122 16123 16124 CFLAGS="$xorg_testset_save_CFLAGS" 16125 16126 eval supported=\$$cacheid 16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16128$as_echo "$supported" >&6; } 16129 if test "$supported" = "yes" ; then 16130 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16131 found="yes" 16132 fi 16133 fi 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149xorg_testset_save_CFLAGS="$CFLAGS" 16150 16151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16156 $as_echo_n "(cached) " >&6 16157else 16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16159/* end confdefs.h. */ 16160int i; 16161_ACEOF 16162if ac_fn_c_try_compile "$LINENO"; then : 16163 xorg_cv_cc_flag_unknown_warning_option=yes 16164else 16165 xorg_cv_cc_flag_unknown_warning_option=no 16166fi 16167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16168fi 16169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16172 CFLAGS="$xorg_testset_save_CFLAGS" 16173fi 16174 16175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16178 fi 16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16183 $as_echo_n "(cached) " >&6 16184else 16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16186/* end confdefs.h. */ 16187int i; 16188_ACEOF 16189if ac_fn_c_try_compile "$LINENO"; then : 16190 xorg_cv_cc_flag_unused_command_line_argument=yes 16191else 16192 xorg_cv_cc_flag_unused_command_line_argument=no 16193fi 16194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16195fi 16196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16199 CFLAGS="$xorg_testset_save_CFLAGS" 16200fi 16201 16202found="no" 16203 16204 if test $found = "no" ; then 16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16207 fi 16208 16209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16211 fi 16212 16213 CFLAGS="$CFLAGS -Wsequence-point" 16214 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16216$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16217 cacheid=xorg_cv_cc_flag__Wsequence_point 16218 if eval \${$cacheid+:} false; then : 16219 $as_echo_n "(cached) " >&6 16220else 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223int i; 16224int 16225main () 16226{ 16227 16228 ; 16229 return 0; 16230} 16231_ACEOF 16232if ac_fn_c_try_link "$LINENO"; then : 16233 eval $cacheid=yes 16234else 16235 eval $cacheid=no 16236fi 16237rm -f core conftest.err conftest.$ac_objext \ 16238 conftest$ac_exeext conftest.$ac_ext 16239fi 16240 16241 16242 CFLAGS="$xorg_testset_save_CFLAGS" 16243 16244 eval supported=\$$cacheid 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16246$as_echo "$supported" >&6; } 16247 if test "$supported" = "yes" ; then 16248 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16249 found="yes" 16250 fi 16251 fi 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267xorg_testset_save_CFLAGS="$CFLAGS" 16268 16269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16274 $as_echo_n "(cached) " >&6 16275else 16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16277/* end confdefs.h. */ 16278int i; 16279_ACEOF 16280if ac_fn_c_try_compile "$LINENO"; then : 16281 xorg_cv_cc_flag_unknown_warning_option=yes 16282else 16283 xorg_cv_cc_flag_unknown_warning_option=no 16284fi 16285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16286fi 16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16290 CFLAGS="$xorg_testset_save_CFLAGS" 16291fi 16292 16293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16296 fi 16297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16301 $as_echo_n "(cached) " >&6 16302else 16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304/* end confdefs.h. */ 16305int i; 16306_ACEOF 16307if ac_fn_c_try_compile "$LINENO"; then : 16308 xorg_cv_cc_flag_unused_command_line_argument=yes 16309else 16310 xorg_cv_cc_flag_unused_command_line_argument=no 16311fi 16312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16313fi 16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16317 CFLAGS="$xorg_testset_save_CFLAGS" 16318fi 16319 16320found="no" 16321 16322 if test $found = "no" ; then 16323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16325 fi 16326 16327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16329 fi 16330 16331 CFLAGS="$CFLAGS -Wreturn-type" 16332 16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16334$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16335 cacheid=xorg_cv_cc_flag__Wreturn_type 16336 if eval \${$cacheid+:} false; then : 16337 $as_echo_n "(cached) " >&6 16338else 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341int i; 16342int 16343main () 16344{ 16345 16346 ; 16347 return 0; 16348} 16349_ACEOF 16350if ac_fn_c_try_link "$LINENO"; then : 16351 eval $cacheid=yes 16352else 16353 eval $cacheid=no 16354fi 16355rm -f core conftest.err conftest.$ac_objext \ 16356 conftest$ac_exeext conftest.$ac_ext 16357fi 16358 16359 16360 CFLAGS="$xorg_testset_save_CFLAGS" 16361 16362 eval supported=\$$cacheid 16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16364$as_echo "$supported" >&6; } 16365 if test "$supported" = "yes" ; then 16366 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16367 found="yes" 16368 fi 16369 fi 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385xorg_testset_save_CFLAGS="$CFLAGS" 16386 16387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16392 $as_echo_n "(cached) " >&6 16393else 16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16395/* end confdefs.h. */ 16396int i; 16397_ACEOF 16398if ac_fn_c_try_compile "$LINENO"; then : 16399 xorg_cv_cc_flag_unknown_warning_option=yes 16400else 16401 xorg_cv_cc_flag_unknown_warning_option=no 16402fi 16403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16404fi 16405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16408 CFLAGS="$xorg_testset_save_CFLAGS" 16409fi 16410 16411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16414 fi 16415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16419 $as_echo_n "(cached) " >&6 16420else 16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422/* end confdefs.h. */ 16423int i; 16424_ACEOF 16425if ac_fn_c_try_compile "$LINENO"; then : 16426 xorg_cv_cc_flag_unused_command_line_argument=yes 16427else 16428 xorg_cv_cc_flag_unused_command_line_argument=no 16429fi 16430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16431fi 16432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16435 CFLAGS="$xorg_testset_save_CFLAGS" 16436fi 16437 16438found="no" 16439 16440 if test $found = "no" ; then 16441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16443 fi 16444 16445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16447 fi 16448 16449 CFLAGS="$CFLAGS -Wtrigraphs" 16450 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16452$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16453 cacheid=xorg_cv_cc_flag__Wtrigraphs 16454 if eval \${$cacheid+:} false; then : 16455 $as_echo_n "(cached) " >&6 16456else 16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16458/* end confdefs.h. */ 16459int i; 16460int 16461main () 16462{ 16463 16464 ; 16465 return 0; 16466} 16467_ACEOF 16468if ac_fn_c_try_link "$LINENO"; then : 16469 eval $cacheid=yes 16470else 16471 eval $cacheid=no 16472fi 16473rm -f core conftest.err conftest.$ac_objext \ 16474 conftest$ac_exeext conftest.$ac_ext 16475fi 16476 16477 16478 CFLAGS="$xorg_testset_save_CFLAGS" 16479 16480 eval supported=\$$cacheid 16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16482$as_echo "$supported" >&6; } 16483 if test "$supported" = "yes" ; then 16484 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16485 found="yes" 16486 fi 16487 fi 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503xorg_testset_save_CFLAGS="$CFLAGS" 16504 16505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16510 $as_echo_n "(cached) " >&6 16511else 16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16513/* end confdefs.h. */ 16514int i; 16515_ACEOF 16516if ac_fn_c_try_compile "$LINENO"; then : 16517 xorg_cv_cc_flag_unknown_warning_option=yes 16518else 16519 xorg_cv_cc_flag_unknown_warning_option=no 16520fi 16521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16522fi 16523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16526 CFLAGS="$xorg_testset_save_CFLAGS" 16527fi 16528 16529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16532 fi 16533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16537 $as_echo_n "(cached) " >&6 16538else 16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16540/* end confdefs.h. */ 16541int i; 16542_ACEOF 16543if ac_fn_c_try_compile "$LINENO"; then : 16544 xorg_cv_cc_flag_unused_command_line_argument=yes 16545else 16546 xorg_cv_cc_flag_unused_command_line_argument=no 16547fi 16548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16549fi 16550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16553 CFLAGS="$xorg_testset_save_CFLAGS" 16554fi 16555 16556found="no" 16557 16558 if test $found = "no" ; then 16559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16561 fi 16562 16563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16565 fi 16566 16567 CFLAGS="$CFLAGS -Warray-bounds" 16568 16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16570$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16571 cacheid=xorg_cv_cc_flag__Warray_bounds 16572 if eval \${$cacheid+:} false; then : 16573 $as_echo_n "(cached) " >&6 16574else 16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16576/* end confdefs.h. */ 16577int i; 16578int 16579main () 16580{ 16581 16582 ; 16583 return 0; 16584} 16585_ACEOF 16586if ac_fn_c_try_link "$LINENO"; then : 16587 eval $cacheid=yes 16588else 16589 eval $cacheid=no 16590fi 16591rm -f core conftest.err conftest.$ac_objext \ 16592 conftest$ac_exeext conftest.$ac_ext 16593fi 16594 16595 16596 CFLAGS="$xorg_testset_save_CFLAGS" 16597 16598 eval supported=\$$cacheid 16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16600$as_echo "$supported" >&6; } 16601 if test "$supported" = "yes" ; then 16602 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16603 found="yes" 16604 fi 16605 fi 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621xorg_testset_save_CFLAGS="$CFLAGS" 16622 16623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16628 $as_echo_n "(cached) " >&6 16629else 16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16631/* end confdefs.h. */ 16632int i; 16633_ACEOF 16634if ac_fn_c_try_compile "$LINENO"; then : 16635 xorg_cv_cc_flag_unknown_warning_option=yes 16636else 16637 xorg_cv_cc_flag_unknown_warning_option=no 16638fi 16639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16640fi 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16644 CFLAGS="$xorg_testset_save_CFLAGS" 16645fi 16646 16647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16650 fi 16651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16655 $as_echo_n "(cached) " >&6 16656else 16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16658/* end confdefs.h. */ 16659int i; 16660_ACEOF 16661if ac_fn_c_try_compile "$LINENO"; then : 16662 xorg_cv_cc_flag_unused_command_line_argument=yes 16663else 16664 xorg_cv_cc_flag_unused_command_line_argument=no 16665fi 16666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16667fi 16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16671 CFLAGS="$xorg_testset_save_CFLAGS" 16672fi 16673 16674found="no" 16675 16676 if test $found = "no" ; then 16677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16679 fi 16680 16681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16683 fi 16684 16685 CFLAGS="$CFLAGS -Wwrite-strings" 16686 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16688$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16689 cacheid=xorg_cv_cc_flag__Wwrite_strings 16690 if eval \${$cacheid+:} false; then : 16691 $as_echo_n "(cached) " >&6 16692else 16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16694/* end confdefs.h. */ 16695int i; 16696int 16697main () 16698{ 16699 16700 ; 16701 return 0; 16702} 16703_ACEOF 16704if ac_fn_c_try_link "$LINENO"; then : 16705 eval $cacheid=yes 16706else 16707 eval $cacheid=no 16708fi 16709rm -f core conftest.err conftest.$ac_objext \ 16710 conftest$ac_exeext conftest.$ac_ext 16711fi 16712 16713 16714 CFLAGS="$xorg_testset_save_CFLAGS" 16715 16716 eval supported=\$$cacheid 16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16718$as_echo "$supported" >&6; } 16719 if test "$supported" = "yes" ; then 16720 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16721 found="yes" 16722 fi 16723 fi 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739xorg_testset_save_CFLAGS="$CFLAGS" 16740 16741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16746 $as_echo_n "(cached) " >&6 16747else 16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16749/* end confdefs.h. */ 16750int i; 16751_ACEOF 16752if ac_fn_c_try_compile "$LINENO"; then : 16753 xorg_cv_cc_flag_unknown_warning_option=yes 16754else 16755 xorg_cv_cc_flag_unknown_warning_option=no 16756fi 16757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16758fi 16759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16762 CFLAGS="$xorg_testset_save_CFLAGS" 16763fi 16764 16765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16768 fi 16769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16773 $as_echo_n "(cached) " >&6 16774else 16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16776/* end confdefs.h. */ 16777int i; 16778_ACEOF 16779if ac_fn_c_try_compile "$LINENO"; then : 16780 xorg_cv_cc_flag_unused_command_line_argument=yes 16781else 16782 xorg_cv_cc_flag_unused_command_line_argument=no 16783fi 16784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16785fi 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16789 CFLAGS="$xorg_testset_save_CFLAGS" 16790fi 16791 16792found="no" 16793 16794 if test $found = "no" ; then 16795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16797 fi 16798 16799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16801 fi 16802 16803 CFLAGS="$CFLAGS -Waddress" 16804 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16806$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16807 cacheid=xorg_cv_cc_flag__Waddress 16808 if eval \${$cacheid+:} false; then : 16809 $as_echo_n "(cached) " >&6 16810else 16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16812/* end confdefs.h. */ 16813int i; 16814int 16815main () 16816{ 16817 16818 ; 16819 return 0; 16820} 16821_ACEOF 16822if ac_fn_c_try_link "$LINENO"; then : 16823 eval $cacheid=yes 16824else 16825 eval $cacheid=no 16826fi 16827rm -f core conftest.err conftest.$ac_objext \ 16828 conftest$ac_exeext conftest.$ac_ext 16829fi 16830 16831 16832 CFLAGS="$xorg_testset_save_CFLAGS" 16833 16834 eval supported=\$$cacheid 16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16836$as_echo "$supported" >&6; } 16837 if test "$supported" = "yes" ; then 16838 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16839 found="yes" 16840 fi 16841 fi 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857xorg_testset_save_CFLAGS="$CFLAGS" 16858 16859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16864 $as_echo_n "(cached) " >&6 16865else 16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16867/* end confdefs.h. */ 16868int i; 16869_ACEOF 16870if ac_fn_c_try_compile "$LINENO"; then : 16871 xorg_cv_cc_flag_unknown_warning_option=yes 16872else 16873 xorg_cv_cc_flag_unknown_warning_option=no 16874fi 16875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16876fi 16877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16880 CFLAGS="$xorg_testset_save_CFLAGS" 16881fi 16882 16883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16886 fi 16887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16891 $as_echo_n "(cached) " >&6 16892else 16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16894/* end confdefs.h. */ 16895int i; 16896_ACEOF 16897if ac_fn_c_try_compile "$LINENO"; then : 16898 xorg_cv_cc_flag_unused_command_line_argument=yes 16899else 16900 xorg_cv_cc_flag_unused_command_line_argument=no 16901fi 16902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16903fi 16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16907 CFLAGS="$xorg_testset_save_CFLAGS" 16908fi 16909 16910found="no" 16911 16912 if test $found = "no" ; then 16913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16915 fi 16916 16917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16919 fi 16920 16921 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16922 16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16924$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16925 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16926 if eval \${$cacheid+:} false; then : 16927 $as_echo_n "(cached) " >&6 16928else 16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16930/* end confdefs.h. */ 16931int i; 16932int 16933main () 16934{ 16935 16936 ; 16937 return 0; 16938} 16939_ACEOF 16940if ac_fn_c_try_link "$LINENO"; then : 16941 eval $cacheid=yes 16942else 16943 eval $cacheid=no 16944fi 16945rm -f core conftest.err conftest.$ac_objext \ 16946 conftest$ac_exeext conftest.$ac_ext 16947fi 16948 16949 16950 CFLAGS="$xorg_testset_save_CFLAGS" 16951 16952 eval supported=\$$cacheid 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16954$as_echo "$supported" >&6; } 16955 if test "$supported" = "yes" ; then 16956 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16957 found="yes" 16958 fi 16959 fi 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975xorg_testset_save_CFLAGS="$CFLAGS" 16976 16977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16982 $as_echo_n "(cached) " >&6 16983else 16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16985/* end confdefs.h. */ 16986int i; 16987_ACEOF 16988if ac_fn_c_try_compile "$LINENO"; then : 16989 xorg_cv_cc_flag_unknown_warning_option=yes 16990else 16991 xorg_cv_cc_flag_unknown_warning_option=no 16992fi 16993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16994fi 16995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16998 CFLAGS="$xorg_testset_save_CFLAGS" 16999fi 17000 17001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17004 fi 17005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17009 $as_echo_n "(cached) " >&6 17010else 17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17012/* end confdefs.h. */ 17013int i; 17014_ACEOF 17015if ac_fn_c_try_compile "$LINENO"; then : 17016 xorg_cv_cc_flag_unused_command_line_argument=yes 17017else 17018 xorg_cv_cc_flag_unused_command_line_argument=no 17019fi 17020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17021fi 17022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17025 CFLAGS="$xorg_testset_save_CFLAGS" 17026fi 17027 17028found="no" 17029 17030 if test $found = "no" ; then 17031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17033 fi 17034 17035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17037 fi 17038 17039 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17040 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17042$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17043 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17044 if eval \${$cacheid+:} false; then : 17045 $as_echo_n "(cached) " >&6 17046else 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049int i; 17050int 17051main () 17052{ 17053 17054 ; 17055 return 0; 17056} 17057_ACEOF 17058if ac_fn_c_try_link "$LINENO"; then : 17059 eval $cacheid=yes 17060else 17061 eval $cacheid=no 17062fi 17063rm -f core conftest.err conftest.$ac_objext \ 17064 conftest$ac_exeext conftest.$ac_ext 17065fi 17066 17067 17068 CFLAGS="$xorg_testset_save_CFLAGS" 17069 17070 eval supported=\$$cacheid 17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17072$as_echo "$supported" >&6; } 17073 if test "$supported" = "yes" ; then 17074 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17075 found="yes" 17076 fi 17077 fi 17078 17079 17080fi 17081 17082 17083 17084 17085 17086 17087 17088 CWARNFLAGS="$BASE_CFLAGS" 17089 if test "x$GCC" = xyes ; then 17090 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17091 fi 17092 17093 17094 17095 17096 17097 17098 17099 17100# Check whether --enable-strict-compilation was given. 17101if test "${enable_strict_compilation+set}" = set; then : 17102 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17103else 17104 STRICT_COMPILE=no 17105fi 17106 17107 17108 17109 17110 17111 17112STRICT_CFLAGS="" 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126xorg_testset_save_CFLAGS="$CFLAGS" 17127 17128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17133 $as_echo_n "(cached) " >&6 17134else 17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17136/* end confdefs.h. */ 17137int i; 17138_ACEOF 17139if ac_fn_c_try_compile "$LINENO"; then : 17140 xorg_cv_cc_flag_unknown_warning_option=yes 17141else 17142 xorg_cv_cc_flag_unknown_warning_option=no 17143fi 17144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17145fi 17146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17149 CFLAGS="$xorg_testset_save_CFLAGS" 17150fi 17151 17152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17155 fi 17156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17160 $as_echo_n "(cached) " >&6 17161else 17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17163/* end confdefs.h. */ 17164int i; 17165_ACEOF 17166if ac_fn_c_try_compile "$LINENO"; then : 17167 xorg_cv_cc_flag_unused_command_line_argument=yes 17168else 17169 xorg_cv_cc_flag_unused_command_line_argument=no 17170fi 17171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17172fi 17173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17176 CFLAGS="$xorg_testset_save_CFLAGS" 17177fi 17178 17179found="no" 17180 17181 if test $found = "no" ; then 17182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17184 fi 17185 17186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17188 fi 17189 17190 CFLAGS="$CFLAGS -pedantic" 17191 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17193$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17194 cacheid=xorg_cv_cc_flag__pedantic 17195 if eval \${$cacheid+:} false; then : 17196 $as_echo_n "(cached) " >&6 17197else 17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17199/* end confdefs.h. */ 17200int i; 17201int 17202main () 17203{ 17204 17205 ; 17206 return 0; 17207} 17208_ACEOF 17209if ac_fn_c_try_link "$LINENO"; then : 17210 eval $cacheid=yes 17211else 17212 eval $cacheid=no 17213fi 17214rm -f core conftest.err conftest.$ac_objext \ 17215 conftest$ac_exeext conftest.$ac_ext 17216fi 17217 17218 17219 CFLAGS="$xorg_testset_save_CFLAGS" 17220 17221 eval supported=\$$cacheid 17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17223$as_echo "$supported" >&6; } 17224 if test "$supported" = "yes" ; then 17225 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17226 found="yes" 17227 fi 17228 fi 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244xorg_testset_save_CFLAGS="$CFLAGS" 17245 17246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17251 $as_echo_n "(cached) " >&6 17252else 17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17254/* end confdefs.h. */ 17255int i; 17256_ACEOF 17257if ac_fn_c_try_compile "$LINENO"; then : 17258 xorg_cv_cc_flag_unknown_warning_option=yes 17259else 17260 xorg_cv_cc_flag_unknown_warning_option=no 17261fi 17262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17263fi 17264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17267 CFLAGS="$xorg_testset_save_CFLAGS" 17268fi 17269 17270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17273 fi 17274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17278 $as_echo_n "(cached) " >&6 17279else 17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17281/* end confdefs.h. */ 17282int i; 17283_ACEOF 17284if ac_fn_c_try_compile "$LINENO"; then : 17285 xorg_cv_cc_flag_unused_command_line_argument=yes 17286else 17287 xorg_cv_cc_flag_unused_command_line_argument=no 17288fi 17289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17290fi 17291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17294 CFLAGS="$xorg_testset_save_CFLAGS" 17295fi 17296 17297found="no" 17298 17299 if test $found = "no" ; then 17300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17302 fi 17303 17304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17306 fi 17307 17308 CFLAGS="$CFLAGS -Werror" 17309 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17311$as_echo_n "checking if $CC supports -Werror... " >&6; } 17312 cacheid=xorg_cv_cc_flag__Werror 17313 if eval \${$cacheid+:} false; then : 17314 $as_echo_n "(cached) " >&6 17315else 17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17317/* end confdefs.h. */ 17318int i; 17319int 17320main () 17321{ 17322 17323 ; 17324 return 0; 17325} 17326_ACEOF 17327if ac_fn_c_try_link "$LINENO"; then : 17328 eval $cacheid=yes 17329else 17330 eval $cacheid=no 17331fi 17332rm -f core conftest.err conftest.$ac_objext \ 17333 conftest$ac_exeext conftest.$ac_ext 17334fi 17335 17336 17337 CFLAGS="$xorg_testset_save_CFLAGS" 17338 17339 eval supported=\$$cacheid 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17341$as_echo "$supported" >&6; } 17342 if test "$supported" = "yes" ; then 17343 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17344 found="yes" 17345 fi 17346 fi 17347 17348 if test $found = "no" ; then 17349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17351 fi 17352 17353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17355 fi 17356 17357 CFLAGS="$CFLAGS -errwarn" 17358 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17360$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17361 cacheid=xorg_cv_cc_flag__errwarn 17362 if eval \${$cacheid+:} false; then : 17363 $as_echo_n "(cached) " >&6 17364else 17365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17366/* end confdefs.h. */ 17367int i; 17368int 17369main () 17370{ 17371 17372 ; 17373 return 0; 17374} 17375_ACEOF 17376if ac_fn_c_try_link "$LINENO"; then : 17377 eval $cacheid=yes 17378else 17379 eval $cacheid=no 17380fi 17381rm -f core conftest.err conftest.$ac_objext \ 17382 conftest$ac_exeext conftest.$ac_ext 17383fi 17384 17385 17386 CFLAGS="$xorg_testset_save_CFLAGS" 17387 17388 eval supported=\$$cacheid 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17390$as_echo "$supported" >&6; } 17391 if test "$supported" = "yes" ; then 17392 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17393 found="yes" 17394 fi 17395 fi 17396 17397 17398 17399# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17400# activate it with -Werror, so we add it here explicitly. 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414xorg_testset_save_CFLAGS="$CFLAGS" 17415 17416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17421 $as_echo_n "(cached) " >&6 17422else 17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17424/* end confdefs.h. */ 17425int i; 17426_ACEOF 17427if ac_fn_c_try_compile "$LINENO"; then : 17428 xorg_cv_cc_flag_unknown_warning_option=yes 17429else 17430 xorg_cv_cc_flag_unknown_warning_option=no 17431fi 17432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17433fi 17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17437 CFLAGS="$xorg_testset_save_CFLAGS" 17438fi 17439 17440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17443 fi 17444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17448 $as_echo_n "(cached) " >&6 17449else 17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17451/* end confdefs.h. */ 17452int i; 17453_ACEOF 17454if ac_fn_c_try_compile "$LINENO"; then : 17455 xorg_cv_cc_flag_unused_command_line_argument=yes 17456else 17457 xorg_cv_cc_flag_unused_command_line_argument=no 17458fi 17459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17460fi 17461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17464 CFLAGS="$xorg_testset_save_CFLAGS" 17465fi 17466 17467found="no" 17468 17469 if test $found = "no" ; then 17470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17472 fi 17473 17474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17476 fi 17477 17478 CFLAGS="$CFLAGS -Werror=attributes" 17479 17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17481$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17482 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17483 if eval \${$cacheid+:} false; then : 17484 $as_echo_n "(cached) " >&6 17485else 17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17487/* end confdefs.h. */ 17488int i; 17489int 17490main () 17491{ 17492 17493 ; 17494 return 0; 17495} 17496_ACEOF 17497if ac_fn_c_try_link "$LINENO"; then : 17498 eval $cacheid=yes 17499else 17500 eval $cacheid=no 17501fi 17502rm -f core conftest.err conftest.$ac_objext \ 17503 conftest$ac_exeext conftest.$ac_ext 17504fi 17505 17506 17507 CFLAGS="$xorg_testset_save_CFLAGS" 17508 17509 eval supported=\$$cacheid 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17511$as_echo "$supported" >&6; } 17512 if test "$supported" = "yes" ; then 17513 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17514 found="yes" 17515 fi 17516 fi 17517 17518 17519 17520if test "x$STRICT_COMPILE" = "xyes"; then 17521 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17522 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17523fi 17524 17525 17526 17527 17528 17529 17530cat >>confdefs.h <<_ACEOF 17531#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17532_ACEOF 17533 17534 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17535 if test "x$PVM" = "x"; then 17536 PVM="0" 17537 fi 17538 17539cat >>confdefs.h <<_ACEOF 17540#define PACKAGE_VERSION_MINOR $PVM 17541_ACEOF 17542 17543 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17544 if test "x$PVP" = "x"; then 17545 PVP="0" 17546 fi 17547 17548cat >>confdefs.h <<_ACEOF 17549#define PACKAGE_VERSION_PATCHLEVEL $PVP 17550_ACEOF 17551 17552 17553 17554CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17555mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17556|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17557echo 'git directory not found: installing possibly empty changelog.' >&2)" 17558 17559 17560 17561 17562macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17563INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17564mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17565|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17566echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17567 17568 17569 17570 17571 17572 17573if test x$APP_MAN_SUFFIX = x ; then 17574 APP_MAN_SUFFIX=1 17575fi 17576if test x$APP_MAN_DIR = x ; then 17577 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17578fi 17579 17580if test x$LIB_MAN_SUFFIX = x ; then 17581 LIB_MAN_SUFFIX=3 17582fi 17583if test x$LIB_MAN_DIR = x ; then 17584 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17585fi 17586 17587if test x$FILE_MAN_SUFFIX = x ; then 17588 case $host_os in 17589 solaris*) FILE_MAN_SUFFIX=4 ;; 17590 *) FILE_MAN_SUFFIX=5 ;; 17591 esac 17592fi 17593if test x$FILE_MAN_DIR = x ; then 17594 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17595fi 17596 17597if test x$MISC_MAN_SUFFIX = x ; then 17598 case $host_os in 17599 solaris*) MISC_MAN_SUFFIX=5 ;; 17600 *) MISC_MAN_SUFFIX=7 ;; 17601 esac 17602fi 17603if test x$MISC_MAN_DIR = x ; then 17604 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17605fi 17606 17607if test x$DRIVER_MAN_SUFFIX = x ; then 17608 case $host_os in 17609 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17610 *) DRIVER_MAN_SUFFIX=4 ;; 17611 esac 17612fi 17613if test x$DRIVER_MAN_DIR = x ; then 17614 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17615fi 17616 17617if test x$ADMIN_MAN_SUFFIX = x ; then 17618 case $host_os in 17619 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17620 *) ADMIN_MAN_SUFFIX=8 ;; 17621 esac 17622fi 17623if test x$ADMIN_MAN_DIR = x ; then 17624 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17625fi 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641XORG_MAN_PAGE="X Version 11" 17642 17643MAN_SUBSTS="\ 17644 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17645 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17646 -e 's|__xservername__|Xorg|g' \ 17647 -e 's|__xconfigfile__|xorg.conf|g' \ 17648 -e 's|__projectroot__|\$(prefix)|g' \ 17649 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17650 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17651 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17652 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17653 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17654 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17655 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17656 17657 17658 17659# Check whether --enable-silent-rules was given. 17660if test "${enable_silent_rules+set}" = set; then : 17661 enableval=$enable_silent_rules; 17662fi 17663 17664case $enable_silent_rules in # ((( 17665 yes) AM_DEFAULT_VERBOSITY=0;; 17666 no) AM_DEFAULT_VERBOSITY=1;; 17667 *) AM_DEFAULT_VERBOSITY=0;; 17668esac 17669am_make=${MAKE-make} 17670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17671$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17672if ${am_cv_make_support_nested_variables+:} false; then : 17673 $as_echo_n "(cached) " >&6 17674else 17675 if $as_echo 'TRUE=$(BAR$(V)) 17676BAR0=false 17677BAR1=true 17678V=1 17679am__doit: 17680 @$(TRUE) 17681.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17682 am_cv_make_support_nested_variables=yes 17683else 17684 am_cv_make_support_nested_variables=no 17685fi 17686fi 17687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17688$as_echo "$am_cv_make_support_nested_variables" >&6; } 17689if test $am_cv_make_support_nested_variables = yes; then 17690 AM_V='$(V)' 17691 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17692else 17693 AM_V=$AM_DEFAULT_VERBOSITY 17694 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17695fi 17696AM_BACKSLASH='\' 17697 17698 17699 17700# Check whether --enable-malloc0returnsnull was given. 17701if test "${enable_malloc0returnsnull+set}" = set; then : 17702 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17703else 17704 MALLOC_ZERO_RETURNS_NULL=auto 17705fi 17706 17707 17708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17709$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17710if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17711 if test "$cross_compiling" = yes; then : 17712 MALLOC_ZERO_RETURNS_NULL=yes 17713else 17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17715/* end confdefs.h. */ 17716 17717#include <stdlib.h> 17718 17719int 17720main () 17721{ 17722 17723 char *m0, *r0, *c0, *p; 17724 m0 = malloc(0); 17725 p = malloc(10); 17726 r0 = realloc(p,0); 17727 c0 = calloc(0,10); 17728 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17729 17730 ; 17731 return 0; 17732} 17733_ACEOF 17734if ac_fn_c_try_run "$LINENO"; then : 17735 MALLOC_ZERO_RETURNS_NULL=yes 17736else 17737 MALLOC_ZERO_RETURNS_NULL=no 17738fi 17739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17740 conftest.$ac_objext conftest.beam conftest.$ac_ext 17741fi 17742 17743fi 17744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17745$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17746 17747if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17748 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17749 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17750 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17751else 17752 MALLOC_ZERO_CFLAGS="" 17753 XMALLOC_ZERO_CFLAGS="" 17754 XTMALLOC_ZERO_CFLAGS="" 17755fi 17756 17757 17758 17759 17760 17761 17762# Obtain compiler/linker options for depedencies 17763 17764pkg_failed=no 17765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5 17766$as_echo_n "checking for XV... " >&6; } 17767 17768if test -n "$XV_CFLAGS"; then 17769 pkg_cv_XV_CFLAGS="$XV_CFLAGS" 17770 elif test -n "$PKG_CONFIG"; then 17771 if test -n "$PKG_CONFIG" && \ 17772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5 17773 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5 17774 ac_status=$? 17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17776 test $ac_status = 0; }; then 17777 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null` 17778else 17779 pkg_failed=yes 17780fi 17781 else 17782 pkg_failed=untried 17783fi 17784if test -n "$XV_LIBS"; then 17785 pkg_cv_XV_LIBS="$XV_LIBS" 17786 elif test -n "$PKG_CONFIG"; then 17787 if test -n "$PKG_CONFIG" && \ 17788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5 17789 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5 17790 ac_status=$? 17791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17792 test $ac_status = 0; }; then 17793 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null` 17794else 17795 pkg_failed=yes 17796fi 17797 else 17798 pkg_failed=untried 17799fi 17800 17801 17802 17803if test $pkg_failed = yes; then 17804 17805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17806 _pkg_short_errors_supported=yes 17807else 17808 _pkg_short_errors_supported=no 17809fi 17810 if test $_pkg_short_errors_supported = yes; then 17811 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 >= 1.6 xext xextproto videoproto" 2>&1` 17812 else 17813 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 >= 1.6 xext xextproto videoproto" 2>&1` 17814 fi 17815 # Put the nasty error message in config.log where it belongs 17816 echo "$XV_PKG_ERRORS" >&5 17817 17818 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto videoproto) were not met: 17819 17820$XV_PKG_ERRORS 17821 17822Consider adjusting the PKG_CONFIG_PATH environment variable if you 17823installed software in a non-standard prefix. 17824 17825Alternatively, you may set the environment variables XV_CFLAGS 17826and XV_LIBS to avoid the need to call pkg-config. 17827See the pkg-config man page for more details. 17828" "$LINENO" 5 17829elif test $pkg_failed = untried; then 17830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17832as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17833is in your PATH or set the PKG_CONFIG environment variable to the full 17834path to pkg-config. 17835 17836Alternatively, you may set the environment variables XV_CFLAGS 17837and XV_LIBS to avoid the need to call pkg-config. 17838See the pkg-config man page for more details. 17839 17840To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17841See \`config.log' for more details" "$LINENO" 5; } 17842else 17843 XV_CFLAGS=$pkg_cv_XV_CFLAGS 17844 XV_LIBS=$pkg_cv_XV_LIBS 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17846$as_echo "yes" >&6; } 17847 : 17848fi 17849 17850# Allow checking code with lint, sparse, etc. 17851 17852 17853 17854 17855 17856# Check whether --with-lint was given. 17857if test "${with_lint+set}" = set; then : 17858 withval=$with_lint; use_lint=$withval 17859else 17860 use_lint=no 17861fi 17862 17863 17864# Obtain platform specific info like program name and options 17865# The lint program on FreeBSD and NetBSD is different from the one on Solaris 17866case $host_os in 17867 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 17868 lint_name=splint 17869 lint_options="-badflag" 17870 ;; 17871 *freebsd* | *netbsd*) 17872 lint_name=lint 17873 lint_options="-u -b" 17874 ;; 17875 *solaris*) 17876 lint_name=lint 17877 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 17878 ;; 17879esac 17880 17881# Test for the presence of the program (either guessed by the code or spelled out by the user) 17882if test "x$use_lint" = x"yes" ; then 17883 # Extract the first word of "$lint_name", so it can be a program name with args. 17884set dummy $lint_name; ac_word=$2 17885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17886$as_echo_n "checking for $ac_word... " >&6; } 17887if ${ac_cv_path_LINT+:} false; then : 17888 $as_echo_n "(cached) " >&6 17889else 17890 case $LINT in 17891 [\\/]* | ?:[\\/]*) 17892 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 17893 ;; 17894 *) 17895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17896for as_dir in $PATH 17897do 17898 IFS=$as_save_IFS 17899 test -z "$as_dir" && as_dir=. 17900 for ac_exec_ext in '' $ac_executable_extensions; do 17901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17902 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 17903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17904 break 2 17905 fi 17906done 17907 done 17908IFS=$as_save_IFS 17909 17910 ;; 17911esac 17912fi 17913LINT=$ac_cv_path_LINT 17914if test -n "$LINT"; then 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 17916$as_echo "$LINT" >&6; } 17917else 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17919$as_echo "no" >&6; } 17920fi 17921 17922 17923 if test "x$LINT" = "x"; then 17924 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 17925 fi 17926elif test "x$use_lint" = x"no" ; then 17927 if test "x$LINT" != "x"; then 17928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 17929$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 17930 fi 17931else 17932 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 17933fi 17934 17935# User supplied flags override default flags 17936if test "x$LINT_FLAGS" != "x"; then 17937 lint_options=$LINT_FLAGS 17938fi 17939 17940LINT_FLAGS=$lint_options 17941 17942 if test "x$LINT" != x; then 17943 LINT_TRUE= 17944 LINT_FALSE='#' 17945else 17946 LINT_TRUE='#' 17947 LINT_FALSE= 17948fi 17949 17950 17951 17952 17953 17954# Check whether --enable-lint-library was given. 17955if test "${enable_lint_library+set}" = set; then : 17956 enableval=$enable_lint_library; make_lint_lib=$enableval 17957else 17958 make_lint_lib=no 17959fi 17960 17961 17962if test "x$make_lint_lib" = x"yes" ; then 17963 LINTLIB=llib-lXv.ln 17964 if test "x$LINT" = "x"; then 17965 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 17966 fi 17967elif test "x$make_lint_lib" != x"no" ; then 17968 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 17969fi 17970 17971 17972 if test x$make_lint_lib != xno; then 17973 MAKE_LINT_LIB_TRUE= 17974 MAKE_LINT_LIB_FALSE='#' 17975else 17976 MAKE_LINT_LIB_TRUE='#' 17977 MAKE_LINT_LIB_FALSE= 17978fi 17979 17980 17981 17982 17983ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc" 17984 17985cat >confcache <<\_ACEOF 17986# This file is a shell script that caches the results of configure 17987# tests run on this system so they can be shared between configure 17988# scripts and configure runs, see configure's option --config-cache. 17989# It is not useful on other systems. If it contains results you don't 17990# want to keep, you may remove or edit it. 17991# 17992# config.status only pays attention to the cache file if you give it 17993# the --recheck option to rerun configure. 17994# 17995# `ac_cv_env_foo' variables (set or unset) will be overridden when 17996# loading this file, other *unset* `ac_cv_foo' will be assigned the 17997# following values. 17998 17999_ACEOF 18000 18001# The following way of writing the cache mishandles newlines in values, 18002# but we know of no workaround that is simple, portable, and efficient. 18003# So, we kill variables containing newlines. 18004# Ultrix sh set writes to stderr and can't be redirected directly, 18005# and sets the high bit in the cache file unless we assign to the vars. 18006( 18007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18008 eval ac_val=\$$ac_var 18009 case $ac_val in #( 18010 *${as_nl}*) 18011 case $ac_var in #( 18012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18013$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18014 esac 18015 case $ac_var in #( 18016 _ | IFS | as_nl) ;; #( 18017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18018 *) { eval $ac_var=; unset $ac_var;} ;; 18019 esac ;; 18020 esac 18021 done 18022 18023 (set) 2>&1 | 18024 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18025 *${as_nl}ac_space=\ *) 18026 # `set' does not quote correctly, so add quotes: double-quote 18027 # substitution turns \\\\ into \\, and sed turns \\ into \. 18028 sed -n \ 18029 "s/'/'\\\\''/g; 18030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18031 ;; #( 18032 *) 18033 # `set' quotes correctly as required by POSIX, so do not add quotes. 18034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18035 ;; 18036 esac | 18037 sort 18038) | 18039 sed ' 18040 /^ac_cv_env_/b end 18041 t clear 18042 :clear 18043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18044 t end 18045 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18046 :end' >>confcache 18047if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18048 if test -w "$cache_file"; then 18049 if test "x$cache_file" != "x/dev/null"; then 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18051$as_echo "$as_me: updating cache $cache_file" >&6;} 18052 if test ! -f "$cache_file" || test -h "$cache_file"; then 18053 cat confcache >"$cache_file" 18054 else 18055 case $cache_file in #( 18056 */* | ?:*) 18057 mv -f confcache "$cache_file"$$ && 18058 mv -f "$cache_file"$$ "$cache_file" ;; #( 18059 *) 18060 mv -f confcache "$cache_file" ;; 18061 esac 18062 fi 18063 fi 18064 else 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18066$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18067 fi 18068fi 18069rm -f confcache 18070 18071test "x$prefix" = xNONE && prefix=$ac_default_prefix 18072# Let make expand exec_prefix. 18073test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18074 18075DEFS=-DHAVE_CONFIG_H 18076 18077ac_libobjs= 18078ac_ltlibobjs= 18079U= 18080for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18081 # 1. Remove the extension, and $U if already installed. 18082 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18083 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18084 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18085 # will be set to the directory where LIBOBJS objects are built. 18086 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18087 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18088done 18089LIBOBJS=$ac_libobjs 18090 18091LTLIBOBJS=$ac_ltlibobjs 18092 18093 18094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18095$as_echo_n "checking that generated files are newer than configure... " >&6; } 18096 if test -n "$am_sleep_pid"; then 18097 # Hide warnings about reused PIDs. 18098 wait $am_sleep_pid 2>/dev/null 18099 fi 18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18101$as_echo "done" >&6; } 18102 if test -n "$EXEEXT"; then 18103 am__EXEEXT_TRUE= 18104 am__EXEEXT_FALSE='#' 18105else 18106 am__EXEEXT_TRUE='#' 18107 am__EXEEXT_FALSE= 18108fi 18109 18110if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18111 as_fn_error $? "conditional \"AMDEP\" was never defined. 18112Usually this means the macro was only invoked conditionally." "$LINENO" 5 18113fi 18114if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18115 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18116Usually this means the macro was only invoked conditionally." "$LINENO" 5 18117fi 18118if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18119 as_fn_error $? "conditional \"LINT\" was never defined. 18120Usually this means the macro was only invoked conditionally." "$LINENO" 5 18121fi 18122if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18123 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18124Usually this means the macro was only invoked conditionally." "$LINENO" 5 18125fi 18126 18127: "${CONFIG_STATUS=./config.status}" 18128ac_write_fail=0 18129ac_clean_files_save=$ac_clean_files 18130ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18131{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18132$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18133as_write_fail=0 18134cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18135#! $SHELL 18136# Generated by $as_me. 18137# Run this file to recreate the current configuration. 18138# Compiler output produced by configure, useful for debugging 18139# configure, is in config.log if it exists. 18140 18141debug=false 18142ac_cs_recheck=false 18143ac_cs_silent=false 18144 18145SHELL=\${CONFIG_SHELL-$SHELL} 18146export SHELL 18147_ASEOF 18148cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18149## -------------------- ## 18150## M4sh Initialization. ## 18151## -------------------- ## 18152 18153# Be more Bourne compatible 18154DUALCASE=1; export DUALCASE # for MKS sh 18155if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18156 emulate sh 18157 NULLCMD=: 18158 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18159 # is contrary to our usage. Disable this feature. 18160 alias -g '${1+"$@"}'='"$@"' 18161 setopt NO_GLOB_SUBST 18162else 18163 case `(set -o) 2>/dev/null` in #( 18164 *posix*) : 18165 set -o posix ;; #( 18166 *) : 18167 ;; 18168esac 18169fi 18170 18171 18172as_nl=' 18173' 18174export as_nl 18175# Printing a long string crashes Solaris 7 /usr/bin/printf. 18176as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18179# Prefer a ksh shell builtin over an external printf program on Solaris, 18180# but without wasting forks for bash or zsh. 18181if test -z "$BASH_VERSION$ZSH_VERSION" \ 18182 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18183 as_echo='print -r --' 18184 as_echo_n='print -rn --' 18185elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18186 as_echo='printf %s\n' 18187 as_echo_n='printf %s' 18188else 18189 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18190 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18191 as_echo_n='/usr/ucb/echo -n' 18192 else 18193 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18194 as_echo_n_body='eval 18195 arg=$1; 18196 case $arg in #( 18197 *"$as_nl"*) 18198 expr "X$arg" : "X\\(.*\\)$as_nl"; 18199 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18200 esac; 18201 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18202 ' 18203 export as_echo_n_body 18204 as_echo_n='sh -c $as_echo_n_body as_echo' 18205 fi 18206 export as_echo_body 18207 as_echo='sh -c $as_echo_body as_echo' 18208fi 18209 18210# The user is always right. 18211if test "${PATH_SEPARATOR+set}" != set; then 18212 PATH_SEPARATOR=: 18213 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18214 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18215 PATH_SEPARATOR=';' 18216 } 18217fi 18218 18219 18220# IFS 18221# We need space, tab and new line, in precisely that order. Quoting is 18222# there to prevent editors from complaining about space-tab. 18223# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18224# splitting by setting IFS to empty value.) 18225IFS=" "" $as_nl" 18226 18227# Find who we are. Look in the path if we contain no directory separator. 18228as_myself= 18229case $0 in #(( 18230 *[\\/]* ) as_myself=$0 ;; 18231 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18232for as_dir in $PATH 18233do 18234 IFS=$as_save_IFS 18235 test -z "$as_dir" && as_dir=. 18236 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18237 done 18238IFS=$as_save_IFS 18239 18240 ;; 18241esac 18242# We did not find ourselves, most probably we were run as `sh COMMAND' 18243# in which case we are not to be found in the path. 18244if test "x$as_myself" = x; then 18245 as_myself=$0 18246fi 18247if test ! -f "$as_myself"; then 18248 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18249 exit 1 18250fi 18251 18252# Unset variables that we do not need and which cause bugs (e.g. in 18253# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18254# suppresses any "Segmentation fault" message there. '((' could 18255# trigger a bug in pdksh 5.2.14. 18256for as_var in BASH_ENV ENV MAIL MAILPATH 18257do eval test x\${$as_var+set} = xset \ 18258 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18259done 18260PS1='$ ' 18261PS2='> ' 18262PS4='+ ' 18263 18264# NLS nuisances. 18265LC_ALL=C 18266export LC_ALL 18267LANGUAGE=C 18268export LANGUAGE 18269 18270# CDPATH. 18271(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18272 18273 18274# as_fn_error STATUS ERROR [LINENO LOG_FD] 18275# ---------------------------------------- 18276# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18277# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18278# script with STATUS, using 1 if that was 0. 18279as_fn_error () 18280{ 18281 as_status=$1; test $as_status -eq 0 && as_status=1 18282 if test "$4"; then 18283 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18284 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18285 fi 18286 $as_echo "$as_me: error: $2" >&2 18287 as_fn_exit $as_status 18288} # as_fn_error 18289 18290 18291# as_fn_set_status STATUS 18292# ----------------------- 18293# Set $? to STATUS, without forking. 18294as_fn_set_status () 18295{ 18296 return $1 18297} # as_fn_set_status 18298 18299# as_fn_exit STATUS 18300# ----------------- 18301# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18302as_fn_exit () 18303{ 18304 set +e 18305 as_fn_set_status $1 18306 exit $1 18307} # as_fn_exit 18308 18309# as_fn_unset VAR 18310# --------------- 18311# Portably unset VAR. 18312as_fn_unset () 18313{ 18314 { eval $1=; unset $1;} 18315} 18316as_unset=as_fn_unset 18317# as_fn_append VAR VALUE 18318# ---------------------- 18319# Append the text in VALUE to the end of the definition contained in VAR. Take 18320# advantage of any shell optimizations that allow amortized linear growth over 18321# repeated appends, instead of the typical quadratic growth present in naive 18322# implementations. 18323if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18324 eval 'as_fn_append () 18325 { 18326 eval $1+=\$2 18327 }' 18328else 18329 as_fn_append () 18330 { 18331 eval $1=\$$1\$2 18332 } 18333fi # as_fn_append 18334 18335# as_fn_arith ARG... 18336# ------------------ 18337# Perform arithmetic evaluation on the ARGs, and store the result in the 18338# global $as_val. Take advantage of shells that can avoid forks. The arguments 18339# must be portable across $(()) and expr. 18340if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18341 eval 'as_fn_arith () 18342 { 18343 as_val=$(( $* )) 18344 }' 18345else 18346 as_fn_arith () 18347 { 18348 as_val=`expr "$@" || test $? -eq 1` 18349 } 18350fi # as_fn_arith 18351 18352 18353if expr a : '\(a\)' >/dev/null 2>&1 && 18354 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18355 as_expr=expr 18356else 18357 as_expr=false 18358fi 18359 18360if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18361 as_basename=basename 18362else 18363 as_basename=false 18364fi 18365 18366if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18367 as_dirname=dirname 18368else 18369 as_dirname=false 18370fi 18371 18372as_me=`$as_basename -- "$0" || 18373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18374 X"$0" : 'X\(//\)$' \| \ 18375 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18376$as_echo X/"$0" | 18377 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18378 s//\1/ 18379 q 18380 } 18381 /^X\/\(\/\/\)$/{ 18382 s//\1/ 18383 q 18384 } 18385 /^X\/\(\/\).*/{ 18386 s//\1/ 18387 q 18388 } 18389 s/.*/./; q'` 18390 18391# Avoid depending upon Character Ranges. 18392as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18393as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18394as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18395as_cr_digits='0123456789' 18396as_cr_alnum=$as_cr_Letters$as_cr_digits 18397 18398ECHO_C= ECHO_N= ECHO_T= 18399case `echo -n x` in #((((( 18400-n*) 18401 case `echo 'xy\c'` in 18402 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18403 xy) ECHO_C='\c';; 18404 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18405 ECHO_T=' ';; 18406 esac;; 18407*) 18408 ECHO_N='-n';; 18409esac 18410 18411rm -f conf$$ conf$$.exe conf$$.file 18412if test -d conf$$.dir; then 18413 rm -f conf$$.dir/conf$$.file 18414else 18415 rm -f conf$$.dir 18416 mkdir conf$$.dir 2>/dev/null 18417fi 18418if (echo >conf$$.file) 2>/dev/null; then 18419 if ln -s conf$$.file conf$$ 2>/dev/null; then 18420 as_ln_s='ln -s' 18421 # ... but there are two gotchas: 18422 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18423 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18424 # In both cases, we have to default to `cp -p'. 18425 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18426 as_ln_s='cp -p' 18427 elif ln conf$$.file conf$$ 2>/dev/null; then 18428 as_ln_s=ln 18429 else 18430 as_ln_s='cp -p' 18431 fi 18432else 18433 as_ln_s='cp -p' 18434fi 18435rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18436rmdir conf$$.dir 2>/dev/null 18437 18438 18439# as_fn_mkdir_p 18440# ------------- 18441# Create "$as_dir" as a directory, including parents if necessary. 18442as_fn_mkdir_p () 18443{ 18444 18445 case $as_dir in #( 18446 -*) as_dir=./$as_dir;; 18447 esac 18448 test -d "$as_dir" || eval $as_mkdir_p || { 18449 as_dirs= 18450 while :; do 18451 case $as_dir in #( 18452 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18453 *) as_qdir=$as_dir;; 18454 esac 18455 as_dirs="'$as_qdir' $as_dirs" 18456 as_dir=`$as_dirname -- "$as_dir" || 18457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18458 X"$as_dir" : 'X\(//\)[^/]' \| \ 18459 X"$as_dir" : 'X\(//\)$' \| \ 18460 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18461$as_echo X"$as_dir" | 18462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18463 s//\1/ 18464 q 18465 } 18466 /^X\(\/\/\)[^/].*/{ 18467 s//\1/ 18468 q 18469 } 18470 /^X\(\/\/\)$/{ 18471 s//\1/ 18472 q 18473 } 18474 /^X\(\/\).*/{ 18475 s//\1/ 18476 q 18477 } 18478 s/.*/./; q'` 18479 test -d "$as_dir" && break 18480 done 18481 test -z "$as_dirs" || eval "mkdir $as_dirs" 18482 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18483 18484 18485} # as_fn_mkdir_p 18486if mkdir -p . 2>/dev/null; then 18487 as_mkdir_p='mkdir -p "$as_dir"' 18488else 18489 test -d ./-p && rmdir ./-p 18490 as_mkdir_p=false 18491fi 18492 18493if test -x / >/dev/null 2>&1; then 18494 as_test_x='test -x' 18495else 18496 if ls -dL / >/dev/null 2>&1; then 18497 as_ls_L_option=L 18498 else 18499 as_ls_L_option= 18500 fi 18501 as_test_x=' 18502 eval sh -c '\'' 18503 if test -d "$1"; then 18504 test -d "$1/."; 18505 else 18506 case $1 in #( 18507 -*)set "./$1";; 18508 esac; 18509 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18510 ???[sx]*):;;*)false;;esac;fi 18511 '\'' sh 18512 ' 18513fi 18514as_executable_p=$as_test_x 18515 18516# Sed expression to map a string onto a valid CPP name. 18517as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18518 18519# Sed expression to map a string onto a valid variable name. 18520as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18521 18522 18523exec 6>&1 18524## ----------------------------------- ## 18525## Main body of $CONFIG_STATUS script. ## 18526## ----------------------------------- ## 18527_ASEOF 18528test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18529 18530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18531# Save the log message, to keep $0 and so on meaningful, and to 18532# report actual input values of CONFIG_FILES etc. instead of their 18533# values after options handling. 18534ac_log=" 18535This file was extended by libXv $as_me 1.0.10, which was 18536generated by GNU Autoconf 2.68. Invocation command line was 18537 18538 CONFIG_FILES = $CONFIG_FILES 18539 CONFIG_HEADERS = $CONFIG_HEADERS 18540 CONFIG_LINKS = $CONFIG_LINKS 18541 CONFIG_COMMANDS = $CONFIG_COMMANDS 18542 $ $0 $@ 18543 18544on `(hostname || uname -n) 2>/dev/null | sed 1q` 18545" 18546 18547_ACEOF 18548 18549case $ac_config_files in *" 18550"*) set x $ac_config_files; shift; ac_config_files=$*;; 18551esac 18552 18553case $ac_config_headers in *" 18554"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18555esac 18556 18557 18558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18559# Files that config.status was made for. 18560config_files="$ac_config_files" 18561config_headers="$ac_config_headers" 18562config_commands="$ac_config_commands" 18563 18564_ACEOF 18565 18566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18567ac_cs_usage="\ 18568\`$as_me' instantiates files and other configuration actions 18569from templates according to the current configuration. Unless the files 18570and actions are specified as TAGs, all are instantiated by default. 18571 18572Usage: $0 [OPTION]... [TAG]... 18573 18574 -h, --help print this help, then exit 18575 -V, --version print version number and configuration settings, then exit 18576 --config print configuration, then exit 18577 -q, --quiet, --silent 18578 do not print progress messages 18579 -d, --debug don't remove temporary files 18580 --recheck update $as_me by reconfiguring in the same conditions 18581 --file=FILE[:TEMPLATE] 18582 instantiate the configuration file FILE 18583 --header=FILE[:TEMPLATE] 18584 instantiate the configuration header FILE 18585 18586Configuration files: 18587$config_files 18588 18589Configuration headers: 18590$config_headers 18591 18592Configuration commands: 18593$config_commands 18594 18595Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18596 18597_ACEOF 18598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18599ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18600ac_cs_version="\\ 18601libXv config.status 1.0.10 18602configured by $0, generated by GNU Autoconf 2.68, 18603 with options \\"\$ac_cs_config\\" 18604 18605Copyright (C) 2010 Free Software Foundation, Inc. 18606This config.status script is free software; the Free Software Foundation 18607gives unlimited permission to copy, distribute and modify it." 18608 18609ac_pwd='$ac_pwd' 18610srcdir='$srcdir' 18611INSTALL='$INSTALL' 18612MKDIR_P='$MKDIR_P' 18613AWK='$AWK' 18614test -n "\$AWK" || AWK=awk 18615_ACEOF 18616 18617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18618# The default lists apply if the user does not specify any file. 18619ac_need_defaults=: 18620while test $# != 0 18621do 18622 case $1 in 18623 --*=?*) 18624 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18626 ac_shift=: 18627 ;; 18628 --*=) 18629 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18630 ac_optarg= 18631 ac_shift=: 18632 ;; 18633 *) 18634 ac_option=$1 18635 ac_optarg=$2 18636 ac_shift=shift 18637 ;; 18638 esac 18639 18640 case $ac_option in 18641 # Handling of the options. 18642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18643 ac_cs_recheck=: ;; 18644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18645 $as_echo "$ac_cs_version"; exit ;; 18646 --config | --confi | --conf | --con | --co | --c ) 18647 $as_echo "$ac_cs_config"; exit ;; 18648 --debug | --debu | --deb | --de | --d | -d ) 18649 debug=: ;; 18650 --file | --fil | --fi | --f ) 18651 $ac_shift 18652 case $ac_optarg in 18653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18654 '') as_fn_error $? "missing file argument" ;; 18655 esac 18656 as_fn_append CONFIG_FILES " '$ac_optarg'" 18657 ac_need_defaults=false;; 18658 --header | --heade | --head | --hea ) 18659 $ac_shift 18660 case $ac_optarg in 18661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18662 esac 18663 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18664 ac_need_defaults=false;; 18665 --he | --h) 18666 # Conflict between --help and --header 18667 as_fn_error $? "ambiguous option: \`$1' 18668Try \`$0 --help' for more information.";; 18669 --help | --hel | -h ) 18670 $as_echo "$ac_cs_usage"; exit ;; 18671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18672 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18673 ac_cs_silent=: ;; 18674 18675 # This is an error. 18676 -*) as_fn_error $? "unrecognized option: \`$1' 18677Try \`$0 --help' for more information." ;; 18678 18679 *) as_fn_append ac_config_targets " $1" 18680 ac_need_defaults=false ;; 18681 18682 esac 18683 shift 18684done 18685 18686ac_configure_extra_args= 18687 18688if $ac_cs_silent; then 18689 exec 6>/dev/null 18690 ac_configure_extra_args="$ac_configure_extra_args --silent" 18691fi 18692 18693_ACEOF 18694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18695if \$ac_cs_recheck; then 18696 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18697 shift 18698 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18699 CONFIG_SHELL='$SHELL' 18700 export CONFIG_SHELL 18701 exec "\$@" 18702fi 18703 18704_ACEOF 18705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18706exec 5>>config.log 18707{ 18708 echo 18709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18710## Running $as_me. ## 18711_ASBOX 18712 $as_echo "$ac_log" 18713} >&5 18714 18715_ACEOF 18716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18717# 18718# INIT-COMMANDS 18719# 18720AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18721 18722 18723# The HP-UX ksh and POSIX shell print the target directory to stdout 18724# if CDPATH is set. 18725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18726 18727sed_quote_subst='$sed_quote_subst' 18728double_quote_subst='$double_quote_subst' 18729delay_variable_subst='$delay_variable_subst' 18730macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18731macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18732enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18733enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18734pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18735enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18736SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18737ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18738PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18739host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18740host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18741host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18742build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18743build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18744build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18745SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18746Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18747GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18748EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18749FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18750LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18751NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18752LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18753max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18754ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18755exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18756lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18757lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18758lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18759lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18760lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18761reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18762reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18763OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18764deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18765file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18766file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18767want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18768DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18769sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18770AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18771AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18772archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18773STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18774RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18775old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18776old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18777old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18778lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18779CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18780CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18781compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18782GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18783lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18784lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18785lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18786lt_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"`' 18787nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18788lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18789objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18790MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18791lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18792lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18793lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18794lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18795lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18796need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18797MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18798DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18799NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18800LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18801OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18802OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18803libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18804shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18805extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18806archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18807enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18808export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18809whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18810compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18811old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18812old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18813archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18814archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18815module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18816module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18817with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18818allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18819no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18820hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18821hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18822hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18823hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18824hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18825hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18826hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18827inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18828link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18829always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18830export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18831exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18832include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18833prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18834postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18835file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18836variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18837need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18838need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18839version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18840runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18841shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18842shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18843libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18844library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18845soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18846install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18847postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18848postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18849finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18850finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18851hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18852sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18853sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18854hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18855enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18856enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18857enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18858old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18859striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18860 18861LTCC='$LTCC' 18862LTCFLAGS='$LTCFLAGS' 18863compiler='$compiler_DEFAULT' 18864 18865# A function that is used when there is no print builtin or printf. 18866func_fallback_echo () 18867{ 18868 eval 'cat <<_LTECHO_EOF 18869\$1 18870_LTECHO_EOF' 18871} 18872 18873# Quote evaled strings. 18874for var in SHELL \ 18875ECHO \ 18876PATH_SEPARATOR \ 18877SED \ 18878GREP \ 18879EGREP \ 18880FGREP \ 18881LD \ 18882NM \ 18883LN_S \ 18884lt_SP2NL \ 18885lt_NL2SP \ 18886reload_flag \ 18887OBJDUMP \ 18888deplibs_check_method \ 18889file_magic_cmd \ 18890file_magic_glob \ 18891want_nocaseglob \ 18892DLLTOOL \ 18893sharedlib_from_linklib_cmd \ 18894AR \ 18895AR_FLAGS \ 18896archiver_list_spec \ 18897STRIP \ 18898RANLIB \ 18899CC \ 18900CFLAGS \ 18901compiler \ 18902lt_cv_sys_global_symbol_pipe \ 18903lt_cv_sys_global_symbol_to_cdecl \ 18904lt_cv_sys_global_symbol_to_c_name_address \ 18905lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18906nm_file_list_spec \ 18907lt_prog_compiler_no_builtin_flag \ 18908lt_prog_compiler_pic \ 18909lt_prog_compiler_wl \ 18910lt_prog_compiler_static \ 18911lt_cv_prog_compiler_c_o \ 18912need_locks \ 18913MANIFEST_TOOL \ 18914DSYMUTIL \ 18915NMEDIT \ 18916LIPO \ 18917OTOOL \ 18918OTOOL64 \ 18919shrext_cmds \ 18920export_dynamic_flag_spec \ 18921whole_archive_flag_spec \ 18922compiler_needs_object \ 18923with_gnu_ld \ 18924allow_undefined_flag \ 18925no_undefined_flag \ 18926hardcode_libdir_flag_spec \ 18927hardcode_libdir_separator \ 18928exclude_expsyms \ 18929include_expsyms \ 18930file_list_spec \ 18931variables_saved_for_relink \ 18932libname_spec \ 18933library_names_spec \ 18934soname_spec \ 18935install_override_mode \ 18936finish_eval \ 18937old_striplib \ 18938striplib; do 18939 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18940 *[\\\\\\\`\\"\\\$]*) 18941 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18942 ;; 18943 *) 18944 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18945 ;; 18946 esac 18947done 18948 18949# Double-quote double-evaled strings. 18950for var in reload_cmds \ 18951old_postinstall_cmds \ 18952old_postuninstall_cmds \ 18953old_archive_cmds \ 18954extract_expsyms_cmds \ 18955old_archive_from_new_cmds \ 18956old_archive_from_expsyms_cmds \ 18957archive_cmds \ 18958archive_expsym_cmds \ 18959module_cmds \ 18960module_expsym_cmds \ 18961export_symbols_cmds \ 18962prelink_cmds \ 18963postlink_cmds \ 18964postinstall_cmds \ 18965postuninstall_cmds \ 18966finish_cmds \ 18967sys_lib_search_path_spec \ 18968sys_lib_dlsearch_path_spec; do 18969 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18970 *[\\\\\\\`\\"\\\$]*) 18971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18972 ;; 18973 *) 18974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18975 ;; 18976 esac 18977done 18978 18979ac_aux_dir='$ac_aux_dir' 18980xsi_shell='$xsi_shell' 18981lt_shell_append='$lt_shell_append' 18982 18983# See if we are running on zsh, and set the options which allow our 18984# commands through without removal of \ escapes INIT. 18985if test -n "\${ZSH_VERSION+set}" ; then 18986 setopt NO_GLOB_SUBST 18987fi 18988 18989 18990 PACKAGE='$PACKAGE' 18991 VERSION='$VERSION' 18992 TIMESTAMP='$TIMESTAMP' 18993 RM='$RM' 18994 ofile='$ofile' 18995 18996 18997 18998 18999_ACEOF 19000 19001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19002 19003# Handling of arguments. 19004for ac_config_target in $ac_config_targets 19005do 19006 case $ac_config_target in 19007 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19008 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19009 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19010 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19011 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19012 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;; 19013 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;; 19014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19015 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19016 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;; 19017 19018 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19019 esac 19020done 19021 19022 19023# If the user did not use the arguments to specify the items to instantiate, 19024# then the envvar interface is used. Set only those that are not. 19025# We use the long form for the default assignment because of an extremely 19026# bizarre bug on SunOS 4.1.3. 19027if $ac_need_defaults; then 19028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19031fi 19032 19033# Have a temporary directory for convenience. Make it in the build tree 19034# simply because there is no reason against having it here, and in addition, 19035# creating and moving files from /tmp can sometimes cause problems. 19036# Hook for its removal unless debugging. 19037# Note that there is a small window in which the directory will not be cleaned: 19038# after its creation but before its name has been assigned to `$tmp'. 19039$debug || 19040{ 19041 tmp= ac_tmp= 19042 trap 'exit_status=$? 19043 : "${ac_tmp:=$tmp}" 19044 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19045' 0 19046 trap 'as_fn_exit 1' 1 2 13 15 19047} 19048# Create a (secure) tmp directory for tmp files. 19049 19050{ 19051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19052 test -d "$tmp" 19053} || 19054{ 19055 tmp=./conf$$-$RANDOM 19056 (umask 077 && mkdir "$tmp") 19057} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19058ac_tmp=$tmp 19059 19060# Set up the scripts for CONFIG_FILES section. 19061# No need to generate them if there are no CONFIG_FILES. 19062# This happens for instance with `./config.status config.h'. 19063if test -n "$CONFIG_FILES"; then 19064 19065 19066ac_cr=`echo X | tr X '\015'` 19067# On cygwin, bash can eat \r inside `` if the user requested igncr. 19068# But we know of no other shell where ac_cr would be empty at this 19069# point, so we can use a bashism as a fallback. 19070if test "x$ac_cr" = x; then 19071 eval ac_cr=\$\'\\r\' 19072fi 19073ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19074if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19075 ac_cs_awk_cr='\\r' 19076else 19077 ac_cs_awk_cr=$ac_cr 19078fi 19079 19080echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19081_ACEOF 19082 19083 19084{ 19085 echo "cat >conf$$subs.awk <<_ACEOF" && 19086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19087 echo "_ACEOF" 19088} >conf$$subs.sh || 19089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19090ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19091ac_delim='%!_!# ' 19092for ac_last_try in false false false false false :; do 19093 . ./conf$$subs.sh || 19094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19095 19096 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19097 if test $ac_delim_n = $ac_delim_num; then 19098 break 19099 elif $ac_last_try; then 19100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19101 else 19102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19103 fi 19104done 19105rm -f conf$$subs.sh 19106 19107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19108cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19109_ACEOF 19110sed -n ' 19111h 19112s/^/S["/; s/!.*/"]=/ 19113p 19114g 19115s/^[^!]*!// 19116:repl 19117t repl 19118s/'"$ac_delim"'$// 19119t delim 19120:nl 19121h 19122s/\(.\{148\}\)..*/\1/ 19123t more1 19124s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19125p 19126n 19127b repl 19128:more1 19129s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19130p 19131g 19132s/.\{148\}// 19133t nl 19134:delim 19135h 19136s/\(.\{148\}\)..*/\1/ 19137t more2 19138s/["\\]/\\&/g; s/^/"/; s/$/"/ 19139p 19140b 19141:more2 19142s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19143p 19144g 19145s/.\{148\}// 19146t delim 19147' <conf$$subs.awk | sed ' 19148/^[^""]/{ 19149 N 19150 s/\n// 19151} 19152' >>$CONFIG_STATUS || ac_write_fail=1 19153rm -f conf$$subs.awk 19154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19155_ACAWK 19156cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19157 for (key in S) S_is_set[key] = 1 19158 FS = "" 19159 19160} 19161{ 19162 line = $ 0 19163 nfields = split(line, field, "@") 19164 substed = 0 19165 len = length(field[1]) 19166 for (i = 2; i < nfields; i++) { 19167 key = field[i] 19168 keylen = length(key) 19169 if (S_is_set[key]) { 19170 value = S[key] 19171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19172 len += length(value) + length(field[++i]) 19173 substed = 1 19174 } else 19175 len += 1 + keylen 19176 } 19177 19178 print line 19179} 19180 19181_ACAWK 19182_ACEOF 19183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19184if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19186else 19187 cat 19188fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19189 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19190_ACEOF 19191 19192# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19193# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19194# trailing colons and then remove the whole line if VPATH becomes empty 19195# (actually we leave an empty line to preserve line numbers). 19196if test "x$srcdir" = x.; then 19197 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19198h 19199s/// 19200s/^/:/ 19201s/[ ]*$/:/ 19202s/:\$(srcdir):/:/g 19203s/:\${srcdir}:/:/g 19204s/:@srcdir@:/:/g 19205s/^:*// 19206s/:*$// 19207x 19208s/\(=[ ]*\).*/\1/ 19209G 19210s/\n// 19211s/^[^=]*=[ ]*$// 19212}' 19213fi 19214 19215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19216fi # test -n "$CONFIG_FILES" 19217 19218# Set up the scripts for CONFIG_HEADERS section. 19219# No need to generate them if there are no CONFIG_HEADERS. 19220# This happens for instance with `./config.status Makefile'. 19221if test -n "$CONFIG_HEADERS"; then 19222cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19223BEGIN { 19224_ACEOF 19225 19226# Transform confdefs.h into an awk script `defines.awk', embedded as 19227# here-document in config.status, that substitutes the proper values into 19228# config.h.in to produce config.h. 19229 19230# Create a delimiter string that does not exist in confdefs.h, to ease 19231# handling of long lines. 19232ac_delim='%!_!# ' 19233for ac_last_try in false false :; do 19234 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19235 if test -z "$ac_tt"; then 19236 break 19237 elif $ac_last_try; then 19238 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19239 else 19240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19241 fi 19242done 19243 19244# For the awk script, D is an array of macro values keyed by name, 19245# likewise P contains macro parameters if any. Preserve backslash 19246# newline sequences. 19247 19248ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19249sed -n ' 19250s/.\{148\}/&'"$ac_delim"'/g 19251t rset 19252:rset 19253s/^[ ]*#[ ]*define[ ][ ]*/ / 19254t def 19255d 19256:def 19257s/\\$// 19258t bsnl 19259s/["\\]/\\&/g 19260s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19261D["\1"]=" \3"/p 19262s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19263d 19264:bsnl 19265s/["\\]/\\&/g 19266s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19267D["\1"]=" \3\\\\\\n"\\/p 19268t cont 19269s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19270t cont 19271d 19272:cont 19273n 19274s/.\{148\}/&'"$ac_delim"'/g 19275t clear 19276:clear 19277s/\\$// 19278t bsnlc 19279s/["\\]/\\&/g; s/^/"/; s/$/"/p 19280d 19281:bsnlc 19282s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19283b cont 19284' <confdefs.h | sed ' 19285s/'"$ac_delim"'/"\\\ 19286"/g' >>$CONFIG_STATUS || ac_write_fail=1 19287 19288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19289 for (key in D) D_is_set[key] = 1 19290 FS = "" 19291} 19292/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19293 line = \$ 0 19294 split(line, arg, " ") 19295 if (arg[1] == "#") { 19296 defundef = arg[2] 19297 mac1 = arg[3] 19298 } else { 19299 defundef = substr(arg[1], 2) 19300 mac1 = arg[2] 19301 } 19302 split(mac1, mac2, "(") #) 19303 macro = mac2[1] 19304 prefix = substr(line, 1, index(line, defundef) - 1) 19305 if (D_is_set[macro]) { 19306 # Preserve the white space surrounding the "#". 19307 print prefix "define", macro P[macro] D[macro] 19308 next 19309 } else { 19310 # Replace #undef with comments. This is necessary, for example, 19311 # in the case of _POSIX_SOURCE, which is predefined and required 19312 # on some systems where configure will not decide to define it. 19313 if (defundef == "undef") { 19314 print "/*", prefix defundef, macro, "*/" 19315 next 19316 } 19317 } 19318} 19319{ print } 19320_ACAWK 19321_ACEOF 19322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19323 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19324fi # test -n "$CONFIG_HEADERS" 19325 19326 19327eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19328shift 19329for ac_tag 19330do 19331 case $ac_tag in 19332 :[FHLC]) ac_mode=$ac_tag; continue;; 19333 esac 19334 case $ac_mode$ac_tag in 19335 :[FHL]*:*);; 19336 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19337 :[FH]-) ac_tag=-:-;; 19338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19339 esac 19340 ac_save_IFS=$IFS 19341 IFS=: 19342 set x $ac_tag 19343 IFS=$ac_save_IFS 19344 shift 19345 ac_file=$1 19346 shift 19347 19348 case $ac_mode in 19349 :L) ac_source=$1;; 19350 :[FH]) 19351 ac_file_inputs= 19352 for ac_f 19353 do 19354 case $ac_f in 19355 -) ac_f="$ac_tmp/stdin";; 19356 *) # Look for the file first in the build tree, then in the source tree 19357 # (if the path is not absolute). The absolute path cannot be DOS-style, 19358 # because $ac_f cannot contain `:'. 19359 test -f "$ac_f" || 19360 case $ac_f in 19361 [\\/$]*) false;; 19362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19363 esac || 19364 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19365 esac 19366 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19367 as_fn_append ac_file_inputs " '$ac_f'" 19368 done 19369 19370 # Let's still pretend it is `configure' which instantiates (i.e., don't 19371 # use $as_me), people would be surprised to read: 19372 # /* config.h. Generated by config.status. */ 19373 configure_input='Generated from '` 19374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19375 `' by configure.' 19376 if test x"$ac_file" != x-; then 19377 configure_input="$ac_file. $configure_input" 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19379$as_echo "$as_me: creating $ac_file" >&6;} 19380 fi 19381 # Neutralize special characters interpreted by sed in replacement strings. 19382 case $configure_input in #( 19383 *\&* | *\|* | *\\* ) 19384 ac_sed_conf_input=`$as_echo "$configure_input" | 19385 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19386 *) ac_sed_conf_input=$configure_input;; 19387 esac 19388 19389 case $ac_tag in 19390 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19392 esac 19393 ;; 19394 esac 19395 19396 ac_dir=`$as_dirname -- "$ac_file" || 19397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19398 X"$ac_file" : 'X\(//\)[^/]' \| \ 19399 X"$ac_file" : 'X\(//\)$' \| \ 19400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19401$as_echo X"$ac_file" | 19402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19403 s//\1/ 19404 q 19405 } 19406 /^X\(\/\/\)[^/].*/{ 19407 s//\1/ 19408 q 19409 } 19410 /^X\(\/\/\)$/{ 19411 s//\1/ 19412 q 19413 } 19414 /^X\(\/\).*/{ 19415 s//\1/ 19416 q 19417 } 19418 s/.*/./; q'` 19419 as_dir="$ac_dir"; as_fn_mkdir_p 19420 ac_builddir=. 19421 19422case "$ac_dir" in 19423.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19424*) 19425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19426 # A ".." for each directory in $ac_dir_suffix. 19427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19428 case $ac_top_builddir_sub in 19429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19431 esac ;; 19432esac 19433ac_abs_top_builddir=$ac_pwd 19434ac_abs_builddir=$ac_pwd$ac_dir_suffix 19435# for backward compatibility: 19436ac_top_builddir=$ac_top_build_prefix 19437 19438case $srcdir in 19439 .) # We are building in place. 19440 ac_srcdir=. 19441 ac_top_srcdir=$ac_top_builddir_sub 19442 ac_abs_top_srcdir=$ac_pwd ;; 19443 [\\/]* | ?:[\\/]* ) # Absolute name. 19444 ac_srcdir=$srcdir$ac_dir_suffix; 19445 ac_top_srcdir=$srcdir 19446 ac_abs_top_srcdir=$srcdir ;; 19447 *) # Relative name. 19448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19449 ac_top_srcdir=$ac_top_build_prefix$srcdir 19450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19451esac 19452ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19453 19454 19455 case $ac_mode in 19456 :F) 19457 # 19458 # CONFIG_FILE 19459 # 19460 19461 case $INSTALL in 19462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19463 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19464 esac 19465 ac_MKDIR_P=$MKDIR_P 19466 case $MKDIR_P in 19467 [\\/$]* | ?:[\\/]* ) ;; 19468 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19469 esac 19470_ACEOF 19471 19472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19473# If the template does not know about datarootdir, expand it. 19474# FIXME: This hack should be removed a few years after 2.60. 19475ac_datarootdir_hack=; ac_datarootdir_seen= 19476ac_sed_dataroot=' 19477/datarootdir/ { 19478 p 19479 q 19480} 19481/@datadir@/p 19482/@docdir@/p 19483/@infodir@/p 19484/@localedir@/p 19485/@mandir@/p' 19486case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19487*datarootdir*) ac_datarootdir_seen=yes;; 19488*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19490$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19491_ACEOF 19492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19493 ac_datarootdir_hack=' 19494 s&@datadir@&$datadir&g 19495 s&@docdir@&$docdir&g 19496 s&@infodir@&$infodir&g 19497 s&@localedir@&$localedir&g 19498 s&@mandir@&$mandir&g 19499 s&\\\${datarootdir}&$datarootdir&g' ;; 19500esac 19501_ACEOF 19502 19503# Neutralize VPATH when `$srcdir' = `.'. 19504# Shell code in configure.ac might set extrasub. 19505# FIXME: do we really want to maintain this feature? 19506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19507ac_sed_extra="$ac_vpsub 19508$extrasub 19509_ACEOF 19510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19511:t 19512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19513s|@configure_input@|$ac_sed_conf_input|;t t 19514s&@top_builddir@&$ac_top_builddir_sub&;t t 19515s&@top_build_prefix@&$ac_top_build_prefix&;t t 19516s&@srcdir@&$ac_srcdir&;t t 19517s&@abs_srcdir@&$ac_abs_srcdir&;t t 19518s&@top_srcdir@&$ac_top_srcdir&;t t 19519s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19520s&@builddir@&$ac_builddir&;t t 19521s&@abs_builddir@&$ac_abs_builddir&;t t 19522s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19523s&@INSTALL@&$ac_INSTALL&;t t 19524s&@MKDIR_P@&$ac_MKDIR_P&;t t 19525$ac_datarootdir_hack 19526" 19527eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19528 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19529 19530test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19531 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19533 "$ac_tmp/out"`; test -z "$ac_out"; } && 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19535which seems to be undefined. Please make sure it is defined" >&5 19536$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19537which seems to be undefined. Please make sure it is defined" >&2;} 19538 19539 rm -f "$ac_tmp/stdin" 19540 case $ac_file in 19541 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19542 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19543 esac \ 19544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19545 ;; 19546 :H) 19547 # 19548 # CONFIG_HEADER 19549 # 19550 if test x"$ac_file" != x-; then 19551 { 19552 $as_echo "/* $configure_input */" \ 19553 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19554 } >"$ac_tmp/config.h" \ 19555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19556 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19557 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19558$as_echo "$as_me: $ac_file is unchanged" >&6;} 19559 else 19560 rm -f "$ac_file" 19561 mv "$ac_tmp/config.h" "$ac_file" \ 19562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19563 fi 19564 else 19565 $as_echo "/* $configure_input */" \ 19566 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19567 || as_fn_error $? "could not create -" "$LINENO" 5 19568 fi 19569# Compute "$ac_file"'s index in $config_headers. 19570_am_arg="$ac_file" 19571_am_stamp_count=1 19572for _am_header in $config_headers :; do 19573 case $_am_header in 19574 $_am_arg | $_am_arg:* ) 19575 break ;; 19576 * ) 19577 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19578 esac 19579done 19580echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19581$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19582 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19583 X"$_am_arg" : 'X\(//\)$' \| \ 19584 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19585$as_echo X"$_am_arg" | 19586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19587 s//\1/ 19588 q 19589 } 19590 /^X\(\/\/\)[^/].*/{ 19591 s//\1/ 19592 q 19593 } 19594 /^X\(\/\/\)$/{ 19595 s//\1/ 19596 q 19597 } 19598 /^X\(\/\).*/{ 19599 s//\1/ 19600 q 19601 } 19602 s/.*/./; q'`/stamp-h$_am_stamp_count 19603 ;; 19604 19605 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19606$as_echo "$as_me: executing $ac_file commands" >&6;} 19607 ;; 19608 esac 19609 19610 19611 case $ac_file$ac_mode in 19612 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19613 # Older Autoconf quotes --file arguments for eval, but not when files 19614 # are listed without --file. Let's play safe and only enable the eval 19615 # if we detect the quoting. 19616 case $CONFIG_FILES in 19617 *\'*) eval set x "$CONFIG_FILES" ;; 19618 *) set x $CONFIG_FILES ;; 19619 esac 19620 shift 19621 for mf 19622 do 19623 # Strip MF so we end up with the name of the file. 19624 mf=`echo "$mf" | sed -e 's/:.*$//'` 19625 # Check whether this is an Automake generated Makefile or not. 19626 # We used to match only the files named 'Makefile.in', but 19627 # some people rename them; so instead we look at the file content. 19628 # Grep'ing the first line is not enough: some people post-process 19629 # each Makefile.in and add a new line on top of each file to say so. 19630 # Grep'ing the whole file is not good either: AIX grep has a line 19631 # limit of 2048, but all sed's we know have understand at least 4000. 19632 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19633 dirpart=`$as_dirname -- "$mf" || 19634$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19635 X"$mf" : 'X\(//\)[^/]' \| \ 19636 X"$mf" : 'X\(//\)$' \| \ 19637 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19638$as_echo X"$mf" | 19639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19640 s//\1/ 19641 q 19642 } 19643 /^X\(\/\/\)[^/].*/{ 19644 s//\1/ 19645 q 19646 } 19647 /^X\(\/\/\)$/{ 19648 s//\1/ 19649 q 19650 } 19651 /^X\(\/\).*/{ 19652 s//\1/ 19653 q 19654 } 19655 s/.*/./; q'` 19656 else 19657 continue 19658 fi 19659 # Extract the definition of DEPDIR, am__include, and am__quote 19660 # from the Makefile without running 'make'. 19661 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19662 test -z "$DEPDIR" && continue 19663 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19664 test -z "$am__include" && continue 19665 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19666 # Find all dependency output files, they are included files with 19667 # $(DEPDIR) in their names. We invoke sed twice because it is the 19668 # simplest approach to changing $(DEPDIR) to its actual value in the 19669 # expansion. 19670 for file in `sed -n " 19671 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19672 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19673 # Make sure the directory exists. 19674 test -f "$dirpart/$file" && continue 19675 fdir=`$as_dirname -- "$file" || 19676$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19677 X"$file" : 'X\(//\)[^/]' \| \ 19678 X"$file" : 'X\(//\)$' \| \ 19679 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19680$as_echo X"$file" | 19681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19682 s//\1/ 19683 q 19684 } 19685 /^X\(\/\/\)[^/].*/{ 19686 s//\1/ 19687 q 19688 } 19689 /^X\(\/\/\)$/{ 19690 s//\1/ 19691 q 19692 } 19693 /^X\(\/\).*/{ 19694 s//\1/ 19695 q 19696 } 19697 s/.*/./; q'` 19698 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19699 # echo "creating $dirpart/$file" 19700 echo '# dummy' > "$dirpart/$file" 19701 done 19702 done 19703} 19704 ;; 19705 "libtool":C) 19706 19707 # See if we are running on zsh, and set the options which allow our 19708 # commands through without removal of \ escapes. 19709 if test -n "${ZSH_VERSION+set}" ; then 19710 setopt NO_GLOB_SUBST 19711 fi 19712 19713 cfgfile="${ofile}T" 19714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19715 $RM "$cfgfile" 19716 19717 cat <<_LT_EOF >> "$cfgfile" 19718#! $SHELL 19719 19720# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19721# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19722# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19723# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19724# 19725# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19726# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19727# Foundation, Inc. 19728# Written by Gordon Matzigkeit, 1996 19729# 19730# This file is part of GNU Libtool. 19731# 19732# GNU Libtool is free software; you can redistribute it and/or 19733# modify it under the terms of the GNU General Public License as 19734# published by the Free Software Foundation; either version 2 of 19735# the License, or (at your option) any later version. 19736# 19737# As a special exception to the GNU General Public License, 19738# if you distribute this file as part of a program or library that 19739# is built using GNU Libtool, you may include this file under the 19740# same distribution terms that you use for the rest of that program. 19741# 19742# GNU Libtool is distributed in the hope that it will be useful, 19743# but WITHOUT ANY WARRANTY; without even the implied warranty of 19744# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19745# GNU General Public License for more details. 19746# 19747# You should have received a copy of the GNU General Public License 19748# along with GNU Libtool; see the file COPYING. If not, a copy 19749# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19750# obtained by writing to the Free Software Foundation, Inc., 19751# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19752 19753 19754# The names of the tagged configurations supported by this script. 19755available_tags="" 19756 19757# ### BEGIN LIBTOOL CONFIG 19758 19759# Which release of libtool.m4 was used? 19760macro_version=$macro_version 19761macro_revision=$macro_revision 19762 19763# Whether or not to build shared libraries. 19764build_libtool_libs=$enable_shared 19765 19766# Whether or not to build static libraries. 19767build_old_libs=$enable_static 19768 19769# What type of objects to build. 19770pic_mode=$pic_mode 19771 19772# Whether or not to optimize for fast installation. 19773fast_install=$enable_fast_install 19774 19775# Shell to use when invoking shell scripts. 19776SHELL=$lt_SHELL 19777 19778# An echo program that protects backslashes. 19779ECHO=$lt_ECHO 19780 19781# The PATH separator for the build system. 19782PATH_SEPARATOR=$lt_PATH_SEPARATOR 19783 19784# The host system. 19785host_alias=$host_alias 19786host=$host 19787host_os=$host_os 19788 19789# The build system. 19790build_alias=$build_alias 19791build=$build 19792build_os=$build_os 19793 19794# A sed program that does not truncate output. 19795SED=$lt_SED 19796 19797# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19798Xsed="\$SED -e 1s/^X//" 19799 19800# A grep program that handles long lines. 19801GREP=$lt_GREP 19802 19803# An ERE matcher. 19804EGREP=$lt_EGREP 19805 19806# A literal string matcher. 19807FGREP=$lt_FGREP 19808 19809# A BSD- or MS-compatible name lister. 19810NM=$lt_NM 19811 19812# Whether we need soft or hard links. 19813LN_S=$lt_LN_S 19814 19815# What is the maximum length of a command? 19816max_cmd_len=$max_cmd_len 19817 19818# Object file suffix (normally "o"). 19819objext=$ac_objext 19820 19821# Executable file suffix (normally ""). 19822exeext=$exeext 19823 19824# whether the shell understands "unset". 19825lt_unset=$lt_unset 19826 19827# turn spaces into newlines. 19828SP2NL=$lt_lt_SP2NL 19829 19830# turn newlines into spaces. 19831NL2SP=$lt_lt_NL2SP 19832 19833# convert \$build file names to \$host format. 19834to_host_file_cmd=$lt_cv_to_host_file_cmd 19835 19836# convert \$build files to toolchain format. 19837to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19838 19839# An object symbol dumper. 19840OBJDUMP=$lt_OBJDUMP 19841 19842# Method to check whether dependent libraries are shared objects. 19843deplibs_check_method=$lt_deplibs_check_method 19844 19845# Command to use when deplibs_check_method = "file_magic". 19846file_magic_cmd=$lt_file_magic_cmd 19847 19848# How to find potential files when deplibs_check_method = "file_magic". 19849file_magic_glob=$lt_file_magic_glob 19850 19851# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19852want_nocaseglob=$lt_want_nocaseglob 19853 19854# DLL creation program. 19855DLLTOOL=$lt_DLLTOOL 19856 19857# Command to associate shared and link libraries. 19858sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19859 19860# The archiver. 19861AR=$lt_AR 19862 19863# Flags to create an archive. 19864AR_FLAGS=$lt_AR_FLAGS 19865 19866# How to feed a file listing to the archiver. 19867archiver_list_spec=$lt_archiver_list_spec 19868 19869# A symbol stripping program. 19870STRIP=$lt_STRIP 19871 19872# Commands used to install an old-style archive. 19873RANLIB=$lt_RANLIB 19874old_postinstall_cmds=$lt_old_postinstall_cmds 19875old_postuninstall_cmds=$lt_old_postuninstall_cmds 19876 19877# Whether to use a lock for old archive extraction. 19878lock_old_archive_extraction=$lock_old_archive_extraction 19879 19880# A C compiler. 19881LTCC=$lt_CC 19882 19883# LTCC compiler flags. 19884LTCFLAGS=$lt_CFLAGS 19885 19886# Take the output of nm and produce a listing of raw symbols and C names. 19887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19888 19889# Transform the output of nm in a proper C declaration. 19890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19891 19892# Transform the output of nm in a C name address pair. 19893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19894 19895# Transform the output of nm in a C name address pair when lib prefix is needed. 19896global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19897 19898# Specify filename containing input files for \$NM. 19899nm_file_list_spec=$lt_nm_file_list_spec 19900 19901# The root where to search for dependent libraries,and in which our libraries should be installed. 19902lt_sysroot=$lt_sysroot 19903 19904# The name of the directory that contains temporary libtool files. 19905objdir=$objdir 19906 19907# Used to examine libraries when file_magic_cmd begins with "file". 19908MAGIC_CMD=$MAGIC_CMD 19909 19910# Must we lock files when doing compilation? 19911need_locks=$lt_need_locks 19912 19913# Manifest tool. 19914MANIFEST_TOOL=$lt_MANIFEST_TOOL 19915 19916# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19917DSYMUTIL=$lt_DSYMUTIL 19918 19919# Tool to change global to local symbols on Mac OS X. 19920NMEDIT=$lt_NMEDIT 19921 19922# Tool to manipulate fat objects and archives on Mac OS X. 19923LIPO=$lt_LIPO 19924 19925# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19926OTOOL=$lt_OTOOL 19927 19928# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19929OTOOL64=$lt_OTOOL64 19930 19931# Old archive suffix (normally "a"). 19932libext=$libext 19933 19934# Shared library suffix (normally ".so"). 19935shrext_cmds=$lt_shrext_cmds 19936 19937# The commands to extract the exported symbol list from a shared archive. 19938extract_expsyms_cmds=$lt_extract_expsyms_cmds 19939 19940# Variables whose values should be saved in libtool wrapper scripts and 19941# restored at link time. 19942variables_saved_for_relink=$lt_variables_saved_for_relink 19943 19944# Do we need the "lib" prefix for modules? 19945need_lib_prefix=$need_lib_prefix 19946 19947# Do we need a version for libraries? 19948need_version=$need_version 19949 19950# Library versioning type. 19951version_type=$version_type 19952 19953# Shared library runtime path variable. 19954runpath_var=$runpath_var 19955 19956# Shared library path variable. 19957shlibpath_var=$shlibpath_var 19958 19959# Is shlibpath searched before the hard-coded library search path? 19960shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19961 19962# Format of library name prefix. 19963libname_spec=$lt_libname_spec 19964 19965# List of archive names. First name is the real one, the rest are links. 19966# The last name is the one that the linker finds with -lNAME 19967library_names_spec=$lt_library_names_spec 19968 19969# The coded name of the library, if different from the real name. 19970soname_spec=$lt_soname_spec 19971 19972# Permission mode override for installation of shared libraries. 19973install_override_mode=$lt_install_override_mode 19974 19975# Command to use after installation of a shared archive. 19976postinstall_cmds=$lt_postinstall_cmds 19977 19978# Command to use after uninstallation of a shared archive. 19979postuninstall_cmds=$lt_postuninstall_cmds 19980 19981# Commands used to finish a libtool library installation in a directory. 19982finish_cmds=$lt_finish_cmds 19983 19984# As "finish_cmds", except a single script fragment to be evaled but 19985# not shown. 19986finish_eval=$lt_finish_eval 19987 19988# Whether we should hardcode library paths into libraries. 19989hardcode_into_libs=$hardcode_into_libs 19990 19991# Compile-time system search path for libraries. 19992sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19993 19994# Run-time system search path for libraries. 19995sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19996 19997# Whether dlopen is supported. 19998dlopen_support=$enable_dlopen 19999 20000# Whether dlopen of programs is supported. 20001dlopen_self=$enable_dlopen_self 20002 20003# Whether dlopen of statically linked programs is supported. 20004dlopen_self_static=$enable_dlopen_self_static 20005 20006# Commands to strip libraries. 20007old_striplib=$lt_old_striplib 20008striplib=$lt_striplib 20009 20010 20011# The linker used to build libraries. 20012LD=$lt_LD 20013 20014# How to create reloadable object files. 20015reload_flag=$lt_reload_flag 20016reload_cmds=$lt_reload_cmds 20017 20018# Commands used to build an old-style archive. 20019old_archive_cmds=$lt_old_archive_cmds 20020 20021# A language specific compiler. 20022CC=$lt_compiler 20023 20024# Is the compiler the GNU compiler? 20025with_gcc=$GCC 20026 20027# Compiler flag to turn off builtin functions. 20028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20029 20030# Additional compiler flags for building library objects. 20031pic_flag=$lt_lt_prog_compiler_pic 20032 20033# How to pass a linker flag through the compiler. 20034wl=$lt_lt_prog_compiler_wl 20035 20036# Compiler flag to prevent dynamic linking. 20037link_static_flag=$lt_lt_prog_compiler_static 20038 20039# Does compiler simultaneously support -c and -o options? 20040compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20041 20042# Whether or not to add -lc for building shared libraries. 20043build_libtool_need_lc=$archive_cmds_need_lc 20044 20045# Whether or not to disallow shared libs when runtime libs are static. 20046allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20047 20048# Compiler flag to allow reflexive dlopens. 20049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20050 20051# Compiler flag to generate shared objects directly from archives. 20052whole_archive_flag_spec=$lt_whole_archive_flag_spec 20053 20054# Whether the compiler copes with passing no objects directly. 20055compiler_needs_object=$lt_compiler_needs_object 20056 20057# Create an old-style archive from a shared archive. 20058old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20059 20060# Create a temporary old-style archive to link instead of a shared archive. 20061old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20062 20063# Commands used to build a shared archive. 20064archive_cmds=$lt_archive_cmds 20065archive_expsym_cmds=$lt_archive_expsym_cmds 20066 20067# Commands used to build a loadable module if different from building 20068# a shared archive. 20069module_cmds=$lt_module_cmds 20070module_expsym_cmds=$lt_module_expsym_cmds 20071 20072# Whether we are building with GNU ld or not. 20073with_gnu_ld=$lt_with_gnu_ld 20074 20075# Flag that allows shared libraries with undefined symbols to be built. 20076allow_undefined_flag=$lt_allow_undefined_flag 20077 20078# Flag that enforces no undefined symbols. 20079no_undefined_flag=$lt_no_undefined_flag 20080 20081# Flag to hardcode \$libdir into a binary during linking. 20082# This must work even if \$libdir does not exist 20083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20084 20085# Whether we need a single "-rpath" flag with a separated argument. 20086hardcode_libdir_separator=$lt_hardcode_libdir_separator 20087 20088# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20089# DIR into the resulting binary. 20090hardcode_direct=$hardcode_direct 20091 20092# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20093# DIR into the resulting binary and the resulting library dependency is 20094# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20095# library is relocated. 20096hardcode_direct_absolute=$hardcode_direct_absolute 20097 20098# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20099# into the resulting binary. 20100hardcode_minus_L=$hardcode_minus_L 20101 20102# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20103# into the resulting binary. 20104hardcode_shlibpath_var=$hardcode_shlibpath_var 20105 20106# Set to "yes" if building a shared library automatically hardcodes DIR 20107# into the library and all subsequent libraries and executables linked 20108# against it. 20109hardcode_automatic=$hardcode_automatic 20110 20111# Set to yes if linker adds runtime paths of dependent libraries 20112# to runtime path list. 20113inherit_rpath=$inherit_rpath 20114 20115# Whether libtool must link a program against all its dependency libraries. 20116link_all_deplibs=$link_all_deplibs 20117 20118# Set to "yes" if exported symbols are required. 20119always_export_symbols=$always_export_symbols 20120 20121# The commands to list exported symbols. 20122export_symbols_cmds=$lt_export_symbols_cmds 20123 20124# Symbols that should not be listed in the preloaded symbols. 20125exclude_expsyms=$lt_exclude_expsyms 20126 20127# Symbols that must always be exported. 20128include_expsyms=$lt_include_expsyms 20129 20130# Commands necessary for linking programs (against libraries) with templates. 20131prelink_cmds=$lt_prelink_cmds 20132 20133# Commands necessary for finishing linking programs. 20134postlink_cmds=$lt_postlink_cmds 20135 20136# Specify filename containing input files. 20137file_list_spec=$lt_file_list_spec 20138 20139# How to hardcode a shared library path into an executable. 20140hardcode_action=$hardcode_action 20141 20142# ### END LIBTOOL CONFIG 20143 20144_LT_EOF 20145 20146 case $host_os in 20147 aix3*) 20148 cat <<\_LT_EOF >> "$cfgfile" 20149# AIX sometimes has problems with the GCC collect2 program. For some 20150# reason, if we set the COLLECT_NAMES environment variable, the problems 20151# vanish in a puff of smoke. 20152if test "X${COLLECT_NAMES+set}" != Xset; then 20153 COLLECT_NAMES= 20154 export COLLECT_NAMES 20155fi 20156_LT_EOF 20157 ;; 20158 esac 20159 20160 20161ltmain="$ac_aux_dir/ltmain.sh" 20162 20163 20164 # We use sed instead of cat because bash on DJGPP gets confused if 20165 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20166 # text mode, it properly converts lines to CR/LF. This bash problem 20167 # is reportedly fixed, but why not run on old versions too? 20168 sed '$q' "$ltmain" >> "$cfgfile" \ 20169 || (rm -f "$cfgfile"; exit 1) 20170 20171 if test x"$xsi_shell" = xyes; then 20172 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20173func_dirname ()\ 20174{\ 20175\ case ${1} in\ 20176\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20177\ * ) func_dirname_result="${3}" ;;\ 20178\ esac\ 20179} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20180 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20182test 0 -eq $? || _lt_function_replace_fail=: 20183 20184 20185 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20186func_basename ()\ 20187{\ 20188\ func_basename_result="${1##*/}"\ 20189} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20190 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20192test 0 -eq $? || _lt_function_replace_fail=: 20193 20194 20195 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20196func_dirname_and_basename ()\ 20197{\ 20198\ case ${1} in\ 20199\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20200\ * ) func_dirname_result="${3}" ;;\ 20201\ esac\ 20202\ func_basename_result="${1##*/}"\ 20203} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20204 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20206test 0 -eq $? || _lt_function_replace_fail=: 20207 20208 20209 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20210func_stripname ()\ 20211{\ 20212\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20213\ # positional parameters, so assign one to ordinary parameter first.\ 20214\ func_stripname_result=${3}\ 20215\ func_stripname_result=${func_stripname_result#"${1}"}\ 20216\ func_stripname_result=${func_stripname_result%"${2}"}\ 20217} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20218 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20220test 0 -eq $? || _lt_function_replace_fail=: 20221 20222 20223 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20224func_split_long_opt ()\ 20225{\ 20226\ func_split_long_opt_name=${1%%=*}\ 20227\ func_split_long_opt_arg=${1#*=}\ 20228} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20229 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20231test 0 -eq $? || _lt_function_replace_fail=: 20232 20233 20234 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20235func_split_short_opt ()\ 20236{\ 20237\ func_split_short_opt_arg=${1#??}\ 20238\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20239} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20240 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20242test 0 -eq $? || _lt_function_replace_fail=: 20243 20244 20245 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20246func_lo2o ()\ 20247{\ 20248\ case ${1} in\ 20249\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20250\ *) func_lo2o_result=${1} ;;\ 20251\ esac\ 20252} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20253 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20255test 0 -eq $? || _lt_function_replace_fail=: 20256 20257 20258 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20259func_xform ()\ 20260{\ 20261 func_xform_result=${1%.*}.lo\ 20262} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20263 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20265test 0 -eq $? || _lt_function_replace_fail=: 20266 20267 20268 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20269func_arith ()\ 20270{\ 20271 func_arith_result=$(( $* ))\ 20272} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20273 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20275test 0 -eq $? || _lt_function_replace_fail=: 20276 20277 20278 sed -e '/^func_len ()$/,/^} # func_len /c\ 20279func_len ()\ 20280{\ 20281 func_len_result=${#1}\ 20282} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20283 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20285test 0 -eq $? || _lt_function_replace_fail=: 20286 20287fi 20288 20289if test x"$lt_shell_append" = xyes; then 20290 sed -e '/^func_append ()$/,/^} # func_append /c\ 20291func_append ()\ 20292{\ 20293 eval "${1}+=\\${2}"\ 20294} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20295 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20297test 0 -eq $? || _lt_function_replace_fail=: 20298 20299 20300 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20301func_append_quoted ()\ 20302{\ 20303\ func_quote_for_eval "${2}"\ 20304\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20305} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20306 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20308test 0 -eq $? || _lt_function_replace_fail=: 20309 20310 20311 # Save a `func_append' function call where possible by direct use of '+=' 20312 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20313 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20315 test 0 -eq $? || _lt_function_replace_fail=: 20316else 20317 # Save a `func_append' function call even when '+=' is not available 20318 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20319 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20321 test 0 -eq $? || _lt_function_replace_fail=: 20322fi 20323 20324if test x"$_lt_function_replace_fail" = x":"; then 20325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20326$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20327fi 20328 20329 20330 mv -f "$cfgfile" "$ofile" || 20331 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20332 chmod +x "$ofile" 20333 20334 ;; 20335 20336 esac 20337done # for ac_tag 20338 20339 20340as_fn_exit 0 20341_ACEOF 20342ac_clean_files=$ac_clean_files_save 20343 20344test $ac_write_fail = 0 || 20345 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20346 20347 20348# configure is writing to config.log, and then calls config.status. 20349# config.status does its own redirection, appending to config.log. 20350# Unfortunately, on DOS this fails, as config.log is still kept open 20351# by configure, so config.status won't be able to write to it; its 20352# output is simply discarded. So we exec the FD to /dev/null, 20353# effectively closing config.log, so it can be properly (re)opened and 20354# appended to by config.status. When coming back to configure, we 20355# need to make the FD available again. 20356if test "$no_create" != yes; then 20357 ac_cs_success=: 20358 ac_config_status_args= 20359 test "$silent" = yes && 20360 ac_config_status_args="$ac_config_status_args --quiet" 20361 exec 5>/dev/null 20362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20363 exec 5>>config.log 20364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20365 # would make configure fail if this is the last instruction. 20366 $ac_cs_success || as_fn_exit 1 20367fi 20368if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20370$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20371fi 20372 20373